@db-ux/ngx-core-components 4.9.0-1-c55de66 → 4.9.0-stencil-bundle-ad37ca4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -189,7 +189,7 @@ _version bump_
189
189
 
190
190
  - fix: set DBTabItem internal state `_selected` correctly - [see commit f7625cb](https://github.com/db-ux-design-system/core-web/commit/f7625cbd9d64513527e826c9d2c1ef42b2734a4b):
191
191
 
192
- - Now also sets aria-selected=true|false correctly which improves screen reader behaviour
192
+ - Now also sets aria-selected=true|false correctly which improves screen reader behaviour
193
193
 
194
194
  ## 4.2.1
195
195
 
@@ -190,13 +190,16 @@ class DBAccordionItem {
190
190
  if (this.toggle) {
191
191
  this.toggle.emit(newStateOpen);
192
192
  }
193
- this._open.set(newStateOpen);
193
+ if (this.open() === undefined) {
194
+ this._open.set(newStateOpen);
195
+ }
194
196
  }
195
197
  constructor() {
196
198
  this.cls = cls;
197
199
  this.getBooleanAsString = getBooleanAsString;
198
200
  this.defaultOpen = input(...(ngDevMode ? [undefined, { debugName: "defaultOpen" }] : /* istanbul ignore next */ []));
199
201
  this.name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : /* istanbul ignore next */ []));
202
+ this.open = input(...(ngDevMode ? [undefined, { debugName: "open" }] : /* istanbul ignore next */ []));
200
203
  this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
201
204
  this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : /* istanbul ignore next */ []));
202
205
  this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
@@ -229,6 +232,16 @@ class DBAccordionItem {
229
232
  }, {
230
233
  // Enable writing to signals inside effects
231
234
  });
235
+ effect(() => {
236
+ // --- Mitosis: Workaround to make sure the effect() is triggered ---
237
+ this.open();
238
+ // ---
239
+ if (this.open() !== undefined) {
240
+ this._open.set(this.open());
241
+ }
242
+ }, {
243
+ // Enable writing to signals inside effects
244
+ });
232
245
  }
233
246
  }
234
247
  /**
@@ -278,7 +291,7 @@ class DBAccordionItem {
278
291
  }
279
292
  }
280
293
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DBAccordionItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
281
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: DBAccordionItem, isStandalone: true, selector: "db-accordion-item", inputs: { defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, headlinePlain: { classPropertyName: "headlinePlain", publicName: "headlinePlain", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggle: "toggle" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<li
294
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: DBAccordionItem, isStandalone: true, selector: "db-accordion-item", inputs: { defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, headlinePlain: { classPropertyName: "headlinePlain", publicName: "headlinePlain", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggle: "toggle" }, viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<li
282
295
  [attr.id]="id() ?? propOverrides()?.id"
283
296
  [class]="cls('db-accordion-item', className())"
284
297
  >
@@ -317,7 +330,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
317
330
  <div>@if(text()){{{text()}}} <ng-content></ng-content></div>
318
331
  </details>
319
332
  </li> `, styles: [":host{display:contents}\n"] }]
320
- }], ctorParameters: () => [], propDecorators: { defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headlinePlain: [{ type: i0.Input, args: [{ isSignal: true, alias: "headlinePlain", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
333
+ }], ctorParameters: () => [], propDecorators: { defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headlinePlain: [{ type: i0.Input, args: [{ isSignal: true, alias: "headlinePlain", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
321
334
 
322
335
  const defaultProps$z = {};
323
336
  class DBAccordion {
@@ -359,7 +372,7 @@ class DBAccordion {
359
372
  // ---
360
373
  // If we have a single behavior we first check for
361
374
  // props.name otherwise for state_id
362
- if (this.initialized()) {
375
+ if (this.initialized() && this._ref()?.nativeElement) {
363
376
  if (this.behavior() === "single") {
364
377
  if (this.name()) {
365
378
  if (this._name() !== this.name()) {
@@ -487,7 +500,7 @@ class DBAccordion {
487
500
  [text]="item.text"
488
501
  ></db-accordion-item>
489
502
  } }
490
- </ul> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBAccordionItem, selector: "db-accordion-item", inputs: ["defaultOpen", "name", "id", "propOverrides", "className", "disabled", "headlinePlain", "text"], outputs: ["toggle"] }] }); }
503
+ </ul> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DBAccordionItem, selector: "db-accordion-item", inputs: ["defaultOpen", "name", "open", "id", "propOverrides", "className", "disabled", "headlinePlain", "text"], outputs: ["toggle"] }] }); }
491
504
  }
492
505
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DBAccordion, decorators: [{
493
506
  type: Component,
@@ -4784,8 +4797,8 @@ class DBDrawer {
4784
4797
  }
4785
4798
  handleDialogOpen() {
4786
4799
  if (this._ref()?.nativeElement) {
4787
- const open = Boolean(this.open());
4788
- if (open && !this._ref()?.nativeElement.open) {
4800
+ const dialogOpen = getBoolean(this.open());
4801
+ if (dialogOpen && !this._ref()?.nativeElement.open) {
4789
4802
  if (this.dialogContainerRef()?.nativeElement) {
4790
4803
  (this.dialogContainerRef()?.nativeElement).removeAttribute("data-transition");
4791
4804
  }
@@ -4803,7 +4816,7 @@ class DBDrawer {
4803
4816
  }
4804
4817
  }, 1);
4805
4818
  }
4806
- if (!open && this._ref()?.nativeElement.open) {
4819
+ if (!dialogOpen && this._ref()?.nativeElement.open) {
4807
4820
  if (this.dialogContainerRef()?.nativeElement) {
4808
4821
  (this.dialogContainerRef()?.nativeElement).dataset["transition"] = "close";
4809
4822
  }
@@ -5179,17 +5192,17 @@ class DBHeader {
5179
5192
  }
5180
5193
  constructor() {
5181
5194
  this.cls = cls;
5182
- this.getBoolean = getBoolean;
5183
5195
  this.DEFAULT_BURGER_MENU = DEFAULT_BURGER_MENU;
5196
+ this.getBoolean = getBoolean;
5184
5197
  this.forceMobile = input(...(ngDevMode ? [undefined, { debugName: "forceMobile" }] : /* istanbul ignore next */ []));
