{"version":3,"file":"siemens-element-ng-typeahead.mjs","sources":["../../../../projects/element-ng/typeahead/si-typeahead-item-template.directive.ts","../../../../projects/element-ng/typeahead/si-typeahead.component.ts","../../../../projects/element-ng/typeahead/si-typeahead.component.html","../../../../projects/element-ng/typeahead/si-typeahead.search.ts","../../../../projects/element-ng/typeahead/si-typeahead.sorting.ts","../../../../projects/element-ng/typeahead/si-typeahead.directive.ts","../../../../projects/element-ng/typeahead/si-typeahead.module.ts","../../../../projects/element-ng/typeahead/index.ts","../../../../projects/element-ng/typeahead/siemens-element-ng-typeahead.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Directive } from '@angular/core';\n\nimport { TypeaheadOptionItemContext } from './si-typeahead.model';\n\n@Directive({\n  selector: '[siTypeaheadItemTemplate]'\n})\nexport class SiTypeaheadItemTemplateDirective {\n  static ngTemplateContextGuard(\n    dir: SiTypeaheadItemTemplateDirective,\n    ctx: any\n  ): ctx is TypeaheadOptionItemContext {\n    return true;\n  }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { NgTemplateOutlet } from '@angular/common';\nimport { AfterViewInit, Component, computed, ElementRef, inject, viewChild } from '@angular/core';\nimport {\n  SiAutocompleteDirective,\n  SiAutocompleteListboxDirective,\n  SiAutocompleteOptionDirective\n} from '@siemens/element-ng/autocomplete';\nimport { SiIconComponent } from '@siemens/element-ng/icon';\nimport { SiLoadingSpinnerDirective } from '@siemens/element-ng/loading-spinner';\nimport { SiTranslatePipe } from '@siemens/element-translate-ng/translate';\n\nimport { SiTypeaheadItemTemplateDirective } from './si-typeahead-item-template.directive';\nimport { SiTypeaheadDirective } from './si-typeahead.directive';\nimport { TypeaheadMatch } from './si-typeahead.model';\n\n@Component({\n  selector: 'si-typeahead',\n  imports: [\n    SiAutocompleteListboxDirective,\n    SiAutocompleteOptionDirective,\n    SiIconComponent,\n    NgTemplateOutlet,\n    SiTranslatePipe,\n    SiTypeaheadItemTemplateDirective,\n    SiLoadingSpinnerDirective\n  ],\n  templateUrl: './si-typeahead.component.html',\n  styleUrl: './si-typeahead.component.scss',\n  host: { class: 'w-100', '(mousedown)': '$event.preventDefault()' }\n})\nexport class SiTypeaheadComponent implements AfterViewInit {\n  protected parent = inject(SiTypeaheadDirective);\n  protected readonly matches = computed(() =>\n    this.parent.typeaheadOptionsLimit()\n      ? this.parent.foundMatches().slice(0, this.parent.typeaheadOptionsLimit())\n      : this.parent.foundMatches()\n  );\n\n  protected readonly multiselect = computed(() => this.parent.typeaheadMultiSelect());\n\n  private readonly typeaheadElement = viewChild.required('typeahead', {\n    read: ElementRef\n  });\n\n  protected autocompleteDirective = inject(SiAutocompleteDirective);\n\n  ngAfterViewInit(): void {\n    this.setHeight(this.typeaheadElement());\n  }\n\n  /*\n   * Set the height of the element passed to it (typeahead) if there are items displayed,\n   * the number of displayed items changed and it is scrollable.\n   */\n  private setHeight(element: ElementRef): void {\n    if (this.matches().length) {\n      if (\n        this.parent.typeaheadScrollable() &&\n        this.parent.typeaheadOptionsInScrollableView() < this.matches().length\n      ) {\n        const computedStyle = getComputedStyle(element.nativeElement);\n        const matchComputedStyle = getComputedStyle(element.nativeElement.firstElementChild);\n        const matchHeight = parseFloat(matchComputedStyle.height || '0');\n        const paddingTop = parseFloat(computedStyle.paddingTop || '0');\n        const paddingBottom = parseFloat(computedStyle.paddingBottom || '');\n        const height = this.parent.typeaheadOptionsInScrollableView() * matchHeight;\n        element.nativeElement.style.maxBlockSize = `${\n          height + paddingTop + paddingBottom + this.parent.typeaheadScrollableAdditionalHeight()\n        }px`;\n      } else {\n        element.nativeElement.style.maxBlockSize = 'auto';\n      }\n    }\n  }\n\n  // Gets called when a match is selected by clicking on it.\n  protected selectMatch(match: TypeaheadMatch | undefined): void {\n    if (match) {\n      this.parent.selectMatch(match);\n    } else {\n      this.parent.createOption();\n    }\n  }\n}\n","<!-- Template to be used for every match, can be replaced using an input. -->\n<ng-template #defaultItemTemplate let-match=\"match\" siTypeaheadItemTemplate>\n  @if (multiselect()) {\n    <div class=\"d-flex pe-4\" aria-hidden=\"true\">\n      <span class=\"form-check-input si-form-checkbox\" [class.checked]=\"match.itemSelected\"></span>\n    </div>\n  }\n  @if (match.iconClass) {\n    <si-icon class=\"icon dropdown-item-icon me-2\" [icon]=\"match.iconClass\" />\n  }\n  @for (segment of match.result; track $index) {\n    <span [class.typeahead-match-segment-matching]=\"segment.isMatching\">{{ segment.text }}</span>\n  }\n</ng-template>\n\n@let createOption = parent.typeaheadCreateOption();\n\n<!-- Only display the component if there are any matches and set the CSS transform to properly position the typeahead -->\n<ul\n  #typeahead\n  class=\"typeahead dropdown-menu\"\n  [class.empty-loading]=\"parent.typeaheadLoading() && matches().length === 0\"\n  [siLoading]=\"parent.typeaheadLoading() && matches().length === 0\"\n  [initialDelay]=\"false\"\n  [siAutocompleteListboxFor]=\"autocompleteDirective\"\n  [siAutocompleteDefaultIndex]=\"parent.typeaheadAutoSelectIndex()\"\n  [attr.aria-label]=\"parent.typeaheadAutocompleteListLabel() | translate\"\n  (siAutocompleteOptionSubmitted)=\"selectMatch($event)\"\n>\n  @if (parent.typeaheadLoading() && matches().length) {\n    <li class=\"dropdown-item\" [siLoading]=\"true\" [initialDelay]=\"false\"></li>\n  }\n  <!-- Loop through every match and bind events, the mousedown prevent default is to prevent the host from losing focus on click -->\n  @for (match of matches(); track $index) {\n    <li\n      #typeaheadMatch\n      class=\"dropdown-item\"\n      [siAutocompleteOption]=\"match\"\n      [attr.aria-label]=\"match.text\"\n      [attr.aria-selected]=\"multiselect() ? match.itemSelected : null\"\n      (click)=\"$event.stopPropagation()\"\n      (mousedown)=\"$event.preventDefault()\"\n    >\n      <!-- Display either a template set as the input or the template above -->\n      <ng-template\n        [ngTemplateOutlet]=\"parent.typeaheadItemTemplate() || defaultItemTemplate\"\n        [ngTemplateOutletContext]=\"{\n          item: match.option,\n          index: $index,\n          match: match,\n          query: parent.query()\n        }\"\n      />\n    </li>\n  }\n  @if (createOption && parent.query().length) {\n    <li class=\"dropdown-item\" [siAutocompleteOption]=\"undefined\">\n      {{ createOption | translate: { query: parent.query() } }}\n    </li>\n  }\n</ul>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { computed, Signal, untracked } from '@angular/core';\n\nexport interface SearchOptions<T> {\n  /** The text that will be used for searching. */\n  text: string;\n  /** The raw option that will be also included in the Match results */\n  option: T;\n}\n\nexport interface MatchSegment {\n  text: string;\n  isMatching: boolean;\n  matches: number;\n  uniqueMatches: number;\n}\n\nexport interface Match<T> {\n  option: T;\n  text: string;\n  result: MatchSegment[];\n  stringMatch: boolean;\n  atBeginning: boolean;\n  matches: number;\n  uniqueMatches: number;\n  uniqueSeparateMatches: number;\n  matchesEntireQuery: boolean;\n  matchesAllParts: boolean;\n  matchesAllPartsSeparately: boolean;\n}\n\nexport interface SearchConfig {\n  /** Defines whether to tokenize the search or match the whole search. */\n  disableTokenizing?: boolean;\n  /**\n   * Defines whether and how to require to match with all the tokens if {@link typeaheadTokenize} is enabled.\n   * - `no` does not require all of the tokens to match.\n   * - `once` requires all of the parts to be found in the search.\n   * - `separately` requires all of the parts to be found in the search where there is not an overlapping different result.\n   * - `independently` requires all of the parts to be found in the search where there is not an overlapping or adjacent different result.\n   *  ('independently' also slightly changes sorting behavior in the same way.)\n   */\n  matchAllTokens: 'no' | 'once' | 'separately' | 'independently';\n  /**\n   * When enabled, the search output will only be updated, if the options are changed.\n   * Query changes will not trigger an update.\n   *\n   * Use this when lazy loading the options, so the search need to wait, until the options are loaded.\n   */\n  lazy?: boolean;\n}\n\n/**\n * Constructs a typeahead search and provides the matches as a signal.\n *\n * @param options - Factory function that should return the array of options to search in.\n * Is run in a reactive context.\n * @param query - Factory function that should return the current search query. Is run in a reactive context.\n * @param config - Configuration for the search. Is run in a reactive context.\n *\n * @example\n * In a real world, myOptions and mayQuery would be signals.\n * ```ts\n * const search = typeaheadSearch(\n *   () => myOptions().map(...),\n *   () => myQuery().toLowerCase(),\n *   () => ({ matchAllTokens: 'separately' })\n * )\n * ```\n */\nexport const typeaheadSearch = <T>(\n  options: () => SearchOptions<T>[],\n  query: () => string,\n  config: () => SearchConfig\n): Signal<Match<T>[]> => computed(() => new TypeaheadSearch<T>(options, query, config()).matches());\n\nclass TypeaheadSearch<T> {\n  readonly matches = computed<Match<T>[]>(() => this.search(this.datasource(), this.readQuery()));\n\n  constructor(\n    private readonly datasource: () => SearchOptions<T>[],\n    private readonly query: () => string,\n    private readonly options: SearchConfig\n  ) {}\n\n  private readQuery(): string {\n    if (this.options.lazy) {\n      return untracked(() => this.query());\n    } else {\n      return this.query();\n    }\n  }\n\n  private escapeRegex(query: string): string {\n    return query.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&');\n  }\n\n  private search(options: SearchOptions<T>[], query: string): Match<T>[] {\n    try {\n      const entireQueryRegex = new RegExp(this.escapeRegex(query), 'i');\n      const normalizedQuery = query.toLocaleLowerCase().trim();\n\n      const queryParts = !this.options.disableTokenizing\n        ? query.split(/\\s+/g).filter(queryPart => queryPart)\n        : query\n          ? [query]\n          : [];\n\n      const queryRegexes = queryParts.map(\n        queryPart => new RegExp(this.escapeRegex(queryPart), 'gi')\n      );\n      // Process the options.\n      const matches: Match<T>[] = [];\n      options.forEach(option => {\n        const optionValue = option.text;\n        const stringMatch = optionValue.toLocaleLowerCase().trim() === normalizedQuery;\n        const candidate: Match<T> = {\n          option: option.option,\n          text: optionValue,\n          result: [],\n          stringMatch,\n          atBeginning: false,\n          matches: 0,\n          uniqueMatches: 0,\n          uniqueSeparateMatches: 0,\n          matchesEntireQuery: false,\n          matchesAllParts: false,\n          matchesAllPartsSeparately: false\n        };\n\n        // Only search the options if a part of the query is at least one character long to prevent an endless loop.\n        if (queryParts.length === 0) {\n          if (optionValue) {\n            candidate.result.push({\n              text: optionValue,\n              isMatching: false,\n              matches: 0,\n              uniqueMatches: 0\n            });\n          }\n          matches.push(candidate);\n        } else {\n          const allResults: { index: number; start: number; end: number; result: string }[] = [];\n          const allIndexes = new Set<number>();\n\n          candidate.matchesEntireQuery = entireQueryRegex.test(optionValue);\n\n          // Loop through the option value to find multiple matches, then store every segment (matching or non-matching) in the results.\n          queryRegexes.forEach((queryRegex, index) => {\n            let regexMatch = queryRegex.exec(optionValue);\n\n            while (regexMatch) {\n              allResults.push({\n                index,\n                start: regexMatch.index,\n                end: regexMatch.index + regexMatch[0].length,\n                result: regexMatch[0]\n              });\n              if (!regexMatch.index) {\n                candidate.atBeginning = true;\n              }\n              allIndexes.add(index);\n              regexMatch = queryRegex.exec(optionValue);\n            }\n          });\n\n          candidate.matchesAllParts = allIndexes.size === queryParts.length;\n\n          // Check if all parts of the query match at least once (if required).\n          if (this.options.matchAllTokens === 'no' || candidate.matchesAllParts) {\n            const combinedResults: {\n              indexes: number[];\n              uniqueIndexes: number[];\n              start: number;\n              end: number;\n              result: string;\n            }[] = [];\n\n            // First combine intersecting (or if set to independently adjacent) results to combined results.\n            // We achieve this by first sorting them by the starting index, then by the ending index and then looking for overlaps.\n            allResults\n              .sort((a, b) => a.start - b.start || a.end - b.end)\n              .forEach(result => {\n                const previousResult = combinedResults[combinedResults.length - 1];\n                if (\n                  previousResult &&\n                  (this.options.matchAllTokens === 'independently'\n                    ? result.start <= previousResult.end\n                    : result.start < previousResult.end)\n                ) {\n                  previousResult.result += result.result.slice(\n                    previousResult.end - result.start,\n                    result.result.length\n                  );\n                  if (result.end > previousResult.end) {\n                    previousResult.end = result.end;\n                  }\n                  previousResult.indexes.push(result.index);\n                  if (!previousResult.uniqueIndexes.includes(result.index)) {\n                    previousResult.uniqueIndexes.push(result.index);\n                  }\n                  return;\n                }\n                combinedResults.push({\n                  ...result,\n                  indexes: [result.index],\n                  uniqueIndexes: [result.index]\n                });\n              });\n\n            // Find a maximum matching between segments and query tokens, reassigning earlier tokens when needed.\n            const matchedIndexes = new Map<number, number>();\n            const assignIndex = (resultIndex: number, visitedIndexes: Set<number>): boolean => {\n              for (const index of combinedResults[resultIndex].uniqueIndexes) {\n                if (visitedIndexes.has(index)) {\n                  continue;\n                }\n                visitedIndexes.add(index);\n                const previousResultIndex = matchedIndexes.get(index);\n                if (\n                  previousResultIndex === undefined ||\n                  assignIndex(previousResultIndex, visitedIndexes)\n                ) {\n                  matchedIndexes.set(index, resultIndex);\n                  return true;\n                }\n              }\n              return false;\n            };\n\n            for (\n              let index = 0;\n              index < combinedResults.length && matchedIndexes.size < queryParts.length;\n              index++\n            ) {\n              assignIndex(index, new Set<number>());\n            }\n\n            candidate.uniqueSeparateMatches = matchedIndexes.size;\n            candidate.matchesAllPartsSeparately =\n              candidate.uniqueSeparateMatches === queryParts.length;\n\n            let currentPreviousEnd = 0;\n\n            // Add the combined results to the candidate including the non-matching parts in between.\n            combinedResults.forEach(result => {\n              const textBefore = optionValue.slice(currentPreviousEnd, result.start);\n              if (textBefore) {\n                candidate.result.push({\n                  text: textBefore,\n                  isMatching: false,\n                  matches: 0,\n                  uniqueMatches: 0\n                });\n              }\n              candidate.result.push({\n                text: result.result,\n                isMatching: true,\n                matches: result.indexes.length,\n                uniqueMatches: result.uniqueIndexes.length\n              });\n              currentPreviousEnd = result.end;\n              candidate.matches += result.indexes.length;\n              candidate.uniqueMatches += result.uniqueIndexes.length;\n            });\n\n            // Check if there are result segments and all parts are matched independently (if required).\n            if (\n              candidate.result.length !== 0 &&\n              ((this.options.matchAllTokens !== 'separately' &&\n                this.options.matchAllTokens !== 'independently') ||\n                candidate.matchesAllPartsSeparately)\n            ) {\n              const textAtEnd = optionValue.slice(currentPreviousEnd);\n              if (textAtEnd) {\n                candidate.result.push({\n                  text: textAtEnd,\n                  isMatching: false,\n                  matches: 0,\n                  uniqueMatches: 0\n                });\n              }\n              matches.push(candidate);\n            }\n          }\n        }\n      });\n\n      return matches;\n    } catch {\n      // Could not create regex (only in extremely rare cases, maybe even impossible), so return an empty array.\n      return [];\n    }\n  }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { TypeaheadMatch } from './si-typeahead.model';\n\nexport class SiTypeaheadSorting {\n  sortMatches(matches: TypeaheadMatch[]): TypeaheadMatch[] {\n    // Sort the matches,\n    // first is the option and query an exact match.\n    // then according to whether it is matching in the beginning,\n    // then whether it matches the entire untokenized query.\n    // then according to how many unique separate matches it contains.\n    // then according to how many unique matches it contains.\n    // then according to how many matches it contains.\n    return matches.sort((matchA, matchB) => {\n      if (matchA.stringMatch || matchB.stringMatch) {\n        return matchA.stringMatch ? -1 : 1;\n      }\n      if (matchA.atBeginning) {\n        return !matchB.atBeginning ? -1 : this.compareMatches(matchA, matchB);\n      } else {\n        return matchB.atBeginning ? 1 : this.compareMatches(matchA, matchB);\n      }\n    });\n  }\n\n  private compareMatchesNumbers(matchA: TypeaheadMatch, matchB: TypeaheadMatch): number {\n    return (\n      matchB.uniqueSeparateMatches - matchA.uniqueSeparateMatches ||\n      matchB.uniqueMatches - matchA.uniqueMatches ||\n      matchB.matches - matchA.matches\n    );\n  }\n\n  private compareMatches(matchA: TypeaheadMatch, matchB: TypeaheadMatch): number {\n    if (matchA.matchesEntireQuery) {\n      return !matchB.matchesEntireQuery ? -1 : this.compareMatchesNumbers(matchA, matchB);\n    } else {\n      return matchB.matchesEntireQuery ? 1 : this.compareMatchesNumbers(matchA, matchB);\n    }\n  }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ConnectionPositionPair, Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n  booleanAttribute,\n  ComponentRef,\n  computed,\n  Directive,\n  effect,\n  ElementRef,\n  inject,\n  Injector,\n  input,\n  numberAttribute,\n  OnChanges,\n  OnDestroy,\n  output,\n  signal,\n  SimpleChanges,\n  TemplateRef\n} from '@angular/core';\nimport { toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { SiAutocompleteDirective } from '@siemens/element-ng/autocomplete';\nimport { defaultConnectedOverlayScrollStrategy } from '@siemens/element-ng/common';\nimport { t, TranslatableString } from '@siemens/element-translate-ng/translate';\nimport { catchError, isObservable, ReplaySubject, Subscription, timer } from 'rxjs';\nimport { map, share, switchMap, takeUntil } from 'rxjs/operators';\n\nimport { SiTypeaheadComponent } from './si-typeahead.component';\nimport {\n  Typeahead,\n  TypeaheadArray,\n  TypeaheadMatch,\n  TypeaheadOption,\n  TypeaheadOptionItemContext,\n  TypeaheadOptionSource\n} from './si-typeahead.model';\nimport { typeaheadSearch } from './si-typeahead.search';\nimport { SiTypeaheadSorting } from './si-typeahead.sorting';\n\n@Directive({\n  selector: '[siTypeahead]',\n  host: {\n    class: 'si-typeahead',\n    '(focusout)': 'onBlur()',\n    '(focusin)': 'onInput($event)',\n    '(input)': 'onInput($event)',\n    '(keydown.escape)': 'onKeydownEscape()'\n  },\n  hostDirectives: [SiAutocompleteDirective],\n  exportAs: 'si-typeahead'\n})\nexport class SiTypeaheadDirective implements OnChanges, OnDestroy {\n  protected static readonly overlayPositions: ConnectionPositionPair[] = [\n    {\n      overlayX: 'start',\n      overlayY: 'top',\n      originX: 'start',\n      originY: 'bottom',\n      offsetY: 2\n    },\n    {\n      overlayX: 'start',\n      overlayY: 'bottom',\n      originX: 'start',\n      originY: 'top',\n      offsetY: -4\n    },\n    {\n      overlayX: 'end',\n      overlayY: 'top',\n      originX: 'end',\n      originY: 'bottom',\n      offsetY: 2\n    },\n    {\n      overlayX: 'end',\n      overlayY: 'bottom',\n      originX: 'end',\n      originY: 'top',\n      offsetY: -4\n    }\n  ];\n\n  /**\n   * Set the options of the typeahead.\n   * Has to be either an Array or an Observable of an Array\n   * of options (string or object)\n   */\n  readonly siTypeahead = input.required<Typeahead>();\n\n  /**\n   * Turns on/off the processing (searching and sorting) of the typeahead options.\n   * Is used when searching and sorting is done externally.\n   *\n   * @defaultValue true\n   */\n  readonly typeaheadProcess = input(true, {\n    transform: booleanAttribute\n  });\n  /**\n   * Makes the typeahead scrollable and sets its height.\n   * Uses {@link typeaheadOptionsInScrollableView} and {@link typeaheadScrollableAdditionalHeight}.\n   *\n   * @defaultValue false\n   */\n  readonly typeaheadScrollable = input(false, { transform: booleanAttribute });\n\n  /**\n   * If {@link typeaheadScrollable} is `true`, defines the number of items visible at once.\n   *\n   * @defaultValue 10\n   */\n  readonly typeaheadOptionsInScrollableView = input(10);\n\n  /**\n   * Defines the maximum number of items added into the DOM. Default is 20 and 0 means unlimited.\n   *\n   * @defaultValue 20\n   */\n  readonly typeaheadOptionsLimit = input(20);\n\n  /**\n   * If {@link typeaheadScrollable} is `true`, defines the number of additional pixels\n   * to be added the the bottom of the typeahead to show users that it is scrollable.\n   *\n   * @defaultValue 13\n   */\n  readonly typeaheadScrollableAdditionalHeight = input(13);\n\n  /**\n   * Defines the index of the item which should automatically be selected.\n   *\n   * @defaultValue 0\n   */\n  readonly typeaheadAutoSelectIndex = input(0, { transform: numberAttribute });\n  /**\n   * Defines whether the typeahead can be closed using escape.\n   *\n   * @defaultValue true\n   */\n  readonly typeaheadCloseOnEsc = input(true, { transform: booleanAttribute });\n  /**\n   * Defines whether the host value should be cleared when a value is selected.\n   *\n   * @defaultValue false\n   */\n  readonly typeaheadClearValueOnSelect = input(false, { transform: booleanAttribute });\n  /**\n   * Defines the number of milliseconds to wait before displaying a typeahead after the host was\n   * focused or a value inputted.\n   *\n   * @defaultValue 0\n   */\n  readonly typeaheadWaitMs = input(0);\n\n  /**\n   * Defines the number of characters the value of the host needs to be before a typeahead is displayed.\n   * Use `0` to have it display when focussing the host (clicking or tabbing into it).\n   *\n   * @defaultValue 1\n   */\n  readonly typeaheadMinLength = input(1);\n\n  /**\n   * Defines the name of the field/property the option string is in when the typeahead options are objects.\n   *\n   * @defaultValue 'name'\n   */\n  readonly typeaheadOptionField = input('name');\n  /**\n   * Defines whether multiselection of typeahead is possible with checkboxes.\n   *\n   * @defaultValue false\n   */\n  readonly typeaheadMultiSelect = input(false, { transform: booleanAttribute });\n\n  /**\n   * Defines whether to tokenize the search or match the whole search.\n   *\n   * @defaultValue true\n   */\n  readonly typeaheadTokenize = input(true, { transform: booleanAttribute });\n  /**\n   * Defines whether and how to require to match with all the tokens if {@link typeaheadTokenize} is enabled.\n   * - `no` does not require all of the tokens to match.\n   * - `once` requires all of the parts to be found in the search.\n   * - `separately` requires all of the parts to be found in the search where there is not an overlapping different result.\n   * - `independently` requires all of the parts to be found in the search where there is not an overlapping or adjacent different result.\n   *  ('independently' also slightly changes sorting behavior in the same way.)\n   *\n   * @defaultValue 'separately'\n   */\n  readonly typeaheadMatchAllTokens = input<'no' | 'once' | 'separately' | 'independently'>(\n    'separately'\n  );\n  /**\n   * Defines an optional template to use as the typeahead match item instead of the one built in.\n   * Gets the {@link TypeaheadOptionItemContext} passed to it.\n   */\n  readonly typeaheadItemTemplate = input<TemplateRef<TypeaheadOptionItemContext>>();\n  /**\n   * Skip the sorting of matches.\n   * If the value is `true`, the matches are sorted according to {@link SiTypeaheadSorting}.\n   *\n   * @defaultValue false\n   */\n  readonly typeaheadSkipSortingMatches = input(false, { transform: booleanAttribute });\n\n  /**\n   * Screen reader only label for the autocomplete list.\n   *\n   * @defaultValue\n   * ```\n   * t(() => $localize`:@@SI_TYPEAHEAD.AUTOCOMPLETE_LIST_LABEL:Suggestions`)\n   * ```\n   */\n  readonly typeaheadAutocompleteListLabel = input(\n    t(() => $localize`:@@SI_TYPEAHEAD.AUTOCOMPLETE_LIST_LABEL:Suggestions`)\n  );\n\n  /**\n   * If set, the typeahead will at minium have the width of the connected input field.\n   *\n   * @defaultValue false\n   */\n  readonly typeaheadFullWidth = input(false, { transform: booleanAttribute });\n\n  /**\n   * CDK scroll strategy used for the typeahead overlay.\n   *\n   * @defaultValue defaultConnectedOverlayScrollStrategy()\n   */\n  readonly typeaheadScrollStrategy = input(defaultConnectedOverlayScrollStrategy());\n\n  /**\n   * This option will be shown at the end of the typeahead.\n   * Use it to allow users to create new options on the fly.\n   *\n   * Use the `{{ query }}` parameter in translation values to include the current text from the input.\n   *\n   * @experimental\n   */\n  readonly typeaheadCreateOption = input<TranslatableString>();\n  /**\n   * Emits an Event when the input field is changed.\n   */\n  readonly typeaheadOnInput = output<string>();\n  /**\n   * Emits an Event when a typeahead match is selected.\n   * The event is a {@link TypeaheadMatch}\n   */\n  readonly typeaheadOnSelect = output<TypeaheadMatch>();\n\n  /**\n   * Emits an Event when a typeahead full match exists. A full match occurs when the entered text\n   * is equal to one of the typeahead options.\n   * The event is a {@link TypeaheadMatch}\n   */\n  readonly typeaheadOnFullMatch = output<TypeaheadMatch>();\n\n  /** Emits whenever the typeahead overlay is opened or closed. */\n  readonly typeaheadOpenChange = output<boolean>();\n\n  /**\n   * Emits when the create option is selected.\n   * It will emit the current search query.\n   *\n   * @experimental\n   */\n  readonly typeaheadOnCreateOption = output<string>();\n\n  /** @internal */\n  readonly foundMatches = computed(() =>\n    this.typeaheadProcess() ? this.processedSearch() : this.unprocessedSearch()\n  );\n  /** @internal */\n  readonly query = signal('');\n\n  /**\n   * Indicates whether the typeahead is shown.\n   */\n  get typeaheadOpen(): boolean {\n    return !!this.componentRef;\n  }\n  private overlay = inject(Overlay);\n  private elementRef = inject<ElementRef<HTMLInputElement>>(ElementRef);\n  private injector = inject(Injector);\n\n  private $typeahead = new ReplaySubject<TypeaheadArray>(1);\n  private componentRef?: ComponentRef<SiTypeaheadComponent>;\n  private inputTimer: any;\n\n  private sourceSubscription?: Subscription;\n  private matchSorter = new SiTypeaheadSorting();\n\n  private overlayRef?: OverlayRef;\n\n  private loadingSubscription?: Subscription;\n\n  /**\n   * Indicates whether the typeahead is currently loading.\n   * When using {@link TypeaheadOptionSource}, this is controlled by the `isLoading()` method\n   * or automatically set to `true` while fetching options.\n   *\n   * @internal\n   * @defaultValue false\n   */\n  readonly typeaheadLoading = signal(false);\n\n  /**\n   * Indicates that the typeahead can be potentially open.\n   * This signal is typically `true` when the input is focussed.\n   * It may be overridden and set to `false` when escape is pressed\n   * or when an option was selected.\n   */\n  private readonly canBeOpen = signal(false);\n  private readonly selectionCounter = signal(0);\n  private readonly typeaheadOptions = toSignal(\n    this.$typeahead.pipe(\n      map(options =>\n        options.map(option => ({\n          text: this.getOptionValue(option),\n          option\n        }))\n      )\n    ),\n    { initialValue: [] }\n  );\n  private readonly typeaheadSearch = typeaheadSearch(\n    this.typeaheadOptions,\n    this.query,\n    computed(() => ({\n      matchAllTokens: this.typeaheadMatchAllTokens(),\n      disableTokenizing: !this.typeaheadTokenize(),\n      skipProcessing: !this.typeaheadProcess(),\n      lazy: !(Array.isArray(this.siTypeahead()) || isObservable(this.siTypeahead()))\n    }))\n  );\n  private readonly processedSearch = computed(() => {\n    this.selectionCounter(); // This is a workaround for the multi-select which needs to trigger a change detection in the typeahead component.\n    const matches = this.typeaheadSearch().map(match => ({\n      ...match,\n      itemSelected: this.typeaheadMultiSelect()\n        ? (match.option as Record<string, any>).selected\n        : false,\n      iconClass: this.getOptionField(match.option, 'iconClass')\n    }));\n\n    if (this.typeaheadSkipSortingMatches()) {\n      return matches;\n    } else {\n      return this.matchSorter.sortMatches(matches);\n    }\n  });\n  private readonly unprocessedSearch = computed(() => {\n    this.selectionCounter(); // This is a workaround for the multi-select which needs to trigger a change detection in the typeahead component.\n    return this.typeaheadOptions().map(option => {\n      const itemSelected = this.typeaheadMultiSelect()\n        ? (option as Record<string, any>).selected\n        : false;\n      return {\n        option,\n        text: option.text,\n        result: option.text\n          ? [{ text: option.text, isMatching: false, matches: 0, uniqueMatches: 0 }]\n          : [],\n        itemSelected,\n        iconClass: this.getOptionField(option.option, 'iconClass'),\n        stringMatch: false,\n        atBeginning: false,\n        matches: 0,\n        uniqueMatches: 0,\n        uniqueSeparateMatches: 0,\n        matchesEntireQuery: false,\n        matchesAllParts: false,\n        matchesAllPartsSeparately: false,\n        active: false\n      };\n    });\n  });\n\n  constructor() {\n    effect(() => {\n      // The value needs to fulfil the minimum length requirement set.\n      const matches = this.foundMatches();\n      if (\n        this.canBeOpen() &&\n        this.query().length >= this.typeaheadMinLength() &&\n        // Ensure that we have content to show: matches, create option or loading indicator\n        (matches.length ||\n          (this.typeaheadCreateOption() && this.query().length) ||\n          this.typeaheadLoading())\n      ) {\n        const escapedQuery = this.escapeRegex(this.query());\n        const equalsExp = new RegExp(`^${escapedQuery}$`, 'i');\n        const fullMatches = matches.filter(\n          match => match.result.length === 1 && equalsExp.test(match.text)\n        );\n        if (fullMatches.length > 0) {\n          this.typeaheadOnFullMatch.emit(fullMatches[0]);\n        }\n        this.loadComponent();\n      } else {\n        this.removeComponent();\n      }\n    });\n  }\n\n  // Every time the main input changes, detect whether it is async and if it is not make an observable out of the array.\n  ngOnChanges(changes: SimpleChanges<this>): void {\n    if (changes.siTypeahead) {\n      this.sourceSubscription?.unsubscribe();\n      this.loadingSubscription?.unsubscribe();\n      const typeahead = this.siTypeahead();\n\n      if (Array.isArray(typeahead)) {\n        // Handle TypeaheadArray\n        this.$typeahead.next(typeahead);\n        this.typeaheadLoading.set(false);\n      } else if (isObservable(typeahead)) {\n        // Handle TypeaheadObservable\n        this.sourceSubscription = typeahead.subscribe(this.$typeahead);\n        this.typeaheadLoading.set(false);\n      } else if (typeof typeahead === 'function') {\n        // Handle TypeaheadOptionSource\n        this.handleTypeaheadOptionSource(typeahead);\n      }\n    }\n  }\n\n  /**\n   * @internal\n   *\n   * Updates the position of the typeahead overlay when already rendered.\n   * This can be useful if the input position/dimension changed.\n   */\n  updateOverlayPosition(): void {\n    this.overlayRef?.updatePosition();\n  }\n\n  // Clear the current input timeout (if set) and remove the component when the focus of the host is lost.\n  protected onBlur(): void {\n    this.clearTimer();\n    this.canBeOpen.set(false);\n  }\n\n  // Start the input timeout to display the typeahead when the host is focussed or a value is inputted into it.\n  protected onInput(event: Event): void {\n    const target = event.target as HTMLInputElement;\n    if (!target) {\n      return;\n    }\n\n    // Get the value or otherwise textContent of the host element now, because later it could be reset.\n    const firstValue = target.value || target.textContent;\n    this.inputTimer ??= setTimeout(() => {\n      this.inputTimer = undefined;\n      const value = (target.value || target.textContent) ?? firstValue ?? '';\n      this.query.set(value);\n      this.typeaheadOnInput.emit(value ?? '');\n      this.canBeOpen.set(true);\n    }, this.typeaheadWaitMs());\n  }\n\n  protected onKeydownEscape(): void {\n    if (this.typeaheadCloseOnEsc()) {\n      this.clearTimer();\n      this.canBeOpen.set(false);\n    }\n  }\n\n  ngOnDestroy(): void {\n    this.clearTimer();\n    this.sourceSubscription?.unsubscribe();\n    this.loadingSubscription?.unsubscribe();\n\n    this.overlayRef?.dispose();\n  }\n\n  /**\n   * Handles TypeaheadOptionSource by subscribing to query changes and fetching options.\n   * Manages loading state automatically or uses custom isLoading() observable if provided.\n   */\n  private handleTypeaheadOptionSource(source: TypeaheadOptionSource): void {\n    this.sourceSubscription = new Subscription();\n    const queryObservable = toObservable(this.query, { injector: this.injector });\n    const resultObservable = queryObservable.pipe(\n      switchMap(query => source(query)),\n      // Catch errors by the source observable to prevent endless spinner. Showing the error is not our responsibility.\n      catchError(e => {\n        console.error(e);\n        return [];\n      }),\n      share()\n    );\n\n    this.sourceSubscription.add(\n      queryObservable\n        .pipe(switchMap(() => timer(500).pipe(takeUntil(resultObservable))))\n        .subscribe(() => this.typeaheadLoading.set(true))\n    );\n\n    this.sourceSubscription.add(\n      resultObservable.subscribe(result => {\n        this.$typeahead.next(result);\n        this.typeaheadLoading.set(false);\n      })\n    );\n  }\n\n  // Dynamically create the typeahead component and then set the matches and the query.\n  private loadComponent(): void {\n    if (!this.overlayRef?.hasAttached()) {\n      this.overlayRef?.dispose();\n\n      const overlayConfig: OverlayConfig = {\n        positionStrategy: this.overlay\n          .position()\n          .flexibleConnectedTo(this.elementRef.nativeElement)\n          .withPositions(SiTypeaheadDirective.overlayPositions),\n        minWidth: this.typeaheadFullWidth()\n          ? this.elementRef.nativeElement.getBoundingClientRect().width + 2 // 2px border\n          : 0\n      };\n\n      const scrollStrategy = this.typeaheadScrollStrategy();\n      if (scrollStrategy) {\n        overlayConfig.scrollStrategy = scrollStrategy;\n      }\n\n      this.overlayRef = this.overlay.create(overlayConfig);\n    }\n\n    if (this.overlayRef.hasAttached()) {\n      return;\n    }\n    const typeaheadPortal = new ComponentPortal(SiTypeaheadComponent, null, this.injector);\n    this.componentRef = this.overlayRef.attach(typeaheadPortal);\n    this.typeaheadOpenChange.emit(true);\n  }\n\n  /**\n   * Extracts the display value from a typeahead option.\n   *\n   * For string options, returns the string value directly.\n   * For object options, returns the value of the field specified by {@link typeaheadOptionField}\n   * (defaults to 'name'), or an empty string if the field doesn't exist.\n   *\n   * @param option - The typeahead option to extract the value from\n   * @returns The string representation of the option for display purposes\n   */\n  private getOptionValue(option: TypeaheadOption): string {\n    return typeof option !== 'object'\n      ? option.toString()\n      : (option[this.typeaheadOptionField()] ?? '');\n  }\n\n  /**\n   * Extracts a specific field value from a typeahead option.\n   *\n   * This method is used to access additional properties of object-type options,\n   * such as 'selected' for multi-select functionality or 'iconClass' for displaying icons.\n   *\n   * @param option - The typeahead option to extract the field from\n   * @param field - The name of the field to extract\n   * @returns The field value as a string if the option is an object and the field exists,\n   *          otherwise undefined\n   */\n  private getOptionField(option: TypeaheadOption, field: string): string | undefined {\n    return typeof option !== 'object' ? undefined : option[field];\n  }\n\n  /** @internal */\n  createOption(): void {\n    this.typeaheadOnCreateOption.emit(this.query());\n    this.clearTimer();\n    if (!this.typeaheadMultiSelect() && this.typeaheadClearValueOnSelect()) {\n      const inputElement =\n        this.elementRef.nativeElement.querySelector('input')! ?? this.elementRef.nativeElement;\n      inputElement.value = '';\n      inputElement.dispatchEvent(new Event('input'));\n    }\n    this.canBeOpen.set(false);\n  }\n\n  // Select a match, either gets called due to a enter keypress or from the component due to a click.\n  /** @internal */\n  selectMatch(match: TypeaheadMatch): void {\n    match.itemSelected = !match.itemSelected;\n    if (!this.typeaheadMultiSelect()) {\n      const inputElement =\n        this.elementRef.nativeElement.querySelector('input')! ?? this.elementRef.nativeElement;\n      inputElement.value = this.typeaheadClearValueOnSelect() ? '' : match.text;\n      inputElement.dispatchEvent(new Event('input'));\n    }\n\n    // Clear the current input timeout (if set) and remove the typeahead.\n    this.clearTimer();\n    this.typeaheadOnSelect.emit(match);\n    if (!this.typeaheadMultiSelect()) {\n      this.canBeOpen.set(false);\n    }\n  }\n\n  // Remove the component by clearing the viewContainerRef\n  private removeComponent(): void {\n    if (this.overlayRef?.hasAttached()) {\n      this.overlayRef?.detach();\n      this.typeaheadOpenChange.emit(false);\n    }\n\n    this.componentRef?.destroy();\n    this.componentRef = undefined;\n  }\n\n  private clearTimer(): void {\n    if (this.inputTimer) {\n      clearTimeout(this.inputTimer);\n      this.inputTimer = undefined;\n    }\n  }\n\n  private escapeRegex(query: string): string {\n    return query.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&');\n  }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { NgModule } from '@angular/core';\n\nimport { SiTypeaheadItemTemplateDirective } from './si-typeahead-item-template.directive';\nimport { SiTypeaheadDirective } from './si-typeahead.directive';\n\n@NgModule({\n  imports: [SiTypeaheadDirective, SiTypeaheadItemTemplateDirective],\n  exports: [SiTypeaheadDirective, SiTypeaheadItemTemplateDirective]\n})\nexport class SiTypeaheadModule {}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-typeahead.directive';\nexport * from './si-typeahead.model';\nexport * from './si-typeahead.module';\nexport * from './si-typeahead-item-template.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;AAGG;MAQU,gCAAgC,CAAA;AAC3C,IAAA,OAAO,sBAAsB,CAC3B,GAAqC,EACrC,GAAQ,EAAA;AAER,QAAA,OAAO,IAAI;IACb;uGANW,gCAAgC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;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