@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
|
@@ -131,7 +131,6 @@
|
|
|
131
131
|
</p>
|
|
132
132
|
<p class="comment">
|
|
133
133
|
<code>OnInit</code>
|
|
134
|
-
<code>OnDestroy</code>
|
|
135
134
|
</p>
|
|
136
135
|
|
|
137
136
|
|
|
@@ -220,20 +219,26 @@
|
|
|
220
219
|
<td class="col-md-4">
|
|
221
220
|
<ul class="index-list">
|
|
222
221
|
<li>
|
|
223
|
-
<span class="modifier"></span>
|
|
224
222
|
<span class="modifier">Public</span>
|
|
225
|
-
|
|
223
|
+
<span class="modifier">Readonly</span>
|
|
224
|
+
<a href="#collapsed" >collapsed</a>
|
|
226
225
|
</li>
|
|
227
226
|
<li>
|
|
228
|
-
<span class="modifier"></span>
|
|
229
227
|
<span class="modifier">Public</span>
|
|
230
|
-
|
|
231
|
-
|
|
228
|
+
<a href="#items" >items</a>
|
|
229
|
+
</li>
|
|
230
|
+
<li>
|
|
231
|
+
<span class="modifier">Public</span>
|
|
232
|
+
<a href="#level" >level</a>
|
|
233
|
+
</li>
|
|
234
|
+
<li>
|
|
235
|
+
<span class="modifier">Public</span>
|
|
236
|
+
<a href="#navigationItems" >navigationItems</a>
|
|
232
237
|
</li>
|
|
233
238
|
<li>
|
|
234
239
|
<span class="modifier">Public</span>
|
|
235
|
-
<span class="modifier">
|
|
236
|
-
<a href="#
|
|
240
|
+
<span class="modifier">Readonly</span>
|
|
241
|
+
<a href="#root" >root</a>
|
|
237
242
|
</li>
|
|
238
243
|
</ul>
|
|
239
244
|
</td>
|
|
@@ -285,112 +290,12 @@
|
|
|
285
290
|
</tr>
|
|
286
291
|
|
|
287
292
|
|
|
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.rxap-root-navigation" >class.rxap-root-navigation</a>
|
|
298
|
-
</li>
|
|
299
|
-
</ul>
|
|
300
|
-
</td>
|
|
301
|
-
</tr>
|
|
302
293
|
|
|
303
294
|
|
|
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="#root" >root</a>
|
|
314
|
-
</li>
|
|
315
|
-
</ul>
|
|
316
|
-
</td>
|
|
317
|
-
</tr>
|
|
318
295
|
</tbody>
|
|
319
296
|
</table>
|
|
320
297
|
</section>
|
|
321
298
|
|
|
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(navigationService: <a href="../injectables/NavigationService.html" target="_self">NavigationService</a>, cdr: ChangeDetectorRef, sidenav: <a href="../injectables/SidenavComponentService.html" target="_self">SidenavComponentService</a>)</code>
|
|
329
|
-
</td>
|
|
330
|
-
</tr>
|
|
331
|
-
<tr>
|
|
332
|
-
<td class="col-md-4">
|
|
333
|
-
<div class="io-line">Defined in <a href="" data-line="56" class="link-to-prism">src/lib/navigation/navigation.component.ts:56</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>navigationService</td>
|
|
352
|
-
|
|
353
|
-
<td>
|
|
354
|
-
<code><a href="../injectables/NavigationService.html" target="_self" >NavigationService</a></code>
|
|
355
|
-
</td>
|
|
356
|
-
|
|
357
|
-
<td>
|
|
358
|
-
No
|
|
359
|
-
</td>
|
|
360
|
-
|
|
361
|
-
</tr>
|
|
362
|
-
<tr>
|
|
363
|
-
<td>cdr</td>
|
|
364
|
-
|
|
365
|
-
<td>
|
|
366
|
-
<code>ChangeDetectorRef</code>
|
|
367
|
-
</td>
|
|
368
|
-
|
|
369
|
-
<td>
|
|
370
|
-
No
|
|
371
|
-
</td>
|
|
372
|
-
|
|
373
|
-
</tr>
|
|
374
|
-
<tr>
|
|
375
|
-
<td>sidenav</td>
|
|
376
|
-
|
|
377
|
-
<td>
|
|
378
|
-
<code><a href="../injectables/SidenavComponentService.html" target="_self" >SidenavComponentService</a></code>
|
|
379
|
-
</td>
|
|
380
|
-
|
|
381
|
-
<td>
|
|
382
|
-
No
|
|
383
|
-
</td>
|
|
384
|
-
|
|
385
|
-
</tr>
|
|
386
|
-
</tbody>
|
|
387
|
-
</table>
|
|
388
|
-
</div>
|
|
389
|
-
</td>
|
|
390
|
-
</tr>
|
|
391
|
-
</tbody>
|
|
392
|
-
</table>
|
|
393
|
-
</section>
|
|
394
299
|
|
|
395
300
|
<section data-compodoc="block-inputs">
|
|
396
301
|
<h3 id="inputs">Inputs</h3>
|
|
@@ -401,16 +306,10 @@
|
|
|
401
306
|
<a name="items"></a>
|
|
402
307
|
<b>items</b>
|
|
403
308
|
</td>
|
|
404
|
-
</tr>
|
|
405
|
-
<tr>
|
|
406
|
-
<td class="col-md-4">
|
|
407
|
-
<i>Type : </i> <code><a href="../miscellaneous/typealiases.html#Navigation" target="_self" >Navigation</a></code>
|
|
408
|
-
|
|
409
|
-
</td>
|
|
410
309
|
</tr>
|
|
411
310
|
<tr>
|
|
412
311
|
<td class="col-md-2" colspan="2">
|
|
413
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
312
|
+
<div class="io-line">Defined in <a href="" data-line="51" class="link-to-prism">src/lib/navigation/navigation.component.ts:51</a></div>
|
|
414
313
|
</td>
|
|
415
314
|
</tr>
|
|
416
315
|
</tbody>
|
|
@@ -423,12 +322,6 @@
|
|
|
423
322
|
<b>level</b>
|
|
424
323
|
</td>
|
|
425
324
|
</tr>
|
|
426
|
-
<tr>
|
|
427
|
-
<td class="col-md-4">
|
|
428
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
429
|
-
|
|
430
|
-
</td>
|
|
431
|
-
</tr>
|
|
432
325
|
<tr>
|
|
433
326
|
<td class="col-md-4">
|
|
434
327
|
<i>Default value : </i><code>0</code>
|
|
@@ -436,7 +329,7 @@
|
|
|
436
329
|
</tr>
|
|
437
330
|
<tr>
|
|
438
331
|
<td class="col-md-2" colspan="2">
|
|
439
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
332
|
+
<div class="io-line">Defined in <a href="" data-line="53" class="link-to-prism">src/lib/navigation/navigation.component.ts:53</a></div>
|
|
440
333
|
</td>
|
|
441
334
|
</tr>
|
|
442
335
|
</tbody>
|
|
@@ -451,52 +344,18 @@
|
|
|
451
344
|
</tr>
|
|
452
345
|
<tr>
|
|
453
346
|
<td class="col-md-4">
|
|
454
|
-
<i>
|
|
455
|
-
|
|
347
|
+
<i>Default value : </i><code>false</code>
|
|
456
348
|
</td>
|
|
457
349
|
</tr>
|
|
458
350
|
<tr>
|
|
459
351
|
<td class="col-md-2" colspan="2">
|
|
460
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
352
|
+
<div class="io-line">Defined in <a href="" data-line="63" class="link-to-prism">src/lib/navigation/navigation.component.ts:63</a></div>
|
|
461
353
|
</td>
|
|
462
354
|
</tr>
|
|
463
355
|
</tbody>
|
|
464
356
|
</table>
|
|
465
357
|
</section>
|
|
466
358
|
|
|
467
|
-
<section data-compodoc="block-properties">
|
|
468
|
-
<h3>HostBindings</h3> <table class="table table-sm table-bordered">
|
|
469
|
-
<tbody>
|
|
470
|
-
<tr>
|
|
471
|
-
<td class="col-md-4">
|
|
472
|
-
<a name="class.rxap-root-navigation"></a>
|
|
473
|
-
<span class="name">
|
|
474
|
-
<span ><b>class.rxap-root-navigation</b></span>
|
|
475
|
-
<a href="#class.rxap-root-navigation"><span class="icon ion-ios-link"></span></a>
|
|
476
|
-
</span>
|
|
477
|
-
</td>
|
|
478
|
-
</tr>
|
|
479
|
-
<tr>
|
|
480
|
-
<td class="col-md-4">
|
|
481
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
482
|
-
|
|
483
|
-
</td>
|
|
484
|
-
</tr>
|
|
485
|
-
<tr>
|
|
486
|
-
<td class="col-md-4">
|
|
487
|
-
<i>Default value : </i><code>false</code>
|
|
488
|
-
</td>
|
|
489
|
-
</tr>
|
|
490
|
-
<tr>
|
|
491
|
-
<td class="col-md-4">
|
|
492
|
-
<div class="io-line">Defined in <a href="" data-line="69" class="link-to-prism">src/lib/navigation/navigation.component.ts:69</a></div>
|
|
493
|
-
</td>
|
|
494
|
-
</tr>
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
</tbody>
|
|
498
|
-
</table>
|
|
499
|
-
</section>
|
|
500
359
|
|
|
501
360
|
|
|
502
361
|
<section data-compodoc="block-methods">
|
|
@@ -526,8 +385,8 @@
|
|
|
526
385
|
|
|
527
386
|
<tr>
|
|
528
387
|
<td class="col-md-4">
|
|
529
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
530
|
-
class="link-to-prism">src/lib/navigation/navigation.component.ts:
|
|
388
|
+
<div class="io-line">Defined in <a href="" data-line="90"
|
|
389
|
+
class="link-to-prism">src/lib/navigation/navigation.component.ts:90</a></div>
|
|
531
390
|
</td>
|
|
532
391
|
</tr>
|
|
533
392
|
|
|
@@ -595,8 +454,8 @@
|
|
|
595
454
|
|
|
596
455
|
<tr>
|
|
597
456
|
<td class="col-md-4">
|
|
598
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
599
|
-
class="link-to-prism">src/lib/navigation/navigation.component.ts:
|
|
457
|
+
<div class="io-line">Defined in <a href="" data-line="78"
|
|
458
|
+
class="link-to-prism">src/lib/navigation/navigation.component.ts:78</a></div>
|
|
600
459
|
</td>
|
|
601
460
|
</tr>
|
|
602
461
|
|
|
@@ -664,8 +523,8 @@
|
|
|
664
523
|
|
|
665
524
|
<tr>
|
|
666
525
|
<td class="col-md-4">
|
|
667
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
668
|
-
class="link-to-prism">src/lib/navigation/navigation.component.ts:
|
|
526
|
+
<div class="io-line">Defined in <a href="" data-line="84"
|
|
527
|
+
class="link-to-prism">src/lib/navigation/navigation.component.ts:84</a></div>
|
|
669
528
|
</td>
|
|
670
529
|
</tr>
|
|
671
530
|
|
|
@@ -721,32 +580,23 @@
|
|
|
721
580
|
<tbody>
|
|
722
581
|
<tr>
|
|
723
582
|
<td class="col-md-4">
|
|
724
|
-
<a name="
|
|
583
|
+
<a name="collapsed"></a>
|
|
725
584
|
<span class="name">
|
|
726
|
-
<span class="modifier"></span>
|
|
727
585
|
<span class="modifier">Public</span>
|
|
728
|
-
|
|
729
|
-
<
|
|
586
|
+
<span class="modifier">Readonly</span>
|
|
587
|
+
<span ><b>collapsed</b></span>
|
|
588
|
+
<a href="#collapsed"><span class="icon ion-ios-link"></span></a>
|
|
730
589
|
</span>
|
|
731
590
|
</td>
|
|
732
591
|
</tr>
|
|
733
592
|
<tr>
|
|
734
593
|
<td class="col-md-4">
|
|
735
|
-
<i>Default value : </i><code>
|
|
736
|
-
</td>
|
|
737
|
-
</tr>
|
|
738
|
-
<tr>
|
|
739
|
-
<td class="col-md-4">
|
|
740
|
-
<b>Decorators : </b>
|
|
741
|
-
<br />
|
|
742
|
-
<code>
|
|
743
|
-
@HostBinding('class.rxap-root-navigation')<br />
|
|
744
|
-
</code>
|
|
594
|
+
<i>Default value : </i><code>computed(() => this.layoutService.collapsed())</code>
|
|
745
595
|
</td>
|
|
746
596
|
</tr>
|
|
747
597
|
<tr>
|
|
748
598
|
<td class="col-md-4">
|
|
749
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
599
|
+
<div class="io-line">Defined in <a href="" data-line="59" class="link-to-prism">src/lib/navigation/navigation.component.ts:59</a></div>
|
|
750
600
|
</td>
|
|
751
601
|
</tr>
|
|
752
602
|
|
|
@@ -757,34 +607,17 @@
|
|
|
757
607
|
<tbody>
|
|
758
608
|
<tr>
|
|
759
609
|
<td class="col-md-4">
|
|
760
|
-
<a name="
|
|
610
|
+
<a name="items"></a>
|
|
761
611
|
<span class="name">
|
|
762
|
-
<span class="modifier"></span>
|
|
763
612
|
<span class="modifier">Public</span>
|
|
764
|
-
|
|
765
|
-
<span
|
|
766
|
-
<a href="#sidenav"><span class="icon ion-ios-link"></span></a>
|
|
613
|
+
<span ><b>items</b></span>
|
|
614
|
+
<a href="#items"><span class="icon ion-ios-link"></span></a>
|
|
767
615
|
</span>
|
|
768
616
|
</td>
|
|
769
617
|
</tr>
|
|
770
|
-
<tr>
|
|
771
|
-
<td class="col-md-4">
|
|
772
|
-
<i>Type : </i> <code><a href="../injectables/SidenavComponentService.html" target="_self" >SidenavComponentService</a></code>
|
|
773
|
-
|
|
774
|
-
</td>
|
|
775
|
-
</tr>
|
|
776
|
-
<tr>
|
|
777
|
-
<td class="col-md-4">
|
|
778
|
-
<b>Decorators : </b>
|
|
779
|
-
<br />
|
|
780
|
-
<code>
|
|
781
|
-
@Inject(SidenavComponentService)<br />
|
|
782
|
-
</code>
|
|
783
|
-
</td>
|
|
784
|
-
</tr>
|
|
785
618
|
<tr>
|
|
786
619
|
<td class="col-md-4">
|
|
787
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
620
|
+
<div class="io-line">Defined in <a href="" data-line="51" class="link-to-prism">src/lib/navigation/navigation.component.ts:51</a></div>
|
|
788
621
|
</td>
|
|
789
622
|
</tr>
|
|
790
623
|
|
|
@@ -795,96 +628,83 @@
|
|
|
795
628
|
<tbody>
|
|
796
629
|
<tr>
|
|
797
630
|
<td class="col-md-4">
|
|
798
|
-
<a name="
|
|
631
|
+
<a name="level"></a>
|
|
799
632
|
<span class="name">
|
|
800
633
|
<span class="modifier">Public</span>
|
|
801
|
-
|
|
802
|
-
<span
|
|
803
|
-
<a href="#subscription"><span class="icon ion-ios-link"></span></a>
|
|
634
|
+
<span ><b>level</b></span>
|
|
635
|
+
<a href="#level"><span class="icon ion-ios-link"></span></a>
|
|
804
636
|
</span>
|
|
805
637
|
</td>
|
|
806
638
|
</tr>
|
|
807
639
|
<tr>
|
|
808
640
|
<td class="col-md-4">
|
|
809
|
-
<i>
|
|
810
|
-
|
|
641
|
+
<i>Default value : </i><code>0</code>
|
|
811
642
|
</td>
|
|
812
643
|
</tr>
|
|
813
644
|
<tr>
|
|
814
645
|
<td class="col-md-4">
|
|
815
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
646
|
+
<div class="io-line">Defined in <a href="" data-line="53" class="link-to-prism">src/lib/navigation/navigation.component.ts:53</a></div>
|
|
816
647
|
</td>
|
|
817
648
|
</tr>
|
|
818
649
|
|
|
819
650
|
|
|
820
651
|
</tbody>
|
|
821
652
|
</table>
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
653
|
+
<table class="table table-sm table-bordered">
|
|
654
|
+
<tbody>
|
|
655
|
+
<tr>
|
|
656
|
+
<td class="col-md-4">
|
|
657
|
+
<a name="navigationItems"></a>
|
|
658
|
+
<span class="name">
|
|
659
|
+
<span class="modifier">Public</span>
|
|
660
|
+
<span ><b>navigationItems</b></span>
|
|
661
|
+
<a href="#navigationItems"><span class="icon ion-ios-link"></span></a>
|
|
662
|
+
</span>
|
|
663
|
+
</td>
|
|
664
|
+
</tr>
|
|
830
665
|
<tr>
|
|
831
666
|
<td class="col-md-4">
|
|
832
|
-
<
|
|
833
|
-
<span class="name"><b>root</b><a href="#root"><span class="icon ion-ios-link"></span></a></span>
|
|
667
|
+
<i>Default value : </i><code>computed(() => this.items() ?? [])</code>
|
|
834
668
|
</td>
|
|
835
669
|
</tr>
|
|
670
|
+
<tr>
|
|
671
|
+
<td class="col-md-4">
|
|
672
|
+
<div class="io-line">Defined in <a href="" data-line="61" class="link-to-prism">src/lib/navigation/navigation.component.ts:61</a></div>
|
|
673
|
+
</td>
|
|
674
|
+
</tr>
|
|
836
675
|
|
|
837
676
|
|
|
677
|
+
</tbody>
|
|
678
|
+
</table>
|
|
679
|
+
<table class="table table-sm table-bordered">
|
|
680
|
+
<tbody>
|
|
681
|
+
<tr>
|
|
682
|
+
<td class="col-md-4">
|
|
683
|
+
<a name="root"></a>
|
|
684
|
+
<span class="name">
|
|
685
|
+
<span class="modifier">Public</span>
|
|
686
|
+
<span class="modifier">Readonly</span>
|
|
687
|
+
<span ><b>root</b></span>
|
|
688
|
+
<a href="#root"><span class="icon ion-ios-link"></span></a>
|
|
689
|
+
</span>
|
|
690
|
+
</td>
|
|
691
|
+
</tr>
|
|
838
692
|
<tr>
|
|
839
693
|
<td class="col-md-4">
|
|
840
|
-
<
|
|
694
|
+
<i>Default value : </i><code>false</code>
|
|
841
695
|
</td>
|
|
842
696
|
</tr>
|
|
843
|
-
<tr>
|
|
844
|
-
<td class="col-md-4">
|
|
845
|
-
<div class="io-line">Defined in <a href="" data-line="72" class="link-to-prism">src/lib/navigation/navigation.component.ts:72</a></div>
|
|
846
|
-
</td>
|
|
847
|
-
</tr>
|
|
848
697
|
<tr>
|
|
849
698
|
<td class="col-md-4">
|
|
850
|
-
|
|
851
|
-
<div class="io-description">
|
|
852
|
-
<b>Parameters :</b>
|
|
853
|
-
<table class="params">
|
|
854
|
-
<thead>
|
|
855
|
-
<tr>
|
|
856
|
-
<td>Name</td>
|
|
857
|
-
<td>Type</td>
|
|
858
|
-
<td>Optional</td>
|
|
859
|
-
</tr>
|
|
860
|
-
</thead>
|
|
861
|
-
<tbody>
|
|
862
|
-
<tr>
|
|
863
|
-
<td>value</td>
|
|
864
|
-
|
|
865
|
-
<td>
|
|
866
|
-
<code>boolean | string</code>
|
|
867
|
-
</td>
|
|
868
|
-
|
|
869
|
-
<td>
|
|
870
|
-
No
|
|
871
|
-
</td>
|
|
872
|
-
|
|
873
|
-
</tr>
|
|
874
|
-
</tbody>
|
|
875
|
-
</table>
|
|
876
|
-
</div>
|
|
877
|
-
<div>
|
|
878
|
-
</div>
|
|
879
|
-
<div class="io-description">
|
|
880
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
881
|
-
|
|
882
|
-
</div>
|
|
699
|
+
<div class="io-line">Defined in <a href="" data-line="63" class="link-to-prism">src/lib/navigation/navigation.component.ts:63</a></div>
|
|
883
700
|
</td>
|
|
884
701
|
</tr>
|
|
885
|
-
|
|
886
|
-
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
</tbody>
|
|
705
|
+
</table>
|
|
887
706
|
</section>
|
|
707
|
+
|
|
888
708
|
</div>
|
|
889
709
|
|
|
890
710
|
|
|
@@ -896,28 +716,26 @@
|
|
|
896
716
|
} from '@angular/common';
|
|
897
717
|
import {
|
|
898
718
|
ChangeDetectionStrategy,
|
|
899
|
-
ChangeDetectorRef,
|
|
900
719
|
Component,
|
|
720
|
+
computed,
|
|
901
721
|
forwardRef,
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
OnDestroy,
|
|
722
|
+
inject,
|
|
723
|
+
INJECTOR,
|
|
724
|
+
input,
|
|
906
725
|
OnInit,
|
|
726
|
+
runInInjectionContext,
|
|
907
727
|
ViewEncapsulation,
|
|
908
728
|
} from '@angular/core';
|
|
729
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
909
730
|
import { MatDividerModule } from '@angular/material/divider';
|
|
910
|
-
import {
|
|
911
|
-
import {
|
|
912
|
-
import { tap } from 'rxjs/operators';
|
|
913
|
-
import { SidenavComponentService } from '../sidenav/sidenav.component.service';
|
|
731
|
+
import { LayoutService } from '../layout.service';
|
|
732
|
+
import { NavigationService } from '../navigation.service';
|
|
914
733
|
import {
|
|
915
734
|
Navigation,
|
|
916
735
|
NavigationDividerItem,
|
|
917
736
|
NavigationItem,
|
|
918
737
|
} from './navigation-item';
|
|
919
738
|
import { NavigationItemComponent } from './navigation-item/navigation-item.component';
|
|
920
|
-
import { NavigationService } from './navigation.service';
|
|
921
739
|
|
|
922
740
|
@Component({
|
|
923
741
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
@@ -939,48 +757,31 @@ import { NavigationService } from './navigation.service';
|
|
|
939
757
|
AsyncPipe,
|
|
940
758
|
],
|
|
941
759
|
})
|
|
942
|
-
export class NavigationComponent implements OnInit
|
|
943
|
-
@Input()
|
|
944
|
-
public items!: Navigation;
|
|
945
|
-
public subscription?: Subscription;
|
|
946
|
-
@Input()
|
|
947
|
-
public level = 0;
|
|
948
|
-
|
|
949
|
-
constructor(
|
|
950
|
-
@Inject(NavigationService)
|
|
951
|
-
private readonly navigationService: NavigationService,
|
|
952
|
-
@Inject(ChangeDetectorRef)
|
|
953
|
-
private readonly cdr: ChangeDetectorRef,
|
|
954
|
-
@Inject(SidenavComponentService)
|
|
955
|
-
public readonly sidenav: SidenavComponentService,
|
|
956
|
-
) {
|
|
957
|
-
}
|
|
760
|
+
export class NavigationComponent implements OnInit {
|
|
958
761
|
|
|
959
|
-
|
|
960
|
-
public _root = false;
|
|
762
|
+
public items = input<Navigation>();
|
|
961
763
|
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
764
|
+
public level = input(0);
|
|
765
|
+
|
|
766
|
+
private readonly navigationService = inject(NavigationService);
|
|
767
|
+
|
|
768
|
+
private readonly layoutService = inject(LayoutService);
|
|
769
|
+
|
|
770
|
+
public readonly collapsed = computed(() => this.layoutService.collapsed());
|
|
771
|
+
|
|
772
|
+
public navigationItems = computed(() => this.items() ?? []);
|
|
773
|
+
|
|
774
|
+
public readonly root = input(false);
|
|
775
|
+
|
|
776
|
+
private readonly injector = inject(INJECTOR);
|
|
966
777
|
|
|
967
778
|
public ngOnInit(): void {
|
|
968
|
-
if (this.
|
|
969
|
-
this.
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
tap((navigation) => (this.items = navigation)),
|
|
973
|
-
tap(() => this.cdr.detectChanges()),
|
|
974
|
-
)
|
|
975
|
-
.subscribe();
|
|
779
|
+
if (this.root()) {
|
|
780
|
+
runInInjectionContext(this.injector, () => {
|
|
781
|
+
this.navigationItems = toSignal(this.navigationService.config$, { initialValue: [] });
|
|
782
|
+
});
|
|
976
783
|
}
|
|
977
|
-
this.items ??= [];
|
|
978
784
|
}
|
|
979
|
-
|
|
980
|
-
public ngOnDestroy() {
|
|
981
|
-
this.subscription?.unsubscribe();
|
|
982
|
-
}
|
|
983
|
-
|
|
984
785
|
// region type save item property
|
|
985
786
|
|
|
986
787
|
// required to check the type of the item property in the ngFor loop
|
|
@@ -1012,16 +813,19 @@ export class NavigationComponent implements OnInit, OnDestroy {
|
|
|
1012
813
|
</div>
|
|
1013
814
|
|
|
1014
815
|
<div class="tab-pane fade " id="templateData">
|
|
1015
|
-
<pre class="line-numbers"><code class="language-html"><ng-template [ngForOf]="
|
|
816
|
+
<pre class="line-numbers"><code class="language-html"><ng-template [ngForOf]="navigationItems()" let-item ngFor>
|
|
1016
817
|
<ng-template [ngIf]="isNavigationDividerItem(item)">
|
|
1017
818
|
<mat-divider></mat-divider>
|
|
1018
|
-
<div *ngIf="
|
|
1019
|
-
|
|
819
|
+
<div *ngIf="!collapsed() && item.title" class="pl-5 h-6">
|
|
820
|
+
{{item.title}}
|
|
1020
821
|
</div>
|
|
1021
822
|
</ng-template>
|
|
1022
823
|
<ng-template [ngIf]="isNavigationItem(item)">
|
|
1023
|
-
<li [item]="asNavigationItem(item)"
|
|
1024
|
-
|
|
824
|
+
<li [item]="asNavigationItem(item)"
|
|
825
|
+
[level]="level()"
|
|
826
|
+
class="dark:hover:text-white hover:text-black"
|
|
827
|
+
rxap-navigation-item>
|
|
828
|
+
</li>
|
|
1025
829
|
</ng-template>
|
|
1026
830
|
</ng-template>
|
|
1027
831
|
</code></pre>
|
|
@@ -1059,9 +863,9 @@ export class NavigationComponent implements OnInit, OnDestroy {
|
|
|
1059
863
|
<script src="../js/libs/htmlparser.js"></script>
|
|
1060
864
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
1061
865
|
<script>
|
|
1062
|
-
var COMPONENT_TEMPLATE = '<div><ng-template [ngForOf]="
|
|
1063
|
-
var COMPONENTS = [{'name': 'AppsButtonComponent', 'selector': 'rxap-apps-button'},{'name': '
|
|
1064
|
-
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
866
|
+
var COMPONENT_TEMPLATE = '<div><ng-template [ngForOf]="navigationItems()" let-item ngFor> <ng-template [ngIf]="isNavigationDividerItem(item)"> <mat-divider></mat-divider> <div *ngIf="!collapsed() && item.title" class="pl-5 h-6"> {{item.title}} </div> </ng-template> <ng-template [ngIf]="isNavigationItem(item)"> <li [item]="asNavigationItem(item)" [level]="level()" class="dark:hover:text-white hover:text-black" rxap-navigation-item> </li> </ng-template></ng-template></div>'
|
|
867
|
+
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'}];
|
|
868
|
+
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'HeaderDirective', 'selector': '[rxapHeader]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
1065
869
|
var ACTUAL_COMPONENT = {'name': 'NavigationComponent'};
|
|
1066
870
|
</script>
|
|
1067
871
|
<script src="../js/tree.js"></script>
|