@siemens/element-ng 49.6.0 → 49.8.0
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/fesm2022/siemens-element-ng-about.mjs +2 -2
- package/fesm2022/siemens-element-ng-about.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-accordion.mjs +1 -1
- package/fesm2022/siemens-element-ng-accordion.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-action-modal.mjs +8 -8
- package/fesm2022/siemens-element-ng-action-modal.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-ag-grid.mjs +3 -3
- package/fesm2022/siemens-element-ng-ag-grid.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-application-header.mjs +5 -5
- package/fesm2022/siemens-element-ng-application-header.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-avatar.mjs +2 -2
- package/fesm2022/siemens-element-ng-avatar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-breadcrumb.mjs +2 -2
- package/fesm2022/siemens-element-ng-breadcrumb.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-card.mjs +43 -8
- package/fesm2022/siemens-element-ng-card.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-chat-messages.mjs +8 -8
- package/fesm2022/siemens-element-ng-chat-messages.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-circle-status.mjs +2 -2
- package/fesm2022/siemens-element-ng-circle-status.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-color-picker.mjs +2 -2
- package/fesm2022/siemens-element-ng-color-picker.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs +2 -2
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-common.mjs +4 -4
- package/fesm2022/siemens-element-ng-common.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-content-action-bar.mjs +2 -2
- package/fesm2022/siemens-element-ng-content-action-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-dashboard.mjs +31 -14
- package/fesm2022/siemens-element-ng-dashboard.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-date-range-filter.mjs +16 -4
- package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-datepicker.mjs +59 -46
- package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs +2 -2
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-file-uploader.mjs +9 -8
- package/fesm2022/siemens-element-ng-file-uploader.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-filter-bar.mjs +4 -4
- package/fesm2022/siemens-element-ng-filter-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-filtered-search.mjs +12 -12
- package/fesm2022/siemens-element-ng-filtered-search.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-formly.mjs +1 -1
- package/fesm2022/siemens-element-ng-formly.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-header-dropdown.mjs +3 -3
- package/fesm2022/siemens-element-ng-header-dropdown.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-loading-spinner.mjs +19 -11
- package/fesm2022/siemens-element-ng-loading-spinner.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-modal.mjs +25 -26
- package/fesm2022/siemens-element-ng-modal.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-navbar-vertical-next.mjs +316 -354
- package/fesm2022/siemens-element-ng-navbar-vertical-next.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-navbar-vertical.mjs +4 -4
- package/fesm2022/siemens-element-ng-navbar-vertical.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-navbar.mjs +4 -4
- package/fesm2022/siemens-element-ng-navbar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-notification-item.mjs +2 -2
- package/fesm2022/siemens-element-ng-notification-item.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-number-input.mjs +2 -2
- package/fesm2022/siemens-element-ng-number-input.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-pagination.mjs +5 -2
- package/fesm2022/siemens-element-ng-pagination.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-password-toggle.mjs +2 -2
- package/fesm2022/siemens-element-ng-password-toggle.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-photo-upload.mjs +2 -2
- package/fesm2022/siemens-element-ng-photo-upload.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-pills-input.mjs +4 -4
- package/fesm2022/siemens-element-ng-pills-input.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-popover.mjs +10 -3
- package/fesm2022/siemens-element-ng-popover.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-search-bar.mjs +10 -4
- package/fesm2022/siemens-element-ng-search-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-select.mjs +4 -4
- package/fesm2022/siemens-element-ng-select.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-side-panel.mjs +8 -5
- package/fesm2022/siemens-element-ng-side-panel.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-status-bar.mjs +69 -29
- package/fesm2022/siemens-element-ng-status-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-summary-chip.mjs +2 -2
- package/fesm2022/siemens-element-ng-summary-chip.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-summary-widget.mjs +2 -2
- package/fesm2022/siemens-element-ng-summary-widget.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tabs-legacy.mjs +2 -2
- package/fesm2022/siemens-element-ng-tabs-legacy.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tabs.mjs +10 -10
- package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-threshold.mjs +2 -2
- package/fesm2022/siemens-element-ng-threshold.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-toast-notification.mjs +2 -2
- package/fesm2022/siemens-element-ng-toast-notification.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tooltip.mjs +10 -8
- package/fesm2022/siemens-element-ng-tooltip.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tour.mjs +2 -2
- package/fesm2022/siemens-element-ng-tour.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-wizard.mjs +88 -53
- package/fesm2022/siemens-element-ng-wizard.mjs.map +1 -1
- package/package.json +4 -4
- package/schematics/migrations/data/element-migration-data.js +20 -0
- package/schematics/migrations/data/index.js +1 -16
- package/schematics/migrations/ngx-translate/index.js +1 -137
- package/schematics/migrations/ngx-translate/missing-translate-migration.js +141 -0
- package/schematics/ng-add/index.js +1 -12
- package/schematics/ng-add/ng-add-rule.js +16 -0
- package/schematics/ng-update/index.js +1 -17
- package/schematics/ng-update/migrate-to-v49.js +21 -0
- package/template-i18n.json +3 -1
- package/types/siemens-element-ng-card.d.ts +26 -1
- package/types/siemens-element-ng-common.d.ts +3 -3
- package/types/siemens-element-ng-dashboard.d.ts +4 -1
- package/types/siemens-element-ng-date-range-filter.d.ts +10 -1
- package/types/siemens-element-ng-file-uploader.d.ts +4 -3
- package/types/siemens-element-ng-filtered-search.d.ts +1 -1
- package/types/siemens-element-ng-loading-spinner.d.ts +4 -2
- package/types/siemens-element-ng-navbar-vertical-next.d.ts +167 -183
- package/types/siemens-element-ng-navbar.d.ts +2 -2
- package/types/siemens-element-ng-popover.d.ts +9 -2
- package/types/siemens-element-ng-search-bar.d.ts +7 -1
- package/types/siemens-element-ng-side-panel.d.ts +2 -0
- package/types/siemens-element-ng-status-bar.d.ts +19 -10
- package/types/siemens-element-ng-tooltip.d.ts +9 -3
- package/types/siemens-element-ng-translate.d.ts +2 -0
- package/types/siemens-element-ng-wizard.d.ts +23 -5
|
@@ -1,21 +1,205 @@
|
|
|
1
|
-
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Component, InjectionToken, input,
|
|
2
|
+
import { ChangeDetectionStrategy, Component, InjectionToken, model, input, booleanAttribute, inject, signal, linkedSignal, ViewContainerRef, Injector, computed, effect, untracked, Directive, output, viewChild, NgModule } from '@angular/core';
|
|
3
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
5
4
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
|
-
import {
|
|
7
|
-
import { elementDown2, elementSearch, elementDoubleRight, elementDoubleLeft } from '@siemens/element-icons';
|
|
5
|
+
import { elementDoubleRight, elementDoubleLeft, elementDown2, elementSearch } from '@siemens/element-icons';
|
|
8
6
|
import { SI_UI_STATE_SERVICE } from '@siemens/element-ng/common';
|
|
9
7
|
import { addIcons, SiIconComponent } from '@siemens/element-ng/icon';
|
|
10
8
|
import { BOOTSTRAP_BREAKPOINTS } from '@siemens/element-ng/resize-observer';
|
|
11
|
-
import { SiSearchBarComponent } from '@siemens/element-ng/search-bar';
|
|
12
9
|
import { SiSkipLinkTargetDirective } from '@siemens/element-ng/skip-links';
|
|
13
|
-
import {
|
|
14
|
-
import { SiTranslatePipe, t } from '@siemens/element-translate-ng/translate';
|
|
10
|
+
import { t, SiTranslatePipe } from '@siemens/element-translate-ng/translate';
|
|
15
11
|
import { Overlay } from '@angular/cdk/overlay';
|
|
16
12
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
17
13
|
import { CdkTrapFocus } from '@angular/cdk/a11y';
|
|
14
|
+
import { RouterLinkActive } from '@angular/router';
|
|
18
15
|
import { SiLinkDirective } from '@siemens/element-ng/link';
|
|
16
|
+
import { SiSearchBarComponent } from '@siemens/element-ng/search-bar';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
20
|
+
* SPDX-License-Identifier: MIT
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Content slot for navbar items inside `si-navbar-vertical-next`.
|
|
24
|
+
* Place `<a si-navbar-vertical-next-item>` and `<button si-navbar-vertical-next-item>` elements inside this component.
|
|
25
|
+
* @experimental
|
|
26
|
+
*/
|
|
27
|
+
class SiNavbarVerticalNextItemsComponent {
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextItemsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.8", type: SiNavbarVerticalNextItemsComponent, isStandalone: true, selector: "si-navbar-vertical-next-items", ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:block;overflow-x:hidden;min-block-size:0;flex:1 0 0;overflow-y:auto;margin-block-start:8px}:host-context(.nav-collapsed){display:none}@media(min-width:576px){:host-context(:not(.nav-text-only).nav-collapsed){display:block}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextItemsComponent, decorators: [{
|
|
32
|
+
type: Component,
|
|
33
|
+
args: [{ selector: 'si-navbar-vertical-next-items', template: '<ng-content />', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;overflow-x:hidden;min-block-size:0;flex:1 0 0;overflow-y:auto;margin-block-start:8px}:host-context(.nav-collapsed){display:none}@media(min-width:576px){:host-context(:not(.nav-text-only).nav-collapsed){display:block}}\n"] }]
|
|
34
|
+
}] });
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
38
|
+
* SPDX-License-Identifier: MIT
|
|
39
|
+
*/
|
|
40
|
+
/** @experimental */
|
|
41
|
+
const SI_NAVBAR_VERTICAL_NEXT = new InjectionToken('SI_NAVBAR_VERTICAL_NEXT');
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
45
|
+
* SPDX-License-Identifier: MIT
|
|
46
|
+
*/
|
|
47
|
+
/** @experimental */
|
|
48
|
+
class SiNavbarVerticalNextComponent {
|
|
49
|
+
icons = addIcons({ elementDoubleLeft, elementDoubleRight });
|
|
50
|
+
/**
|
|
51
|
+
* Whether the navbar-vertical is collapsed.
|
|
52
|
+
*
|
|
53
|
+
* @defaultValue false
|
|
54
|
+
*/
|
|
55
|
+
collapsed = model(false, ...(ngDevMode ? [{ debugName: "collapsed" }] : []));
|
|
56
|
+
/**
|
|
57
|
+
* Set to `true` if there are no icons
|
|
58
|
+
*
|
|
59
|
+
* @defaultValue false
|
|
60
|
+
*/
|
|
61
|
+
textOnly = input(false, { ...(ngDevMode ? { debugName: "textOnly" } : {}), transform: booleanAttribute });
|
|
62
|
+
/**
|
|
63
|
+
* List of vertical navigation items
|
|
64
|
+
*
|
|
65
|
+
* @deprecated Use the template-based declarative API with content projection instead. Use `<si-navbar-vertical-next-items>` and
|
|
66
|
+
* `<a si-navbar-vertical-next-item>` / `<button si-navbar-vertical-next-item>` instead.
|
|
67
|
+
*
|
|
68
|
+
* @defaultValue true
|
|
69
|
+
*/
|
|
70
|
+
visible = input(true, { ...(ngDevMode ? { debugName: "visible" } : {}), transform: booleanAttribute });
|
|
71
|
+
/**
|
|
72
|
+
* Text for the navbar toggle button used as `aria-label`.
|
|
73
|
+
* The expanded state is communicated via `aria-expanded`.
|
|
74
|
+
*
|
|
75
|
+
* @defaultValue
|
|
76
|
+
* ```
|
|
77
|
+
* t(() => $localize`:@@SI_NAVBAR_VERTICAL.TOGGLE:Toggle`)
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
toggleButtonText = input(t(() => $localize `:@@SI_NAVBAR_VERTICAL.TOGGLE:Toggle`), ...(ngDevMode ? [{ debugName: "toggleButtonText" }] : []));
|
|
81
|
+
/**
|
|
82
|
+
* An optional stateId to uniquely identify a component instance.
|
|
83
|
+
* Required for persistence of ui state.
|
|
84
|
+
*/
|
|
85
|
+
stateId = input(...(ngDevMode ? [undefined, { debugName: "stateId" }] : []));
|
|
86
|
+
/**
|
|
87
|
+
* Label for the skip link to the vertical navbar
|
|
88
|
+
*
|
|
89
|
+
* @defaultValue
|
|
90
|
+
* ```
|
|
91
|
+
* t(() => $localize`:@@SI_NAVBAR_VERTICAL.SKIP_LINK.NAVIGATION_LABEL:Navigation`)
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
skipLinkNavigationLabel = input(t(() => $localize `:@@SI_NAVBAR_VERTICAL.SKIP_LINK.NAVIGATION_LABEL:Navigation`), ...(ngDevMode ? [{ debugName: "skipLinkNavigationLabel" }] : []));
|
|
95
|
+
/**
|
|
96
|
+
* Label for the skip link to main content
|
|
97
|
+
*
|
|
98
|
+
* @defaultValue
|
|
99
|
+
* ```
|
|
100
|
+
* t(() => $localize`:@@SI_NAVBAR_VERTICAL.SKIP_LINK.MAIN_LABEL:Main content`)
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
skipLinkMainContentLabel = input(t(() => $localize `:@@SI_NAVBAR_VERTICAL.SKIP_LINK.MAIN_LABEL:Main content`), ...(ngDevMode ? [{ debugName: "skipLinkMainContentLabel" }] : []));
|
|
104
|
+
uiStateService = inject(SI_UI_STATE_SERVICE, { optional: true });
|
|
105
|
+
breakpointObserver = inject(BreakpointObserver);
|
|
106
|
+
smallScreen = signal(false, ...(ngDevMode ? [{ debugName: "smallScreen" }] : []));
|
|
107
|
+
/**
|
|
108
|
+
* @defaultValue
|
|
109
|
+
* ```
|
|
110
|
+
* {}
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
uiStateExpandedItems = signal({}, ...(ngDevMode ? [{ debugName: "uiStateExpandedItems" }] : []));
|
|
114
|
+
// Indicates if the user prefers a collapsed navbar. Relevant for resizing.
|
|
115
|
+
preferCollapse = false;
|
|
116
|
+
constructor() {
|
|
117
|
+
this.breakpointObserver
|
|
118
|
+
.observe(`(max-width: ${BOOTSTRAP_BREAKPOINTS.lgMinimum}px)`)
|
|
119
|
+
.pipe(takeUntilDestroyed())
|
|
120
|
+
.subscribe(({ matches }) => {
|
|
121
|
+
this.collapsed.set(matches || this.preferCollapse);
|
|
122
|
+
this.smallScreen.set(matches);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
ngOnChanges(changes) {
|
|
126
|
+
if (changes.collapsed) {
|
|
127
|
+
this.preferCollapse = this.collapsed();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
ngOnInit() {
|
|
131
|
+
const stateId = this.stateId();
|
|
132
|
+
if (this.uiStateService && stateId) {
|
|
133
|
+
this.uiStateService.load(stateId).then(uiState => {
|
|
134
|
+
if (uiState) {
|
|
135
|
+
this.preferCollapse = uiState.preferCollapse;
|
|
136
|
+
this.collapsed.set(this.smallScreen() ? this.collapsed() : this.preferCollapse);
|
|
137
|
+
if (uiState.expandedItems) {
|
|
138
|
+
this.uiStateExpandedItems.set(uiState.expandedItems);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
toggleCollapse() {
|
|
145
|
+
if (this.collapsed()) {
|
|
146
|
+
this.expand();
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
this.collapse();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
/** Expands the vertical navbar. */
|
|
153
|
+
expand() {
|
|
154
|
+
this.collapsed.set(false);
|
|
155
|
+
if (!this.smallScreen()) {
|
|
156
|
+
this.preferCollapse = this.collapsed();
|
|
157
|
+
}
|
|
158
|
+
this.saveUIState();
|
|
159
|
+
}
|
|
160
|
+
/** Collapses the vertical navbar. */
|
|
161
|
+
collapse() {
|
|
162
|
+
this.collapsed.set(true);
|
|
163
|
+
if (!this.smallScreen()) {
|
|
164
|
+
this.preferCollapse = this.collapsed();
|
|
165
|
+
}
|
|
166
|
+
this.saveUIState();
|
|
167
|
+
}
|
|
168
|
+
/** @internal */
|
|
169
|
+
groupStateChanged(stateId, expanded) {
|
|
170
|
+
if (stateId) {
|
|
171
|
+
this.uiStateExpandedItems.update(items => ({ ...items, [stateId]: expanded }));
|
|
172
|
+
}
|
|
173
|
+
this.saveUIState();
|
|
174
|
+
}
|
|
175
|
+
saveUIState() {
|
|
176
|
+
const stateId = this.stateId();
|
|
177
|
+
if (!this.uiStateService || !stateId) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
this.uiStateService.save(stateId, {
|
|
181
|
+
preferCollapse: this.preferCollapse,
|
|
182
|
+
expandedItems: this.uiStateExpandedItems()
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/** @internal */
|
|
186
|
+
itemTriggered() {
|
|
187
|
+
if (this.smallScreen()) {
|
|
188
|
+
this.collapsed.set(true);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
192
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: SiNavbarVerticalNextComponent, isStandalone: true, selector: "si-navbar-vertical-next", inputs: { collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, textOnly: { classPropertyName: "textOnly", publicName: "textOnly", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, toggleButtonText: { classPropertyName: "toggleButtonText", publicName: "toggleButtonText", isSignal: true, isRequired: false, transformFunction: null }, stateId: { classPropertyName: "stateId", publicName: "stateId", isSignal: true, isRequired: false, transformFunction: null }, skipLinkNavigationLabel: { classPropertyName: "skipLinkNavigationLabel", publicName: "skipLinkNavigationLabel", isSignal: true, isRequired: false, transformFunction: null }, skipLinkMainContentLabel: { classPropertyName: "skipLinkMainContentLabel", publicName: "skipLinkMainContentLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange" }, host: { properties: { "class.nav-collapsed": "collapsed()", "class.nav-text-only": "textOnly()", "class.visible": "visible()" }, classAttribute: "si-layout-inner ready" }, providers: [{ provide: SI_NAVBAR_VERTICAL_NEXT, useExisting: SiNavbarVerticalNextComponent }], usesOnChanges: true, ngImport: i0, template: "@if (visible()) {\n @if (smallScreen() && !collapsed()) {\n <div class=\"modal-backdrop\" animate.leave=\"backdrop-leave\" (click)=\"toggleCollapse()\"></div>\n }\n <nav\n tabindex=\"-1\"\n class=\"bg-base-1 focus-sub-inside\"\n [class.expanded]=\"!collapsed()\"\n [siSkipLinkTarget]=\"skipLinkNavigationLabel()\"\n [class.text-only]=\"textOnly()\"\n >\n <div class=\"collapse-toggle ms-auto\">\n <div class=\"mobile-drawer focus-inside navbar-vertical-no-collapse\">\n <button\n type=\"button\"\n class=\"btn btn-icon btn-tertiary-ghost\"\n [attr.aria-label]=\"toggleButtonText() | translate\"\n [attr.aria-expanded]=\"!collapsed()\"\n (click)=\"toggleCollapse()\"\n >\n <si-icon\n class=\"flip-rtl\"\n [icon]=\"collapsed() ? icons.elementDoubleRight : icons.elementDoubleLeft\"\n />\n </button>\n </div>\n </div>\n <ng-content select=\"si-navbar-vertical-next-search\" />\n <ng-content select=\"si-navbar-vertical-next-items\" />\n <ng-content select=\"si-navbar-vertical-next-footer-items\" />\n </nav>\n}\n<main\n class=\"si-layout-inner focus-none\"\n tabindex=\"-1\"\n [siSkipLinkTarget]=\"skipLinkMainContentLabel()\"\n>\n <ng-content />\n</main>\n", styles: [":host{display:block;transition:padding-inline-start calc(.5s * var(--element-animations-enabled, 1));--si-layout-header-first-element-offset: 40px}:host.ready:not(.visible){padding-inline-start:0!important}nav{display:flex;flex-direction:column;position:fixed;z-index:1031;inset-block-start:calc(1.5rem + 25px + var(--element-titlebar-spacing, 0px) + var(--element-system-banner-spacing, 0px));inset-block-end:0;inset-inline-start:0;inline-size:0;transition:inline-size calc(.5s * var(--element-animations-enabled, 1)) ease}:host(.nav-collapsed) nav{z-index:1030}nav.expanded{inline-size:240px}.mobile-drawer{display:block;text-align:end;border:0;inline-size:calc(1.5rem + 24px);color:var(--element-text-primary);padding-block:4px;padding-inline:8px;margin-block-start:8px;border-start-end-radius:var(--element-radius-2);border-end-end-radius:var(--element-radius-2);transition:inline-size calc(.5s * var(--element-animations-enabled, 1)) ease,background-color calc(.5s * var(--element-animations-enabled, 1)) ease,box-shadow calc(.5s * var(--element-animations-enabled, 1)) ease}:host(:not(.nav-collapsed)) .mobile-drawer{inline-size:240px}:host.nav-collapsed .mobile-drawer{border:0;color:var(--element-text-primary);background:var(--element-base-1);text-align:end;box-shadow:0 0 4px var(--element-box-shadow-color-1),0 4px 4px var(--element-box-shadow-color-2)}.modal-backdrop{z-index:1031;transition:opacity calc(.15s * var(--element-animations-enabled, 1)) linear;opacity:1}@starting-style{.modal-backdrop{opacity:0}}.modal-backdrop.backdrop-leave{opacity:0}@media(min-width:576px){:host:not(.nav-text-only),:host:not(.nav-collapsed){--si-layout-header-first-element-offset: 0}:host:not(.nav-text-only){padding-inline-start:calc(1.5rem + 24px)}:host:not(.nav-text-only) .mobile-drawer{background:transparent;box-shadow:none}:host:not(.nav-text-only) nav{inline-size:calc(1.5rem + 24px)}:host:not(.nav-text-only) nav.expanded{inline-size:240px}}@media(min-width:992px){:host:not(.nav-collapsed){padding-inline-start:240px}}\n"], dependencies: [{ kind: "component", type: SiIconComponent, selector: "si-icon", inputs: ["icon"] }, { kind: "directive", type: SiSkipLinkTargetDirective, selector: "[siSkipLinkTarget]", inputs: ["siSkipLinkTarget"] }, { kind: "pipe", type: SiTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
193
|
+
}
|
|
194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextComponent, decorators: [{
|
|
195
|
+
type: Component,
|
|
196
|
+
args: [{ selector: 'si-navbar-vertical-next', imports: [SiIconComponent, SiSkipLinkTargetDirective, SiTranslatePipe], providers: [{ provide: SI_NAVBAR_VERTICAL_NEXT, useExisting: SiNavbarVerticalNextComponent }], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
197
|
+
class: 'si-layout-inner ready',
|
|
198
|
+
'[class.nav-collapsed]': 'collapsed()',
|
|
199
|
+
'[class.nav-text-only]': 'textOnly()',
|
|
200
|
+
'[class.visible]': 'visible()'
|
|
201
|
+
}, template: "@if (visible()) {\n @if (smallScreen() && !collapsed()) {\n <div class=\"modal-backdrop\" animate.leave=\"backdrop-leave\" (click)=\"toggleCollapse()\"></div>\n }\n <nav\n tabindex=\"-1\"\n class=\"bg-base-1 focus-sub-inside\"\n [class.expanded]=\"!collapsed()\"\n [siSkipLinkTarget]=\"skipLinkNavigationLabel()\"\n [class.text-only]=\"textOnly()\"\n >\n <div class=\"collapse-toggle ms-auto\">\n <div class=\"mobile-drawer focus-inside navbar-vertical-no-collapse\">\n <button\n type=\"button\"\n class=\"btn btn-icon btn-tertiary-ghost\"\n [attr.aria-label]=\"toggleButtonText() | translate\"\n [attr.aria-expanded]=\"!collapsed()\"\n (click)=\"toggleCollapse()\"\n >\n <si-icon\n class=\"flip-rtl\"\n [icon]=\"collapsed() ? icons.elementDoubleRight : icons.elementDoubleLeft\"\n />\n </button>\n </div>\n </div>\n <ng-content select=\"si-navbar-vertical-next-search\" />\n <ng-content select=\"si-navbar-vertical-next-items\" />\n <ng-content select=\"si-navbar-vertical-next-footer-items\" />\n </nav>\n}\n<main\n class=\"si-layout-inner focus-none\"\n tabindex=\"-1\"\n [siSkipLinkTarget]=\"skipLinkMainContentLabel()\"\n>\n <ng-content />\n</main>\n", styles: [":host{display:block;transition:padding-inline-start calc(.5s * var(--element-animations-enabled, 1));--si-layout-header-first-element-offset: 40px}:host.ready:not(.visible){padding-inline-start:0!important}nav{display:flex;flex-direction:column;position:fixed;z-index:1031;inset-block-start:calc(1.5rem + 25px + var(--element-titlebar-spacing, 0px) + var(--element-system-banner-spacing, 0px));inset-block-end:0;inset-inline-start:0;inline-size:0;transition:inline-size calc(.5s * var(--element-animations-enabled, 1)) ease}:host(.nav-collapsed) nav{z-index:1030}nav.expanded{inline-size:240px}.mobile-drawer{display:block;text-align:end;border:0;inline-size:calc(1.5rem + 24px);color:var(--element-text-primary);padding-block:4px;padding-inline:8px;margin-block-start:8px;border-start-end-radius:var(--element-radius-2);border-end-end-radius:var(--element-radius-2);transition:inline-size calc(.5s * var(--element-animations-enabled, 1)) ease,background-color calc(.5s * var(--element-animations-enabled, 1)) ease,box-shadow calc(.5s * var(--element-animations-enabled, 1)) ease}:host(:not(.nav-collapsed)) .mobile-drawer{inline-size:240px}:host.nav-collapsed .mobile-drawer{border:0;color:var(--element-text-primary);background:var(--element-base-1);text-align:end;box-shadow:0 0 4px var(--element-box-shadow-color-1),0 4px 4px var(--element-box-shadow-color-2)}.modal-backdrop{z-index:1031;transition:opacity calc(.15s * var(--element-animations-enabled, 1)) linear;opacity:1}@starting-style{.modal-backdrop{opacity:0}}.modal-backdrop.backdrop-leave{opacity:0}@media(min-width:576px){:host:not(.nav-text-only),:host:not(.nav-collapsed){--si-layout-header-first-element-offset: 0}:host:not(.nav-text-only){padding-inline-start:calc(1.5rem + 24px)}:host:not(.nav-text-only) .mobile-drawer{background:transparent;box-shadow:none}:host:not(.nav-text-only) nav{inline-size:calc(1.5rem + 24px)}:host:not(.nav-text-only) nav.expanded{inline-size:240px}}@media(min-width:992px){:host:not(.nav-collapsed){padding-inline-start:240px}}\n"] }]
|
|
202
|
+
}], ctorParameters: () => [], propDecorators: { collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }, { type: i0.Output, args: ["collapsedChange"] }], textOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "textOnly", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], toggleButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleButtonText", required: false }] }], stateId: [{ type: i0.Input, args: [{ isSignal: true, alias: "stateId", required: false }] }], skipLinkNavigationLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "skipLinkNavigationLabel", required: false }] }], skipLinkMainContentLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "skipLinkMainContentLabel", required: false }] }] } });
|
|
19
203
|
|
|
20
204
|
/**
|
|
21
205
|
* Copyright (c) Siemens 2016 - 2026
|
|
@@ -38,8 +222,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
|
|
|
38
222
|
* Copyright (c) Siemens 2016 - 2026
|
|
39
223
|
* SPDX-License-Identifier: MIT
|
|
40
224
|
*/
|
|
41
|
-
/**
|
|
42
|
-
|
|
225
|
+
/**
|
|
226
|
+
* Content slot for footer items inside `si-navbar-vertical-next`.
|
|
227
|
+
* Place `<a si-navbar-vertical-next-item>` and `<button si-navbar-vertical-next-item>` elements inside this component.
|
|
228
|
+
* Footer items are pinned to the bottom of the navbar.
|
|
229
|
+
* @experimental
|
|
230
|
+
*/
|
|
231
|
+
class SiNavbarVerticalNextFooterItemsComponent {
|
|
232
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextFooterItemsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
233
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.8", type: SiNavbarVerticalNextFooterItemsComponent, isStandalone: true, selector: "si-navbar-vertical-next-footer-items", ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:block;overflow-x:hidden;margin-block-start:auto;padding-block-end:8px}:host-context(.nav-collapsed){display:none}@media(min-width:576px){:host-context(:not(.nav-text-only).nav-collapsed){display:block}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
234
|
+
}
|
|
235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextFooterItemsComponent, decorators: [{
|
|
236
|
+
type: Component,
|
|
237
|
+
args: [{ selector: 'si-navbar-vertical-next-footer-items', template: '<ng-content />', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;overflow-x:hidden;margin-block-start:auto;padding-block-end:8px}:host-context(.nav-collapsed){display:none}@media(min-width:576px){:host-context(:not(.nav-text-only).nav-collapsed){display:block}}\n"] }]
|
|
238
|
+
}] });
|
|
43
239
|
|
|
44
240
|
/**
|
|
45
241
|
* Copyright (c) Siemens 2016 - 2026
|
|
@@ -50,8 +246,8 @@ const SI_NAVBAR_VERTICAL_NEXT = new InjectionToken('SI_NAVBAR_VERTICAL_NEXT');
|
|
|
50
246
|
* Otherwise, without aria-owns, screen reader will announce the leaving of the navbar when moving to the flyout.
|
|
51
247
|
* Aria-owns cannot be put directly on the trigger
|
|
52
248
|
* as chrome will include the flyout children in the a11y label of the trigger.
|
|
249
|
+
* @experimental
|
|
53
250
|
*/
|
|
54
|
-
/** @experimental */
|
|
55
251
|
class SiNavbarFlyoutAnchorComponent {
|
|
56
252
|
groupId = input(...(ngDevMode ? [undefined, { debugName: "groupId" }] : []));
|
|
57
253
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarFlyoutAnchorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -72,9 +268,16 @@ class SiNavbarVerticalNextGroupTriggerDirective {
|
|
|
72
268
|
groupId = `si-navbar-vertical-next-group-${SiNavbarVerticalNextGroupTriggerDirective.idCounter++}`;
|
|
73
269
|
id = `${this.groupId}-trigger`;
|
|
74
270
|
groupTemplate = input.required({ ...(ngDevMode ? { debugName: "groupTemplate" } : {}), alias: 'siNavbarVerticalNextGroupTriggerFor' });
|
|
75
|
-
groupData = input(...(ngDevMode ? [undefined, { debugName: "groupData" }] : []));
|
|
76
271
|
stateId = input(...(ngDevMode ? [undefined, { debugName: "stateId" }] : []));
|
|
77
|
-
|
|
272
|
+
/** @defaultValue false */
|
|
273
|
+
expanded = linkedSignal({ ...(ngDevMode ? { debugName: "expanded" } : {}), source: () => {
|
|
274
|
+
const stateId = this.stateId();
|
|
275
|
+
if (!stateId) {
|
|
276
|
+
return undefined;
|
|
277
|
+
}
|
|
278
|
+
return this.navbar.uiStateExpandedItems()[stateId];
|
|
279
|
+
},
|
|
280
|
+
computation: source => source ?? false });
|
|
78
281
|
/** @internal */
|
|
79
282
|
flyout = signal(false, ...(ngDevMode ? [{ debugName: "flyout" }] : []));
|
|
80
283
|
/** @internal */
|
|
@@ -95,7 +298,19 @@ class SiNavbarVerticalNextGroupTriggerDirective {
|
|
|
95
298
|
});
|
|
96
299
|
groupView;
|
|
97
300
|
flyoutAnchorComponentRef;
|
|
98
|
-
templatePortal = computed(() => new TemplatePortal(this.groupTemplate(), this.viewContainer,
|
|
301
|
+
templatePortal = computed(() => new TemplatePortal(this.groupTemplate(), this.viewContainer, undefined, this.injector), ...(ngDevMode ? [{ debugName: "templatePortal" }] : []));
|
|
302
|
+
constructor() {
|
|
303
|
+
// Sync expanded state from navbar UIState when it loads
|
|
304
|
+
effect(() => {
|
|
305
|
+
const stateId = this.stateId();
|
|
306
|
+
if (!stateId)
|
|
307
|
+
return;
|
|
308
|
+
const state = this.navbar.uiStateExpandedItems()[stateId];
|
|
309
|
+
if (state !== undefined) {
|
|
310
|
+
untracked(() => this.expanded.set(state));
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
}
|
|
99
314
|
ngOnInit() {
|
|
100
315
|
this.attachInline();
|
|
101
316
|
}
|
|
@@ -116,7 +331,7 @@ class SiNavbarVerticalNextGroupTriggerDirective {
|
|
|
116
331
|
}
|
|
117
332
|
else {
|
|
118
333
|
this.expanded.set(!this.expanded());
|
|
119
|
-
this.navbar.
|
|
334
|
+
this.navbar.groupStateChanged(this.stateId(), this.expanded());
|
|
120
335
|
}
|
|
121
336
|
}
|
|
122
337
|
toggleFlyout() {
|
|
@@ -131,7 +346,7 @@ class SiNavbarVerticalNextGroupTriggerDirective {
|
|
|
131
346
|
attachInline() {
|
|
132
347
|
this.overlayRef.detach();
|
|
133
348
|
this.groupView?.destroy(); // we need ?. for first attachment
|
|
134
|
-
this.groupView = this.viewContainer.createEmbeddedView(this.groupTemplate(),
|
|
349
|
+
this.groupView = this.viewContainer.createEmbeddedView(this.groupTemplate(), undefined, {
|
|
135
350
|
injector: this.injector
|
|
136
351
|
});
|
|
137
352
|
}
|
|
@@ -145,7 +360,7 @@ class SiNavbarVerticalNextGroupTriggerDirective {
|
|
|
145
360
|
.subscribe(() => this.hideFlyout());
|
|
146
361
|
}
|
|
147
362
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextGroupTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
148
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.8", type: SiNavbarVerticalNextGroupTriggerDirective, isStandalone: true, selector: "button[siNavbarVerticalNextGroupTriggerFor]", inputs: { groupTemplate: { classPropertyName: "groupTemplate", publicName: "siNavbarVerticalNextGroupTriggerFor", isSignal: true, isRequired: true, transformFunction: null },
|
|
363
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.8", type: SiNavbarVerticalNextGroupTriggerDirective, isStandalone: true, selector: "button[siNavbarVerticalNextGroupTriggerFor]", inputs: { groupTemplate: { classPropertyName: "groupTemplate", publicName: "siNavbarVerticalNextGroupTriggerFor", isSignal: true, isRequired: true, transformFunction: null }, stateId: { classPropertyName: "stateId", publicName: "stateId", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "triggered()" }, properties: { "id": "id", "class.show": "expanded()", "attr.aria-controls": "groupId", "attr.aria-expanded": "expanded()" }, classAttribute: "dropdown-toggle" }, ngImport: i0 });
|
|
149
364
|
}
|
|
150
365
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextGroupTriggerDirective, decorators: [{
|
|
151
366
|
type: Directive,
|
|
@@ -156,13 +371,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
|
|
|
156
371
|
'[id]': 'id',
|
|
157
372
|
'[class.show]': 'expanded()',
|
|
158
373
|
'[attr.aria-controls]': 'groupId',
|
|
159
|
-
'[attr.aria-expanded]': 'expanded()'
|
|
374
|
+
'[attr.aria-expanded]': 'expanded()',
|
|
375
|
+
'(click)': 'triggered()'
|
|
160
376
|
}
|
|
161
377
|
}]
|
|
162
|
-
}],
|
|
163
|
-
type: HostListener,
|
|
164
|
-
args: ['click']
|
|
165
|
-
}] } });
|
|
378
|
+
}], ctorParameters: () => [], propDecorators: { groupTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "siNavbarVerticalNextGroupTriggerFor", required: true }] }], stateId: [{ type: i0.Input, args: [{ isSignal: true, alias: "stateId", required: false }] }] } });
|
|
166
379
|
|
|
167
380
|
/**
|
|
168
381
|
* Copyright (c) Siemens 2016 - 2026
|
|
@@ -219,12 +432,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
|
|
|
219
432
|
role: 'group',
|
|
220
433
|
'[id]': 'groupTrigger.groupId',
|
|
221
434
|
'[attr.aria-labelledby]': 'groupTrigger.id',
|
|
222
|
-
'animate.enter': 'component-enter'
|
|
435
|
+
'animate.enter': 'component-enter',
|
|
436
|
+
'(keydown.escape)': 'close()'
|
|
223
437
|
}, styles: [":host.component-enter .inline-group{transition:none}.inline-group{display:grid;transition-property:grid-template-rows,opacity;transition-duration:calc(.5s * var(--element-animations-enabled, 1));transition-timing-function:ease;opacity:1;grid-template-rows:1fr;overflow:hidden}@starting-style{.inline-group{grid-template-rows:0fr;opacity:0}}.inline-group.group-leave{grid-template-rows:0fr;opacity:0}.dropdown-menu{display:block;position:static}\n"] }]
|
|
224
|
-
}], ctorParameters: () => []
|
|
225
|
-
type: HostListener,
|
|
226
|
-
args: ['keydown.escape']
|
|
227
|
-
}] } });
|
|
438
|
+
}], ctorParameters: () => [] });
|
|
228
439
|
|
|
229
440
|
/**
|
|
230
441
|
* Copyright (c) Siemens 2016 - 2026
|
|
@@ -267,7 +478,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
|
|
|
267
478
|
/** @experimental */
|
|
268
479
|
class SiNavbarVerticalNextItemComponent {
|
|
269
480
|
icons = addIcons({ elementDown2 });
|
|
270
|
-
|
|
481
|
+
/** Optional icon to render before the label. */
|
|
482
|
+
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
483
|
+
/** Badge value to display. */
|
|
484
|
+
badge = input(...(ngDevMode ? [undefined, { debugName: "badge" }] : []));
|
|
485
|
+
/** Color of the badge. */
|
|
486
|
+
badgeColor = input(...(ngDevMode ? [undefined, { debugName: "badgeColor" }] : []));
|
|
487
|
+
/**
|
|
488
|
+
* Hide the badge when the navbar is collapsed.
|
|
489
|
+
*
|
|
490
|
+
* @defaultValue false
|
|
491
|
+
*/
|
|
492
|
+
hideBadgeWhenCollapsed = input(false, { ...(ngDevMode ? { debugName: "hideBadgeWhenCollapsed" } : {}), transform: booleanAttribute });
|
|
493
|
+
/** Override the active state. Useful for action items. */
|
|
271
494
|
activeOverride = input(...(ngDevMode ? [undefined, { debugName: "activeOverride" }] : []));
|
|
272
495
|
navbar = inject(SI_NAVBAR_VERTICAL_NEXT);
|
|
273
496
|
parent = inject(SiNavbarVerticalNextItemComponent, {
|
|
@@ -280,23 +503,19 @@ class SiNavbarVerticalNextItemComponent {
|
|
|
280
503
|
});
|
|
281
504
|
routerLinkActive = inject(RouterLinkActive, { optional: true });
|
|
282
505
|
siLink = inject(SiLinkDirective, { optional: true });
|
|
283
|
-
/**
|
|
284
|
-
* Hides the badge in collapsed state
|
|
285
|
-
*/
|
|
286
|
-
hideBadgeCollapsed = computed(() => !!this.item().hideBadgeWhenCollapsed, ...(ngDevMode ? [{ debugName: "hideBadgeCollapsed" }] : []));
|
|
287
506
|
/**
|
|
288
507
|
* Determines if the badge contains text-only content (not numeric)
|
|
289
508
|
*/
|
|
290
509
|
textOnlyBadge = computed(() => {
|
|
291
|
-
const badge = this.
|
|
292
|
-
return badge ? typeof badge !== 'number' : false;
|
|
510
|
+
const badge = this.badge();
|
|
511
|
+
return badge != null && badge !== '' ? typeof badge !== 'number' : false;
|
|
293
512
|
}, ...(ngDevMode ? [{ debugName: "textOnlyBadge" }] : []));
|
|
294
513
|
/**
|
|
295
514
|
* Formats badge value to limit display to "+99" for numbers greater than 99
|
|
296
515
|
*/
|
|
297
516
|
formattedBadge = computed(() => {
|
|
298
|
-
const badge = this.
|
|
299
|
-
if (
|
|
517
|
+
const badge = this.badge();
|
|
518
|
+
if (badge == null || badge === '') {
|
|
300
519
|
return '';
|
|
301
520
|
}
|
|
302
521
|
if (typeof badge === 'number') {
|
|
@@ -310,11 +529,6 @@ class SiNavbarVerticalNextItemComponent {
|
|
|
310
529
|
}
|
|
311
530
|
}
|
|
312
531
|
triggered() {
|
|
313
|
-
const item = this.item();
|
|
314
|
-
if (item.type === 'action') {
|
|
315
|
-
item.action(item);
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
532
|
this.parent?.group?.hideFlyout();
|
|
319
533
|
if (!this.group) {
|
|
320
534
|
this.navbar.itemTriggered();
|
|
@@ -326,10 +540,9 @@ class SiNavbarVerticalNextItemComponent {
|
|
|
326
540
|
this.siLink?.active() ||
|
|
327
541
|
((!this.group?.expanded() || this.navbar.collapsed()) && this.group?.active()) ||
|
|
328
542
|
false);
|
|
329
|
-
/* eslint-disable-enable @typescript-eslint/prefer-nullish-coalescing */
|
|
330
543
|
}
|
|
331
544
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
332
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: SiNavbarVerticalNextItemComponent, isStandalone: true, selector: "a[si-navbar-vertical-next-item], button[si-navbar-vertical-next-item]", inputs: {
|
|
545
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: SiNavbarVerticalNextItemComponent, isStandalone: true, selector: "a[si-navbar-vertical-next-item], button[si-navbar-vertical-next-item]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, badgeColor: { classPropertyName: "badgeColor", publicName: "badgeColor", isSignal: true, isRequired: false, transformFunction: null }, hideBadgeWhenCollapsed: { classPropertyName: "hideBadgeWhenCollapsed", publicName: "hideBadgeWhenCollapsed", isSignal: true, isRequired: false, transformFunction: null }, activeOverride: { classPropertyName: "activeOverride", publicName: "activeOverride", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "triggered()" }, properties: { "class.dropdown-item": "this.parent?.group?.flyout()", "class.navbar-vertical-item": "!this.parent?.group?.flyout()", "class.active": "active", "class.hide-badge-collapsed": "hideBadgeWhenCollapsed()" }, classAttribute: "focus-inside" }, ngImport: i0, template: "@let icon = this.icon();\n@if (icon) {\n <si-icon class=\"icon-lg\" [icon]=\"icon\" />\n}\n<div class=\"item-title text-truncate si-h5\">\n <ng-content />\n</div>\n@if (!navbar.textOnly() && formattedBadge()) {\n @let badgeColor = this.badgeColor();\n <span\n [class]=\"[\n 'badge',\n badgeColor ? `bg-${badgeColor}` : 'bg-default',\n textOnlyBadge() ? 'badge-text-only' : '',\n navbar.collapsed() ? 'badge-collapsed' : ''\n ]\"\n >{{ formattedBadge() }}</span\n >\n}\n@if (group) {\n <si-icon aria-hidden=\"true\" class=\"dropdown-caret me-0 text-body\" [icon]=\"icons.elementDown2\" />\n}\n", styles: [":host(.navbar-vertical-item){display:flex;align-items:center;position:relative;color:var(--element-text-primary);background:none;border:0;font-size:.875rem;padding-block:8px;padding-inline:0 12px;min-inline-size:0;min-block-size:40px;inline-size:100%;border-radius:0}:host(.navbar-vertical-item) .item-title{margin-inline-start:12px}:host(.navbar-vertical-item) .icon-lg{margin-inline-start:12px}:host(.navbar-vertical-item) .icon-lg+.item-title{margin-inline-start:8px}:host(.navbar-vertical-item).show .badge:not(.badge-collapsed){display:none}:host(.navbar-vertical-item):not(.show) .badge+.dropdown-caret{margin-inline:0;padding-inline:0}:host(.navbar-vertical-item).active{color:var(--element-action-primary-hover);background:var(--element-base-1-selected)}:host(.navbar-vertical-item).active:after{content:\"\";position:absolute;inset-block:0;inset-inline-start:0;inline-size:4px;background:var(--element-action-primary-hover)}:host(.navbar-vertical-item):hover{text-decoration:none;background:var(--element-base-1-hover)}:host-context(si-navbar-vertical-next-items > .navbar-vertical-item)+:host(.navbar-vertical-item),:host-context(si-navbar-vertical-next-items > si-navbar-vertical-next-group)+:host(.navbar-vertical-item),:host-context(si-navbar-vertical-next-items > si-navbar-flyout-anchor)+:host(.navbar-vertical-item),:host-context(si-navbar-vertical-next-footer-items > .navbar-vertical-item)+:host(.navbar-vertical-item),:host-context(si-navbar-vertical-next-footer-items > si-navbar-vertical-next-group)+:host(.navbar-vertical-item),:host-context(si-navbar-vertical-next-footer-items > si-navbar-flyout-anchor)+:host(.navbar-vertical-item){margin-block-start:8px}:host-context(.nav-text-only si-navbar-vertical-next-group) .item-title{margin-inline-start:0}:host-context(si-navbar-vertical-next-group) :host(.navbar-vertical-item){padding-inline-start:32px}:host-context(si-navbar-vertical-next-group) :host(.navbar-vertical-item) .item-title{font-weight:400}:host(.dropdown-item) .item-title{font-weight:400}:host-context(.nav-collapsed) .badge{position:absolute;inset-block-start:4px;inset-inline-end:6px;min-inline-size:.875rem;border-radius:.4375rem;font-size:.75rem;line-height:.875rem;padding-block:0;padding-inline:4px;font-family:var(--element-body-font-family);font-weight:600}:host-context(.nav-collapsed) .badge.badge-text-only{color:transparent;font-size:0}:host-context(.nav-collapsed) :is(.item-title,.dropdown-caret){position:absolute!important;inline-size:1px!important;block-size:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}:host-context(.nav-collapsed).hide-badge-collapsed .badge{display:none}.badge{margin-inline:auto 0}\n"], dependencies: [{ kind: "component", type: SiIconComponent, selector: "si-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
333
546
|
}
|
|
334
547
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextItemComponent, decorators: [{
|
|
335
548
|
type: Component,
|
|
@@ -338,338 +551,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
|
|
|
338
551
|
'[class.dropdown-item]': 'this.parent?.group?.flyout()',
|
|
339
552
|
'[class.navbar-vertical-item]': '!this.parent?.group?.flyout()',
|
|
340
553
|
'[class.active]': 'active',
|
|
341
|
-
'[class.hide-badge-collapsed]': '
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
args: ['click']
|
|
346
|
-
}] } });
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* Copyright (c) Siemens 2016 - 2026
|
|
350
|
-
* SPDX-License-Identifier: MIT
|
|
351
|
-
*/
|
|
352
|
-
/** @experimental */
|
|
353
|
-
class SiNavbarVerticalNextItemLegacyComponent {
|
|
354
|
-
item = input.required(...(ngDevMode ? [{ debugName: "item" }] : []));
|
|
355
|
-
navbarExpandButtonText = input.required(...(ngDevMode ? [{ debugName: "navbarExpandButtonText" }] : []));
|
|
356
|
-
navbarCollapseButtonText = input.required(...(ngDevMode ? [{ debugName: "navbarCollapseButtonText" }] : []));
|
|
357
|
-
expanded = model.required(...(ngDevMode ? [{ debugName: "expanded" }] : []));
|
|
358
|
-
flyoutItems = computed(() => {
|
|
359
|
-
if (!this.navbar.collapsed()) {
|
|
360
|
-
return this.item().items;
|
|
361
|
-
}
|
|
362
|
-
else {
|
|
363
|
-
return [
|
|
364
|
-
this.isLink() ? { ...this.item(), items: undefined } : [],
|
|
365
|
-
this.item().items ?? []
|
|
366
|
-
].flat();
|
|
367
|
-
}
|
|
368
|
-
}, ...(ngDevMode ? [{ debugName: "flyoutItems" }] : []));
|
|
369
|
-
isLink = computed(() => {
|
|
370
|
-
const item = this.item();
|
|
371
|
-
return !!item.action || !!item.link || !!item.href;
|
|
372
|
-
}, ...(ngDevMode ? [{ debugName: "isLink" }] : []));
|
|
373
|
-
toggleButtonLabel = computed(() => this.navbar.collapsed()
|
|
374
|
-
? this.navbarExpandButtonText()
|
|
375
|
-
: this.expanded()
|
|
376
|
-
? this.navbarCollapseButtonText()
|
|
377
|
-
: this.navbarExpandButtonText(), ...(ngDevMode ? [{ debugName: "toggleButtonLabel" }] : []));
|
|
378
|
-
siLinks = viewChildren(SiLinkDirective, ...(ngDevMode ? [{ debugName: "siLinks" }] : []));
|
|
379
|
-
itemActive = computed(() => (this.navbar.collapsed() || !this.expanded()) && this.siLinks().some(link => link.active()), ...(ngDevMode ? [{ debugName: "itemActive" }] : []));
|
|
380
|
-
navbar = inject(SI_NAVBAR_VERTICAL_NEXT);
|
|
381
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextItemLegacyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
382
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: SiNavbarVerticalNextItemLegacyComponent, isStandalone: true, selector: "si-navbar-vertical-next-item-legacy", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, navbarExpandButtonText: { classPropertyName: "navbarExpandButtonText", publicName: "navbarExpandButtonText", isSignal: true, isRequired: true, transformFunction: null }, navbarCollapseButtonText: { classPropertyName: "navbarCollapseButtonText", publicName: "navbarCollapseButtonText", isSignal: true, isRequired: true, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { expanded: "expandedChange" }, host: { classAttribute: "d-block mb-4" }, viewQueries: [{ propertyName: "siLinks", predicate: SiLinkDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- section header -->\n@if (!isLink() && !item().items) {\n <si-navbar-vertical-next-header>\n {{ item().title | translate }}\n </si-navbar-vertical-next-header>\n} @else if (isLink() && !item().items) {\n <a [si-navbar-vertical-next-item]=\"item()\" [siLink]=\"item()\">\n {{ item().title | translate }}\n </a>\n} @else if (isLink() && item().items) {\n <div class=\"link-with-items\">\n <a\n #mainLink\n [si-navbar-vertical-next-item]=\"item()\"\n [siLink]=\"item()\"\n [activeOverride]=\"itemActive()\"\n >\n {{ item().title | translate }}\n </a>\n <button\n type=\"button\"\n class=\"mt-0\"\n [si-navbar-vertical-next-item]=\"item()\"\n [siNavbarVerticalNextGroupTriggerFor]=\"group\"\n [activeOverride]=\"mainLink.active\"\n [attr.aria-label]=\"toggleButtonLabel() + ' ' + item().title | translate\"\n [(expanded)]=\"expanded\"\n >\n {{ item().title | translate }}\n </button>\n </div>\n} @else if (item().items) {\n <button\n type=\"button\"\n [si-navbar-vertical-next-item]=\"item()\"\n [siNavbarVerticalNextGroupTriggerFor]=\"group\"\n [activeOverride]=\"itemActive()\"\n [(expanded)]=\"expanded\"\n >\n {{ item().title | translate }}\n </button>\n}\n\n<ng-template #group>\n <si-navbar-vertical-next-group>\n @for (subitem of flyoutItems(); track $index) {\n <a activeClass=\"active\" [si-navbar-vertical-next-item]=\"subitem\" [siLink]=\"subitem\">\n {{ subitem.title | translate }}\n </a>\n }\n </si-navbar-vertical-next-group>\n</ng-template>\n", styles: [".link-with-items{display:grid;grid-template-columns:1fr auto;grid-template-areas:\"- -\" \"items items\"}si-navbar-vertical-next-group{grid-area:items}\n"], dependencies: [{ kind: "directive", type: SiLinkDirective, selector: "[siLink]", inputs: ["siLink", "siLinkDefaultTarget", "actionParam", "activeClass", "exactMatch", "ariaCurrent"], outputs: ["activeChange"], exportAs: ["siLink"] }, { kind: "component", type: SiNavbarVerticalNextItemComponent, selector: "a[si-navbar-vertical-next-item], button[si-navbar-vertical-next-item]", inputs: ["si-navbar-vertical-next-item", "activeOverride"] }, { kind: "directive", type: SiNavbarVerticalNextGroupTriggerDirective, selector: "button[siNavbarVerticalNextGroupTriggerFor]", inputs: ["siNavbarVerticalNextGroupTriggerFor", "groupData", "stateId", "expanded"], outputs: ["expandedChange"] }, { kind: "component", type: SiNavbarVerticalNextGroupComponent, selector: "si-navbar-vertical-next-group" }, { kind: "component", type: SiNavbarVerticalNextHeaderComponent, selector: "si-navbar-vertical-next-header" }, { kind: "pipe", type: SiTranslatePipe, name: "translate" }] });
|
|
383
|
-
}
|
|
384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextItemLegacyComponent, decorators: [{
|
|
385
|
-
type: Component,
|
|
386
|
-
args: [{ selector: 'si-navbar-vertical-next-item-legacy', imports: [
|
|
387
|
-
SiLinkDirective,
|
|
388
|
-
SiTranslatePipe,
|
|
389
|
-
SiNavbarVerticalNextItemComponent,
|
|
390
|
-
SiNavbarVerticalNextGroupTriggerDirective,
|
|
391
|
-
SiNavbarVerticalNextGroupComponent,
|
|
392
|
-
SiNavbarVerticalNextHeaderComponent
|
|
393
|
-
], host: {
|
|
394
|
-
'class': 'd-block mb-4'
|
|
395
|
-
}, template: "<!-- section header -->\n@if (!isLink() && !item().items) {\n <si-navbar-vertical-next-header>\n {{ item().title | translate }}\n </si-navbar-vertical-next-header>\n} @else if (isLink() && !item().items) {\n <a [si-navbar-vertical-next-item]=\"item()\" [siLink]=\"item()\">\n {{ item().title | translate }}\n </a>\n} @else if (isLink() && item().items) {\n <div class=\"link-with-items\">\n <a\n #mainLink\n [si-navbar-vertical-next-item]=\"item()\"\n [siLink]=\"item()\"\n [activeOverride]=\"itemActive()\"\n >\n {{ item().title | translate }}\n </a>\n <button\n type=\"button\"\n class=\"mt-0\"\n [si-navbar-vertical-next-item]=\"item()\"\n [siNavbarVerticalNextGroupTriggerFor]=\"group\"\n [activeOverride]=\"mainLink.active\"\n [attr.aria-label]=\"toggleButtonLabel() + ' ' + item().title | translate\"\n [(expanded)]=\"expanded\"\n >\n {{ item().title | translate }}\n </button>\n </div>\n} @else if (item().items) {\n <button\n type=\"button\"\n [si-navbar-vertical-next-item]=\"item()\"\n [siNavbarVerticalNextGroupTriggerFor]=\"group\"\n [activeOverride]=\"itemActive()\"\n [(expanded)]=\"expanded\"\n >\n {{ item().title | translate }}\n </button>\n}\n\n<ng-template #group>\n <si-navbar-vertical-next-group>\n @for (subitem of flyoutItems(); track $index) {\n <a activeClass=\"active\" [si-navbar-vertical-next-item]=\"subitem\" [siLink]=\"subitem\">\n {{ subitem.title | translate }}\n </a>\n }\n </si-navbar-vertical-next-group>\n</ng-template>\n", styles: [".link-with-items{display:grid;grid-template-columns:1fr auto;grid-template-areas:\"- -\" \"items items\"}si-navbar-vertical-next-group{grid-area:items}\n"] }]
|
|
396
|
-
}], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: true }] }], navbarExpandButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "navbarExpandButtonText", required: true }] }], navbarCollapseButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "navbarCollapseButtonText", required: true }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: true }] }, { type: i0.Output, args: ["expandedChange"] }], siLinks: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => SiLinkDirective), { isSignal: true }] }] } });
|
|
554
|
+
'[class.hide-badge-collapsed]': 'hideBadgeWhenCollapsed()',
|
|
555
|
+
'(click)': 'triggered()'
|
|
556
|
+
}, template: "@let icon = this.icon();\n@if (icon) {\n <si-icon class=\"icon-lg\" [icon]=\"icon\" />\n}\n<div class=\"item-title text-truncate si-h5\">\n <ng-content />\n</div>\n@if (!navbar.textOnly() && formattedBadge()) {\n @let badgeColor = this.badgeColor();\n <span\n [class]=\"[\n 'badge',\n badgeColor ? `bg-${badgeColor}` : 'bg-default',\n textOnlyBadge() ? 'badge-text-only' : '',\n navbar.collapsed() ? 'badge-collapsed' : ''\n ]\"\n >{{ formattedBadge() }}</span\n >\n}\n@if (group) {\n <si-icon aria-hidden=\"true\" class=\"dropdown-caret me-0 text-body\" [icon]=\"icons.elementDown2\" />\n}\n", styles: [":host(.navbar-vertical-item){display:flex;align-items:center;position:relative;color:var(--element-text-primary);background:none;border:0;font-size:.875rem;padding-block:8px;padding-inline:0 12px;min-inline-size:0;min-block-size:40px;inline-size:100%;border-radius:0}:host(.navbar-vertical-item) .item-title{margin-inline-start:12px}:host(.navbar-vertical-item) .icon-lg{margin-inline-start:12px}:host(.navbar-vertical-item) .icon-lg+.item-title{margin-inline-start:8px}:host(.navbar-vertical-item).show .badge:not(.badge-collapsed){display:none}:host(.navbar-vertical-item):not(.show) .badge+.dropdown-caret{margin-inline:0;padding-inline:0}:host(.navbar-vertical-item).active{color:var(--element-action-primary-hover);background:var(--element-base-1-selected)}:host(.navbar-vertical-item).active:after{content:\"\";position:absolute;inset-block:0;inset-inline-start:0;inline-size:4px;background:var(--element-action-primary-hover)}:host(.navbar-vertical-item):hover{text-decoration:none;background:var(--element-base-1-hover)}:host-context(si-navbar-vertical-next-items > .navbar-vertical-item)+:host(.navbar-vertical-item),:host-context(si-navbar-vertical-next-items > si-navbar-vertical-next-group)+:host(.navbar-vertical-item),:host-context(si-navbar-vertical-next-items > si-navbar-flyout-anchor)+:host(.navbar-vertical-item),:host-context(si-navbar-vertical-next-footer-items > .navbar-vertical-item)+:host(.navbar-vertical-item),:host-context(si-navbar-vertical-next-footer-items > si-navbar-vertical-next-group)+:host(.navbar-vertical-item),:host-context(si-navbar-vertical-next-footer-items > si-navbar-flyout-anchor)+:host(.navbar-vertical-item){margin-block-start:8px}:host-context(.nav-text-only si-navbar-vertical-next-group) .item-title{margin-inline-start:0}:host-context(si-navbar-vertical-next-group) :host(.navbar-vertical-item){padding-inline-start:32px}:host-context(si-navbar-vertical-next-group) :host(.navbar-vertical-item) .item-title{font-weight:400}:host(.dropdown-item) .item-title{font-weight:400}:host-context(.nav-collapsed) .badge{position:absolute;inset-block-start:4px;inset-inline-end:6px;min-inline-size:.875rem;border-radius:.4375rem;font-size:.75rem;line-height:.875rem;padding-block:0;padding-inline:4px;font-family:var(--element-body-font-family);font-weight:600}:host-context(.nav-collapsed) .badge.badge-text-only{color:transparent;font-size:0}:host-context(.nav-collapsed) :is(.item-title,.dropdown-caret){position:absolute!important;inline-size:1px!important;block-size:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}:host-context(.nav-collapsed).hide-badge-collapsed .badge{display:none}.badge{margin-inline:auto 0}\n"] }]
|
|
557
|
+
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], badgeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeColor", required: false }] }], hideBadgeWhenCollapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideBadgeWhenCollapsed", required: false }] }], activeOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeOverride", required: false }] }] } });
|
|
397
558
|
|
|
398
559
|
/**
|
|
399
560
|
* Copyright (c) Siemens 2016 - 2026
|
|
400
561
|
* SPDX-License-Identifier: MIT
|
|
401
562
|
*/
|
|
402
|
-
/**
|
|
403
|
-
* Required to have compiler checks on the factory template
|
|
404
|
-
* @experimental
|
|
405
|
-
*/
|
|
406
|
-
class SiNavbarVerticalNextItemGuardDirective {
|
|
407
|
-
static ngTemplateContextGuard(dir, ctx) {
|
|
408
|
-
return true;
|
|
409
|
-
}
|
|
410
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextItemGuardDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
411
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.8", type: SiNavbarVerticalNextItemGuardDirective, isStandalone: true, selector: "[siNavbarVerticalNextItemGuard]", ngImport: i0 });
|
|
412
|
-
}
|
|
413
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextItemGuardDirective, decorators: [{
|
|
414
|
-
type: Directive,
|
|
415
|
-
args: [{ selector: '[siNavbarVerticalNextItemGuard]' }]
|
|
416
|
-
}] });
|
|
417
563
|
/** @experimental */
|
|
418
|
-
class
|
|
419
|
-
icons = addIcons({
|
|
420
|
-
/**
|
|
421
|
-
* Whether the navbar-vertical is collapsed.
|
|
422
|
-
*
|
|
423
|
-
* @defaultValue false
|
|
424
|
-
*/
|
|
425
|
-
collapsed = model(false, ...(ngDevMode ? [{ debugName: "collapsed" }] : []));
|
|
426
|
-
/**
|
|
427
|
-
* Toggles search bar
|
|
428
|
-
*
|
|
429
|
-
* @defaultValue false
|
|
430
|
-
*/
|
|
431
|
-
searchable = input(false, { ...(ngDevMode ? { debugName: "searchable" } : {}), transform: booleanAttribute });
|
|
564
|
+
class SiNavbarVerticalNextSearchComponent {
|
|
565
|
+
icons = addIcons({ elementSearch });
|
|
432
566
|
/**
|
|
433
|
-
* Placeholder text for search
|
|
567
|
+
* Placeholder text for the search bar
|
|
434
568
|
*
|
|
435
569
|
* @defaultValue
|
|
436
570
|
* ```
|
|
437
571
|
* t(() => $localize`:@@SI_NAVBAR_VERTICAL.SEARCH_PLACEHOLDER:Search ...`)
|
|
438
572
|
* ```
|
|
439
573
|
*/
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* List of vertical navigation items
|
|
443
|
-
*
|
|
444
|
-
* @defaultValue []
|
|
445
|
-
*/
|
|
446
|
-
items = model([], ...(ngDevMode ? [{ debugName: "items" }] : []));
|
|
447
|
-
/**
|
|
448
|
-
* Set to `true` if there are no icons
|
|
449
|
-
*
|
|
450
|
-
* @defaultValue false
|
|
451
|
-
*/
|
|
452
|
-
/**
|
|
453
|
-
* Set to `true` if there are no icons
|
|
454
|
-
*
|
|
455
|
-
* @defaultValue false
|
|
456
|
-
*/
|
|
457
|
-
textOnly = input(false, { ...(ngDevMode ? { debugName: "textOnly" } : {}), transform: booleanAttribute });
|
|
458
|
-
/**
|
|
459
|
-
* Set to false to hide the vertical navbar
|
|
460
|
-
*
|
|
461
|
-
* @defaultValue true
|
|
462
|
-
*/
|
|
463
|
-
/**
|
|
464
|
-
* Set to false to hide the vertical navbar
|
|
465
|
-
*
|
|
466
|
-
* @defaultValue true
|
|
467
|
-
*/
|
|
468
|
-
visible = input(true, { ...(ngDevMode ? { debugName: "visible" } : {}), transform: booleanAttribute });
|
|
469
|
-
/**
|
|
470
|
-
* Text for the navbar expand button. Required for a11y
|
|
471
|
-
*
|
|
472
|
-
* @defaultValue
|
|
473
|
-
* ```
|
|
474
|
-
* t(() => $localize`:@@SI_NAVBAR_VERTICAL.EXPAND:Expand`)
|
|
475
|
-
* ```
|
|
476
|
-
*/
|
|
477
|
-
navbarExpandButtonText = input(t(() => $localize `:@@SI_NAVBAR_VERTICAL.EXPAND:Expand`), ...(ngDevMode ? [{ debugName: "navbarExpandButtonText" }] : []));
|
|
478
|
-
/**
|
|
479
|
-
* Text for the navbar collapse button. Required for a11y
|
|
480
|
-
*
|
|
481
|
-
* @defaultValue
|
|
482
|
-
* ```
|
|
483
|
-
* t(() => $localize`:@@SI_NAVBAR_VERTICAL.COLLAPSE:Collapse`)
|
|
484
|
-
* ```
|
|
485
|
-
*/
|
|
486
|
-
navbarCollapseButtonText = input(t(() => $localize `:@@SI_NAVBAR_VERTICAL.COLLAPSE:Collapse`), ...(ngDevMode ? [{ debugName: "navbarCollapseButtonText" }] : []));
|
|
487
|
-
/**
|
|
488
|
-
* An optional stateId to uniquely identify a component instance.
|
|
489
|
-
* Required for persistence of ui state.
|
|
490
|
-
*/
|
|
491
|
-
stateId = input(...(ngDevMode ? [undefined, { debugName: "stateId" }] : []));
|
|
492
|
-
/**
|
|
493
|
-
* Label for the skip link to the vertical navbar
|
|
494
|
-
*
|
|
495
|
-
* @defaultValue
|
|
496
|
-
* ```
|
|
497
|
-
* t(() => $localize`:@@SI_NAVBAR_VERTICAL.SKIP_LINK.NAVIGATION_LABEL:Navigation`)
|
|
498
|
-
* ```
|
|
499
|
-
*/
|
|
500
|
-
skipLinkNavigationLabel = input(t(() => $localize `:@@SI_NAVBAR_VERTICAL.SKIP_LINK.NAVIGATION_LABEL:Navigation`), ...(ngDevMode ? [{ debugName: "skipLinkNavigationLabel" }] : []));
|
|
501
|
-
/**
|
|
502
|
-
* Label for the skip link to main content
|
|
503
|
-
*
|
|
504
|
-
* @defaultValue
|
|
505
|
-
* ```
|
|
506
|
-
* t(() => $localize`:@@SI_NAVBAR_VERTICAL.SKIP_LINK.MAIN_LABEL:Main content`)
|
|
507
|
-
* ```
|
|
508
|
-
*/
|
|
509
|
-
skipLinkMainContentLabel = input(t(() => $localize `:@@SI_NAVBAR_VERTICAL.SKIP_LINK.MAIN_LABEL:Main content`), ...(ngDevMode ? [{ debugName: "skipLinkMainContentLabel" }] : []));
|
|
574
|
+
placeholder = input(t(() => $localize `:@@SI_NAVBAR_VERTICAL.SEARCH_PLACEHOLDER:Search ...`), ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
510
575
|
/**
|
|
511
576
|
* Debounce time for the search input
|
|
512
577
|
* @defaultValue 400
|
|
513
578
|
*/
|
|
514
|
-
|
|
579
|
+
debounceTime = input(400, ...(ngDevMode ? [{ debugName: "debounceTime" }] : []));
|
|
515
580
|
/**
|
|
516
581
|
* Output for search bar input
|
|
517
582
|
*/
|
|
518
|
-
|
|
583
|
+
searchChange = output();
|
|
584
|
+
navbar = inject(SI_NAVBAR_VERTICAL_NEXT);
|
|
519
585
|
searchBar = viewChild.required(SiSearchBarComponent);
|
|
520
|
-
activatedRoute = inject(ActivatedRoute, { optional: true });
|
|
521
|
-
// Is required to prevent the navbar from running the padding animation on creation.
|
|
522
|
-
ready = true;
|
|
523
|
-
uiStateService = inject(SI_UI_STATE_SERVICE, { optional: true });
|
|
524
|
-
breakpointObserver = inject(BreakpointObserver);
|
|
525
|
-
navbarItems = viewChildren(SiNavbarVerticalNextItemComponent, ...(ngDevMode ? [{ debugName: "navbarItems" }] : []));
|
|
526
|
-
navbarItemsLegacy = viewChildren(SiNavbarVerticalNextItemLegacyComponent, ...(ngDevMode ? [{ debugName: "navbarItemsLegacy" }] : []));
|
|
527
|
-
itemsToComponents = computed(() => new Map([...this.navbarItems(), ...this.navbarItemsLegacy()].map(component => [
|
|
528
|
-
component.item(), // to have a broader key type allowed
|
|
529
|
-
component
|
|
530
|
-
])), ...(ngDevMode ? [{ debugName: "itemsToComponents" }] : []));
|
|
531
|
-
smallScreen = signal(false, ...(ngDevMode ? [{ debugName: "smallScreen" }] : []));
|
|
532
|
-
uiStateExpandedItems = signal({}, ...(ngDevMode ? [{ debugName: "uiStateExpandedItems" }] : []));
|
|
533
|
-
// Indicates if the user prefers a collapsed navbar. Relevant for resizing.
|
|
534
|
-
preferCollapse = false;
|
|
535
|
-
constructor() {
|
|
536
|
-
this.breakpointObserver
|
|
537
|
-
.observe(`(max-width: ${BOOTSTRAP_BREAKPOINTS.lgMinimum}px)`)
|
|
538
|
-
.pipe(takeUntilDestroyed())
|
|
539
|
-
.subscribe(({ matches }) => {
|
|
540
|
-
this.collapsed.set(matches || this.preferCollapse);
|
|
541
|
-
this.smallScreen.set(matches);
|
|
542
|
-
});
|
|
543
|
-
}
|
|
544
|
-
ngOnChanges(changes) {
|
|
545
|
-
if (changes.collapsed) {
|
|
546
|
-
this.preferCollapse = this.collapsed();
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
ngOnInit() {
|
|
550
|
-
const stateId = this.stateId();
|
|
551
|
-
if (this.uiStateService && stateId) {
|
|
552
|
-
this.uiStateService.load(stateId).then(uiState => {
|
|
553
|
-
if (uiState) {
|
|
554
|
-
this.preferCollapse = uiState.preferCollapse;
|
|
555
|
-
this.collapsed.set(this.smallScreen() ? this.collapsed() : this.preferCollapse);
|
|
556
|
-
this.uiStateExpandedItems.set(uiState.expandedItems);
|
|
557
|
-
}
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
toggleCollapse() {
|
|
562
|
-
if (this.collapsed()) {
|
|
563
|
-
this.expand();
|
|
564
|
-
}
|
|
565
|
-
else {
|
|
566
|
-
this.collapse();
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
/** Expands the vertical navbar. */
|
|
570
|
-
expand() {
|
|
571
|
-
this.collapsed.set(false);
|
|
572
|
-
if (!this.smallScreen()) {
|
|
573
|
-
this.preferCollapse = this.collapsed();
|
|
574
|
-
}
|
|
575
|
-
this.saveUIState();
|
|
576
|
-
}
|
|
577
|
-
/** Collapses the vertical navbar. */
|
|
578
|
-
collapse() {
|
|
579
|
-
this.collapsed.set(true);
|
|
580
|
-
if (!this.smallScreen()) {
|
|
581
|
-
this.preferCollapse = this.collapsed();
|
|
582
|
-
}
|
|
583
|
-
this.saveUIState();
|
|
584
|
-
}
|
|
585
586
|
expandForSearch() {
|
|
586
|
-
this.expand();
|
|
587
|
+
this.navbar.expand();
|
|
587
588
|
setTimeout(() => this.searchBar().focus());
|
|
588
589
|
}
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
592
|
-
/** @internal */
|
|
593
|
-
groupTriggered() {
|
|
594
|
-
this.saveUIState();
|
|
595
|
-
const itemToComponentMap = this.itemsToComponents();
|
|
596
|
-
this.items.set(this.items().map(item => {
|
|
597
|
-
const component = itemToComponentMap.get(item);
|
|
598
|
-
if (!component) {
|
|
599
|
-
return item;
|
|
600
|
-
}
|
|
601
|
-
if (component instanceof SiNavbarVerticalNextItemLegacyComponent) {
|
|
602
|
-
return {
|
|
603
|
-
...item,
|
|
604
|
-
expanded: component.expanded()
|
|
605
|
-
};
|
|
606
|
-
}
|
|
607
|
-
if (component.group) {
|
|
608
|
-
return {
|
|
609
|
-
...item,
|
|
610
|
-
expanded: component.group.expanded()
|
|
611
|
-
};
|
|
612
|
-
}
|
|
613
|
-
return item;
|
|
614
|
-
}));
|
|
615
|
-
this.collapsed.set(false);
|
|
616
|
-
}
|
|
617
|
-
saveUIState() {
|
|
618
|
-
const stateId = this.stateId();
|
|
619
|
-
if (!this.uiStateService || !stateId) {
|
|
620
|
-
return;
|
|
621
|
-
}
|
|
622
|
-
const expandedGroups = this.navbarItems()
|
|
623
|
-
.filter(item => item.item().id && item.group?.expanded())
|
|
624
|
-
.map(item => [item.item().id, true]);
|
|
625
|
-
const expandedGroupsLegacy = this.navbarItemsLegacy()
|
|
626
|
-
.filter(item => item.item().id && item.expanded())
|
|
627
|
-
.map(item => [item.item().id, true]);
|
|
628
|
-
this.uiStateService.save(stateId, {
|
|
629
|
-
preferCollapse: this.preferCollapse,
|
|
630
|
-
expandedItems: Object.fromEntries([...expandedGroups, ...expandedGroupsLegacy])
|
|
631
|
-
});
|
|
632
|
-
}
|
|
633
|
-
/** @internal */
|
|
634
|
-
itemTriggered() {
|
|
635
|
-
if (this.smallScreen()) {
|
|
636
|
-
this.collapsed.set(true);
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
isLegacyStyle(item) {
|
|
640
|
-
return !('type' in item && item.type !== 'check' && item.type !== 'radio');
|
|
641
|
-
}
|
|
642
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
643
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: SiNavbarVerticalNextComponent, isStandalone: true, selector: "si-navbar-vertical-next", inputs: { collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, textOnly: { classPropertyName: "textOnly", publicName: "textOnly", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, navbarExpandButtonText: { classPropertyName: "navbarExpandButtonText", publicName: "navbarExpandButtonText", isSignal: true, isRequired: false, transformFunction: null }, navbarCollapseButtonText: { classPropertyName: "navbarCollapseButtonText", publicName: "navbarCollapseButtonText", isSignal: true, isRequired: false, transformFunction: null }, stateId: { classPropertyName: "stateId", publicName: "stateId", isSignal: true, isRequired: false, transformFunction: null }, skipLinkNavigationLabel: { classPropertyName: "skipLinkNavigationLabel", publicName: "skipLinkNavigationLabel", isSignal: true, isRequired: false, transformFunction: null }, skipLinkMainContentLabel: { classPropertyName: "skipLinkMainContentLabel", publicName: "skipLinkMainContentLabel", isSignal: true, isRequired: false, transformFunction: null }, searchDebounceTime: { classPropertyName: "searchDebounceTime", publicName: "searchDebounceTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange", items: "itemsChange", searchEvent: "searchEvent" }, host: { properties: { "class.nav-collapsed": "collapsed()", "class.nav-text-only": "textOnly()", "class.visible": "visible()", "class.ready": "this.ready" }, classAttribute: "si-layout-inner" }, providers: [{ provide: SI_NAVBAR_VERTICAL_NEXT, useExisting: SiNavbarVerticalNextComponent }], viewQueries: [{ propertyName: "searchBar", first: true, predicate: SiSearchBarComponent, descendants: true, isSignal: true }, { propertyName: "navbarItems", predicate: SiNavbarVerticalNextItemComponent, descendants: true, isSignal: true }, { propertyName: "navbarItemsLegacy", predicate: SiNavbarVerticalNextItemLegacyComponent, descendants: true, isSignal: true }], usesOnChanges: true, ngImport: i0, template: "@if (visible()) {\n @if (smallScreen() && !collapsed()) {\n <div class=\"modal-backdrop\" animate.leave=\"backdrop-leave\" (click)=\"toggleCollapse()\"></div>\n }\n <nav\n tabindex=\"-1\"\n class=\"bg-base-1 focus-sub-inside\"\n [class.expanded]=\"!collapsed()\"\n [siSkipLinkTarget]=\"skipLinkNavigationLabel()\"\n [class.text-only]=\"textOnly()\"\n >\n <div class=\"collapse-toggle ms-auto\">\n <div class=\"mobile-drawer focus-inside navbar-vertical-no-collapse\">\n <button\n type=\"button\"\n class=\"btn btn-icon btn-ghost\"\n [attr.aria-label]=\"\n (collapsed() ? navbarExpandButtonText() : navbarCollapseButtonText()) | translate\n \"\n [attr.aria-expanded]=\"!collapsed()\"\n (click)=\"toggleCollapse()\"\n >\n <si-icon\n class=\"flip-rtl\"\n [icon]=\"collapsed() ? icons.elementDoubleRight : icons.elementDoubleLeft\"\n />\n </button>\n </div>\n </div>\n @if (searchable()) {\n <div class=\"nav-search\">\n <si-search-bar\n class=\"mx-4\"\n colorVariant=\"base-0\"\n prohibitedCharacters=\"*?\"\n [placeholder]=\"searchPlaceholder() | translate\"\n [debounceTime]=\"searchDebounceTime()\"\n [showIcon]=\"true\"\n (searchChange)=\"doSearch($event)\"\n />\n <button\n type=\"button\"\n class=\"btn-search bg-base-0 p-3 mx-4 mobile navbar-vertical-no-collapse text-secondary\"\n [attr.aria-label]=\"searchPlaceholder() | translate\"\n (click)=\"expandForSearch()\"\n >\n <si-icon class=\"icon\" [icon]=\"icons.elementSearch\" />\n </button>\n </div>\n }\n <div class=\"nav-scroll\">\n @for (item of items(); track $index) {\n @if (isLegacyStyle(item)) {\n <si-navbar-vertical-next-item-legacy\n [item]=\"item\"\n [navbarExpandButtonText]=\"navbarExpandButtonText() | translate\"\n [navbarCollapseButtonText]=\"navbarCollapseButtonText() | translate\"\n [expanded]=\"\n (item.id ? uiStateExpandedItems()[item.id] : undefined) ?? item.expanded ?? false\n \"\n />\n } @else {\n <ng-container *ngTemplateOutlet=\"navbarItems; context: { item }\" />\n }\n }\n </div>\n </nav>\n}\n<main\n class=\"si-layout-inner focus-none\"\n tabindex=\"-1\"\n [siSkipLinkTarget]=\"skipLinkMainContentLabel()\"\n>\n <ng-content />\n</main>\n\n<ng-template #navbarItems let-item=\"item\" siNavbarVerticalNextItemGuard>\n @switch (item.type) {\n @case ('group') {\n <button\n type=\"button\"\n placement=\"end\"\n [si-navbar-vertical-next-item]=\"item\"\n [stateId]=\"item.id\"\n [siNavbarVerticalNextGroupTriggerFor]=\"group\"\n [groupData]=\"{ group: item }\"\n [expanded]=\"\n (item.id ? uiStateExpandedItems()[item.id] : undefined) ?? item.expanded ?? false\n \"\n [siTooltip]=\"item.label | translate\"\n [isDisabled]=\"!collapsed()\"\n >\n {{ item.label | translate }}\n </button>\n }\n @case ('action') {\n <button\n type=\"button\"\n placement=\"end\"\n [si-navbar-vertical-next-item]=\"item\"\n [activeOverride]=\"item.active\"\n [siTooltip]=\"item.label | translate\"\n [isDisabled]=\"!collapsed()\"\n >\n {{ item.label | translate }}\n </button>\n }\n @case ('router-link') {\n <a\n routerLinkActive\n placement=\"end\"\n [routerLinkActiveOptions]=\"item.activeMatchOptions ?? { exact: false }\"\n [si-navbar-vertical-next-item]=\"item\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.extras?.queryParams\"\n [queryParamsHandling]=\"item.extras?.queryParamsHandling\"\n [fragment]=\"item.extras?.fragment\"\n [state]=\"item.extras?.state\"\n [relativeTo]=\"item.extras?.relativeTo ?? this.activatedRoute\"\n [preserveFragment]=\"item.extras?.preserveFragment\"\n [skipLocationChange]=\"item.extras?.skipLocationChange\"\n [replaceUrl]=\"item.extras?.replaceUrl\"\n [siTooltip]=\"item.label | translate\"\n [isDisabled]=\"!collapsed()\"\n >\n {{ item.label | translate }}\n </a>\n }\n @case ('link') {\n <a\n placement=\"end\"\n [si-navbar-vertical-next-item]=\"item\"\n [href]=\"item.href\"\n [target]=\"item.target\"\n [siTooltip]=\"item.label | translate\"\n [isDisabled]=\"!collapsed()\"\n >\n {{ item.label | translate }}\n </a>\n }\n @case ('divider') {\n <si-navbar-vertical-next-divider />\n }\n @case ('header') {\n <si-navbar-vertical-next-header>\n {{ item.label | translate }}\n </si-navbar-vertical-next-header>\n }\n }\n</ng-template>\n\n<ng-template #group let-group=\"group\" siNavbarVerticalNextItemGuard>\n <si-navbar-vertical-next-group routerLinkActive>\n @for (item of group.children; track $index) {\n <!-- a copy from above, but we have to nest the items to make routerLink active work -->\n @switch (item.type) {\n @case ('router-link') {\n <a\n routerLinkActive\n [routerLinkActiveOptions]=\"item.activeMatchOptions ?? { exact: false }\"\n [si-navbar-vertical-next-item]=\"item\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.extras?.queryParams\"\n [queryParamsHandling]=\"item.extras?.queryParamsHandling\"\n [fragment]=\"item.extras?.fragment\"\n [state]=\"item.extras?.state\"\n [relativeTo]=\"item.extras?.relativeTo ?? this.activatedRoute\"\n [preserveFragment]=\"item.extras?.preserveFragment\"\n [skipLocationChange]=\"item.extras?.skipLocationChange\"\n [replaceUrl]=\"item.extras?.replaceUrl\"\n >\n {{ item.label | translate }}\n </a>\n }\n @case ('action') {\n <button\n type=\"button\"\n [si-navbar-vertical-next-item]=\"item\"\n [activeOverride]=\"item.active\"\n >\n {{ item.label | translate }}\n </button>\n }\n @case ('link') {\n <a [si-navbar-vertical-next-item]=\"item\" [href]=\"item.href\" [target]=\"item.target\">\n {{ item.label | translate }}\n </a>\n }\n }\n }\n </si-navbar-vertical-next-group>\n</ng-template>\n", styles: [":host{display:block;transition:padding-inline-start calc(.5s * var(--element-animations-enabled, 1));--si-layout-header-first-element-offset: 40px}:host.ready:not(.visible){padding-inline-start:0!important}nav{display:flex;flex-direction:column;position:fixed;z-index:1031;inset-block-start:calc(48px + var(--element-titlebar-spacing, 0px) + var(--element-system-banner-spacing, 0px));inset-block-end:0;inset-inline-start:0;inline-size:0;transition:inline-size calc(.5s * var(--element-animations-enabled, 1)) ease}:host(.nav-collapsed) nav{z-index:1030}nav.expanded{inline-size:240px}.nav-scroll{overflow-x:hidden;min-block-size:0;flex:1 0 0;overflow-y:auto;margin-block-start:8px}:host(.nav-collapsed) .nav-scroll{display:none}.mobile-drawer{display:block;text-align:end;border:0;inline-size:48px;color:var(--element-text-primary);padding-block:4px;padding-inline:8px;margin-block-start:8px;border-start-end-radius:var(--element-radius-2);border-end-end-radius:var(--element-radius-2);transition:inline-size calc(.5s * var(--element-animations-enabled, 1)) ease,background-color calc(.5s * var(--element-animations-enabled, 1)) ease,box-shadow calc(.5s * var(--element-animations-enabled, 1)) ease}:host(:not(.nav-collapsed)) .mobile-drawer{inline-size:240px}.nav-search{display:flex;align-items:center;block-size:40px;margin-block-start:8px;overflow-x:hidden}:host(.nav-collapsed) .nav-search{display:none}si-search-bar{inline-size:100%}.btn-search{display:none;border:0;border-radius:var(--element-radius-2)}:host.nav-collapsed .mobile-drawer{border:0;color:var(--element-text-primary);background:var(--element-base-1);text-align:end;box-shadow:0 0 4px var(--element-box-shadow-color-1),0 4px 4px var(--element-box-shadow-color-2)}:host.nav-collapsed si-search-bar{display:none}.modal-backdrop{z-index:1031;transition:opacity calc(.15s * var(--element-animations-enabled, 1)) linear;opacity:1}@starting-style{.modal-backdrop{opacity:0}}.modal-backdrop.backdrop-leave{opacity:0}@media(min-width:576px){:host:not(.nav-text-only),:host:not(.nav-collapsed){--si-layout-header-first-element-offset: 0}:host:not(.nav-text-only){padding-inline-start:48px}:host:not(.nav-text-only) .mobile-drawer{background:transparent;box-shadow:none}:host:not(.nav-text-only).nav-collapsed .nav-scroll{display:block}:host:not(.nav-text-only).nav-collapsed .nav-search{display:flex}.btn-search{display:none}:host.nav-collapsed .btn-search{display:block}:host:not(.nav-text-only) nav{inline-size:48px}:host:not(.nav-text-only) nav.expanded{inline-size:240px}}@media(min-width:992px){:host:not(.nav-collapsed){padding-inline-start:240px}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: SiIconComponent, selector: "si-icon", inputs: ["icon"] }, { kind: "component", type: SiNavbarVerticalNextDividerComponent, selector: "si-navbar-vertical-next-divider" }, { kind: "component", type: SiNavbarVerticalNextGroupComponent, selector: "si-navbar-vertical-next-group" }, { kind: "directive", type: SiNavbarVerticalNextGroupTriggerDirective, selector: "button[siNavbarVerticalNextGroupTriggerFor]", inputs: ["siNavbarVerticalNextGroupTriggerFor", "groupData", "stateId", "expanded"], outputs: ["expandedChange"] }, { kind: "component", type: SiNavbarVerticalNextHeaderComponent, selector: "si-navbar-vertical-next-header" }, { kind: "component", type: SiNavbarVerticalNextItemComponent, selector: "a[si-navbar-vertical-next-item], button[si-navbar-vertical-next-item]", inputs: ["si-navbar-vertical-next-item", "activeOverride"] }, { kind: "directive", type: SiNavbarVerticalNextItemGuardDirective, selector: "[siNavbarVerticalNextItemGuard]" }, { kind: "component", type: SiNavbarVerticalNextItemLegacyComponent, selector: "si-navbar-vertical-next-item-legacy", inputs: ["item", "navbarExpandButtonText", "navbarCollapseButtonText", "expanded"], outputs: ["expandedChange"] }, { kind: "component", type: SiSearchBarComponent, selector: "si-search-bar", inputs: ["debounceTime", "prohibitedCharacters", "placeholder", "showIcon", "tabbable", "value", "readonly", "colorVariant", "disabled", "clearButtonAriaLabel"], outputs: ["searchChange"] }, { kind: "directive", type: SiSkipLinkTargetDirective, selector: "[siSkipLinkTarget]", inputs: ["siSkipLinkTarget"] }, { kind: "directive", type: SiTooltipDirective, selector: "[siTooltip]", inputs: ["siTooltip", "placement", "isDisabled", "tooltipContext"] }, { kind: "pipe", type: SiTranslatePipe, name: "translate" }] });
|
|
590
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextSearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
591
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.8", type: SiNavbarVerticalNextSearchComponent, isStandalone: true, selector: "si-navbar-vertical-next-search", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { searchChange: "searchChange" }, viewQueries: [{ propertyName: "searchBar", first: true, predicate: SiSearchBarComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<si-search-bar\n class=\"mx-4\"\n colorVariant=\"base-0\"\n prohibitedCharacters=\"*?\"\n [placeholder]=\"placeholder() | translate\"\n [debounceTime]=\"debounceTime()\"\n [showIcon]=\"true\"\n (searchChange)=\"searchChange.emit($event)\"\n/>\n<button\n type=\"button\"\n class=\"btn-search bg-base-0 p-3 mx-4 mobile navbar-vertical-no-collapse text-secondary\"\n [attr.aria-label]=\"placeholder() | translate\"\n (click)=\"expandForSearch()\"\n>\n <si-icon class=\"icon\" [icon]=\"icons.elementSearch\" />\n</button>\n", styles: [":host{display:flex;align-items:center;block-size:40px;margin-block-start:8px;overflow-x:hidden}:host-context(.nav-collapsed){display:none}:host-context(.nav-collapsed) si-search-bar{display:none}si-search-bar{inline-size:100%}.btn-search{display:none;border:0;border-radius:var(--element-radius-2)}@media(min-width:576px){:host-context(:not(.nav-text-only).nav-collapsed){display:flex}.btn-search{display:none}:host-context(.nav-collapsed) .btn-search{display:block}}\n"], dependencies: [{ kind: "component", type: SiIconComponent, selector: "si-icon", inputs: ["icon"] }, { kind: "component", type: SiSearchBarComponent, selector: "si-search-bar", inputs: ["debounceTime", "prohibitedCharacters", "placeholder", "showIcon", "tabbable", "value", "readonly", "colorVariant", "disabled", "maxlength", "clearButtonAriaLabel"], outputs: ["searchChange"] }, { kind: "pipe", type: SiTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
644
592
|
}
|
|
645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type:
|
|
593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextSearchComponent, decorators: [{
|
|
646
594
|
type: Component,
|
|
647
|
-
args: [{ selector: 'si-navbar-vertical-next', imports: [
|
|
648
|
-
|
|
649
|
-
RouterLink,
|
|
650
|
-
RouterLinkActive,
|
|
651
|
-
SiIconComponent,
|
|
652
|
-
SiNavbarVerticalNextDividerComponent,
|
|
653
|
-
SiNavbarVerticalNextGroupComponent,
|
|
654
|
-
SiNavbarVerticalNextGroupTriggerDirective,
|
|
655
|
-
SiNavbarVerticalNextHeaderComponent,
|
|
656
|
-
SiNavbarVerticalNextItemComponent,
|
|
657
|
-
SiNavbarVerticalNextItemGuardDirective,
|
|
658
|
-
SiNavbarVerticalNextItemLegacyComponent,
|
|
659
|
-
SiSearchBarComponent,
|
|
660
|
-
SiSkipLinkTargetDirective,
|
|
661
|
-
SiTranslatePipe,
|
|
662
|
-
SiTooltipDirective
|
|
663
|
-
], providers: [{ provide: SI_NAVBAR_VERTICAL_NEXT, useExisting: SiNavbarVerticalNextComponent }], host: {
|
|
664
|
-
class: 'si-layout-inner',
|
|
665
|
-
'[class.nav-collapsed]': 'collapsed()',
|
|
666
|
-
'[class.nav-text-only]': 'textOnly()',
|
|
667
|
-
'[class.visible]': 'visible()'
|
|
668
|
-
}, template: "@if (visible()) {\n @if (smallScreen() && !collapsed()) {\n <div class=\"modal-backdrop\" animate.leave=\"backdrop-leave\" (click)=\"toggleCollapse()\"></div>\n }\n <nav\n tabindex=\"-1\"\n class=\"bg-base-1 focus-sub-inside\"\n [class.expanded]=\"!collapsed()\"\n [siSkipLinkTarget]=\"skipLinkNavigationLabel()\"\n [class.text-only]=\"textOnly()\"\n >\n <div class=\"collapse-toggle ms-auto\">\n <div class=\"mobile-drawer focus-inside navbar-vertical-no-collapse\">\n <button\n type=\"button\"\n class=\"btn btn-icon btn-ghost\"\n [attr.aria-label]=\"\n (collapsed() ? navbarExpandButtonText() : navbarCollapseButtonText()) | translate\n \"\n [attr.aria-expanded]=\"!collapsed()\"\n (click)=\"toggleCollapse()\"\n >\n <si-icon\n class=\"flip-rtl\"\n [icon]=\"collapsed() ? icons.elementDoubleRight : icons.elementDoubleLeft\"\n />\n </button>\n </div>\n </div>\n @if (searchable()) {\n <div class=\"nav-search\">\n <si-search-bar\n class=\"mx-4\"\n colorVariant=\"base-0\"\n prohibitedCharacters=\"*?\"\n [placeholder]=\"searchPlaceholder() | translate\"\n [debounceTime]=\"searchDebounceTime()\"\n [showIcon]=\"true\"\n (searchChange)=\"doSearch($event)\"\n />\n <button\n type=\"button\"\n class=\"btn-search bg-base-0 p-3 mx-4 mobile navbar-vertical-no-collapse text-secondary\"\n [attr.aria-label]=\"searchPlaceholder() | translate\"\n (click)=\"expandForSearch()\"\n >\n <si-icon class=\"icon\" [icon]=\"icons.elementSearch\" />\n </button>\n </div>\n }\n <div class=\"nav-scroll\">\n @for (item of items(); track $index) {\n @if (isLegacyStyle(item)) {\n <si-navbar-vertical-next-item-legacy\n [item]=\"item\"\n [navbarExpandButtonText]=\"navbarExpandButtonText() | translate\"\n [navbarCollapseButtonText]=\"navbarCollapseButtonText() | translate\"\n [expanded]=\"\n (item.id ? uiStateExpandedItems()[item.id] : undefined) ?? item.expanded ?? false\n \"\n />\n } @else {\n <ng-container *ngTemplateOutlet=\"navbarItems; context: { item }\" />\n }\n }\n </div>\n </nav>\n}\n<main\n class=\"si-layout-inner focus-none\"\n tabindex=\"-1\"\n [siSkipLinkTarget]=\"skipLinkMainContentLabel()\"\n>\n <ng-content />\n</main>\n\n<ng-template #navbarItems let-item=\"item\" siNavbarVerticalNextItemGuard>\n @switch (item.type) {\n @case ('group') {\n <button\n type=\"button\"\n placement=\"end\"\n [si-navbar-vertical-next-item]=\"item\"\n [stateId]=\"item.id\"\n [siNavbarVerticalNextGroupTriggerFor]=\"group\"\n [groupData]=\"{ group: item }\"\n [expanded]=\"\n (item.id ? uiStateExpandedItems()[item.id] : undefined) ?? item.expanded ?? false\n \"\n [siTooltip]=\"item.label | translate\"\n [isDisabled]=\"!collapsed()\"\n >\n {{ item.label | translate }}\n </button>\n }\n @case ('action') {\n <button\n type=\"button\"\n placement=\"end\"\n [si-navbar-vertical-next-item]=\"item\"\n [activeOverride]=\"item.active\"\n [siTooltip]=\"item.label | translate\"\n [isDisabled]=\"!collapsed()\"\n >\n {{ item.label | translate }}\n </button>\n }\n @case ('router-link') {\n <a\n routerLinkActive\n placement=\"end\"\n [routerLinkActiveOptions]=\"item.activeMatchOptions ?? { exact: false }\"\n [si-navbar-vertical-next-item]=\"item\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.extras?.queryParams\"\n [queryParamsHandling]=\"item.extras?.queryParamsHandling\"\n [fragment]=\"item.extras?.fragment\"\n [state]=\"item.extras?.state\"\n [relativeTo]=\"item.extras?.relativeTo ?? this.activatedRoute\"\n [preserveFragment]=\"item.extras?.preserveFragment\"\n [skipLocationChange]=\"item.extras?.skipLocationChange\"\n [replaceUrl]=\"item.extras?.replaceUrl\"\n [siTooltip]=\"item.label | translate\"\n [isDisabled]=\"!collapsed()\"\n >\n {{ item.label | translate }}\n </a>\n }\n @case ('link') {\n <a\n placement=\"end\"\n [si-navbar-vertical-next-item]=\"item\"\n [href]=\"item.href\"\n [target]=\"item.target\"\n [siTooltip]=\"item.label | translate\"\n [isDisabled]=\"!collapsed()\"\n >\n {{ item.label | translate }}\n </a>\n }\n @case ('divider') {\n <si-navbar-vertical-next-divider />\n }\n @case ('header') {\n <si-navbar-vertical-next-header>\n {{ item.label | translate }}\n </si-navbar-vertical-next-header>\n }\n }\n</ng-template>\n\n<ng-template #group let-group=\"group\" siNavbarVerticalNextItemGuard>\n <si-navbar-vertical-next-group routerLinkActive>\n @for (item of group.children; track $index) {\n <!-- a copy from above, but we have to nest the items to make routerLink active work -->\n @switch (item.type) {\n @case ('router-link') {\n <a\n routerLinkActive\n [routerLinkActiveOptions]=\"item.activeMatchOptions ?? { exact: false }\"\n [si-navbar-vertical-next-item]=\"item\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.extras?.queryParams\"\n [queryParamsHandling]=\"item.extras?.queryParamsHandling\"\n [fragment]=\"item.extras?.fragment\"\n [state]=\"item.extras?.state\"\n [relativeTo]=\"item.extras?.relativeTo ?? this.activatedRoute\"\n [preserveFragment]=\"item.extras?.preserveFragment\"\n [skipLocationChange]=\"item.extras?.skipLocationChange\"\n [replaceUrl]=\"item.extras?.replaceUrl\"\n >\n {{ item.label | translate }}\n </a>\n }\n @case ('action') {\n <button\n type=\"button\"\n [si-navbar-vertical-next-item]=\"item\"\n [activeOverride]=\"item.active\"\n >\n {{ item.label | translate }}\n </button>\n }\n @case ('link') {\n <a [si-navbar-vertical-next-item]=\"item\" [href]=\"item.href\" [target]=\"item.target\">\n {{ item.label | translate }}\n </a>\n }\n }\n }\n </si-navbar-vertical-next-group>\n</ng-template>\n", styles: [":host{display:block;transition:padding-inline-start calc(.5s * var(--element-animations-enabled, 1));--si-layout-header-first-element-offset: 40px}:host.ready:not(.visible){padding-inline-start:0!important}nav{display:flex;flex-direction:column;position:fixed;z-index:1031;inset-block-start:calc(48px + var(--element-titlebar-spacing, 0px) + var(--element-system-banner-spacing, 0px));inset-block-end:0;inset-inline-start:0;inline-size:0;transition:inline-size calc(.5s * var(--element-animations-enabled, 1)) ease}:host(.nav-collapsed) nav{z-index:1030}nav.expanded{inline-size:240px}.nav-scroll{overflow-x:hidden;min-block-size:0;flex:1 0 0;overflow-y:auto;margin-block-start:8px}:host(.nav-collapsed) .nav-scroll{display:none}.mobile-drawer{display:block;text-align:end;border:0;inline-size:48px;color:var(--element-text-primary);padding-block:4px;padding-inline:8px;margin-block-start:8px;border-start-end-radius:var(--element-radius-2);border-end-end-radius:var(--element-radius-2);transition:inline-size calc(.5s * var(--element-animations-enabled, 1)) ease,background-color calc(.5s * var(--element-animations-enabled, 1)) ease,box-shadow calc(.5s * var(--element-animations-enabled, 1)) ease}:host(:not(.nav-collapsed)) .mobile-drawer{inline-size:240px}.nav-search{display:flex;align-items:center;block-size:40px;margin-block-start:8px;overflow-x:hidden}:host(.nav-collapsed) .nav-search{display:none}si-search-bar{inline-size:100%}.btn-search{display:none;border:0;border-radius:var(--element-radius-2)}:host.nav-collapsed .mobile-drawer{border:0;color:var(--element-text-primary);background:var(--element-base-1);text-align:end;box-shadow:0 0 4px var(--element-box-shadow-color-1),0 4px 4px var(--element-box-shadow-color-2)}:host.nav-collapsed si-search-bar{display:none}.modal-backdrop{z-index:1031;transition:opacity calc(.15s * var(--element-animations-enabled, 1)) linear;opacity:1}@starting-style{.modal-backdrop{opacity:0}}.modal-backdrop.backdrop-leave{opacity:0}@media(min-width:576px){:host:not(.nav-text-only),:host:not(.nav-collapsed){--si-layout-header-first-element-offset: 0}:host:not(.nav-text-only){padding-inline-start:48px}:host:not(.nav-text-only) .mobile-drawer{background:transparent;box-shadow:none}:host:not(.nav-text-only).nav-collapsed .nav-scroll{display:block}:host:not(.nav-text-only).nav-collapsed .nav-search{display:flex}.btn-search{display:none}:host.nav-collapsed .btn-search{display:block}:host:not(.nav-text-only) nav{inline-size:48px}:host:not(.nav-text-only) nav.expanded{inline-size:240px}}@media(min-width:992px){:host:not(.nav-collapsed){padding-inline-start:240px}}\n"] }]
|
|
669
|
-
}], ctorParameters: () => [], propDecorators: { collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }, { type: i0.Output, args: ["collapsedChange"] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }, { type: i0.Output, args: ["itemsChange"] }], textOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "textOnly", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], navbarExpandButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "navbarExpandButtonText", required: false }] }], navbarCollapseButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "navbarCollapseButtonText", required: false }] }], stateId: [{ type: i0.Input, args: [{ isSignal: true, alias: "stateId", required: false }] }], skipLinkNavigationLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "skipLinkNavigationLabel", required: false }] }], skipLinkMainContentLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "skipLinkMainContentLabel", required: false }] }], searchDebounceTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchDebounceTime", required: false }] }], searchEvent: [{ type: i0.Output, args: ["searchEvent"] }], searchBar: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SiSearchBarComponent), { isSignal: true }] }], ready: [{
|
|
670
|
-
type: HostBinding,
|
|
671
|
-
args: ['class.ready']
|
|
672
|
-
}], navbarItems: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => SiNavbarVerticalNextItemComponent), { isSignal: true }] }], navbarItemsLegacy: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => SiNavbarVerticalNextItemLegacyComponent), { isSignal: true }] }] } });
|
|
595
|
+
args: [{ selector: 'si-navbar-vertical-next-search', imports: [SiIconComponent, SiSearchBarComponent, SiTranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<si-search-bar\n class=\"mx-4\"\n colorVariant=\"base-0\"\n prohibitedCharacters=\"*?\"\n [placeholder]=\"placeholder() | translate\"\n [debounceTime]=\"debounceTime()\"\n [showIcon]=\"true\"\n (searchChange)=\"searchChange.emit($event)\"\n/>\n<button\n type=\"button\"\n class=\"btn-search bg-base-0 p-3 mx-4 mobile navbar-vertical-no-collapse text-secondary\"\n [attr.aria-label]=\"placeholder() | translate\"\n (click)=\"expandForSearch()\"\n>\n <si-icon class=\"icon\" [icon]=\"icons.elementSearch\" />\n</button>\n", styles: [":host{display:flex;align-items:center;block-size:40px;margin-block-start:8px;overflow-x:hidden}:host-context(.nav-collapsed){display:none}:host-context(.nav-collapsed) si-search-bar{display:none}si-search-bar{inline-size:100%}.btn-search{display:none;border:0;border-radius:var(--element-radius-2)}@media(min-width:576px){:host-context(:not(.nav-text-only).nav-collapsed){display:flex}.btn-search{display:none}:host-context(.nav-collapsed) .btn-search{display:block}}\n"] }]
|
|
596
|
+
}], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], debounceTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounceTime", required: false }] }], searchChange: [{ type: i0.Output, args: ["searchChange"] }], searchBar: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SiSearchBarComponent), { isSignal: true }] }] } });
|
|
673
597
|
|
|
674
598
|
/**
|
|
675
599
|
* Copyright (c) Siemens 2016 - 2026
|
|
@@ -678,14 +602,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
|
|
|
678
602
|
/** @experimental */
|
|
679
603
|
class SiNavbarVerticalNextModule {
|
|
680
604
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
681
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextModule, imports: [SiNavbarVerticalNextComponent
|
|
682
|
-
|
|
605
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextModule, imports: [SiNavbarVerticalNextComponent,
|
|
606
|
+
SiNavbarVerticalNextDividerComponent,
|
|
607
|
+
SiNavbarVerticalNextFooterItemsComponent,
|
|
608
|
+
SiNavbarVerticalNextGroupComponent,
|
|
609
|
+
SiNavbarVerticalNextGroupTriggerDirective,
|
|
610
|
+
SiNavbarVerticalNextHeaderComponent,
|
|
611
|
+
SiNavbarVerticalNextItemComponent,
|
|
612
|
+
SiNavbarVerticalNextItemsComponent,
|
|
613
|
+
SiNavbarVerticalNextSearchComponent], exports: [SiNavbarVerticalNextComponent,
|
|
614
|
+
SiNavbarVerticalNextDividerComponent,
|
|
615
|
+
SiNavbarVerticalNextFooterItemsComponent,
|
|
616
|
+
SiNavbarVerticalNextGroupComponent,
|
|
617
|
+
SiNavbarVerticalNextGroupTriggerDirective,
|
|
618
|
+
SiNavbarVerticalNextHeaderComponent,
|
|
619
|
+
SiNavbarVerticalNextItemComponent,
|
|
620
|
+
SiNavbarVerticalNextItemsComponent,
|
|
621
|
+
SiNavbarVerticalNextSearchComponent] });
|
|
622
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextModule, imports: [SiNavbarVerticalNextComponent,
|
|
623
|
+
SiNavbarVerticalNextItemComponent,
|
|
624
|
+
SiNavbarVerticalNextSearchComponent] });
|
|
683
625
|
}
|
|
684
626
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiNavbarVerticalNextModule, decorators: [{
|
|
685
627
|
type: NgModule,
|
|
686
628
|
args: [{
|
|
687
|
-
imports: [
|
|
688
|
-
|
|
629
|
+
imports: [
|
|
630
|
+
SiNavbarVerticalNextComponent,
|
|
631
|
+
SiNavbarVerticalNextDividerComponent,
|
|
632
|
+
SiNavbarVerticalNextFooterItemsComponent,
|
|
633
|
+
SiNavbarVerticalNextGroupComponent,
|
|
634
|
+
SiNavbarVerticalNextGroupTriggerDirective,
|
|
635
|
+
SiNavbarVerticalNextHeaderComponent,
|
|
636
|
+
SiNavbarVerticalNextItemComponent,
|
|
637
|
+
SiNavbarVerticalNextItemsComponent,
|
|
638
|
+
SiNavbarVerticalNextSearchComponent
|
|
639
|
+
],
|
|
640
|
+
exports: [
|
|
641
|
+
SiNavbarVerticalNextComponent,
|
|
642
|
+
SiNavbarVerticalNextDividerComponent,
|
|
643
|
+
SiNavbarVerticalNextFooterItemsComponent,
|
|
644
|
+
SiNavbarVerticalNextGroupComponent,
|
|
645
|
+
SiNavbarVerticalNextGroupTriggerDirective,
|
|
646
|
+
SiNavbarVerticalNextHeaderComponent,
|
|
647
|
+
SiNavbarVerticalNextItemComponent,
|
|
648
|
+
SiNavbarVerticalNextItemsComponent,
|
|
649
|
+
SiNavbarVerticalNextSearchComponent
|
|
650
|
+
]
|
|
689
651
|
}]
|
|
690
652
|
}] });
|
|
691
653
|
|
|
@@ -698,5 +660,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
|
|
|
698
660
|
* Generated bundle index. Do not edit.
|
|
699
661
|
*/
|
|
700
662
|
|
|
701
|
-
export { SiNavbarVerticalNextComponent,
|
|
663
|
+
export { SiNavbarVerticalNextComponent, SiNavbarVerticalNextDividerComponent, SiNavbarVerticalNextFooterItemsComponent, SiNavbarVerticalNextGroupComponent, SiNavbarVerticalNextGroupTriggerDirective, SiNavbarVerticalNextHeaderComponent, SiNavbarVerticalNextItemComponent, SiNavbarVerticalNextItemsComponent, SiNavbarVerticalNextModule, SiNavbarVerticalNextSearchComponent };
|
|
702
664
|
//# sourceMappingURL=siemens-element-ng-navbar-vertical-next.mjs.map
|