@fundamental-ngx/btp 0.63.2-rc.6 → 0.63.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/fundamental-ngx-btp-button.mjs +12 -14
- package/fesm2022/fundamental-ngx-btp-button.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-btp-navigation-menu.mjs +16 -16
- package/fesm2022/fundamental-ngx-btp-navigation.mjs +120 -201
- package/fesm2022/fundamental-ngx-btp-navigation.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-btp-search-field.mjs +4 -5
- package/fesm2022/fundamental-ngx-btp-search-field.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-btp-splitter.mjs +22 -22
- package/fesm2022/fundamental-ngx-btp-tool-header.mjs +52 -71
- package/fesm2022/fundamental-ngx-btp-tool-header.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-btp-tool-layout.mjs +19 -19
- package/fesm2022/fundamental-ngx-btp.mjs +4 -4
- package/package.json +6 -7
|
@@ -18,10 +18,10 @@ import { toSignal, toObservable, takeUntilDestroyed } from '@angular/core/rxjs-i
|
|
|
18
18
|
import { map, startWith, distinctUntilChanged } from 'rxjs';
|
|
19
19
|
|
|
20
20
|
class ToolHeaderActionClass {
|
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
22
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderActionClass, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
22
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "21.1.0", type: ToolHeaderActionClass, isStandalone: true, inputs: { forceVisibility: ["forceVisibility", "forceVisibility", booleanAttribute] }, ngImport: i0 }); }
|
|
23
23
|
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderActionClass, decorators: [{
|
|
25
25
|
type: Directive
|
|
26
26
|
}], propDecorators: { forceVisibility: [{
|
|
27
27
|
type: Input,
|
|
@@ -34,8 +34,8 @@ class ToolHeaderActionSeparatorComponent extends ToolHeaderActionClass {
|
|
|
34
34
|
/** @hidden */
|
|
35
35
|
this.isSeparator = true;
|
|
36
36
|
}
|
|
37
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
38
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
37
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderActionSeparatorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
38
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.0", type: ToolHeaderActionSeparatorComponent, isStandalone: true, selector: "fdb-tool-header-action-separator", providers: [
|
|
39
39
|
{
|
|
40
40
|
provide: ToolHeaderActionClass,
|
|
41
41
|
useExisting: ToolHeaderActionSeparatorComponent
|
|
@@ -46,7 +46,7 @@ class ToolHeaderActionSeparatorComponent extends ToolHeaderActionClass {
|
|
|
46
46
|
</ng-template>
|
|
47
47
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
48
48
|
}
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderActionSeparatorComponent, decorators: [{
|
|
50
50
|
type: Component,
|
|
51
51
|
args: [{
|
|
52
52
|
selector: 'fdb-tool-header-action-separator',
|
|
@@ -71,40 +71,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
71
71
|
class ToolHeaderProductSwitchComponent {
|
|
72
72
|
constructor() {
|
|
73
73
|
/** Placement of a popover. */
|
|
74
|
-
this.placement = input('bottom-end',
|
|
75
|
-
...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
|
|
74
|
+
this.placement = input('bottom-end', ...(ngDevMode ? [{ debugName: "placement" }] : []));
|
|
76
75
|
/** Whether the product switch is disabled. */
|
|
77
|
-
this.disabled = input(false,
|
|
78
|
-
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
76
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
79
77
|
/** Whether the popover should close when the escape key is pressed. */
|
|
80
|
-
this.closeOnEscapeKey = input(true,
|
|
81
|
-
...(ngDevMode ? [{ debugName: "closeOnEscapeKey" }] : /* istanbul ignore next */ []));
|
|
78
|
+
this.closeOnEscapeKey = input(true, ...(ngDevMode ? [{ debugName: "closeOnEscapeKey" }] : []));
|
|
82
79
|
/** Whether the popover should close when a click is made outside its boundaries. */
|
|
83
|
-
this.closeOnOutsideClick = input(true,
|
|
84
|
-
...(ngDevMode ? [{ debugName: "closeOnOutsideClick" }] : /* istanbul ignore next */ []));
|
|
80
|
+
this.closeOnOutsideClick = input(true, ...(ngDevMode ? [{ debugName: "closeOnOutsideClick" }] : []));
|
|
85
81
|
/** Whether the popover should have an arrow. */
|
|
86
|
-
this.noArrow = input(true,
|
|
87
|
-
...(ngDevMode ? [{ debugName: "noArrow" }] : /* istanbul ignore next */ []));
|
|
82
|
+
this.noArrow = input(true, ...(ngDevMode ? [{ debugName: "noArrow" }] : []));
|
|
88
83
|
/** Whether to wrap content with fd-scrollbar directive. */
|
|
89
|
-
this.disableScrollbar = input(true,
|
|
90
|
-
...(ngDevMode ? [{ debugName: "disableScrollbar" }] : /* istanbul ignore next */ []));
|
|
84
|
+
this.disableScrollbar = input(true, ...(ngDevMode ? [{ debugName: "disableScrollbar" }] : []));
|
|
91
85
|
/** The trigger events that will open/close the popover. */
|
|
92
|
-
this.triggers = input(['click'],
|
|
93
|
-
...(ngDevMode ? [{ debugName: "triggers" }] : /* istanbul ignore next */ []));
|
|
86
|
+
this.triggers = input(['click'], ...(ngDevMode ? [{ debugName: "triggers" }] : []));
|
|
94
87
|
/** Whether the popover should be focusTrapped. */
|
|
95
|
-
this.focusTrapped = input(false,
|
|
96
|
-
...(ngDevMode ? [{ debugName: "focusTrapped" }] : /* istanbul ignore next */ []));
|
|
88
|
+
this.focusTrapped = input(false, ...(ngDevMode ? [{ debugName: "focusTrapped" }] : []));
|
|
97
89
|
/** Whether the popover should automatically move focus into the trapped region. */
|
|
98
|
-
this.focusAutoCapture = input(true,
|
|
99
|
-
...(ngDevMode ? [{ debugName: "focusAutoCapture" }] : /* istanbul ignore next */ []));
|
|
90
|
+
this.focusAutoCapture = input(true, ...(ngDevMode ? [{ debugName: "focusAutoCapture" }] : []));
|
|
100
91
|
/** Two-way binding for isOpen state */
|
|
101
|
-
this.isOpen = model(false,
|
|
102
|
-
...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
92
|
+
this.isOpen = model(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
103
93
|
/** Event emitted right before the popover is being opened. */
|
|
104
94
|
this.beforeOpen = output();
|
|
105
95
|
}
|
|
106
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
107
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
96
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderProductSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
97
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.0", type: ToolHeaderProductSwitchComponent, isStandalone: true, selector: "fdb-tool-header-product-switch", inputs: { placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscapeKey: { classPropertyName: "closeOnEscapeKey", publicName: "closeOnEscapeKey", isSignal: true, isRequired: false, transformFunction: null }, closeOnOutsideClick: { classPropertyName: "closeOnOutsideClick", publicName: "closeOnOutsideClick", isSignal: true, isRequired: false, transformFunction: null }, noArrow: { classPropertyName: "noArrow", publicName: "noArrow", isSignal: true, isRequired: false, transformFunction: null }, disableScrollbar: { classPropertyName: "disableScrollbar", publicName: "disableScrollbar", isSignal: true, isRequired: false, transformFunction: null }, triggers: { classPropertyName: "triggers", publicName: "triggers", isSignal: true, isRequired: false, transformFunction: null }, focusTrapped: { classPropertyName: "focusTrapped", publicName: "focusTrapped", isSignal: true, isRequired: false, transformFunction: null }, focusAutoCapture: { classPropertyName: "focusAutoCapture", publicName: "focusAutoCapture", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange", beforeOpen: "beforeOpen" }, host: { properties: { "class.fd-popover-custom--disabled": "disabled()" } }, providers: [
|
|
108
98
|
{
|
|
109
99
|
provide: FD_PRODUCT_SWITCH_COMPONENT,
|
|
110
100
|
useExisting: ToolHeaderProductSwitchComponent
|
|
@@ -134,7 +124,7 @@ class ToolHeaderProductSwitchComponent {
|
|
|
134
124
|
</fd-product-switch>
|
|
135
125
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[fd-button], a[fd-button], span[fd-button]", inputs: ["id"], exportAs: ["fd-button"] }, { kind: "component", type: ProductSwitchComponent, selector: "fd-product-switch", inputs: ["placement", "disabled", "closeOnEscapeKey", "closeOnOutsideClick", "noArrow", "disableScrollbar", "triggers", "focusTrapped", "focusAutoCapture", "isOpen"], outputs: ["isOpenChange", "beforeOpen"] }, { kind: "directive", type: ProductSwitchButtonDirective, selector: "[fdProductSwitchButton]" }, { kind: "directive", type: ToolHeaderButtonDirective, selector: "[fd-button][fdbToolHeaderButton]", inputs: ["fdType"] }, { kind: "pipe", type: FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
136
126
|
}
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderProductSwitchComponent, decorators: [{
|
|
138
128
|
type: Component,
|
|
139
129
|
args: [{
|
|
140
130
|
selector: 'fdb-tool-header-product-switch',
|
|
@@ -183,10 +173,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
183
173
|
}], propDecorators: { placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], closeOnEscapeKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscapeKey", required: false }] }], closeOnOutsideClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnOutsideClick", required: false }] }], noArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "noArrow", required: false }] }], disableScrollbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableScrollbar", required: false }] }], triggers: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggers", required: false }] }], focusTrapped: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusTrapped", required: false }] }], focusAutoCapture: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusAutoCapture", required: false }] }], isOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "isOpen", required: false }] }, { type: i0.Output, args: ["isOpenChange"] }], beforeOpen: [{ type: i0.Output, args: ["beforeOpen"] }] } });
|
|
184
174
|
|
|
185
175
|
class ToolHeaderActionButtonDirective {
|
|
186
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
187
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
176
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderActionButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
177
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.0", type: ToolHeaderActionButtonDirective, isStandalone: true, selector: "[fd-button][fdbToolHeaderActionButton]", host: { properties: { "class.fd-tool-header__action-button": "true" } }, hostDirectives: [{ directive: i1.ToolHeaderButtonDirective, inputs: ["fdType", "fdType"] }, { directive: i2.IndirectFocusableItemDirective }, { directive: i2.FocusableItemDirective }], ngImport: i0 }); }
|
|
188
178
|
}
|
|
189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderActionButtonDirective, decorators: [{
|
|
190
180
|
type: Directive,
|
|
191
181
|
args: [{
|
|
192
182
|
selector: '[fd-button][fdbToolHeaderActionButton]',
|
|
@@ -203,10 +193,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
203
193
|
}] });
|
|
204
194
|
|
|
205
195
|
class ToolHeaderElementDirective {
|
|
206
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
207
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
196
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
197
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.0", type: ToolHeaderElementDirective, isStandalone: true, selector: "[fdbToolHeaderElement]", host: { classAttribute: "fd-tool-header__element" }, ngImport: i0 }); }
|
|
208
198
|
}
|
|
209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderElementDirective, decorators: [{
|
|
210
200
|
type: Directive,
|
|
211
201
|
args: [{
|
|
212
202
|
selector: '[fdbToolHeaderElement]',
|
|
@@ -226,10 +216,10 @@ class ToolHeaderGroupDirective {
|
|
|
226
216
|
/** @hidden */
|
|
227
217
|
this.elementRef = inject(ElementRef);
|
|
228
218
|
}
|
|
229
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
230
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
219
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
220
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "21.1.0", type: ToolHeaderGroupDirective, isStandalone: true, selector: "[fdbToolHeaderGroup]", inputs: { center: ["center", "center", booleanAttribute], actions: ["actions", "actions", booleanAttribute] }, host: { properties: { "class.fd-tool-header__group--center": "center", "class.fd-tool-header__group--actions": "actions" }, classAttribute: "fd-tool-header__group" }, ngImport: i0 }); }
|
|
231
221
|
}
|
|
232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderGroupDirective, decorators: [{
|
|
233
223
|
type: Directive,
|
|
234
224
|
args: [{
|
|
235
225
|
selector: '[fdbToolHeaderGroup]',
|
|
@@ -249,10 +239,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
249
239
|
}] } });
|
|
250
240
|
|
|
251
241
|
class ToolHeaderLogoDirective {
|
|
252
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
253
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
242
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderLogoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
243
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.0", type: ToolHeaderLogoDirective, isStandalone: true, selector: "[fdbToolHeaderLogo]", host: { properties: { "attr.role": "\"button\"", "attr.tabindex": "0" }, classAttribute: "fd-tool-header__logo" }, ngImport: i0 }); }
|
|
254
244
|
}
|
|
255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderLogoDirective, decorators: [{
|
|
256
246
|
type: Directive,
|
|
257
247
|
args: [{
|
|
258
248
|
selector: '[fdbToolHeaderLogo]',
|
|
@@ -266,10 +256,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
266
256
|
}] });
|
|
267
257
|
|
|
268
258
|
class ToolHeaderUserDirective {
|
|
269
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
270
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
259
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderUserDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
260
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.0", type: ToolHeaderUserDirective, isStandalone: true, selector: "[fdbToolHeaderUser]", ngImport: i0 }); }
|
|
271
261
|
}
|
|
272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderUserDirective, decorators: [{
|
|
273
263
|
type: Directive,
|
|
274
264
|
args: [{
|
|
275
265
|
selector: '[fdbToolHeaderUser]',
|
|
@@ -281,11 +271,9 @@ class ToolHeaderComponentClass {
|
|
|
281
271
|
/** @hidden */
|
|
282
272
|
constructor() {
|
|
283
273
|
/** Mode signal */
|
|
284
|
-
this._mode$ = signal('',
|
|
285
|
-
...(ngDevMode ? [{ debugName: "_mode$" }] : /* istanbul ignore next */ []));
|
|
274
|
+
this._mode$ = signal('', ...(ngDevMode ? [{ debugName: "_mode$" }] : []));
|
|
286
275
|
/** @hidden */
|
|
287
|
-
this._orientation$ = signal('landscape',
|
|
288
|
-
...(ngDevMode ? [{ debugName: "_orientation$" }] : /* istanbul ignore next */ []));
|
|
276
|
+
this._orientation$ = signal('landscape', ...(ngDevMode ? [{ debugName: "_orientation$" }] : []));
|
|
289
277
|
/** @hidden */
|
|
290
278
|
this.fdbToolHeaderState = computed(() => {
|
|
291
279
|
if (this._mode$() === 'phone') {
|
|
@@ -338,20 +326,16 @@ class ToolHeaderComponentClass {
|
|
|
338
326
|
voiceInputVisible: false,
|
|
339
327
|
separatorsBetweenActionsVisible: true
|
|
340
328
|
};
|
|
341
|
-
},
|
|
342
|
-
...(ngDevMode ? [{ debugName: "fdbToolHeaderState" }] : /* istanbul ignore next */ []));
|
|
329
|
+
}, ...(ngDevMode ? [{ debugName: "fdbToolHeaderState" }] : []));
|
|
343
330
|
/** Search field signal */
|
|
344
|
-
this._searchField$ = signal(null,
|
|
345
|
-
...(ngDevMode ? [{ debugName: "_searchField$" }] : /* istanbul ignore next */ []));
|
|
331
|
+
this._searchField$ = signal(null, ...(ngDevMode ? [{ debugName: "_searchField$" }] : []));
|
|
346
332
|
/** @hidden */
|
|
347
|
-
this._searchFieldExpanded$ = signal(false,
|
|
348
|
-
...(ngDevMode ? [{ debugName: "_searchFieldExpanded$" }] : /* istanbul ignore next */ []));
|
|
333
|
+
this._searchFieldExpanded$ = signal(false, ...(ngDevMode ? [{ debugName: "_searchFieldExpanded$" }] : []));
|
|
349
334
|
/**
|
|
350
335
|
* RTL signal
|
|
351
336
|
* @hidden
|
|
352
337
|
*/
|
|
353
|
-
this.rtl = computed(() => this._rtlService?.rtl() ?? false,
|
|
354
|
-
...(ngDevMode ? [{ debugName: "rtl" }] : /* istanbul ignore next */ []));
|
|
338
|
+
this.rtl = computed(() => this._rtlService?.rtl() ?? false, ...(ngDevMode ? [{ debugName: "rtl" }] : []));
|
|
355
339
|
/** @hidden */
|
|
356
340
|
this._rtlService = inject(RtlService, { optional: true });
|
|
357
341
|
this.mode$ = this._mode$.asReadonly();
|
|
@@ -400,8 +384,7 @@ class ToolHeaderComponent extends ToolHeaderComponentClass {
|
|
|
400
384
|
*/
|
|
401
385
|
this.logoClick = new EventEmitter();
|
|
402
386
|
/** @hidden */
|
|
403
|
-
this._hiddenActions$ = signal([],
|
|
404
|
-
...(ngDevMode ? [{ debugName: "_hiddenActions$" }] : /* istanbul ignore next */ []));
|
|
387
|
+
this._hiddenActions$ = signal([], ...(ngDevMode ? [{ debugName: "_hiddenActions$" }] : []));
|
|
405
388
|
/** @hidden */
|
|
406
389
|
this._injector = inject(Injector);
|
|
407
390
|
/** @hidden */
|
|
@@ -502,8 +485,8 @@ class ToolHeaderComponent extends ToolHeaderComponentClass {
|
|
|
502
485
|
}
|
|
503
486
|
return injector;
|
|
504
487
|
}
|
|
505
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
506
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
488
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
489
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.0", type: ToolHeaderComponent, isStandalone: true, selector: "fdb-tool-header", inputs: { productName: "productName", secondTitle: "secondTitle", _mode: ["mode", "_mode"], _orientation: ["orientation", "_orientation"], showMenuButton: ["showMenuButton", "showMenuButton", booleanAttribute], showVoiceInputAction: ["showVoiceInputAction", "showVoiceInputAction", booleanAttribute] }, outputs: { menuClick: "menuClick", menuExpand: "menuExpand", menuCollapse: "menuCollapse", microphoneClick: "microphoneClick", logoClick: "logoClick" }, host: { listeners: { "document:click": "_onClick($event)", "document:keydown.control.k": "_onKeyDown()", "document:keydown.meta.k": "_onKeyDown()" }, properties: { "class.fd-tool-header--menu": "showMenuButton" }, classAttribute: "fd-tool-header" }, providers: [
|
|
507
490
|
contentDensityObserverProviders(),
|
|
508
491
|
{
|
|
509
492
|
provide: ToolHeaderComponentClass,
|
|
@@ -511,7 +494,7 @@ class ToolHeaderComponent extends ToolHeaderComponentClass {
|
|
|
511
494
|
}
|
|
512
495
|
], queries: [{ propertyName: "_toolHeaderLogoDirective", first: true, predicate: ToolHeaderLogoDirective, descendants: true }, { propertyName: "_searchField", first: true, predicate: SearchFieldComponent, descendants: true }, { propertyName: "_toolHeaderUser", first: true, predicate: ToolHeaderUserDirective, descendants: true }, { propertyName: "_toolHeaderProductSwitch", first: true, predicate: FD_PRODUCT_SWITCH_COMPONENT, descendants: true }, { propertyName: "_contentActions", predicate: ToolHeaderActionClass }], usesInheritance: true, ngImport: i0, template: "<div fdbToolHeaderGroup [class.fd-tool-header--menu]=\"showMenuButton\">\n @if (fdbToolHeaderState().backButtonVisible) {\n <div fdbToolHeaderElement>\n <button\n fd-button\n fdbToolHeaderButton\n glyph=\"slim-arrow-left\"\n (click)=\"_searchFieldExpanded$.set(false)\"\n ></button>\n </div>\n }\n @if (fdbToolHeaderState().menuButtonVisible && showMenuButton) {\n <div fdbToolHeaderElement>\n <button\n fd-button\n fdbToolHeaderButton\n [title]=\"('btpToolHeader.menuButtonAriaLabel' | fdTranslate)()\"\n [ariaLabel]=\"('btpToolHeader.menuButtonAriaLabel' | fdTranslate)()\"\n glyph=\"menu2\"\n (keydown.arrowLeft)=\"_handleMenuLeftArrowKey()\"\n (keydown.arrowRight)=\"_handleMenuRightArrowKey()\"\n (click)=\"menuClick.emit()\"\n ></button>\n </div>\n }\n @if (fdbToolHeaderState().logoVisible) {\n <div fdbToolHeaderElement>\n @if (_toolHeaderLogoDirective) {\n <ng-content select=\"[fdbToolHeaderLogo]\"></ng-content>\n } @else {\n <img\n fdbToolHeaderLogo\n (click)=\"logoClick.emit()\"\n src=\"https://unpkg.com/fundamental-styles/dist/images/sap-logo.png\"\n srcset=\"\n https://unpkg.com/fundamental-styles/dist/images/sap-logo@2x.png 1x,\n https://unpkg.com/fundamental-styles/dist/images/sap-logo@3x.png 2x,\n https://unpkg.com/fundamental-styles/dist/images/sap-logo@4x.png 3x\n \"\n alt=\"SAP logo\"\n aria-label=\"SAP logo\"\n title=\"SAP logo\"\n />\n }\n </div>\n }\n @if (fdbToolHeaderState().productNameVisible) {\n <div fdbToolHeaderElement>\n <h1 class=\"fd-tool-header__product-name\">\n {{ productName }}\n </h1>\n </div>\n }\n @if (fdbToolHeaderState().secondTitleVisible && secondTitle) {\n <div fdbToolHeaderElement>\n <div class=\"fd-tool-header__second-title\">\n {{ secondTitle }}\n </div>\n </div>\n }\n</div>\n@if (fdbToolHeaderState().searchFieldVisible) {\n <div fdbToolHeaderGroup center>\n <ng-content select=\"fdb-search-field\"></ng-content>\n </div>\n}\n<fd-overflow-layout\n fdbToolHeaderGroup\n actions\n [style.justify-content]=\"'end'\"\n (hiddenItemsChange)=\"_handleHiddenItemsChange($event)\"\n [renderShowMoreButton]=\"false\"\n>\n @if (fdbToolHeaderState().searchFieldToggleActionVisible) {\n <ng-template fdOverflowItemRef>\n <div fdbToolHeaderElement fdOverflowLayoutItem [forceVisibility]=\"true\">\n <button\n fd-button\n fdbToolHeaderActionButton\n glyph=\"search\"\n (click)=\"$event.stopPropagation(); expandSearchField()\"\n ></button>\n </div>\n </ng-template>\n }\n @if (fdbToolHeaderState().providedActionsVisible) {\n @for (action of _contentActions; track action) {\n @if (action.isSeparator ? fdbToolHeaderState().separatorsBetweenActionsVisible : true) {\n <ng-template [fdOverflowItemRef]=\"action\" let-hidden let-injector=\"injector\">\n @if (hidden === false) {\n <div fdbToolHeaderElement fdOverflowLayoutItem [forceVisibility]=\"!!action.forceVisibility\">\n <ng-template [ngTemplateOutlet]=\"actionTemplate\"></ng-template>\n </div>\n } @else {\n <ng-template\n [ngTemplateOutlet]=\"action.templateRef\"\n [ngTemplateOutletContext]=\"{ hidden: hidden }\"\n [ngTemplateOutletInjector]=\"injector\"\n >\n </ng-template>\n }\n <ng-template #actionTemplate>\n <ng-template\n [ngTemplateOutlet]=\"action.templateRef\"\n [ngTemplateOutletContext]=\"{ hidden: hidden }\"\n [ngTemplateOutletInjector]=\"injector\"\n >\n </ng-template>\n </ng-template>\n </ng-template>\n }\n }\n }\n <!-- Custom overflow button used as overflow item START -->\n @if (_hiddenActions$(); as hiddenActions) {\n @if (hiddenActions.length > 0) {\n <ng-template fdOverflowItemRef>\n <fdb-navigation-menu-popover fdbToolHeaderElement fdOverflowLayoutItem [forceVisibility]=\"true\">\n <button\n *fdbNavigationMenuPopoverControl\n fd-button\n fdbToolHeaderActionButton\n glyph=\"overflow\"\n ></button>\n <fdb-navigation-menu\n class=\"fd-tool-header__navigation-menu\"\n fdkIndirectFocusableList\n #indirectFocusableList=\"fdkIndirectFocusableList\"\n >\n @for (item of hiddenActions; track item.globalIndex) {\n <ng-template\n [ngTemplateOutlet]=\"item.templateRef\"\n [ngTemplateOutletContext]=\"{\n $implicit: true,\n index: item.index,\n globalIndex: item.globalIndex,\n first: item.first,\n last: item.last,\n injector: _indirectFocusableItemInjector(indirectFocusableList.injector, item)\n }\"\n >\n </ng-template>\n }\n </fdb-navigation-menu>\n </fdb-navigation-menu-popover>\n </ng-template>\n }\n }\n <!-- Custom overflow button used as overflow item END -->\n @if (fdbToolHeaderState().userAvatarVisible && _toolHeaderUser) {\n @if (fdbToolHeaderState().separatorsBetweenActionsVisible) {\n <ng-template fdOverflowItemRef>\n <div fdbToolHeaderElement fdOverflowLayoutItem [forceVisibility]=\"true\">\n <div class=\"fd-tool-header__separator\"></div>\n </div>\n </ng-template>\n }\n <ng-template fdOverflowItemRef>\n <div fdbToolHeaderElement fdOverflowLayoutItem [forceVisibility]=\"true\">\n <ng-content select=\"[fdbToolHeaderUser]\"></ng-content>\n </div>\n </ng-template>\n }\n @if (fdbToolHeaderState().productSwitchVisible && _toolHeaderProductSwitch) {\n @if (fdbToolHeaderState().separatorsBetweenActionsVisible) {\n <ng-template fdOverflowItemRef>\n <div fdbToolHeaderElement fdOverflowLayoutItem [forceVisibility]=\"true\">\n <div class=\"fd-tool-header__separator\"></div>\n </div>\n </ng-template>\n }\n <ng-template fdOverflowItemRef>\n <div fdbToolHeaderElement fdOverflowLayoutItem [forceVisibility]=\"true\">\n <ng-content select=\"fdb-tool-header-product-switch, fd-product-switch\"></ng-content>\n </div>\n </ng-template>\n }\n @if (fdbToolHeaderState().voiceInputVisible) {\n <ng-template fdOverflowItemRef>\n <div fdbToolHeaderElement fdOverflowLayoutItem [forceVisibility]=\"true\">\n <button\n fd-button\n fdbToolHeaderActionButton\n glyph=\"microphone\"\n [ariaLabel]=\"'Search with voice'\"\n (click)=\"microphoneClick.emit()\"\n ></button>\n </div>\n </ng-template>\n }\n</fd-overflow-layout>\n", styles: [".fd-tool-header{--fdToolHeader_Min_Height:var(--sapToolHeader_Min_Height_Cozy);--fdToolHeader_Padding_Left:1.5rem;--fdToolHeader_Padding_Right:1.25rem;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-orient:horizontal;-webkit-box-direction:normal;background:var(--sapShellColor);border:.0625rem solid var(--fdToolHeader_Border_Color);border-radius:var(--sapToolHeader_Border_Radius);-webkit-box-shadow:var(--sapToolHeader_Shadow1);box-shadow:var(--sapToolHeader_Shadow1);-ms-flex-direction:row;flex-direction:row;gap:.75rem;height:auto;min-height:var(--fdToolHeader_Min_Height);padding-block:var(--sapToolHeader_Paddings_Y);padding-inline:var(--fdToolHeader_Padding_Left) var(--fdToolHeader_Padding_Right);width:100%}.fd-tool-header:after,.fd-tool-header:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-tool-header__group{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.375rem;-webkit-box-flex:1;-ms-flex:1;flex:1}.fd-tool-header__group:after,.fd-tool-header__group:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-tool-header__group--center,.fd-tool-header__group--menu{-webkit-box-flex:0;-ms-flex:0;flex:0}.fd-tool-header__group--actions{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.fd-tool-header__group--hidden{display:none}.fd-tool-header__element{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.fd-tool-header__element:after,.fd-tool-header__element:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-tool-header__element--hidden{display:none}.fd-tool-header__logo{background-repeat:no-repeat;background-size:contain;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);cursor:pointer;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;height:1.625rem;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;width:auto}.fd-tool-header__logo:after,.fd-tool-header__logo:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-tool-header__logo.is-focus,.fd-tool-header__logo:focus{border-radius:.25rem;outline:var(--sapContent_FocusStyle) var(--sapContent_FocusWidth) var(--sapContent_FocusColor);outline-offset:.125rem;z-index:5}.fd-tool-header__separator{background:transparent;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;height:.75rem;line-height:normal;margin-block:0;margin-inline:0;max-height:.75rem;max-width:.75rem;min-height:.75rem;min-width:.75rem;padding-block:0;padding-inline:0;width:.75rem}.fd-tool-header__separator:after,.fd-tool-header__separator:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-tool-header__product-name{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapToolHeader_Product_Name_Color);font-family:var(--sapFontFamily);font-family:var(--sapFontBlackFamily);font-size:var(--sapFontSize);font-size:var(--sapToolHeader_Product_Name_Font_Size);font-weight:400;forced-color-adjust:none;line-height:normal;line-height:1.625rem;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;vertical-align:baseline}.fd-tool-header__product-name:after,.fd-tool-header__product-name:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-tool-header__second-title{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapToolHeader_Second_Title_Color);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-size:var(--sapToolHeader_Second_Title_Font_Size);font-weight:400;forced-color-adjust:none;line-height:normal;line-height:var(--sapContent_LineHeight);margin-block:0;margin-inline:0;margin-top:var(--sapToolHeader_Second_Title_Offset);padding-block:0;padding-inline:0;vertical-align:baseline}.fd-tool-header__second-title:after,.fd-tool-header__second-title:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-tool-header--menu{--fdToolHeader_Padding_Left:.75rem}.fd-tool-header[class*=-compact],[class*=-compact] .fd-tool-header:not([class*=-cozy]){--fdToolHeader_Min_Height:var(--sapToolHeader_Min_Height_Compact)}.fd-overflow-layout__items>.fd-overflow-layout__item:not(.fd-overflow-layout__item--last)>.fd-tool-header__element>*{margin-right:.375rem}.fd-tool-header__group--center+.fd-tool-header__group--actions{max-width:calc((100% - 16rem)/2)}.fd-tool-header__element.is-separator+.fd-tool-header__element.is-separator{display:none}.fd-tool-header__navigation-menu{display:flex;flex-direction:column;overflow:visible}.fd-tool-header .fd-button .fd-button__text{display:none}\n/*! Bundled license information:\n\nfundamental-styles/dist/tool-header.css:\n (*!\n * Fundamental Library Styles v0.41.8\n * Copyright (c) 2026 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *)\n*/\n"], dependencies: [{ kind: "directive", type: ToolHeaderGroupDirective, selector: "[fdbToolHeaderGroup]", inputs: ["center", "actions"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: ToolHeaderElementDirective, selector: "[fdbToolHeaderElement]" }, { kind: "component", type: ButtonComponent, selector: "button[fd-button], a[fd-button], span[fd-button]", inputs: ["id"], exportAs: ["fd-button"] }, { kind: "directive", type: ToolHeaderButtonDirective, selector: "[fd-button][fdbToolHeaderButton]", inputs: ["fdType"] }, { kind: "directive", type: ToolHeaderLogoDirective, selector: "[fdbToolHeaderLogo]" }, { kind: "component", type: NavigationMenuComponent, selector: "fdb-navigation-menu, ul[fdb-navigation-menu]" }, { kind: "directive", type: IndirectFocusableListDirective, selector: "[fdkIndirectFocusableList]", exportAs: ["fdkIndirectFocusableList"] }, { kind: "component", type: NavigationMenuPopoverComponent, selector: "fdb-navigation-menu-popover" }, { kind: "directive", type: NavigationMenuPopoverControlDirective, selector: "[fdbNavigationMenuPopoverControl]" }, { kind: "component", type: OverflowLayoutComponent, selector: "fd-overflow-layout", inputs: ["maxVisibleItems", "navigationTrigger", "showMorePosition", "renderShowMoreButton", "reverseHiddenItems", "enableKeyboardNavigation", "ariaRole", "moreItemsButtonText"], outputs: ["visibleItemsCount", "hiddenItemsCount", "hiddenItemsChange"] }, { kind: "directive", type: OverflowLayoutItemDirective, selector: "[fdOverflowLayoutItem]", inputs: ["forceVisibility"], outputs: ["hiddenChange"] }, { kind: "directive", type: OverflowItemRefDirective, selector: "[fdOverflowItemRef]", inputs: ["fdOverflowItemRef"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: ToolHeaderActionButtonDirective, selector: "[fd-button][fdbToolHeaderActionButton]" }, { kind: "pipe", type: FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
513
496
|
}
|
|
514
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
497
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderComponent, decorators: [{
|
|
515
498
|
type: Component,
|
|
516
499
|
args: [{ selector: 'fdb-tool-header', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
517
500
|
class: 'fd-tool-header',
|
|
@@ -599,15 +582,15 @@ class ToolHeaderActionDirective extends ToolHeaderActionClass {
|
|
|
599
582
|
static ngTemplateContextGuard(dir, ctx) {
|
|
600
583
|
return !(dir.isSeparator || dir.forceVisibility);
|
|
601
584
|
}
|
|
602
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
603
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
585
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderActionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
586
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.0", type: ToolHeaderActionDirective, isStandalone: true, selector: "[fdbToolHeaderAction]", providers: [
|
|
604
587
|
{
|
|
605
588
|
provide: ToolHeaderActionClass,
|
|
606
589
|
useExisting: ToolHeaderActionDirective
|
|
607
590
|
}
|
|
608
591
|
], queries: [{ propertyName: "button", first: true, predicate: ButtonComponent, descendants: true }], usesInheritance: true, ngImport: i0 }); }
|
|
609
592
|
}
|
|
610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderActionDirective, decorators: [{
|
|
611
594
|
type: Directive,
|
|
612
595
|
args: [{
|
|
613
596
|
selector: '[fdbToolHeaderAction]',
|
|
@@ -681,8 +664,7 @@ class ToolHeaderAutoModeDirective {
|
|
|
681
664
|
/**
|
|
682
665
|
* Current configuration of the directive.
|
|
683
666
|
*/
|
|
684
|
-
this._config = signal(DEFAULT_CONFIG,
|
|
685
|
-
...(ngDevMode ? [{ debugName: "_config" }] : /* istanbul ignore next */ []));
|
|
667
|
+
this._config = signal(DEFAULT_CONFIG, ...(ngDevMode ? [{ debugName: "_config" }] : []));
|
|
686
668
|
/**
|
|
687
669
|
* Reference to the ContentDensityDirective provided via hostDirectives.
|
|
688
670
|
* Used to programmatically set the content density based on the detected mode.
|
|
@@ -707,8 +689,7 @@ class ToolHeaderAutoModeDirective {
|
|
|
707
689
|
* - 'tablet': tablet mode, triggers COZY density
|
|
708
690
|
* - 'phone': phone mode, triggers COZY density
|
|
709
691
|
*/
|
|
710
|
-
this._currentMode = computed(() => this._getMode(this._elementWidth(), this._config()),
|
|
711
|
-
...(ngDevMode ? [{ debugName: "_currentMode" }] : /* istanbul ignore next */ []));
|
|
692
|
+
this._currentMode = computed(() => this._getMode(this._elementWidth(), this._config()), ...(ngDevMode ? [{ debugName: "_currentMode" }] : []));
|
|
712
693
|
/**
|
|
713
694
|
* @hidden
|
|
714
695
|
*/
|
|
@@ -748,10 +729,10 @@ class ToolHeaderAutoModeDirective {
|
|
|
748
729
|
width >= config.tabletLandscape[0] && width <= config.tabletLandscape[1] ? 'landscape' : 'portrait'
|
|
749
730
|
];
|
|
750
731
|
}
|
|
751
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
752
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
732
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderAutoModeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
733
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.0", type: ToolHeaderAutoModeDirective, isStandalone: true, selector: "fdb-tool-header[fdbToolHeaderAutoMode]", inputs: { config: "config" }, outputs: { modeChange: "modeChange", orientationChange: "orientationChange", contentDensityChange: "contentDensityChange" }, exportAs: ["fdbToolHeaderAutoMode"], hostDirectives: [{ directive: i1$1.ContentDensityDirective }], ngImport: i0 }); }
|
|
753
734
|
}
|
|
754
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ToolHeaderAutoModeDirective, decorators: [{
|
|
755
736
|
type: Directive,
|
|
756
737
|
args: [{
|
|
757
738
|
selector: 'fdb-tool-header[fdbToolHeaderAutoMode]',
|