@siemens/element-ng 47.4.0 → 47.6.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 (198) hide show
  1. package/breadcrumb-router/index.d.ts +8 -0
  2. package/breadcrumb-router/package.json +3 -0
  3. package/breadcrumb-router/si-breadcrumb-default-resolver.service.d.ts +23 -0
  4. package/breadcrumb-router/si-breadcrumb-router.component.d.ts +30 -0
  5. package/breadcrumb-router/si-breadcrumb-router.model.d.ts +53 -0
  6. package/breadcrumb-router/si-breadcrumb-router.module.d.ts +7 -0
  7. package/common/models/status-type.model.d.ts +2 -0
  8. package/datatable/index.d.ts +42 -0
  9. package/datatable/package.json +3 -0
  10. package/datatable/si-datatable-interaction.directive.d.ts +34 -0
  11. package/datatable/si-datatable.module.d.ts +7 -0
  12. package/date-range-filter/si-date-range-filter.component.d.ts +5 -1
  13. package/fesm2022/siemens-element-ng-breadcrumb-router.mjs +263 -0
  14. package/fesm2022/siemens-element-ng-breadcrumb-router.mjs.map +1 -0
  15. package/fesm2022/siemens-element-ng-breadcrumb.mjs +1 -1
  16. package/fesm2022/siemens-element-ng-breadcrumb.mjs.map +1 -1
  17. package/fesm2022/siemens-element-ng-common.mjs.map +1 -1
  18. package/fesm2022/siemens-element-ng-datatable.mjs +173 -0
  19. package/fesm2022/siemens-element-ng-datatable.mjs.map +1 -0
  20. package/fesm2022/siemens-element-ng-date-range-filter.mjs +26 -5
  21. package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -1
  22. package/fesm2022/siemens-element-ng-filtered-search.mjs +1139 -0
  23. package/fesm2022/siemens-element-ng-filtered-search.mjs.map +1 -0
  24. package/fesm2022/siemens-element-ng-formly.mjs +935 -0
  25. package/fesm2022/siemens-element-ng-formly.mjs.map +1 -0
  26. package/fesm2022/siemens-element-ng-icon.mjs +29 -15
  27. package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
  28. package/fesm2022/siemens-element-ng-list-details.mjs +390 -0
  29. package/fesm2022/siemens-element-ng-list-details.mjs.map +1 -0
  30. package/fesm2022/siemens-element-ng-loading-spinner.mjs +15 -12
  31. package/fesm2022/siemens-element-ng-loading-spinner.mjs.map +1 -1
  32. package/fesm2022/siemens-element-ng-main-detail-container.mjs +269 -0
  33. package/fesm2022/siemens-element-ng-main-detail-container.mjs.map +1 -0
  34. package/fesm2022/siemens-element-ng-modal.mjs +5 -2
  35. package/fesm2022/siemens-element-ng-modal.mjs.map +1 -1
  36. package/fesm2022/siemens-element-ng-navbar-vertical.mjs +802 -0
  37. package/fesm2022/siemens-element-ng-navbar-vertical.mjs.map +1 -0
  38. package/fesm2022/siemens-element-ng-password-strength.mjs +22 -16
  39. package/fesm2022/siemens-element-ng-password-strength.mjs.map +1 -1
  40. package/fesm2022/siemens-element-ng-phone-number.mjs +426 -0
  41. package/fesm2022/siemens-element-ng-phone-number.mjs.map +1 -0
  42. package/fesm2022/siemens-element-ng-resize-observer.mjs +6 -3
  43. package/fesm2022/siemens-element-ng-resize-observer.mjs.map +1 -1
  44. package/fesm2022/siemens-element-ng-result-details-list.mjs +74 -0
  45. package/fesm2022/siemens-element-ng-result-details-list.mjs.map +1 -0
  46. package/fesm2022/siemens-element-ng-shadow-root.mjs +70 -0
  47. package/fesm2022/siemens-element-ng-shadow-root.mjs.map +1 -0
  48. package/fesm2022/siemens-element-ng-side-panel.mjs +554 -0
  49. package/fesm2022/siemens-element-ng-side-panel.mjs.map +1 -0
  50. package/fesm2022/siemens-element-ng-status-bar.mjs +348 -0
  51. package/fesm2022/siemens-element-ng-status-bar.mjs.map +1 -0
  52. package/fesm2022/siemens-element-ng-tabs-next.mjs +356 -0
  53. package/fesm2022/siemens-element-ng-tabs-next.mjs.map +1 -0
  54. package/fesm2022/siemens-element-ng-tabs.mjs +1 -1
  55. package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -1
  56. package/fesm2022/siemens-element-ng-threshold.mjs +319 -0
  57. package/fesm2022/siemens-element-ng-threshold.mjs.map +1 -0
  58. package/fesm2022/siemens-element-ng-tour.mjs +384 -0
  59. package/fesm2022/siemens-element-ng-tour.mjs.map +1 -0
  60. package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
  61. package/fesm2022/siemens-element-ng-tree-view.mjs +2936 -0
  62. package/fesm2022/siemens-element-ng-tree-view.mjs.map +1 -0
  63. package/fesm2022/siemens-element-ng-wizard.mjs +2 -2
  64. package/fesm2022/siemens-element-ng-wizard.mjs.map +1 -1
  65. package/filtered-search/index.d.ts +7 -0
  66. package/filtered-search/package.json +3 -0
  67. package/filtered-search/si-filtered-search-helper.d.ts +22 -0
  68. package/filtered-search/si-filtered-search-value.component.d.ts +53 -0
  69. package/filtered-search/si-filtered-search.component.d.ts +329 -0
  70. package/filtered-search/si-filtered-search.model.d.ts +139 -0
  71. package/filtered-search/si-filtered-search.module.d.ts +7 -0
  72. package/filtered-search/values/date-value/si-filtered-search-date-value.component.d.ts +57 -0
  73. package/filtered-search/values/si-filtered-search-value.base.d.ts +27 -0
  74. package/filtered-search/values/typeahead/si-filtered-search-typeahead.component.d.ts +45 -0
  75. package/formly/fields/button/si-formly-button.component.d.ts +7 -0
  76. package/formly/fields/date-range/si-formly-date-range.component.d.ts +6 -0
  77. package/formly/fields/datetime/si-formly-datetime.component.d.ts +13 -0
  78. package/formly/fields/email/si-formly-email.component.d.ts +6 -0
  79. package/formly/fields/ip-input/si-formly-ip-input.component.d.ts +6 -0
  80. package/formly/fields/number/si-formly-number.component.d.ts +6 -0
  81. package/formly/fields/password/si-formly-password.component.d.ts +6 -0
  82. package/formly/fields/select/si-formly-select.component.d.ts +6 -0
  83. package/formly/fields/text/si-formly-text-display.component.d.ts +7 -0
  84. package/formly/fields/textarea/si-formly-textarea.component.d.ts +18 -0
  85. package/formly/fields/time/si-formly-time.component.d.ts +13 -0
  86. package/formly/index.d.ts +6 -0
  87. package/formly/package.json +3 -0
  88. package/formly/si-formly-translate.extension.d.ts +11 -0
  89. package/formly/si-formly.component.d.ts +62 -0
  90. package/formly/si-formly.module.d.ts +35 -0
  91. package/formly/structural/si-formly-accordion/si-formly-accordion.component.d.ts +13 -0
  92. package/formly/structural/si-formly-array/si-formly-array.component.d.ts +6 -0
  93. package/formly/structural/si-formly-object/si-formly-object.component.d.ts +6 -0
  94. package/formly/structural/si-formly-object-grid/si-formly-object-grid.component.d.ts +22 -0
  95. package/formly/structural/si-formly-object-grid/si-formly-object-grid.model.d.ts +21 -0
  96. package/formly/structural/si-formly-object-plain/si-formly-object-plain.component.d.ts +6 -0
  97. package/formly/structural/si-formly-tabset/si-formly-object-tabset.component.d.ts +7 -0
  98. package/formly/utils.d.ts +6 -0
  99. package/formly/wrapper/si-formly-fieldset.component.d.ts +8 -0
  100. package/formly/wrapper/si-formly-form-field-provider.directive.d.ts +19 -0
  101. package/formly/wrapper/si-formly-horizontal-wrapper.component.d.ts +6 -0
  102. package/formly/wrapper/si-formly-icon-wrapper.component.d.ts +6 -0
  103. package/formly/wrapper/si-formly-wrapper.component.d.ts +8 -0
  104. package/icon/element-icons.d.ts +5 -0
  105. package/list-details/index.d.ts +12 -0
  106. package/list-details/package.json +3 -0
  107. package/list-details/si-details-pane/si-details-pane.component.d.ts +8 -0
  108. package/list-details/si-details-pane-body/si-details-pane-body.component.d.ts +6 -0
  109. package/list-details/si-details-pane-footer/si-details-pane-footer.component.d.ts +6 -0
  110. package/list-details/si-details-pane-header/si-details-pane-header.component.d.ts +38 -0
  111. package/list-details/si-list-details.component.d.ts +100 -0
  112. package/list-details/si-list-pane/si-list-pane.component.d.ts +10 -0
  113. package/list-details/si-list-pane-body/si-list-pane-body.component.d.ts +6 -0
  114. package/list-details/si-list-pane-header/si-list-pane-header.component.d.ts +6 -0
  115. package/loading-spinner/si-loading-spinner.directive.d.ts +3 -2
  116. package/main-detail-container/index.d.ts +6 -0
  117. package/main-detail-container/package.json +3 -0
  118. package/main-detail-container/si-main-detail-container.component.d.ts +151 -0
  119. package/main-detail-container/si-main-detail-container.module.d.ts +7 -0
  120. package/navbar-vertical/index.d.ts +7 -0
  121. package/navbar-vertical/package.json +3 -0
  122. package/navbar-vertical/si-navbar-vertical-divider.component.d.ts +5 -0
  123. package/navbar-vertical/si-navbar-vertical-group-trigger.directive.d.ts +38 -0
  124. package/navbar-vertical/si-navbar-vertical-group.component.d.ts +16 -0
  125. package/navbar-vertical/si-navbar-vertical-header.component.d.ts +6 -0
  126. package/navbar-vertical/si-navbar-vertical-item-legacy.component.d.ts +17 -0
  127. package/navbar-vertical/si-navbar-vertical-item.component.d.ts +21 -0
  128. package/navbar-vertical/si-navbar-vertical.component.d.ts +148 -0
  129. package/navbar-vertical/si-navbar-vertical.model.d.ts +77 -0
  130. package/navbar-vertical/si-navbar-vertical.module.d.ts +7 -0
  131. package/navbar-vertical/si-navbar-vertical.provider.d.ts +7 -0
  132. package/package.json +93 -9
  133. package/password-strength/si-password-strength.directive.d.ts +11 -0
  134. package/phone-number/index.d.ts +7 -0
  135. package/phone-number/package.json +3 -0
  136. package/phone-number/si-phone-number-input-select.directive.d.ts +10 -0
  137. package/phone-number/si-phone-number-input.component.d.ts +137 -0
  138. package/phone-number/si-phone-number-input.models.d.ts +48 -0
  139. package/phone-number/si-phone-number-input.module.d.ts +7 -0
  140. package/resize-observer/si-resize-observer.directive.d.ts +3 -1
  141. package/result-details-list/index.d.ts +7 -0
  142. package/result-details-list/package.json +3 -0
  143. package/result-details-list/si-result-details-list.component.d.ts +14 -0
  144. package/result-details-list/si-result-details-list.datamodel.d.ts +48 -0
  145. package/result-details-list/si-result-details-list.module.d.ts +7 -0
  146. package/shadow-root/index.d.ts +5 -0
  147. package/shadow-root/package.json +3 -0
  148. package/shadow-root/si-shadow-root.directive.d.ts +39 -0
  149. package/side-panel/index.d.ts +9 -0
  150. package/side-panel/package.json +3 -0
  151. package/side-panel/si-side-panel-content.component.d.ts +105 -0
  152. package/side-panel/si-side-panel.component.d.ts +108 -0
  153. package/side-panel/si-side-panel.module.d.ts +8 -0
  154. package/side-panel/si-side-panel.service.d.ts +45 -0
  155. package/side-panel/side-panel.model.d.ts +16 -0
  156. package/status-bar/index.d.ts +7 -0
  157. package/status-bar/package.json +3 -0
  158. package/status-bar/si-status-bar-item/index.d.ts +6 -0
  159. package/status-bar/si-status-bar-item/si-status-bar-item.component.d.ts +22 -0
  160. package/status-bar/si-status-bar-item/si-status-bar-item.model.d.ts +33 -0
  161. package/status-bar/si-status-bar.component.d.ts +116 -0
  162. package/status-bar/si-status-bar.module.d.ts +7 -0
  163. package/tabs-next/index.d.ts +7 -0
  164. package/tabs-next/package.json +3 -0
  165. package/tabs-next/si-tab-next-base.directive.d.ts +63 -0
  166. package/tabs-next/si-tab-next-link.component.d.ts +16 -0
  167. package/tabs-next/si-tab-next.component.d.ts +16 -0
  168. package/tabs-next/si-tabs-tokens.d.ts +7 -0
  169. package/tabs-next/si-tabset-next.component.d.ts +57 -0
  170. package/template-i18n.json +45 -0
  171. package/threshold/index.d.ts +6 -0
  172. package/threshold/package.json +3 -0
  173. package/threshold/si-readonly-threshold-option.component.d.ts +11 -0
  174. package/threshold/si-threshold.component.d.ts +147 -0
  175. package/threshold/si-threshold.module.d.ts +7 -0
  176. package/tour/index.d.ts +6 -0
  177. package/tour/package.json +3 -0
  178. package/tour/si-tour-highlight.component.d.ts +15 -0
  179. package/tour/si-tour-token.model.d.ts +27 -0
  180. package/tour/si-tour.component.d.ts +31 -0
  181. package/tour/si-tour.model.d.ts +51 -0
  182. package/tour/si-tour.service.d.ts +62 -0
  183. package/translate/si-translatable-keys.interface.d.ts +45 -0
  184. package/tree-view/drag-drop.util.d.ts +32 -0
  185. package/tree-view/index.d.ts +12 -0
  186. package/tree-view/package.json +3 -0
  187. package/tree-view/si-tree-view-converter.service.d.ts +41 -0
  188. package/tree-view/si-tree-view-item/si-tree-view-item.component.d.ts +105 -0
  189. package/tree-view/si-tree-view-item/si-tree-view-item.directive.d.ts +24 -0
  190. package/tree-view/si-tree-view-item-context.d.ts +11 -0
  191. package/tree-view/si-tree-view-item-height.service.d.ts +49 -0
  192. package/tree-view/si-tree-view-item-template.directive.d.ts +18 -0
  193. package/tree-view/si-tree-view-virtualization.service.d.ts +150 -0
  194. package/tree-view/si-tree-view.component.d.ts +466 -0
  195. package/tree-view/si-tree-view.model.d.ts +146 -0
  196. package/tree-view/si-tree-view.module.d.ts +10 -0
  197. package/tree-view/si-tree-view.service.d.ts +55 -0
  198. package/tree-view/si-tree-view.utils.d.ts +46 -0