5185
5198
  this.drawerOpen = input(...(ngDevMode ? [undefined, { debugName: "drawerOpen" }] : /* istanbul ignore next */ []));
5186
5199
  this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
5187
5200
  this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
5188
5201
  this.propOverrides = input(...(ngDevMode ? [undefined, { debugName: "propOverrides" }] : /* istanbul ignore next */ []));
5189
5202
  this.width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : /* istanbul ignore next */ []));
5203
+ this.burgerMenuLabel = input(...(ngDevMode ? [undefined, { debugName: "burgerMenuLabel" }] : /* istanbul ignore next */ []));
5190
5204
  this.closeButtonId = input(...(ngDevMode ? [undefined, { debugName: "closeButtonId" }] : /* istanbul ignore next */ []));
5191
5205
  this.closeButtonText = input(...(ngDevMode ? [undefined, { debugName: "closeButtonText" }] : /* istanbul ignore next */ []));
5192
- this.burgerMenuLabel = input(...(ngDevMode ? [undefined, { debugName: "burgerMenuLabel" }] : /* istanbul ignore next */ []));
5193
5206
  this.toggle = output();
5194
5207
  this._ref = viewChild("_ref", ...(ngDevMode ? [{ debugName: "_ref" }] : /* istanbul ignore next */ []));
5195
5208
  this.initialized = signal(false, ...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
@@ -5260,35 +5273,13 @@ class DBHeader {
5260
5273
  }
5261
5274
  }
