{"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/navbar-vertical-layout.model.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/global-events.helpers.ts","../../../../projects/element-ng/common/helpers/overlay-helper.ts","../../../../projects/element-ng/common/helpers/index.ts","../../../../projects/element-ng/common/decorators/webcomponent.decorator.ts","../../../../projects/element-ng/common/decorators/index.ts","../../../../projects/element-ng/common/index.ts","../../../../projects/element-ng/common/siemens-element-ng-common.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject, timer } from 'rxjs';\nimport {\n  distinctUntilChanged,\n  endWith,\n  filter,\n  map,\n  repeat,\n  share,\n  takeUntil\n} from 'rxjs/operators';\n\n/**\n * A global blink pulse generator for synchronized blinking patterns across an entire application.\n * Use to trigger any blinking by subscribing to `pulse$`.\n */\n@Injectable({ providedIn: 'root' })\nexport class BlinkService {\n  private pause$ = new BehaviorSubject<boolean>(false);\n\n  private off$ = this.pause$.pipe(filter(v => v));\n  private on$ = this.pause$.pipe(filter(v => !v));\n\n  /**\n   * Blink pulse. Subscribe to it to toggle `on` CSS class when true, `off` CSS class when `false`.\n   * Do animations using CSS transitions\n   *\n   * @defaultValue\n   * ```\n   * timer(0, 1400).pipe(\n   *     map(count => count % 2 === 0),\n   *     distinctUntilChanged(),\n   *     takeUntil(this.off$),\n   *     endWith(false),\n   *     repeat({ delay: () => this.on$ }),\n   *     share()\n   *   )\n   * ```\n   */\n  public readonly pulse$ = timer(0, 1400).pipe(\n    map(count => count % 2 === 0),\n    distinctUntilChanged(),\n    takeUntil(this.off$),\n    endWith(false),\n    repeat({ delay: () => this.on$ }),\n    share()\n  );\n\n  /**\n   * Pause the blinking.\n   */\n  pause(): void {\n    this.pause$.next(true);\n  }\n\n  /**\n   * Resume the blinking.\n   */\n  resume(): void {\n    this.pause$.next(false);\n  }\n\n  /**\n   * Whether the blinking is paused or not.\n   */\n  isPaused(): boolean {\n    return this.pause$.value;\n  }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { isPlatformBrowser } from '@angular/common';\nimport { inject, Injectable, InjectionToken, PLATFORM_ID, Provider, Type } from '@angular/core';\n\nconst SI_UI_STATE_STORAGE = new InjectionToken<UIStateStorage>('si.ui-state.storage', {\n  providedIn: 'root',\n  factory: () => {\n    if (isPlatformBrowser(inject(PLATFORM_ID))) {\n      return new LocalStorageUIStateStorage();\n    }\n    return { save: () => {}, load: () => null };\n  }\n});\n\n/**\n * Interface that defines a UIStateStore.\n * It must be provided via {@link provideSiUiState}.\n */\nexport interface UIStateStorage {\n  /**\n   * Saves data under a specific stateId.\n   * Already existing data for that stateId should be overridden.\n   * Asynchronous implementations must return a {@link Promise} and resolve it once saving was completed.\n   *\n   * Errors should be handled by the implementation.\n   * The `SiUIStateService` does not handle errors.\n   */\n  save(stateId: string, data: string): void | Promise<void>;\n\n  /**\n   * Loads data for a specific stateId.\n   * Can be asynchronous.\n   *\n   * Errors should be handled by the implementation.\n   * The `SiUIStateService` does not handle errors.\n   *\n   * @returns The data or undefined if the data does not exist.\n   * Asynchronous implementations must return a {@link Promise} containing the data.\n   */\n  load(stateId: string): string | undefined | null | Promise<string | undefined | null>;\n}\n\nclass LocalStorageUIStateStorage implements UIStateStorage {\n  save(stateId: string, data: string): void {\n    localStorage.setItem(`si.ui-state.${stateId}`, data);\n  }\n\n  load(stateId: string): string | null {\n    return localStorage.getItem(`si.ui-state.${stateId}`);\n  }\n}\n\n/** @internal */\nexport const SI_UI_STATE_SERVICE = new InjectionToken<SiUIStateService>('si.ui-state.service');\n\n/**\n * Service to save and load UI states.\n * @internal\n */\n@Injectable()\nclass SiUIStateService {\n  private storage = inject(SI_UI_STATE_STORAGE);\n\n  /**\n   * Saves the provided state in the storage.\n   * @param stateId - The unique id or key under which the state shall be saved.\n   * @param state - The state to be saved.\n   * @param version - The version of the state object.\n   * This can be used to migrate state objects.\n   */\n  save<TState>(stateId: string, state: TState, version = 0): Promise<void> {\n    return Promise.resolve(\n      this.storage.save(\n        stateId,\n        JSON.stringify({\n          version,\n          state\n        })\n      )\n    );\n  }\n\n  /**\n   * Loads and returns the state for the given stateId and version.\n   * @param stateId - The unique id or key for which the state shall be loaded.\n   * @param version - The version of the state object.\n   * This can be used to migrate state objects.\n   * @returns A Promise containing the state or undefined if the state does not exist or the version did not match.\n   */\n  load<TState = unknown>(stateId: string, version = 0): PromiseLike<TState | undefined> {\n    // DO NOT ADD async keyword.\n    // This method should stay synchronous if the storage is synchronous.\n    // Otherwise, the navbar will play expand animations on load.\n    const dataOrPromise = this.storage.load(stateId);\n    if (dataOrPromise instanceof Promise) {\n      return dataOrPromise.then(data => this.readData(data, version));\n    } else {\n      const promiseLike = {\n        then: onfulfilled => {\n          const data = this.readData<TState>(dataOrPromise, version);\n          if (onfulfilled) {\n            return onfulfilled(data);\n          } else {\n            return promiseLike;\n          }\n        }\n      } as PromiseLike<TState | undefined>;\n\n      return promiseLike;\n    }\n  }\n\n  private readData<TState = unknown>(\n    data: string | null | undefined,\n    version: number\n  ): TState | undefined {\n    if (data) {\n      const parsed = JSON.parse(data);\n      if (parsed.version === version) {\n        return parsed.state;\n      }\n    }\n\n    return undefined;\n  }\n}\n\nexport type { SiUIStateService };\n\n/** Enables the automatic storage of UI state for enabled components. */\nexport const provideSiUiState = (config?: { store?: Type<UIStateStorage> }): Provider[] => {\n  return [\n    { provide: SI_UI_STATE_SERVICE, useClass: SiUIStateService },\n    config?.store ? { provide: SI_UI_STATE_STORAGE, useClass: config.store } : []\n  ];\n};\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { inject, Injectable, DOCUMENT } from '@angular/core';\n\nexport interface FontStyleOverride {\n  fontStyle?: string;\n  fontVariant?: string;\n  fontWeight?: string;\n  fontSize?: string;\n  fontFamily?: string;\n}\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class TextMeasureService {\n  private measureCanvas?: CanvasRenderingContext2D;\n  private defaultFont?: string;\n  private document = inject(DOCUMENT);\n  /** Measure text width in pixel. */\n  measureText(text: string, fontRef?: HTMLElement | string, overrides?: FontStyleOverride): number {\n    this.ensureCanvas();\n    this.setFontStyle(fontRef, overrides);\n    return Math.ceil(this.measureCanvas!.measureText(text).width);\n  }\n  /** Get font styles for `font` CSS short-hand property. */\n  getFontStyle(element: HTMLElement, overrides?: FontStyleOverride): string {\n    const style = getComputedStyle(element);\n    // note: can't use destructuring on `style` as it doesn't work on Firefox\n    const fontStyle = overrides?.fontStyle ?? style.fontStyle;\n    const fontVariant = overrides?.fontVariant ?? style.fontVariant;\n    const fontWeight = overrides?.fontWeight ?? style.fontWeight;\n    const fontSize = overrides?.fontSize ?? style.fontSize;\n    const fontFamily = overrides?.fontFamily ?? style.fontFamily;\n    return `${fontStyle} ${fontVariant} ${fontWeight} ${fontSize} ${fontFamily}`\n      .replace(/ +/g, ' ')\n      .trim();\n  }\n\n  private ensureCanvas(): void {\n    if (this.measureCanvas) {\n      return;\n    }\n    const canvas = this.document.createElement('canvas') as HTMLCanvasElement;\n    this.measureCanvas = canvas.getContext('2d') as CanvasRenderingContext2D;\n  }\n\n  private setFontStyle(fontRef?: HTMLElement | string, overrides?: FontStyleOverride): void {\n    if (typeof fontRef === 'string') {\n      this.measureCanvas!.font = fontRef;\n      return;\n    }\n    if (fontRef || overrides) {\n      this.measureCanvas!.font = this.getFontStyle(fontRef ?? this.document.body, overrides);\n      return;\n    }\n    this.defaultFont ??= this.getFontStyle(this.document.body);\n    this.measureCanvas!.font = this.defaultFont;\n  }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { inject, Injectable, DOCUMENT } from '@angular/core';\n\n/**\n * Gets the width of the scrollbar.  Nesc for windows\n * http://stackoverflow.com/a/13382873/888165\n *\n * @deprecated This service uses a legacy DOM-measurement hack to determine scrollbar width.\n * Use `element.offsetWidth - element.clientWidth` on the scrollable element directly,\n * which is more accurate, SSR-safe, and accounts for OS-level theming and CSS overrides.\n * Will be removed in v52.\n */\n@Injectable({ providedIn: 'root' })\nexport class ScrollbarHelper {\n  private document = inject(DOCUMENT);\n\n  /**\n   * The width of the scrollbar.\n   *\n   * @defaultValue this.getWidth()\n   */\n  readonly width: number = this.getWidth();\n\n  private getWidth(): number {\n    const outer = this.document.createElement('div');\n    outer.style.visibility = 'hidden';\n    outer.style.width = '100px';\n    (outer.style as any).msOverflowStyle = 'scrollbar';\n    this.document.body.appendChild(outer);\n\n    const widthNoScroll = outer.offsetWidth;\n    outer.style.overflow = 'scroll';\n\n    const inner = this.document.createElement('div');\n    inner.style.width = '100%';\n    outer.appendChild(inner);\n\n    const widthWithScroll = inner.offsetWidth;\n    outer.parentNode?.removeChild(outer);\n\n    return widthNoScroll - widthWithScroll;\n  }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './blink.service';\nexport * from './si-uistate.service';\nexport * from './text-measure.service';\nexport * from './scrollbar-helper.service';\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { InjectionToken, Signal } from '@angular/core';\n\n/**\n * Layout state shared with components alongside a vertical navbar.\n * @internal\n */\nexport interface SiNavbarVerticalLayout {\n  readonly collapsed: Signal<boolean>;\n  readonly visible: Signal<boolean>;\n  readonly textOnly: Signal<boolean>;\n}\n\n/**\n * Injection token for the layout state of a vertical navbar instance.\n * @internal\n */\nexport const SI_NAVBAR_VERTICAL_LAYOUT = new InjectionToken<SiNavbarVerticalLayout>(\n  'SI_NAVBAR_VERTICAL_LAYOUT'\n);\n","/**\n * Copyright (c) Siemens 2016 - 2026\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: 'background-success-subtle',\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: 'background-information-subtle',\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: 'background-caution-subtle',\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: 'background-warning-subtle',\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: 'background-danger-subtle',\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: 'background-critical-subtle',\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: 'background-information-subtle',\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: 'background-caution-subtle',\n    severity: 6\n  },\n  unknown: {\n    icon: 'element-circle-filled',\n    color: 'status-neutral',\n    stacked: 'element-state-question-mark',\n    stackedColor: 'text-primary',\n    background: 'background-0',\n    severity: 8\n  }\n};\n","/**\n * Copyright (c) Siemens 2016 - 2026\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: 'start',\n  originY: 'top'\n};\n\nexport const positionTopEnd: ConnectionPositionPair = {\n  overlayX: 'end',\n  overlayY: 'bottom',\n  originX: 'end',\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: 'start',\n  originY: 'bottom'\n};\n\nexport const positionBottomEnd: ConnectionPositionPair = {\n  overlayX: 'end',\n  overlayY: 'top',\n  originX: 'end',\n  originY: 'bottom'\n};\n\nexport const positions = {\n  top: [\n    positionTopCenter,\n    positionTopStart,\n    positionTopEnd,\n    positionBottomCenter,\n    positionBottomStart,\n    positionBottomEnd,\n    positionStart,\n    positionEnd\n  ],\n  end: [\n    positionEnd,\n    positionTopCenter,\n    positionTopStart,\n    positionTopEnd,\n    positionBottomCenter,\n    positionBottomStart,\n    positionBottomEnd,\n    positionStart\n  ],\n  bottom: [\n    positionBottomCenter,\n    positionBottomStart,\n    positionBottomEnd,\n    positionTopCenter,\n    positionTopStart,\n    positionTopEnd,\n    positionStart,\n    positionEnd\n  ],\n  start: [\n    positionStart,\n    positionTopCenter,\n    positionTopStart,\n    positionTopEnd,\n    positionBottomCenter,\n    positionBottomStart,\n    positionBottomEnd,\n    positionEnd\n  ],\n  auto: [\n    positionTopCenter,\n    positionTopStart,\n    positionTopEnd,\n    positionBottomCenter,\n    positionBottomStart,\n    positionBottomEnd,\n    positionStart,\n    positionEnd\n  ]\n};\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './color-variant.model';\nexport * from './menu.model';\nexport * from './navbar-vertical-layout.model';\nexport * from './status-type.model';\nexport * from './positions.model';\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\n/**\n * @returns Returns whether animations are disabled via the CSS var. This is either set by\n * an application on low-end devices or in case the device is configured for reduced motion\n * (i.e. `@media (prefers-reduced-motion)` matches)\n */\nexport const areAnimationsDisabled = (): boolean => {\n  const style = getComputedStyle(document.documentElement);\n  const flag = style.getPropertyValue('--element-animations-enabled');\n  return parseInt(flag, 10) === 0;\n};\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\n/** */\nexport const isRTL = (elem?: HTMLElement): boolean =>\n  getComputedStyle(elem ?? document.documentElement).direction === 'rtl';\n\nexport const correctKeyRTL = (key: string): string => {\n  if (!isRTL()) {\n    return key;\n  }\n  return key === 'ArrowLeft' ? 'ArrowRight' : key === 'ArrowRight' ? 'ArrowLeft' : key;\n};\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { isRTL } from './rtl';\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type Direction = 'down' | 'up' | 'start' | 'end';\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type PlacementBasicVertical = 'top' | 'bottom';\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type PlacementBasic = 'start' | 'end' | PlacementBasicVertical;\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type Placement = '' | PlacementBasic | `${PlacementBasic} ${PlacementBasic}`;\n\n/** @deprecated Use the CDK Overlay instead. */\nexport type Align = 'start' | 'center' | 'end';\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const AXIS_X = {\n  axis: 'X',\n  directionRegular: 'end',\n  directionReverse: 'start',\n  upperBound: 'left',\n  lowerBound: 'right',\n  size: 'width',\n  windowSize: 'innerWidth'\n} as const;\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const AXIS_Y = {\n  axis: 'Y',\n  directionRegular: 'down',\n  directionReverse: 'up',\n  upperBound: 'top',\n  lowerBound: 'bottom',\n  size: 'height',\n  windowSize: 'innerHeight'\n} as const;\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const BOUNDING_RECT_WINDOW = {\n  getBoundingClientRect: () => ({\n    top: 0,\n    left: 0,\n    bottom: window.innerHeight,\n    right: window.innerWidth\n  })\n};\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const resolveReference = (\n  hostElement: HTMLElement,\n  reference: string\n): HTMLElement | null => {\n  if (reference) {\n    const childReferenceCheck = hostElement.querySelector(reference);\n    if (childReferenceCheck) {\n      return childReferenceCheck as HTMLElement;\n    }\n    const referenceCheck = hostElement.closest(reference);\n    if (referenceCheck) {\n      return referenceCheck as HTMLElement;\n    }\n    const all = document.querySelectorAll(reference);\n    return (all[all.length - 1] as HTMLElement) ?? null;\n  }\n  return null;\n};\n\nconst getScrollParentsChain = (\n  element: HTMLElement | null,\n  axis: 'X' | 'Y',\n  scrollParentsList: (typeof BOUNDING_RECT_WINDOW)[] = []\n): (typeof BOUNDING_RECT_WINDOW)[] => {\n  if (element) {\n    const overflowStyle =\n      getComputedStyle(element)[axis === 'X' ? 'overflowX' : 'overflowY'] || 'visible';\n    if (\n      element[axis === 'X' ? 'clientWidth' : 'clientHeight'] &&\n      overflowStyle !== 'visible' &&\n      overflowStyle !== 'hidden'\n    ) {\n      scrollParentsList.push(document.documentElement === element ? BOUNDING_RECT_WINDOW : element);\n    }\n    if (element !== document.documentElement) {\n      getScrollParentsChain(\n        (element as any).dropdownParentElement ?? element.parentElement ?? document.body,\n        axis,\n        scrollParentsList\n      );\n    }\n  }\n  return scrollParentsList;\n};\n\nconst getCombinedBoundingClientRect = (\n  elements: HTMLElement[]\n): { top: number; bottom: number; left: number; right: number } => {\n  let top = 0;\n  let bottom = 0;\n  let left = 0;\n  let right = 0;\n  if (elements.length > 0) {\n    const tops: number[] = [];\n    const bottoms: number[] = [];\n    const lefts: number[] = [];\n    const rights: number[] = [];\n    elements.forEach(element => {\n      const rect = element.getBoundingClientRect();\n      tops.push(rect.top);\n      bottoms.push(rect.bottom);\n      lefts.push(rect.left);\n      rights.push(rect.right);\n    });\n    top = Math.min(...tops);\n    bottom = Math.max(...bottoms);\n    left = Math.min(...lefts);\n    right = Math.max(...rights);\n  }\n  return { top, bottom, left, right };\n};\n\nconst calculatePlacementRefOuterBounds = (\n  currentAxis: typeof AXIS_X | typeof AXIS_Y,\n  placementReferenceElement: HTMLElement | null\n): { upper: number; lower: number } => {\n  // The chain of scroll parents of the placement ref element up to and often including the body, checking for possible overlaps.\n  const placementRefScrollParents = getScrollParentsChain(\n    placementReferenceElement,\n    currentAxis.axis\n  );\n  const placementRefScrollParentRects = placementRefScrollParents.map(item =>\n    item.getBoundingClientRect()\n  );\n  // The biggest upper bound (top, left) of all scroll parents (and viewport = 0), the point before which content will be cut off.\n  const placementRefScrollParentsUpperBound = Math.max(\n    0,\n    ...placementRefScrollParentRects.map(item => item[currentAxis.upperBound])\n  );\n  // The smallest lower bound (bottom, right) of all scroll parents (and viewport), the point after which content will be cut off.\n  const placementRefScrollParentsLowerBound = Math.min(\n    window[currentAxis.windowSize],\n    ...placementRefScrollParentRects.map(item => item[currentAxis.lowerBound])\n  );\n  return { upper: placementRefScrollParentsUpperBound, lower: placementRefScrollParentsLowerBound };\n};\n\nconst calculateDirectionFromPlacementRef = (params: {\n  currentAxis: typeof AXIS_X | typeof AXIS_Y;\n  positionRegular: { left: number; top: number };\n  positionReverse: { left: number; top: number };\n  contentSize: number;\n  placementRefBounds: { upper: number; lower: number };\n  currentDirection: Direction;\n  rtl?: boolean;\n}): Direction => {\n  const {\n    currentAxis,\n    positionRegular,\n    positionReverse,\n    contentSize,\n    placementRefBounds,\n    currentDirection,\n    rtl\n  } = params;\n  // A number showing how many visible pixels would be available from the placement ref in regular / scroll (down, end) direction\n  const placementRefSpaceRegular =\n    placementRefBounds.lower - positionRegular[currentAxis.upperBound];\n  // A number showing how many visible pixels would be available from the placement ref in reverse (up, start) direction\n  const placementRefSpaceReverse =\n    positionReverse[currentAxis.upperBound] - placementRefBounds.upper;\n  if (placementRefSpaceReverse < contentSize && placementRefSpaceRegular < contentSize) {\n    // If there would not be enough room in both directions, always prefer regular / scroll (down, end) direction,\n    // since this way the element can expand and scroll while this cannot happen if there's not enough room in front.\n    return rtl ? currentAxis.directionReverse : currentAxis.directionRegular;\n  } else if (placementRefSpaceReverse < contentSize) {\n    return currentAxis.directionRegular;\n  } else if (placementRefSpaceRegular < contentSize) {\n    return currentAxis.directionReverse;\n  }\n  // If there would be enough room in both directions, use the set direction (or the regular one if not set).\n  return currentDirection;\n};\n\nconst getAbsoluteContentPosition = (params: {\n  direction: Direction;\n  placement: Placement;\n  element: HTMLElement;\n  align: Align;\n  rtl?: boolean;\n}): { left: number; top: number } => {\n  const { direction, placement, element, align, rtl } = params;\n  const elementRect = element.getBoundingClientRect();\n\n  const start = rtl ? elementRect.right : elementRect.left;\n  const end = rtl ? elementRect.left : elementRect.right;\n\n  let relativeLeftOffset: number;\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: number;\n  if (direction === 'up') {\n    relativeTopOffset = placement.includes('bottom') ? elementRect.bottom : elementRect.top;\n  } else if (direction === 'start' || direction === 'end') {\n    relativeTopOffset = !placement.includes('bottom') ? elementRect.top : elementRect.bottom;\n  } else {\n    relativeTopOffset = placement.includes('top') ? elementRect.top : elementRect.bottom;\n  }\n  return { left: relativeLeftOffset, top: relativeTopOffset };\n};\n\nconst getRelativeContentPosition = (params: {\n  contentElement: HTMLElement;\n  direction: Direction;\n  placement: Placement;\n  placementReferenceElement: HTMLElement;\n  align: Align;\n  rtl?: boolean;\n}): { left: number; top: number } => {\n  const { contentElement, direction, placement, placementReferenceElement, align, rtl } = params;\n  const contentParent = (contentElement as HTMLElement).offsetParent ?? document.body;\n  const contentParentRect = contentParent.getBoundingClientRect();\n  const relativePosition = getAbsoluteContentPosition({\n    direction,\n    placement,\n    element: placementReferenceElement,\n    align,\n    rtl\n  });\n  const leftOffset = relativePosition.left - contentParentRect.left + contentParent.scrollLeft;\n  const topOffset = relativePosition.top - contentParentRect.top + contentParent.scrollTop;\n  return { left: leftOffset, top: topOffset };\n};\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const getContentPositionString = (params: {\n  contentElement: HTMLElement;\n  direction: Direction;\n  placement: Placement;\n  placementReferenceElement: HTMLElement;\n  align: Align;\n  rtl?: boolean;\n}): string => {\n  const { contentElement, direction, placement, placementReferenceElement, align, rtl } = params;\n  const position = getRelativeContentPosition({\n    contentElement,\n    direction,\n    placement,\n    placementReferenceElement,\n    align,\n    rtl: rtl ?? isRTL()\n  });\n  return `translate3d(${position.left}px, ${position.top}px, 0px)`;\n};\n\n/** @deprecated Use the CDK Overlay instead. */\nexport const responsivelyCheckDirection = (params: {\n  isScrolling?: boolean;\n  currentDirection: Direction;\n  contentElements: HTMLElement[];\n  hostElement: HTMLElement | null;\n  placement: Placement;\n  placementReferenceElement: HTMLElement;\n  align: Align;\n  responsiveDirectionToPlacement: boolean;\n  closeOnPlacementReferenceScrollOut: boolean;\n  closeOnContentScrollOut: boolean;\n  minSpaceThresholdFactor?: number;\n  placementReverse?: Placement;\n  rtl?: boolean;\n}): { responsiveDirection?: Direction; close: boolean } => {\n  const {\n    isScrolling,\n    currentDirection,\n    contentElements,\n    hostElement,\n    placement,\n    placementReferenceElement,\n    align,\n    responsiveDirectionToPlacement,\n    closeOnPlacementReferenceScrollOut,\n    closeOnContentScrollOut,\n    minSpaceThresholdFactor,\n    placementReverse,\n    rtl\n  } = params;\n\n  const actualRtl = rtl ?? isRTL();\n\n  let responsiveDirection: Direction | undefined;\n\n  const actualCurrentDirection = actualRtl\n    ? currentDirection === 'start'\n      ? 'end'\n      : currentDirection === 'end'\n        ? 'start'\n        : currentDirection\n    : currentDirection;\n\n  // Defines how the properties to access are named in the current axis.\n  const currentAxis = currentDirection === 'start' || currentDirection === 'end' ? AXIS_X : AXIS_Y;\n  // The combined (enclosing) client rect for all component contents.\n  const contentsRect = getCombinedBoundingClientRect(contentElements);\n  // The chain of scroll parents of the container host element up to and often including the body, checking for possible overlaps.\n  const containerScrollParents = getScrollParentsChain(hostElement, currentAxis.axis);\n  const containerScrollParentRects = containerScrollParents.map(item =>\n    item.getBoundingClientRect()\n  );\n  // The biggest upper bound (top, left) of all scroll parents (and viewport = 0), the point before which content will be cut off.\n  const scrollParentsUpperBound = Math.max(\n    0,\n    ...containerScrollParentRects.map(item => item[currentAxis.upperBound])\n  );\n  // The smallest lower bound (bottom, right) of all scroll parents (and viewport), the point after which content will be cut off.\n  const scrollParentsLowerBound = Math.min(\n    window[currentAxis.windowSize],\n    ...containerScrollParentRects.map(item => item[currentAxis.lowerBound])\n  );\n\n  // The point from which the component will be opened if opening in regular / scroll (down, end) direction.\n  // Influenced by `componentPlacementReference`, `componentPlacement` and `componentAlign`.\n  const positionRegular = getAbsoluteContentPosition({\n    direction: currentAxis.directionRegular,\n    placement,\n    element: placementReferenceElement,\n    align\n  });\n  // The point from which the component will be opened if opening in reverse (up, start) direction.\n  // Influenced by `componentPlacementReference`, `componentPlacement` and `componentAlign`.\n  const positionReverse = getAbsoluteContentPosition({\n    direction: currentAxis.directionReverse,\n    placement: placementReverse ?? placement,\n    element: placementReferenceElement,\n    align\n  });\n\n  // The enclosing size (height, width) of all contents combined\n  const contentsSize = contentsRect[currentAxis.lowerBound] - contentsRect[currentAxis.upperBound];\n\n  // A number showing how many visible pixels would be available in regular / scroll (down, end) direction\n  const spaceRegular = scrollParentsLowerBound - positionRegular[currentAxis.upperBound];\n  // A number showing how many visible pixels would be available in reverse (up, start) direction\n  const spaceReverse = positionReverse[currentAxis.upperBound] - scrollParentsUpperBound;\n\n  let placementRefBounds: { upper: number; lower: number } | undefined;\n  if (spaceReverse < contentsSize && spaceRegular < contentsSize) {\n    // If there would not be enough room in both directions, always prefer regular / scroll (down, end) direction,\n    // since this way the element can expand and scroll while this cannot happen if there's not enough room in front.\n    responsiveDirection = actualRtl ? currentAxis.directionReverse : currentAxis.directionRegular;\n  } else if (minSpaceThresholdFactor) {\n    const contentsSizeWithThreshold = contentsSize + minSpaceThresholdFactor * contentsSize;\n    if (spaceReverse < contentsSizeWithThreshold && spaceRegular < contentsSizeWithThreshold) {\n      // If a threshold is set and there would not be enough space including the threshold in both directions\n      // use the direction with more space\n      if (spaceReverse < spaceRegular) {\n        responsiveDirection = currentAxis.directionRegular;\n      } else {\n        responsiveDirection = currentAxis.directionReverse;\n      }\n    } else if (spaceReverse < contentsSizeWithThreshold) {\n      responsiveDirection = currentAxis.directionRegular;\n    } else if (spaceRegular < contentsSizeWithThreshold) {\n      responsiveDirection = currentAxis.directionReverse;\n    }\n  }\n  if (!responsiveDirection) {\n    if (spaceReverse < contentsSize) {\n      responsiveDirection = currentAxis.directionRegular;\n    } else if (spaceRegular < contentsSize) {\n      responsiveDirection = currentAxis.directionReverse;\n    } else {\n      if (\n        responsiveDirectionToPlacement &&\n        placementReferenceElement &&\n        hostElement !== placementReferenceElement\n      ) {\n        placementRefBounds = calculatePlacementRefOuterBounds(\n          currentAxis,\n          placementReferenceElement\n        );\n        responsiveDirection = calculateDirectionFromPlacementRef({\n          currentAxis,\n          positionRegular,\n          positionReverse,\n          contentSize: contentsSize,\n          placementRefBounds,\n          currentDirection: actualCurrentDirection,\n          rtl: actualRtl\n        });\n      } else {\n        // If there would be enough room in both directions, use the set direction (or the regular one if not set).\n        responsiveDirection = actualCurrentDirection;\n      }\n    }\n  }\n\n  let close = false;\n  if (isScrolling) {\n    // Check if the container host or placement reference is hidden and close the component. (Mostly done when scrolling.)\n    if (\n      closeOnPlacementReferenceScrollOut &&\n      placementReferenceElement &&\n      hostElement !== placementReferenceElement\n    ) {\n      placementRefBounds ??= calculatePlacementRefOuterBounds(\n        currentAxis,\n        placementReferenceElement\n      );\n      const placementRefRect = placementReferenceElement.getBoundingClientRect();\n      // A number showing how many visible pixels of the placement ref would be shown in reverse (up, start) direction\n      const placementRefVisibleTop =\n        placementRefRect[currentAxis.lowerBound] - placementRefBounds.upper;\n      // A number showing how many visible pixels of the placement ref would be shown in regular / scroll (down, end) direction\n      const placementRefVisibleBottom =\n        placementRefBounds.lower - placementRefRect[currentAxis.upperBound];\n      if (placementRefVisibleTop < 0 || placementRefVisibleBottom < 0) {\n        // Close the component if the placement ref is not visible.\n        close = true;\n      }\n    }\n    if (!close && closeOnContentScrollOut) {\n      // A number showing how many visible pixels would be available the other way if set to regular / scroll (down, end) direction\n      const spaceRegularOtherSide =\n        scrollParentsLowerBound - positionReverse[currentAxis.upperBound];\n      // A number showing how many visible pixels would be available the other way if set to reverse (up, start) direction\n      const spaceReverseOtherSide =\n        positionRegular[currentAxis.upperBound] - scrollParentsUpperBound;\n      if (spaceRegularOtherSide < 0 || spaceReverseOtherSide < 0) {\n        // Close the component if there is not enough space even in the other direction.\n        close = true;\n      }\n    }\n  }\n  responsiveDirection = actualRtl\n    ? responsiveDirection === 'start'\n      ? 'end'\n      : responsiveDirection === 'end'\n        ? 'start'\n        : responsiveDirection\n    : responsiveDirection;\n  return { responsiveDirection, close };\n};\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\n// Adds a window listener which can optionally be active, returns the unregister function.\n// For some events (e.g. \"touchmove\") an explicit \"passive: false\" is required in order to\n// be able to do $event.preventDefault(). Unfortunately there is no way in Angular to pass\n// options to Rendrer2/EventManager event handling.\nexport const listenGlobal = (\n  eventName: string,\n  handler: (e: any) => void,\n  active?: boolean\n): (() => void) => {\n  let opts: any = false;\n  if (active !== undefined) {\n    opts = { passive: !active };\n  }\n\n  window.addEventListener(eventName, handler, opts);\n  return () => {\n    window.removeEventListener(eventName, handler, opts);\n  };\n};\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\n/* eslint-disable prefer-arrow/prefer-arrow-functions */\nimport {\n  ConnectedOverlayPositionChange,\n  ConnectionPositionPair,\n  CDK_CONNECTED_OVERLAY_DEFAULT_CONFIG,\n  FlexibleConnectedPositionStrategy,\n  Overlay,\n  OverlayConfig,\n  OverlayRef,\n  PositionStrategy,\n  ScrollStrategy,\n  ScrollStrategyOptions\n} from '@angular/cdk/overlay';\nimport { ElementRef, inject } from '@angular/core';\n\nimport { positions } 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\n/**\n * Returns the configured connected-overlay scroll strategy or the CDK reposition fallback.\n * Must be called in an Angular injection context.\n */\nexport function defaultConnectedOverlayScrollStrategy(): ScrollStrategy {\n  return defaultConnectedOverlayScrollStrategyFactory()();\n}\n\n/**\n * Returns a factory that creates a connected-overlay scroll strategy on demand.\n * Must be called in an Angular injection context.\n */\nexport function defaultConnectedOverlayScrollStrategyFactory(): () => ScrollStrategy {\n  const defaultScrollStrategy = inject(CDK_CONNECTED_OVERLAY_DEFAULT_CONFIG, {\n    optional: true\n  })?.scrollStrategy;\n  const scrollStrategyOptions = inject(ScrollStrategyOptions);\n  return () => defaultScrollStrategy ?? scrollStrategyOptions.reposition();\n}\n\nexport function makeOverlay(\n  positionStrategy: PositionStrategy,\n  overlay: Overlay,\n  hasBackdrop: boolean,\n  scrollStrategy?: ScrollStrategy\n): OverlayRef {\n  const config = new OverlayConfig();\n  config.positionStrategy = positionStrategy;\n  config.scrollStrategy = 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  scrollStrategy?: ScrollStrategy\n): OverlayRef {\n  const positionStrategy = makePositionStrategy(elementRef, overlay, placement, constrain, center);\n  return makeOverlay(positionStrategy, overlay, hasBackdrop, scrollStrategy);\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  void elementRef;\n  const overlayPositions = typeof placement === 'string' ? positions[placement] : placement;\n\n  return overlayPositions.map(position => {\n    const isVerticalEdgePosition =\n      (position.originY === 'top' || position.originY === 'bottom') &&\n      (position.overlayX === 'start' || position.overlayX === 'end');\n\n    return isVerticalEdgePosition\n      ? { ...position, originX: center ? position.overlayX : 'center' }\n      : position;\n  });\n}\n\nexport function hasTrigger(trigger: string, triggers?: string): boolean {\n  return (triggers?.split(/\\s+/) ?? []).includes(trigger);\n}\n\nexport interface OverlayArrowPosition {\n  left?: number;\n  right?: number;\n}\n/**\n * calculates the arrow position from left/right for tooltips, popovers, etc\n * @param change - the event from the position strategy\n * @param overlay - ElementRef for the overlay content, i.e. the popover/tooltip component\n * @param anchor - ElementRef for the anchoring element, i.e. the trigger of the popover/tooltip\n */\nexport function calculateOverlayArrowPosition(\n  change: ConnectedOverlayPositionChange,\n  overlay: ElementRef,\n  anchor?: ElementRef\n): OverlayArrowPosition {\n  if (anchor && ['bottom', 'top'].includes(change.connectionPair.originY)) {\n    // Calculate offset to the anchor element center\n    const anchorRect = anchor.nativeElement.getBoundingClientRect();\n    const overlayRect = overlay.nativeElement.getBoundingClientRect();\n    const center = anchorRect.left + anchorRect.width / 2;\n    // Position arrow centered to the anchor element\n\n    // prettier-ignore\n    return isRTL()\n      ? { right: overlayRect.right - center }\n      : { left: center - overlayRect.left };\n  }\n\n  const offsetX = change.connectionPair.offsetX;\n  if (offsetX) {\n    // prettier-ignore\n    return offsetX < 0\n      ? { left: -offsetX }\n      : { right: offsetX };\n  }\n  return {};\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './animation.helpers';\nexport * from './positioning.helpers';\nexport * from './rtl';\nexport * from './global-events.helpers';\nexport * from './overlay-helper';\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Type } from '@angular/core';\n\n// note: this _must_ be a function, not an arrow\n// eslint-disable-next-line\nexport function WebComponentContentChildren<T>(host: Type<T>) {\n  // holds the Type information of child component and the property name of parent component which is used to hold it.\n  return (...args: any) => {\n    args[0].__contentQuery = {\n      host,\n      prop: args[1]\n    };\n  };\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './webcomponent.decorator';\n","/**\n * Copyright (c) Siemens 2016 - 2026\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,oBA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