@siemens/element-ng 48.7.0 → 48.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.
Files changed (49) hide show
  1. package/date-range-filter/index.d.ts +2 -2
  2. package/fesm2022/siemens-element-ng-avatar.mjs +2 -2
  3. package/fesm2022/siemens-element-ng-avatar.mjs.map +1 -1
  4. package/fesm2022/siemens-element-ng-common.mjs +2 -2
  5. package/fesm2022/siemens-element-ng-common.mjs.map +1 -1
  6. package/fesm2022/siemens-element-ng-date-range-filter.mjs +13 -9
  7. package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -1
  8. package/fesm2022/siemens-element-ng-datepicker.mjs +3 -0
  9. package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -1
  10. package/fesm2022/siemens-element-ng-formly.mjs +4 -2
  11. package/fesm2022/siemens-element-ng-formly.mjs.map +1 -1
  12. package/fesm2022/siemens-element-ng-header-dropdown.mjs +4 -3
  13. package/fesm2022/siemens-element-ng-header-dropdown.mjs.map +1 -1
  14. package/fesm2022/siemens-element-ng-icon.mjs +19 -5
  15. package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
  16. package/fesm2022/siemens-element-ng-list-details.mjs +5 -3
  17. package/fesm2022/siemens-element-ng-list-details.mjs.map +1 -1
  18. package/fesm2022/siemens-element-ng-main-detail-container.mjs +11 -2
  19. package/fesm2022/siemens-element-ng-main-detail-container.mjs.map +1 -1
  20. package/fesm2022/siemens-element-ng-navbar-vertical.mjs +2 -2
  21. package/fesm2022/siemens-element-ng-navbar-vertical.mjs.map +1 -1
  22. package/fesm2022/siemens-element-ng-navbar.mjs +6 -3
  23. package/fesm2022/siemens-element-ng-navbar.mjs.map +1 -1
  24. package/fesm2022/siemens-element-ng-notification-item.mjs +11 -2
  25. package/fesm2022/siemens-element-ng-notification-item.mjs.map +1 -1
  26. package/fesm2022/siemens-element-ng-password-toggle.mjs +2 -2
  27. package/fesm2022/siemens-element-ng-password-toggle.mjs.map +1 -1
  28. package/fesm2022/siemens-element-ng-side-panel.mjs +121 -16
  29. package/fesm2022/siemens-element-ng-side-panel.mjs.map +1 -1
  30. package/fesm2022/siemens-element-ng-status-toggle.mjs +1 -1
  31. package/fesm2022/siemens-element-ng-status-toggle.mjs.map +1 -1
  32. package/fesm2022/siemens-element-ng-tabs.mjs +6 -4
  33. package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -1
  34. package/fesm2022/siemens-element-ng-threshold.mjs +4 -4
  35. package/fesm2022/siemens-element-ng-threshold.mjs.map +1 -1
  36. package/fesm2022/siemens-element-ng-tour.mjs.map +1 -1
  37. package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
  38. package/header-dropdown/index.d.ts +1 -0
  39. package/icon/index.d.ts +11 -1
  40. package/list-details/index.d.ts +1 -0
  41. package/main-detail-container/index.d.ts +1 -0
  42. package/navbar/index.d.ts +1 -0
  43. package/notification-item/index.d.ts +1 -0
  44. package/package.json +15 -15
  45. package/side-panel/index.d.ts +102 -9
  46. package/tabs/index.d.ts +1 -0
  47. package/template-i18n.json +2 -0
  48. package/threshold/index.d.ts +1 -1
  49. package/translate/index.d.ts +2 -0
@@ -263,7 +263,7 @@ declare class SiDateRangeFilterComponent implements OnChanges {
263
263
  readonly datepickerConfig: _angular_core.InputSignal<DatepickerInputConfig | undefined>;
264
264
  protected readonly icons: Record<"elementDown2", string>;
265
265
  protected advancedMode: boolean;
266
- protected dateRange: DateRange;
266
+ protected readonly dateRange: _angular_core.WritableSignal<DateRange>;
267
267
  protected point1Now: boolean;
268
268
  protected point2Mode: 'duration' | 'date';
269
269
  protected point1date: Date;
@@ -287,7 +287,7 @@ declare class SiDateRangeFilterComponent implements OnChanges {
287
287
  protected updateDateRange(range?: DateRangeFilter): void;
288
288
  protected updateOnModeChange(): void;
289
289
  private updateSimpleMode;
290
- protected updateFromDateRange(): void;
290
+ protected updateFromDateRange(dateRange?: DateRange): void;
291
291
  protected point1Changed(): void;
292
292
  protected point2Changed(): void;
293
293
  protected selectPresetItem(event: Event, item: DateRangePreset): void;
@@ -152,7 +152,7 @@ class SiAvatarComponent {
152
152
  });
153
153
  }
154
154
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
155
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: SiAvatarComponent, isStandalone: true, selector: "si-avatar", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, imageUrl: { classPropertyName: "imageUrl", publicName: "imageUrl", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, altText: { classPropertyName: "altText", publicName: "altText", isSignal: true, isRequired: true, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, statusAriaLabel: { classPropertyName: "statusAriaLabel", publicName: "statusAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "size()" } }, hostDirectives: [{ directive: SiAvatarBackgroundColorDirective, inputs: ["color", "color", "autoColor", "autoColor"] }], ngImport: i0, template: "@if (imageUrl()) {\n <img [src]=\"imageUrl()\" [alt]=\"altText()\" />\n} @else if (icon()) {\n <i class=\"icon\" [title]=\"altText()\" [ngClass]=\"icon()\"></i>\n} @else {\n <div\n class=\"initials\"\n [class.text-body]=\"color() === 0\"\n [title]=\"altText()\"\n [attr.aria-label]=\"altText()\"\n >{{ displayInitials() }}</div\n >\n}\n@let iconConfig = statusIcon();\n@if (iconConfig) {\n <span class=\"indicator-size indicator icon-stack\">\n <si-icon class=\"drop-shadow\" [ngClass]=\"iconConfig.color\" [icon]=\"iconConfig.icon\" />\n <si-icon [ngClass]=\"iconConfig.stackedColor\" [icon]=\"iconConfig.stacked\" />\n </span>\n}\n", styles: [":host{--avatar-size: 40px;--indicator-size: 24px;--background: var(--element-base-0);--indicator-offset-x: -12px;--indicator-offset-y: -8px;flex:0 0 auto;display:inline-flex;vertical-align:middle;color:var(--element-text-inverse);position:relative;align-items:center;justify-content:center;inline-size:var(--avatar-size);block-size:var(--avatar-size);border-radius:50%;background:var(--background)}:host.tiny,:host.xsmall,:host.small{--initials-size: .875rem;--indicator-size: 16px;--indicator-offset-x: -8px;--indicator-offset-y: -4px}:host.tiny{--avatar-size: 24px}:host.xsmall{--avatar-size: 28px}:host.small{--avatar-size: 32px}:host.large{--avatar-size: 56px}:host.xlarge{--avatar-size: 80px}.initials{font-weight:600;font-size:var(--initials-size, 1.125rem);line-height:1}img{inline-size:var(--avatar-size);block-size:var(--avatar-size);border-radius:50%}.indicator{position:absolute;inset-block-start:var(--indicator-offset-y);inset-inline-end:var(--indicator-offset-x);font-size:var(--indicator-size)}.indicator .drop-shadow ::ng-deep svg{filter:drop-shadow(1px 0 0 var(--element-base-1)) drop-shadow(-1px 0 0 var(--element-base-1)) drop-shadow(0 1px 0 var(--element-base-1)) drop-shadow(0 -1px 0 var(--element-base-1))}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: SiIconComponent, selector: "si-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
155
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: SiAvatarComponent, isStandalone: true, selector: "si-avatar", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, imageUrl: { classPropertyName: "imageUrl", publicName: "imageUrl", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, altText: { classPropertyName: "altText", publicName: "altText", isSignal: true, isRequired: true, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, statusAriaLabel: { classPropertyName: "statusAriaLabel", publicName: "statusAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "size()" } }, hostDirectives: [{ directive: SiAvatarBackgroundColorDirective, inputs: ["color", "color", "autoColor", "autoColor"] }], ngImport: i0, template: "@if (imageUrl()) {\n <img [src]=\"imageUrl()\" [alt]=\"altText()\" />\n} @else if (icon()) {\n <si-icon class=\"icon\" [title]=\"altText()\" [icon]=\"icon()!\" />\n} @else {\n <div\n class=\"initials\"\n [class.text-body]=\"color() === 0\"\n [title]=\"altText()\"\n [attr.aria-label]=\"altText()\"\n >{{ displayInitials() }}</div\n >\n}\n@let iconConfig = statusIcon();\n@if (iconConfig) {\n <span class=\"indicator-size indicator icon-stack\">\n <si-icon class=\"drop-shadow\" [ngClass]=\"iconConfig.color\" [icon]=\"iconConfig.icon\" />\n <si-icon [ngClass]=\"iconConfig.stackedColor\" [icon]=\"iconConfig.stacked\" />\n </span>\n}\n", styles: [":host{--avatar-size: 40px;--indicator-size: 24px;--background: var(--element-base-0);--indicator-offset-x: -12px;--indicator-offset-y: -8px;flex:0 0 auto;display:inline-flex;vertical-align:middle;color:var(--element-text-inverse);position:relative;align-items:center;justify-content:center;inline-size:var(--avatar-size);block-size:var(--avatar-size);border-radius:50%;background:var(--background)}:host.tiny,:host.xsmall,:host.small{--initials-size: .875rem;--indicator-size: 16px;--indicator-offset-x: -8px;--indicator-offset-y: -4px}:host.tiny{--avatar-size: 24px}:host.xsmall{--avatar-size: 28px}:host.small{--avatar-size: 32px}:host.large{--avatar-size: 56px}:host.xlarge{--avatar-size: 80px}.initials{font-weight:600;font-size:var(--initials-size, 1.125rem);line-height:1}img{inline-size:var(--avatar-size);block-size:var(--avatar-size);border-radius:50%}.indicator{position:absolute;inset-block-start:var(--indicator-offset-y);inset-inline-end:var(--indicator-offset-x);font-size:var(--indicator-size)}.indicator .drop-shadow ::ng-deep svg{filter:drop-shadow(1px 0 0 var(--element-base-1)) drop-shadow(-1px 0 0 var(--element-base-1)) drop-shadow(0 1px 0 var(--element-base-1)) drop-shadow(0 -1px 0 var(--element-base-1))}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: SiIconComponent, selector: "si-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
156
156
  }
157
157
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiAvatarComponent, decorators: [{
158
158
  type: Component,
@@ -163,7 +163,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
163
163
  directive: SiAvatarBackgroundColorDirective,
164
164
  inputs: ['color', 'autoColor']
165
165
  }
166
- ], template: "@if (imageUrl()) {\n <img [src]=\"imageUrl()\" [alt]=\"altText()\" />\n} @else if (icon()) {\n <i class=\"icon\" [title]=\"altText()\" [ngClass]=\"icon()\"></i>\n} @else {\n <div\n class=\"initials\"\n [class.text-body]=\"color() === 0\"\n [title]=\"altText()\"\n [attr.aria-label]=\"altText()\"\n >{{ displayInitials() }}</div\n >\n}\n@let iconConfig = statusIcon();\n@if (iconConfig) {\n <span class=\"indicator-size indicator icon-stack\">\n <si-icon class=\"drop-shadow\" [ngClass]=\"iconConfig.color\" [icon]=\"iconConfig.icon\" />\n <si-icon [ngClass]=\"iconConfig.stackedColor\" [icon]=\"iconConfig.stacked\" />\n </span>\n}\n", styles: [":host{--avatar-size: 40px;--indicator-size: 24px;--background: var(--element-base-0);--indicator-offset-x: -12px;--indicator-offset-y: -8px;flex:0 0 auto;display:inline-flex;vertical-align:middle;color:var(--element-text-inverse);position:relative;align-items:center;justify-content:center;inline-size:var(--avatar-size);block-size:var(--avatar-size);border-radius:50%;background:var(--background)}:host.tiny,:host.xsmall,:host.small{--initials-size: .875rem;--indicator-size: 16px;--indicator-offset-x: -8px;--indicator-offset-y: -4px}:host.tiny{--avatar-size: 24px}:host.xsmall{--avatar-size: 28px}:host.small{--avatar-size: 32px}:host.large{--avatar-size: 56px}:host.xlarge{--avatar-size: 80px}.initials{font-weight:600;font-size:var(--initials-size, 1.125rem);line-height:1}img{inline-size:var(--avatar-size);block-size:var(--avatar-size);border-radius:50%}.indicator{position:absolute;inset-block-start:var(--indicator-offset-y);inset-inline-end:var(--indicator-offset-x);font-size:var(--indicator-size)}.indicator .drop-shadow ::ng-deep svg{filter:drop-shadow(1px 0 0 var(--element-base-1)) drop-shadow(-1px 0 0 var(--element-base-1)) drop-shadow(0 1px 0 var(--element-base-1)) drop-shadow(0 -1px 0 var(--element-base-1))}\n"] }]
166
+ ], template: "@if (imageUrl()) {\n <img [src]=\"imageUrl()\" [alt]=\"altText()\" />\n} @else if (icon()) {\n <si-icon class=\"icon\" [title]=\"altText()\" [icon]=\"icon()!\" />\n} @else {\n <div\n class=\"initials\"\n [class.text-body]=\"color() === 0\"\n [title]=\"altText()\"\n [attr.aria-label]=\"altText()\"\n >{{ displayInitials() }}</div\n >\n}\n@let iconConfig = statusIcon();\n@if (iconConfig) {\n <span class=\"indicator-size indicator icon-stack\">\n <si-icon class=\"drop-shadow\" [ngClass]=\"iconConfig.color\" [icon]=\"iconConfig.icon\" />\n <si-icon [ngClass]=\"iconConfig.stackedColor\" [icon]=\"iconConfig.stacked\" />\n </span>\n}\n", styles: [":host{--avatar-size: 40px;--indicator-size: 24px;--background: var(--element-base-0);--indicator-offset-x: -12px;--indicator-offset-y: -8px;flex:0 0 auto;display:inline-flex;vertical-align:middle;color:var(--element-text-inverse);position:relative;align-items:center;justify-content:center;inline-size:var(--avatar-size);block-size:var(--avatar-size);border-radius:50%;background:var(--background)}:host.tiny,:host.xsmall,:host.small{--initials-size: .875rem;--indicator-size: 16px;--indicator-offset-x: -8px;--indicator-offset-y: -4px}:host.tiny{--avatar-size: 24px}:host.xsmall{--avatar-size: 28px}:host.small{--avatar-size: 32px}:host.large{--avatar-size: 56px}:host.xlarge{--avatar-size: 80px}.initials{font-weight:600;font-size:var(--initials-size, 1.125rem);line-height:1}img{inline-size:var(--avatar-size);block-size:var(--avatar-size);border-radius:50%}.indicator{position:absolute;inset-block-start:var(--indicator-offset-y);inset-inline-end:var(--indicator-offset-x);font-size:var(--indicator-size)}.indicator .drop-shadow ::ng-deep svg{filter:drop-shadow(1px 0 0 var(--element-base-1)) drop-shadow(-1px 0 0 var(--element-base-1)) drop-shadow(0 1px 0 var(--element-base-1)) drop-shadow(0 -1px 0 var(--element-base-1))}\n"] }]
167
167
  }], ctorParameters: () => [] });