5262
5275
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DBHeader, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5263
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.13", type: DBHeader, isStandalone: true, selector: "db-header", inputs: { forceMobile: { classPropertyName: "forceMobile", publicName: "forceMobile", isSignal: true, isRequired: false, transformFunction: null }, drawerOpen: { classPropertyName: "drawerOpen", publicName: "drawerOpen", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, closeButtonId: { classPropertyName: "closeButtonId", publicName: "closeButtonId", isSignal: true, isRequired: false, transformFunction: null }, closeButtonText: { classPropertyName: "closeButtonText", publicName: "closeButtonText", isSignal: true, isRequired: false, transformFunction: null }, burgerMenuLabel: { classPropertyName: "burgerMenuLabel", publicName: "burgerMenuLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggle: "toggle" }, queries: [{ propertyName: "dbNavigation", first: true, predicate: NavigationDirective, descendants: true, read: TemplateRef }, { propertyName: "dbMetaNavigation", first: true, predicate: MetaNavigationDirective, descendants: true, read: TemplateRef }, { propertyName: "dbSecondaryAction", first: true, predicate: SecondaryActionDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<header
5276
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.13", type: DBHeader, isStandalone: true, selector: "db-header", inputs: { forceMobile: { classPropertyName: "forceMobile", publicName: "forceMobile", isSignal: true, isRequired: false, transformFunction: null }, drawerOpen: { classPropertyName: "drawerOpen", publicName: "drawerOpen", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, burgerMenuLabel: { classPropertyName: "burgerMenuLabel", publicName: "burgerMenuLabel", isSignal: true, isRequired: false, transformFunction: null }, closeButtonId: { classPropertyName: "closeButtonId", publicName: "closeButtonId", isSignal: true, isRequired: false, transformFunction: null }, closeButtonText: { classPropertyName: "closeButtonText", publicName: "closeButtonText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggle: "toggle" }, queries: [{ propertyName: "dbNavigation", first: true, predicate: NavigationDirective, descendants: true, read: TemplateRef }, { propertyName: "dbMetaNavigation", first: true, predicate: MetaNavigationDirective, descendants: true, read: TemplateRef }, { propertyName: "dbSecondaryAction", first: true, predicate: SecondaryActionDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<header
5264
5277
  #_ref
5265
5278
  [class]="cls('db-header', className())"
5266
5279
  [attr.id]="id() ?? propOverrides()?.id"
5267
5280
  [attr.data-width]="width()"
5268
5281
  [attr.data-on-forcing-mobile]="forceMobile() && !forcedToMobile()"
5269
5282
  >
5270
- <db-drawer
5271
- spacing="small"
5272
- className="db-header-drawer"
5273
- [rounded]="true"
5274
- [closeButtonId]="closeButtonId()"
5275
- [closeButtonText]="closeButtonText()"
5276
- [open]="getBoolean(drawerOpen())"
5277
- (close)="handleToggle()"
5278
- ><div class="db-header-drawer-navigation">
5279
- <div
5280
- class="db-header-navigation"
5281
- (click)="handleNavigationItemClick($event)"
5282
- >
5283
- <ng-content *ngTemplateOutlet="dbNavigation"></ng-content>
5284
- </div>
5285
- <div class="db-header-meta-navigation">
5286
- <ng-content *ngTemplateOutlet="dbMetaNavigation"> </ng-content>
5287
- </div>
5288
- </div>
5289
- <div class="db-header-secondary-action">
5290
- <ng-content *ngTemplateOutlet="dbSecondaryAction"> </ng-content></div
5291
- ></db-drawer>
5292
5283
  <div class="db-header-meta-navigation">
5293
5284
  <ng-content *ngTemplateOutlet="dbMetaNavigation"> </ng-content>
5294
5285
  </div>
@@ -5317,17 +5308,6 @@ class DBHeader {
5317
5308
  </div>
5318
5309
  </div>
5319
5310
  </div>
5320
- </header> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DBDrawer, selector: "db-drawer", inputs: ["open", "position", "backdrop", "variant", "id", "propOverrides", "direction", "className", "spacing", "width", "rounded", "closeButtonId", "closeButtonText"], outputs: ["close"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "propOverrides", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "wrap", "noText", "name", "form", "value", "text"], outputs: ["click"] }] }); }
5321
- }
5322
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DBHeader, decorators: [{
5323
- type: Component,
5324
- args: [{ selector: "db-header", standalone: true, imports: [CommonModule, DBDrawer, DBButton], template: `<header
5325
- #_ref
5326
- [class]="cls('db-header', className())"
5327
- [attr.id]="id() ?? propOverrides()?.id"
5328
- [attr.data-width]="width()"
5329
- [attr.data-on-forcing-mobile]="forceMobile() && !forcedToMobile()"
5330
- >
5331
5311
  <db-drawer
5332
5312
  spacing="small"
5333
5313
  className="db-header-drawer"
@@ -5350,6 +5330,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
5350
5330
  <div class="db-header-secondary-action">
5351
5331
  <ng-content *ngTemplateOutlet="dbSecondaryAction"> </ng-content></div
5352
5332
  ></db-drawer>
5333
+ </header> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "propOverrides", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "wrap", "noText", "name", "form", "value", "text"], outputs: ["click"] }, { kind: "component", type: DBDrawer, selector: "db-drawer", inputs: ["open", "position", "backdrop", "variant", "id", "propOverrides", "direction", "className", "spacing", "width", "rounded", "closeButtonId", "closeButtonText"], outputs: ["close"] }] }); }
5334
+ }
5335
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DBHeader, decorators: [{
5336
+ type: Component,
5337
+ args: [{ selector: "db-header", standalone: true, imports: [CommonModule, DBButton, DBDrawer], template: `<header
5338
+ #_ref
5339
+ [class]="cls('db-header', className())"
5340
+ [attr.id]="id() ?? propOverrides()?.id"
5341
+ [attr.data-width]="width()"
5342
+ [attr.data-on-forcing-mobile]="forceMobile() && !forcedToMobile()"
5343
+ >
5353
5344
  <div class="db-header-meta-navigation">
5354
5345
  <ng-content *ngTemplateOutlet="dbMetaNavigation"> </ng-content>
5355
5346
  </div>
@@ -5378,6 +5369,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
5378
5369
  </div>
5379
5370
  </div>
5380
5371
  </div>
5372
+ <db-drawer
5373
+ spacing="small"
5374
+ className="db-header-drawer"
5375
+ [rounded]="true"
5376
+ [closeButtonId]="closeButtonId()"
5377
+ [closeButtonText]="closeButtonText()"
5378
+ [open]="getBoolean(drawerOpen())"
5379
+ (close)="handleToggle()"
5380
+ ><div class="db-header-drawer-navigation">
5381
+ <div
5382
+ class="db-header-navigation"
5383
+ (click)="handleNavigationItemClick($event)"
5384
+ >
5385
+ <ng-content *ngTemplateOutlet="dbNavigation"></ng-content>
5386
+ </div>
5387
+ <div class="db-header-meta-navigation">
5388
+ <ng-content *ngTemplateOutlet="dbMetaNavigation"> </ng-content>
5389
+ </div>
5390
+ </div>
5391
+ <div class="db-header-secondary-action">
5392
+ <ng-content *ngTemplateOutlet="dbSecondaryAction"> </ng-content></div
5393
+ ></db-drawer>
5381
5394
  </header> `, styles: [":host{display:contents}\n"] }]
5382
5395
  }], ctorParameters: () => [], propDecorators: { dbNavigation: [{
5383
5396
  type: ContentChild,
@@ -5388,7 +5401,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
5388
5401
  }], dbSecondaryAction: [{
5389
5402
  type: ContentChild,
5390
5403
  args: [SecondaryActionDirective, { read: TemplateRef }]
5391
- }], forceMobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceMobile", required: false }] }], drawerOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawerOpen", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], closeButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonId", required: false }] }], closeButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonText", required: false }] }], burgerMenuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "burgerMenuLabel", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
5404
+ }], forceMobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceMobile", required: false }] }], drawerOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawerOpen", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], burgerMenuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "burgerMenuLabel", required: false }] }], closeButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonId", required: false }] }], closeButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonText", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
5392
5405
 
5393
5406
  const defaultProps$g = {};
5394
5407
  class DBIcon {
@@ -5715,6 +5728,7 @@ class DBNavigationItem {
5715
5728
  this.active = input(...(ngDevMode ? [undefined, { debugName: "active" }] : /* istanbul ignore next */ []));
5716
5729
  this.wrap = input(...(ngDevMode ? [undefined, { debugName: "wrap" }] : /* istanbul ignore next */ []));
5717
5730
  this.disabled = input(...(ngDevMode ? [undefined, { debugName: "disabled" }] : /* istanbul ignore next */ []));
5731
+ this.hideSubNavigation = input(...(ngDevMode ? [undefined, { debugName: "hideSubNavigation" }] : /* istanbul ignore next */ []));
5718
5732
  this.text = input(...(ngDevMode ? [undefined, { debugName: "text" }] : /* istanbul ignore next */ []));
5719
5733
  this.backButtonId = input(...(ngDevMode ? [undefined, { debugName: "backButtonId" }] : /* istanbul ignore next */ []));
5720
5734
  this.backButtonText = input(...(ngDevMode ? [undefined, { debugName: "backButtonText" }] : /* istanbul ignore next */ []));
@@ -5810,7 +5824,7 @@ class DBNavigationItem {
5810
5824
  }
5811
5825
  }
5812
5826
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DBNavigationItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5813
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: DBNavigationItem, isStandalone: true, selector: "db-navigation-item", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, subNavigationExpanded: { classPropertyName: "subNavigationExpanded", publicName: "subNavigationExpanded", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, backButtonId: { classPropertyName: "backButtonId", publicName: "backButtonId", isSignal: true, isRequired: false, transformFunction: null }, backButtonText: { classPropertyName: "backButtonText", publicName: "backButtonText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, queries: [{ propertyName: "dbNavigationContent", first: true, predicate: NavigationContentDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<li
5827
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: DBNavigationItem, isStandalone: true, selector: "db-navigation-item", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, subNavigationExpanded: { classPropertyName: "subNavigationExpanded", publicName: "subNavigationExpanded", isSignal: true, isRequired: false, transformFunction: null }, propOverrides: { classPropertyName: "propOverrides", publicName: "propOverrides", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hideSubNavigation: { classPropertyName: "hideSubNavigation", publicName: "hideSubNavigation", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, backButtonId: { classPropertyName: "backButtonId", publicName: "backButtonId", isSignal: true, isRequired: false, transformFunction: null }, backButtonText: { classPropertyName: "backButtonText", publicName: "backButtonText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, queries: [{ propertyName: "dbNavigationContent", first: true, predicate: NavigationContentDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "_ref", first: true, predicate: ["_ref"], descendants: true, isSignal: true }], ngImport: i0, template: `<li
5814
5828
  #_ref
5815
5829
  [attr.id]="id() ?? propOverrides()?.id"
5816
5830
  (mouseover)="navigationItemSafeTriangle()?.enableFollow()"
@@ -5824,9 +5838,8 @@ class DBNavigationItem {
5824
5838
  [attr.data-wrap]="getBooleanAsString(wrap())"
5825
5839
  [attr.aria-disabled]="getBooleanAsString(disabled())"
5826
5840
  >
5827
- @if(!hasSubNavigation()){ @if(text()){{{text()}}}@else{
5828
- <ng-content *ngTemplateOutlet="dbNavigationContent"></ng-content>
5829
- } } @if(hasSubNavigation()){
5841
+ @if(!getBoolean(hideSubNavigation(), 'hideSubNavigation') &&
5842
+ hasSubNavigation()){
5830
5843
  <button
5831
5844
  class="db-navigation-item-expand-button"
5832
5845
  [attr.id]="subNavigationToggleId()"
@@ -5859,7 +5872,9 @@ class DBNavigationItem {
5859
5872
  }
5860
5873
  <ng-content select="[sub-navigation]"> </ng-content
5861
5874
  ></menu>
5862
- }
5875
+ }@else{ @if(text()){{{text()}}}@else{
5876
+ <ng-content *ngTemplateOutlet="dbNavigationContent"></ng-content>
5877
+ } }
5863
5878
  </li> `, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DBButton, selector: "db-button", inputs: ["type", "id", "propOverrides", "className", "disabled", "iconLeading", "icon", "showIconLeading", "showIcon", "iconTrailing", "showIconTrailing", "size", "width", "variant", "wrap", "noText", "name", "form", "value", "text"], outputs: ["click"] }] }); }
5864
5879
  }
5865
5880
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DBNavigationItem, decorators: [{
@@ -5878,9 +5893,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
5878
5893
  [attr.data-wrap]="getBooleanAsString(wrap())"
5879
5894
  [attr.aria-disabled]="getBooleanAsString(disabled())"
5880
5895
  >
5881
- @if(!hasSubNavigation()){ @if(text()){{{text()}}}@else{
5882
- <ng-content *ngTemplateOutlet="dbNavigationContent"></ng-content>
5883
- } } @if(hasSubNavigation()){
5896
+ @if(!getBoolean(hideSubNavigation(), 'hideSubNavigation') &&
5897
+ hasSubNavigation()){
5884
5898
  <button
5885
5899
  class="db-navigation-item-expand-button"
5886
5900
  [attr.id]="subNavigationToggleId()"
@@ -5913,12 +5927,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
5913
5927
  }
5914
5928
  <ng-content select="[sub-navigation]"> </ng-content
5915
5929
  ></menu>
5916
- }
5930
+ }@else{ @if(text()){{{text()}}}@else{
5931
+ <ng-content *ngTemplateOutlet="dbNavigationContent"></ng-content>
5932
+ } }
5917
5933
  </li> `, styles: [":host{display:contents}\n"] }]
5918
5934
  }], ctorParameters: () => [], propDecorators: { dbNavigationContent: [{
5919
5935
  type: ContentChild,
5920
5936
  args: [NavigationContentDirective, { read: TemplateRef }]
5921
- }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], subNavigationExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "subNavigationExpanded", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], backButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonId", required: false }] }], backButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonText", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
5937
+ }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], subNavigationExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "subNavigationExpanded", required: false }] }], propOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "propOverrides", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hideSubNavigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideSubNavigation", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], backButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonId", required: false }] }], backButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonText", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], _ref: [{ type: i0.ViewChild, args: ["_ref", { isSignal: true }] }] } });
5922
5938
 
5923
5939
  const defaultProps$c = {};
5924
5940
  class DBNotification {