@rxap/layout 19.2.6 → 21.0.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -0
- package/compodoc/changelog.html +53 -0
- package/compodoc/components/AppsButtonComponent.html +26 -15
- package/compodoc/components/LayoutComponent.html +23 -31
- package/compodoc/components/NavigationComponent.html +46 -89
- package/compodoc/components/NavigationItemComponent.html +98 -214
- package/compodoc/components/SettingsButtonComponent.html +46 -46
- package/compodoc/components/SidenavComponent.html +43 -44
- package/compodoc/components/SidenavToggleButtonComponent.html +15 -5
- package/compodoc/dependencies.html +20 -20
- package/compodoc/directives/SidenavFooterDirective.html +4 -74
- package/compodoc/directives/SidenavHeaderDirective.html +4 -74
- package/compodoc/injectables/LayoutService.html +24 -67
- package/compodoc/injectables/NavigationService.html +20 -72
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +1916 -2607
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/AppsButtonComponent.html +4 -10
- package/docs/html/classes/BaseLayoutComponent.html +2 -2
- package/docs/html/classes/DefaultHeaderComponent.html +2 -2
- package/docs/html/classes/DefaultHeaderService.html +5 -5
- package/docs/html/classes/ExternalAppsService.html +2 -2
- package/docs/html/classes/FooterComponent.html +2 -2
- package/docs/html/classes/FooterDirective.html +3 -3
- package/docs/html/classes/FooterService.html +5 -5
- package/docs/html/classes/HeaderComponent.html +2 -2
- package/docs/html/classes/HeaderDirective.html +3 -3
- package/docs/html/classes/HeaderService.html +5 -5
- package/docs/html/classes/LayoutComponent.html +2 -2
- package/docs/html/classes/LayoutService.html +2 -2
- package/docs/html/classes/LogoService.html +2 -2
- package/docs/html/classes/MinimalLayoutComponent.html +2 -2
- package/docs/html/classes/NavigationComponent.html +2 -9
- package/docs/html/classes/NavigationItemComponent.html +3 -19
- package/docs/html/classes/NavigationProgressBarComponent.html +2 -2
- package/docs/html/classes/NavigationService.html +3 -3
- package/docs/html/classes/ReleaseInfoComponent.html +2 -2
- package/docs/html/classes/SettingsButtonComponent.html +2 -2
- package/docs/html/classes/SidenavComponent.html +3 -3
- package/docs/html/classes/SidenavFooterDirective.html +2 -2
- package/docs/html/classes/SidenavHeaderDirective.html +2 -2
- package/docs/html/classes/SidenavToggleButtonComponent.html +2 -2
- package/docs/html/classes/UserProfileIconComponent.html +2 -2
- package/docs/html/functions/IsNavigationDividerItem.html +1 -1
- package/docs/html/functions/IsNavigationInsertItem.html +1 -1
- package/docs/html/functions/IsNavigationItem.html +1 -1
- package/docs/html/functions/provideExternalApps.html +1 -1
- package/docs/html/functions/provideLayout.html +1 -1
- package/docs/html/functions/withDefaultHeaderComponent.html +1 -1
- package/docs/html/functions/withDefaultHeaderItems.html +1 -1
- package/docs/html/functions/withFooterComponents.html +1 -1
- package/docs/html/functions/withHeaderComponents.html +1 -1
- package/docs/html/functions/withNavigationConfig.html +1 -1
- package/docs/html/functions/withNavigationInserts.html +1 -1
- package/docs/html/functions/withReleaseInfoModules.html +1 -1
- package/docs/html/functions/withSettingsMenuItems.html +1 -1
- package/docs/html/functions/withUserProfileDataSource.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/NavigationDividerItem.html +2 -2
- package/docs/html/interfaces/NavigationInsertItem.html +2 -2
- package/docs/html/interfaces/NavigationItem.html +2 -2
- package/docs/html/interfaces/NavigationStatus.html +2 -2
- package/docs/html/interfaces/ReleaseInfoModule.html +2 -2
- package/docs/html/interfaces/SettingsMenuItem.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/DefaultHeaderItemComponent.html +1 -1
- package/docs/html/types/ExternalApp.html +1 -1
- package/docs/html/types/ExtractUsernameFromProfileFn.html +1 -1
- package/docs/html/types/Navigation.html +1 -1
- package/docs/html/types/NavigationWithInserts.html +1 -1
- package/docs/html/types/SettingsMenuItemComponent.html +1 -1
- package/docs/html/variables/EXTRACT_USERNAME_FROM_PROFILE.html +1 -1
- package/docs/html/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.html +1 -1
- package/docs/html/variables/RXAP_EXTERNAL_APP.html +1 -1
- package/docs/html/variables/RXAP_EXTERNAL_APP_FILTER.html +1 -1
- package/docs/html/variables/RXAP_FOOTER_COMPONENT.html +1 -1
- package/docs/html/variables/RXAP_HEADER_COMPONENT.html +1 -1
- package/docs/html/variables/RXAP_LAYOUT_APPS_GRID.html +1 -1
- package/docs/html/variables/RXAP_LOGO_CONFIG.html +1 -1
- package/docs/html/variables/RXAP_LOGO_CONFIG_DEFAULTS.html +1 -1
- package/docs/html/variables/RXAP_NAVIGATION_CONFIG.html +1 -1
- package/docs/html/variables/RXAP_NAVIGATION_CONFIG_INSERTS.html +1 -1
- package/docs/html/variables/RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.html +1 -1
- package/docs/html/variables/RXAP_RELEASE_INFO_MODULE.html +1 -1
- package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM.html +1 -1
- package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.html +1 -1
- package/docs/html/variables/RXAP_USER_PROFILE_DATA_SOURCE.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AppsButtonComponent.md +9 -33
- package/docs/markdown/classes/BaseLayoutComponent.md +2 -2
- package/docs/markdown/classes/DefaultHeaderComponent.md +10 -10
- package/docs/markdown/classes/DefaultHeaderService.md +6 -6
- package/docs/markdown/classes/ExternalAppsService.md +18 -18
- package/docs/markdown/classes/FooterComponent.md +5 -5
- package/docs/markdown/classes/FooterDirective.md +4 -4
- package/docs/markdown/classes/FooterService.md +6 -6
- package/docs/markdown/classes/HeaderComponent.md +6 -6
- package/docs/markdown/classes/HeaderDirective.md +4 -4
- package/docs/markdown/classes/HeaderService.md +6 -6
- package/docs/markdown/classes/LayoutComponent.md +6 -6
- package/docs/markdown/classes/LayoutService.md +18 -24
- package/docs/markdown/classes/LogoService.md +6 -6
- package/docs/markdown/classes/MinimalLayoutComponent.md +2 -2
- package/docs/markdown/classes/NavigationComponent.md +16 -50
- package/docs/markdown/classes/NavigationItemComponent.md +19 -117
- package/docs/markdown/classes/NavigationProgressBarComponent.md +4 -4
- package/docs/markdown/classes/NavigationService.md +16 -26
- package/docs/markdown/classes/ReleaseInfoComponent.md +6 -6
- package/docs/markdown/classes/SettingsButtonComponent.md +19 -19
- package/docs/markdown/classes/SidenavComponent.md +18 -18
- package/docs/markdown/classes/SidenavFooterDirective.md +4 -12
- package/docs/markdown/classes/SidenavHeaderDirective.md +4 -12
- package/docs/markdown/classes/SidenavToggleButtonComponent.md +5 -5
- package/docs/markdown/classes/UserProfileIconComponent.md +7 -7
- package/docs/markdown/functions/IsNavigationDividerItem.md +2 -2
- package/docs/markdown/functions/IsNavigationInsertItem.md +2 -2
- package/docs/markdown/functions/IsNavigationItem.md +2 -2
- package/docs/markdown/functions/provideExternalApps.md +2 -2
- package/docs/markdown/functions/provideLayout.md +2 -2
- package/docs/markdown/functions/withDefaultHeaderComponent.md +2 -2
- package/docs/markdown/functions/withDefaultHeaderItems.md +2 -2
- package/docs/markdown/functions/withFooterComponents.md +2 -2
- package/docs/markdown/functions/withHeaderComponents.md +2 -2
- package/docs/markdown/functions/withNavigationConfig.md +2 -2
- package/docs/markdown/functions/withNavigationInserts.md +2 -2
- package/docs/markdown/functions/withReleaseInfoModules.md +2 -2
- package/docs/markdown/functions/withSettingsMenuItems.md +2 -2
- package/docs/markdown/functions/withUserProfileDataSource.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/NavigationDividerItem.md +4 -4
- package/docs/markdown/interfaces/NavigationInsertItem.md +3 -3
- package/docs/markdown/interfaces/NavigationItem.md +8 -8
- package/docs/markdown/interfaces/NavigationStatus.md +3 -3
- package/docs/markdown/interfaces/ReleaseInfoModule.md +5 -5
- package/docs/markdown/interfaces/SettingsMenuItem.md +5 -5
- package/docs/markdown/type-aliases/DefaultHeaderItemComponent.md +2 -2
- package/docs/markdown/type-aliases/ExternalApp.md +2 -2
- package/docs/markdown/type-aliases/ExtractUsernameFromProfileFn.md +2 -2
- package/docs/markdown/type-aliases/Navigation.md +2 -2
- package/docs/markdown/type-aliases/NavigationWithInserts.md +2 -2
- package/docs/markdown/type-aliases/SettingsMenuItemComponent.md +2 -2
- package/docs/markdown/variables/EXTRACT_USERNAME_FROM_PROFILE.md +2 -2
- package/docs/markdown/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +2 -2
- package/docs/markdown/variables/RXAP_EXTERNAL_APP.md +2 -2
- package/docs/markdown/variables/RXAP_EXTERNAL_APP_FILTER.md +2 -2
- package/docs/markdown/variables/RXAP_FOOTER_COMPONENT.md +2 -2
- package/docs/markdown/variables/RXAP_HEADER_COMPONENT.md +2 -2
- package/docs/markdown/variables/RXAP_LAYOUT_APPS_GRID.md +2 -2
- package/docs/markdown/variables/RXAP_LOGO_CONFIG.md +2 -2
- package/docs/markdown/variables/RXAP_LOGO_CONFIG_DEFAULTS.md +2 -2
- package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG.md +2 -2
- package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG_INSERTS.md +2 -2
- package/docs/markdown/variables/RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.md +2 -2
- package/docs/markdown/variables/RXAP_RELEASE_INFO_MODULE.md +2 -2
- package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM.md +2 -2
- package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +2 -2
- package/docs/markdown/variables/RXAP_USER_PROFILE_DATA_SOURCE.md +2 -2
- package/docs/wiki/Class.AppsButtonComponent.md +8 -32
- package/docs/wiki/Class.BaseLayoutComponent.md +1 -1
- package/docs/wiki/Class.DefaultHeaderComponent.md +9 -9
- package/docs/wiki/Class.DefaultHeaderService.md +5 -5
- package/docs/wiki/Class.ExternalAppsService.md +17 -17
- package/docs/wiki/Class.FooterComponent.md +4 -4
- package/docs/wiki/Class.FooterDirective.md +3 -3
- package/docs/wiki/Class.FooterService.md +5 -5
- package/docs/wiki/Class.HeaderComponent.md +5 -5
- package/docs/wiki/Class.HeaderDirective.md +3 -3
- package/docs/wiki/Class.HeaderService.md +5 -5
- package/docs/wiki/Class.LayoutComponent.md +5 -5
- package/docs/wiki/Class.LayoutService.md +17 -23
- package/docs/wiki/Class.LogoService.md +5 -5
- package/docs/wiki/Class.MinimalLayoutComponent.md +1 -1
- package/docs/wiki/Class.NavigationComponent.md +15 -49
- package/docs/wiki/Class.NavigationItemComponent.md +18 -116
- package/docs/wiki/Class.NavigationProgressBarComponent.md +3 -3
- package/docs/wiki/Class.NavigationService.md +15 -25
- package/docs/wiki/Class.ReleaseInfoComponent.md +5 -5
- package/docs/wiki/Class.SettingsButtonComponent.md +18 -18
- package/docs/wiki/Class.SidenavComponent.md +17 -17
- package/docs/wiki/Class.SidenavFooterDirective.md +3 -11
- package/docs/wiki/Class.SidenavHeaderDirective.md +3 -11
- package/docs/wiki/Class.SidenavToggleButtonComponent.md +4 -4
- package/docs/wiki/Class.UserProfileIconComponent.md +6 -6
- package/docs/wiki/Function.IsNavigationDividerItem.md +1 -1
- package/docs/wiki/Function.IsNavigationInsertItem.md +1 -1
- package/docs/wiki/Function.IsNavigationItem.md +1 -1
- package/docs/wiki/Function.provideExternalApps.md +1 -1
- package/docs/wiki/Function.provideLayout.md +1 -1
- package/docs/wiki/Function.withDefaultHeaderComponent.md +1 -1
- package/docs/wiki/Function.withDefaultHeaderItems.md +1 -1
- package/docs/wiki/Function.withFooterComponents.md +1 -1
- package/docs/wiki/Function.withHeaderComponents.md +1 -1
- package/docs/wiki/Function.withNavigationConfig.md +1 -1
- package/docs/wiki/Function.withNavigationInserts.md +1 -1
- package/docs/wiki/Function.withReleaseInfoModules.md +1 -1
- package/docs/wiki/Function.withSettingsMenuItems.md +1 -1
- package/docs/wiki/Function.withUserProfileDataSource.md +1 -1
- package/docs/wiki/Interface.NavigationDividerItem.md +3 -3
- package/docs/wiki/Interface.NavigationInsertItem.md +2 -2
- package/docs/wiki/Interface.NavigationItem.md +7 -7
- package/docs/wiki/Interface.NavigationStatus.md +2 -2
- package/docs/wiki/Interface.ReleaseInfoModule.md +4 -4
- package/docs/wiki/Interface.SettingsMenuItem.md +4 -4
- package/docs/wiki/TypeAlias.DefaultHeaderItemComponent.md +1 -1
- package/docs/wiki/TypeAlias.ExternalApp.md +1 -1
- package/docs/wiki/TypeAlias.ExtractUsernameFromProfileFn.md +1 -1
- package/docs/wiki/TypeAlias.Navigation.md +1 -1
- package/docs/wiki/TypeAlias.NavigationWithInserts.md +1 -1
- package/docs/wiki/TypeAlias.SettingsMenuItemComponent.md +1 -1
- package/docs/wiki/Variable.EXTRACT_USERNAME_FROM_PROFILE.md +1 -1
- package/docs/wiki/Variable.RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +1 -1
- package/docs/wiki/Variable.RXAP_EXTERNAL_APP.md +1 -1
- package/docs/wiki/Variable.RXAP_EXTERNAL_APP_FILTER.md +1 -1
- package/docs/wiki/Variable.RXAP_FOOTER_COMPONENT.md +1 -1
- package/docs/wiki/Variable.RXAP_HEADER_COMPONENT.md +1 -1
- package/docs/wiki/Variable.RXAP_LAYOUT_APPS_GRID.md +1 -1
- package/docs/wiki/Variable.RXAP_LOGO_CONFIG.md +1 -1
- package/docs/wiki/Variable.RXAP_LOGO_CONFIG_DEFAULTS.md +1 -1
- package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG.md +1 -1
- package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG_INSERTS.md +1 -1
- package/docs/wiki/Variable.RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.md +1 -1
- package/docs/wiki/Variable.RXAP_RELEASE_INFO_MODULE.md +1 -1
- package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM.md +1 -1
- package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +1 -1
- package/docs/wiki/Variable.RXAP_USER_PROFILE_DATA_SOURCE.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-layout.mjs +219 -294
- package/fesm2022/rxap-layout.mjs.map +1 -1
- package/package.json +47 -46
- package/src/generators/init/generator.spec.ts +228 -0
- package/src/generators/init/generator.ts +139 -0
- package/src/generators/init/index.ts +5 -0
- package/src/generators/init/schema.d.ts +2 -0
- package/src/generators/init/schema.json +8 -0
- package/{index.d.ts → src/index.ts} +47 -0
- package/src/migrations/18.0.0/add-seperate-external-apps-provider/__snapshots__/add-seperate-external-apps-provider.spec.ts.snap +1 -1
- package/src/migrations/18.0.0/add-seperate-external-apps-provider/add-seperate-external-apps-provider.spec.ts +63 -0
- package/src/migrations/18.0.0/add-seperate-external-apps-provider/add-seperate-external-apps-provider.ts +59 -0
- package/src/migrations/18.0.0/add-theme-provider-to-app-config/__snapshots__/add-theme-provider-to-app-config.spec.ts.snap +1 -1
- package/src/migrations/18.0.0/add-theme-provider-to-app-config/add-theme-provider-to-app-config.spec.ts +61 -0
- package/src/migrations/18.0.0/add-theme-provider-to-app-config/add-theme-provider-to-app-config.ts +44 -0
- package/src/migrations/18.0.0/add-user-theme-provider-to-layout-providers/__snapshots__/add-user-theme-provider-to-layout-providers.spec.ts.snap +1 -1
- package/src/migrations/18.0.0/add-user-theme-provider-to-layout-providers/add-user-theme-provider-to-layout-providers.spec.ts +94 -0
- package/src/migrations/18.0.0/add-user-theme-provider-to-layout-providers/add-user-theme-provider-to-layout-providers.ts +51 -0
- package/src/migrations/18.0.0/add-with-user-profile-provider/__snapshots__/add-with-user-profile-provider.spec.ts.snap +1 -1
- package/src/migrations/18.0.0/add-with-user-profile-provider/add-with-user-profile-provider.spec.ts +94 -0
- package/src/migrations/18.0.0/add-with-user-profile-provider/add-with-user-profile-provider.ts +53 -0
- package/src/test-setup.ts +25 -0
- package/types/rxap-layout.d.ts +507 -0
- package/lib/base-layout/base-layout.component.d.ts +0 -5
- package/lib/default-header/apps-button/apps-button.component.d.ts +0 -16
- package/lib/default-header/default-header.component.d.ts +0 -15
- package/lib/default-header/default-header.service.d.ts +0 -36
- package/lib/default-header/settings-button/settings-button.component.d.ts +0 -33
- package/lib/default-header/sidenav-toggle-button/sidenav-toggle-button.component.d.ts +0 -9
- package/lib/default-header/user-profile-icon/user-profile-icon.component.d.ts +0 -12
- package/lib/external-apps.service.d.ts +0 -26
- package/lib/footer/footer.component.d.ts +0 -9
- package/lib/footer/footer.directive.d.ts +0 -12
- package/lib/footer.service.d.ts +0 -32
- package/lib/header/header.component.d.ts +0 -11
- package/lib/header/header.directive.d.ts +0 -12
- package/lib/header.service.d.ts +0 -34
- package/lib/layout/layout.component.d.ts +0 -11
- package/lib/layout.service.d.ts +0 -27
- package/lib/logo.service.d.ts +0 -10
- package/lib/minimal-layout/minimal-layout.component.d.ts +0 -5
- package/lib/navigation/navigation-item/navigation-item.component.d.ts +0 -28
- package/lib/navigation/navigation-item.d.ts +0 -25
- package/lib/navigation/navigation.component.d.ts +0 -21
- package/lib/navigation-progress-bar/navigation-progress-bar.component.d.ts +0 -8
- package/lib/navigation.service.d.ts +0 -36
- package/lib/provide.d.ts +0 -17
- package/lib/release-info/release-info.component.d.ts +0 -10
- package/lib/sidenav/sidenav-footer.directive.d.ts +0 -8
- package/lib/sidenav/sidenav-header.directive.d.ts +0 -8
- package/lib/sidenav/sidenav.component.d.ts +0 -31
- package/lib/tokens.d.ts +0 -22
- package/lib/types.d.ts +0 -17
|
@@ -126,14 +126,6 @@
|
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
<p class="comment">
|
|
130
|
-
<h3>Implements</h3>
|
|
131
|
-
</p>
|
|
132
|
-
<p class="comment">
|
|
133
|
-
<code>OnChanges</code>
|
|
134
|
-
<code>OnDestroy</code>
|
|
135
|
-
<code>AfterViewInit</code>
|
|
136
|
-
</p>
|
|
137
129
|
|
|
138
130
|
|
|
139
131
|
<section data-compodoc="block-metadata">
|
|
@@ -154,6 +146,10 @@
|
|
|
154
146
|
|
|
155
147
|
|
|
156
148
|
|
|
149
|
+
<tr>
|
|
150
|
+
<td class="col-md-3">host</td>
|
|
151
|
+
<td class="col-md-9"><code>{<br>}</code></td>
|
|
152
|
+
</tr>
|
|
157
153
|
|
|
158
154
|
|
|
159
155
|
|
|
@@ -171,7 +167,6 @@
|
|
|
171
167
|
<td class="col-md-9">
|
|
172
168
|
<code>RouterLinkActive</code>
|
|
173
169
|
<code>RouterLink</code>
|
|
174
|
-
<code>NgIf</code>
|
|
175
170
|
<code>MatRippleModule</code>
|
|
176
171
|
<code>MatIconModule</code>
|
|
177
172
|
<code>IconDirective</code>
|
|
@@ -216,11 +211,6 @@
|
|
|
216
211
|
<tr>
|
|
217
212
|
<td class="col-md-4">
|
|
218
213
|
<ul class="index-list">
|
|
219
|
-
<li>
|
|
220
|
-
<span class="modifier">Protected</span>
|
|
221
|
-
<span class="modifier">Readonly</span>
|
|
222
|
-
<a href="#_subscription" >_subscription</a>
|
|
223
|
-
</li>
|
|
224
214
|
<li>
|
|
225
215
|
<span class="modifier">Public</span>
|
|
226
216
|
<span class="modifier">Readonly</span>
|
|
@@ -228,6 +218,7 @@
|
|
|
228
218
|
</li>
|
|
229
219
|
<li>
|
|
230
220
|
<span class="modifier">Public</span>
|
|
221
|
+
<span class="modifier">Readonly</span>
|
|
231
222
|
<a href="#children" >children</a>
|
|
232
223
|
</li>
|
|
233
224
|
<li>
|
|
@@ -235,11 +226,6 @@
|
|
|
235
226
|
<span class="modifier">Readonly</span>
|
|
236
227
|
<a href="#collapsed" >collapsed</a>
|
|
237
228
|
</li>
|
|
238
|
-
<li>
|
|
239
|
-
<span class="modifier">Protected</span>
|
|
240
|
-
<span class="modifier">Readonly</span>
|
|
241
|
-
<a href="#elementRef" >elementRef</a>
|
|
242
|
-
</li>
|
|
243
229
|
<li>
|
|
244
230
|
<span class="modifier">Public</span>
|
|
245
231
|
<span class="modifier">Readonly</span>
|
|
@@ -260,11 +246,6 @@
|
|
|
260
246
|
<span class="modifier">Readonly</span>
|
|
261
247
|
<a href="#level" >level</a>
|
|
262
248
|
</li>
|
|
263
|
-
<li>
|
|
264
|
-
<span class="modifier">Protected</span>
|
|
265
|
-
<span class="modifier">Readonly</span>
|
|
266
|
-
<a href="#renderer" >renderer</a>
|
|
267
|
-
</li>
|
|
268
249
|
<li>
|
|
269
250
|
<span class="modifier">Protected</span>
|
|
270
251
|
<span class="modifier">Readonly</span>
|
|
@@ -344,7 +325,7 @@
|
|
|
344
325
|
</tr>
|
|
345
326
|
<tr>
|
|
346
327
|
<td class="col-md-2" colspan="2">
|
|
347
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
328
|
+
<div class="io-line">Defined in <a href="" data-line="91" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:91</a></div>
|
|
348
329
|
</td>
|
|
349
330
|
</tr>
|
|
350
331
|
</tbody>
|
|
@@ -364,7 +345,7 @@
|
|
|
364
345
|
</tr>
|
|
365
346
|
<tr>
|
|
366
347
|
<td class="col-md-2" colspan="2">
|
|
367
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
348
|
+
<div class="io-line">Defined in <a href="" data-line="84" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:84</a></div>
|
|
368
349
|
</td>
|
|
369
350
|
</tr>
|
|
370
351
|
</tbody>
|
|
@@ -400,8 +381,8 @@
|
|
|
400
381
|
|
|
401
382
|
<tr>
|
|
402
383
|
<td class="col-md-4">
|
|
403
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
404
|
-
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:
|
|
384
|
+
<div class="io-line">Defined in <a href="" data-line="159"
|
|
385
|
+
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:159</a></div>
|
|
405
386
|
</td>
|
|
406
387
|
</tr>
|
|
407
388
|
|
|
@@ -469,8 +450,8 @@
|
|
|
469
450
|
|
|
470
451
|
<tr>
|
|
471
452
|
<td class="col-md-4">
|
|
472
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
473
|
-
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:
|
|
453
|
+
<div class="io-line">Defined in <a href="" data-line="147"
|
|
454
|
+
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:147</a></div>
|
|
474
455
|
</td>
|
|
475
456
|
</tr>
|
|
476
457
|
|
|
@@ -538,8 +519,8 @@
|
|
|
538
519
|
|
|
539
520
|
<tr>
|
|
540
521
|
<td class="col-md-4">
|
|
541
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
542
|
-
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:
|
|
522
|
+
<div class="io-line">Defined in <a href="" data-line="153"
|
|
523
|
+
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:153</a></div>
|
|
543
524
|
</td>
|
|
544
525
|
</tr>
|
|
545
526
|
|
|
@@ -605,8 +586,8 @@
|
|
|
605
586
|
|
|
606
587
|
<tr>
|
|
607
588
|
<td class="col-md-4">
|
|
608
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
609
|
-
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:
|
|
589
|
+
<div class="io-line">Defined in <a href="" data-line="137"
|
|
590
|
+
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:137</a></div>
|
|
610
591
|
</td>
|
|
611
592
|
</tr>
|
|
612
593
|
|
|
@@ -628,33 +609,6 @@
|
|
|
628
609
|
<h3 id="inputs">
|
|
629
610
|
Properties
|
|
630
611
|
</h3>
|
|
631
|
-
<table class="table table-sm table-bordered">
|
|
632
|
-
<tbody>
|
|
633
|
-
<tr>
|
|
634
|
-
<td class="col-md-4">
|
|
635
|
-
<a name="_subscription"></a>
|
|
636
|
-
<span class="name">
|
|
637
|
-
<span class="modifier">Protected</span>
|
|
638
|
-
<span class="modifier">Readonly</span>
|
|
639
|
-
<span ><b>_subscription</b></span>
|
|
640
|
-
<a href="#_subscription"><span class="icon ion-ios-link"></span></a>
|
|
641
|
-
</span>
|
|
642
|
-
</td>
|
|
643
|
-
</tr>
|
|
644
|
-
<tr>
|
|
645
|
-
<td class="col-md-4">
|
|
646
|
-
<i>Default value : </i><code>new Subscription()</code>
|
|
647
|
-
</td>
|
|
648
|
-
</tr>
|
|
649
|
-
<tr>
|
|
650
|
-
<td class="col-md-4">
|
|
651
|
-
<div class="io-line">Defined in <a href="" data-line="113" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:113</a></div>
|
|
652
|
-
</td>
|
|
653
|
-
</tr>
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
</tbody>
|
|
657
|
-
</table>
|
|
658
612
|
<table class="table table-sm table-bordered">
|
|
659
613
|
<tbody>
|
|
660
614
|
<tr>
|
|
@@ -670,12 +624,27 @@
|
|
|
670
624
|
</tr>
|
|
671
625
|
<tr>
|
|
672
626
|
<td class="col-md-4">
|
|
673
|
-
<i>Default value : </i><code>
|
|
627
|
+
<i>Default value : </i><code>computed(() => {
|
|
628
|
+
const urlParts = this.currentUrl().split('/');
|
|
629
|
+
if (urlParts[0] === '') {
|
|
630
|
+
urlParts[0] = '/';
|
|
631
|
+
}
|
|
632
|
+
const routerLink = coerceArray(this.item().routerLink).map(fragment => fragment === '/' ? ['/'] : fragment.split('/')).flat();
|
|
633
|
+
if (routerLink[0] === '') {
|
|
634
|
+
routerLink[0] = '/';
|
|
635
|
+
}
|
|
636
|
+
for (let i = 0; i < routerLink.length; i++) {
|
|
637
|
+
if (urlParts[i] !== routerLink[i]) {
|
|
638
|
+
return false;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
return true;
|
|
642
|
+
})</code>
|
|
674
643
|
</td>
|
|
675
644
|
</tr>
|
|
676
645
|
<tr>
|
|
677
646
|
<td class="col-md-4">
|
|
678
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
647
|
+
<div class="io-line">Defined in <a href="" data-line="120" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:120</a></div>
|
|
679
648
|
</td>
|
|
680
649
|
</tr>
|
|
681
650
|
|
|
@@ -689,6 +658,7 @@
|
|
|
689
658
|
<a name="children"></a>
|
|
690
659
|
<span class="name">
|
|
691
660
|
<span class="modifier">Public</span>
|
|
661
|
+
<span class="modifier">Readonly</span>
|
|
692
662
|
<span ><b>children</b></span>
|
|
693
663
|
<a href="#children"><span class="icon ion-ios-link"></span></a>
|
|
694
664
|
</span>
|
|
@@ -696,18 +666,15 @@
|
|
|
696
666
|
</tr>
|
|
697
667
|
<tr>
|
|
698
668
|
<td class="col-md-4">
|
|
699
|
-
<i>
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
<tr>
|
|
704
|
-
<td class="col-md-4">
|
|
705
|
-
<i>Default value : </i><code>null</code>
|
|
669
|
+
<i>Default value : </i><code>computed<Navigation | null>(() => {
|
|
670
|
+
const item = this.item();
|
|
671
|
+
return item.children && item.children.length ? item.children : null;
|
|
672
|
+
})</code>
|
|
706
673
|
</td>
|
|
707
674
|
</tr>
|
|
708
675
|
<tr>
|
|
709
676
|
<td class="col-md-4">
|
|
710
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
677
|
+
<div class="io-line">Defined in <a href="" data-line="86" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:86</a></div>
|
|
711
678
|
</td>
|
|
712
679
|
</tr>
|
|
713
680
|
|
|
@@ -734,34 +701,7 @@
|
|
|
734
701
|
</tr>
|
|
735
702
|
<tr>
|
|
736
703
|
<td class="col-md-4">
|
|
737
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
738
|
-
</td>
|
|
739
|
-
</tr>
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
</tbody>
|
|
743
|
-
</table>
|
|
744
|
-
<table class="table table-sm table-bordered">
|
|
745
|
-
<tbody>
|
|
746
|
-
<tr>
|
|
747
|
-
<td class="col-md-4">
|
|
748
|
-
<a name="elementRef"></a>
|
|
749
|
-
<span class="name">
|
|
750
|
-
<span class="modifier">Protected</span>
|
|
751
|
-
<span class="modifier">Readonly</span>
|
|
752
|
-
<span ><b>elementRef</b></span>
|
|
753
|
-
<a href="#elementRef"><span class="icon ion-ios-link"></span></a>
|
|
754
|
-
</span>
|
|
755
|
-
</td>
|
|
756
|
-
</tr>
|
|
757
|
-
<tr>
|
|
758
|
-
<td class="col-md-4">
|
|
759
|
-
<i>Default value : </i><code>inject(ElementRef)</code>
|
|
760
|
-
</td>
|
|
761
|
-
</tr>
|
|
762
|
-
<tr>
|
|
763
|
-
<td class="col-md-4">
|
|
764
|
-
<div class="io-line">Defined in <a href="" data-line="116" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:116</a></div>
|
|
704
|
+
<div class="io-line">Defined in <a href="" data-line="103" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:103</a></div>
|
|
765
705
|
</td>
|
|
766
706
|
</tr>
|
|
767
707
|
|
|
@@ -783,7 +723,7 @@
|
|
|
783
723
|
</tr>
|
|
784
724
|
<tr>
|
|
785
725
|
<td class="col-md-4">
|
|
786
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
726
|
+
<div class="io-line">Defined in <a href="" data-line="91" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:91</a></div>
|
|
787
727
|
</td>
|
|
788
728
|
</tr>
|
|
789
729
|
|
|
@@ -816,7 +756,7 @@
|
|
|
816
756
|
</tr>
|
|
817
757
|
<tr>
|
|
818
758
|
<td class="col-md-4">
|
|
819
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
759
|
+
<div class="io-line">Defined in <a href="" data-line="93" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:93</a></div>
|
|
820
760
|
</td>
|
|
821
761
|
</tr>
|
|
822
762
|
|
|
@@ -843,7 +783,7 @@
|
|
|
843
783
|
</tr>
|
|
844
784
|
<tr>
|
|
845
785
|
<td class="col-md-4">
|
|
846
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
786
|
+
<div class="io-line">Defined in <a href="" data-line="101" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:101</a></div>
|
|
847
787
|
</td>
|
|
848
788
|
</tr>
|
|
849
789
|
|
|
@@ -870,34 +810,7 @@
|
|
|
870
810
|
</tr>
|
|
871
811
|
<tr>
|
|
872
812
|
<td class="col-md-4">
|
|
873
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
874
|
-
</td>
|
|
875
|
-
</tr>
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
</tbody>
|
|
879
|
-
</table>
|
|
880
|
-
<table class="table table-sm table-bordered">
|
|
881
|
-
<tbody>
|
|
882
|
-
<tr>
|
|
883
|
-
<td class="col-md-4">
|
|
884
|
-
<a name="renderer"></a>
|
|
885
|
-
<span class="name">
|
|
886
|
-
<span class="modifier">Protected</span>
|
|
887
|
-
<span class="modifier">Readonly</span>
|
|
888
|
-
<span ><b>renderer</b></span>
|
|
889
|
-
<a href="#renderer"><span class="icon ion-ios-link"></span></a>
|
|
890
|
-
</span>
|
|
891
|
-
</td>
|
|
892
|
-
</tr>
|
|
893
|
-
<tr>
|
|
894
|
-
<td class="col-md-4">
|
|
895
|
-
<i>Default value : </i><code>inject(Renderer2)</code>
|
|
896
|
-
</td>
|
|
897
|
-
</tr>
|
|
898
|
-
<tr>
|
|
899
|
-
<td class="col-md-4">
|
|
900
|
-
<div class="io-line">Defined in <a href="" data-line="117" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:117</a></div>
|
|
813
|
+
<div class="io-line">Defined in <a href="" data-line="84" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:84</a></div>
|
|
901
814
|
</td>
|
|
902
815
|
</tr>
|
|
903
816
|
|
|
@@ -924,7 +837,7 @@
|
|
|
924
837
|
</tr>
|
|
925
838
|
<tr>
|
|
926
839
|
<td class="col-md-4">
|
|
927
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
840
|
+
<div class="io-line">Defined in <a href="" data-line="105" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:105</a></div>
|
|
928
841
|
</td>
|
|
929
842
|
</tr>
|
|
930
843
|
|
|
@@ -943,26 +856,18 @@
|
|
|
943
856
|
transition,
|
|
944
857
|
trigger,
|
|
945
858
|
} from '@angular/animations';
|
|
946
|
-
import {
|
|
947
|
-
NgClass,
|
|
948
|
-
NgIf,
|
|
949
|
-
} from '@angular/common';
|
|
859
|
+
import { NgClass } from '@angular/common';
|
|
950
860
|
import {
|
|
951
861
|
ChangeDetectionStrategy,
|
|
952
862
|
Component,
|
|
953
863
|
computed,
|
|
954
|
-
ElementRef,
|
|
955
864
|
forwardRef,
|
|
956
865
|
inject,
|
|
957
866
|
input,
|
|
958
|
-
OnChanges,
|
|
959
|
-
OnDestroy,
|
|
960
|
-
Renderer2,
|
|
961
867
|
signal,
|
|
962
|
-
|
|
963
|
-
viewChild,
|
|
964
|
-
ViewEncapsulation, AfterViewInit,
|
|
868
|
+
ViewEncapsulation,
|
|
965
869
|
} from '@angular/core';
|
|
870
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
966
871
|
import { MatRippleModule } from '@angular/material/core';
|
|
967
872
|
import { MatDividerModule } from '@angular/material/divider';
|
|
968
873
|
import { MatIconModule } from '@angular/material/icon';
|
|
@@ -974,14 +879,11 @@ import {
|
|
|
974
879
|
} from '@angular/router';
|
|
975
880
|
import { IconDirective } from '@rxap/material-directives/icon';
|
|
976
881
|
import { coerceArray } from '@rxap/utilities';
|
|
977
|
-
import {
|
|
978
|
-
debounceTime,
|
|
979
|
-
Subscription,
|
|
980
|
-
} from 'rxjs';
|
|
882
|
+
import { debounceTime } from 'rxjs';
|
|
981
883
|
import {
|
|
982
884
|
filter,
|
|
885
|
+
map,
|
|
983
886
|
startWith,
|
|
984
|
-
tap,
|
|
985
887
|
} from 'rxjs/operators';
|
|
986
888
|
import { LayoutService } from '../../layout.service';
|
|
987
889
|
import {
|
|
@@ -1015,27 +917,30 @@ import { NavigationComponent } from '../navigation.component';
|
|
|
1015
917
|
]),
|
|
1016
918
|
]),
|
|
1017
919
|
],
|
|
920
|
+
host: {
|
|
921
|
+
'[class.active]': 'active()',
|
|
922
|
+
},
|
|
1018
923
|
imports: [
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
]
|
|
924
|
+
RouterLinkActive,
|
|
925
|
+
RouterLink,
|
|
926
|
+
MatRippleModule,
|
|
927
|
+
MatIconModule,
|
|
928
|
+
IconDirective,
|
|
929
|
+
MatDividerModule,
|
|
930
|
+
forwardRef(() => NavigationComponent),
|
|
931
|
+
NgClass
|
|
932
|
+
]
|
|
1029
933
|
})
|
|
1030
|
-
export class NavigationItemComponent
|
|
1031
|
-
implements OnChanges, OnDestroy, AfterViewInit {
|
|
934
|
+
export class NavigationItemComponent {
|
|
1032
935
|
|
|
1033
936
|
public readonly level = input(0);
|
|
1034
937
|
|
|
1035
|
-
public children
|
|
938
|
+
public readonly children = computed<Navigation | null>(() => {
|
|
939
|
+
const item = this.item();
|
|
940
|
+
return item.children && item.children.length ? item.children : null;
|
|
941
|
+
});
|
|
1036
942
|
|
|
1037
943
|
public readonly item = input.required<NavigationItem>();
|
|
1038
|
-
public readonly active = signal(false);
|
|
1039
944
|
|
|
1040
945
|
public readonly itemClasses = computed(() => {
|
|
1041
946
|
let classes = `level-${ this.level() * 4 }`;
|
|
@@ -1049,11 +954,37 @@ export class NavigationItemComponent
|
|
|
1049
954
|
|
|
1050
955
|
public readonly collapsed = computed(() => this.layoutService.collapsed());
|
|
1051
956
|
|
|
1052
|
-
protected readonly _subscription = new Subscription();
|
|
1053
|
-
|
|
1054
957
|
protected readonly router = inject(Router);
|
|
1055
|
-
|
|
1056
|
-
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* The current router url. Updated (debounced) after each navigation.
|
|
961
|
+
*/
|
|
962
|
+
private readonly currentUrl = toSignal(
|
|
963
|
+
this.router.events.pipe(
|
|
964
|
+
filter((event) => event instanceof NavigationEnd),
|
|
965
|
+
debounceTime(100),
|
|
966
|
+
startWith(true),
|
|
967
|
+
map(() => this.router.url),
|
|
968
|
+
),
|
|
969
|
+
{ initialValue: this.router.url },
|
|
970
|
+
);
|
|
971
|
+
|
|
972
|
+
public readonly active = computed(() => {
|
|
973
|
+
const urlParts = this.currentUrl().split('/');
|
|
974
|
+
if (urlParts[0] === '') {
|
|
975
|
+
urlParts[0] = '/';
|
|
976
|
+
}
|
|
977
|
+
const routerLink = coerceArray(this.item().routerLink).map(fragment => fragment === '/' ? ['/'] : fragment.split('/')).flat();
|
|
978
|
+
if (routerLink[0] === '') {
|
|
979
|
+
routerLink[0] = '/';
|
|
980
|
+
}
|
|
981
|
+
for (let i = 0; i < routerLink.length; i++) {
|
|
982
|
+
if (urlParts[i] !== routerLink[i]) {
|
|
983
|
+
return false;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
return true;
|
|
987
|
+
});
|
|
1057
988
|
|
|
1058
989
|
onClick() {
|
|
1059
990
|
if (this.layoutService.isMobile() || this.layoutService.collapsed()) {
|
|
@@ -1061,53 +992,6 @@ export class NavigationItemComponent
|
|
|
1061
992
|
}
|
|
1062
993
|
}
|
|
1063
994
|
|
|
1064
|
-
public ngOnChanges(changes: SimpleChanges) {
|
|
1065
|
-
if (changes['item']) {
|
|
1066
|
-
const item: NavigationItem = changes['item'].currentValue;
|
|
1067
|
-
this.children =
|
|
1068
|
-
item.children && item.children.length ? item.children : null;
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
public ngAfterViewInit() {
|
|
1073
|
-
this._subscription.add(
|
|
1074
|
-
this.router.events
|
|
1075
|
-
.pipe(
|
|
1076
|
-
filter((event) => event instanceof NavigationEnd),
|
|
1077
|
-
debounceTime(100),
|
|
1078
|
-
startWith(true),
|
|
1079
|
-
tap(() => {
|
|
1080
|
-
let isActive = true;
|
|
1081
|
-
const urlParts = this.router.url.split('/');
|
|
1082
|
-
if (urlParts[0] === '') {
|
|
1083
|
-
urlParts[0] = '/';
|
|
1084
|
-
}
|
|
1085
|
-
const routerLink = coerceArray(this.item().routerLink).map(fragment => fragment === '/' ? ['/'] : fragment.split('/')).flat();
|
|
1086
|
-
if (routerLink[0] === '') {
|
|
1087
|
-
routerLink[0] = '/';
|
|
1088
|
-
}
|
|
1089
|
-
for (let i = 0; i < routerLink.length; i++) {
|
|
1090
|
-
if (urlParts[i] !== routerLink[i]) {
|
|
1091
|
-
isActive = false;
|
|
1092
|
-
break;
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
this.active.set(isActive);
|
|
1096
|
-
if (isActive) {
|
|
1097
|
-
this.renderer.addClass(this.elementRef.nativeElement, 'active');
|
|
1098
|
-
} else {
|
|
1099
|
-
this.renderer.removeClass(this.elementRef.nativeElement, 'active');
|
|
1100
|
-
}
|
|
1101
|
-
}),
|
|
1102
|
-
)
|
|
1103
|
-
.subscribe(),
|
|
1104
|
-
);
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
public ngOnDestroy() {
|
|
1108
|
-
this._subscription?.unsubscribe();
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
995
|
// region type save item property
|
|
1112
996
|
|
|
1113
997
|
// required to check the type of the item property in the ngFor loop
|
|
@@ -1163,7 +1047,7 @@ export class NavigationItemComponent
|
|
|
1163
1047
|
<mat-divider></mat-divider>
|
|
1164
1048
|
|
|
1165
1049
|
<ul [@sub-nav]
|
|
1166
|
-
[items]="children ?? []"
|
|
1050
|
+
[items]="children() ?? []"
|
|
1167
1051
|
[level]="level() + 1"
|
|
1168
1052
|
rxap-navigation
|
|
1169
1053
|
>
|
|
@@ -1207,7 +1091,7 @@ export class NavigationItemComponent
|
|
|
1207
1091
|
<script src="../js/libs/htmlparser.js"></script>
|
|
1208
1092
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
1209
1093
|
<script>
|
|
1210
|
-
var COMPONENT_TEMPLATE = '<div><div [ngClass]="{ \'border-l-4 text-accent-400 border-accent-600\': active(), }"> <a [routerLink]="item().routerLink" class="h-12 pl-4 pr-5 flex flex-row justify-between items-center gap-x-4 text-black" matRipple routerLinkActive (click)="onClick()" > <span [ngClass]="itemClasses()" class="grow whitespace-nowrap" > {{ item().label }} </span> @if (item().icon; as icon) { <mat-icon [rxapIcon]="icon"></mat-icon> } </a> @if (item().children?.length && active()) { <mat-divider></mat-divider> <ul [@sub-nav] [items]="children ?? []" [level]="level() + 1" rxap-navigation > </ul> <mat-divider></mat-divider> }</div></div>'
|
|
1094
|
+
var COMPONENT_TEMPLATE = '<div><div [ngClass]="{ \'border-l-4 text-accent-400 border-accent-600\': active(), }"> <a [routerLink]="item().routerLink" class="h-12 pl-4 pr-5 flex flex-row justify-between items-center gap-x-4 text-black" matRipple routerLinkActive (click)="onClick()" > <span [ngClass]="itemClasses()" class="grow whitespace-nowrap" > {{ item().label }} </span> @if (item().icon; as icon) { <mat-icon [rxapIcon]="icon"></mat-icon> } </a> @if (item().children?.length && active()) { <mat-divider></mat-divider> <ul [@sub-nav] [items]="children() ?? []" [level]="level() + 1" rxap-navigation > </ul> <mat-divider></mat-divider> }</div></div>'
|
|
1211
1095
|
var COMPONENTS = [{'name': 'AppsButtonComponent', 'selector': 'rxap-apps-button'},{'name': 'BaseLayoutComponent', 'selector': 'rxap-base-layout'},{'name': 'DefaultHeaderComponent', 'selector': 'rxap-default-header'},{'name': 'FooterComponent', 'selector': 'rxap-footer'},{'name': 'HeaderComponent', 'selector': 'rxap-header'},{'name': 'LayoutComponent', 'selector': 'rxap-layout'},{'name': 'MinimalLayoutComponent', 'selector': 'rxap-minimal-layout'},{'name': 'NavigationComponent', 'selector': 'ul[rxap-navigation]'},{'name': 'NavigationItemComponent', 'selector': 'li[rxap-navigation-item]'},{'name': 'NavigationProgressBarComponent', 'selector': 'rxap-navigation-progress-bar'},{'name': 'ReleaseInfoComponent', 'selector': 'rxap-release-info'},{'name': 'SettingsButtonComponent', 'selector': 'rxap-settings-button'},{'name': 'SidenavComponent', 'selector': 'rxap-sidenav'},{'name': 'SidenavToggleButtonComponent', 'selector': 'rxap-sidenav-toggle-button'},{'name': 'UserProfileIconComponent', 'selector': 'rxap-user-profile-icon'}];
|
|
1212
1096
|
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'HeaderDirective', 'selector': '[rxapHeader]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
1213
1097
|
var ACTUAL_COMPONENT = {'name': 'NavigationItemComponent'};
|