168
168
 
169
169
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"siemens-element-ng-avatar.mjs","sources":["../../../../projects/element-ng/avatar/si-avatar-background-color.directive.ts","../../../../projects/element-ng/avatar/si-avatar.component.ts","../../../../projects/element-ng/avatar/si-avatar.component.html","../../../../projects/element-ng/avatar/index.ts","../../../../projects/element-ng/avatar/siemens-element-ng-avatar.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport {\n booleanAttribute,\n Directive,\n input,\n numberAttribute,\n OnChanges,\n signal,\n SimpleChanges\n} from '@angular/core';\n\nconst DATA_COLORS_MAX = 17;\nconst DATA_COLOR_NEUTRAL = 17;\nconst ASCII_CODE_INDEX_A = 64;\n\n/**\n * The directive provide a CSS variable --background with a color based on the initials or alt text.\n */\n@Directive({\n selector: '[siAvatarBackgroundColor]',\n host: {\n '[style.--background]': 'backgroundStyle()'\n }\n})\nexport class SiAvatarBackgroundColorDirective implements OnChanges {\n /**\n * The desired color index from $element-data-* color tokens. This can be set to any kind of\n * positive integer that is then mapped to a color index.\n * A better way to set a pseudo-random color is to set {@link autoColor} to `true`.\n *\n * @defaultValue undefined\n */\n readonly color = input<number | undefined, unknown>(undefined, { transform: numberAttribute });\n\n /**\n * Automatically calculates the background color.\n * If set, {@link color} will be ignored.\n *\n * @defaultValue false\n */\n readonly autoColor = input(false, { transform: booleanAttribute });\n\n protected readonly backgroundStyle = signal<string | undefined>('var(--element-data-17)');\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.color) {\n this.setColor(this.color());\n }\n }\n\n /**\n * Update background color variable based on the initials or placeholder text.\n */\n public calculateColorFromInitials(displayInitials?: string): void {\n if (!this.autoColor() || !displayInitials) {\n return;\n }\n\n let color = 0;\n for (let i = 0; i < displayInitials.length; i++) {\n color *= 17; // this prevents 'JD' to have the same color as 'DJ'\n color += displayInitials.charCodeAt(i) - ASCII_CODE_INDEX_A;\n }\n this.setColor(color);\n }\n\n private setColor(color?: number): void {\n if (this.color() === 0) {\n this.backgroundStyle.set(undefined);\n } else {\n const actualColor = color ?? DATA_COLOR_NEUTRAL;\n const colorIndex = ((actualColor - 1) % DATA_COLORS_MAX) + 1;\n this.backgroundStyle.set(`var(--element-data-${colorIndex})`);\n }\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n numberAttribute\n} from '@angular/core';\nimport { EntityStatusType } from '@siemens/element-ng/common';\nimport { SiIconComponent, STATUS_ICON_CONFIG } from '@siemens/element-ng/icon';\nimport { TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiAvatarBackgroundColorDirective } from './si-avatar-background-color.directive';\n\nexport type AvatarSize = 'tiny' | 'xsmall' | 'small' | 'regular' | 'large' | 'xlarge';\n\n@Component({\n selector: 'si-avatar',\n imports: [NgClass, SiIconComponent],\n templateUrl: './si-avatar.component.html',\n styleUrl: './si-avatar.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'size()'\n },\n hostDirectives: [\n {\n directive: SiAvatarBackgroundColorDirective,\n inputs: ['color', 'autoColor']\n }\n ]\n})\nexport class SiAvatarComponent {\n private readonly statusIcons = inject(STATUS_ICON_CONFIG);\n /**\n * Size of the component.\n *\n * @defaultValue 'regular'\n */\n readonly size = input<AvatarSize>('regular');\n /** Image src URL when using an image. */\n readonly imageUrl = input<string>();\n /** Icon name when using an icon. */\n readonly icon = input<string>();\n /**\n * Initials to be displayed as default avatar if no `icon` or `imageUrl` are provided.\n * If also no initials are provided, they will be automatically calculated from the `altText`.\n * The value will be used to calculate the background color when `autoColor` is true.\n */\n readonly initials = input<string>();\n /**\n * The desired color index from $element-data-* color tokens. This can be set to any kind of\n * positive integer that is then mapped to a color index.\n * A better way to set a pseudo-random color is to set * {@link autoColor} to `true`.\n *\n * @defaultValue undefined\n */\n readonly color = input<number | undefined, unknown>(undefined, { transform: numberAttribute });\n /** The `alt` text for image, `title` for other modes. */\n readonly altText = input.required<string>();\n /**\n * The status (success, info, warning, caution, danger, critical, pending, progress) to be\n * visualized.\n */\n readonly status = input<EntityStatusType>();\n /**\n * aria-label for status\n */\n readonly statusAriaLabel = input<TranslatableString>();\n\n protected readonly statusIcon = computed(() => {\n const status = this.status();\n return status ? this.statusIcons[status] : undefined;\n });\n\n protected readonly displayInitials = computed(() => {\n const initials = this.initials();\n if (initials) {\n return initials;\n }\n\n const name = this.altText()\n .replaceAll(/\\([^)]*\\)/g, '')\n .trim();\n const byComma = name.split(/,\\s*/);\n let first: string;\n let last: string;\n if (byComma.length > 1) {\n last = byComma[0];\n first = byComma[1];\n } else {\n const parts = name.split(' ');\n first = parts.shift() ?? '';\n last = parts.pop() ?? '';\n }\n if (first) {\n first = first[0].toLocaleUpperCase();\n }\n if (last) {\n last = last[0].toLocaleUpperCase();\n }\n return first + last;\n });\n\n private readonly autoBackgroundColorDirective = inject(SiAvatarBackgroundColorDirective);\n\n constructor() {\n effect(() => {\n this.autoBackgroundColorDirective.calculateColorFromInitials(this.displayInitials());\n });\n }\n}\n","@if (imageUrl()) {\n <img [src]=\"imageUrl()\" [alt]=\"altText()\" />\n} @else if (icon()) {\n <i class=\"icon\" [title]=\"altText()\" [ngClass]=\"icon()\"></i>\n} @else {\n <div\n class=\"initials\"\n [class.text-body]=\"color() === 0\"\n [title]=\"altText()\"\n [attr.aria-label]=\"altText()\"\n >{{ displayInitials() }}</div\n >\n}\n@let iconConfig = statusIcon();\n@if (iconConfig) {\n <span class=\"indicator-size indicator icon-stack\">\n <si-icon class=\"drop-shadow\" [ngClass]=\"iconConfig.color\" [icon]=\"iconConfig.icon\" />\n <si-icon [ngClass]=\"iconConfig.stackedColor\" [icon]=\"iconConfig.stacked\" />\n </span>\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-avatar-background-color.directive';\nexport * from './si-avatar.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.SiAvatarBackgroundColorDirective"],"mappings":";;;;;AAAA;;;AAGG;AAWH,MAAM,eAAe,GAAG,EAAE;AAC1B,MAAM,kBAAkB,GAAG,EAAE;AAC7B,MAAM,kBAAkB,GAAG,EAAE;AAE7B;;AAEG;MAOU,gCAAgC,CAAA;AAC3C;;;;;;AAMG;IACM,KAAK,GAAG,KAAK,CAA8B,SAAS,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;AAE9F;;;;;AAKG;IACM,SAAS,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;AAE/C,IAAA,eAAe,GAAG,MAAM,CAAqB,wBAAwB,CAAC;AAEzF,IAAA,WAAW,CAAC,OAAsB,EAAA;AAChC,QAAA,IAAI,OAAO,CAAC,KAAK,EAAE;YACjB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;;;AAI/B;;AAEG;AACI,IAAA,0BAA0B,CAAC,eAAwB,EAAA;QACx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OAAA,EAAA,QAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAA,gCAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,WAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECtC9B,spBAoBA,EAAA,MAAA,EAAA,CAAA,gtCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDIY,OAAO,oFAAE,eAAe,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAcvB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAhB7B,SAAS;+BACE,WAAW,EAAA,OAAA,EACZ,CAAC,OAAO,EAAE,eAAe,CAAC,EAAA,eAAA,EAGlB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,SAAS,EAAE;qBACZ,EAAA,cAAA,EACe;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,gCAAgC;AAC3C,4BAAA,MAAM,EAAE,CAAC,OAAO,EAAE,WAAW;AAC9B;AACF,qBAAA,EAAA,QAAA,EAAA,spBAAA,EAAA,MAAA,EAAA,CAAA,gtCAAA,CAAA,EAAA;;;AEpCH;;;AAGG;;ACHH;;AAEG;;;;"}
1
+ {"version":3,"file":"siemens-element-ng-avatar.mjs","sources":["../../../../projects/element-ng/avatar/si-avatar-background-color.directive.ts","../../../../projects/element-ng/avatar/si-avatar.component.ts","../../../../projects/element-ng/avatar/si-avatar.component.html","../../../../projects/element-ng/avatar/index.ts","../../../../projects/element-ng/avatar/siemens-element-ng-avatar.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport {\n booleanAttribute,\n Directive,\n input,\n numberAttribute,\n OnChanges,\n signal,\n SimpleChanges\n} from '@angular/core';\n\nconst DATA_COLORS_MAX = 17;\nconst DATA_COLOR_NEUTRAL = 17;\nconst ASCII_CODE_INDEX_A = 64;\n\n/**\n * The directive provide a CSS variable --background with a color based on the initials or alt text.\n */\n@Directive({\n selector: '[siAvatarBackgroundColor]',\n host: {\n '[style.--background]': 'backgroundStyle()'\n }\n})\nexport class SiAvatarBackgroundColorDirective implements OnChanges {\n /**\n * The desired color index from $element-data-* color tokens. This can be set to any kind of\n * positive integer that is then mapped to a color index.\n * A better way to set a pseudo-random color is to set {@link autoColor} to `true`.\n *\n * @defaultValue undefined\n */\n readonly color = input<number | undefined, unknown>(undefined, { transform: numberAttribute });\n\n /**\n * Automatically calculates the background color.\n * If set, {@link color} will be ignored.\n *\n * @defaultValue false\n */\n readonly autoColor = input(false, { transform: booleanAttribute });\n\n protected readonly backgroundStyle = signal<string | undefined>('var(--element-data-17)');\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.color) {\n this.setColor(this.color());\n }\n }\n\n /**\n * Update background color variable based on the initials or placeholder text.\n */\n public calculateColorFromInitials(displayInitials?: string): void {\n if (!this.autoColor() || !displayInitials) {\n return;\n }\n\n let color = 0;\n for (let i = 0; i < displayInitials.length; i++) {\n color *= 17; // this prevents 'JD' to have the same color as 'DJ'\n color += displayInitials.charCodeAt(i) - ASCII_CODE_INDEX_A;\n }\n this.setColor(color);\n }\n\n private setColor(color?: number): void {\n if (this.color() === 0) {\n this.backgroundStyle.set(undefined);\n } else {\n const actualColor = color ?? DATA_COLOR_NEUTRAL;\n const colorIndex = ((actualColor - 1) % DATA_COLORS_MAX) + 1;\n this.backgroundStyle.set(`var(--element-data-${colorIndex})`);\n }\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n numberAttribute\n} from '@angular/core';\nimport { EntityStatusType } from '@siemens/element-ng/common';\nimport { SiIconComponent, STATUS_ICON_CONFIG } from '@siemens/element-ng/icon';\nimport { TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiAvatarBackgroundColorDirective } from './si-avatar-background-color.directive';\n\nexport type AvatarSize = 'tiny' | 'xsmall' | 'small' | 'regular' | 'large' | 'xlarge';\n\n@Component({\n selector: 'si-avatar',\n imports: [NgClass, SiIconComponent],\n templateUrl: './si-avatar.component.html',\n styleUrl: './si-avatar.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'size()'\n },\n hostDirectives: [\n {\n directive: SiAvatarBackgroundColorDirective,\n inputs: ['color', 'autoColor']\n }\n ]\n})\nexport class SiAvatarComponent {\n private readonly statusIcons = inject(STATUS_ICON_CONFIG);\n /**\n * Size of the component.\n *\n * @defaultValue 'regular'\n */\n readonly size = input<AvatarSize>('regular');\n /** Image src URL when using an image. */\n readonly imageUrl = input<string>();\n /** Icon name when using an icon. */\n readonly icon = input<string>();\n /**\n * Initials to be displayed as default avatar if no `icon` or `imageUrl` are provided.\n * If also no initials are provided, they will be automatically calculated from the `altText`.\n * The value will be used to calculate the background color when `autoColor` is true.\n */\n readonly initials = input<string>();\n /**\n * The desired color index from $element-data-* color tokens. This can be set to any kind of\n * positive integer that is then mapped to a color index.\n * A better way to set a pseudo-random color is to set * {@link autoColor} to `true`.\n *\n * @defaultValue undefined\n */\n readonly color = input<number | undefined, unknown>(undefined, { transform: numberAttribute });\n /** The `alt` text for image, `title` for other modes. */\n readonly altText = input.required<string>();\n /**\n * The status (success, info, warning, caution, danger, critical, pending, progress) to be\n * visualized.\n */\n readonly status = input<EntityStatusType>();\n /**\n * aria-label for status\n */\n readonly statusAriaLabel = input<TranslatableString>();\n\n protected readonly statusIcon = computed(() => {\n const status = this.status();\n return status ? this.statusIcons[status] : undefined;\n });\n\n protected readonly displayInitials = computed(() => {\n const initials = this.initials();\n if (initials) {\n return initials;\n }\n\n const name = this.altText()\n .replaceAll(/\\([^)]*\\)/g, '')\n .trim();\n const byComma = name.split(/,\\s*/);\n let first: string;\n let last: string;\n if (byComma.length > 1) {\n last = byComma[0];\n first = byComma[1];\n } else {\n const parts = name.split(' ');\n first = parts.shift() ?? '';\n last = parts.pop() ?? '';\n }\n if (first) {\n first = first[0].toLocaleUpperCase();\n }\n if (last) {\n last = last[0].toLocaleUpperCase();\n }\n return first + last;\n });\n\n private readonly autoBackgroundColorDirective = inject(SiAvatarBackgroundColorDirective);\n\n constructor() {\n effect(() => {\n this.autoBackgroundColorDirective.calculateColorFromInitials(this.displayInitials());\n });\n }\n}\n","@if (imageUrl()) {\n <img [src]=\"imageUrl()\" [alt]=\"altText()\" />\n} @else if (icon()) {\n <si-icon class=\"icon\" [title]=\"altText()\" [icon]=\"icon()!\" />\n} @else {\n <div\n class=\"initials\"\n [class.text-body]=\"color() === 0\"\n [title]=\"altText()\"\n [attr.aria-label]=\"altText()\"\n >{{ displayInitials() }}</div\n >\n}\n@let iconConfig = statusIcon();\n@if (iconConfig) {\n <span class=\"indicator-size indicator icon-stack\">\n <si-icon class=\"drop-shadow\" [ngClass]=\"iconConfig.color\" [icon]=\"iconConfig.icon\" />\n <si-icon [ngClass]=\"iconConfig.stackedColor\" [icon]=\"iconConfig.stacked\" />\n </span>\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-avatar-background-color.directive';\nexport * from './si-avatar.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.SiAvatarBackgroundColorDirective"],"mappings":";;;;;AAAA;;;AAGG;AAWH,MAAM,eAAe,GAAG,EAAE;AAC1B,MAAM,kBAAkB,GAAG,EAAE;AAC7B,MAAM,kBAAkB,GAAG,EAAE;AAE7B;;AAEG;MAOU,gCAAgC,CAAA;AAC3C;;;;;;AAMG;IACM,KAAK,GAAG,KAAK,CAA8B,SAAS,EAAE,EAAE,SAAS,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AA,CAAA,gtCAAA,CAAA,EAAA;;;AEpCH;;;AAGG;;ACHH;;AAEG;;;;"}
@@ -97,10 +97,10 @@ class SiUIStateService {
97
97
  * This can be used to migrate state objects.
98
98
  */
99
99
  save(stateId, state, version = 0) {
100
- return (this.storage.save(stateId, JSON.stringify({
100
+ return Promise.resolve(this.storage.save(stateId, JSON.stringify({
101
101
  version,
102
102
  state
103
- })) ?? Promise.resolve());
103
+ })));
104
104
  }
105
105
  /**
106
106
  * Loads and returns the state for the given stateId and version.
@@ -1 +1 @@
1
- {"version":3,"file":"siemens-element-ng-common.mjs","sources":["../../../../projects/element-ng/common/services/blink.service.ts","../../../../projects/element-ng/common/services/si-uistate.service.ts","../../../../projects/element-ng/common/services/text-measure.service.ts","../../../../projects/element-ng/common/services/scrollbar-helper.service.ts","../../../../projects/element-ng/common/services/index.ts","../../../../projects/element-ng/common/models/status-type.model.ts","../../../../projects/element-ng/common/models/positions.model.ts","../../../../projects/element-ng/common/models/index.ts","../../../../projects/element-ng/common/helpers/animation.helpers.ts","../../../../projects/element-ng/common/helpers/rtl.ts","../../../../projects/element-ng/common/helpers/positioning.helpers.ts","../../../../projects/element-ng/common/helpers/track-by.helper.ts","../../../../projects/element-ng/common/helpers/global-events.helpers.ts","../../../../projects/element-ng/common/helpers/overlay-helper.ts","../../../../projects/element-ng/common/helpers/index.ts","../../../../projects/element-ng/common/decorators/webcomponent.decorator.ts","../../../../projects/element-ng/common/decorators/index.ts","../../../../projects/element-ng/common/index.ts","../../../../projects/element-ng/common/siemens-element-ng-common.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject, timer } from 'rxjs';\nimport {\n distinctUntilChanged,\n endWith,\n filter,\n map,\n repeat,\n share,\n takeUntil\n} from 'rxjs/operators';\n\n/**\n * A global blink pulse generator for synchronized blinking patterns across an entire application.\n * Use to trigger any blinking by subscribing to `pulse$`.\n */\n@Injectable({ providedIn: 'root' })\nexport class BlinkService {\n private pause$ = new BehaviorSubject<boolean>(false);\n\n private off$ = this.pause$.pipe(filter(v => v));\n private on$ = this.pause$.pipe(filter(v => !v));\n\n /**\n * Blink pulse. Subscribe to it to toggle `on` CSS class when true, `off` CSS class when `false`.\n * Do animations using CSS transitions\n *\n * @defaultValue\n * ```\n * timer(0, 1400).pipe(\n * map(count => count % 2 === 0),\n * distinctUntilChanged(),\n * takeUntil(this.off$),\n * endWith(false),\n * repeat({ delay: () => this.on$ }),\n * share()\n * )\n * ```\n */\n public readonly pulse$ = timer(0, 1400).pipe(\n map(count => count % 2 === 0),\n distinctUntilChanged(),\n takeUntil(this.off$),\n endWith(false),\n repeat({ delay: () => this.on$ }),\n share()\n );\n\n /**\n * Pause the blinking.\n */\n pause(): void {\n this.pause$.next(true);\n }\n\n /**\n * Resume the blinking.\n */\n resume(): void {\n this.pause$.next(false);\n }\n\n /**\n * Whether the blinking is paused or not.\n */\n isPaused(): boolean {\n return this.pause$.value;\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { isPlatformBrowser } from '@angular/common';\nimport { inject, Injectable, InjectionToken, PLATFORM_ID, Provider, Type } from '@angular/core';\n\nconst SI_UI_STATE_STORAGE = new InjectionToken<UIStateStorage>('si.ui-state.storage', {\n providedIn: 'root',\n factory: () => {\n if (isPlatformBrowser(inject(PLATFORM_ID))) {\n return new LocalStorageUIStateStorage();\n }\n return { save: () => {}, load: () => null };\n }\n});\n\n/**\n * Interface that defines a UIStateStore.\n * It must be provided via {@link provideSiUiState}.\n */\nexport interface UIStateStorage {\n /**\n * Saves data under a specific stateId.\n * Already existing data for that stateId should be overridden.\n * Asynchronous implementations must return a {@link Promise} and resolve it once saving was completed.\n *\n * Errors should be handled by the implementation.\n * The `SiUIStateService` does not handle errors.\n */\n save(stateId: string, data: string): void | Promise<void>;\n\n /**\n * Loads data for a specific stateId.\n * Can be asynchronous.\n *\n * Errors should be handled by the implementation.\n * The `SiUIStateService` does not handle errors.\n *\n * @returns The data or undefined if the data does not exist.\n * Asynchronous implementations must return a {@link Promise} containing the data.\n */\n load(stateId: string): string | undefined | null | Promise<string | undefined | null>;\n}\n\nclass LocalStorageUIStateStorage implements UIStateStorage {\n save(stateId: string, data: string): void {\n localStorage.setItem(`si.ui-state.${stateId}`, data);\n }\n\n load(stateId: string): string | null {\n return localStorage.getItem(`si.ui-state.${stateId}`);\n }\n}\n\n/** @internal */\nexport const SI_UI_STATE_SERVICE = new InjectionToken<SiUIStateService>('si.ui-state.service');\n\n/**\n * Service to save and load UI states.\n * @internal\n */\n@Injectable()\nclass SiUIStateService {\n private storage = inject(SI_UI_STATE_STORAGE);\n\n /**\n * Saves the provided state in the storage.\n * @param stateId - The unique id or key under which the state shall be saved.\n * @param state - The state to be saved.\n * @param version - The version of the state object.\n * This can be used to migrate state objects.\n */\n save<TState>(stateId: string, state: TState, version = 0): Promise<void> {\n return (\n this.storage.save(\n stateId,\n JSON.stringify({\n version,\n state\n })\n ) ?? Promise.resolve()\n );\n }\n\n /**\n * Loads and returns the state for the given stateId and version.\n * @param stateId - The unique id or key for which the state shall be loaded.\n * @param version - The version of the state object.\n * This can be used to migrate state objects.\n * @returns A Promise containing the state or undefined if the state does not exist or the version did not match.\n */\n load<TState = unknown>(stateId: string, version = 0): PromiseLike<TState | undefined> {\n // DO NOT ADD async keyword.\n // This method should stay synchronous if the storage is synchronous.\n // Otherwise, the navbar will play expand animations on load.\n const dataOrPromise = this.storage.load(stateId);\n if (dataOrPromise instanceof Promise) {\n return dataOrPromise.then(data => this.readData(data, version));\n } else {\n const promiseLike = {\n then: onfulfilled => {\n const data = this.readData<TState>(dataOrPromise, version);\n if (onfulfilled) {\n return onfulfilled(data);\n } else {\n return promiseLike;\n }\n }\n } as PromiseLike<TState | undefined>;\n\n return promiseLike;\n }\n }\n\n private readData<TState = unknown>(\n data: string | null | undefined,\n version: number\n ): TState | undefined {\n if (data) {\n const parsed = JSON.parse(data);\n if (parsed.version === version) {\n return parsed.state;\n }\n }\n\n return undefined;\n }\n}\n\nexport type { SiUIStateService };\n\n/** Enables the automatic storage of UI state for enabled components. */\nexport const provideSiUiState = (config?: { store?: Type<UIStateStorage> }): Provider[] => {\n return [\n { provide: SI_UI_STATE_SERVICE, useClass: SiUIStateService },\n config?.store ? { provide: SI_UI_STATE_STORAGE, useClass: config.store } : []\n ];\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { inject, Injectable, DOCUMENT } from '@angular/core';\n\nexport interface FontStyleOverride {\n fontStyle?: string;\n fontVariant?: string;\n fontWeight?: string;\n fontSize?: string;\n fontFamily?: string;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class TextMeasureService {\n private measureCanvas?: CanvasRenderingContext2D;\n private defaultFont?: string;\n private document = inject(DOCUMENT);\n /** Measure text width in pixel. */\n measureText(text: string, fontRef?: HTMLElement | string, overrides?: FontStyleOverride): number {\n this.ensureCanvas();\n this.setFontStyle(fontRef, overrides);\n return Math.ceil(this.measureCanvas!.measureText(text).width);\n }\n /** Get font styles for `font` CSS short-hand property. */\n getFontStyle(element: HTMLElement, overrides?: FontStyleOverride): string {\n const style = getComputedStyle(element);\n // note: can't use destructuring on `style` as it doesn't work on Firefox\n const fontStyle = overrides?.fontStyle ?? style.fontStyle;\n const fontVariant = overrides?.fontVariant ?? style.fontVariant;\n const fontWeight = overrides?.fontWeight ?? style.fontWeight;\n const fontSize = overrides?.fontSize ?? style.fontSize;\n const fontFamily = overrides?.fontFamily ?? style.fontFamily;\n return `${fontStyle} ${fontVariant} ${fontWeight} ${fontSize} ${fontFamily}`\n .replace(/ +/g, ' ')\n .trim();\n }\n\n private ensureCanvas(): void {\n if (this.measureCanvas) {\n return;\n }\n const canvas = this.document.createElement('canvas') as HTMLCanvasElement;\n this.measureCanvas = canvas.getContext('2d') as CanvasRenderingContext2D;\n }\n\n private setFontStyle(fontRef?: HTMLElement | string, overrides?: FontStyleOverride): void {\n if (typeof fontRef === 'string') {\n this.measureCanvas!.font = fontRef;\n return;\n }\n if (fontRef || overrides) {\n this.measureCanvas!.font = this.getFontStyle(fontRef ?? this.document.body, overrides);\n return;\n }\n this.defaultFont ??= this.getFontStyle(this.document.body);\n this.measureCanvas!.font = this.defaultFont;\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { inject, Injectable, DOCUMENT } from '@angular/core';\n\n/**\n * Gets the width of the scrollbar. Nesc for windows\n * http://stackoverflow.com/a/13382873/888165\n */\n@Injectable({ providedIn: 'root' })\nexport class ScrollbarHelper {\n private document = inject(DOCUMENT);\n\n /**\n * The width of the scrollbar.\n *\n * @defaultValue this.getWidth()\n */\n readonly width: number = this.getWidth();\n\n private getWidth(): number {\n const outer = this.document.createElement('div');\n outer.style.visibility = 'hidden';\n outer.style.width = '100px';\n (outer.style as any).msOverflowStyle = 'scrollbar';\n this.document.body.appendChild(outer);\n\n const widthNoScroll = outer.offsetWidth;\n outer.style.overflow = 'scroll';\n\n const inner = this.document.createElement('div');\n inner.style.width = '100%';\n outer.appendChild(inner);\n\n const widthWithScroll = inner.offsetWidth;\n outer.parentNode?.removeChild(outer);\n\n return widthNoScroll - widthWithScroll;\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './blink.service';\nexport * from './si-uistate.service';\nexport * from './text-measure.service';\nexport * from './scrollbar-helper.service';\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { TranslatableString } from '@siemens/element-translate-ng/translate';\n\nexport type StatusType = 'success' | 'info' | 'warning' | 'danger' | 'caution' | 'critical';\nexport type ExtendedStatusType = StatusType | 'unknown';\nexport type EntityStatusType = ExtendedStatusType | 'pending' | 'progress';\nexport type AccentLineType = StatusType | 'caution' | 'primary' | 'inactive';\n\nexport interface StatusIcon {\n icon: string;\n color: string;\n stacked: string;\n stackedColor: string;\n background: string;\n severity: number; // for sorting\n ariaLabel?: TranslatableString;\n}\n\nexport const STATUS_ICON: { [key in EntityStatusType]: StatusIcon } = {\n success: {\n icon: 'element-circle-filled',\n color: 'status-success',\n stacked: 'element-state-tick smooth-auto',\n stackedColor: 'status-success-contrast',\n background: 'bg-base-success',\n severity: 5\n },\n info: {\n icon: 'element-square-filled',\n color: 'status-info',\n stacked: 'element-state-info smooth-auto',\n stackedColor: 'status-info-contrast',\n background: 'bg-base-info',\n severity: 4\n },\n caution: {\n icon: 'element-square-45-filled',\n color: 'status-caution',\n stacked: 'element-state-exclamation-mark smooth-auto',\n stackedColor: 'status-caution-contrast',\n background: 'bg-base-caution',\n severity: 3\n },\n warning: {\n icon: 'element-triangle-filled',\n color: 'status-warning',\n stacked: 'element-state-exclamation-mark smooth-auto',\n stackedColor: 'status-warning-contrast',\n background: 'bg-base-warning',\n severity: 2\n },\n danger: {\n icon: 'element-circle-filled',\n color: 'status-danger',\n stacked: 'element-state-exclamation-mark smooth-auto',\n stackedColor: 'status-danger-contrast',\n background: 'bg-base-danger',\n severity: 1\n },\n critical: {\n icon: 'element-octagon-filled',\n color: 'status-critical',\n stacked: 'element-state-exclamation-mark smooth-auto',\n stackedColor: 'status-critical-contrast',\n background: 'bg-base-critical',\n severity: 0\n },\n progress: {\n icon: 'element-circle-filled',\n color: 'status-info',\n stacked: 'element-state-progress smooth-auto',\n stackedColor: 'status-info-contrast',\n background: 'bg-base-info',\n severity: 7\n },\n pending: {\n icon: 'element-circle-filled',\n color: 'status-caution',\n stacked: 'element-state-pause smooth-auto',\n stackedColor: 'status-caution-contrast',\n background: 'bg-base-caution',\n severity: 6\n },\n unknown: {\n icon: 'element-circle-filled',\n color: 'status-neutral',\n stacked: 'element-state-question-mark',\n stackedColor: 'text-body',\n background: 'bg-base-0',\n severity: 8\n }\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { ConnectionPositionPair } from '@angular/cdk/overlay';\n\nconst positionStart: ConnectionPositionPair = {\n overlayX: 'end',\n overlayY: 'center',\n originX: 'start',\n originY: 'center'\n};\n\nconst positionEnd: ConnectionPositionPair = {\n overlayX: 'start',\n overlayY: 'center',\n originX: 'end',\n originY: 'center'\n};\n\nexport const positionTopCenter: ConnectionPositionPair = {\n overlayX: 'center',\n overlayY: 'bottom',\n originX: 'center',\n originY: 'top'\n};\n\nexport const positionTopStart: ConnectionPositionPair = {\n overlayX: 'start',\n overlayY: 'bottom',\n originX: 'center',\n originY: 'top'\n};\n\nexport const positionTopEnd: ConnectionPositionPair = {\n overlayX: 'end',\n overlayY: 'bottom',\n originX: 'center',\n originY: 'top'\n};\n\nexport const positionBottomCenter: ConnectionPositionPair = {\n overlayX: 'center',\n overlayY: 'top',\n originX: 'center',\n originY: 'bottom'\n};\n\nexport const positionBottomStart: ConnectionPositionPair = {\n overlayX: 'start',\n overlayY: 'top',\n originX: 'center',\n originY: 'bottom'\n};\n\nexport const positionBottomEnd: ConnectionPositionPair = {\n overlayX: 'end',\n overlayY: 'top',\n originX: 'center',\n originY: 'bottom'\n};\n\nexport const positions = {\n top: [\n positionTopCenter,\n positionTopStart,\n positionTopEnd,\n positionBottomCenter,\n positionBottomStart,\n positionBottomEnd,\n positionStart,\n positionEnd\n ],\n end: [\n positionEnd,\n positionTopCenter,\n positionTopStart,\n positionTopEnd,\n positionBottomCenter,\n positionBottomStart,\n positionBottomEnd,\n positionStart\n ],\n bottom: [\n positionBottomCenter,\n positionBottomStart,\n positionBottomEnd,\n positionTopCenter,\n positionTopStart,\n positionTopEnd,\n positionStart,\n positionEnd\n ],\n start: [\n positionStart,\n positionTopCenter,\n positionTopStart,\n positionTopEnd,\n positionBottomCenter,\n positionBottomStart,\n positionBottomEnd,\n positionEnd\n ],\n auto: [\n positionTopCenter,\n positionTopStart,\n positionTopEnd,\n positionBottomCenter,\n positionBottomStart,\n positionBottomEnd,\n positionStart,\n positionEnd\n ]\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './color-variant.model';\nexport * from './menu.model';\nexport * from './status-type.model';\nexport * from './positions.model';\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\n/**\n * @returns Returns whether animations are disabled via the CSS var. This is either set by\n * an application on low-end devices or in case the device is configured for reduced motion\n * (i.e. `@media (prefers-reduced-motion)` matches)\n */\nexport const areAnimationsDisabled = (): boolean => {\n const style = getComputedStyle(document.documentElement);\n const flag = style.getPropertyValue('--element-animations-enabled');\n return parseInt(flag, 10) === 0;\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\n/** */\nexport const isRTL = (elem?: HTMLElement): boolean =>\n getComputedStyle(elem ?? document.documentElement).direction === 'rtl';\n\nexport const correctKeyRTL = (key: string): string => {\n if (!isRTL()) {\n return key;\n }\n return key === 'ArrowLeft' ? 'ArrowRight' : key === 'ArrowRight' ? 'ArrowLeft' : key;\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { isRTL } from './rtl';\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type Direction = 'down' | 'up' | 'start' | 'end';\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type PlacementBasicVertical = 'top' | 'bottom';\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type PlacementBasic = 'start' | 'end' | PlacementBasicVertical;\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type Placement = '' | PlacementBasic | `${PlacementBasic} ${PlacementBasic}`;\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type Align = 'start' | 'center' | 'end';\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const AXIS_X = {\n axis: 'X',\n directionRegular: 'end',\n directionReverse: 'start',\n upperBound: 'left',\n lowerBound: 'right',\n size: 'width',\n windowSize: 'innerWidth'\n} as const;\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const AXIS_Y = {\n axis: 'Y',\n directionRegular: 'down',\n directionReverse: 'up',\n upperBound: 'top',\n lowerBound: 'bottom',\n size: 'height',\n windowSize: 'innerHeight'\n} as const;\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const BOUNDING_RECT_WINDOW = {\n getBoundingClientRect: () => ({\n top: 0,\n left: 0,\n bottom: window.innerHeight,\n right: window.innerWidth\n })\n};\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const resolveReference = (\n hostElement: HTMLElement,\n reference: string\n): HTMLElement | null => {\n if (reference) {\n const childReferenceCheck = hostElement.querySelector(reference);\n if (childReferenceCheck) {\n return childReferenceCheck as HTMLElement;\n }\n const referenceCheck = hostElement.closest(reference);\n if (referenceCheck) {\n return referenceCheck as HTMLElement;\n }\n const all = document.querySelectorAll(reference);\n return (all[all.length - 1] as HTMLElement) ?? null;\n }\n return null;\n};\n\nconst getScrollParentsChain = (\n element: HTMLElement | null,\n axis: 'X' | 'Y',\n scrollParentsList: (typeof BOUNDING_RECT_WINDOW)[] = []\n): (typeof BOUNDING_RECT_WINDOW)[] => {\n if (element) {\n const overflowStyle =\n getComputedStyle(element)[axis === 'X' ? 'overflowX' : 'overflowY'] || 'visible';\n if (\n element[axis === 'X' ? 'clientWidth' : 'clientHeight'] &&\n overflowStyle !== 'visible' &&\n overflowStyle !== 'hidden'\n ) {\n scrollParentsList.push(document.documentElement === element ? BOUNDING_RECT_WINDOW : element);\n }\n if (element !== document.documentElement) {\n getScrollParentsChain(\n (element as any).dropdownParentElement ?? element.parentElement ?? document.body,\n axis,\n scrollParentsList\n );\n }\n }\n return scrollParentsList;\n};\n\nconst getCombinedBoundingClientRect = (\n elements: HTMLElement[]\n): { top: number; bottom: number; left: number; right: number } => {\n let top = 0;\n let bottom = 0;\n let left = 0;\n let right = 0;\n if (elements.length > 0) {\n const tops: number[] = [];\n const bottoms: number[] = [];\n const lefts: number[] = [];\n const rights: number[] = [];\n elements.forEach(element => {\n const rect = element.getBoundingClientRect();\n tops.push(rect.top);\n bottoms.push(rect.bottom);\n lefts.push(rect.left);\n rights.push(rect.right);\n });\n top = Math.min(...tops);\n bottom = Math.max(...bottoms);\n left = Math.min(...lefts);\n right = Math.max(...rights);\n }\n return { top, bottom, left, right };\n};\n\nconst calculatePlacementRefOuterBounds = (\n currentAxis: typeof AXIS_X | typeof AXIS_Y,\n placementReferenceElement: HTMLElement | null\n): { upper: number; lower: number } => {\n // The chain of scroll parents of the placement ref element up to and often including the body, checking for possible overlaps.\n const placementRefScrollParents = getScrollParentsChain(\n placementReferenceElement,\n currentAxis.axis\n );\n const placementRefScrollParentRects = placementRefScrollParents.map(item =>\n item.getBoundingClientRect()\n );\n // The biggest upper bound (top, left) of all scroll parents (and viewport = 0), the point before which content will be cut off.\n const placementRefScrollParentsUpperBound = Math.max(\n 0,\n ...placementRefScrollParentRects.map(item => item[currentAxis.upperBound])\n );\n // The smallest lower bound (bottom, right) of all scroll parents (and viewport), the point after which content will be cut off.\n const placementRefScrollParentsLowerBound = Math.min(\n window[currentAxis.windowSize],\n ...placementRefScrollParentRects.map(item => item[currentAxis.lowerBound])\n );\n return { upper: placementRefScrollParentsUpperBound, lower: placementRefScrollParentsLowerBound };\n};\n\nconst calculateDirectionFromPlacementRef = (params: {\n currentAxis: typeof AXIS_X | typeof AXIS_Y;\n positionRegular: { left: number; top: number };\n positionReverse: { left: number; top: number };\n contentSize: number;\n placementRefBounds: { upper: number; lower: number };\n currentDirection: Direction;\n rtl?: boolean;\n}): Direction => {\n const {\n currentAxis,\n positionRegular,\n positionReverse,\n contentSize,\n placementRefBounds,\n currentDirection,\n rtl\n } = params;\n // A number showing how many visible pixels would be available from the placement ref in regular / scroll (down, end) direction\n const placementRefSpaceRegular =\n placementRefBounds.lower - positionRegular[currentAxis.upperBound];\n // A number showing how many visible pixels would be available from the placement ref in reverse (up, start) direction\n const placementRefSpaceReverse =\n positionReverse[currentAxis.upperBound] - placementRefBounds.upper;\n if (placementRefSpaceReverse < contentSize && placementRefSpaceRegular < contentSize) {\n // If there would not be enough room in both directions, always prefer regular / scroll (down, end) direction,\n // since this way the element can expand and scroll while this cannot happen if there's not enough room in front.\n return rtl ? currentAxis.directionReverse : currentAxis.directionRegular;\n } else if (placementRefSpaceReverse < contentSize) {\n return currentAxis.directionRegular;\n } else if (placementRefSpaceRegular < contentSize) {\n return currentAxis.directionReverse;\n }\n // If there would be enough room in both directions, use the set direction (or the regular one if not set).\n return currentDirection;\n};\n\nconst getAbsoluteContentPosition = (params: {\n direction: Direction;\n placement: Placement;\n element: HTMLElement;\n align: Align;\n rtl?: boolean;\n}): { left: number; top: number } => {\n const { direction, placement, element, align, rtl } = params;\n const elementRect = element.getBoundingClientRect();\n\n const start = rtl ? elementRect.right : elementRect.left;\n const end = rtl ? elementRect.left : elementRect.right;\n\n let relativeLeftOffset = 0;\n if (direction === 'start' || direction === 'end') {\n relativeLeftOffset =\n placement.includes('end') || (!placement.includes('start') && direction === 'end')\n ? end\n : start;\n } else {\n if (placement.includes('start')) {\n relativeLeftOffset = start;\n } else {\n if (placement.includes('end') || align === 'end') {\n relativeLeftOffset = end;\n } else if (align === 'center') {\n relativeLeftOffset = elementRect.left + (elementRect.right - elementRect.left) / 2;\n } else {\n relativeLeftOffset = start;\n }\n }\n }\n let relativeTopOffset = 0;\n if (direction === 'up') {\n relativeTopOffset = placement.includes('bottom') ? elementRect.bottom : elementRect.top;\n } else if (direction === 'start' || direction === 'end') {\n relativeTopOffset = !placement.includes('bottom') ? elementRect.top : elementRect.bottom;\n } else {\n relativeTopOffset = placement.includes('top') ? elementRect.top : elementRect.bottom;\n }\n return { left: relativeLeftOffset, top: relativeTopOffset };\n};\n\nconst getRelativeContentPosition = (params: {\n contentElement: HTMLElement;\n direction: Direction;\n placement: Placement;\n placementReferenceElement: HTMLElement;\n align: Align;\n rtl?: boolean;\n}): { left: number; top: number } => {\n const { contentElement, direction, placement, placementReferenceElement, align, rtl } = params;\n const contentParent = (contentElement as HTMLElement).offsetParent ?? document.body;\n const contentParentRect = contentParent.getBoundingClientRect();\n const relativePosition = getAbsoluteContentPosition({\n direction,\n placement,\n element: placementReferenceElement,\n align,\n rtl\n });\n const leftOffset = relativePosition.left - contentParentRect.left + contentParent.scrollLeft;\n const topOffset = relativePosition.top - contentParentRect.top + contentParent.scrollTop;\n return { left: leftOffset, top: topOffset };\n};\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const getContentPositionString = (params: {\n contentElement: HTMLElement;\n direction: Direction;\n placement: Placement;\n placementReferenceElement: HTMLElement;\n align: Align;\n rtl?: boolean;\n}): string => {\n const { contentElement, direction, placement, placementReferenceElement, align, rtl } = params;\n const position = getRelativeContentPosition({\n contentElement,\n direction,\n placement,\n placementReferenceElement,\n align,\n rtl: rtl ?? isRTL()\n });\n return `translate3d(${position.left}px, ${position.top}px, 0px)`;\n};\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const responsivelyCheckDirection = (params: {\n isScrolling?: boolean;\n currentDirection: Direction;\n contentElements: HTMLElement[];\n hostElement: HTMLElement | null;\n placement: Placement;\n placementReferenceElement: HTMLElement;\n align: Align;\n responsiveDirectionToPlacement: boolean;\n closeOnPlacementReferenceScrollOut: boolean;\n closeOnContentScrollOut: boolean;\n minSpaceThresholdFactor?: number;\n placementReverse?: Placement;\n rtl?: boolean;\n}): { responsiveDirection?: Direction; close: boolean } => {\n const {\n isScrolling,\n currentDirection,\n contentElements,\n hostElement,\n placement,\n placementReferenceElement,\n align,\n responsiveDirectionToPlacement,\n closeOnPlacementReferenceScrollOut,\n closeOnContentScrollOut,\n minSpaceThresholdFactor,\n placementReverse,\n rtl\n } = params;\n\n const actualRtl = rtl ?? isRTL();\n\n let responsiveDirection: Direction | undefined;\n\n const actualCurrentDirection = actualRtl\n ? currentDirection === 'start'\n ? 'end'\n : currentDirection === 'end'\n ? 'start'\n : currentDirection\n : currentDirection;\n\n // Defines how the properties to access are named in the current axis.\n const currentAxis = currentDirection === 'start' || currentDirection === 'end' ? AXIS_X : AXIS_Y;\n // The combined (enclosing) client rect for all component contents.\n const contentsRect = getCombinedBoundingClientRect(contentElements);\n // The chain of scroll parents of the container host element up to and often including the body, checking for possible overlaps.\n const containerScrollParents = getScrollParentsChain(hostElement, currentAxis.axis);\n const containerScrollParentRects = containerScrollParents.map(item =>\n item.getBoundingClientRect()\n );\n // The biggest upper bound (top, left) of all scroll parents (and viewport = 0), the point before which content will be cut off.\n const scrollParentsUpperBound = Math.max(\n 0,\n ...containerScrollParentRects.map(item => item[currentAxis.upperBound])\n );\n // The smallest lower bound (bottom, right) of all scroll parents (and viewport), the point after which content will be cut off.\n const scrollParentsLowerBound = Math.min(\n window[currentAxis.windowSize],\n ...containerScrollParentRects.map(item => item[currentAxis.lowerBound])\n );\n\n // The point from which the component will be opened if opening in regular / scroll (down, end) direction.\n // Influenced by `componentPlacementReference`, `componentPlacement` and `componentAlign`.\n const positionRegular = getAbsoluteContentPosition({\n direction: currentAxis.directionRegular,\n placement,\n element: placementReferenceElement,\n align\n });\n // The point from which the component will be opened if opening in reverse (up, start) direction.\n // Influenced by `componentPlacementReference`, `componentPlacement` and `componentAlign`.\n const positionReverse = getAbsoluteContentPosition({\n direction: currentAxis.directionReverse,\n placement: placementReverse ?? placement,\n element: placementReferenceElement,\n align\n });\n\n // The enclosing size (height, width) of all contents combined\n const contentsSize = contentsRect[currentAxis.lowerBound] - contentsRect[currentAxis.upperBound];\n\n // A number showing how many visible pixels would be available in regular / scroll (down, end) direction\n const spaceRegular = scrollParentsLowerBound - positionRegular[currentAxis.upperBound];\n // A number showing how many visible pixels would be available in reverse (up, start) direction\n const spaceReverse = positionReverse[currentAxis.upperBound] - scrollParentsUpperBound;\n\n let placementRefBounds: { upper: number; lower: number } | undefined;\n if (spaceReverse < contentsSize && spaceRegular < contentsSize) {\n // If there would not be enough room in both directions, always prefer regular / scroll (down, end) direction,\n // since this way the element can expand and scroll while this cannot happen if there's not enough room in front.\n responsiveDirection = actualRtl ? currentAxis.directionReverse : currentAxis.directionRegular;\n } else if (minSpaceThresholdFactor) {\n const contentsSizeWithThreshold = contentsSize + minSpaceThresholdFactor * contentsSize;\n if (spaceReverse < contentsSizeWithThreshold && spaceRegular < contentsSizeWithThreshold) {\n // If a threshold is set and there would not be enough space including the threshold in both directions\n // use the direction with more space\n if (spaceReverse < spaceRegular) {\n responsiveDirection = currentAxis.directionRegular;\n } else {\n responsiveDirection = currentAxis.directionReverse;\n }\n } else if (spaceReverse < contentsSizeWithThreshold) {\n responsiveDirection = currentAxis.directionRegular;\n } else if (spaceRegular < contentsSizeWithThreshold) {\n responsiveDirection = currentAxis.directionReverse;\n }\n }\n if (!responsiveDirection) {\n if (spaceReverse < contentsSize) {\n responsiveDirection = currentAxis.directionRegular;\n } else if (spaceRegular < contentsSize) {\n responsiveDirection = currentAxis.directionReverse;\n } else {\n if (\n responsiveDirectionToPlacement &&\n placementReferenceElement &&\n hostElement !== placementReferenceElement\n ) {\n placementRefBounds = calculatePlacementRefOuterBounds(\n currentAxis,\n placementReferenceElement\n );\n responsiveDirection = calculateDirectionFromPlacementRef({\n currentAxis,\n positionRegular,\n positionReverse,\n contentSize: contentsSize,\n placementRefBounds,\n currentDirection: actualCurrentDirection,\n rtl: actualRtl\n });\n } else {\n // If there would be enough room in both directions, use the set direction (or the regular one if not set).\n responsiveDirection = actualCurrentDirection;\n }\n }\n }\n\n let close = false;\n if (isScrolling) {\n // Check if the container host or placement reference is hidden and close the component. (Mostly done when scrolling.)\n if (\n closeOnPlacementReferenceScrollOut &&\n placementReferenceElement &&\n hostElement !== placementReferenceElement\n ) {\n placementRefBounds ??= calculatePlacementRefOuterBounds(\n currentAxis,\n placementReferenceElement\n );\n const placementRefRect = placementReferenceElement.getBoundingClientRect();\n // A number showing how many visible pixels of the placement ref would be shown in reverse (up, start) direction\n const placementRefVisibleTop =\n placementRefRect[currentAxis.lowerBound] - placementRefBounds.upper;\n // A number showing how many visible pixels of the placement ref would be shown in regular / scroll (down, end) direction\n const placementRefVisibleBottom =\n placementRefBounds.lower - placementRefRect[currentAxis.upperBound];\n if (placementRefVisibleTop < 0 || placementRefVisibleBottom < 0) {\n // Close the component if the placement ref is not visible.\n close = true;\n }\n }\n if (!close && closeOnContentScrollOut) {\n // A number showing how many visible pixels would be available the other way if set to regular / scroll (down, end) direction\n const spaceRegularOtherSide =\n scrollParentsLowerBound - positionReverse[currentAxis.upperBound];\n // A number showing how many visible pixels would be available the other way if set to reverse (up, start) direction\n const spaceReverseOtherSide =\n positionRegular[currentAxis.upperBound] - scrollParentsUpperBound;\n if (spaceRegularOtherSide < 0 || spaceReverseOtherSide < 0) {\n // Close the component if there is not enough space even in the other direction.\n close = true;\n }\n }\n }\n responsiveDirection = actualRtl\n ? responsiveDirection === 'start'\n ? 'end'\n : responsiveDirection === 'end'\n ? 'start'\n : responsiveDirection\n : responsiveDirection;\n return { responsiveDirection, close };\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { TrackByFunction } from '@angular/core';\n\nconst trackByIdentity = <T>(index: number, item: T): any => item;\n\n/**\n * Creates a trackByFunction for ngFor, that tracks an Item by its identity.\n * It should be used with a generic parameter, to generate a proper type:\n *\n * @example\n * ```ts\n * @Input() trackByFunction = buildTrackByIdentity<ItemType>()\n * ```\n * @deprecated use the new control-flow syntax\n */\nexport const buildTrackByIdentity = <T>(): TrackByFunction<T> => trackByIdentity;\n\nconst trackByIndex = (index: number): number => index;\n\n/**\n * Creates a trackByFunction for ngFor, that tracks an Item by its index.\n * It should be used with a generic parameter, to generate a proper type:\n *\n * @example\n * ```\n * @Input() trackByFunction = buildTrackByIdentity<ItemType>()\n * ```\n * @deprecated use the new control-flow syntax\n */\nexport const buildTrackByIndex = <T>(): TrackByFunction<T> => trackByIndex;\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\n// Adds a window listener which can optionally be active, returns the unregister function.\n// For some events (e.g. \"touchmove\") an explicit \"passive: false\" is required in order to\n// be able to do $event.preventDefault(). Unfortunately there is no way in Angular to pass\n// options to Rendrer2/EventManager event handling.\nexport const listenGlobal = (\n eventName: string,\n handler: (e: any) => void,\n active?: boolean\n): (() => void) => {\n let opts: any = false;\n if (active !== undefined) {\n opts = { passive: !active };\n }\n\n window.addEventListener(eventName, handler, opts);\n return () => {\n window.removeEventListener(eventName, handler, opts);\n };\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\n/* eslint-disable prefer-arrow/prefer-arrow-functions */\nimport {\n ConnectedOverlayPositionChange,\n ConnectionPositionPair,\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayConfig,\n OverlayRef,\n PositionStrategy\n} from '@angular/cdk/overlay';\nimport { ElementRef } from '@angular/core';\n\nimport {\n positionBottomEnd,\n positionBottomStart,\n positions,\n positionTopEnd,\n positionTopStart\n} from '../models/positions.model';\nimport { isRTL } from './rtl';\n\nexport function makePositionStrategy(\n elementRef: ElementRef<any> | undefined,\n overlay: Overlay,\n placement: keyof typeof positions | ConnectionPositionPair[],\n constrain = false,\n center = true\n): PositionStrategy {\n if (!elementRef?.nativeElement) {\n return overlay.position().global().centerHorizontally().centerVertically();\n }\n\n const popoverPositions = getOverlayPositions(elementRef, placement, center);\n const positionStrategy = overlay\n .position()\n .flexibleConnectedTo(elementRef)\n .withPush(false)\n .withGrowAfterOpen(true)\n .withFlexibleDimensions(constrain)\n .withPositions(popoverPositions);\n if (constrain) {\n positionStrategy.withViewportMargin(8);\n }\n return positionStrategy;\n}\n\nexport function makeOverlay(\n positionStrategy: PositionStrategy,\n overlay: Overlay,\n hasBackdrop: boolean\n): OverlayRef {\n const config = new OverlayConfig();\n config.positionStrategy = positionStrategy;\n config.scrollStrategy = overlay.scrollStrategies.reposition();\n config.direction = isRTL() ? 'rtl' : 'ltr';\n if (hasBackdrop) {\n config.hasBackdrop = true;\n config.backdropClass = 'cdk-overlay-transparent-backdrop';\n } else {\n config.hasBackdrop = false;\n }\n return overlay.create(config);\n}\n\nexport function getOverlay(\n elementRef: ElementRef<any>,\n overlay: Overlay,\n hasBackdrop: boolean,\n placement: keyof typeof positions | ConnectionPositionPair[],\n constrain = false,\n center = true\n): OverlayRef {\n const positionStrategy = makePositionStrategy(elementRef, overlay, placement, constrain, center);\n return makeOverlay(positionStrategy, overlay, hasBackdrop);\n}\n\nexport function getPositionStrategy(\n overlayref: OverlayRef\n): FlexibleConnectedPositionStrategy | undefined {\n return overlayref.getConfig().positionStrategy as FlexibleConnectedPositionStrategy;\n}\n\nexport function getOverlayPositions(\n elementRef: ElementRef<any>,\n placement: keyof typeof positions | ConnectionPositionPair[],\n center = true\n): ConnectionPositionPair[] {\n if (elementRef.nativeElement && center) {\n const rtl = isRTL();\n const halfWidth = Math.round(elementRef.nativeElement.offsetWidth / 2);\n positionTopStart.offsetX = positionBottomStart.offsetX = halfWidth * (rtl ? 1 : -1);\n positionTopEnd.offsetX = positionBottomEnd.offsetX = halfWidth * (rtl ? -1 : 1);\n } else {\n positionTopStart.offsetX = undefined;\n positionTopEnd.offsetX = undefined;\n positionBottomStart.offsetX = undefined;\n positionBottomEnd.offsetX = undefined;\n }\n return typeof placement === 'string' ? positions[placement] : placement;\n}\n\nexport function hasTrigger(trigger: string, triggers?: string): boolean {\n return (triggers?.split(/\\s+/) ?? []).includes(trigger);\n}\n\nexport interface OverlayArrowPosition {\n left?: number;\n right?: number;\n}\n/**\n * calculates the arrow position from left/right for tooltips, popovers, etc\n * @param change - the event from the position strategy\n * @param overlay - ElementRef for the overlay content, i.e. the popover/tooltip component\n * @param anchor - ElementRef for the anchoring element, i.e. the trigger of the popover/tooltip\n */\nexport function calculateOverlayArrowPosition(\n change: ConnectedOverlayPositionChange,\n overlay: ElementRef,\n anchor?: ElementRef\n): OverlayArrowPosition {\n if (anchor && ['bottom', 'top'].includes(change.connectionPair.originY)) {\n // Calculate offset to the anchor element center\n const anchorRect = anchor.nativeElement.getBoundingClientRect();\n const overlayRect = overlay.nativeElement.getBoundingClientRect();\n const center = anchorRect.left + anchorRect.width / 2;\n // Position arrow centered to the anchor element\n\n // prettier-ignore\n return isRTL()\n ? { right: overlayRect.right - center }\n : { left: center - overlayRect.left };\n }\n\n const offsetX = change.connectionPair.offsetX;\n if (offsetX) {\n // prettier-ignore\n return offsetX < 0\n ? { left: -offsetX }\n : { right: offsetX };\n }\n return {};\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './animation.helpers';\nexport * from './positioning.helpers';\nexport * from './rtl';\nexport * from './track-by.helper';\nexport * from './global-events.helpers';\nexport * from './overlay-helper';\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { Type } from '@angular/core';\n\n// note: this _must_ be a function, not an arrow\n// eslint-disable-next-line\nexport function WebComponentContentChildren<T>(host: Type<T>) {\n // holds the Type information of child component and the property name of parent component which is used to hold it.\n return (...args: any) => {\n args[0].__contentQuery = {\n host,\n prop: args[1]\n };\n };\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './webcomponent.decorator';\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './services';\nexport * from './models';\nexport * from './helpers';\nexport * from './decorators';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AAaH;;;AAGG;MAEU,YAAY,CAAA;AACf,IAAA,MAAM,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC;AAE5C,IAAA,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACvC,IAAA,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAE/C;;;;;;;;;;;;;;;AAeG;IACa,MAAM,GAA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AAA,MAAM,OAAO,GAAG,MAAM,CAAC,cAAc,CAAC,OAAO;IAC7C,IAAI,OAAO,EAAE;;QAEX,OAAO,OAAO,GAAG;AACf,cAAE,EAAE,IAAI,EAAE,CAAC,OAAO;AAClB,cAAE,EAAE,KAAK,EAAE,OAAO,EAAE;;AAExB,IAAA,OAAO,EAAE;AACX;;ACjJA;;;AAGG;;ACGH;AACA;AACM,SAAU,2BAA2B,CAAI,IAAa,EAAA;;AAE1D,IAAA,OAAO,CAAC,GAAG,IAAS,KAAI;AACtB,QAAA,IAAI,CAAC,CAAC,CAAC,CAAC,cAAc,GAAG;YACvB,IAAI;AACJ,YAAA,IAAI,EAAE,IAAI,CAAC,CAAC;SACb;AACH,KAAC;AACH;;AChBA;;;AAGG;;ACHH;;;AAGG;;ACHH;;AAEG;;;;"}
1
+ {"version":3,"file":"siemens-element-ng-common.mjs","sources":["../../../../projects/element-ng/common/services/blink.service.ts","../../../../projects/element-ng/common/services/si-uistate.service.ts","../../../../projects/element-ng/common/services/text-measure.service.ts","../../../../projects/element-ng/common/services/scrollbar-helper.service.ts","../../../../projects/element-ng/common/services/index.ts","../../../../projects/element-ng/common/models/status-type.model.ts","../../../../projects/element-ng/common/models/positions.model.ts","../../../../projects/element-ng/common/models/index.ts","../../../../projects/element-ng/common/helpers/animation.helpers.ts","../../../../projects/element-ng/common/helpers/rtl.ts","../../../../projects/element-ng/common/helpers/positioning.helpers.ts","../../../../projects/element-ng/common/helpers/track-by.helper.ts","../../../../projects/element-ng/common/helpers/global-events.helpers.ts","../../../../projects/element-ng/common/helpers/overlay-helper.ts","../../../../projects/element-ng/common/helpers/index.ts","../../../../projects/element-ng/common/decorators/webcomponent.decorator.ts","../../../../projects/element-ng/common/decorators/index.ts","../../../../projects/element-ng/common/index.ts","../../../../projects/element-ng/common/siemens-element-ng-common.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject, timer } from 'rxjs';\nimport {\n distinctUntilChanged,\n endWith,\n filter,\n map,\n repeat,\n share,\n takeUntil\n} from 'rxjs/operators';\n\n/**\n * A global blink pulse generator for synchronized blinking patterns across an entire application.\n * Use to trigger any blinking by subscribing to `pulse$`.\n */\n@Injectable({ providedIn: 'root' })\nexport class BlinkService {\n private pause$ = new BehaviorSubject<boolean>(false);\n\n private off$ = this.pause$.pipe(filter(v => v));\n private on$ = this.pause$.pipe(filter(v => !v));\n\n /**\n * Blink pulse. Subscribe to it to toggle `on` CSS class when true, `off` CSS class when `false`.\n * Do animations using CSS transitions\n *\n * @defaultValue\n * ```\n * timer(0, 1400).pipe(\n * map(count => count % 2 === 0),\n * distinctUntilChanged(),\n * takeUntil(this.off$),\n * endWith(false),\n * repeat({ delay: () => this.on$ }),\n * share()\n * )\n * ```\n */\n public readonly pulse$ = timer(0, 1400).pipe(\n map(count => count % 2 === 0),\n distinctUntilChanged(),\n takeUntil(this.off$),\n endWith(false),\n repeat({ delay: () => this.on$ }),\n share()\n );\n\n /**\n * Pause the blinking.\n */\n pause(): void {\n this.pause$.next(true);\n }\n\n /**\n * Resume the blinking.\n */\n resume(): void {\n this.pause$.next(false);\n }\n\n /**\n * Whether the blinking is paused or not.\n */\n isPaused(): boolean {\n return this.pause$.value;\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { isPlatformBrowser } from '@angular/common';\nimport { inject, Injectable, InjectionToken, PLATFORM_ID, Provider, Type } from '@angular/core';\n\nconst SI_UI_STATE_STORAGE = new InjectionToken<UIStateStorage>('si.ui-state.storage', {\n providedIn: 'root',\n factory: () => {\n if (isPlatformBrowser(inject(PLATFORM_ID))) {\n return new LocalStorageUIStateStorage();\n }\n return { save: () => {}, load: () => null };\n }\n});\n\n/**\n * Interface that defines a UIStateStore.\n * It must be provided via {@link provideSiUiState}.\n */\nexport interface UIStateStorage {\n /**\n * Saves data under a specific stateId.\n * Already existing data for that stateId should be overridden.\n * Asynchronous implementations must return a {@link Promise} and resolve it once saving was completed.\n *\n * Errors should be handled by the implementation.\n * The `SiUIStateService` does not handle errors.\n */\n save(stateId: string, data: string): void | Promise<void>;\n\n /**\n * Loads data for a specific stateId.\n * Can be asynchronous.\n *\n * Errors should be handled by the implementation.\n * The `SiUIStateService` does not handle errors.\n *\n * @returns The data or undefined if the data does not exist.\n * Asynchronous implementations must return a {@link Promise} containing the data.\n */\n load(stateId: string): string | undefined | null | Promise<string | undefined | null>;\n}\n\nclass LocalStorageUIStateStorage implements UIStateStorage {\n save(stateId: string, data: string): void {\n localStorage.setItem(`si.ui-state.${stateId}`, data);\n }\n\n load(stateId: string): string | null {\n return localStorage.getItem(`si.ui-state.${stateId}`);\n }\n}\n\n/** @internal */\nexport const SI_UI_STATE_SERVICE = new InjectionToken<SiUIStateService>('si.ui-state.service');\n\n/**\n * Service to save and load UI states.\n * @internal\n */\n@Injectable()\nclass SiUIStateService {\n private storage = inject(SI_UI_STATE_STORAGE);\n\n /**\n * Saves the provided state in the storage.\n * @param stateId - The unique id or key under which the state shall be saved.\n * @param state - The state to be saved.\n * @param version - The version of the state object.\n * This can be used to migrate state objects.\n */\n save<TState>(stateId: string, state: TState, version = 0): Promise<void> {\n return Promise.resolve(\n this.storage.save(\n stateId,\n JSON.stringify({\n version,\n state\n })\n )\n );\n }\n\n /**\n * Loads and returns the state for the given stateId and version.\n * @param stateId - The unique id or key for which the state shall be loaded.\n * @param version - The version of the state object.\n * This can be used to migrate state objects.\n * @returns A Promise containing the state or undefined if the state does not exist or the version did not match.\n */\n load<TState = unknown>(stateId: string, version = 0): PromiseLike<TState | undefined> {\n // DO NOT ADD async keyword.\n // This method should stay synchronous if the storage is synchronous.\n // Otherwise, the navbar will play expand animations on load.\n const dataOrPromise = this.storage.load(stateId);\n if (dataOrPromise instanceof Promise) {\n return dataOrPromise.then(data => this.readData(data, version));\n } else {\n const promiseLike = {\n then: onfulfilled => {\n const data = this.readData<TState>(dataOrPromise, version);\n if (onfulfilled) {\n return onfulfilled(data);\n } else {\n return promiseLike;\n }\n }\n } as PromiseLike<TState | undefined>;\n\n return promiseLike;\n }\n }\n\n private readData<TState = unknown>(\n data: string | null | undefined,\n version: number\n ): TState | undefined {\n if (data) {\n const parsed = JSON.parse(data);\n if (parsed.version === version) {\n return parsed.state;\n }\n }\n\n return undefined;\n }\n}\n\nexport type { SiUIStateService };\n\n/** Enables the automatic storage of UI state for enabled components. */\nexport const provideSiUiState = (config?: { store?: Type<UIStateStorage> }): Provider[] => {\n return [\n { provide: SI_UI_STATE_SERVICE, useClass: SiUIStateService },\n config?.store ? { provide: SI_UI_STATE_STORAGE, useClass: config.store } : []\n ];\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { inject, Injectable, DOCUMENT } from '@angular/core';\n\nexport interface FontStyleOverride {\n fontStyle?: string;\n fontVariant?: string;\n fontWeight?: string;\n fontSize?: string;\n fontFamily?: string;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class TextMeasureService {\n private measureCanvas?: CanvasRenderingContext2D;\n private defaultFont?: string;\n private document = inject(DOCUMENT);\n /** Measure text width in pixel. */\n measureText(text: string, fontRef?: HTMLElement | string, overrides?: FontStyleOverride): number {\n this.ensureCanvas();\n this.setFontStyle(fontRef, overrides);\n return Math.ceil(this.measureCanvas!.measureText(text).width);\n }\n /** Get font styles for `font` CSS short-hand property. */\n getFontStyle(element: HTMLElement, overrides?: FontStyleOverride): string {\n const style = getComputedStyle(element);\n // note: can't use destructuring on `style` as it doesn't work on Firefox\n const fontStyle = overrides?.fontStyle ?? style.fontStyle;\n const fontVariant = overrides?.fontVariant ?? style.fontVariant;\n const fontWeight = overrides?.fontWeight ?? style.fontWeight;\n const fontSize = overrides?.fontSize ?? style.fontSize;\n const fontFamily = overrides?.fontFamily ?? style.fontFamily;\n return `${fontStyle} ${fontVariant} ${fontWeight} ${fontSize} ${fontFamily}`\n .replace(/ +/g, ' ')\n .trim();\n }\n\n private ensureCanvas(): void {\n if (this.measureCanvas) {\n return;\n }\n const canvas = this.document.createElement('canvas') as HTMLCanvasElement;\n this.measureCanvas = canvas.getContext('2d') as CanvasRenderingContext2D;\n }\n\n private setFontStyle(fontRef?: HTMLElement | string, overrides?: FontStyleOverride): void {\n if (typeof fontRef === 'string') {\n this.measureCanvas!.font = fontRef;\n return;\n }\n if (fontRef || overrides) {\n this.measureCanvas!.font = this.getFontStyle(fontRef ?? this.document.body, overrides);\n return;\n }\n this.defaultFont ??= this.getFontStyle(this.document.body);\n this.measureCanvas!.font = this.defaultFont;\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { inject, Injectable, DOCUMENT } from '@angular/core';\n\n/**\n * Gets the width of the scrollbar. Nesc for windows\n * http://stackoverflow.com/a/13382873/888165\n */\n@Injectable({ providedIn: 'root' })\nexport class ScrollbarHelper {\n private document = inject(DOCUMENT);\n\n /**\n * The width of the scrollbar.\n *\n * @defaultValue this.getWidth()\n */\n readonly width: number = this.getWidth();\n\n private getWidth(): number {\n const outer = this.document.createElement('div');\n outer.style.visibility = 'hidden';\n outer.style.width = '100px';\n (outer.style as any).msOverflowStyle = 'scrollbar';\n this.document.body.appendChild(outer);\n\n const widthNoScroll = outer.offsetWidth;\n outer.style.overflow = 'scroll';\n\n const inner = this.document.createElement('div');\n inner.style.width = '100%';\n outer.appendChild(inner);\n\n const widthWithScroll = inner.offsetWidth;\n outer.parentNode?.removeChild(outer);\n\n return widthNoScroll - widthWithScroll;\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './blink.service';\nexport * from './si-uistate.service';\nexport * from './text-measure.service';\nexport * from './scrollbar-helper.service';\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { TranslatableString } from '@siemens/element-translate-ng/translate';\n\nexport type StatusType = 'success' | 'info' | 'warning' | 'danger' | 'caution' | 'critical';\nexport type ExtendedStatusType = StatusType | 'unknown';\nexport type EntityStatusType = ExtendedStatusType | 'pending' | 'progress';\nexport type AccentLineType = StatusType | 'caution' | 'primary' | 'inactive';\n\nexport interface StatusIcon {\n icon: string;\n color: string;\n stacked: string;\n stackedColor: string;\n background: string;\n severity: number; // for sorting\n ariaLabel?: TranslatableString;\n}\n\nexport const STATUS_ICON: { [key in EntityStatusType]: StatusIcon } = {\n success: {\n icon: 'element-circle-filled',\n color: 'status-success',\n stacked: 'element-state-tick smooth-auto',\n stackedColor: 'status-success-contrast',\n background: 'bg-base-success',\n severity: 5\n },\n info: {\n icon: 'element-square-filled',\n color: 'status-info',\n stacked: 'element-state-info smooth-auto',\n stackedColor: 'status-info-contrast',\n background: 'bg-base-info',\n severity: 4\n },\n caution: {\n icon: 'element-square-45-filled',\n color: 'status-caution',\n stacked: 'element-state-exclamation-mark smooth-auto',\n stackedColor: 'status-caution-contrast',\n background: 'bg-base-caution',\n severity: 3\n },\n warning: {\n icon: 'element-triangle-filled',\n color: 'status-warning',\n stacked: 'element-state-exclamation-mark smooth-auto',\n stackedColor: 'status-warning-contrast',\n background: 'bg-base-warning',\n severity: 2\n },\n danger: {\n icon: 'element-circle-filled',\n color: 'status-danger',\n stacked: 'element-state-exclamation-mark smooth-auto',\n stackedColor: 'status-danger-contrast',\n background: 'bg-base-danger',\n severity: 1\n },\n critical: {\n icon: 'element-octagon-filled',\n color: 'status-critical',\n stacked: 'element-state-exclamation-mark smooth-auto',\n stackedColor: 'status-critical-contrast',\n background: 'bg-base-critical',\n severity: 0\n },\n progress: {\n icon: 'element-circle-filled',\n color: 'status-info',\n stacked: 'element-state-progress smooth-auto',\n stackedColor: 'status-info-contrast',\n background: 'bg-base-info',\n severity: 7\n },\n pending: {\n icon: 'element-circle-filled',\n color: 'status-caution',\n stacked: 'element-state-pause smooth-auto',\n stackedColor: 'status-caution-contrast',\n background: 'bg-base-caution',\n severity: 6\n },\n unknown: {\n icon: 'element-circle-filled',\n color: 'status-neutral',\n stacked: 'element-state-question-mark',\n stackedColor: 'text-body',\n background: 'bg-base-0',\n severity: 8\n }\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { ConnectionPositionPair } from '@angular/cdk/overlay';\n\nconst positionStart: ConnectionPositionPair = {\n overlayX: 'end',\n overlayY: 'center',\n originX: 'start',\n originY: 'center'\n};\n\nconst positionEnd: ConnectionPositionPair = {\n overlayX: 'start',\n overlayY: 'center',\n originX: 'end',\n originY: 'center'\n};\n\nexport const positionTopCenter: ConnectionPositionPair = {\n overlayX: 'center',\n overlayY: 'bottom',\n originX: 'center',\n originY: 'top'\n};\n\nexport const positionTopStart: ConnectionPositionPair = {\n overlayX: 'start',\n overlayY: 'bottom',\n originX: 'center',\n originY: 'top'\n};\n\nexport const positionTopEnd: ConnectionPositionPair = {\n overlayX: 'end',\n overlayY: 'bottom',\n originX: 'center',\n originY: 'top'\n};\n\nexport const positionBottomCenter: ConnectionPositionPair = {\n overlayX: 'center',\n overlayY: 'top',\n originX: 'center',\n originY: 'bottom'\n};\n\nexport const positionBottomStart: ConnectionPositionPair = {\n overlayX: 'start',\n overlayY: 'top',\n originX: 'center',\n originY: 'bottom'\n};\n\nexport const positionBottomEnd: ConnectionPositionPair = {\n overlayX: 'end',\n overlayY: 'top',\n originX: 'center',\n originY: 'bottom'\n};\n\nexport const positions = {\n top: [\n positionTopCenter,\n positionTopStart,\n positionTopEnd,\n positionBottomCenter,\n positionBottomStart,\n positionBottomEnd,\n positionStart,\n positionEnd\n ],\n end: [\n positionEnd,\n positionTopCenter,\n positionTopStart,\n positionTopEnd,\n positionBottomCenter,\n positionBottomStart,\n positionBottomEnd,\n positionStart\n ],\n bottom: [\n positionBottomCenter,\n positionBottomStart,\n positionBottomEnd,\n positionTopCenter,\n positionTopStart,\n positionTopEnd,\n positionStart,\n positionEnd\n ],\n start: [\n positionStart,\n positionTopCenter,\n positionTopStart,\n positionTopEnd,\n positionBottomCenter,\n positionBottomStart,\n positionBottomEnd,\n positionEnd\n ],\n auto: [\n positionTopCenter,\n positionTopStart,\n positionTopEnd,\n positionBottomCenter,\n positionBottomStart,\n positionBottomEnd,\n positionStart,\n positionEnd\n ]\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './color-variant.model';\nexport * from './menu.model';\nexport * from './status-type.model';\nexport * from './positions.model';\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\n/**\n * @returns Returns whether animations are disabled via the CSS var. This is either set by\n * an application on low-end devices or in case the device is configured for reduced motion\n * (i.e. `@media (prefers-reduced-motion)` matches)\n */\nexport const areAnimationsDisabled = (): boolean => {\n const style = getComputedStyle(document.documentElement);\n const flag = style.getPropertyValue('--element-animations-enabled');\n return parseInt(flag, 10) === 0;\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\n/** */\nexport const isRTL = (elem?: HTMLElement): boolean =>\n getComputedStyle(elem ?? document.documentElement).direction === 'rtl';\n\nexport const correctKeyRTL = (key: string): string => {\n if (!isRTL()) {\n return key;\n }\n return key === 'ArrowLeft' ? 'ArrowRight' : key === 'ArrowRight' ? 'ArrowLeft' : key;\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { isRTL } from './rtl';\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type Direction = 'down' | 'up' | 'start' | 'end';\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type PlacementBasicVertical = 'top' | 'bottom';\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type PlacementBasic = 'start' | 'end' | PlacementBasicVertical;\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type Placement = '' | PlacementBasic | `${PlacementBasic} ${PlacementBasic}`;\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type Align = 'start' | 'center' | 'end';\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const AXIS_X = {\n axis: 'X',\n directionRegular: 'end',\n directionReverse: 'start',\n upperBound: 'left',\n lowerBound: 'right',\n size: 'width',\n windowSize: 'innerWidth'\n} as const;\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const AXIS_Y = {\n axis: 'Y',\n directionRegular: 'down',\n directionReverse: 'up',\n upperBound: 'top',\n lowerBound: 'bottom',\n size: 'height',\n windowSize: 'innerHeight'\n} as const;\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const BOUNDING_RECT_WINDOW = {\n getBoundingClientRect: () => ({\n top: 0,\n left: 0,\n bottom: window.innerHeight,\n right: window.innerWidth\n })\n};\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const resolveReference = (\n hostElement: HTMLElement,\n reference: string\n): HTMLElement | null => {\n if (reference) {\n const childReferenceCheck = hostElement.querySelector(reference);\n if (childReferenceCheck) {\n return childReferenceCheck as HTMLElement;\n }\n const referenceCheck = hostElement.closest(reference);\n if (referenceCheck) {\n return referenceCheck as HTMLElement;\n }\n const all = document.querySelectorAll(reference);\n return (all[all.length - 1] as HTMLElement) ?? null;\n }\n return null;\n};\n\nconst getScrollParentsChain = (\n element: HTMLElement | null,\n axis: 'X' | 'Y',\n scrollParentsList: (typeof BOUNDING_RECT_WINDOW)[] = []\n): (typeof BOUNDING_RECT_WINDOW)[] => {\n if (element) {\n const overflowStyle =\n getComputedStyle(element)[axis === 'X' ? 'overflowX' : 'overflowY'] || 'visible';\n if (\n element[axis === 'X' ? 'clientWidth' : 'clientHeight'] &&\n overflowStyle !== 'visible' &&\n overflowStyle !== 'hidden'\n ) {\n scrollParentsList.push(document.documentElement === element ? BOUNDING_RECT_WINDOW : element);\n }\n if (element !== document.documentElement) {\n getScrollParentsChain(\n (element as any).dropdownParentElement ?? element.parentElement ?? document.body,\n axis,\n scrollParentsList\n );\n }\n }\n return scrollParentsList;\n};\n\nconst getCombinedBoundingClientRect = (\n elements: HTMLElement[]\n): { top: number; bottom: number; left: number; right: number } => {\n let top = 0;\n let bottom = 0;\n let left = 0;\n let right = 0;\n if (elements.length > 0) {\n const tops: number[] = [];\n const bottoms: number[] = [];\n const lefts: number[] = [];\n const rights: number[] = [];\n elements.forEach(element => {\n const rect = element.getBoundingClientRect();\n tops.push(rect.top);\n bottoms.push(rect.bottom);\n lefts.push(rect.left);\n rights.push(rect.right);\n });\n top = Math.min(...tops);\n bottom = Math.max(...bottoms);\n left = Math.min(...lefts);\n right = Math.max(...rights);\n }\n return { top, bottom, left, right };\n};\n\nconst calculatePlacementRefOuterBounds = (\n currentAxis: typeof AXIS_X | typeof AXIS_Y,\n placementReferenceElement: HTMLElement | null\n): { upper: number; lower: number } => {\n // The chain of scroll parents of the placement ref element up to and often including the body, checking for possible overlaps.\n const placementRefScrollParents = getScrollParentsChain(\n placementReferenceElement,\n currentAxis.axis\n );\n const placementRefScrollParentRects = placementRefScrollParents.map(item =>\n item.getBoundingClientRect()\n );\n // The biggest upper bound (top, left) of all scroll parents (and viewport = 0), the point before which content will be cut off.\n const placementRefScrollParentsUpperBound = Math.max(\n 0,\n ...placementRefScrollParentRects.map(item => item[currentAxis.upperBound])\n );\n // The smallest lower bound (bottom, right) of all scroll parents (and viewport), the point after which content will be cut off.\n const placementRefScrollParentsLowerBound = Math.min(\n window[currentAxis.windowSize],\n ...placementRefScrollParentRects.map(item => item[currentAxis.lowerBound])\n );\n return { upper: placementRefScrollParentsUpperBound, lower: placementRefScrollParentsLowerBound };\n};\n\nconst calculateDirectionFromPlacementRef = (params: {\n currentAxis: typeof AXIS_X | typeof AXIS_Y;\n positionRegular: { left: number; top: number };\n positionReverse: { left: number; top: number };\n contentSize: number;\n placementRefBounds: { upper: number; lower: number };\n currentDirection: Direction;\n rtl?: boolean;\n}): Direction => {\n const {\n currentAxis,\n positionRegular,\n positionReverse,\n contentSize,\n placementRefBounds,\n currentDirection,\n rtl\n } = params;\n // A number showing how many visible pixels would be available from the placement ref in regular / scroll (down, end) direction\n const placementRefSpaceRegular =\n placementRefBounds.lower - positionRegular[currentAxis.upperBound];\n // A number showing how many visible pixels would be available from the placement ref in reverse (up, start) direction\n const placementRefSpaceReverse =\n positionReverse[currentAxis.upperBound] - placementRefBounds.upper;\n if (placementRefSpaceReverse < contentSize && placementRefSpaceRegular < contentSize) {\n // If there would not be enough room in both directions, always prefer regular / scroll (down, end) direction,\n // since this way the element can expand and scroll while this cannot happen if there's not enough room in front.\n return rtl ? currentAxis.directionReverse : currentAxis.directionRegular;\n } else if (placementRefSpaceReverse < contentSize) {\n return currentAxis.directionRegular;\n } else if (placementRefSpaceRegular < contentSize) {\n return currentAxis.directionReverse;\n }\n // If there would be enough room in both directions, use the set direction (or the regular one if not set).\n return currentDirection;\n};\n\nconst getAbsoluteContentPosition = (params: {\n direction: Direction;\n placement: Placement;\n element: HTMLElement;\n align: Align;\n rtl?: boolean;\n}): { left: number; top: number } => {\n const { direction, placement, element, align, rtl } = params;\n const elementRect = element.getBoundingClientRect();\n\n const start = rtl ? elementRect.right : elementRect.left;\n const end = rtl ? elementRect.left : elementRect.right;\n\n let relativeLeftOffset = 0;\n if (direction === 'start' || direction === 'end') {\n relativeLeftOffset =\n placement.includes('end') || (!placement.includes('start') && direction === 'end')\n ? end\n : start;\n } else {\n if (placement.includes('start')) {\n relativeLeftOffset = start;\n } else {\n if (placement.includes('end') || align === 'end') {\n relativeLeftOffset = end;\n } else if (align === 'center') {\n relativeLeftOffset = elementRect.left + (elementRect.right - elementRect.left) / 2;\n } else {\n relativeLeftOffset = start;\n }\n }\n }\n let relativeTopOffset = 0;\n if (direction === 'up') {\n relativeTopOffset = placement.includes('bottom') ? elementRect.bottom : elementRect.top;\n } else if (direction === 'start' || direction === 'end') {\n relativeTopOffset = !placement.includes('bottom') ? elementRect.top : elementRect.bottom;\n } else {\n relativeTopOffset = placement.includes('top') ? elementRect.top : elementRect.bottom;\n }\n return { left: relativeLeftOffset, top: relativeTopOffset };\n};\n\nconst getRelativeContentPosition = (params: {\n contentElement: HTMLElement;\n direction: Direction;\n placement: Placement;\n placementReferenceElement: HTMLElement;\n align: Align;\n rtl?: boolean;\n}): { left: number; top: number } => {\n const { contentElement, direction, placement, placementReferenceElement, align, rtl } = params;\n const contentParent = (contentElement as HTMLElement).offsetParent ?? document.body;\n const contentParentRect = contentParent.getBoundingClientRect();\n const relativePosition = getAbsoluteContentPosition({\n direction,\n placement,\n element: placementReferenceElement,\n align,\n rtl\n });\n const leftOffset = relativePosition.left - contentParentRect.left + contentParent.scrollLeft;\n const topOffset = relativePosition.top - contentParentRect.top + contentParent.scrollTop;\n return { left: leftOffset, top: topOffset };\n};\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const getContentPositionString = (params: {\n contentElement: HTMLElement;\n direction: Direction;\n placement: Placement;\n placementReferenceElement: HTMLElement;\n align: Align;\n rtl?: boolean;\n}): string => {\n const { contentElement, direction, placement, placementReferenceElement, align, rtl } = params;\n const position = getRelativeContentPosition({\n contentElement,\n direction,\n placement,\n placementReferenceElement,\n align,\n rtl: rtl ?? isRTL()\n });\n return `translate3d(${position.left}px, ${position.top}px, 0px)`;\n};\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const responsivelyCheckDirection = (params: {\n isScrolling?: boolean;\n currentDirection: Direction;\n contentElements: HTMLElement[];\n hostElement: HTMLElement | null;\n placement: Placement;\n placementReferenceElement: HTMLElement;\n align: Align;\n responsiveDirectionToPlacement: boolean;\n closeOnPlacementReferenceScrollOut: boolean;\n closeOnContentScrollOut: boolean;\n minSpaceThresholdFactor?: number;\n placementReverse?: Placement;\n rtl?: boolean;\n}): { responsiveDirection?: Direction; close: boolean } => {\n const {\n isScrolling,\n currentDirection,\n contentElements,\n hostElement,\n placement,\n placementReferenceElement,\n align,\n responsiveDirectionToPlacement,\n closeOnPlacementReferenceScrollOut,\n closeOnContentScrollOut,\n minSpaceThresholdFactor,\n placementReverse,\n rtl\n } = params;\n\n const actualRtl = rtl ?? isRTL();\n\n let responsiveDirection: Direction | undefined;\n\n const actualCurrentDirection = actualRtl\n ? currentDirection === 'start'\n ? 'end'\n : currentDirection === 'end'\n ? 'start'\n : currentDirection\n : currentDirection;\n\n // Defines how the properties to access are named in the current axis.\n const currentAxis = currentDirection === 'start' || currentDirection === 'end' ? AXIS_X : AXIS_Y;\n // The combined (enclosing) client rect for all component contents.\n const contentsRect = getCombinedBoundingClientRect(contentElements);\n // The chain of scroll parents of the container host element up to and often including the body, checking for possible overlaps.\n const containerScrollParents = getScrollParentsChain(hostElement, currentAxis.axis);\n const containerScrollParentRects = containerScrollParents.map(item =>\n item.getBoundingClientRect()\n );\n // The biggest upper bound (top, left) of all scroll parents (and viewport = 0), the point before which content will be cut off.\n const scrollParentsUpperBound = Math.max(\n 0,\n ...containerScrollParentRects.map(item => item[currentAxis.upperBound])\n );\n // The smallest lower bound (bottom, right) of all scroll parents (and viewport), the point after which content will be cut off.\n const scrollParentsLowerBound = Math.min(\n window[currentAxis.windowSize],\n ...containerScrollParentRects.map(item => item[currentAxis.lowerBound])\n );\n\n // The point from which the component will be opened if opening in regular / scroll (down, end) direction.\n // Influenced by `componentPlacementReference`, `componentPlacement` and `componentAlign`.\n const positionRegular = getAbsoluteContentPosition({\n direction: currentAxis.directionRegular,\n placement,\n element: placementReferenceElement,\n align\n });\n // The point from which the component will be opened if opening in reverse (up, start) direction.\n // Influenced by `componentPlacementReference`, `componentPlacement` and `componentAlign`.\n const positionReverse = getAbsoluteContentPosition({\n direction: currentAxis.directionReverse,\n placement: placementReverse ?? placement,\n element: placementReferenceElement,\n align\n });\n\n // The enclosing size (height, width) of all contents combined\n const contentsSize = contentsRect[currentAxis.lowerBound] - contentsRect[currentAxis.upperBound];\n\n // A number showing how many visible pixels would be available in regular / scroll (down, end) direction\n const spaceRegular = scrollParentsLowerBound - positionRegular[currentAxis.upperBound];\n // A number showing how many visible pixels would be available in reverse (up, start) direction\n const spaceReverse = positionReverse[currentAxis.upperBound] - scrollParentsUpperBound;\n\n let placementRefBounds: { upper: number; lower: number } | undefined;\n if (spaceReverse < contentsSize && spaceRegular < contentsSize) {\n // If there would not be enough room in both directions, always prefer regular / scroll (down, end) direction,\n // since this way the element can expand and scroll while this cannot happen if there's not enough room in front.\n responsiveDirection = actualRtl ? currentAxis.directionReverse : currentAxis.directionRegular;\n } else if (minSpaceThresholdFactor) {\n const contentsSizeWithThreshold = contentsSize + minSpaceThresholdFactor * contentsSize;\n if (spaceReverse < contentsSizeWithThreshold && spaceRegular < contentsSizeWithThreshold) {\n // If a threshold is set and there would not be enough space including the threshold in both directions\n // use the direction with more space\n if (spaceReverse < spaceRegular) {\n responsiveDirection = currentAxis.directionRegular;\n } else {\n responsiveDirection = currentAxis.directionReverse;\n }\n } else if (spaceReverse < contentsSizeWithThreshold) {\n responsiveDirection = currentAxis.directionRegular;\n } else if (spaceRegular < contentsSizeWithThreshold) {\n responsiveDirection = currentAxis.directionReverse;\n }\n }\n if (!responsiveDirection) {\n if (spaceReverse < contentsSize) {\n responsiveDirection = currentAxis.directionRegular;\n } else if (spaceRegular < contentsSize) {\n responsiveDirection = currentAxis.directionReverse;\n } else {\n if (\n responsiveDirectionToPlacement &&\n placementReferenceElement &&\n hostElement !== placementReferenceElement\n ) {\n placementRefBounds = calculatePlacementRefOuterBounds(\n currentAxis,\n placementReferenceElement\n );\n responsiveDirection = calculateDirectionFromPlacementRef({\n currentAxis,\n positionRegular,\n positionReverse,\n contentSize: contentsSize,\n placementRefBounds,\n currentDirection: actualCurrentDirection,\n rtl: actualRtl\n });\n } else {\n // If there would be enough room in both directions, use the set direction (or the regular one if not set).\n responsiveDirection = actualCurrentDirection;\n }\n }\n }\n\n let close = false;\n if (isScrolling) {\n // Check if the container host or placement reference is hidden and close the component. (Mostly done when scrolling.)\n if (\n closeOnPlacementReferenceScrollOut &&\n placementReferenceElement &&\n hostElement !== placementReferenceElement\n ) {\n placementRefBounds ??= calculatePlacementRefOuterBounds(\n currentAxis,\n placementReferenceElement\n );\n const placementRefRect = placementReferenceElement.getBoundingClientRect();\n // A number showing how many visible pixels of the placement ref would be shown in reverse (up, start) direction\n const placementRefVisibleTop =\n placementRefRect[currentAxis.lowerBound] - placementRefBounds.upper;\n // A number showing how many visible pixels of the placement ref would be shown in regular / scroll (down, end) direction\n const placementRefVisibleBottom =\n placementRefBounds.lower - placementRefRect[currentAxis.upperBound];\n if (placementRefVisibleTop < 0 || placementRefVisibleBottom < 0) {\n // Close the component if the placement ref is not visible.\n close = true;\n }\n }\n if (!close && closeOnContentScrollOut) {\n // A number showing how many visible pixels would be available the other way if set to regular / scroll (down, end) direction\n const spaceRegularOtherSide =\n scrollParentsLowerBound - positionReverse[currentAxis.upperBound];\n // A number showing how many visible pixels would be available the other way if set to reverse (up, start) direction\n const spaceReverseOtherSide =\n positionRegular[currentAxis.upperBound] - scrollParentsUpperBound;\n if (spaceRegularOtherSide < 0 || spaceReverseOtherSide < 0) {\n // Close the component if there is not enough space even in the other direction.\n close = true;\n }\n }\n }\n responsiveDirection = actualRtl\n ? responsiveDirection === 'start'\n ? 'end'\n : responsiveDirection === 'end'\n ? 'start'\n : responsiveDirection\n : responsiveDirection;\n return { responsiveDirection, close };\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { TrackByFunction } from '@angular/core';\n\nconst trackByIdentity = <T>(index: number, item: T): any => item;\n\n/**\n * Creates a trackByFunction for ngFor, that tracks an Item by its identity.\n * It should be used with a generic parameter, to generate a proper type:\n *\n * @example\n * ```ts\n * @Input() trackByFunction = buildTrackByIdentity<ItemType>()\n * ```\n * @deprecated use the new control-flow syntax\n */\nexport const buildTrackByIdentity = <T>(): TrackByFunction<T> => trackByIdentity;\n\nconst trackByIndex = (index: number): number => index;\n\n/**\n * Creates a trackByFunction for ngFor, that tracks an Item by its index.\n * It should be used with a generic parameter, to generate a proper type:\n *\n * @example\n * ```\n * @Input() trackByFunction = buildTrackByIdentity<ItemType>()\n * ```\n * @deprecated use the new control-flow syntax\n */\nexport const buildTrackByIndex = <T>(): TrackByFunction<T> => trackByIndex;\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\n// Adds a window listener which can optionally be active, returns the unregister function.\n// For some events (e.g. \"touchmove\") an explicit \"passive: false\" is required in order to\n// be able to do $event.preventDefault(). Unfortunately there is no way in Angular to pass\n// options to Rendrer2/EventManager event handling.\nexport const listenGlobal = (\n eventName: string,\n handler: (e: any) => void,\n active?: boolean\n): (() => void) => {\n let opts: any = false;\n if (active !== undefined) {\n opts = { passive: !active };\n }\n\n window.addEventListener(eventName, handler, opts);\n return () => {\n window.removeEventListener(eventName, handler, opts);\n };\n};\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\n/* eslint-disable prefer-arrow/prefer-arrow-functions */\nimport {\n ConnectedOverlayPositionChange,\n ConnectionPositionPair,\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayConfig,\n OverlayRef,\n PositionStrategy\n} from '@angular/cdk/overlay';\nimport { ElementRef } from '@angular/core';\n\nimport {\n positionBottomEnd,\n positionBottomStart,\n positions,\n positionTopEnd,\n positionTopStart\n} from '../models/positions.model';\nimport { isRTL } from './rtl';\n\nexport function makePositionStrategy(\n elementRef: ElementRef<any> | undefined,\n overlay: Overlay,\n placement: keyof typeof positions | ConnectionPositionPair[],\n constrain = false,\n center = true\n): PositionStrategy {\n if (!elementRef?.nativeElement) {\n return overlay.position().global().centerHorizontally().centerVertically();\n }\n\n const popoverPositions = getOverlayPositions(elementRef, placement, center);\n const positionStrategy = overlay\n .position()\n .flexibleConnectedTo(elementRef)\n .withPush(false)\n .withGrowAfterOpen(true)\n .withFlexibleDimensions(constrain)\n .withPositions(popoverPositions);\n if (constrain) {\n positionStrategy.withViewportMargin(8);\n }\n return positionStrategy;\n}\n\nexport function makeOverlay(\n positionStrategy: PositionStrategy,\n overlay: Overlay,\n hasBackdrop: boolean\n): OverlayRef {\n const config = new OverlayConfig();\n config.positionStrategy = positionStrategy;\n config.scrollStrategy = overlay.scrollStrategies.reposition();\n config.direction = isRTL() ? 'rtl' : 'ltr';\n if (hasBackdrop) {\n config.hasBackdrop = true;\n config.backdropClass = 'cdk-overlay-transparent-backdrop';\n } else {\n config.hasBackdrop = false;\n }\n return overlay.create(config);\n}\n\nexport function getOverlay(\n elementRef: ElementRef<any>,\n overlay: Overlay,\n hasBackdrop: boolean,\n placement: keyof typeof positions | ConnectionPositionPair[],\n constrain = false,\n center = true\n): OverlayRef {\n const positionStrategy = makePositionStrategy(elementRef, overlay, placement, constrain, center);\n return makeOverlay(positionStrategy, overlay, hasBackdrop);\n}\n\nexport function getPositionStrategy(\n overlayref: OverlayRef\n): FlexibleConnectedPositionStrategy | undefined {\n return overlayref.getConfig().positionStrategy as FlexibleConnectedPositionStrategy;\n}\n\nexport function getOverlayPositions(\n elementRef: ElementRef<any>,\n placement: keyof typeof positions | ConnectionPositionPair[],\n center = true\n): ConnectionPositionPair[] {\n if (elementRef.nativeElement && center) {\n const rtl = isRTL();\n const halfWidth = Math.round(elementRef.nativeElement.offsetWidth / 2);\n positionTopStart.offsetX = positionBottomStart.offsetX = halfWidth * (rtl ? 1 : -1);\n positionTopEnd.offsetX = positionBottomEnd.offsetX = halfWidth * (rtl ? -1 : 1);\n } else {\n positionTopStart.offsetX = undefined;\n positionTopEnd.offsetX = undefined;\n positionBottomStart.offsetX = undefined;\n positionBottomEnd.offsetX = undefined;\n }\n return typeof placement === 'string' ? positions[placement] : placement;\n}\n\nexport function hasTrigger(trigger: string, triggers?: string): boolean {\n return (triggers?.split(/\\s+/) ?? []).includes(trigger);\n}\n\nexport interface OverlayArrowPosition {\n left?: number;\n right?: number;\n}\n/**\n * calculates the arrow position from left/right for tooltips, popovers, etc\n * @param change - the event from the position strategy\n * @param overlay - ElementRef for the overlay content, i.e. the popover/tooltip component\n * @param anchor - ElementRef for the anchoring element, i.e. the trigger of the popover/tooltip\n */\nexport function calculateOverlayArrowPosition(\n change: ConnectedOverlayPositionChange,\n overlay: ElementRef,\n anchor?: ElementRef\n): OverlayArrowPosition {\n if (anchor && ['bottom', 'top'].includes(change.connectionPair.originY)) {\n // Calculate offset to the anchor element center\n const anchorRect = anchor.nativeElement.getBoundingClientRect();\n const overlayRect = overlay.nativeElement.getBoundingClientRect();\n const center = anchorRect.left + anchorRect.width / 2;\n // Position arrow centered to the anchor element\n\n // prettier-ignore\n return isRTL()\n ? { right: overlayRect.right - center }\n : { left: center - overlayRect.left };\n }\n\n const offsetX = change.connectionPair.offsetX;\n if (offsetX) {\n // prettier-ignore\n return offsetX < 0\n ? { left: -offsetX }\n : { right: offsetX };\n }\n return {};\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './animation.helpers';\nexport * from './positioning.helpers';\nexport * from './rtl';\nexport * from './track-by.helper';\nexport * from './global-events.helpers';\nexport * from './overlay-helper';\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { Type } from '@angular/core';\n\n// note: this _must_ be a function, not an arrow\n// eslint-disable-next-line\nexport function WebComponentContentChildren<T>(host: Type<T>) {\n // holds the Type information of child component and the property name of parent component which is used to hold it.\n return (...args: any) => {\n args[0].__contentQuery = {\n host,\n prop: args[1]\n };\n };\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './webcomponent.decorator';\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './services';\nexport * from './models';\nexport * from './helpers';\nexport * from './decorators';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AAaH;;;AAGG;MAEU,YAAY,CAAA;AACf,IAAA,MAAM,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC;AAE5C,IAAA,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,C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