1
1
< ion-header >
2
2
< ion-toolbar >
3
- < ion-buttons slot ="start ">
3
+ < ion-buttons *ngIf =" !showSearch " slot ="start ">
4
4
< ion-menu-button > </ ion-menu-button >
5
5
</ ion-buttons >
6
6
7
7
< ion-title *ngIf ="!showSearch ">
8
8
< span class ="title-container ">
9
9
< span class ="title-text ion-hide-sm-down "> {{ 'App.RootPrefix' | translate }}</ span >
10
10
< img class ="title-logo " src ="assets/logo.png " />
11
- </ span >
11
+ </ span >
12
12
</ ion-title >
13
13
14
- < ion-searchbar *ngIf ="showSearch "
15
- color ="primary "
16
- showCancelButton ="true "
17
- debounce ="300 "
18
- (ionCancel) ="setSearchValue(null) "
19
- (ionClear) ="setSearchValue(null) "
20
- (ionChange) ="setSearchValue($event.detail.value) "
21
- [placeholder] ="'App.SearchPlaceholder' | translate "> </ ion-searchbar >
14
+ < ion-searchbar *ngIf ="showSearch " color ="primary " showCancelButton ="true " debounce ="300 "
15
+ (ionCancel) ="setSearchValue(null) " (ionClear) ="setSearchValue(null) "
16
+ (ionChange) ="setSearchValue($event.detail.value) "
17
+ [placeholder] ="'App.SearchPlaceholder' | translate "> </ ion-searchbar >
22
18
23
19
< ion-buttons slot ="end ">
24
20
< ion-button (click) ="toggleSearch() " [title] ="'App.Titles.Search' | translate ">
25
21
< ion-icon name ="search "> </ ion-icon >
26
22
</ ion-button >
27
- < ion-button (click) ="openFAQ() " [title] ="'App.Titles.FAQ' | translate ">
23
+ < ion-button *ngIf =" !showSearch " (click) ="openFAQ() " [title] ="'App.Titles.FAQ' | translate ">
28
24
< ion-icon name ="help-circle "> </ ion-icon >
29
25
</ ion-button >
30
- < ion-button (click) ="openReach() " [title] ="'App.Titles.Reach' | translate ">
26
+ < ion-button *ngIf =" !showSearch " (click) ="openReach() " [title] ="'App.Titles.Reach' | translate ">
31
27
< ion-icon name ="calculator "> </ ion-icon >
32
28
</ ion-button >
33
- < ion-button (click) ="openMaps() " [title] ="'App.Titles.Map' | translate ">
29
+ < ion-button *ngIf =" !showSearch " (click) ="openMaps() " [title] ="'App.Titles.Map' | translate ">
34
30
< ion-icon name ="map "> </ ion-icon >
35
31
</ ion-button >
36
32
</ ion-buttons >
47
43
48
44
< div id ="top "> </ div >
49
45
50
- < div *ngFor ="let rule of rulesService.rules; let majorIndex = index "
51
- class ="rule-container major "
52
- [style.border-color] ="rule.color "
53
- [class.ion-hide] ="!isVisible([majorIndex + 1]) ">
46
+ < div *ngFor ="let rule of rulesService.rules; let majorIndex = index " class ="rule-container major "
47
+ [style.border-color] ="rule.color " [class.ion-hide] ="!isVisible([majorIndex + 1]) ">
54
48
55
49
<!-- no text at this level -->
56
50
57
51
< div class ="rule major " [id] ="rulesService.indexesToRules[rule.index] ">
58
- < span class ="index major "> {{ rule.index }}</ span >
52
+ < span class ="index major "> {{ rule.index }}</ span >
59
53
< a [innerHTML] ="rule.formattedName | highlight:searchTerm:rule.index "
60
- [href] ="'#' + rulesService.indexesToRules[rule.index] "> </ a >
54
+ [href] ="'#' + rulesService.indexesToRules[rule.index] "> </ a >
61
55
</ div >
62
56
63
57
< div class ="pretext " [innerHTML] ="rule.pretext | highlight:searchTerm:rule.index "> </ div >
64
58
65
- < div *ngFor ="let childRule of rule.children; let minorIndex = index "
66
- class ="rule-container minor "
67
- [class.ion-hide] ="!isVisible([majorIndex + 1, minorIndex + 1]) ">
59
+ < div *ngFor ="let childRule of rule.children; let minorIndex = index " class ="rule-container minor "
60
+ [class.ion-hide] ="!isVisible([majorIndex + 1, minorIndex + 1]) ">
68
61
69
62
<!-- no text at this level -->
70
63
71
64
< div class ="rule minor " [id] ="rulesService.indexesToRules[childRule.index] ">
72
- < span class ="index minor "> {{ childRule.index }}</ span >
73
- < a [innerHTML] ="childRule.formattedName | highlight:searchTerm:childRule.index "
74
- [href] ="'#' + rulesService.indexesToRules[childRule.index] "> </ a >
65
+ < span class ="index minor "> {{ childRule.index }}</ span >
66
+ < a [innerHTML] ="childRule.formattedName | highlight:searchTerm:childRule.index "
67
+ [href] ="'#' + rulesService.indexesToRules[childRule.index] "> </ a >
75
68
</ div >
76
69
77
70
< div class ="pretext " [innerHTML] ="childRule.pretext | highlight:searchTerm:childRule.index "> </ div >
78
71
79
- < div *ngFor ="let grandchildRule of childRule.children; let childIndex = index "
80
- class ="rule-container child "
81
- [class.ion-hide] ="!isVisible([majorIndex + 1, minorIndex + 1, childIndex + 1]) ">
82
-
72
+ < div *ngFor ="let grandchildRule of childRule.children; let childIndex = index " class ="rule-container child "
73
+ [class.ion-hide] ="!isVisible([majorIndex + 1, minorIndex + 1, childIndex + 1]) ">
74
+
83
75
<!-- no pretext at this level -->
84
-
76
+
85
77
< div class ="rule child " [id] ="rulesService.indexesToRules[grandchildRule.index] ">
86
- < span class ="index child "> {{ grandchildRule.index }}</ span >
78
+ < span class ="index child "> {{ grandchildRule.index }}</ span >
87
79
< span class ="desc child ">
88
80
< a class ="name child " [innerHTML] ="grandchildRule.formattedName | highlight:searchTerm:grandchildRule.index "
89
- [href] ="'#' + rulesService.indexesToRules[grandchildRule.index] "> </ a >
90
- < span class ="text child " [innerHTML] ="grandchildRule.text | highlight:searchTerm:grandchildRule.index "> </ span >
81
+ [href] ="'#' + rulesService.indexesToRules[grandchildRule.index] "> </ a >
82
+ < span class ="text child "
83
+ [innerHTML] ="grandchildRule.text | highlight:searchTerm:grandchildRule.index "> </ span >
91
84
92
85
<!-- please never go deeper -->
93
86
< ol class ="romanized-list list " *ngIf ="grandchildRule.subchildren ">
94
87
< li *ngFor ="let descRule of grandchildRule.subchildren; let descIndex = index "
95
- [class.ion-hide] ="!isVisible([majorIndex + 1, minorIndex + 1, childIndex + 1, descIndex + 1]) ">
96
- < a class ="name child " [id] ="rulesService.indexesToRules[descRule.index] "
97
- [innerHTML] ="descRule.formattedName | highlight:searchTerm:descRule.index "
98
- [href] ="'#' + rulesService.indexesToRules[descRule.index] "> </ a >
88
+ [class.ion-hide] ="!isVisible([majorIndex + 1, minorIndex + 1, childIndex + 1, descIndex + 1]) ">
89
+ < a class ="name child " [id] ="rulesService.indexesToRules[descRule.index] "
90
+ [innerHTML] ="descRule.formattedName | highlight:searchTerm:descRule.index "
91
+ [href] ="'#' + rulesService.indexesToRules[descRule.index] "> </ a >
99
92
< span class ="text child " [innerHTML] ="descRule.text | highlight:searchTerm:descRule.index "> </ span >
100
93
101
94
<!-- I said please :( -->
102
95
< ol class ="alphabeta-list list sublist " *ngIf ="descRule.subchildren ">
103
96
< li *ngFor ="let descDescRule of descRule.subchildren; let descDescIndex = index "
104
- [class.ion-hide] ="!isVisible([majorIndex + 1, minorIndex + 1, childIndex + 1, descIndex + 1, descDescIndex + 1]) ">
105
- < a class ="name child " [id] ="rulesService.indexesToRules[descDescRule.index] "
106
- [innerHTML] ="descDescRule.formattedName | highlight:searchTerm:descDescRule.index "
107
- [href] ="'#' + rulesService.indexesToRules[descDescRule.index] "> </ a >
108
- < span class ="text child " [innerHTML] ="descDescRule.text | highlight:searchTerm:descDescRule.index "> </ span >
97
+ [class.ion-hide] ="!isVisible([majorIndex + 1, minorIndex + 1, childIndex + 1, descIndex + 1, descDescIndex + 1]) ">
98
+ < a class ="name child " [id] ="rulesService.indexesToRules[descDescRule.index] "
99
+ [innerHTML] ="descDescRule.formattedName | highlight:searchTerm:descDescRule.index "
100
+ [href] ="'#' + rulesService.indexesToRules[descDescRule.index] "> </ a >
101
+ < span class ="text child "
102
+ [innerHTML] ="descDescRule.text | highlight:searchTerm:descDescRule.index "> </ span >
109
103
</ li >
110
104
</ ol >
111
105
</ li >
112
106
</ ol >
113
107
</ span >
114
108
</ div >
115
-
109
+
116
110
</ div >
117
111
118
112
</ div >
119
113
120
114
</ div >
121
- </ ion-content >
115
+ </ ion-content >
0 commit comments