@rxap/layout 18.3.4-dev.0 → 19.0.0-dev.2
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 +8 -0
- package/README.md +1 -1
- package/compodoc/changelog.html +89 -0
- package/compodoc/components/AppsButtonComponent.html +18 -23
- package/compodoc/components/BaseLayoutComponent.html +8 -13
- package/compodoc/components/DefaultHeaderComponent.html +76 -35
- package/compodoc/components/FooterComponent.html +7 -12
- package/compodoc/components/HeaderComponent.html +13 -18
- package/compodoc/components/LayoutComponent.html +29 -72
- package/compodoc/components/MinimalLayoutComponent.html +5 -10
- package/compodoc/components/NavigationComponent.html +31 -36
- package/compodoc/components/NavigationItemComponent.html +52 -51
- package/compodoc/components/NavigationProgressBarComponent.html +9 -14
- package/compodoc/components/ReleaseInfoComponent.html +11 -16
- package/compodoc/components/SettingsButtonComponent.html +64 -53
- package/compodoc/components/SidenavComponent.html +35 -40
- package/compodoc/components/SidenavToggleButtonComponent.html +11 -16
- package/compodoc/components/UserProfileIconComponent.html +18 -20
- package/compodoc/dependencies.html +23 -17
- package/compodoc/index.html +1 -1
- package/compodoc/injectables/DefaultHeaderService.html +585 -0
- package/compodoc/interfaces/NavigationDividerItem.html +1 -1
- package/compodoc/interfaces/NavigationInsertItem.html +1 -1
- package/compodoc/interfaces/NavigationItem.html +3 -3
- package/compodoc/interfaces/NavigationStatus.html +1 -1
- package/compodoc/interfaces/ReleaseInfoModule.html +2 -0
- package/compodoc/interfaces/SettingsMenuItem.html +2 -0
- package/compodoc/js/menu-wc.js +3 -0
- package/compodoc/js/menu-wc_es5.js +2 -2
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/functions.html +387 -6
- package/compodoc/miscellaneous/typealiases.html +19 -0
- package/compodoc/miscellaneous/variables.html +50 -1
- package/compodoc/overview.html +1 -1
- package/compodoc/properties.html +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AppsButtonComponent.html +3 -3
- package/docs/classes/BaseLayoutComponent.html +1 -1
- package/docs/classes/DefaultHeaderComponent.html +5 -2
- package/docs/classes/DefaultHeaderService.html +16 -0
- package/docs/classes/ExternalAppsService.html +2 -2
- package/docs/classes/FooterComponent.html +2 -2
- package/docs/classes/FooterDirective.html +2 -2
- package/docs/classes/FooterService.html +6 -6
- package/docs/classes/HeaderComponent.html +2 -2
- package/docs/classes/HeaderDirective.html +2 -2
- package/docs/classes/HeaderService.html +6 -6
- package/docs/classes/LayoutComponent.html +2 -2
- package/docs/classes/LayoutService.html +2 -2
- package/docs/classes/LogoService.html +2 -2
- package/docs/classes/MinimalLayoutComponent.html +1 -1
- package/docs/classes/NavigationComponent.html +2 -2
- package/docs/classes/NavigationItemComponent.html +2 -2
- package/docs/classes/NavigationProgressBarComponent.html +2 -2
- package/docs/classes/NavigationService.html +3 -3
- package/docs/classes/ReleaseInfoComponent.html +2 -2
- package/docs/classes/SettingsButtonComponent.html +2 -2
- package/docs/classes/SidenavComponent.html +2 -2
- package/docs/classes/SidenavFooterDirective.html +2 -2
- package/docs/classes/SidenavHeaderDirective.html +2 -2
- package/docs/classes/SidenavToggleButtonComponent.html +2 -2
- package/docs/classes/UserProfileIconComponent.html +2 -2
- package/docs/documentation.json +2279 -1170
- package/docs/functions/IsNavigationDividerItem.html +1 -1
- package/docs/functions/IsNavigationInsertItem.html +1 -1
- package/docs/functions/IsNavigationItem.html +1 -1
- package/docs/functions/provideExternalApps.html +1 -1
- package/docs/functions/provideLayout.html +1 -1
- package/docs/functions/withDefaultHeaderComponent.html +1 -1
- package/docs/functions/withDefaultHeaderItems.html +1 -0
- package/docs/functions/withFooterComponents.html +1 -1
- package/docs/functions/withHeaderComponents.html +1 -1
- package/docs/functions/withNavigationConfig.html +1 -1
- package/docs/functions/withNavigationInserts.html +1 -1
- package/docs/functions/withReleaseInfoModules.html +1 -1
- package/docs/functions/withSettingsMenuItems.html +1 -1
- package/docs/functions/withUserProfileDataSource.html +1 -1
- package/docs/index.html +1 -1
- 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 +2 -2
- package/docs/interfaces/SettingsMenuItem.html +2 -2
- package/docs/modules.html +5 -1
- package/docs/types/DefaultHeaderItemComponent.html +1 -0
- package/docs/types/ExternalApp.html +1 -1
- 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 -1
- package/docs/variables/EXTRACT_USERNAME_FROM_PROFILE.html +1 -1
- package/docs/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.html +1 -0
- package/docs/variables/RXAP_EXTERNAL_APP.html +1 -1
- package/docs/variables/RXAP_EXTERNAL_APP_FILTER.html +1 -1
- 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 -1
- package/docs/variables/RXAP_SETTINGS_MENU_ITEM.html +1 -1
- package/docs/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.html +1 -1
- package/docs/variables/RXAP_USER_PROFILE_DATA_SOURCE.html +1 -1
- package/fesm2022/rxap-layout.mjs +93 -93
- package/fesm2022/rxap-layout.mjs.map +1 -1
- package/package.json +43 -46
- package/src/migrations/18.0.0/add-seperate-external-apps-provider/__snapshots__/add-seperate-external-apps-provider.spec.ts.snap +22 -0
- package/src/migrations/18.0.0/add-theme-provider-to-app-config/__snapshots__/add-theme-provider-to-app-config.spec.ts.snap +18 -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 +51 -0
- package/src/migrations/18.0.0/add-with-user-profile-provider/__snapshots__/add-with-user-profile-provider.spec.ts.snap +53 -0
- package/theme.css +425 -1
- package/esm2022/index.mjs +0 -63
- package/esm2022/lib/base-layout/base-layout.component.mjs +0 -16
- package/esm2022/lib/default-header/apps-button/apps-button.component.mjs +0 -40
- package/esm2022/lib/default-header/default-header.component.mjs +0 -39
- package/esm2022/lib/default-header/default-header.service.mjs +0 -65
- package/esm2022/lib/default-header/settings-button/settings-button.component.mjs +0 -78
- package/esm2022/lib/default-header/sidenav-toggle-button/sidenav-toggle-button.component.mjs +0 -24
- package/esm2022/lib/default-header/user-profile-icon/user-profile-icon.component.mjs +0 -35
- package/esm2022/lib/external-apps.service.mjs +0 -99
- package/esm2022/lib/footer/footer.component.mjs +0 -21
- package/esm2022/lib/footer/footer.directive.mjs +0 -30
- package/esm2022/lib/footer.service.mjs +0 -58
- package/esm2022/lib/header/header.component.mjs +0 -24
- package/esm2022/lib/header/header.directive.mjs +0 -30
- package/esm2022/lib/header.service.mjs +0 -60
- package/esm2022/lib/layout/layout.component.mjs +0 -50
- package/esm2022/lib/layout.service.mjs +0 -93
- package/esm2022/lib/logo.service.mjs +0 -23
- package/esm2022/lib/minimal-layout/minimal-layout.component.mjs +0 -16
- package/esm2022/lib/navigation/navigation-item/navigation-item.component.mjs +0 -139
- package/esm2022/lib/navigation/navigation-item.mjs +0 -10
- package/esm2022/lib/navigation/navigation.component.mjs +0 -57
- package/esm2022/lib/navigation-progress-bar/navigation-progress-bar.component.mjs +0 -23
- package/esm2022/lib/navigation.service.mjs +0 -141
- package/esm2022/lib/provide.mjs +0 -105
- package/esm2022/lib/release-info/release-info.component.mjs +0 -28
- package/esm2022/lib/sidenav/sidenav-footer.directive.mjs +0 -20
- package/esm2022/lib/sidenav/sidenav-header.directive.mjs +0 -20
- package/esm2022/lib/sidenav/sidenav.component.mjs +0 -60
- package/esm2022/lib/tokens.mjs +0 -23
- package/esm2022/lib/types.mjs +0 -2
- package/esm2022/rxap-layout.mjs +0 -5
|
@@ -126,13 +126,6 @@
|
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
<p class="comment">
|
|
130
|
-
<h3>Implements</h3>
|
|
131
|
-
</p>
|
|
132
|
-
<p class="comment">
|
|
133
|
-
<code>OnInit</code>
|
|
134
|
-
<code>OnDestroy</code>
|
|
135
|
-
</p>
|
|
136
129
|
|
|
137
130
|
|
|
138
131
|
<section data-compodoc="block-metadata">
|
|
@@ -160,10 +153,6 @@
|
|
|
160
153
|
<td class="col-md-9"><code>rxap-layout</code></td>
|
|
161
154
|
</tr>
|
|
162
155
|
|
|
163
|
-
<tr>
|
|
164
|
-
<td class="col-md-3">standalone</td>
|
|
165
|
-
<td class="col-md-9"><code>true</code></td>
|
|
166
|
-
</tr>
|
|
167
156
|
|
|
168
157
|
<tr>
|
|
169
158
|
<td class="col-md-3">imports</td>
|
|
@@ -289,7 +278,7 @@
|
|
|
289
278
|
</tr>
|
|
290
279
|
<tr>
|
|
291
280
|
<td class="col-md-4">
|
|
292
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
281
|
+
<div class="io-line">Defined in <a href="" data-line="64" class="link-to-prism">src/lib/layout/layout.component.ts:64</a></div>
|
|
293
282
|
</td>
|
|
294
283
|
</tr>
|
|
295
284
|
|
|
@@ -322,7 +311,7 @@
|
|
|
322
311
|
</tr>
|
|
323
312
|
<tr>
|
|
324
313
|
<td class="col-md-4">
|
|
325
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
314
|
+
<div class="io-line">Defined in <a href="" data-line="62" class="link-to-prism">src/lib/layout/layout.component.ts:62</a></div>
|
|
326
315
|
</td>
|
|
327
316
|
</tr>
|
|
328
317
|
|
|
@@ -355,7 +344,7 @@
|
|
|
355
344
|
</tr>
|
|
356
345
|
<tr>
|
|
357
346
|
<td class="col-md-4">
|
|
358
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
347
|
+
<div class="io-line">Defined in <a href="" data-line="63" class="link-to-prism">src/lib/layout/layout.component.ts:63</a></div>
|
|
359
348
|
</td>
|
|
360
349
|
</tr>
|
|
361
350
|
|
|
@@ -380,8 +369,6 @@ import {
|
|
|
380
369
|
Component,
|
|
381
370
|
computed,
|
|
382
371
|
inject,
|
|
383
|
-
OnDestroy,
|
|
384
|
-
OnInit,
|
|
385
372
|
Signal,
|
|
386
373
|
} from '@angular/core';
|
|
387
374
|
import { MatButtonModule } from '@angular/material/button';
|
|
@@ -392,16 +379,10 @@ import {
|
|
|
392
379
|
RouterLink,
|
|
393
380
|
RouterOutlet,
|
|
394
381
|
} from '@angular/router';
|
|
395
|
-
import { ThemeService } from '@rxap/ngx-theme';
|
|
396
|
-
import {
|
|
397
|
-
IsThemeDensity,
|
|
398
|
-
ThemeDensity,
|
|
399
|
-
UserSettingsThemeService,
|
|
400
|
-
} from '@rxap/ngx-user';
|
|
401
382
|
import { FooterComponent } from '../footer/footer.component';
|
|
402
383
|
import { HeaderComponent } from '../header/header.component';
|
|
403
|
-
import { NavigationProgressBarComponent } from '../navigation-progress-bar/navigation-progress-bar.component';
|
|
404
384
|
import { LogoService } from '../logo.service';
|
|
385
|
+
import { NavigationProgressBarComponent } from '../navigation-progress-bar/navigation-progress-bar.component';
|
|
405
386
|
import { NavigationComponent } from '../navigation/navigation.component';
|
|
406
387
|
import { ReleaseInfoComponent } from '../release-info/release-info.component';
|
|
407
388
|
import { SidenavFooterDirective } from '../sidenav/sidenav-footer.directive';
|
|
@@ -409,62 +390,38 @@ import { SidenavComponent } from '../sidenav/sidenav.component';
|
|
|
409
390
|
|
|
410
391
|
|
|
411
392
|
@Component({
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
],
|
|
393
|
+
selector: 'rxap-layout',
|
|
394
|
+
templateUrl: './layout.component.html',
|
|
395
|
+
styleUrls: ['./layout.component.scss'],
|
|
396
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
397
|
+
imports: [
|
|
398
|
+
HeaderComponent,
|
|
399
|
+
MatSidenavModule,
|
|
400
|
+
AsyncPipe,
|
|
401
|
+
MatIconModule,
|
|
402
|
+
MatButtonModule,
|
|
403
|
+
RouterLink,
|
|
404
|
+
NgIf,
|
|
405
|
+
FooterComponent,
|
|
406
|
+
MatMenuModule,
|
|
407
|
+
NgOptimizedImage,
|
|
408
|
+
NavigationComponent,
|
|
409
|
+
RouterOutlet,
|
|
410
|
+
NgStyle,
|
|
411
|
+
NgClass,
|
|
412
|
+
SidenavComponent,
|
|
413
|
+
ReleaseInfoComponent,
|
|
414
|
+
SidenavFooterDirective,
|
|
415
|
+
NavigationProgressBarComponent,
|
|
416
|
+
]
|
|
437
417
|
})
|
|
438
|
-
export class LayoutComponent
|
|
418
|
+
export class LayoutComponent {
|
|
439
419
|
|
|
440
|
-
private readonly userSettingsThemeService = inject(UserSettingsThemeService);
|
|
441
|
-
private readonly themeService = inject(ThemeService);
|
|
442
420
|
private readonly logoService = inject(LogoService);
|
|
443
421
|
public readonly logoSrc: Signal<string> = computed(() => this.logoService.src());
|
|
444
422
|
public readonly logoWidth: Signal<number> = computed(() => this.logoService.width());
|
|
445
423
|
public readonly logoHeight: Signal<number> = computed(() => this.logoService.height());
|
|
446
424
|
|
|
447
|
-
|
|
448
|
-
ngOnDestroy() {
|
|
449
|
-
this.userSettingsThemeService.stopSync();
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
ngOnInit() {
|
|
453
|
-
this.userSettingsThemeService.startSync().then(() => {
|
|
454
|
-
this.userSettingsThemeService.get().then(theme => {
|
|
455
|
-
if (theme.preset && theme.preset !== 'default') {
|
|
456
|
-
this.themeService.setTheme(theme.preset, true);
|
|
457
|
-
}
|
|
458
|
-
if (theme.density && IsThemeDensity(theme.density) && theme.density !== ThemeDensity.Normal) {
|
|
459
|
-
this.themeService.setDensity(theme.density, true);
|
|
460
|
-
}
|
|
461
|
-
if (theme.typography && theme.typography !== 'default') {
|
|
462
|
-
this.themeService.setTypography(theme.typography, true);
|
|
463
|
-
}
|
|
464
|
-
});
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
|
|
468
425
|
}
|
|
469
426
|
</code></pre>
|
|
470
427
|
</div>
|
|
@@ -149,10 +149,6 @@
|
|
|
149
149
|
<td class="col-md-9"><code>rxap-minimal-layout</code></td>
|
|
150
150
|
</tr>
|
|
151
151
|
|
|
152
|
-
<tr>
|
|
153
|
-
<td class="col-md-3">standalone</td>
|
|
154
|
-
<td class="col-md-9"><code>true</code></td>
|
|
155
|
-
</tr>
|
|
156
152
|
|
|
157
153
|
<tr>
|
|
158
154
|
<td class="col-md-3">imports</td>
|
|
@@ -211,12 +207,11 @@ import { HeaderComponent } from '../header/header.component';
|
|
|
211
207
|
import { NavigationProgressBarComponent } from '../navigation-progress-bar/navigation-progress-bar.component';
|
|
212
208
|
|
|
213
209
|
@Component({
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
210
|
+
selector: 'rxap-minimal-layout',
|
|
211
|
+
imports: [RouterOutlet, BaseLayoutComponent, NavigationProgressBarComponent, HeaderComponent, FooterComponent],
|
|
212
|
+
templateUrl: './minimal-layout.component.html',
|
|
213
|
+
styleUrl: './minimal-layout.component.scss',
|
|
214
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
220
215
|
})
|
|
221
216
|
export class MinimalLayoutComponent {}
|
|
222
217
|
</code></pre>
|
|
@@ -167,10 +167,6 @@
|
|
|
167
167
|
<td class="col-md-9"><code>ul[rxap-navigation]</code></td>
|
|
168
168
|
</tr>
|
|
169
169
|
|
|
170
|
-
<tr>
|
|
171
|
-
<td class="col-md-3">standalone</td>
|
|
172
|
-
<td class="col-md-9"><code>true</code></td>
|
|
173
|
-
</tr>
|
|
174
170
|
|
|
175
171
|
<tr>
|
|
176
172
|
<td class="col-md-3">imports</td>
|
|
@@ -309,7 +305,7 @@
|
|
|
309
305
|
</tr>
|
|
310
306
|
<tr>
|
|
311
307
|
<td class="col-md-2" colspan="2">
|
|
312
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
308
|
+
<div class="io-line">Defined in <a href="" data-line="50" class="link-to-prism">src/lib/navigation/navigation.component.ts:50</a></div>
|
|
313
309
|
</td>
|
|
314
310
|
</tr>
|
|
315
311
|
</tbody>
|
|
@@ -329,7 +325,7 @@
|
|
|
329
325
|
</tr>
|
|
330
326
|
<tr>
|
|
331
327
|
<td class="col-md-2" colspan="2">
|
|
332
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
328
|
+
<div class="io-line">Defined in <a href="" data-line="52" class="link-to-prism">src/lib/navigation/navigation.component.ts:52</a></div>
|
|
333
329
|
</td>
|
|
334
330
|
</tr>
|
|
335
331
|
</tbody>
|
|
@@ -349,7 +345,7 @@
|
|
|
349
345
|
</tr>
|
|
350
346
|
<tr>
|
|
351
347
|
<td class="col-md-2" colspan="2">
|
|
352
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
348
|
+
<div class="io-line">Defined in <a href="" data-line="62" class="link-to-prism">src/lib/navigation/navigation.component.ts:62</a></div>
|
|
353
349
|
</td>
|
|
354
350
|
</tr>
|
|
355
351
|
</tbody>
|
|
@@ -385,8 +381,8 @@
|
|
|
385
381
|
|
|
386
382
|
<tr>
|
|
387
383
|
<td class="col-md-4">
|
|
388
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
389
|
-
class="link-to-prism">src/lib/navigation/navigation.component.ts:
|
|
384
|
+
<div class="io-line">Defined in <a href="" data-line="89"
|
|
385
|
+
class="link-to-prism">src/lib/navigation/navigation.component.ts:89</a></div>
|
|
390
386
|
</td>
|
|
391
387
|
</tr>
|
|
392
388
|
|
|
@@ -454,8 +450,8 @@
|
|
|
454
450
|
|
|
455
451
|
<tr>
|
|
456
452
|
<td class="col-md-4">
|
|
457
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
458
|
-
class="link-to-prism">src/lib/navigation/navigation.component.ts:
|
|
453
|
+
<div class="io-line">Defined in <a href="" data-line="77"
|
|
454
|
+
class="link-to-prism">src/lib/navigation/navigation.component.ts:77</a></div>
|
|
459
455
|
</td>
|
|
460
456
|
</tr>
|
|
461
457
|
|
|
@@ -523,8 +519,8 @@
|
|
|
523
519
|
|
|
524
520
|
<tr>
|
|
525
521
|
<td class="col-md-4">
|
|
526
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
527
|
-
class="link-to-prism">src/lib/navigation/navigation.component.ts:
|
|
522
|
+
<div class="io-line">Defined in <a href="" data-line="83"
|
|
523
|
+
class="link-to-prism">src/lib/navigation/navigation.component.ts:83</a></div>
|
|
528
524
|
</td>
|
|
529
525
|
</tr>
|
|
530
526
|
|
|
@@ -596,7 +592,7 @@
|
|
|
596
592
|
</tr>
|
|
597
593
|
<tr>
|
|
598
594
|
<td class="col-md-4">
|
|
599
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
595
|
+
<div class="io-line">Defined in <a href="" data-line="58" class="link-to-prism">src/lib/navigation/navigation.component.ts:58</a></div>
|
|
600
596
|
</td>
|
|
601
597
|
</tr>
|
|
602
598
|
|
|
@@ -617,7 +613,7 @@
|
|
|
617
613
|
</tr>
|
|
618
614
|
<tr>
|
|
619
615
|
<td class="col-md-4">
|
|
620
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
616
|
+
<div class="io-line">Defined in <a href="" data-line="50" class="link-to-prism">src/lib/navigation/navigation.component.ts:50</a></div>
|
|
621
617
|
</td>
|
|
622
618
|
</tr>
|
|
623
619
|
|
|
@@ -643,7 +639,7 @@
|
|
|
643
639
|
</tr>
|
|
644
640
|
<tr>
|
|
645
641
|
<td class="col-md-4">
|
|
646
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
642
|
+
<div class="io-line">Defined in <a href="" data-line="52" class="link-to-prism">src/lib/navigation/navigation.component.ts:52</a></div>
|
|
647
643
|
</td>
|
|
648
644
|
</tr>
|
|
649
645
|
|
|
@@ -669,7 +665,7 @@
|
|
|
669
665
|
</tr>
|
|
670
666
|
<tr>
|
|
671
667
|
<td class="col-md-4">
|
|
672
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
668
|
+
<div class="io-line">Defined in <a href="" data-line="60" class="link-to-prism">src/lib/navigation/navigation.component.ts:60</a></div>
|
|
673
669
|
</td>
|
|
674
670
|
</tr>
|
|
675
671
|
|
|
@@ -696,7 +692,7 @@
|
|
|
696
692
|
</tr>
|
|
697
693
|
<tr>
|
|
698
694
|
<td class="col-md-4">
|
|
699
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
695
|
+
<div class="io-line">Defined in <a href="" data-line="62" class="link-to-prism">src/lib/navigation/navigation.component.ts:62</a></div>
|
|
700
696
|
</td>
|
|
701
697
|
</tr>
|
|
702
698
|
|
|
@@ -738,24 +734,23 @@ import {
|
|
|
738
734
|
import { NavigationItemComponent } from './navigation-item/navigation-item.component';
|
|
739
735
|
|
|
740
736
|
@Component({
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
],
|
|
737
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
738
|
+
selector: 'ul[rxap-navigation]',
|
|
739
|
+
templateUrl: './navigation.component.html',
|
|
740
|
+
styleUrls: ['./navigation.component.scss'],
|
|
741
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
742
|
+
encapsulation: ViewEncapsulation.None,
|
|
743
|
+
|
|
744
|
+
host: {
|
|
745
|
+
class: 'list-none dark:text-neutral-400 text-neutral-700',
|
|
746
|
+
},
|
|
747
|
+
imports: [
|
|
748
|
+
NgFor,
|
|
749
|
+
NgIf,
|
|
750
|
+
MatDividerModule,
|
|
751
|
+
forwardRef(() => NavigationItemComponent),
|
|
752
|
+
AsyncPipe,
|
|
753
|
+
]
|
|
759
754
|
})
|
|
760
755
|
export class NavigationComponent implements OnInit {
|
|
761
756
|
|
|
@@ -132,6 +132,7 @@
|
|
|
132
132
|
<p class="comment">
|
|
133
133
|
<code>OnChanges</code>
|
|
134
134
|
<code>OnDestroy</code>
|
|
135
|
+
<code>AfterViewInit</code>
|
|
135
136
|
</p>
|
|
136
137
|
|
|
137
138
|
|
|
@@ -164,10 +165,6 @@
|
|
|
164
165
|
<td class="col-md-9"><code>li[rxap-navigation-item]</code></td>
|
|
165
166
|
</tr>
|
|
166
167
|
|
|
167
|
-
<tr>
|
|
168
|
-
<td class="col-md-3">standalone</td>
|
|
169
|
-
<td class="col-md-9"><code>true</code></td>
|
|
170
|
-
</tr>
|
|
171
168
|
|
|
172
169
|
<tr>
|
|
173
170
|
<td class="col-md-3">imports</td>
|
|
@@ -375,8 +372,8 @@
|
|
|
375
372
|
|
|
376
373
|
<tr>
|
|
377
374
|
<td class="col-md-4">
|
|
378
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
379
|
-
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:
|
|
375
|
+
<div class="io-line">Defined in <a href="" data-line="182"
|
|
376
|
+
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:182</a></div>
|
|
380
377
|
</td>
|
|
381
378
|
</tr>
|
|
382
379
|
|
|
@@ -444,8 +441,8 @@
|
|
|
444
441
|
|
|
445
442
|
<tr>
|
|
446
443
|
<td class="col-md-4">
|
|
447
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
448
|
-
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:
|
|
444
|
+
<div class="io-line">Defined in <a href="" data-line="170"
|
|
445
|
+
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:170</a></div>
|
|
449
446
|
</td>
|
|
450
447
|
</tr>
|
|
451
448
|
|
|
@@ -513,8 +510,8 @@
|
|
|
513
510
|
|
|
514
511
|
<tr>
|
|
515
512
|
<td class="col-md-4">
|
|
516
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
517
|
-
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:
|
|
513
|
+
<div class="io-line">Defined in <a href="" data-line="176"
|
|
514
|
+
class="link-to-prism">src/lib/navigation/navigation-item/navigation-item.component.ts:176</a></div>
|
|
518
515
|
</td>
|
|
519
516
|
</tr>
|
|
520
517
|
|
|
@@ -764,7 +761,7 @@ import {
|
|
|
764
761
|
signal,
|
|
765
762
|
SimpleChanges,
|
|
766
763
|
viewChild,
|
|
767
|
-
ViewEncapsulation,
|
|
764
|
+
ViewEncapsulation, AfterViewInit,
|
|
768
765
|
} from '@angular/core';
|
|
769
766
|
import { MatRippleModule } from '@angular/material/core';
|
|
770
767
|
import { MatDividerModule } from '@angular/material/divider';
|
|
@@ -776,6 +773,7 @@ import {
|
|
|
776
773
|
RouterLinkActive,
|
|
777
774
|
} from '@angular/router';
|
|
778
775
|
import { IconDirective } from '@rxap/material-directives/icon';
|
|
776
|
+
import { coerceArray } from '@rxap/utilities';
|
|
779
777
|
import {
|
|
780
778
|
debounceTime,
|
|
781
779
|
Subscription,
|
|
@@ -794,44 +792,43 @@ import {
|
|
|
794
792
|
import { NavigationComponent } from '../navigation.component';
|
|
795
793
|
|
|
796
794
|
@Component({
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
]
|
|
795
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
796
|
+
selector: 'li[rxap-navigation-item]',
|
|
797
|
+
templateUrl: './navigation-item.component.html',
|
|
798
|
+
styleUrls: ['./navigation-item.component.scss'],
|
|
799
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
800
|
+
encapsulation: ViewEncapsulation.None,
|
|
801
|
+
animations: [
|
|
802
|
+
trigger('sub-nav', [
|
|
803
|
+
transition(':enter', [
|
|
804
|
+
style({
|
|
805
|
+
display: 'block',
|
|
806
|
+
height: '0',
|
|
807
|
+
overflow: 'hidden',
|
|
808
|
+
}),
|
|
809
|
+
animate(150, style({ height: '*' })),
|
|
810
|
+
]),
|
|
811
|
+
transition(':leave', [
|
|
812
|
+
style({ overflow: 'hidden' }),
|
|
813
|
+
animate(300, style({ height: '0' })),
|
|
814
|
+
style({ display: 'none' }),
|
|
815
|
+
]),
|
|
816
|
+
]),
|
|
817
|
+
],
|
|
818
|
+
imports: [
|
|
819
|
+
RouterLinkActive,
|
|
820
|
+
RouterLink,
|
|
821
|
+
NgIf,
|
|
822
|
+
MatRippleModule,
|
|
823
|
+
MatIconModule,
|
|
824
|
+
IconDirective,
|
|
825
|
+
MatDividerModule,
|
|
826
|
+
forwardRef(() => NavigationComponent),
|
|
827
|
+
NgClass,
|
|
828
|
+
]
|
|
832
829
|
})
|
|
833
830
|
export class NavigationItemComponent
|
|
834
|
-
implements OnChanges, OnDestroy {
|
|
831
|
+
implements OnChanges, OnDestroy, AfterViewInit {
|
|
835
832
|
|
|
836
833
|
public readonly level = input(0);
|
|
837
834
|
|
|
@@ -879,8 +876,12 @@ export class NavigationItemComponent
|
|
|
879
876
|
if (urlParts[0] === '') {
|
|
880
877
|
urlParts[0] = '/';
|
|
881
878
|
}
|
|
882
|
-
|
|
883
|
-
|
|
879
|
+
const routerLink = coerceArray(this.item().routerLink).map(fragment => fragment.split('/')).flat();
|
|
880
|
+
if (routerLink[0] === '') {
|
|
881
|
+
routerLink[0] = '/';
|
|
882
|
+
}
|
|
883
|
+
for (let i = 0; i < routerLink.length; i++) {
|
|
884
|
+
if (urlParts[i] !== routerLink[i]) {
|
|
884
885
|
isActive = false;
|
|
885
886
|
break;
|
|
886
887
|
}
|
|
@@ -947,7 +948,7 @@ export class NavigationItemComponent
|
|
|
947
948
|
>
|
|
948
949
|
{{ item().label }}
|
|
949
950
|
</span>
|
|
950
|
-
<mat-icon *ngIf="item().icon" [rxapIcon]="
|
|
951
|
+
<mat-icon *ngIf="item().icon as icon" [rxapIcon]="icon"></mat-icon>
|
|
951
952
|
</a>
|
|
952
953
|
|
|
953
954
|
<ng-container *ngIf="item().children?.length && active()">
|
|
@@ -1000,7 +1001,7 @@ export class NavigationItemComponent
|
|
|
1000
1001
|
<script src="../js/libs/htmlparser.js"></script>
|
|
1001
1002
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
1002
1003
|
<script>
|
|
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]="
|
|
1004
|
+
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 as icon" [rxapIcon]="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
1005
|
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
1006
|
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'HeaderDirective', 'selector': '[rxapHeader]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
1006
1007
|
var ACTUAL_COMPONENT = {'name': 'NavigationItemComponent'};
|
|
@@ -153,10 +153,6 @@
|
|
|
153
153
|
<td class="col-md-9"><code>rxap-navigation-progress-bar</code></td>
|
|
154
154
|
</tr>
|
|
155
155
|
|
|
156
|
-
<tr>
|
|
157
|
-
<td class="col-md-3">standalone</td>
|
|
158
|
-
<td class="col-md-9"><code>true</code></td>
|
|
159
|
-
</tr>
|
|
160
156
|
|
|
161
157
|
<tr>
|
|
162
158
|
<td class="col-md-3">imports</td>
|
|
@@ -262,7 +258,7 @@
|
|
|
262
258
|
</tr>
|
|
263
259
|
<tr>
|
|
264
260
|
<td class="col-md-4">
|
|
265
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
261
|
+
<div class="io-line">Defined in <a href="" data-line="32" class="link-to-prism">src/lib/navigation-progress-bar/navigation-progress-bar.component.ts:32</a></div>
|
|
266
262
|
</td>
|
|
267
263
|
</tr>
|
|
268
264
|
|
|
@@ -289,7 +285,7 @@
|
|
|
289
285
|
</tr>
|
|
290
286
|
<tr>
|
|
291
287
|
<td class="col-md-4">
|
|
292
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
288
|
+
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/navigation-progress-bar/navigation-progress-bar.component.ts:30</a></div>
|
|
293
289
|
</td>
|
|
294
290
|
</tr>
|
|
295
291
|
|
|
@@ -321,14 +317,13 @@ import {
|
|
|
321
317
|
} from 'rxjs/operators';
|
|
322
318
|
|
|
323
319
|
@Component({
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
],
|
|
320
|
+
selector: 'rxap-navigation-progress-bar',
|
|
321
|
+
templateUrl: './navigation-progress-bar.component.html',
|
|
322
|
+
styleUrls: ['./navigation-progress-bar.component.scss'],
|
|
323
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
324
|
+
imports: [
|
|
325
|
+
MatProgressBar,
|
|
326
|
+
]
|
|
332
327
|
})
|
|
333
328
|
export class NavigationProgressBarComponent {
|
|
334
329
|
|
|
@@ -149,10 +149,6 @@
|
|
|
149
149
|
<td class="col-md-9"><code>rxap-release-info</code></td>
|
|
150
150
|
</tr>
|
|
151
151
|
|
|
152
|
-
<tr>
|
|
153
|
-
<td class="col-md-3">standalone</td>
|
|
154
|
-
<td class="col-md-9"><code>true</code></td>
|
|
155
|
-
</tr>
|
|
156
152
|
|
|
157
153
|
<tr>
|
|
158
154
|
<td class="col-md-3">imports</td>
|
|
@@ -263,8 +259,8 @@
|
|
|
263
259
|
|
|
264
260
|
<tr>
|
|
265
261
|
<td class="col-md-4">
|
|
266
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
267
|
-
class="link-to-prism">src/lib/release-info/release-info.component.ts:
|
|
262
|
+
<div class="io-line">Defined in <a href="" data-line="32"
|
|
263
|
+
class="link-to-prism">src/lib/release-info/release-info.component.ts:32</a></div>
|
|
268
264
|
</td>
|
|
269
265
|
</tr>
|
|
270
266
|
|
|
@@ -306,7 +302,7 @@
|
|
|
306
302
|
</tr>
|
|
307
303
|
<tr>
|
|
308
304
|
<td class="col-md-4">
|
|
309
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
305
|
+
<div class="io-line">Defined in <a href="" data-line="27" class="link-to-prism">src/lib/release-info/release-info.component.ts:27</a></div>
|
|
310
306
|
</td>
|
|
311
307
|
</tr>
|
|
312
308
|
|
|
@@ -333,7 +329,7 @@
|
|
|
333
329
|
</tr>
|
|
334
330
|
<tr>
|
|
335
331
|
<td class="col-md-4">
|
|
336
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
332
|
+
<div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/release-info/release-info.component.ts:28</a></div>
|
|
337
333
|
</td>
|
|
338
334
|
</tr>
|
|
339
335
|
|
|
@@ -362,14 +358,13 @@ import { RXAP_RELEASE_INFO_MODULE } from '../tokens';
|
|
|
362
358
|
import { coerceArray } from '@rxap/utilities';
|
|
363
359
|
|
|
364
360
|
@Component({
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
361
|
+
selector: 'rxap-release-info',
|
|
362
|
+
imports: [
|
|
363
|
+
MatButton,
|
|
364
|
+
],
|
|
365
|
+
templateUrl: './release-info.component.html',
|
|
366
|
+
styleUrl: './release-info.component.scss',
|
|
367
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
373
368
|
})
|
|
374
369
|
export class ReleaseInfoComponent {
|
|
375
370
|
|