@@ -1 +1 @@
1
- {"version":3,"file":"siemens-element-ng-breadcrumb.mjs","sources":["../../../../projects/element-ng/breadcrumb/si-breadcrumb-item-template.directive.ts","../../../../projects/element-ng/breadcrumb/si-breadcrumb.component.ts","../../../../projects/element-ng/breadcrumb/si-breadcrumb.component.html","../../../../projects/element-ng/breadcrumb/si-breadcrumb.module.ts","../../../../projects/element-ng/breadcrumb/index.ts","../../../../projects/element-ng/breadcrumb/siemens-element-ng-breadcrumb.ts"],"sourcesContent":["/**\n * Copyright Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nimport { Directive } from '@angular/core';\n\nimport { EnumeratedBreadcrumbItem } from './breadcrumb-item.model';\n\n@Directive({ selector: '[siBreadcrumbItemTemplate]' })\nexport class SiBreadcrumbItemTemplateDirective {\n static ngTemplateContextGuard(\n directive: SiBreadcrumbItemTemplateDirective,\n context: unknown\n ): context is { item: EnumeratedBreadcrumbItem; title?: string } {\n return true;\n }\n}\n","/**\n * Copyright Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostListener,\n inject,\n input,\n OnChanges,\n OnDestroy,\n viewChild,\n viewChildren\n} from '@angular/core';\nimport {\n addIcons,\n elementBreadcrumbRoot,\n elementRight2,\n SiIconNextComponent\n} from '@siemens/element-ng/icon';\nimport { SiLinkDirective } from '@siemens/element-ng/link';\nimport { SiResizeObserverDirective } from '@siemens/element-ng/resize-observer';\nimport { SiTranslateModule, SiTranslateService } from '@siemens/element-translate-ng/translate';\nimport { merge, of, Subscription } from 'rxjs';\nimport { switchMap } from 'rxjs/operators';\n\nimport { BreadcrumbItem, EnumeratedBreadcrumbItem } from './breadcrumb-item.model';\nimport { SiBreadcrumbItemTemplateDirective } from './si-breadcrumb-item-template.directive';\n\n/**\n * Defines how many items should be displayed at the end of the breadcrumb if possible.\n */\nconst NUMBER_OF_SHOWN_ITEMS_AT_END = 2;\n\n/**\n * Defines how long a display item can be without it being shortened.\n * Cannot be lower than 4.\n * If this is 0, titles will not be shortened\n */\nconst ITEM_MAX_LENGTH = 30;\n\n/**\n * Defines how many characters of an item are always displayed in the beginning.\n * Must be at least 2 less than ITEM_MAX_LENGTH\n */\nconst ITEM_CHARACTERS_ALWAYS_DISPLAYED_IN_BEGINNING = 10;\n\n/**\n * Defines the width of the root icon in pixels.\n */\nconst ROOT_ICON_WIDTH = 24;\n\nlet controlIdCounter = 1;\n\n@Component({\n selector: 'si-breadcrumb',\n templateUrl: './si-breadcrumb.component.html',\n styleUrl: './si-breadcrumb.component.scss',\n imports: [\n NgTemplateOutlet,\n SiIconNextComponent,\n SiLinkDirective,\n SiResizeObserverDirective,\n SiTranslateModule,\n SiBreadcrumbItemTemplateDirective\n ]\n})\nexport class SiBreadcrumbComponent implements OnChanges, OnDestroy {\n /** Array of breadcrumb items. */\n readonly items = input.required<BreadcrumbItem[]>();\n /**\n * Shows the \"root\" route as the provided title string instead of an icon.\n *\n * @defaultValue false\n */\n readonly showRootAsText = input(false, { transform: booleanAttribute });\n /**\n * Aria label for the main breadcrumb navigation. Needed for a11y.\n *\n * @defaultValue\n * ```\n * $localize`:@@SI_BREADCRUMB:Breadcrumbs`\n * ```\n */\n readonly ariaLabel = input($localize`:@@SI_BREADCRUMB:Breadcrumbs`);\n\n private translationSubscription?: Subscription;\n private itemsProcessed = false;\n private numberOfItems = 0;\n\n protected itemsShown: EnumeratedBreadcrumbItem[] = [];\n protected itemsHidden: EnumeratedBreadcrumbItem[] = [];\n protected breadcrumbShortened = false;\n protected ellipsesLevel = 0;\n // Record to allow for -1 (root).\n protected breadcrumbDropdownOpen: number | undefined = undefined;\n protected addExpandDropdown = false;\n protected controlId = `__si-breadcrumb-${controlIdCounter++}-`;\n protected readonly icons = addIcons({ elementBreadcrumbRoot, elementRight2 });\n\n private readonly breadcrumbElement = viewChild.required<ElementRef>('breadcrumb');\n private readonly breadcrumbElements = viewChildren<ElementRef>('breadcrumbItem');\n\n private changeDetector = inject(ChangeDetectorRef);\n private translate = inject(SiTranslateService);\n\n ngOnChanges(): void {\n // Reprocess items on every change and on init\n this.processItems();\n }\n\n ngOnDestroy(): void {\n this.translationSubscription?.unsubscribe();\n }\n\n private processItems(): void {\n this.numberOfItems = this.items().length;\n\n this.translationSubscription?.unsubscribe();\n if (this.numberOfItems) {\n this.translationSubscription = merge(this.translate.translationChange, of(undefined))\n .pipe(switchMap(() => this.translate.translateAsync(this.items().map(item => item.title))))\n .subscribe(translatedTitles => {\n // Add the level to the items and check if they need to be shortened.\n // If they need to be shortened, shorten them at a convenient place.\n // Set the lastItem tag to true for the last item\n let counter = -1;\n const enumeratedItems = this.items().map(item => {\n counter++;\n const title = translatedTitles[item.title];\n let shortened = false;\n let shortenedTitle = title;\n // If this is not the last item and the title too long, shorten the title\n if (counter !== this.numberOfItems - 1 && title && title.length > ITEM_MAX_LENGTH) {\n shortened = true;\n // This regex gets the last space, dash or underscore.\n const regexMatch = title\n .slice(ITEM_CHARACTERS_ALWAYS_DISPLAYED_IN_BEGINNING, ITEM_MAX_LENGTH - 2)\n .match(/^.*[- _](?=.*?$)/);\n if (regexMatch) {\n shortenedTitle = title.slice(\n 0,\n ITEM_CHARACTERS_ALWAYS_DISPLAYED_IN_BEGINNING + regexMatch[0].length - 1\n );\n } else {\n shortenedTitle = title.slice(0, ITEM_MAX_LENGTH - 3);\n }\n }\n\n // If the root element should be displayed as text, set level not to 0.\n // This is used to distinguish in the template between icon and text.\n const level = counter === 0 && this.showRootAsText() ? -1 : counter;\n\n return {\n ...item,\n title,\n level,\n hide: false,\n shortened,\n shortenedTitle,\n lastItem: counter === this.numberOfItems - 1\n };\n });\n this.itemsShown = enumeratedItems;\n this.itemsHidden = [];\n this.breadcrumbShortened = false;\n this.breadcrumbDropdownOpen = undefined;\n this.itemsProcessed = true;\n this.resetBreadcrumb();\n });\n } else {\n this.itemsShown = [];\n this.itemsHidden = [];\n this.breadcrumbShortened = false;\n this.breadcrumbDropdownOpen = undefined;\n this.itemsProcessed = true;\n this.resetBreadcrumb();\n }\n }\n\n /*\n * Toggle dropdown (on click of ellipses), either for\n * the general dropdown list if itemLevel is at ellipsesLevel\n * or otherwise the name expansion at the specified item level.\n * Close any open dropdown before opening a new one.\n */\n protected toggleBreadcrumbDropdown(itemLevel: number): void {\n this.breadcrumbDropdownOpen = this.breadcrumbDropdownOpen === itemLevel ? undefined : itemLevel;\n }\n\n // Close dropdown on click anywhere else\n @HostListener('document:click', ['$event.target'])\n protected documentClick(targetElement: any): void {\n if (this.breadcrumbDropdownOpen) {\n if (!this.breadcrumbElement().nativeElement.contains(targetElement)) {\n // Close all dropdowns.\n this.breadcrumbDropdownOpen = undefined;\n }\n }\n }\n\n protected resetBreadcrumb(): void {\n if (this.itemsProcessed) {\n this.numberOfItems = this.items().length;\n // Add an additional the ellipses item to the end of the shownItems (breadcrumb items).\n // Disable addExpandDropdown for now, to make every item a proper SiBreadcrumbItemComponent.\n const ellipsesItem = { title: '...', level: this.numberOfItems, shortenedTitle: '' };\n this.itemsShown.push(ellipsesItem);\n if (this.breadcrumbShortened) {\n // If the breadcrumb was shortened before, remove the ellipses and add back itemsHidden (breadcrumb dropdown items).\n this.breadcrumbShortened = false;\n this.itemsShown.splice(this.ellipsesLevel, 1, ...this.itemsHidden);\n this.itemsHidden = [];\n }\n this.addExpandDropdown = false;\n // Wait for the next change detection cycle to measure the updated item length.\n this.changeDetector.detectChanges();\n this.calculateBreadcrumb();\n }\n }\n\n private calculateBreadcrumb(): void {\n this.addExpandDropdown = true;\n const maxWidth = this.breadcrumbElement().nativeElement.clientWidth;\n const breadcrumbElementsList = this.breadcrumbElements().map(item => item);\n // Measure the length of the last additional ellipses item, then remove it from itemsShown (breadcrumb items).\n const ellipsesWidth = breadcrumbElementsList[this.numberOfItems].nativeElement.offsetWidth;\n this.itemsShown.splice(this.numberOfItems, 1);\n let currentWidth = this.showRootAsText() ? 0 : ROOT_ICON_WIDTH;\n const numberOfItemsKeptAtEnd = Math.min(NUMBER_OF_SHOWN_ITEMS_AT_END, this.numberOfItems - 1);\n let reverseCounter = this.numberOfItems;\n // Test for numberOfItemsKeptAtEnd items from the end if they still fit, if not, set breadcrumbShortened to true.\n breadcrumbElementsList\n .slice(this.numberOfItems - numberOfItemsKeptAtEnd, this.numberOfItems)\n .reverse()\n .map(item => {\n if (!this.breadcrumbShortened) {\n const currentItemWidth = item.nativeElement.offsetWidth;\n if (currentWidth + currentItemWidth > maxWidth) {\n this.breadcrumbShortened = true;\n // Test if the ellipses item still fits, if not remove last (actually next in original order) item as well.\n if (currentWidth + ellipsesWidth > maxWidth) {\n reverseCounter++;\n }\n } else {\n currentWidth += currentItemWidth;\n reverseCounter--;\n }\n }\n });\n\n const start = this.showRootAsText() ? 0 : 1;\n let counter = start;\n // If breadcrumbShortened is not true yet, test for the rest of the items from the start\n // Whether they still fit, if not, set breadcrumbShortened to true.\n breadcrumbElementsList.slice(start, this.numberOfItems - numberOfItemsKeptAtEnd).map(item => {\n if (!this.breadcrumbShortened) {\n const currentItemWidth = item.nativeElement.offsetWidth;\n if (currentWidth + currentItemWidth > maxWidth) {\n this.breadcrumbShortened = true;\n // Test if the ellipses item still fits, if not remove last item as well.\n // If the counter is still on 1, instead remove last (actually next in original order) from\n // the previous reverse calculation\n if (currentWidth + ellipsesWidth > maxWidth) {\n if (counter > 1) {\n counter--;\n } else {\n reverseCounter++;\n }\n }\n } else {\n currentWidth += currentItemWidth;\n counter++;\n }\n }\n });\n // If breadcrumbShortened is true, move the items that do not fit to itemsHidden (breadcrumb dropdown items) and add ellipses item.\n if (this.breadcrumbShortened) {\n this.ellipsesLevel = counter;\n this.itemsHidden = this.itemsShown.slice(this.ellipsesLevel, reverseCounter);\n const ellipsesItem = { title: '...', level: this.ellipsesLevel, shortenedTitle: '' };\n this.itemsShown.splice(this.ellipsesLevel, reverseCounter - this.ellipsesLevel, ellipsesItem);\n }\n // Manually detect changes to prevent them from not being detected on language change\n this.changeDetector.detectChanges();\n }\n}\n","<nav role=\"navigation\" [attr.aria-label]=\"ariaLabel() | translate\">\n <ol #breadcrumb class=\"breadcrumb\" (siResizeObserver)=\"resetBreadcrumb()\">\n @for (item of itemsShown; track $index; let isFirst = $first) {\n @if (!breadcrumbShortened || item.level !== ellipsesLevel) {\n @if (item.shortened) {\n <li #breadcrumbItem class=\"item text-nowrap shortened\">\n @if (!isFirst) {\n <si-icon-next class=\"separator flip-rtl\" [icon]=\"icons.elementRight2\" />\n }\n <div class=\"breadcrumb-dropdown-wrapper\">\n <ng-container\n *ngTemplateOutlet=\"\n toggleTemplate;\n context: { item: item, title: item.shortenedTitle }\n \"\n />\n @if (addExpandDropdown) {\n <div\n class=\"dropdown-menu\"\n role=\"menu\"\n [id]=\"controlId + item.level\"\n [class.show]=\"breadcrumbDropdownOpen === item.level\"\n >\n <ng-container *ngTemplateOutlet=\"dropdownTemplate; context: { item: item }\" />\n </div>\n }\n </div>\n </li>\n }\n @if (!item.shortened) {\n <li #breadcrumbItem class=\"item\">\n @if (!isFirst) {\n <si-icon-next class=\"separator flip-rtl\" [icon]=\"icons.elementRight2\" />\n }\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { item: item }\" />\n </li>\n }\n }\n @if (breadcrumbShortened && item.level === ellipsesLevel) {\n <li class=\"item breadcrumb-ellipses-item\">\n @if (!isFirst) {\n <si-icon-next class=\"separator flip-rtl\" [icon]=\"icons.elementRight2\" />\n }\n <div class=\"breadcrumb-dropdown-wrapper\">\n <ng-container *ngTemplateOutlet=\"toggleTemplate; context: { item: item, title: '' }\" />\n <div\n class=\"dropdown-menu\"\n role=\"menu\"\n [id]=\"controlId + item.level\"\n [class.show]=\"breadcrumbDropdownOpen === item.level\"\n >\n @for (item of itemsHidden; track $index) {\n <ng-container *ngTemplateOutlet=\"dropdownTemplate; context: { item: item }\" />\n }\n </div>\n </div>\n </li>\n }\n }\n </ol>\n</nav>\n\n<ng-template #itemTemplate let-item=\"item\" siBreadcrumbItemTemplate>\n <a\n class=\"breadcrumb-link text-nowrap\"\n activeClass=\"active\"\n ariaCurrent=\"page\"\n [class.disable-router-link]=\"!item.link && !item.action && !item.href\"\n [class.text-secondary]=\"item.lastItem\"\n [siLink]=\"item\"\n [exactMatch]=\"true\"\n [attr.aria-label]=\"item.title\"\n [attr.aria-disabled]=\"!item.link && !item.href && !item.action\"\n >\n @if (item.level === 0) {\n <si-icon-next class=\"icon flip-rtl\" [icon]=\"icons.elementBreadcrumbRoot\" />\n }\n @if (item.level !== 0) {\n <span>{{ item.title }}</span>\n }\n </a>\n</ng-template>\n\n<ng-template #toggleTemplate let-item=\"item\" let-title=\"title\" siBreadcrumbItemTemplate>\n <div\n class=\"breadcrumb-dropdown-toggle link\"\n role=\"button\"\n aria-haspopup=\"true\"\n tabindex=\"0\"\n [attr.aria-controls]=\"controlId + item.level\"\n [attr.aria-expanded]=\"breadcrumbDropdownOpen === item.level\"\n (keydown.enter)=\"toggleBreadcrumbDropdown(item.level)\"\n (click)=\"toggleBreadcrumbDropdown(item.level)\"\n >{{ title }}...</div\n >\n</ng-template>\n\n<ng-template #dropdownTemplate let-item=\"item\" siBreadcrumbItemTemplate>\n <a\n class=\"dropdown-item breadcrumb-link focus-inside\"\n activeClass=\"active\"\n ariaCurrent=\"page\"\n role=\"menuitem\"\n [class.disable-router-link]=\"!item.link && !item.action && !item.href\"\n [siLink]=\"item\"\n [exactMatch]=\"true\"\n [attr.aria-disabled]=\"!item.link && !item.action && !item.href\"\n >{{ item.title }}</a\n >\n</ng-template>\n","/**\n * Copyright Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nimport { NgModule } from '@angular/core';\n\nimport { SiBreadcrumbComponent } from './si-breadcrumb.component';\n\n@NgModule({\n imports: [SiBreadcrumbComponent],\n exports: [SiBreadcrumbComponent]\n})\nexport class SiBreadcrumbModule {}\n","/**\n * Copyright Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nexport * from './breadcrumb-item.model';\nexport * from './si-breadcrumb.component';\nexport * from './si-breadcrumb.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;AAGG;MAMU,iCAAiC,CAAA;AAC5C,IAAA,OAAO,sBAAsB,CAC3B,SAA4C,EAC5C,OAAgB,EAAA;AAEhB,QAAA,OAAO,IAAI;;uGALF,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAjC,iCAAiC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAD7C,SAAS;mBAAC,EAAE,QAAQ,EAAE,4BAA4B,EAAE;;;ACRrD;;;AAGG;AA8BH;;AAEG;AACH,MAAM,4BAA4B,GAAG,CAAC;AAEtC;;;;AAIG;AACH,MAAM,eAAe,GAAG,EAAE;AAE1B;;;AAGG;AACH,MAAM,6CAA6C,GAAG,EAAE;AAExD;;AAEG;AACH,MAAM,eAAe,GAAG,EAAE;AAE1B,IAAI,gBAAgB,GAAG,CAAC;MAeX,qBAAqB,CAAA;;AAEvB,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAoB;AACnD;;;;AAIG;IACM,cAAc,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;AACvE;;;;;;;AA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jB;AACD,qBAAA,EAAA,QAAA,EAAA,+jIAAA,EAAA,MAAA,EAAA,CAAA,skBAAA,CAAA,EAAA;8BA+HS,aAAa,EAAA,CAAA;sBADtB,YAAY;uBAAC,gBAAgB,EAAE,CAAC,eAAe,CAAC;;;AEnMnD;;;AAGG;MASU,kBAAkB,CAAA;uGAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAlB,kBAAkB,EAAA,OAAA,EAAA,CAHnB,qBAAqB,CAAA,EAAA,OAAA,EAAA,CACrB,qBAAqB,CAAA,EAAA,CAAA;AAEpB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAHnB,qBAAqB,CAAA,EAAA,CAAA;;2FAGpB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,qBAAqB,CAAC;oBAChC,OAAO,EAAE,CAAC,qBAAqB;AAChC,iBAAA;;;ACXD;;;AAGG;;ACHH;;AAEG;;;;"}
1
+ {"version":3,"file":"siemens-element-ng-breadcrumb.mjs","sources":["../../../../projects/element-ng/breadcrumb/si-breadcrumb-item-template.directive.ts","../../../../projects/element-ng/breadcrumb/si-breadcrumb.component.ts","../../../../projects/element-ng/breadcrumb/si-breadcrumb.component.html","../../../../projects/element-ng/breadcrumb/si-breadcrumb.module.ts","../../../../projects/element-ng/breadcrumb/index.ts","../../../../projects/element-ng/breadcrumb/siemens-element-ng-breadcrumb.ts"],"sourcesContent":["/**\n * Copyright Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nimport { Directive } from '@angular/core';\n\nimport { EnumeratedBreadcrumbItem } from './breadcrumb-item.model';\n\n@Directive({ selector: '[siBreadcrumbItemTemplate]' })\nexport class SiBreadcrumbItemTemplateDirective {\n static ngTemplateContextGuard(\n directive: SiBreadcrumbItemTemplateDirective,\n context: unknown\n ): context is { item: EnumeratedBreadcrumbItem; title?: string } {\n return true;\n }\n}\n","/**\n * Copyright Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostListener,\n inject,\n input,\n OnChanges,\n OnDestroy,\n viewChild,\n viewChildren\n} from '@angular/core';\nimport {\n addIcons,\n elementBreadcrumbRoot,\n elementRight2,\n SiIconNextComponent\n} from '@siemens/element-ng/icon';\nimport { SiLinkDirective } from '@siemens/element-ng/link';\nimport { SiResizeObserverDirective } from '@siemens/element-ng/resize-observer';\nimport { SiTranslateModule, SiTranslateService } from '@siemens/element-translate-ng/translate';\nimport { merge, of, Subscription } from 'rxjs';\nimport { switchMap } from 'rxjs/operators';\n\nimport { BreadcrumbItem, EnumeratedBreadcrumbItem } from './breadcrumb-item.model';\nimport { SiBreadcrumbItemTemplateDirective } from './si-breadcrumb-item-template.directive';\n\n/**\n * Defines how many items should be displayed at the end of the breadcrumb if possible.\n */\nconst NUMBER_OF_SHOWN_ITEMS_AT_END = 2;\n\n/**\n * Defines how long a display item can be without it being shortened.\n * Cannot be lower than 4.\n * If this is 0, titles will not be shortened\n */\nconst ITEM_MAX_LENGTH = 30;\n\n/**\n * Defines how many characters of an item are always displayed in the beginning.\n * Must be at least 2 less than ITEM_MAX_LENGTH\n */\nconst ITEM_CHARACTERS_ALWAYS_DISPLAYED_IN_BEGINNING = 10;\n\n/**\n * Defines the width of the root icon in pixels.\n */\nconst ROOT_ICON_WIDTH = 24;\n\nlet controlIdCounter = 1;\n\n@Component({\n selector: 'si-breadcrumb',\n templateUrl: './si-breadcrumb.component.html',\n styleUrl: './si-breadcrumb.component.scss',\n imports: [\n NgTemplateOutlet,\n SiIconNextComponent,\n SiLinkDirective,\n SiResizeObserverDirective,\n SiTranslateModule,\n SiBreadcrumbItemTemplateDirective\n ]\n})\nexport class SiBreadcrumbComponent implements OnChanges, OnDestroy {\n /** Array of breadcrumb items. */\n readonly items = input.required<BreadcrumbItem[]>();\n /**\n * Shows the \"root\" route as the provided title string instead of an icon.\n *\n * @defaultValue false\n */\n readonly showRootAsText = input(false, { transform: booleanAttribute });\n /**\n * Aria label for the main breadcrumb navigation. Needed for a11y.\n *\n * @defaultValue\n * ```\n * $localize`:@@SI_BREADCRUMB:Breadcrumbs`\n * ```\n */\n readonly ariaLabel = input($localize`:@@SI_BREADCRUMB:Breadcrumbs`);\n\n private translationSubscription?: Subscription;\n private itemsProcessed = false;\n private numberOfItems = 0;\n\n protected itemsShown: EnumeratedBreadcrumbItem[] = [];\n protected itemsHidden: EnumeratedBreadcrumbItem[] = [];\n protected breadcrumbShortened = false;\n protected ellipsesLevel = 0;\n // Record to allow for -1 (root).\n protected breadcrumbDropdownOpen: number | undefined = undefined;\n protected addExpandDropdown = false;\n protected controlId = `__si-breadcrumb-${controlIdCounter++}-`;\n protected readonly icons = addIcons({ elementBreadcrumbRoot, elementRight2 });\n\n private readonly breadcrumbElement = viewChild.required<ElementRef>('breadcrumb');\n private readonly breadcrumbElements = viewChildren<ElementRef>('breadcrumbItem');\n\n private changeDetector = inject(ChangeDetectorRef);\n private translate = inject(SiTranslateService);\n\n ngOnChanges(): void {\n // Reprocess items on every change and on init\n this.processItems();\n }\n\n ngOnDestroy(): void {\n this.translationSubscription?.unsubscribe();\n }\n\n private processItems(): void {\n this.numberOfItems = this.items().length;\n\n this.translationSubscription?.unsubscribe();\n if (this.numberOfItems) {\n this.translationSubscription = merge(this.translate.translationChange, of(undefined))\n .pipe(switchMap(() => this.translate.translateAsync(this.items().map(item => item.title))))\n .subscribe(translatedTitles => {\n // Add the level to the items and check if they need to be shortened.\n // If they need to be shortened, shorten them at a convenient place.\n // Set the lastItem tag to true for the last item\n let counter = -1;\n const enumeratedItems = this.items().map(item => {\n counter++;\n const title = translatedTitles[item.title];\n let shortened = false;\n let shortenedTitle = title;\n // If this is not the last item and the title too long, shorten the title\n if (counter !== this.numberOfItems - 1 && title && title.length > ITEM_MAX_LENGTH) {\n shortened = true;\n // This regex gets the last space, dash or underscore.\n const regexMatch = title\n .slice(ITEM_CHARACTERS_ALWAYS_DISPLAYED_IN_BEGINNING, ITEM_MAX_LENGTH - 2)\n .match(/^.*[- _](?=.*?$)/);\n if (regexMatch) {\n shortenedTitle = title.slice(\n 0,\n ITEM_CHARACTERS_ALWAYS_DISPLAYED_IN_BEGINNING + regexMatch[0].length - 1\n );\n } else {\n shortenedTitle = title.slice(0, ITEM_MAX_LENGTH - 3);\n }\n }\n\n // If the root element should be displayed as text, set level not to 0.\n // This is used to distinguish in the template between icon and text.\n const level = counter === 0 && this.showRootAsText() ? -1 : counter;\n\n return {\n ...item,\n title,\n level,\n hide: false,\n shortened,\n shortenedTitle,\n lastItem: counter === this.numberOfItems - 1\n };\n });\n this.itemsShown = enumeratedItems;\n this.itemsHidden = [];\n this.breadcrumbShortened = false;\n this.breadcrumbDropdownOpen = undefined;\n this.itemsProcessed = true;\n this.resetBreadcrumb();\n });\n } else {\n this.itemsShown = [];\n this.itemsHidden = [];\n this.breadcrumbShortened = false;\n this.breadcrumbDropdownOpen = undefined;\n this.itemsProcessed = true;\n this.resetBreadcrumb();\n }\n }\n\n /*\n * Toggle dropdown (on click of ellipses), either for\n * the general dropdown list if itemLevel is at ellipsesLevel\n * or otherwise the name expansion at the specified item level.\n * Close any open dropdown before opening a new one.\n */\n protected toggleBreadcrumbDropdown(itemLevel: number): void {\n this.breadcrumbDropdownOpen = this.breadcrumbDropdownOpen === itemLevel ? undefined : itemLevel;\n }\n\n // Close dropdown on click anywhere else\n @HostListener('document:click', ['$event.target'])\n protected documentClick(targetElement: any): void {\n if (this.breadcrumbDropdownOpen) {\n if (!this.breadcrumbElement().nativeElement.contains(targetElement)) {\n // Close all dropdowns.\n this.breadcrumbDropdownOpen = undefined;\n }\n }\n }\n\n protected resetBreadcrumb(): void {\n if (this.itemsProcessed) {\n this.numberOfItems = this.items().length;\n // Add an additional the ellipses item to the end of the shownItems (breadcrumb items).\n // Disable addExpandDropdown for now, to make every item a proper SiBreadcrumbItemComponent.\n const ellipsesItem = { title: '...', level: this.numberOfItems, shortenedTitle: '' };\n this.itemsShown.push(ellipsesItem);\n if (this.breadcrumbShortened) {\n // If the breadcrumb was shortened before, remove the ellipses and add back itemsHidden (breadcrumb dropdown items).\n this.breadcrumbShortened = false;\n this.itemsShown.splice(this.ellipsesLevel, 1, ...this.itemsHidden);\n this.itemsHidden = [];\n }\n this.addExpandDropdown = false;\n // Wait for the next change detection cycle to measure the updated item length.\n this.changeDetector.detectChanges();\n this.calculateBreadcrumb();\n }\n }\n\n private calculateBreadcrumb(): void {\n this.addExpandDropdown = true;\n const maxWidth = this.breadcrumbElement().nativeElement.clientWidth;\n const breadcrumbElementsList = this.breadcrumbElements().map(item => item);\n // Measure the length of the last additional ellipses item, then remove it from itemsShown (breadcrumb items).\n const ellipsesWidth = breadcrumbElementsList[this.numberOfItems].nativeElement.offsetWidth;\n this.itemsShown.splice(this.numberOfItems, 1);\n let currentWidth = this.showRootAsText() ? 0 : ROOT_ICON_WIDTH;\n const numberOfItemsKeptAtEnd = Math.min(NUMBER_OF_SHOWN_ITEMS_AT_END, this.numberOfItems - 1);\n let reverseCounter = this.numberOfItems;\n // Test for numberOfItemsKeptAtEnd items from the end if they still fit, if not, set breadcrumbShortened to true.\n breadcrumbElementsList\n .slice(this.numberOfItems - numberOfItemsKeptAtEnd, this.numberOfItems)\n .reverse()\n .map(item => {\n if (!this.breadcrumbShortened) {\n const currentItemWidth = item.nativeElement.offsetWidth;\n if (currentWidth + currentItemWidth > maxWidth) {\n this.breadcrumbShortened = true;\n // Test if the ellipses item still fits, if not remove last (actually next in original order) item as well.\n if (currentWidth + ellipsesWidth > maxWidth) {\n reverseCounter++;\n }\n } else {\n currentWidth += currentItemWidth;\n reverseCounter--;\n }\n }\n });\n\n const start = this.showRootAsText() ? 0 : 1;\n let counter = start;\n // If breadcrumbShortened is not true yet, test for the rest of the items from the start\n // Whether they still fit, if not, set breadcrumbShortened to true.\n breadcrumbElementsList.slice(start, this.numberOfItems - numberOfItemsKeptAtEnd).map(item => {\n if (!this.breadcrumbShortened) {\n const currentItemWidth = item.nativeElement.offsetWidth;\n if (currentWidth + currentItemWidth > maxWidth) {\n this.breadcrumbShortened = true;\n // Test if the ellipses item still fits, if not remove last item as well.\n // If the counter is still on 1, instead remove last (actually next in original order) from\n // the previous reverse calculation\n if (currentWidth + ellipsesWidth > maxWidth) {\n if (counter > 1) {\n counter--;\n } else {\n reverseCounter++;\n }\n }\n } else {\n currentWidth += currentItemWidth;\n counter++;\n }\n }\n });\n // If breadcrumbShortened is true, move the items that do not fit to itemsHidden (breadcrumb dropdown items) and add ellipses item.\n if (this.breadcrumbShortened) {\n this.ellipsesLevel = counter;\n this.itemsHidden = this.itemsShown.slice(this.ellipsesLevel, reverseCounter);\n const ellipsesItem = { title: '...', level: this.ellipsesLevel, shortenedTitle: '' };\n this.itemsShown.splice(this.ellipsesLevel, reverseCounter - this.ellipsesLevel, ellipsesItem);\n }\n // Manually detect changes to prevent them from not being detected on language change\n this.changeDetector.detectChanges();\n }\n}\n","<nav role=\"navigation\" [attr.aria-label]=\"ariaLabel() | translate\">\n <ol #breadcrumb class=\"breadcrumb\" (siResizeObserver)=\"resetBreadcrumb()\">\n @for (item of itemsShown; track $index; let isFirst = $first) {\n @if (!breadcrumbShortened || item.level !== ellipsesLevel) {\n @if (item.shortened) {\n <li #breadcrumbItem class=\"item text-nowrap shortened\">\n @if (!isFirst) {\n <si-icon-next class=\"separator flip-rtl\" [icon]=\"icons.elementRight2\" />\n }\n <div class=\"breadcrumb-dropdown-wrapper\">\n <ng-container\n *ngTemplateOutlet=\"\n toggleTemplate;\n context: { item: item, title: item.shortenedTitle }\n \"\n />\n @if (addExpandDropdown) {\n <div\n class=\"dropdown-menu\"\n role=\"menu\"\n [id]=\"controlId + item.level\"\n [class.show]=\"breadcrumbDropdownOpen === item.level\"\n >\n <ng-container *ngTemplateOutlet=\"dropdownTemplate; context: { item: item }\" />\n </div>\n }\n </div>\n </li>\n }\n @if (!item.shortened) {\n <li #breadcrumbItem class=\"item\">\n @if (!isFirst) {\n <si-icon-next class=\"separator flip-rtl\" [icon]=\"icons.elementRight2\" />\n }\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { item: item }\" />\n </li>\n }\n }\n @if (breadcrumbShortened && item.level === ellipsesLevel) {\n <li class=\"item breadcrumb-ellipses-item\">\n @if (!isFirst) {\n <si-icon-next class=\"separator flip-rtl\" [icon]=\"icons.elementRight2\" />\n }\n <div class=\"breadcrumb-dropdown-wrapper\">\n <ng-container *ngTemplateOutlet=\"toggleTemplate; context: { item: item, title: '' }\" />\n <div\n class=\"dropdown-menu\"\n role=\"menu\"\n [id]=\"controlId + item.level\"\n [class.show]=\"breadcrumbDropdownOpen === item.level\"\n >\n @for (item of itemsHidden; track $index) {\n <ng-container *ngTemplateOutlet=\"dropdownTemplate; context: { item: item }\" />\n }\n </div>\n </div>\n </li>\n }\n }\n </ol>\n</nav>\n\n<ng-template #itemTemplate let-item=\"item\" siBreadcrumbItemTemplate>\n <a\n class=\"breadcrumb-link text-nowrap\"\n activeClass=\"active\"\n ariaCurrent=\"page\"\n [class.disable-router-link]=\"!item.link && !item.action && !item.href\"\n [class.text-secondary]=\"item.lastItem\"\n [siLink]=\"item\"\n [exactMatch]=\"true\"\n [attr.aria-label]=\"item.title\"\n [attr.aria-disabled]=\"!item.link && !item.href && !item.action\"\n >\n @if (item.level === 0) {\n <si-icon-next class=\"icon flip-rtl\" [icon]=\"icons.elementBreadcrumbRoot\" />\n }\n @if (item.level !== 0) {\n <span>{{ item.title }}</span>\n }\n </a>\n</ng-template>\n\n<ng-template #toggleTemplate let-item=\"item\" let-title=\"title\" siBreadcrumbItemTemplate>\n <div\n class=\"breadcrumb-dropdown-toggle link\"\n role=\"button\"\n aria-haspopup=\"true\"\n tabindex=\"0\"\n [attr.aria-controls]=\"controlId + item.level\"\n [attr.aria-expanded]=\"breadcrumbDropdownOpen === item.level\"\n (keydown.enter)=\"toggleBreadcrumbDropdown(item.level)\"\n (click)=\"toggleBreadcrumbDropdown(item.level)\"\n >{{ title }}...</div\n >\n</ng-template>\n\n<ng-template #dropdownTemplate let-item=\"item\" siBreadcrumbItemTemplate>\n <a\n class=\"dropdown-item breadcrumb-link focus-inside\"\n activeClass=\"active\"\n ariaCurrent=\"page\"\n role=\"menuitem\"\n [class.disable-router-link]=\"!item.link && !item.action && !item.href\"\n [siLink]=\"item\"\n [exactMatch]=\"true\"\n [attr.aria-disabled]=\"!item.link && !item.action && !item.href\"\n >{{ item.title }}</a\n >\n</ng-template>\n","/**\n * Copyright Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nimport { NgModule } from '@angular/core';\n\nimport { SiBreadcrumbComponent } from './si-breadcrumb.component';\n\n@NgModule({\n imports: [SiBreadcrumbComponent],\n exports: [SiBreadcrumbComponent]\n})\nexport class SiBreadcrumbModule {}\n","/**\n * Copyright Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nexport * from './breadcrumb-item.model';\nexport * from './si-breadcrumb.component';\nexport * from './si-breadcrumb.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;AAGG;MAMU,iCAAiC,CAAA;AAC5C,IAAA,OAAO,sBAAsB,CAC3B,SAA4C,EAC5C,OAAgB,EAAA;AAEhB,QAAA,OAAO,IAAI;;uGALF,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAjC,iCAAiC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,QAAA,EAAA,EAAA,E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OAAO,EAAE,CAAC,qBAAqB,CAAC;oBAChC,OAAO,EAAE,CAAC,qBAAqB;AAChC,iBAAA;;;ACXD;;;AAGG;;ACHH;;AAEG;;;;"}
@@ -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 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 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 Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nimport { DOCUMENT } from '@angular/common';\nimport { inject, Injectable } 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 Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nimport { DOCUMENT } from '@angular/common';\nimport { inject, Injectable } 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 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 Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\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}\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 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 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 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 Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\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 Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nimport { isRTL } from './rtl';\n\nexport type Direction = 'down' | 'up' | 'start' | 'end';\nexport type PlacementBasicVertical = 'top' | 'bottom';\nexport type PlacementBasic = 'start' | 'end' | PlacementBasicVertical;\nexport type Placement = '' | PlacementBasic | `${PlacementBasic} ${PlacementBasic}`;\nexport type Align = 'start' | 'center' | 'end';\n\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;\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;\nexport const BOUNDING_RECT_WINDOW = {\n getBoundingClientRect: () => ({\n top: 0,\n left: 0,\n bottom: window.innerHeight,\n right: window.innerWidth\n })\n};\n\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\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\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 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 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 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 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 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 Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nexport * from './webcomponent.decorator';\n","/**\n * Copyright 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,GAAG,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CAC1C,GAAG,CAAC,KAAK,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,EAC7B,oBAAoB,EAAE,EACtB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EACpB,OAAO,CAAC,KAAK,CAAC,EACd,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC,EACjC,KAAK,EAAE,CACR;AAED;;AAEG;IACH,KAAK,GAAA;AACH,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;;AAGxB;;AAEG;IACH,MAAM,GAAA;AACJ,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;;AAGzB;;AAEG;IACH,QAAQ,GAAA;AACN,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK;;uGAjDf,YAAY,EAAA,IAAA,EAA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E,QAAQ,CAAC,OAAO,CAAC;AACzD;AAMA;;;;;AAKG;SACa,6BAA6B,CAC3C,MAAsC,EACtC,OAAmB,EACnB,MAAmB,EAAA;AAEnB,IAAA,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE;;QAEvE,MAAM,UAAU,GAAG,MAAM,CAAC,aAAa,CAAC,qBAAqB,EAAE;QAC/D,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,qBAAqB,EAAE;QACjE,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC,KAAK,GAAG,CAAC;;;AAIrD,QAAA,OAAO,KAAK;cACR,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,GAAG,MAAM;cACnC,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,EAAE;;AAGzC,IAAA,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 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 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 Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nimport { DOCUMENT } from '@angular/common';\nimport { inject, Injectable } 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 Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nimport { DOCUMENT } from '@angular/common';\nimport { inject, Injectable } 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 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 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 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 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 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 Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\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 Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nimport { isRTL } from './rtl';\n\nexport type Direction = 'down' | 'up' | 'start' | 'end';\nexport type PlacementBasicVertical = 'top' | 'bottom';\nexport type PlacementBasic = 'start' | 'end' | PlacementBasicVertical;\nexport type Placement = '' | PlacementBasic | `${PlacementBasic} ${PlacementBasic}`;\nexport type Align = 'start' | 'center' | 'end';\n\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;\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;\nexport const BOUNDING_RECT_WINDOW = {\n getBoundingClientRect: () => ({\n top: 0,\n left: 0,\n bottom: window.innerHeight,\n right: window.innerWidth\n })\n};\n\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\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\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 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 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 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 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 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 Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nexport * from './webcomponent.decorator';\n","/**\n * Copyright Siemens 2016 - 2025.\n * SPDX-License-Identifier: MIT\n */\nexport * from './services';\nexport * from './models';\nexport * from './helpers';\nexport * from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