@siemens/element-ng 49.2.0 → 49.3.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.
- package/fesm2022/siemens-element-ng-accordion.mjs +2 -2
- package/fesm2022/siemens-element-ng-accordion.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-application-header.mjs +3 -3
- package/fesm2022/siemens-element-ng-application-header.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-auto-collapsable-list.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-avatar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-circle-status.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-content-action-bar.mjs +2 -2
- package/fesm2022/siemens-element-ng-content-action-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-dashboard.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-datepicker.mjs +22 -24
- package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-file-uploader.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-filtered-search.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-form.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-header-dropdown.mjs +2 -2
- package/fesm2022/siemens-element-ng-header-dropdown.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-list-details.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-main-detail-container.mjs +21 -25
- package/fesm2022/siemens-element-ng-main-detail-container.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-menu.mjs +6 -6
- package/fesm2022/siemens-element-ng-menu.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-navbar-vertical.mjs +8 -4
- package/fesm2022/siemens-element-ng-navbar-vertical.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-navbar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-number-input.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-phone-number.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-photo-upload.mjs +1 -1
- package/fesm2022/siemens-element-ng-photo-upload.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-search-bar.mjs +7 -2
- package/fesm2022/siemens-element-ng-search-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-side-panel.mjs +164 -10
- package/fesm2022/siemens-element-ng-side-panel.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-split.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-status-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-status-toggle.mjs +1 -1
- package/fesm2022/siemens-element-ng-status-toggle.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tree-view.mjs +11 -3
- package/fesm2022/siemens-element-ng-tree-view.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-typeahead.mjs.map +1 -1
- package/package.json +3 -3
- package/schematics/vitest-setup.js +5 -0
- package/types/siemens-element-ng-application-header.d.ts +1 -1
- package/types/siemens-element-ng-auto-collapsable-list.d.ts +1 -1
- package/types/siemens-element-ng-avatar.d.ts +1 -1
- package/types/siemens-element-ng-circle-status.d.ts +1 -1
- package/types/siemens-element-ng-dashboard.d.ts +2 -2
- package/types/siemens-element-ng-date-range-filter.d.ts +1 -1
- package/types/siemens-element-ng-datepicker.d.ts +7 -7
- package/types/siemens-element-ng-file-uploader.d.ts +1 -1
- package/types/siemens-element-ng-filtered-search.d.ts +1 -1
- package/types/siemens-element-ng-form.d.ts +1 -1
- package/types/siemens-element-ng-list-details.d.ts +1 -1
- package/types/siemens-element-ng-main-detail-container.d.ts +10 -11
- package/types/siemens-element-ng-navbar-vertical.d.ts +7 -3
- package/types/siemens-element-ng-navbar.d.ts +1 -1
- package/types/siemens-element-ng-number-input.d.ts +1 -1
- package/types/siemens-element-ng-phone-number.d.ts +1 -1
- package/types/siemens-element-ng-photo-upload.d.ts +1 -1
- package/types/siemens-element-ng-search-bar.d.ts +1 -1
- package/types/siemens-element-ng-side-panel.d.ts +115 -5
- package/types/siemens-element-ng-split.d.ts +2 -2
- package/types/siemens-element-ng-status-bar.d.ts +1 -1
- package/types/siemens-element-ng-status-toggle.d.ts +1 -1
- package/types/siemens-element-ng-tree-view.d.ts +1 -1
- package/types/siemens-element-ng-typeahead.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"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 {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n HostListener,\n inject,\n viewChild\n} 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 changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'w-100' }\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 @HostListener('mousedown', ['$event'])\n protected onMouseDown(event: Event): void {\n event.preventDefault();\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 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), 'gi');\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 =\n optionValue.toLocaleLowerCase().trim() === query.toLocaleLowerCase().trim();\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: number[] = [];\n\n candidate.matchesEntireQuery = !!optionValue.match(entireQueryRegex);\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 if (!allIndexes.includes(index)) {\n allIndexes.push(index);\n }\n regexMatch = queryRegex.exec(optionValue);\n }\n });\n\n candidate.matchesAllParts = allIndexes.length === 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 if (combinedResults.length) {\n const foundPreviousResult = combinedResults.find(previousResult =>\n this.options.matchAllTokens === 'independently'\n ? result.start <= previousResult.end\n : result.start < previousResult.end\n );\n if (foundPreviousResult) {\n foundPreviousResult.result += result.result.slice(\n foundPreviousResult.end - result.start,\n result.result.length\n );\n if (result.end > foundPreviousResult.end) {\n foundPreviousResult.end = result.end;\n }\n foundPreviousResult.indexes.push(result.index);\n if (!foundPreviousResult.uniqueIndexes.includes(result.index)) {\n foundPreviousResult.uniqueIndexes.push(result.index);\n }\n return;\n }\n }\n combinedResults.push({\n ...result,\n indexes: [result.index],\n uniqueIndexes: [result.index]\n });\n });\n\n // Recursively go through all unique combinations of the unique indexes to get the option which has the most indexes.\n const countUniqueSubindexes = (\n indexIndex = 0,\n previousIndexes: number[] = []\n ): number =>\n indexIndex === combinedResults.length\n ? previousIndexes.length\n : Math.max(\n previousIndexes.length,\n ...combinedResults[indexIndex].uniqueIndexes\n .filter(index => !previousIndexes.includes(index))\n .map(index =>\n countUniqueSubindexes(indexIndex + 1, [index, ...previousIndexes])\n )\n );\n\n candidate.uniqueSeparateMatches = countUniqueSubindexes();\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 {\n ConnectionPositionPair,\n Overlay,\n OverlayConfig,\n OverlayRef,\n ScrollStrategy\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n booleanAttribute,\n ComponentRef,\n computed,\n Directive,\n effect,\n ElementRef,\n HostListener,\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 { 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 },\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 * Optional CDK scroll strategy used for the typeahead overlay.\n * If not provided, no strategy is set explicitly and CDK will apply its default behavior.\n */\n readonly typeaheadScrollStrategy = input<ScrollStrategy>();\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): 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 // Clear the current input timeout (if set) and remove the component when the focus of the host is lost.\n @HostListener('focusout')\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 @HostListener('focusin', ['$event'])\n @HostListener('input', ['$event'])\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 @HostListener('keydown.escape')\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,GAA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,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAHlB,oBAAoB,EAAE,gCAAgC,CAAA,EAAA,OAAA,EAAA,CACtD,oBAAoB,EAAE,gCAAgC,CAAA,EAAA,CAAA;wGAErD,iBAAiB,EAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,oBAAoB,EAAE,gCAAgC,CAAC;AACjE,oBAAA,OAAO,EAAE,CAAC,oBAAoB,EAAE,gCAAgC;AACjE,iBAAA;;;ACZD;;;AAGG;;ACHH;;AAEG;;;;"}
|
|
1
|
+
{"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 {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n HostListener,\n inject,\n viewChild\n} 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 changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'w-100' }\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 @HostListener('mousedown', ['$event'])\n protected onMouseDown(event: Event): void {\n event.preventDefault();\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 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), 'gi');\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 =\n optionValue.toLocaleLowerCase().trim() === query.toLocaleLowerCase().trim();\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: number[] = [];\n\n candidate.matchesEntireQuery = !!optionValue.match(entireQueryRegex);\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 if (!allIndexes.includes(index)) {\n allIndexes.push(index);\n }\n regexMatch = queryRegex.exec(optionValue);\n }\n });\n\n candidate.matchesAllParts = allIndexes.length === 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 if (combinedResults.length) {\n const foundPreviousResult = combinedResults.find(previousResult =>\n this.options.matchAllTokens === 'independently'\n ? result.start <= previousResult.end\n : result.start < previousResult.end\n );\n if (foundPreviousResult) {\n foundPreviousResult.result += result.result.slice(\n foundPreviousResult.end - result.start,\n result.result.length\n );\n if (result.end > foundPreviousResult.end) {\n foundPreviousResult.end = result.end;\n }\n foundPreviousResult.indexes.push(result.index);\n if (!foundPreviousResult.uniqueIndexes.includes(result.index)) {\n foundPreviousResult.uniqueIndexes.push(result.index);\n }\n return;\n }\n }\n combinedResults.push({\n ...result,\n indexes: [result.index],\n uniqueIndexes: [result.index]\n });\n });\n\n // Recursively go through all unique combinations of the unique indexes to get the option which has the most indexes.\n const countUniqueSubindexes = (\n indexIndex = 0,\n previousIndexes: number[] = []\n ): number =>\n indexIndex === combinedResults.length\n ? previousIndexes.length\n : Math.max(\n previousIndexes.length,\n ...combinedResults[indexIndex].uniqueIndexes\n .filter(index => !previousIndexes.includes(index))\n .map(index =>\n countUniqueSubindexes(indexIndex + 1, [index, ...previousIndexes])\n )\n );\n\n candidate.uniqueSeparateMatches = countUniqueSubindexes();\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 {\n ConnectionPositionPair,\n Overlay,\n OverlayConfig,\n OverlayRef,\n ScrollStrategy\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n booleanAttribute,\n ComponentRef,\n computed,\n Directive,\n effect,\n ElementRef,\n HostListener,\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 { 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 },\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 * Optional CDK scroll strategy used for the typeahead overlay.\n * If not provided, no strategy is set explicitly and CDK will apply its default behavior.\n */\n readonly typeaheadScrollStrategy = input<ScrollStrategy>();\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 // Clear the current input timeout (if set) and remove the component when the focus of the host is lost.\n @HostListener('focusout')\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 @HostListener('focusin', ['$event'])\n @HostListener('input', ['$event'])\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 @HostListener('keydown.escape')\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;2FAAhC,gCAAgC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,2BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAhC,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAH5C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE;AACX,iBAAA;;;ACVD;;;AAGG;MAyCU,oBAAoB,CAAA;AACrB,IAAA,MAAM,GAAG,MAAM,CAAC,oBAAoB,CAAC;IAC5B,OAAO,GAAG,QAAQ,CAAC,MACpC,IAAI,CAAC,MAAM,CAAC,qBAAqB;AAC/B,UAAE,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE;UACvE,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,mDAC/B;AAEkB,IAAA,WAAW,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,uDAAC;AAElE,IAAA,gBAAgB,GAAG,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE;AAClE,QAAA,IAAI,EAAE;AACP,KAAA,CAAC;AAEQ,IAAA,qBAAqB,GAAG,MAAM,CAAC,uBAAuB,CAAC;IAEjE,eAAe,GAAA;QACb,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,EAA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iB,CAAA;uGAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAHlB,oBAAoB,EAAE,gCAAgC,CAAA,EAAA,OAAA,EAAA,CACtD,oBAAoB,EAAE,gCAAgC,CAAA,EAAA,CAAA;wGAErD,iBAAiB,EAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,oBAAoB,EAAE,gCAAgC,CAAC;AACjE,oBAAA,OAAO,EAAE,CAAC,oBAAoB,EAAE,gCAAgC;AACjE,iBAAA;;;ACZD;;;AAGG;;ACHH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siemens/element-ng",
|
|
3
3
|
"description": "Element Angular component library, implementing the Siemens Design Language",
|
|
4
|
-
"version": "49.
|
|
4
|
+
"version": "49.3.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@ngx-formly/bootstrap": "^6.2.2",
|
|
44
44
|
"@ngx-formly/core": "^6.2.2",
|
|
45
45
|
"@siemens/element-icons": "1",
|
|
46
|
-
"@siemens/element-translate-ng": "49.
|
|
47
|
-
"@siemens/element-theme": "49.
|
|
46
|
+
"@siemens/element-translate-ng": "49.3.0",
|
|
47
|
+
"@siemens/element-theme": "49.3.0",
|
|
48
48
|
"@siemens/ngx-datatable": "22 - 26",
|
|
49
49
|
"ag-grid-community": "^34.3.1",
|
|
50
50
|
"flag-icons": "^7.3.2",
|
|
@@ -150,7 +150,7 @@ declare abstract class SiHeaderActionIconItemBase extends SiHeaderActionItemBase
|
|
|
150
150
|
readonly badge: _angular_core.InputSignal<number | boolean | null | undefined>;
|
|
151
151
|
protected readonly badgeDot: _angular_core.Signal<boolean>;
|
|
152
152
|
protected readonly badgeValue: _angular_core.Signal<string | undefined>;
|
|
153
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
153
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
154
154
|
protected get visuallyHideTitle(): boolean;
|
|
155
155
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiHeaderActionIconItemBase, never>;
|
|
156
156
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SiHeaderActionIconItemBase, never, never, { "badge": { "alias": "badge"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -79,7 +79,7 @@ declare class SiAutoCollapsableListDirective implements AfterViewInit, OnChanges
|
|
|
79
79
|
private computedGap;
|
|
80
80
|
private injector;
|
|
81
81
|
ngAfterViewInit(): void;
|
|
82
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
82
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
83
83
|
ngOnDestroy(): void;
|
|
84
84
|
private setupResizeListener;
|
|
85
85
|
private updateItemVisibility;
|
|
@@ -24,7 +24,7 @@ declare class SiAvatarBackgroundColorDirective implements OnChanges {
|
|
|
24
24
|
*/
|
|
25
25
|
readonly autoColor: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
26
26
|
protected readonly backgroundStyle: _angular_core.WritableSignal<string | undefined>;
|
|
27
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
27
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
28
28
|
/**
|
|
29
29
|
* Update background color variable based on the initials or placeholder text.
|
|
30
30
|
*/
|
|
@@ -60,7 +60,7 @@ declare class SiCircleStatusComponent implements OnChanges, OnDestroy {
|
|
|
60
60
|
private blinkSubs?;
|
|
61
61
|
private readonly bg;
|
|
62
62
|
private blinkService;
|
|
63
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
63
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
64
64
|
ngOnDestroy(): void;
|
|
65
65
|
private calculateContrastFix;
|
|
66
66
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiCircleStatusComponent, never>;
|
|
@@ -133,7 +133,7 @@ declare class SiDashboardComponent implements OnChanges, AfterViewInit {
|
|
|
133
133
|
private document;
|
|
134
134
|
private readonly hideMenubarInternal;
|
|
135
135
|
constructor();
|
|
136
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
136
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
137
137
|
ngAfterViewInit(): void;
|
|
138
138
|
private subscribeToCards;
|
|
139
139
|
private initCards;
|
|
@@ -220,7 +220,7 @@ declare abstract class SiWidgetBaseDirective<T> implements OnInit, OnChanges {
|
|
|
220
220
|
*/
|
|
221
221
|
readonly initialLoadingIndicatorDebounceTime: _angular_core.InputSignal<number>;
|
|
222
222
|
protected loadingTimer?: ReturnType<typeof setTimeout>;
|
|
223
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
223
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
224
224
|
ngOnInit(): void;
|
|
225
225
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiWidgetBaseDirective<any>, never>;
|
|
226
226
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SiWidgetBaseDirective<any>, never, never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disableAutoLoadingIndicator": { "alias": "disableAutoLoadingIndicator"; "required": false; "isSignal": true; }; "showLoadingIndicatorInput": { "alias": "showLoadingIndicator"; "required": false; "isSignal": true; }; "initialLoadingIndicatorDebounceTime": { "alias": "initialLoadingIndicatorDebounceTime"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -279,7 +279,7 @@ declare class SiDateRangeFilterComponent implements OnChanges {
|
|
|
279
279
|
protected readonly presetFilter: _angular_core.WritableSignal<string>;
|
|
280
280
|
protected readonly presetOpen: _angular_core.WritableSignal<boolean>;
|
|
281
281
|
protected readonly inputMode: _angular_core.Signal<boolean>;
|
|
282
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
282
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
283
283
|
private getDateNow;
|
|
284
284
|
private rangeChanged;
|
|
285
285
|
private updateFromRange;
|
|
@@ -208,7 +208,7 @@ declare class SiDateInputDirective implements ControlValueAccessor, OnChanges, V
|
|
|
208
208
|
private readonly disabledNgControl;
|
|
209
209
|
protected readonly locale: string;
|
|
210
210
|
private format;
|
|
211
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
211
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
212
212
|
validate(c: AbstractControl): ValidationErrors | null;
|
|
213
213
|
registerOnChange(fn: any): void;
|
|
214
214
|
registerOnTouched(fn: () => void): void;
|
|
@@ -453,7 +453,7 @@ declare class SiDatepickerComponent implements OnInit, OnChanges, AfterViewInit
|
|
|
453
453
|
*/
|
|
454
454
|
readonly activeHover: _angular_core.ModelSignal<Cell | undefined>;
|
|
455
455
|
constructor();
|
|
456
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
456
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
457
457
|
ngOnInit(): void;
|
|
458
458
|
ngAfterViewInit(): void;
|
|
459
459
|
/** Initialize day and month labels */
|
|
@@ -546,10 +546,10 @@ declare class SiDatepickerOverlayComponent implements OnChanges, OnInit, OnDestr
|
|
|
546
546
|
private readonly elementRef;
|
|
547
547
|
private readonly focusMonitor;
|
|
548
548
|
private readonly focusTrapFactory;
|
|
549
|
-
private focusTrap
|
|
549
|
+
private focusTrap?;
|
|
550
550
|
private previousActiveElement?;
|
|
551
|
-
protected disableTime: boolean
|
|
552
|
-
protected activeHover
|
|
551
|
+
protected readonly disableTime: _angular_core.WritableSignal<boolean>;
|
|
552
|
+
protected readonly activeHover: _angular_core.WritableSignal<Cell | undefined>;
|
|
553
553
|
protected readonly isTwoMonthDateRange: _angular_core.Signal<boolean>;
|
|
554
554
|
protected readonly firstDatepickerConfig: _angular_core.WritableSignal<DatepickerConfig>;
|
|
555
555
|
protected readonly secondDatepickerConfig: _angular_core.WritableSignal<DatepickerConfig>;
|
|
@@ -561,7 +561,7 @@ declare class SiDatepickerOverlayComponent implements OnChanges, OnInit, OnDestr
|
|
|
561
561
|
*/
|
|
562
562
|
readonly isMobile: _angular_core.InputSignal<boolean>;
|
|
563
563
|
protected readonly completeAnimation: _angular_core.WritableSignal<boolean>;
|
|
564
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
564
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
565
565
|
ngOnInit(): void;
|
|
566
566
|
ngOnDestroy(): void;
|
|
567
567
|
/**
|
|
@@ -1051,7 +1051,7 @@ declare class SiDateRangeComponent implements ControlValueAccessor, Validator, A
|
|
|
1051
1051
|
private readonly overlayToggle;
|
|
1052
1052
|
private readonly elementRef;
|
|
1053
1053
|
private readonly defaultPlacement;
|
|
1054
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
1054
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
1055
1055
|
ngAfterViewInit(): void;
|
|
1056
1056
|
writeValue(dateRange: DateRange): void;
|
|
1057
1057
|
registerOnChange(fn: any): void;
|
|
@@ -492,7 +492,7 @@ declare class SiFileUploaderComponent implements OnChanges {
|
|
|
492
492
|
private readonly dropZone;
|
|
493
493
|
private cdRef;
|
|
494
494
|
private http?;
|
|
495
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
495
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
496
496
|
protected handleFiles(files: UploadFile[]): void;
|
|
497
497
|
protected removeFile(index: number): void;
|
|
498
498
|
protected cancelUpload(file: ExtUploadFile): void;
|
|
@@ -395,7 +395,7 @@ declare class SiFilteredSearchComponent implements OnInit, OnChanges {
|
|
|
395
395
|
private readonly loadedCriteria;
|
|
396
396
|
private readonly internalFreeTextCriterion;
|
|
397
397
|
constructor();
|
|
398
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
398
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
399
399
|
ngOnInit(): void;
|
|
400
400
|
private initCriteria;
|
|
401
401
|
/**
|
|
@@ -330,7 +330,7 @@ declare class SiFormItemComponent implements AfterContentInit, AfterContentCheck
|
|
|
330
330
|
protected readonly printErrors: _angular_core.Signal<boolean>;
|
|
331
331
|
/** @internal */
|
|
332
332
|
readonly required: _angular_core.Signal<boolean>;
|
|
333
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
333
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
334
334
|
ngOnInit(): void;
|
|
335
335
|
ngAfterContentInit(): void;
|
|
336
336
|
ngAfterContentChecked(): void;
|
|
@@ -74,7 +74,7 @@ declare class SiListDetailsComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
74
74
|
*/
|
|
75
75
|
readonly transferFocusToDetails: BehaviorSubject<boolean>;
|
|
76
76
|
private animationDone?;
|
|
77
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
77
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
78
78
|
ngOnInit(): void;
|
|
79
79
|
ngOnDestroy(): void;
|
|
80
80
|
private readonly resizeDimensions;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, OnChanges,
|
|
2
|
+
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
4
4
|
|
|
5
|
-
declare class SiMainDetailContainerComponent implements OnInit, OnChanges
|
|
5
|
+
declare class SiMainDetailContainerComponent implements OnInit, OnChanges {
|
|
6
6
|
protected readonly icons: Record<"elementBack", string>;
|
|
7
|
-
private animationDuration;
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
7
|
+
private readonly animationDuration;
|
|
8
|
+
private readonly elementRef;
|
|
9
|
+
private readonly resizeObserver;
|
|
10
|
+
private readonly changeDetectorRef;
|
|
11
|
+
private readonly destroyRef;
|
|
12
12
|
/**
|
|
13
13
|
* A numeric value defining the minimum width in px, which the container needs
|
|
14
14
|
* to be displayed in its large layout. Whenever smaller than
|
|
@@ -135,11 +135,10 @@ declare class SiMainDetailContainerComponent implements OnInit, OnChanges, OnDes
|
|
|
135
135
|
protected maxDetailSize: string;
|
|
136
136
|
protected readonly mainStateId: _angular_core.Signal<string | undefined>;
|
|
137
137
|
protected readonly detailStateId: _angular_core.Signal<string | undefined>;
|
|
138
|
-
protected animate: boolean
|
|
139
|
-
protected opacity: string
|
|
140
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
138
|
+
protected readonly animate: _angular_core.WritableSignal<boolean>;
|
|
139
|
+
protected readonly opacity: _angular_core.WritableSignal<string>;
|
|
140
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
141
141
|
ngOnInit(): void;
|
|
142
|
-
ngOnDestroy(): void;
|
|
143
142
|
protected onSplitSizesChange(sizes: number[]): void;
|
|
144
143
|
protected detailsBackClicked(): void;
|
|
145
144
|
/**
|
|
@@ -188,6 +188,11 @@ declare class SiNavbarVerticalComponent implements OnChanges, OnInit {
|
|
|
188
188
|
* ```
|
|
189
189
|
*/
|
|
190
190
|
readonly skipLinkMainContentLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>;
|
|
191
|
+
/**
|
|
192
|
+
* Debounce time for the search input
|
|
193
|
+
* @defaultValue 400
|
|
194
|
+
*/
|
|
195
|
+
readonly searchDebounceTime: _angular_core.InputSignal<number>;
|
|
191
196
|
/**
|
|
192
197
|
* Output for search bar input
|
|
193
198
|
*/
|
|
@@ -195,7 +200,6 @@ declare class SiNavbarVerticalComponent implements OnChanges, OnInit {
|
|
|
195
200
|
private readonly searchBar;
|
|
196
201
|
protected readonly activatedRoute: ActivatedRoute | null;
|
|
197
202
|
protected readonly ready = true;
|
|
198
|
-
protected readonly searchInputDelay = 400;
|
|
199
203
|
private uiStateService;
|
|
200
204
|
private breakpointObserver;
|
|
201
205
|
private readonly navbarItems;
|
|
@@ -205,7 +209,7 @@ declare class SiNavbarVerticalComponent implements OnChanges, OnInit {
|
|
|
205
209
|
protected readonly uiStateExpandedItems: _angular_core.WritableSignal<Record<string, boolean>>;
|
|
206
210
|
private preferCollapse;
|
|
207
211
|
constructor();
|
|
208
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
212
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
209
213
|
ngOnInit(): void;
|
|
210
214
|
protected toggleCollapse(): void;
|
|
211
215
|
/** Expands the vertical navbar. */
|
|
@@ -221,7 +225,7 @@ declare class SiNavbarVerticalComponent implements OnChanges, OnInit {
|
|
|
221
225
|
itemTriggered(): void;
|
|
222
226
|
protected isLegacyStyle(item: MenuItem | NavbarVerticalItem): item is MenuItem;
|
|
223
227
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiNavbarVerticalComponent, never>;
|
|
224
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiNavbarVerticalComponent, "si-navbar-vertical", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "textOnly": { "alias": "textOnly"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "navbarExpandButtonText": { "alias": "navbarExpandButtonText"; "required": false; "isSignal": true; }; "navbarCollapseButtonText": { "alias": "navbarCollapseButtonText"; "required": false; "isSignal": true; }; "stateId": { "alias": "stateId"; "required": false; "isSignal": true; }; "skipLinkNavigationLabel": { "alias": "skipLinkNavigationLabel"; "required": false; "isSignal": true; }; "skipLinkMainContentLabel": { "alias": "skipLinkMainContentLabel"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "items": "itemsChange"; "searchEvent": "searchEvent"; }, never, ["*"], true, never>;
|
|
228
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiNavbarVerticalComponent, "si-navbar-vertical", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "textOnly": { "alias": "textOnly"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "navbarExpandButtonText": { "alias": "navbarExpandButtonText"; "required": false; "isSignal": true; }; "navbarCollapseButtonText": { "alias": "navbarCollapseButtonText"; "required": false; "isSignal": true; }; "stateId": { "alias": "stateId"; "required": false; "isSignal": true; }; "skipLinkNavigationLabel": { "alias": "skipLinkNavigationLabel"; "required": false; "isSignal": true; }; "skipLinkMainContentLabel": { "alias": "skipLinkMainContentLabel"; "required": false; "isSignal": true; }; "searchDebounceTime": { "alias": "searchDebounceTime"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "items": "itemsChange"; "searchEvent": "searchEvent"; }, never, ["*"], true, never>;
|
|
225
229
|
}
|
|
226
230
|
|
|
227
231
|
declare class SiNavbarVerticalModule {
|
|
@@ -265,7 +265,7 @@ declare class SiNavbarPrimaryComponent implements OnChanges, HeaderWithDropdowns
|
|
|
265
265
|
/** @internal */
|
|
266
266
|
onDropdownItemTriggered(): void;
|
|
267
267
|
/** @internal */
|
|
268
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
268
|
+
ngOnChanges(changes: SimpleChanges<this>): void;
|
|
269
269
|
private convertApps;
|
|
270
270
|
protected onFavoriteChange({ app, favorite }: FavoriteChangeEvent): void;
|
|
271
271
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiNavbarPrimaryComponent, never>;
|