@rxap/layout 18.0.3-dev.1 → 18.1.0-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 +18 -0
- package/README.md +267 -1
- package/compodoc/changelog.html +16 -0
- package/compodoc/components/AppsButtonComponent.html +197 -153
- package/compodoc/components/BaseLayoutComponent.html +351 -0
- package/compodoc/components/DefaultHeaderComponent.html +545 -0
- package/compodoc/components/FooterComponent.html +58 -79
- package/compodoc/components/HeaderComponent.html +49 -294
- package/compodoc/components/LanguageSelectorComponent.html +6 -54
- package/compodoc/components/LayoutComponent.html +69 -464
- package/compodoc/components/MinimalLayoutComponent.html +349 -0
- package/compodoc/components/NavigationComponent.html +116 -312
- package/compodoc/components/NavigationItemComponent.html +130 -361
- package/compodoc/components/NavigationProgressBarComponent.html +41 -107
- package/compodoc/components/ReleaseInfoComponent.html +536 -0
- package/compodoc/components/SettingsButtonComponent.html +186 -225
- package/compodoc/components/SidenavComponent.html +566 -142
- package/compodoc/components/SidenavToggleButtonComponent.html +71 -91
- package/compodoc/components/SignOutComponent.html +7 -60
- package/compodoc/components/UserProfileIconComponent.html +97 -161
- package/compodoc/dependencies.html +9 -25
- package/compodoc/directives/FooterDirective-1.html +293 -0
- package/compodoc/directives/FooterDirective.html +8 -86
- package/compodoc/directives/HeaderDirective.html +293 -0
- package/compodoc/index.html +177 -2
- package/compodoc/injectables/ExternalAppsService.html +1311 -0
- package/compodoc/injectables/FooterService.html +573 -0
- package/compodoc/injectables/HeaderService.html +576 -0
- package/compodoc/injectables/LayoutService.html +899 -0
- package/compodoc/injectables/LogoService.html +411 -0
- package/compodoc/injectables/NavigationService.html +46 -57
- package/compodoc/interfaces/ReleaseInfoModule.html +385 -0
- package/compodoc/interfaces/SettingsMenuItem.html +385 -0
- package/compodoc/js/menu-wc.js +24 -40
- package/compodoc/js/menu-wc_es5.js +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/functions.html +532 -0
- package/compodoc/miscellaneous/typealiases.html +40 -2
- package/compodoc/miscellaneous/variables.html +123 -9
- package/compodoc/overview.html +2 -10
- package/compodoc/properties.html +1 -1
- package/docs/assets/highlight.css +42 -0
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AppsButtonComponent.html +8 -8
- package/docs/classes/BaseLayoutComponent.html +2 -0
- package/docs/classes/DefaultHeaderComponent.html +7 -0
- package/docs/classes/ExternalAppsService.html +19 -0
- package/docs/classes/FooterComponent.html +5 -3
- package/docs/classes/FooterDirective.html +2 -2
- package/docs/classes/FooterService.html +14 -0
- package/docs/classes/HeaderComponent.html +6 -8
- package/docs/classes/HeaderDirective.html +8 -0
- package/docs/classes/HeaderService.html +14 -0
- package/docs/classes/LayoutComponent.html +4 -12
- package/docs/classes/LayoutService.html +20 -0
- package/docs/classes/LogoService.html +7 -0
- package/docs/classes/MinimalLayoutComponent.html +2 -0
- package/docs/classes/NavigationComponent.html +7 -8
- package/docs/classes/NavigationItemComponent.html +6 -9
- package/docs/classes/NavigationProgressBarComponent.html +3 -3
- package/docs/classes/NavigationService.html +3 -3
- package/docs/classes/ReleaseInfoComponent.html +6 -0
- package/docs/classes/SettingsButtonComponent.html +6 -11
- package/docs/classes/SidenavComponent.html +17 -5
- package/docs/classes/SidenavFooterDirective.html +2 -2
- package/docs/classes/SidenavHeaderDirective.html +2 -2
- package/docs/classes/SidenavToggleButtonComponent.html +4 -3
- package/docs/classes/UserProfileIconComponent.html +5 -4
- package/docs/documentation.json +9635 -9292
- package/docs/functions/IsNavigationDividerItem.html +1 -1
- package/docs/functions/IsNavigationInsertItem.html +1 -1
- package/docs/functions/IsNavigationItem.html +1 -1
- package/docs/functions/provideLayout.html +1 -0
- package/docs/functions/widthDefaultHeaderComponent.html +1 -0
- package/docs/functions/withExternalApps.html +1 -0
- package/docs/functions/withFooterComponents.html +1 -0
- package/docs/functions/withHeaderComponents.html +1 -0
- package/docs/functions/withNavigationConfig.html +1 -0
- package/docs/functions/withNavigationInserts.html +1 -0
- package/docs/functions/withReleaseInfoModules.html +1 -0
- package/docs/functions/withSettingsMenuItems.html +1 -0
- package/docs/index.html +65 -2
- package/docs/interfaces/NavigationDividerItem.html +2 -2
- package/docs/interfaces/NavigationInsertItem.html +2 -2
- package/docs/interfaces/NavigationItem.html +2 -2
- package/docs/interfaces/NavigationStatus.html +2 -2
- package/docs/interfaces/ReleaseInfoModule.html +4 -0
- package/docs/interfaces/SettingsMenuItem.html +4 -0
- package/docs/modules.html +31 -17
- package/docs/types/ExternalApp.html +1 -0
- package/docs/types/ExtractUsernameFromProfileFn.html +1 -1
- package/docs/types/Navigation.html +1 -1
- package/docs/types/NavigationWithInserts.html +1 -1
- package/docs/types/SettingsMenuItemComponent.html +1 -0
- package/docs/variables/EXTRACT_USERNAME_FROM_PROFILE.html +1 -1
- package/docs/variables/RXAP_EXTERNAL_APP.html +1 -0
- package/docs/variables/RXAP_EXTERNAL_APP_FILTER.html +1 -0
- package/docs/variables/RXAP_FOOTER_COMPONENT.html +1 -1
- package/docs/variables/RXAP_HEADER_COMPONENT.html +1 -1
- package/docs/variables/RXAP_LAYOUT_APPS_GRID.html +1 -1
- package/docs/variables/RXAP_LOGO_CONFIG.html +1 -1
- package/docs/variables/RXAP_NAVIGATION_CONFIG.html +1 -1
- package/docs/variables/RXAP_NAVIGATION_CONFIG_INSERTS.html +1 -1
- package/docs/variables/RXAP_RELEASE_INFO_MODULE.html +1 -0
- package/docs/variables/RXAP_SETTINGS_MENU_ITEM.html +1 -0
- package/docs/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.html +1 -0
- package/esm2022/index.mjs +35 -40
- package/esm2022/lib/base-layout/base-layout.component.mjs +16 -0
- package/esm2022/lib/default-header/apps-button/apps-button.component.mjs +40 -0
- package/esm2022/lib/default-header/default-header.component.mjs +32 -0
- package/esm2022/lib/default-header/settings-button/settings-button.component.mjs +73 -0
- package/esm2022/lib/default-header/sidenav-toggle-button/sidenav-toggle-button.component.mjs +24 -0
- package/esm2022/lib/default-header/user-profile-icon/user-profile-icon.component.mjs +35 -0
- package/esm2022/lib/external-apps.service.mjs +99 -0
- package/esm2022/lib/footer/footer.component.mjs +13 -13
- package/esm2022/lib/footer/footer.directive.mjs +30 -0
- package/esm2022/lib/footer.service.mjs +58 -0
- package/esm2022/lib/header/header.component.mjs +17 -65
- package/esm2022/lib/header/header.directive.mjs +30 -0
- package/esm2022/lib/header.service.mjs +60 -0
- package/esm2022/lib/layout/layout.component.mjs +33 -47
- package/esm2022/lib/layout.service.mjs +93 -0
- package/esm2022/lib/logo.service.mjs +23 -0
- package/esm2022/lib/minimal-layout/minimal-layout.component.mjs +14 -0
- package/esm2022/lib/navigation/navigation-item/navigation-item.component.mjs +30 -64
- package/esm2022/lib/navigation/navigation.component.mjs +22 -48
- package/esm2022/lib/navigation-progress-bar/navigation-progress-bar.component.mjs +23 -0
- package/esm2022/lib/navigation.service.mjs +141 -0
- package/esm2022/lib/provide.mjs +80 -0
- package/esm2022/lib/release-info/release-info.component.mjs +28 -0
- package/esm2022/lib/sidenav/sidenav.component.mjs +50 -33
- package/esm2022/lib/tokens.mjs +10 -1
- package/esm2022/lib/types.mjs +1 -1
- package/fesm2022/rxap-layout.mjs +856 -833
- package/fesm2022/rxap-layout.mjs.map +1 -1
- package/index.d.ts +18 -19
- package/lib/base-layout/base-layout.component.d.ts +5 -0
- package/lib/default-header/apps-button/apps-button.component.d.ts +15 -0
- package/lib/default-header/default-header.component.d.ts +11 -0
- package/lib/{header → default-header}/settings-button/settings-button.component.d.ts +6 -14
- package/lib/{header → default-header}/sidenav-toggle-button/sidenav-toggle-button.component.d.ts +3 -5
- package/lib/default-header/user-profile-icon/user-profile-icon.component.d.ts +10 -0
- package/lib/external-apps.service.d.ts +26 -0
- package/lib/footer/footer.component.d.ts +3 -3
- package/lib/{footer.directive.d.ts → footer/footer.directive.d.ts} +2 -4
- package/lib/footer.service.d.ts +32 -0
- package/lib/header/header.component.d.ts +6 -12
- package/lib/header/header.directive.d.ts +12 -0
- package/lib/header.service.d.ts +34 -0
- package/lib/layout/layout.component.d.ts +4 -17
- package/lib/layout.service.d.ts +26 -0
- package/lib/logo.service.d.ts +10 -0
- package/lib/minimal-layout/minimal-layout.component.d.ts +5 -0
- package/lib/navigation/navigation-item/navigation-item.component.d.ts +10 -18
- package/lib/navigation/navigation.component.d.ts +10 -15
- package/lib/{header/navigation-progress-bar → navigation-progress-bar}/navigation-progress-bar.component.d.ts +1 -3
- package/lib/{navigation/navigation.service.d.ts → navigation.service.d.ts} +4 -5
- package/lib/provide.d.ts +13 -0
- package/lib/release-info/release-info.component.d.ts +9 -0
- package/lib/sidenav/sidenav.component.d.ts +18 -6
- package/lib/tokens.d.ts +12 -3
- package/lib/types.d.ts +15 -4
- package/package.json +30 -66
- package/theme.css +1 -1
- package/docs/classes/AppUrlService.html +0 -13
- package/docs/classes/AuthenticationServiceMock.html +0 -3
- package/docs/classes/LanguageSelectorComponent.html +0 -3
- package/docs/classes/LayoutComponentService.html +0 -15
- package/docs/classes/ReplaceRouterPathsPipe.html +0 -4
- package/docs/classes/ReplaceRouterPathsService.html +0 -3
- package/docs/classes/ResetButtonComponent.html +0 -3
- package/docs/classes/SidenavComponentService.html +0 -5
- package/docs/classes/SignOutComponent.html +0 -4
- package/docs/classes/ToggleWindowSidenavButtonComponent.html +0 -5
- package/docs/classes/VersionComponent.html +0 -7
- package/docs/classes/WindowContainerSidenavComponent.html +0 -10
- package/docs/interfaces/ExternalApps.html +0 -8
- package/docs/interfaces/LogoConfig.html +0 -4
- package/esm2022/lib/app-url.service.mjs +0 -78
- package/esm2022/lib/authentication.service.mock.mjs +0 -13
- package/esm2022/lib/footer.directive.mjs +0 -40
- package/esm2022/lib/header/apps-button/apps-button.component.mjs +0 -46
- package/esm2022/lib/header/language-selector/language-selector.component.mjs +0 -35
- package/esm2022/lib/header/navigation-progress-bar/navigation-progress-bar.component.mjs +0 -30
- package/esm2022/lib/header/reset-button/reset-button.component.mjs +0 -23
- package/esm2022/lib/header/settings-button/settings-button.component.mjs +0 -87
- package/esm2022/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.mjs +0 -26
- package/esm2022/lib/header/sign-out/sign-out.component.mjs +0 -23
- package/esm2022/lib/header/user-profile-icon/user-profile-icon.component.mjs +0 -45
- package/esm2022/lib/layout/layout.component.service.mjs +0 -77
- package/esm2022/lib/navigation/navigation.service.mjs +0 -145
- package/esm2022/lib/navigation/replace-router-paths.pipe.mjs +0 -22
- package/esm2022/lib/navigation/replace-router-paths.service.mjs +0 -15
- package/esm2022/lib/sidenav/sidenav.component.service.mjs +0 -22
- package/esm2022/lib/sidenav/version/version.component.mjs +0 -28
- package/esm2022/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.mjs +0 -30
- package/esm2022/lib/window-container-sidenav/window-container-sidenav.component.mjs +0 -54
- package/lib/app-url.service.d.ts +0 -29
- package/lib/authentication.service.mock.d.ts +0 -6
- package/lib/header/apps-button/apps-button.component.d.ts +0 -16
- package/lib/header/language-selector/language-selector.component.d.ts +0 -8
- package/lib/header/reset-button/reset-button.component.d.ts +0 -8
- package/lib/header/sign-out/sign-out.component.d.ts +0 -9
- package/lib/header/user-profile-icon/user-profile-icon.component.d.ts +0 -15
- package/lib/layout/layout.component.service.d.ts +0 -25
- package/lib/navigation/replace-router-paths.pipe.d.ts +0 -11
- package/lib/navigation/replace-router-paths.service.d.ts +0 -7
- package/lib/sidenav/sidenav.component.service.d.ts +0 -11
- package/lib/sidenav/version/version.component.d.ts +0 -14
- package/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.d.ts +0 -9
- package/lib/window-container-sidenav/window-container-sidenav.component.d.ts +0 -17
|
@@ -221,6 +221,7 @@
|
|
|
221
221
|
<ul class="index-list">
|
|
222
222
|
<li>
|
|
223
223
|
<span class="modifier">Public</span>
|
|
224
|
+
<span class="modifier">Readonly</span>
|
|
224
225
|
<a href="#active" >active</a>
|
|
225
226
|
</li>
|
|
226
227
|
<li>
|
|
@@ -228,15 +229,24 @@
|
|
|
228
229
|
<a href="#children" >children</a>
|
|
229
230
|
</li>
|
|
230
231
|
<li>
|
|
231
|
-
<span class="modifier"></span>
|
|
232
232
|
<span class="modifier">Public</span>
|
|
233
|
-
|
|
233
|
+
<span class="modifier">Readonly</span>
|
|
234
|
+
<a href="#collapsed" >collapsed</a>
|
|
235
|
+
</li>
|
|
236
|
+
<li>
|
|
237
|
+
<span class="modifier">Public</span>
|
|
238
|
+
<span class="modifier">Readonly</span>
|
|
239
|
+
<a href="#item" >item</a>
|
|
240
|
+
</li>
|
|
241
|
+
<li>
|
|
242
|
+
<span class="modifier">Public</span>
|
|
243
|
+
<span class="modifier">Readonly</span>
|
|
244
|
+
<a href="#itemClasses" >itemClasses</a>
|
|
234
245
|
</li>
|
|
235
246
|
<li>
|
|
236
|
-
<span class="modifier"></span>
|
|
237
247
|
<span class="modifier">Public</span>
|
|
238
248
|
<span class="modifier">Readonly</span>
|
|
239
|
-
<a href="#
|
|
249
|
+
<a href="#level" >level</a>
|
|
240
250
|
</li>
|
|
241
251
|
</ul>
|
|
242
252
|
</td>
|
|
@@ -285,148 +295,12 @@
|
|
|
285
295
|
</tr>
|
|
286
296
|
|
|
287
297
|
|
|
288
|
-
<tr>
|
|
289
|
-
<td class="col-md-4">
|
|
290
|
-
<h6><b>HostBindings</b></h6>
|
|
291
|
-
</td>
|
|
292
|
-
</tr>
|
|
293
|
-
<tr>
|
|
294
|
-
<td class="col-md-4">
|
|
295
|
-
<ul class="index-list">
|
|
296
|
-
<li>
|
|
297
|
-
<a href="#class.active" >class.active</a>
|
|
298
|
-
</li>
|
|
299
|
-
</ul>
|
|
300
|
-
</td>
|
|
301
|
-
</tr>
|
|
302
298
|
|
|
303
299
|
|
|
304
|
-
<tr>
|
|
305
|
-
<td class="col-md-4">
|
|
306
|
-
<h6><b>Accessors</b></h6>
|
|
307
|
-
</td>
|
|
308
|
-
</tr>
|
|
309
|
-
<tr>
|
|
310
|
-
<td class="col-md-4">
|
|
311
|
-
<ul class="index-list">
|
|
312
|
-
<li>
|
|
313
|
-
<a href="#isActive" >isActive</a>
|
|
314
|
-
</li>
|
|
315
|
-
</ul>
|
|
316
|
-
</td>
|
|
317
|
-
</tr>
|
|
318
300
|
</tbody>
|
|
319
301
|
</table>
|
|
320
302
|
</section>
|
|
321
303
|
|
|
322
|
-
<section data-compodoc="block-constructor">
|
|
323
|
-
<h3 id="constructor">Constructor</h3>
|
|
324
|
-
<table class="table table-sm table-bordered">
|
|
325
|
-
<tbody>
|
|
326
|
-
<tr>
|
|
327
|
-
<td class="col-md-4">
|
|
328
|
-
<code>constructor(router: Router, sidenav: <a href="../injectables/SidenavComponentService.html" target="_self">SidenavComponentService</a>, elementRef: ElementRef, renderer: Renderer2, overlay: Overlay, viewContainerRef: ViewContainerRef)</code>
|
|
329
|
-
</td>
|
|
330
|
-
</tr>
|
|
331
|
-
<tr>
|
|
332
|
-
<td class="col-md-4">
|
|
333
|
-
<div class="io-line">Defined in <a href="" data-line="122" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:122</a></div>
|
|
334
|
-
</td>
|
|
335
|
-
</tr>
|
|
336
|
-
|
|
337
|
-
<tr>
|
|
338
|
-
<td class="col-md-4">
|
|
339
|
-
<div>
|
|
340
|
-
<b>Parameters :</b>
|
|
341
|
-
<table class="params">
|
|
342
|
-
<thead>
|
|
343
|
-
<tr>
|
|
344
|
-
<td>Name</td>
|
|
345
|
-
<td>Type</td>
|
|
346
|
-
<td>Optional</td>
|
|
347
|
-
</tr>
|
|
348
|
-
</thead>
|
|
349
|
-
<tbody>
|
|
350
|
-
<tr>
|
|
351
|
-
<td>router</td>
|
|
352
|
-
|
|
353
|
-
<td>
|
|
354
|
-
<code>Router</code>
|
|
355
|
-
</td>
|
|
356
|
-
|
|
357
|
-
<td>
|
|
358
|
-
No
|
|
359
|
-
</td>
|
|
360
|
-
|
|
361
|
-
</tr>
|
|
362
|
-
<tr>
|
|
363
|
-
<td>sidenav</td>
|
|
364
|
-
|
|
365
|
-
<td>
|
|
366
|
-
<code><a href="../injectables/SidenavComponentService.html" target="_self" >SidenavComponentService</a></code>
|
|
367
|
-
</td>
|
|
368
|
-
|
|
369
|
-
<td>
|
|
370
|
-
No
|
|
371
|
-
</td>
|
|
372
|
-
|
|
373
|
-
</tr>
|
|
374
|
-
<tr>
|
|
375
|
-
<td>elementRef</td>
|
|
376
|
-
|
|
377
|
-
<td>
|
|
378
|
-
<code>ElementRef</code>
|
|
379
|
-
</td>
|
|
380
|
-
|
|
381
|
-
<td>
|
|
382
|
-
No
|
|
383
|
-
</td>
|
|
384
|
-
|
|
385
|
-
</tr>
|
|
386
|
-
<tr>
|
|
387
|
-
<td>renderer</td>
|
|
388
|
-
|
|
389
|
-
<td>
|
|
390
|
-
<code>Renderer2</code>
|
|
391
|
-
</td>
|
|
392
|
-
|
|
393
|
-
<td>
|
|
394
|
-
No
|
|
395
|
-
</td>
|
|
396
|
-
|
|
397
|
-
</tr>
|
|
398
|
-
<tr>
|
|
399
|
-
<td>overlay</td>
|
|
400
|
-
|
|
401
|
-
<td>
|
|
402
|
-
<code>Overlay</code>
|
|
403
|
-
</td>
|
|
404
|
-
|
|
405
|
-
<td>
|
|
406
|
-
No
|
|
407
|
-
</td>
|
|
408
|
-
|
|
409
|
-
</tr>
|
|
410
|
-
<tr>
|
|
411
|
-
<td>viewContainerRef</td>
|
|
412
|
-
|
|
413
|
-
<td>
|
|
414
|
-
<code>ViewContainerRef</code>
|
|
415
|
-
</td>
|
|
416
|
-
|
|
417
|
-
<td>
|
|
418
|
-
No
|
|
419
|
-
</td>
|
|
420
|
-
|
|
421
|
-
</tr>
|
|
422
|
-
</tbody>
|
|
423
|
-
</table>
|
|
424
|
-
</div>
|
|
425
|
-
</td>
|
|
426
|
-
</tr>
|
|
427
|
-
</tbody>
|
|
428
|
-
</table>
|
|
429
|
-
</section>
|
|
430
304
|
|
|
431
305
|
<section data-compodoc="block-inputs">
|
|
432
306
|
<h3 id="inputs">Inputs</h3>
|
|
@@ -438,12 +312,6 @@
|
|
|
438
312
|
<b>item</b>
|
|
439
313
|
</td>
|
|
440
314
|
</tr>
|
|
441
|
-
<tr>
|
|
442
|
-
<td class="col-md-4">
|
|
443
|
-
<i>Type : </i> <code><a href="../interfaces/NavigationItem.html" target="_self" >NavigationItem</a></code>
|
|
444
|
-
|
|
445
|
-
</td>
|
|
446
|
-
</tr>
|
|
447
315
|
<tr>
|
|
448
316
|
<td class="col-md-4">
|
|
449
317
|
<i>Required : </i> <b>true</b>
|
|
@@ -451,7 +319,7 @@
|
|
|
451
319
|
</tr>
|
|
452
320
|
<tr>
|
|
453
321
|
<td class="col-md-2" colspan="2">
|
|
454
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
322
|
+
<div class="io-line">Defined in <a href="" data-line="98" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:98</a></div>
|
|
455
323
|
</td>
|
|
456
324
|
</tr>
|
|
457
325
|
</tbody>
|
|
@@ -464,12 +332,6 @@
|
|
|
464
332
|
<b>level</b>
|
|
465
333
|
</td>
|
|
466
334
|
</tr>
|
|
467
|
-
<tr>
|
|
468
|
-
<td class="col-md-4">
|
|
469
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
470
|
-
|
|
471
|
-
</td>
|
|
472
|
-
</tr>
|
|
473
335
|
<tr>
|
|
474
336
|
<td class="col-md-4">
|
|
475
337
|
<i>Default value : </i><code>0</code>
|
|
@@ -477,41 +339,13 @@
|
|
|
477
339
|
</tr>
|
|
478
340
|
<tr>
|
|
479
341
|
<td class="col-md-2" colspan="2">
|
|
480
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
342
|
+
<div class="io-line">Defined in <a href="" data-line="94" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:94</a></div>
|
|
481
343
|
</td>
|
|
482
344
|
</tr>
|
|
483
345
|
</tbody>
|
|
484
346
|
</table>
|
|
485
347
|
</section>
|
|
486
348
|
|
|
487
|
-
<section data-compodoc="block-properties">
|
|
488
|
-
<h3>HostBindings</h3> <table class="table table-sm table-bordered">
|
|
489
|
-
<tbody>
|
|
490
|
-
<tr>
|
|
491
|
-
<td class="col-md-4">
|
|
492
|
-
<a name="class.active"></a>
|
|
493
|
-
<span class="name">
|
|
494
|
-
<span ><b>class.active</b></span>
|
|
495
|
-
<a href="#class.active"><span class="icon ion-ios-link"></span></a>
|
|
496
|
-
</span>
|
|
497
|
-
</td>
|
|
498
|
-
</tr>
|
|
499
|
-
<tr>
|
|
500
|
-
<td class="col-md-4">
|
|
501
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
502
|
-
|
|
503
|
-
</td>
|
|
504
|
-
</tr>
|
|
505
|
-
<tr>
|
|
506
|
-
<td class="col-md-4">
|
|
507
|
-
<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>
|
|
508
|
-
</td>
|
|
509
|
-
</tr>
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
</tbody>
|
|
513
|
-
</table>
|
|
514
|
-
</section>
|
|
515
349
|
|
|
516
350
|
|
|
517
351
|
<section data-compodoc="block-methods">
|
|
@@ -541,8 +375,8 @@
|
|
|
541
375
|
|
|
542
376
|
<tr>
|
|
543
377
|
<td class="col-md-4">
|
|
544
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
545
|
-
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:
|
|
378
|
+
<div class="io-line">Defined in <a href="" data-line="178"
|
|
379
|
+
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:178</a></div>
|
|
546
380
|
</td>
|
|
547
381
|
</tr>
|
|
548
382
|
|
|
@@ -610,8 +444,8 @@
|
|
|
610
444
|
|
|
611
445
|
<tr>
|
|
612
446
|
<td class="col-md-4">
|
|
613
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
614
|
-
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:
|
|
447
|
+
<div class="io-line">Defined in <a href="" data-line="166"
|
|
448
|
+
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:166</a></div>
|
|
615
449
|
</td>
|
|
616
450
|
</tr>
|
|
617
451
|
|
|
@@ -679,8 +513,8 @@
|
|
|
679
513
|
|
|
680
514
|
<tr>
|
|
681
515
|
<td class="col-md-4">
|
|
682
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
683
|
-
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:
|
|
516
|
+
<div class="io-line">Defined in <a href="" data-line="172"
|
|
517
|
+
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:172</a></div>
|
|
684
518
|
</td>
|
|
685
519
|
</tr>
|
|
686
520
|
|
|
@@ -739,6 +573,7 @@
|
|
|
739
573
|
<a name="active"></a>
|
|
740
574
|
<span class="name">
|
|
741
575
|
<span class="modifier">Public</span>
|
|
576
|
+
<span class="modifier">Readonly</span>
|
|
742
577
|
<span ><b>active</b></span>
|
|
743
578
|
<a href="#active"><span class="icon ion-ios-link"></span></a>
|
|
744
579
|
</span>
|
|
@@ -751,7 +586,7 @@
|
|
|
751
586
|
</tr>
|
|
752
587
|
<tr>
|
|
753
588
|
<td class="col-md-4">
|
|
754
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
589
|
+
<div class="io-line">Defined in <a href="" data-line="99" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:99</a></div>
|
|
755
590
|
</td>
|
|
756
591
|
</tr>
|
|
757
592
|
|
|
@@ -783,7 +618,7 @@
|
|
|
783
618
|
</tr>
|
|
784
619
|
<tr>
|
|
785
620
|
<td class="col-md-4">
|
|
786
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
621
|
+
<div class="io-line">Defined in <a href="" data-line="96" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:96</a></div>
|
|
787
622
|
</td>
|
|
788
623
|
</tr>
|
|
789
624
|
|
|
@@ -794,33 +629,23 @@
|
|
|
794
629
|
<tbody>
|
|
795
630
|
<tr>
|
|
796
631
|
<td class="col-md-4">
|
|
797
|
-
<a name="
|
|
632
|
+
<a name="collapsed"></a>
|
|
798
633
|
<span class="name">
|
|
799
|
-
<span class="modifier"></span>
|
|
800
634
|
<span class="modifier">Public</span>
|
|
801
|
-
|
|
802
|
-
<
|
|
635
|
+
<span class="modifier">Readonly</span>
|
|
636
|
+
<span ><b>collapsed</b></span>
|
|
637
|
+
<a href="#collapsed"><span class="icon ion-ios-link"></span></a>
|
|
803
638
|
</span>
|
|
804
639
|
</td>
|
|
805
640
|
</tr>
|
|
806
641
|
<tr>
|
|
807
642
|
<td class="col-md-4">
|
|
808
|
-
<i>
|
|
809
|
-
|
|
810
|
-
</td>
|
|
811
|
-
</tr>
|
|
812
|
-
<tr>
|
|
813
|
-
<td class="col-md-4">
|
|
814
|
-
<b>Decorators : </b>
|
|
815
|
-
<br />
|
|
816
|
-
<code>
|
|
817
|
-
@ViewChild(RouterLinkActive, {static: true})<br />
|
|
818
|
-
</code>
|
|
643
|
+
<i>Default value : </i><code>computed(() => this.layoutService.collapsed())</code>
|
|
819
644
|
</td>
|
|
820
645
|
</tr>
|
|
821
646
|
<tr>
|
|
822
647
|
<td class="col-md-4">
|
|
823
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
648
|
+
<div class="io-line">Defined in <a href="" data-line="111" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:111</a></div>
|
|
824
649
|
</td>
|
|
825
650
|
</tr>
|
|
826
651
|
|
|
@@ -831,150 +656,126 @@
|
|
|
831
656
|
<tbody>
|
|
832
657
|
<tr>
|
|
833
658
|
<td class="col-md-4">
|
|
834
|
-
<a name="
|
|
659
|
+
<a name="item"></a>
|
|
835
660
|
<span class="name">
|
|
836
|
-
<span class="modifier"></span>
|
|
837
661
|
<span class="modifier">Public</span>
|
|
838
662
|
<span class="modifier">Readonly</span>
|
|
839
|
-
<span ><b>
|
|
840
|
-
<a href="#
|
|
663
|
+
<span ><b>item</b></span>
|
|
664
|
+
<a href="#item"><span class="icon ion-ios-link"></span></a>
|
|
841
665
|
</span>
|
|
842
666
|
</td>
|
|
843
667
|
</tr>
|
|
844
|
-
<tr>
|
|
845
|
-
<td class="col-md-4">
|
|
846
|
-
<i>Type : </i> <code><a href="../injectables/SidenavComponentService.html" target="_self" >SidenavComponentService</a></code>
|
|
847
|
-
|
|
848
|
-
</td>
|
|
849
|
-
</tr>
|
|
850
|
-
<tr>
|
|
851
|
-
<td class="col-md-4">
|
|
852
|
-
<b>Decorators : </b>
|
|
853
|
-
<br />
|
|
854
|
-
<code>
|
|
855
|
-
@Inject(SidenavComponentService)<br />
|
|
856
|
-
</code>
|
|
857
|
-
</td>
|
|
858
|
-
</tr>
|
|
859
668
|
<tr>
|
|
860
669
|
<td class="col-md-4">
|
|
861
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
670
|
+
<div class="io-line">Defined in <a href="" data-line="98" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:98</a></div>
|
|
862
671
|
</td>
|
|
863
672
|
</tr>
|
|
864
673
|
|
|
865
674
|
|
|
866
675
|
</tbody>
|
|
867
676
|
</table>
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
677
|
+
<table class="table table-sm table-bordered">
|
|
678
|
+
<tbody>
|
|
679
|
+
<tr>
|
|
680
|
+
<td class="col-md-4">
|
|
681
|
+
<a name="itemClasses"></a>
|
|
682
|
+
<span class="name">
|
|
683
|
+
<span class="modifier">Public</span>
|
|
684
|
+
<span class="modifier">Readonly</span>
|
|
685
|
+
<span ><b>itemClasses</b></span>
|
|
686
|
+
<a href="#itemClasses"><span class="icon ion-ios-link"></span></a>
|
|
687
|
+
</span>
|
|
688
|
+
</td>
|
|
689
|
+
</tr>
|
|
876
690
|
<tr>
|
|
877
691
|
<td class="col-md-4">
|
|
878
|
-
<
|
|
879
|
-
|
|
692
|
+
<i>Default value : </i><code>computed(() => {
|
|
693
|
+
let classes = `level-${ this.level() * 4 }`;
|
|
694
|
+
if (this.collapsed()) {
|
|
695
|
+
classes += ' invisible';
|
|
696
|
+
}
|
|
697
|
+
return classes;
|
|
698
|
+
})</code>
|
|
880
699
|
</td>
|
|
881
700
|
</tr>
|
|
701
|
+
<tr>
|
|
702
|
+
<td class="col-md-4">
|
|
703
|
+
<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>
|
|
704
|
+
</td>
|
|
705
|
+
</tr>
|
|
882
706
|
|
|
883
|
-
<tr>
|
|
884
|
-
<td class="col-md-4">
|
|
885
|
-
<span class="accessor"><b>get</b><code>isActive()</code></span>
|
|
886
|
-
</td>
|
|
887
|
-
</tr>
|
|
888
|
-
<tr>
|
|
889
|
-
<td class="col-md-4">
|
|
890
|
-
<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>
|
|
891
|
-
</td>
|
|
892
|
-
</tr>
|
|
893
707
|
|
|
708
|
+
</tbody>
|
|
709
|
+
</table>
|
|
710
|
+
<table class="table table-sm table-bordered">
|
|
711
|
+
<tbody>
|
|
712
|
+
<tr>
|
|
713
|
+
<td class="col-md-4">
|
|
714
|
+
<a name="level"></a>
|
|
715
|
+
<span class="name">
|
|
716
|
+
<span class="modifier">Public</span>
|
|
717
|
+
<span class="modifier">Readonly</span>
|
|
718
|
+
<span ><b>level</b></span>
|
|
719
|
+
<a href="#level"><span class="icon ion-ios-link"></span></a>
|
|
720
|
+
</span>
|
|
721
|
+
</td>
|
|
722
|
+
</tr>
|
|
894
723
|
<tr>
|
|
895
724
|
<td class="col-md-4">
|
|
896
|
-
<
|
|
725
|
+
<i>Default value : </i><code>0</code>
|
|
897
726
|
</td>
|
|
898
727
|
</tr>
|
|
899
|
-
<tr>
|
|
900
|
-
<td class="col-md-4">
|
|
901
|
-
<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>
|
|
902
|
-
</td>
|
|
903
|
-
</tr>
|
|
904
728
|
<tr>
|
|
905
729
|
<td class="col-md-4">
|
|
906
|
-
|
|
907
|
-
<div class="io-description">
|
|
908
|
-
<b>Parameters :</b>
|
|
909
|
-
<table class="params">
|
|
910
|
-
<thead>
|
|
911
|
-
<tr>
|
|
912
|
-
<td>Name</td>
|
|
913
|
-
<td>Type</td>
|
|
914
|
-
<td>Optional</td>
|
|
915
|
-
</tr>
|
|
916
|
-
</thead>
|
|
917
|
-
<tbody>
|
|
918
|
-
<tr>
|
|
919
|
-
<td>value</td>
|
|
920
|
-
|
|
921
|
-
<td>
|
|
922
|
-
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
923
|
-
</td>
|
|
924
|
-
|
|
925
|
-
<td>
|
|
926
|
-
No
|
|
927
|
-
</td>
|
|
928
|
-
|
|
929
|
-
</tr>
|
|
930
|
-
</tbody>
|
|
931
|
-
</table>
|
|
932
|
-
</div>
|
|
933
|
-
<div>
|
|
934
|
-
</div>
|
|
935
|
-
<div class="io-description">
|
|
936
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
937
|
-
|
|
938
|
-
</div>
|
|
730
|
+
<div class="io-line">Defined in <a href="" data-line="94" class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:94</a></div>
|
|
939
731
|
</td>
|
|
940
732
|
</tr>
|
|
941
|
-
|
|
942
|
-
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
</tbody>
|
|
736
|
+
</table>
|
|
943
737
|
</section>
|
|
738
|
+
|
|
944
739
|
</div>
|
|
945
740
|
|
|
946
741
|
|
|
947
742
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
948
743
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
744
|
+
animate,
|
|
745
|
+
style,
|
|
746
|
+
transition,
|
|
747
|
+
trigger,
|
|
748
|
+
} from '@angular/animations';
|
|
749
|
+
import {
|
|
750
|
+
NgClass,
|
|
751
|
+
NgIf,
|
|
752
|
+
} from '@angular/common';
|
|
753
|
+
import {
|
|
949
754
|
ChangeDetectionStrategy,
|
|
950
755
|
Component,
|
|
756
|
+
computed,
|
|
951
757
|
ElementRef,
|
|
952
758
|
forwardRef,
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
Input,
|
|
759
|
+
inject,
|
|
760
|
+
input,
|
|
956
761
|
OnChanges,
|
|
957
762
|
OnDestroy,
|
|
958
763
|
Renderer2,
|
|
959
764
|
signal,
|
|
960
765
|
SimpleChanges,
|
|
961
|
-
|
|
962
|
-
ViewContainerRef,
|
|
766
|
+
viewChild,
|
|
963
767
|
ViewEncapsulation,
|
|
964
768
|
} from '@angular/core';
|
|
965
|
-
import {
|
|
966
|
-
import {
|
|
967
|
-
|
|
968
|
-
style,
|
|
969
|
-
transition,
|
|
970
|
-
trigger,
|
|
971
|
-
} from '@angular/animations';
|
|
769
|
+
import { MatRippleModule } from '@angular/material/core';
|
|
770
|
+
import { MatDividerModule } from '@angular/material/divider';
|
|
771
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
972
772
|
import {
|
|
973
773
|
NavigationEnd,
|
|
974
774
|
Router,
|
|
975
775
|
RouterLink,
|
|
976
776
|
RouterLinkActive,
|
|
977
777
|
} from '@angular/router';
|
|
778
|
+
import { IconDirective } from '@rxap/material-directives/icon';
|
|
978
779
|
import {
|
|
979
780
|
debounceTime,
|
|
980
781
|
Subscription,
|
|
@@ -984,22 +785,13 @@ import {
|
|
|
984
785
|
startWith,
|
|
985
786
|
tap,
|
|
986
787
|
} from 'rxjs/operators';
|
|
987
|
-
import {
|
|
988
|
-
import { SidenavComponentService } from '../../sidenav/sidenav.component.service';
|
|
989
|
-
import { NavigationComponent } from '../navigation.component';
|
|
990
|
-
import { MatDividerModule } from '@angular/material/divider';
|
|
991
|
-
import { IconDirective } from '@rxap/material-directives/icon';
|
|
992
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
993
|
-
import { MatRippleModule } from '@angular/material/core';
|
|
994
|
-
import {
|
|
995
|
-
NgClass,
|
|
996
|
-
NgIf,
|
|
997
|
-
} from '@angular/common';
|
|
788
|
+
import { LayoutService } from '../../layout.service';
|
|
998
789
|
import {
|
|
999
790
|
Navigation,
|
|
1000
791
|
NavigationDividerItem,
|
|
1001
792
|
NavigationItem,
|
|
1002
793
|
} from '../navigation-item';
|
|
794
|
+
import { NavigationComponent } from '../navigation.component';
|
|
1003
795
|
|
|
1004
796
|
@Component({
|
|
1005
797
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
@@ -1036,53 +828,35 @@ import {
|
|
|
1036
828
|
MatDividerModule,
|
|
1037
829
|
forwardRef(() => NavigationComponent),
|
|
1038
830
|
NgClass,
|
|
1039
|
-
]
|
|
831
|
+
]
|
|
1040
832
|
})
|
|
1041
833
|
export class NavigationItemComponent
|
|
1042
834
|
implements OnChanges, OnDestroy {
|
|
1043
835
|
|
|
1044
|
-
|
|
1045
|
-
public level = 0;
|
|
1046
|
-
|
|
1047
|
-
private _isActive = false;
|
|
836
|
+
public readonly level = input(0);
|
|
1048
837
|
|
|
1049
838
|
public children: Navigation | null = null;
|
|
1050
839
|
|
|
1051
|
-
|
|
1052
|
-
public
|
|
840
|
+
public readonly item = input.required<NavigationItem>();
|
|
841
|
+
public readonly active = signal(false);
|
|
1053
842
|
|
|
1054
|
-
|
|
1055
|
-
|
|
843
|
+
public readonly itemClasses = computed(() => {
|
|
844
|
+
let classes = `level-${ this.level() * 4 }`;
|
|
845
|
+
if (this.collapsed()) {
|
|
846
|
+
classes += ' invisible';
|
|
847
|
+
}
|
|
848
|
+
return classes;
|
|
849
|
+
});
|
|
1056
850
|
|
|
1057
|
-
|
|
851
|
+
private readonly layoutService = inject(LayoutService);
|
|
1058
852
|
|
|
1059
|
-
|
|
1060
|
-
get isActive(): boolean {
|
|
1061
|
-
return this._isActive;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
set isActive(value: boolean) {
|
|
1065
|
-
this._isActive = value;
|
|
1066
|
-
this.active.set(value);
|
|
1067
|
-
}
|
|
853
|
+
public readonly collapsed = computed(() => this.layoutService.collapsed());
|
|
1068
854
|
|
|
1069
855
|
private readonly _subscription = new Subscription();
|
|
1070
856
|
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
@Inject(SidenavComponentService)
|
|
1075
|
-
public readonly sidenav: SidenavComponentService,
|
|
1076
|
-
@Inject(ElementRef)
|
|
1077
|
-
private readonly elementRef: ElementRef,
|
|
1078
|
-
@Inject(Renderer2)
|
|
1079
|
-
private readonly renderer: Renderer2,
|
|
1080
|
-
@Inject(Overlay)
|
|
1081
|
-
private readonly overlay: Overlay,
|
|
1082
|
-
@Inject(ViewContainerRef)
|
|
1083
|
-
private readonly viewContainerRef: ViewContainerRef,
|
|
1084
|
-
) {
|
|
1085
|
-
}
|
|
857
|
+
private readonly router = inject(Router);
|
|
858
|
+
private readonly elementRef = inject(ElementRef);
|
|
859
|
+
private readonly renderer = inject(Renderer2);
|
|
1086
860
|
|
|
1087
861
|
public ngOnChanges(changes: SimpleChanges) {
|
|
1088
862
|
if (changes['item']) {
|
|
@@ -1105,13 +879,13 @@ export class NavigationItemComponent
|
|
|
1105
879
|
if (urlParts[0] === '') {
|
|
1106
880
|
urlParts[0] = '/';
|
|
1107
881
|
}
|
|
1108
|
-
for (let i = 0; i < this.item.routerLink.length; i++) {
|
|
1109
|
-
if (urlParts[i] !== this.item.routerLink[i]) {
|
|
882
|
+
for (let i = 0; i < this.item().routerLink.length; i++) {
|
|
883
|
+
if (urlParts[i] !== this.item().routerLink[i]) {
|
|
1110
884
|
isActive = false;
|
|
1111
885
|
break;
|
|
1112
886
|
}
|
|
1113
887
|
}
|
|
1114
|
-
this.isActive
|
|
888
|
+
this.active.set(isActive);
|
|
1115
889
|
if (isActive) {
|
|
1116
890
|
this.renderer.addClass(this.elementRef.nativeElement, 'active');
|
|
1117
891
|
} else {
|
|
@@ -1161,33 +935,28 @@ export class NavigationItemComponent
|
|
|
1161
935
|
<pre class="line-numbers"><code class="language-html"><div [ngClass]="{
|
|
1162
936
|
'border-l-4 text-accent-400 border-accent-600': active(),
|
|
1163
937
|
}">
|
|
1164
|
-
<a [routerLink]="item.routerLink"
|
|
938
|
+
<a [routerLink]="item().routerLink"
|
|
1165
939
|
class="h-12 pl-4 pr-5 flex flex-row justify-between items-center gap-x-4"
|
|
1166
940
|
matRipple
|
|
1167
941
|
routerLinkActive
|
|
1168
942
|
|
|
1169
943
|
>
|
|
1170
944
|
<span
|
|
1171
|
-
[ngClass]="
|
|
1172
|
-
'pl-0': level === 0,
|
|
1173
|
-
'pl-4': level === 1,
|
|
1174
|
-
'pl-8': level === 2,
|
|
1175
|
-
'pl-12': level === 3
|
|
1176
|
-
}"
|
|
945
|
+
[ngClass]="itemClasses()"
|
|
1177
946
|
class="grow whitespace-nowrap"
|
|
1178
947
|
>
|
|
1179
|
-
{{ item.label }}
|
|
948
|
+
{{ item().label }}
|
|
1180
949
|
</span>
|
|
1181
|
-
<mat-icon *ngIf="item.icon" [rxapIcon]="item.icon"></mat-icon>
|
|
950
|
+
<mat-icon *ngIf="item().icon" [rxapIcon]="item().icon"></mat-icon>
|
|
1182
951
|
</a>
|
|
1183
952
|
|
|
1184
|
-
<ng-container *ngIf="item.children?.length && active()">
|
|
953
|
+
<ng-container *ngIf="item().children?.length && active()">
|
|
1185
954
|
|
|
1186
955
|
<mat-divider></mat-divider>
|
|
1187
956
|
|
|
1188
957
|
<ul [@sub-nav]
|
|
1189
958
|
[items]="children ?? []"
|
|
1190
|
-
[level]="level + 1"
|
|
959
|
+
[level]="level() + 1"
|
|
1191
960
|
rxap-navigation
|
|
1192
961
|
>
|
|
1193
962
|
</ul>
|
|
@@ -1231,9 +1000,9 @@ export class NavigationItemComponent
|
|
|
1231
1000
|
<script src="../js/libs/htmlparser.js"></script>
|
|
1232
1001
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
1233
1002
|
<script>
|
|
1234
|
-
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" matRipple routerLinkActive > <span [ngClass]="
|
|
1235
|
-
var COMPONENTS = [{'name': 'AppsButtonComponent', 'selector': 'rxap-apps-button'},{'name': '
|
|
1236
|
-
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
1003
|
+
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" matRipple routerLinkActive > <span [ngClass]="itemClasses()" class="grow whitespace-nowrap" > {{ item().label }} </span> <mat-icon *ngIf="item().icon" [rxapIcon]="item().icon"></mat-icon> </a> <ng-container *ngIf="item().children?.length && active()"> <mat-divider></mat-divider> <ul [@sub-nav] [items]="children ?? []" [level]="level() + 1" rxap-navigation > </ul> <mat-divider></mat-divider> </ng-container></div></div>'
|
|
1004
|
+
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'}];
|
|
1005
|
+
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'HeaderDirective', 'selector': '[rxapHeader]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
1237
1006
|
var ACTUAL_COMPONENT = {'name': 'NavigationItemComponent'};
|
|
1238
1007
|
</script>
|
|
1239
1008
|
<script src="../js/tree.js"></script>
|