@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-form.mjs","sources":["../../../../projects/element-ng/form/si-form-container/si-form-container.component.ts","../../../../projects/element-ng/form/si-form-container/si-form-container.component.html","../../../../projects/element-ng/form/form-fieldset/si-form-fieldset.component.ts","../../../../projects/element-ng/form/form-fieldset/si-form-fieldset.component.html","../../../../projects/element-ng/form/si-form-item.control.ts","../../../../projects/element-ng/form/si-form-validation-error.service.ts","../../../../projects/element-ng/form/si-form-item/si-form-field-native.control.ts","../../../../projects/element-ng/form/si-form-item/si-form-item.component.ts","../../../../projects/element-ng/form/si-form-item/si-form-item.component.html","../../../../projects/element-ng/form/si-form-validation-tooltip/si-form-validation-tooltip.component.ts","../../../../projects/element-ng/form/si-form-validation-tooltip/si-form-validation-tooltip.directive.ts","../../../../projects/element-ng/form/si-form-validation-error.provider.ts","../../../../projects/element-ng/form/si-form.module.ts","../../../../projects/element-ng/form/index.ts","../../../../projects/element-ng/form/siemens-element-ng-form.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { NgTemplateOutlet } from '@angular/common';\nimport { booleanAttribute, Component, computed, inject, input } from '@angular/core';\nimport { AbstractControl, FormGroup } from '@angular/forms';\nimport { Breakpoints, SiResponsiveContainerDirective } from '@siemens/element-ng/resize-observer';\nimport { TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormValidationErrorMapper } from '../si-form-validation-error.model';\n\nexport interface SiFormValidationError {\n controlName?: string;\n controlNameTranslationKey?: string;\n errorCode: TranslatableString;\n errorCodeTranslationKey?: string;\n errorParams?: any;\n}\n\n@Component({\n selector: 'si-form-container',\n imports: [NgTemplateOutlet, SiResponsiveContainerDirective],\n templateUrl: './si-form-container.component.html',\n styleUrl: './si-form-container.component.scss',\n host: {\n '[style.--si-form-label-width]': 'labelWidth()'\n }\n})\nexport class SiFormContainerComponent<TControl extends { [K in keyof TControl]: AbstractControl }> {\n /**\n * Set the form entity to the container to enable the overall form validation on in\n * the form container edit panel.\n */\n readonly form = input<FormGroup<TControl>>();\n\n /**\n * A form container in readonly mode is only displaying the form content without ability\n * to change it. The edit panel with typically save and cancel buttons is hidden. Set\n * to true to display the edit panel.\n *\n * @defaultValue false\n */\n readonly readonly = input(false, { transform: booleanAttribute });\n\n /**\n * The container hosts the form within a siResizeContainer to configure the breakpoint for\n * different screen sizes. Optionally, change the container breakpoints with the contentContainerBreakpoints\n * input.\n */\n readonly contentContainerBreakpoints = input<Breakpoints>();\n\n /**\n * In some scenarios, one may not want the form container to be responsible for the layout relevant\n * `si-container-[xs|...]` classes, but let this be done by a different, nested component, e.g. by a\n * group box. In these cases, the property should be set to true.\n *\n * @defaultValue false\n */\n readonly disableContainerBreakpoints = input(false, { transform: booleanAttribute });\n\n /**\n * Every validation error has an errorCode. This map holds translate keys for error codes. The keys can\n * be used to display a translated message for each validation error. The defaults old english readable\n * key defaults for the Angular standard validators of the `Validators` class like `min`, `max` or `required`.\n *\n * Use the input to set your own translate keys for the form validators you need.\n */\n readonly errorCodeTranslateKeyMap = input<\n Map<string, string> | SiFormValidationErrorMapper | undefined\n >();\n\n /**\n * A map the maps from control names of the form to their translate keys.\n * The initial map is empty and the user is responsible to add the required\n * translate keys.\n *\n * @defaultValue\n * ```\n * new Map<string, string>()\n * ```\n */\n readonly controlNameTranslateKeyMap = input(new Map<string, string>());\n\n /**\n * Disables the automatic error printing in all nested {@link SiFormItemComponent}. Error printing will be enabled by default in v46.\n *\n * @defaultValue false\n */\n readonly disableErrorPrinting = input(false, { transform: booleanAttribute });\n\n /**\n * A custom width value to be applied to all labels.\n *\n * @example labelWidth=\"100px\".\n */\n readonly labelWidth = input<string>();\n\n protected hasParentContainer = !!inject(SiFormContainerComponent, {\n optional: true,\n skipSelf: true\n });\n\n /** @internal */\n readonly formErrorMapper = computed(() => {\n const map = this.errorCodeTranslateKeyMap();\n\n let customMapper: SiFormValidationErrorMapper | undefined;\n if (map instanceof Map) {\n customMapper = Object.fromEntries(map.entries());\n } else if (map) {\n customMapper = map;\n }\n\n return {\n ...customMapper\n };\n });\n\n /**\n * Indicates whether the user interacted with the form.\n * @returns `true`, if the user selected at least one form element and\n * [blurred]{@link https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event} by losing focus again\n * (e.g. by setting focus on another element), or by editing the content of a form element.\n * Otherwise `false`.\n */\n get userInteractedWithForm(): boolean {\n const form = this.form();\n return !!form && (form.dirty || form.touched);\n }\n\n /**\n * Indicates whether content editor message shall be styled as success.\n * @returns `true`, if {@link SiFormContainerComponent.userInteractedWithForm} is true and\n * the form is valid.\n */\n get validFormContainerMessage(): boolean {\n return this.userInteractedWithForm && this.form()!.status === 'VALID';\n }\n\n /**\n * Indicates whether the content editor message shall be styled as warning.\n * @returns `true`, if {@link SiFormContainerComponent.userInteractedWithForm} is true and\n * the form is invalid.\n */\n get invalidFormContainerMessage(): boolean {\n return this.userInteractedWithForm && this.form()!.status === 'INVALID';\n }\n\n protected getControlNameTranslateKey(controlName: string): string | undefined {\n const controlNameTranslateKeyMap = this.controlNameTranslateKeyMap();\n if (!controlNameTranslateKeyMap) {\n return undefined;\n }\n return controlNameTranslateKeyMap.get(controlName) ?? controlName;\n }\n}\n","<div class=\"d-flex flex-column align-content-stretch flex-grow-1 flex-shrink-1\">\n @if (disableContainerBreakpoints() || hasParentContainer) {\n <div class=\"flex-grow-1 flex-shrink-1\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\" />\n </div>\n } @else {\n <div\n class=\"flex-grow-1 flex-shrink-1\"\n siResponsiveContainer\n [breakpoints]=\"contentContainerBreakpoints()\"\n >\n <ng-container *ngTemplateOutlet=\"contentTemplate\" />\n </div>\n }\n\n @if (!readonly()) {\n <div class=\"d-flex flex-row flex-nowrap flex-grow-0 flex-shrink-0 py-4\">\n <div\n class=\"d-flex flex-grow-1 flex-shrink-1 justify-content-end text-end overflow-hidden mx-6 my-auto\"\n [class.text-success]=\"validFormContainerMessage\"\n [class.text-danger]=\"invalidFormContainerMessage\"\n >\n <ng-content select=\"[si-form-container-message]\" />\n </div>\n\n <div class=\"m-auto flex-grow-0 flex-shrink-0\">\n <ng-content select=\"[si-form-container-buttons]\" />\n </div>\n </div>\n }\n</div>\n\n<ng-template #contentTemplate>\n <ng-content select=\"[si-form-container-content]\" />\n</ng-template>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DoCheck,\n HostBinding,\n input,\n signal\n} from '@angular/core';\nimport { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormItemComponent } from '../si-form-item/si-form-item.component';\n\n@Component({\n selector: 'si-form-fieldset',\n imports: [SiTranslatePipe],\n templateUrl: './si-form-fieldset.component.html',\n styleUrl: '../si-form.shared.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'group',\n class: 'si-form-input',\n '[style.--si-form-label-width]': 'labelWidth()'\n }\n})\nexport class SiFormFieldsetComponent implements DoCheck {\n private static labelIdCounter = 0;\n\n /** The label for the entire fieldset. */\n readonly label = input.required<TranslatableString>();\n\n /** Overrides the parent label width. */\n readonly labelWidth = input<string>();\n\n /**\n * Adds a required marker to the label\n *\n * @defaultValue false\n */\n readonly required = input(false, { transform: booleanAttribute });\n\n /**\n * Switches all child inputs to inline mode\n *\n * @defaultValue false\n */\n readonly inline = input(false, { transform: booleanAttribute });\n\n private readonly formItems = signal<SiFormItemComponent[]>([]);\n\n /** @internal */\n readonly hasOnlyRadios = computed(() => {\n // Check if the fieldset only contains radio buttons.\n // We can safely assume that, if all items have the same control name and if there are at least 2 items.\n const items = this.formItems();\n if (items.length > 1) {\n const first = items[0];\n return items.every(item => item.ngControl()?.name === first.ngControl()?.name);\n }\n\n return false;\n });\n\n protected readonly errors = computed(() =>\n // All errors should be the same for radios, so we just take the first.\n this.hasOnlyRadios() ? this.formItems()[0].errors() : []\n );\n protected readonly touched = signal(false);\n protected readonly isRequired = computed(\n () =>\n this.required() || (this.hasOnlyRadios() && this.formItems().every(item => item.required()))\n );\n\n @HostBinding('attr.aria-labelledby')\n protected labelId = `__si-form-fieldset-label-${SiFormFieldsetComponent.labelIdCounter++}`;\n\n ngDoCheck(): void {\n this.touched.set(this.formItems().some(item => item.ngControl()?.touched));\n }\n\n /** @internal */\n registerFormItem(item: SiFormItemComponent): void {\n this.formItems.update(items => [...items, item]);\n }\n\n /** @internal */\n unregisterFormItem(item: SiFormItemComponent): void {\n this.formItems.update(items => items.filter(i => i !== item));\n }\n}\n","<div class=\"form-label d-flex gap-2\">\n <span [class.required]=\"isRequired()\" [id]=\"labelId\">{{ label() | translate }}</span>\n <ng-content select=\"[si-help-button]\" />\n</div>\n<div>\n <ng-content />\n @if (hasOnlyRadios()) {\n <div class=\"invalid-feedback\" [class.d-block]=\"touched()\">\n @for (error of errors(); track error) {\n <div>\n {{ error.message | translate: error.params }}\n </div>\n }\n </div>\n }\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { InjectionToken, Signal } from '@angular/core';\n\nexport const SI_FORM_ITEM_CONTROL = new InjectionToken<SiFormItemControl>('si.form-item.control');\n\n/**\n * Common interface for form item controls.\n * Controls that should be connected to {@link SiFormItemComponent} must implement this interface\n * and must be provided using the {@link SI_FORM_ITEM_CONTROL} token.\n */\nexport interface SiFormItemControl {\n /** The actual id of the control that should be used in the `for` attribute of a label. */\n readonly id?: string | Signal<string | undefined>;\n\n /**\n * ID that should be assigned to the label element inside the {@link SiFormItemComponent}.\n *\n * If the target control is not of type <i>input</i>, <i>select</i> or <i>button</i>, it cannot be referenced by a label.\n * Instead, aria-labelledby must be used to create a reference to a label.\n * In such a case, an implementation of {@link SiFormItemControl} must provide the id of the label in {@link labelledby}.\n * {@link SiFormItemComponent} will apply the id to the label\n * so that it can be used inside the control to reference it in the aria-labelledby attribute.\n */\n readonly labelledby?: string | Signal<string | undefined> | null;\n\n /**\n * Generated ID that the {@link SiFormItemComponent} will assign to the element containing the error messages.\n * Implementations of {@link SiFormItemControl} must generate this ID\n * and assign it to the `aria-describedby` attribute of their focusable elements.\n */\n readonly errormessageId: string | Signal<string>;\n\n /** If the control is meant to be used a checkbox. This affects the label positioning. */\n readonly isFormCheck?: boolean;\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { inject, Injectable } from '@angular/core';\nimport { ValidationErrors } from '@angular/forms';\nimport { t } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormError } from './si-form-item/si-form-item.component';\nimport { SiFormValidationErrorMapper } from './si-form-validation-error.model';\n\n/**\n * Creates the map of default error resolver.\n * This is a function as $localize requires an injection context.\n *\n * @internal\n */\nexport const buildDefaults = (): SiFormValidationErrorMapper => ({\n // Phone number specific\n notSupportedPhoneNumberCountry: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.PHONE_COUNTRY:Unsupported country/region code`\n ),\n invalidPhoneNumberFormat: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.INVALID_PHONE:Invalid phone number`\n ),\n // IP address specific\n ipv4Address: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.IPV4:Invalid IPv4 address`),\n ipv6Address: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.IPV6:Invalid IPv6 address`),\n // Min / max\n max: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.MAX:Max. {{max}}`),\n min: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.MIN:Min. {{min}}`),\n maxlength: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MAX_LENGTH:Max. {{requiredLength}} characters`\n ),\n minlength: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MIN_LENGTH:Min. {{requiredLength}} characters`\n ),\n // Date specific\n dateFormat: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.DATE_FORMAT:Invalid date`),\n endBeforeStart: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.END_BEFORE_START:End date before start date`\n ),\n invalidEndDateFormat: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.DATE_FORMAT_END:Invalid end date`\n ),\n invalidStartDateFormat: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.DATE_FORMAT_START:Invalid start date`\n ),\n maxDate: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MAX_DATE:Date prior to {{maxString}} required`\n ),\n minDate: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MIN_DATE:Date after {{minString}} required`\n ),\n maxTime: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MAX_TIME:Time prior to {{maxString}} required`\n ),\n minTime: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MIN_TIME:Time after {{minString}} required`\n ),\n rangeAfterMaxDate: t(\n () =>\n $localize`:@@SI_FORM_CONTAINER.ERROR.RANGE_AFTER_MAX_DATE:Period prior to {{maxString}} required`\n ),\n rangeBeforeMinDate: t(\n () =>\n $localize`:@@SI_FORM_CONTAINER.ERROR.RANGE_BEFORE_MIN_DATE:Period after {{minString}} required`\n ),\n // Time units\n hours: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.HOURS:Integer between 0 and {{max}} required`\n ),\n minutes: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.MINUTES:Integer between 0 and 59 required`),\n seconds: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.SECONDS:Integer between 0 and 59 required`),\n milliseconds: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MILLISECONDS:Integer between 0 and 999 required`\n ),\n // Various\n email: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.EMAIL:Invalid email address`),\n numberFormat: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.NUMBER_FORMAT:Number required`),\n pattern: t(\n () =>\n $localize`:@@SI_FORM_CONTAINER.ERROR.PATTERN:The value does not match the predefined pattern.`\n ),\n required: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.REQUIRED:Required`),\n requiredTrue: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.REQUIRED_TRUE:Required`)\n});\n\n/**\n * A service to resolve the validation error of an Angular control to a message or translation key.\n *\n * It can be provided using {@link provideFormValidationErrorMapper}.\n * If not provided, there will be a default instance in the root injector using only the default keys.\n *\n * There can be multiple instances to support providing in a lazy loaded module.\n * If the service cannot find a message, it will try to resolve it using a parent service if available.\n *\n * @internal\n */\n@Injectable({\n providedIn: 'root',\n useFactory: () => new SiFormValidationErrorService(buildDefaults())\n})\nexport class SiFormValidationErrorService {\n private readonly parent = inject(SiFormValidationErrorService, {\n optional: true,\n skipSelf: true\n });\n\n // eslint-disable-next-line @angular-eslint/prefer-inject\n constructor(private errorMapper: SiFormValidationErrorMapper) {}\n\n /**\n * Resolves the provided form errors to a list of {@link SiFormError}.\n * To resolution order is:\n * 1. componentMapper\n * 2. containerMapper using the controlName\n * 3. containerMapper without controlName\n * 4. errorMapper of the service using the controlName\n * 5. errorMapper of the service\n * 6: parent service\n */\n resolveErrors(\n controlName: string | number | null | undefined,\n errors: ValidationErrors | null,\n componentMapper?: SiFormValidationErrorMapper,\n containerMapper?: SiFormValidationErrorMapper\n ): SiFormError[] {\n if (!errors) {\n return [];\n }\n /*\n * Converts the angular error object (like: {required: true, minLength: {actualLength: 1, requiredLength: 3}})\n * to SiFormError[].\n * Therefore, the error key is look up in the error mappers.\n * If it can be resolved, the error will be printed using the resolved text.\n */\n return Object.entries(errors).map(([key, params]) =>\n this.resolveError(key, controlName, params, componentMapper, containerMapper)\n );\n }\n\n private resolveError(\n key: string,\n controlName: string | number | null | undefined,\n params: any,\n componentMapper?: SiFormValidationErrorMapper,\n containerMapper?: SiFormValidationErrorMapper\n ): SiFormError {\n return (\n this.resolveMessage(key, controlName, params, componentMapper) ??\n this.resolveMessage(key, controlName, params, containerMapper) ??\n this.resolveMessage(key, controlName, params, this.errorMapper) ??\n this.parent?.resolveError(key, controlName, params) ?? { key, params }\n );\n }\n\n private resolveMessage(\n key: string,\n controlName: string | number | null | undefined,\n params: any,\n mapper?: SiFormValidationErrorMapper\n ): SiFormError | undefined {\n if (!mapper) {\n return undefined;\n }\n\n const resolver = mapper[`${controlName}.${key}`] ?? mapper[key];\n\n if (resolver) {\n const message = typeof resolver === 'function' ? resolver(params) : resolver;\n return message ? { key, message, params } : undefined;\n }\n return undefined;\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ElementRef } from '@angular/core';\n\nimport { SiFormItemControl } from '../si-form-item.control';\n\n/**\n * This will be used by the `si-form-item` to create a form item control if none is provided.\n * This is typically the case for native form controls like `input`, `textarea` and `select`.\n * It allows accessing the control's id and type.\n */\nexport class SiFormFieldNativeControl implements SiFormItemControl {\n private static idCounter = 0;\n private static readonly supportedTypes = ['INPUT', 'TEXTAREA', 'SELECT', 'METER', 'PROGRESS'];\n\n static createForElementRef(\n element: ElementRef<HTMLElement> | undefined\n ): SiFormFieldNativeControl | undefined {\n if (!element) {\n return undefined;\n }\n\n if (!SiFormFieldNativeControl.supportedTypes.includes(element.nativeElement.tagName)) {\n return undefined;\n }\n\n return new SiFormFieldNativeControl(element.nativeElement);\n }\n\n private constructor(private readonly element: HTMLElement) {\n if (!element.id) {\n element.id = `__si-form-field-native-control-${SiFormFieldNativeControl.idCounter++}`;\n }\n\n this.errormessageId = `${this.id}-errormessage`;\n if (element instanceof HTMLInputElement) {\n this.isFormCheck = element.type === 'checkbox' || element.type === 'radio';\n } else {\n this.isFormCheck = false;\n }\n\n element.setAttribute('aria-describedby', this.errormessageId);\n }\n\n isFormCheck: boolean;\n\n get id(): string {\n return this.element?.id;\n }\n\n set id(value: string) {\n this.element.id = value;\n }\n\n readonly errormessageId: string;\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n AfterContentChecked,\n AfterContentInit,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n ElementRef,\n inject,\n input,\n isSignal,\n OnChanges,\n OnDestroy,\n OnInit,\n signal,\n SimpleChanges\n} from '@angular/core';\nimport {\n FormControl,\n NgControl,\n RequiredValidator,\n ValidationErrors,\n ValidatorFn\n} from '@angular/forms';\nimport { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormFieldsetComponent } from '../form-fieldset/si-form-fieldset.component';\nimport { SiFormContainerComponent } from '../si-form-container/si-form-container.component';\nimport { SI_FORM_ITEM_CONTROL, SiFormItemControl } from '../si-form-item.control';\nimport { SiFormValidationErrorMapper } from '../si-form-validation-error.model';\nimport { SiFormValidationErrorService } from '../si-form-validation-error.service';\nimport { SiFormFieldNativeControl } from './si-form-field-native.control';\n\n/** @internal */\nexport interface SiFormError {\n key: string;\n message?: TranslatableString;\n params: any;\n}\n\n@Component({\n selector: 'si-form-item',\n imports: [SiTranslatePipe, NgTemplateOutlet],\n templateUrl: './si-form-item.component.html',\n styleUrl: '../si-form.shared.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.required]': 'required()',\n '[style.--si-form-label-width]': 'labelWidthCssVar()',\n '[class.form-check]': 'fieldControl()?.isFormCheck',\n '[class.form-check-inline]': 'fieldset?.inline()',\n '[class.si-form-input]': '!fieldset'\n }\n})\nexport class SiFormItemComponent\n implements AfterContentInit, AfterContentChecked, OnChanges, OnInit, OnDestroy\n{\n /**\n * The label to be displayed in the form item.\n * It will be translated if a translation key is available.\n */\n readonly label = input.required<TranslatableString>();\n\n /**\n * A custom width value to be applied to the label.\n * A value of 0 is allowed as well to visually hide away the label area.\n *\n * Numbers will be converted to pixels.\n * Using numbers is discouraged and might be dropped.\n *\n * @example labelWidth=\"100px\"\n */\n readonly labelWidth = input<string | number>();\n\n /**\n * Disables the automatic error printing. Error printing will be enabled by default in v46.\n *\n * @defaultValue false\n */\n readonly disableErrorPrinting = input(false, { transform: booleanAttribute });\n\n readonly formErrorMapper = input<SiFormValidationErrorMapper>();\n\n /**\n * Defines that this form item is required for the overall form to be valid.\n *\n * @defaultValue false\n */\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly requiredInput = input(false, { transform: booleanAttribute, alias: 'required' });\n\n protected readonly fieldControlQuery = contentChild(SI_FORM_ITEM_CONTROL, { descendants: true });\n /** @internal */\n readonly ngControl = contentChild(NgControl, { descendants: true });\n protected readonly controlElementRef = contentChild<NgControl, ElementRef<HTMLElement>>(\n NgControl,\n {\n read: ElementRef,\n descendants: true\n }\n );\n protected readonly requiredValidator = contentChild(RequiredValidator, { descendants: true });\n\n /** @internal */\n readonly errors = signal<SiFormError[]>([]);\n\n protected fieldset = inject(SiFormFieldsetComponent, { optional: true });\n protected container = inject(SiFormContainerComponent, { optional: true });\n\n protected get formItemId(): string | null {\n const fieldControl = this.fieldControl();\n return isSignal(fieldControl?.id) ? (fieldControl.id() ?? null) : (fieldControl?.id ?? null);\n }\n\n protected get formItemLabelledBy(): string | null {\n const fieldControl = this.fieldControl();\n return isSignal(fieldControl?.labelledby)\n ? (fieldControl.labelledby() ?? null)\n : (fieldControl?.labelledby ?? null);\n }\n\n protected get formItemErrormessageId(): string | null {\n const fieldControl = this.fieldControl();\n return isSignal(fieldControl?.errormessageId)\n ? (fieldControl?.errormessageId() ?? null)\n : (fieldControl?.errormessageId ?? null);\n }\n\n protected readonly fieldControl = computed(\n () => this.fieldControlQuery() ?? this.fieldControlNative()\n );\n\n private validationErrorService = inject(SiFormValidationErrorService);\n private requiredTestControl = new FormControl('');\n private validator?: ValidatorFn | null;\n private previousErrors?: ValidationErrors | null;\n private readonly hasRequiredValidator = signal(false);\n private readonly fieldControlNative = signal<SiFormItemControl | undefined>(undefined);\n\n protected readonly labelWidthCssVar = computed(() => {\n const labelWidth = this.labelWidth();\n if (typeof labelWidth === 'number') {\n return `${labelWidth}px`;\n }\n\n return labelWidth;\n });\n\n protected readonly printErrors = computed(() => {\n return !this.disableErrorPrinting() && !(this.container?.disableErrorPrinting() ?? false);\n });\n\n /** @internal */\n readonly required = computed(() => this.requiredInput() || this.hasRequiredValidator());\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.formErrorMapper) {\n this.updateValidationMessages();\n }\n }\n\n ngOnInit(): void {\n this.fieldset?.registerFormItem(this);\n }\n\n ngAfterContentInit(): void {\n if (!this.fieldControlQuery()) {\n this.fieldControlNative.set(\n SiFormFieldNativeControl.createForElementRef(this.controlElementRef())\n );\n }\n }\n\n ngAfterContentChecked(): void {\n this.updateRequiredState();\n this.updateValidationMessages();\n }\n\n ngOnDestroy(): void {\n this.fieldset?.unregisterFormItem(this);\n }\n\n private updateRequiredState(): void {\n const requiredValidator = this.requiredValidator();\n if (requiredValidator) {\n // the easy case: required validator is applied in the template: <input required>\n this.hasRequiredValidator.set(booleanAttribute(requiredValidator.required));\n } else {\n // No required validator is applied via template, it could still be applied in the code.\n // If validators are applied via code, the validator object will change of controls.\n // So we only need to check for required if the validator object was changed.\n const validator = this.ngControl()?.control?.validator;\n\n if (this.validator !== validator) {\n this.validator = validator;\n this.requiredTestControl.setValidators(this.validator ?? null);\n this.requiredTestControl.updateValueAndValidity();\n this.hasRequiredValidator.set(this.requiredTestControl.errors?.required ?? false);\n }\n }\n }\n\n private updateValidationMessages(): void {\n const control = this.ngControl();\n const currentErrors = control?.errors;\n if (this.previousErrors !== currentErrors) {\n if (control && this.printErrors()) {\n this.errors.set(\n this.validationErrorService\n .resolveErrors(\n control.name,\n control.errors,\n this.formErrorMapper(),\n this.container?.formErrorMapper()\n )\n .filter(error => error.message)\n );\n this.previousErrors = currentErrors;\n } else if (this.errors().length) {\n this.errors.set([]);\n }\n }\n }\n}\n","<!--Block the space if no form-field is provided. Otherwise it looks weird in the formly field inline representation.-->\n@if (fieldControl()?.isFormCheck && !fieldset) {\n <div class=\"form-label\"></div>\n}\n@if (fieldControl()?.isFormCheck) {\n <div class=\"form-item-content\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n <ng-container [ngTemplateOutlet]=\"labelTemplate\" />\n <ng-container [ngTemplateOutlet]=\"feedbackTemplate\" />\n </div>\n} @else {\n <ng-container [ngTemplateOutlet]=\"labelTemplate\" />\n <div class=\"form-item-content\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n <ng-container [ngTemplateOutlet]=\"feedbackTemplate\" />\n </div>\n}\n\n<ng-template #labelTemplate>\n @if (label()) {\n <div\n class=\"d-flex gap-2\"\n [class.form-label]=\"!fieldControl()?.isFormCheck\"\n [class.form-check-label]=\"fieldControl()?.isFormCheck\"\n >\n @let labeledBy = formItemLabelledBy;\n @let required = this.required() && !this.fieldset?.hasOnlyRadios();\n @if (labeledBy) {\n <span [id]=\"labeledBy\" [class.required]=\"required\">{{ label()! | translate }}</span>\n } @else {\n <label [for]=\"formItemId\" [class.required]=\"required\">{{ label()! | translate }}</label>\n }\n <ng-content select=\"[si-help-button]\" />\n </div>\n }\n</ng-template>\n<ng-template #feedbackTemplate>\n @if (printErrors() && !fieldset?.hasOnlyRadios()) {\n <div class=\"invalid-feedback\" [attr.id]=\"formItemErrormessageId\">\n @for (error of errors(); track error.key) {\n <div>\n {{ error.message | translate: error.params }}\n </div>\n }\n </div>\n }\n <ng-content select=\".warning-feedback, .info-feedback, .invalid-feedback\" />\n</ng-template>\n<ng-template #content>\n <ng-content />\n</ng-template>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, inject, InjectionToken, Signal } from '@angular/core';\nimport { SiTranslatePipe } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormError } from '../si-form-item/si-form-item.component';\n\nexport const SI_FORM_VALIDATION_TOOLTIP_DATA = new InjectionToken<Signal<SiFormError[]>>(\n 'SiFormValidationTooltipData'\n);\n\n@Component({\n selector: 'si-form-validation-tooltip',\n imports: [SiTranslatePipe],\n template: `\n @for (error of errors(); track error.key) {\n <div>{{ error.message | translate: error.params }}</div>\n }\n `,\n host: {\n 'class': 'd-flex flex-column gap-2 text-start'\n }\n})\nexport class SiFormValidationTooltipComponent {\n protected errors = inject(SI_FORM_VALIDATION_TOOLTIP_DATA);\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport {\n Directive,\n DoCheck,\n ElementRef,\n HostListener,\n inject,\n Injector,\n input,\n OnDestroy,\n signal\n} from '@angular/core';\nimport { NgControl, ValidationErrors } from '@angular/forms';\nimport { SiTooltipService, TooltipRef } from '@siemens/element-ng/tooltip';\n\nimport { SiFormContainerComponent } from '../si-form-container/si-form-container.component';\nimport { SiFormError } from '../si-form-item/si-form-item.component';\nimport { SiFormValidationErrorMapper } from '../si-form-validation-error.model';\nimport { SiFormValidationErrorService } from '../si-form-validation-error.service';\nimport {\n SI_FORM_VALIDATION_TOOLTIP_DATA,\n SiFormValidationTooltipComponent\n} from './si-form-validation-tooltip.component';\n\n/**\n * Directive to show a tooltip with validation errors of a form control.\n *\n * In general, `si-form-item` should be used.\n * This directive is intended only for cases where the tooltip cannot be shown inline.\n * This is typically the case for tables and lists where the validation message would break the layout.\n *\n * @example\n * ```html\n * <input siFormValidationTooltip [formControl]=\"control\" />\n * ```\n */\n@Directive({\n selector: '[siFormValidationTooltip]',\n providers: [SiTooltipService],\n host: {\n '[attr.aria-describedby]': 'describedBy'\n }\n})\nexport class SiFormValidationTooltipDirective implements OnDestroy, DoCheck {\n private static idCounter = 0;\n\n private tooltipService = inject(SiTooltipService);\n private formValidationService = inject(SiFormValidationErrorService);\n private formContainer = inject(SiFormContainerComponent, { optional: true });\n readonly formErrorMapper = input<SiFormValidationErrorMapper>();\n private ngControl = inject(NgControl);\n private elementRef = inject(ElementRef);\n\n private tooltipRef?: TooltipRef;\n private readonly errors = signal<SiFormError[]>([]);\n private currentErrors: ValidationErrors | null = null;\n private touched: boolean | null = null;\n\n // Use a counter to track how many events are matched that keep the tooltip active.\n // Active means we are listening to error changes.\n private activationCount = 0;\n protected readonly describedBy = `__si-form-validation-tooltip-${SiFormValidationTooltipDirective.idCounter++}`;\n\n ngDoCheck(): void {\n if (\n this.activationCount &&\n (this.currentErrors !== this.ngControl.errors || this.touched !== this.ngControl.touched)\n ) {\n this.currentErrors = this.ngControl.errors;\n this.touched = this.ngControl.touched;\n this.updateErrors();\n }\n }\n\n ngOnDestroy(): void {\n this.destroyTooltip();\n }\n\n @HostListener('focus')\n @HostListener('mouseenter')\n protected increaseActivation(): void {\n this.activationCount++;\n if (this.activationCount === 1) {\n this.updateErrors();\n }\n }\n\n private updateErrors(): void {\n const errors = this.formValidationService\n .resolveErrors(\n this.ngControl.name,\n this.currentErrors,\n this.formErrorMapper(),\n this.formContainer?.formErrorMapper()\n )\n .filter(error => !!error.message);\n\n if (!this.tooltipRef && errors.length && this.ngControl.touched) {\n this.tooltipRef = this.tooltipService.createTooltip({\n placement: 'auto',\n element: this.elementRef,\n describedBy: this.describedBy,\n injector: Injector.create({\n providers: [{ provide: SI_FORM_VALIDATION_TOOLTIP_DATA, useValue: this.errors }]\n }),\n tooltip: () => SiFormValidationTooltipComponent,\n tooltipContext: () => undefined\n });\n this.tooltipRef.show();\n } else if (this.tooltipRef && (!errors.length || this.ngControl.pristine)) {\n this.destroyTooltip();\n }\n\n this.errors.set(errors);\n }\n\n @HostListener('blur')\n @HostListener('mouseleave')\n protected decreaseActivation(): void {\n this.activationCount--;\n if (!this.activationCount) {\n this.destroyTooltip();\n }\n }\n\n private destroyTooltip(): void {\n this.tooltipRef?.destroy();\n this.tooltipRef = undefined;\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Provider } from '@angular/core';\nimport { TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormValidationErrorMapper } from './si-form-validation-error.model';\nimport { buildDefaults, SiFormValidationErrorService } from './si-form-validation-error.service';\n\n/**\n * The error mapper is used to resolve an angular validation error to a {@link TranslatableString}.\n * It will be merged with already existing error mappers.\n */\nexport const provideFormValidationErrorMapper = (\n mapper: SiFormValidationErrorMapper\n): Provider => ({\n provide: SiFormValidationErrorService,\n // defaults must always be provided in case this is called in app.config\n useFactory: () => new SiFormValidationErrorService({ ...buildDefaults(), ...mapper })\n});\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ModuleWithProviders, NgModule } from '@angular/core';\n\nimport { SiFormFieldsetComponent } from './form-fieldset/si-form-fieldset.component';\nimport { SiFormContainerComponent } from './si-form-container/si-form-container.component';\nimport { SiFormItemComponent } from './si-form-item/si-form-item.component';\nimport { SiFormValidationErrorMapper } from './si-form-validation-error.model';\nimport { provideFormValidationErrorMapper } from './si-form-validation-error.provider';\n\n@NgModule({\n imports: [SiFormContainerComponent, SiFormFieldsetComponent, SiFormItemComponent],\n exports: [SiFormContainerComponent, SiFormFieldsetComponent, SiFormItemComponent]\n})\nexport class SiFormModule {\n /**\n * Overrides the default configuration of the form module.\n *\n * @param errorMapper - The error mappers is used to resolve angular validation errors.\n * It will be merged with already existing error mappers.\n */\n // We have the errorMapper wrapped in an object, to allow the addition of more configuration fields without breaking the API.\n static withConfiguration({\n validationErrorMapper\n }: {\n validationErrorMapper: SiFormValidationErrorMapper;\n }): ModuleWithProviders<SiFormModule> {\n return {\n ngModule: SiFormModule,\n providers: [provideFormValidationErrorMapper(validationErrorMapper)]\n };\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-form-container/si-form-container.component';\nexport * from './si-form-item/si-form-item.component';\nexport * from './si-form-validation-tooltip/si-form-validation-tooltip.directive';\nexport * from './form-fieldset/si-form-fieldset.component';\nexport * from './si-form.module';\nexport * from './si-form-item.control';\nexport * from './si-form-validation-error.provider';\nexport * from './si-form-validation-error.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;MA0BU,wBAAwB,CAAA;AACnC;;;AAGG;IACM,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAuB;AAE5C;;;;;;AAMG;IACM,QAAQ,GAAG,KAAK,CAAC,KAAK,qDAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAEjE;;;;AAIG;IACM,2BAA2B,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,6BAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAe;AAE3D;;;;;;AAMG;IACM,2BAA2B,GAAG,KAAK,CAAC,KAAK,wEAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAEpF;;;;;;AAMG;IACM,wBAAwB,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,0BAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAEtC;AAEH;;;;;;;;;AASG;AACM,IAAA,0BAA0B,GAAG,KAAK,CAAC,IAAI,GAAG,EAAkB,sEAAC;AAEtE;;;;AAIG;IACM,oBAAoB,GAAG,KAAK,CAAC,KAAK,iEAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAE7E;;;;AAIG;IACM,UAAU,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,YAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;AAE3B,IAAA,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,wBAAwB,EAAE;AAChE,QAAA,QAAQ,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AA,yBAAyB,EAAE;AAC5B;AACF,iBAAA;;sBAoCE,YAAY;uBAAC,OAAO;;sBACpB,YAAY;uBAAC,YAAY;;sBAqCzB,YAAY;uBAAC,MAAM;;sBACnB,YAAY;uBAAC,YAAY;;;AC9G5B;;;AAGG;MACU,gCAAgC,GAAG,CAC9C,MAAmC,MACrB;AACd,IAAA,OAAO,EAAE,4BAA4B;;AAErC,IAAA,UAAU,EAAE,MAAM,IAAI,4BAA4B,CAAC,EAAE,GAAG,aAAa,EAAE,EAAE,GAAG,MAAM,EAAE;AACrF,CAAA;;ACpBD;;;AAGG;MAaU,YAAY,CAAA;AACvB;;;;;AAKG;;AAEH,IAAA,OAAO,iBAAiB,CAAC,EACvB,qBAAqB,EAGtB,EAAA;QACC,OAAO;AACL,YAAA,QAAQ,EAAE,YAAY;AACtB,YAAA,SAAS,EAAE,CAAC,gCAAgC,CAAC,qBAAqB,CAAC;SACpE;IACH;uGAjBW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAZ,YAAY,EAAA,OAAA,EAAA,CAHb,wBAAwB,EAAE,uBAAuB,EAAE,mBAAmB,CAAA,EAAA,OAAA,EAAA,CACtE,wBAAwB,EAAE,uBAAuB,EAAE,mBAAmB,CAAA,EAAA,CAAA;wGAErE,YAAY,EAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,wBAAwB,EAAE,uBAAuB,EAAE,mBAAmB,CAAC;AACjF,oBAAA,OAAO,EAAE,CAAC,wBAAwB,EAAE,uBAAuB,EAAE,mBAAmB;AACjF,iBAAA;;;ACfD;;;AAGG;;ACHH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"siemens-element-ng-form.mjs","sources":["../../../../projects/element-ng/form/si-form-container/si-form-container.component.ts","../../../../projects/element-ng/form/si-form-container/si-form-container.component.html","../../../../projects/element-ng/form/form-fieldset/si-form-fieldset.component.ts","../../../../projects/element-ng/form/form-fieldset/si-form-fieldset.component.html","../../../../projects/element-ng/form/si-form-item.control.ts","../../../../projects/element-ng/form/si-form-validation-error.service.ts","../../../../projects/element-ng/form/si-form-item/si-form-field-native.control.ts","../../../../projects/element-ng/form/si-form-item/si-form-item.component.ts","../../../../projects/element-ng/form/si-form-item/si-form-item.component.html","../../../../projects/element-ng/form/si-form-validation-tooltip/si-form-validation-tooltip.component.ts","../../../../projects/element-ng/form/si-form-validation-tooltip/si-form-validation-tooltip.directive.ts","../../../../projects/element-ng/form/si-form-validation-error.provider.ts","../../../../projects/element-ng/form/si-form.module.ts","../../../../projects/element-ng/form/index.ts","../../../../projects/element-ng/form/siemens-element-ng-form.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { NgTemplateOutlet } from '@angular/common';\nimport { booleanAttribute, Component, computed, inject, input } from '@angular/core';\nimport { AbstractControl, FormGroup } from '@angular/forms';\nimport { Breakpoints, SiResponsiveContainerDirective } from '@siemens/element-ng/resize-observer';\nimport { TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormValidationErrorMapper } from '../si-form-validation-error.model';\n\nexport interface SiFormValidationError {\n controlName?: string;\n controlNameTranslationKey?: string;\n errorCode: TranslatableString;\n errorCodeTranslationKey?: string;\n errorParams?: any;\n}\n\n@Component({\n selector: 'si-form-container',\n imports: [NgTemplateOutlet, SiResponsiveContainerDirective],\n templateUrl: './si-form-container.component.html',\n styleUrl: './si-form-container.component.scss',\n host: {\n '[style.--si-form-label-width]': 'labelWidth()'\n }\n})\nexport class SiFormContainerComponent<TControl extends { [K in keyof TControl]: AbstractControl }> {\n /**\n * Set the form entity to the container to enable the overall form validation on in\n * the form container edit panel.\n */\n readonly form = input<FormGroup<TControl>>();\n\n /**\n * A form container in readonly mode is only displaying the form content without ability\n * to change it. The edit panel with typically save and cancel buttons is hidden. Set\n * to true to display the edit panel.\n *\n * @defaultValue false\n */\n readonly readonly = input(false, { transform: booleanAttribute });\n\n /**\n * The container hosts the form within a siResizeContainer to configure the breakpoint for\n * different screen sizes. Optionally, change the container breakpoints with the contentContainerBreakpoints\n * input.\n */\n readonly contentContainerBreakpoints = input<Breakpoints>();\n\n /**\n * In some scenarios, one may not want the form container to be responsible for the layout relevant\n * `si-container-[xs|...]` classes, but let this be done by a different, nested component, e.g. by a\n * group box. In these cases, the property should be set to true.\n *\n * @defaultValue false\n */\n readonly disableContainerBreakpoints = input(false, { transform: booleanAttribute });\n\n /**\n * Every validation error has an errorCode. This map holds translate keys for error codes. The keys can\n * be used to display a translated message for each validation error. The defaults old english readable\n * key defaults for the Angular standard validators of the `Validators` class like `min`, `max` or `required`.\n *\n * Use the input to set your own translate keys for the form validators you need.\n */\n readonly errorCodeTranslateKeyMap = input<\n Map<string, string> | SiFormValidationErrorMapper | undefined\n >();\n\n /**\n * A map the maps from control names of the form to their translate keys.\n * The initial map is empty and the user is responsible to add the required\n * translate keys.\n *\n * @defaultValue\n * ```\n * new Map<string, string>()\n * ```\n */\n readonly controlNameTranslateKeyMap = input(new Map<string, string>());\n\n /**\n * Disables the automatic error printing in all nested {@link SiFormItemComponent}. Error printing will be enabled by default in v46.\n *\n * @defaultValue false\n */\n readonly disableErrorPrinting = input(false, { transform: booleanAttribute });\n\n /**\n * A custom width value to be applied to all labels.\n *\n * @example labelWidth=\"100px\".\n */\n readonly labelWidth = input<string>();\n\n protected hasParentContainer = !!inject(SiFormContainerComponent, {\n optional: true,\n skipSelf: true\n });\n\n /** @internal */\n readonly formErrorMapper = computed(() => {\n const map = this.errorCodeTranslateKeyMap();\n\n let customMapper: SiFormValidationErrorMapper | undefined;\n if (map instanceof Map) {\n customMapper = Object.fromEntries(map.entries());\n } else if (map) {\n customMapper = map;\n }\n\n return {\n ...customMapper\n };\n });\n\n /**\n * Indicates whether the user interacted with the form.\n * @returns `true`, if the user selected at least one form element and\n * [blurred]{@link https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event} by losing focus again\n * (e.g. by setting focus on another element), or by editing the content of a form element.\n * Otherwise `false`.\n */\n get userInteractedWithForm(): boolean {\n const form = this.form();\n return !!form && (form.dirty || form.touched);\n }\n\n /**\n * Indicates whether content editor message shall be styled as success.\n * @returns `true`, if {@link SiFormContainerComponent.userInteractedWithForm} is true and\n * the form is valid.\n */\n get validFormContainerMessage(): boolean {\n return this.userInteractedWithForm && this.form()!.status === 'VALID';\n }\n\n /**\n * Indicates whether the content editor message shall be styled as warning.\n * @returns `true`, if {@link SiFormContainerComponent.userInteractedWithForm} is true and\n * the form is invalid.\n */\n get invalidFormContainerMessage(): boolean {\n return this.userInteractedWithForm && this.form()!.status === 'INVALID';\n }\n\n protected getControlNameTranslateKey(controlName: string): string | undefined {\n const controlNameTranslateKeyMap = this.controlNameTranslateKeyMap();\n if (!controlNameTranslateKeyMap) {\n return undefined;\n }\n return controlNameTranslateKeyMap.get(controlName) ?? controlName;\n }\n}\n","<div class=\"d-flex flex-column align-content-stretch flex-grow-1 flex-shrink-1\">\n @if (disableContainerBreakpoints() || hasParentContainer) {\n <div class=\"flex-grow-1 flex-shrink-1\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\" />\n </div>\n } @else {\n <div\n class=\"flex-grow-1 flex-shrink-1\"\n siResponsiveContainer\n [breakpoints]=\"contentContainerBreakpoints()\"\n >\n <ng-container *ngTemplateOutlet=\"contentTemplate\" />\n </div>\n }\n\n @if (!readonly()) {\n <div class=\"d-flex flex-row flex-nowrap flex-grow-0 flex-shrink-0 py-4\">\n <div\n class=\"d-flex flex-grow-1 flex-shrink-1 justify-content-end text-end overflow-hidden mx-6 my-auto\"\n [class.text-success]=\"validFormContainerMessage\"\n [class.text-danger]=\"invalidFormContainerMessage\"\n >\n <ng-content select=\"[si-form-container-message]\" />\n </div>\n\n <div class=\"m-auto flex-grow-0 flex-shrink-0\">\n <ng-content select=\"[si-form-container-buttons]\" />\n </div>\n </div>\n }\n</div>\n\n<ng-template #contentTemplate>\n <ng-content select=\"[si-form-container-content]\" />\n</ng-template>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DoCheck,\n HostBinding,\n input,\n signal\n} from '@angular/core';\nimport { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormItemComponent } from '../si-form-item/si-form-item.component';\n\n@Component({\n selector: 'si-form-fieldset',\n imports: [SiTranslatePipe],\n templateUrl: './si-form-fieldset.component.html',\n styleUrl: '../si-form.shared.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'group',\n class: 'si-form-input',\n '[style.--si-form-label-width]': 'labelWidth()'\n }\n})\nexport class SiFormFieldsetComponent implements DoCheck {\n private static labelIdCounter = 0;\n\n /** The label for the entire fieldset. */\n readonly label = input.required<TranslatableString>();\n\n /** Overrides the parent label width. */\n readonly labelWidth = input<string>();\n\n /**\n * Adds a required marker to the label\n *\n * @defaultValue false\n */\n readonly required = input(false, { transform: booleanAttribute });\n\n /**\n * Switches all child inputs to inline mode\n *\n * @defaultValue false\n */\n readonly inline = input(false, { transform: booleanAttribute });\n\n private readonly formItems = signal<SiFormItemComponent[]>([]);\n\n /** @internal */\n readonly hasOnlyRadios = computed(() => {\n // Check if the fieldset only contains radio buttons.\n // We can safely assume that, if all items have the same control name and if there are at least 2 items.\n const items = this.formItems();\n if (items.length > 1) {\n const first = items[0];\n return items.every(item => item.ngControl()?.name === first.ngControl()?.name);\n }\n\n return false;\n });\n\n protected readonly errors = computed(() =>\n // All errors should be the same for radios, so we just take the first.\n this.hasOnlyRadios() ? this.formItems()[0].errors() : []\n );\n protected readonly touched = signal(false);\n protected readonly isRequired = computed(\n () =>\n this.required() || (this.hasOnlyRadios() && this.formItems().every(item => item.required()))\n );\n\n @HostBinding('attr.aria-labelledby')\n protected labelId = `__si-form-fieldset-label-${SiFormFieldsetComponent.labelIdCounter++}`;\n\n ngDoCheck(): void {\n this.touched.set(this.formItems().some(item => item.ngControl()?.touched));\n }\n\n /** @internal */\n registerFormItem(item: SiFormItemComponent): void {\n this.formItems.update(items => [...items, item]);\n }\n\n /** @internal */\n unregisterFormItem(item: SiFormItemComponent): void {\n this.formItems.update(items => items.filter(i => i !== item));\n }\n}\n","<div class=\"form-label d-flex gap-2\">\n <span [class.required]=\"isRequired()\" [id]=\"labelId\">{{ label() | translate }}</span>\n <ng-content select=\"[si-help-button]\" />\n</div>\n<div>\n <ng-content />\n @if (hasOnlyRadios()) {\n <div class=\"invalid-feedback\" [class.d-block]=\"touched()\">\n @for (error of errors(); track error) {\n <div>\n {{ error.message | translate: error.params }}\n </div>\n }\n </div>\n }\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { InjectionToken, Signal } from '@angular/core';\n\nexport const SI_FORM_ITEM_CONTROL = new InjectionToken<SiFormItemControl>('si.form-item.control');\n\n/**\n * Common interface for form item controls.\n * Controls that should be connected to {@link SiFormItemComponent} must implement this interface\n * and must be provided using the {@link SI_FORM_ITEM_CONTROL} token.\n */\nexport interface SiFormItemControl {\n /** The actual id of the control that should be used in the `for` attribute of a label. */\n readonly id?: string | Signal<string | undefined>;\n\n /**\n * ID that should be assigned to the label element inside the {@link SiFormItemComponent}.\n *\n * If the target control is not of type <i>input</i>, <i>select</i> or <i>button</i>, it cannot be referenced by a label.\n * Instead, aria-labelledby must be used to create a reference to a label.\n * In such a case, an implementation of {@link SiFormItemControl} must provide the id of the label in {@link labelledby}.\n * {@link SiFormItemComponent} will apply the id to the label\n * so that it can be used inside the control to reference it in the aria-labelledby attribute.\n */\n readonly labelledby?: string | Signal<string | undefined> | null;\n\n /**\n * Generated ID that the {@link SiFormItemComponent} will assign to the element containing the error messages.\n * Implementations of {@link SiFormItemControl} must generate this ID\n * and assign it to the `aria-describedby` attribute of their focusable elements.\n */\n readonly errormessageId: string | Signal<string>;\n\n /** If the control is meant to be used a checkbox. This affects the label positioning. */\n readonly isFormCheck?: boolean;\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { inject, Injectable } from '@angular/core';\nimport { ValidationErrors } from '@angular/forms';\nimport { t } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormError } from './si-form-item/si-form-item.component';\nimport { SiFormValidationErrorMapper } from './si-form-validation-error.model';\n\n/**\n * Creates the map of default error resolver.\n * This is a function as $localize requires an injection context.\n *\n * @internal\n */\nexport const buildDefaults = (): SiFormValidationErrorMapper => ({\n // Phone number specific\n notSupportedPhoneNumberCountry: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.PHONE_COUNTRY:Unsupported country/region code`\n ),\n invalidPhoneNumberFormat: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.INVALID_PHONE:Invalid phone number`\n ),\n // IP address specific\n ipv4Address: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.IPV4:Invalid IPv4 address`),\n ipv6Address: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.IPV6:Invalid IPv6 address`),\n // Min / max\n max: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.MAX:Max. {{max}}`),\n min: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.MIN:Min. {{min}}`),\n maxlength: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MAX_LENGTH:Max. {{requiredLength}} characters`\n ),\n minlength: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MIN_LENGTH:Min. {{requiredLength}} characters`\n ),\n // Date specific\n dateFormat: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.DATE_FORMAT:Invalid date`),\n endBeforeStart: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.END_BEFORE_START:End date before start date`\n ),\n invalidEndDateFormat: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.DATE_FORMAT_END:Invalid end date`\n ),\n invalidStartDateFormat: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.DATE_FORMAT_START:Invalid start date`\n ),\n maxDate: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MAX_DATE:Date prior to {{maxString}} required`\n ),\n minDate: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MIN_DATE:Date after {{minString}} required`\n ),\n maxTime: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MAX_TIME:Time prior to {{maxString}} required`\n ),\n minTime: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MIN_TIME:Time after {{minString}} required`\n ),\n rangeAfterMaxDate: t(\n () =>\n $localize`:@@SI_FORM_CONTAINER.ERROR.RANGE_AFTER_MAX_DATE:Period prior to {{maxString}} required`\n ),\n rangeBeforeMinDate: t(\n () =>\n $localize`:@@SI_FORM_CONTAINER.ERROR.RANGE_BEFORE_MIN_DATE:Period after {{minString}} required`\n ),\n // Time units\n hours: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.HOURS:Integer between 0 and {{max}} required`\n ),\n minutes: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.MINUTES:Integer between 0 and 59 required`),\n seconds: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.SECONDS:Integer between 0 and 59 required`),\n milliseconds: t(\n () => $localize`:@@SI_FORM_CONTAINER.ERROR.MILLISECONDS:Integer between 0 and 999 required`\n ),\n // Various\n email: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.EMAIL:Invalid email address`),\n numberFormat: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.NUMBER_FORMAT:Number required`),\n pattern: t(\n () =>\n $localize`:@@SI_FORM_CONTAINER.ERROR.PATTERN:The value does not match the predefined pattern.`\n ),\n required: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.REQUIRED:Required`),\n requiredTrue: t(() => $localize`:@@SI_FORM_CONTAINER.ERROR.REQUIRED_TRUE:Required`)\n});\n\n/**\n * A service to resolve the validation error of an Angular control to a message or translation key.\n *\n * It can be provided using {@link provideFormValidationErrorMapper}.\n * If not provided, there will be a default instance in the root injector using only the default keys.\n *\n * There can be multiple instances to support providing in a lazy loaded module.\n * If the service cannot find a message, it will try to resolve it using a parent service if available.\n *\n * @internal\n */\n@Injectable({\n providedIn: 'root',\n useFactory: () => new SiFormValidationErrorService(buildDefaults())\n})\nexport class SiFormValidationErrorService {\n private readonly parent = inject(SiFormValidationErrorService, {\n optional: true,\n skipSelf: true\n });\n\n // eslint-disable-next-line @angular-eslint/prefer-inject\n constructor(private errorMapper: SiFormValidationErrorMapper) {}\n\n /**\n * Resolves the provided form errors to a list of {@link SiFormError}.\n * To resolution order is:\n * 1. componentMapper\n * 2. containerMapper using the controlName\n * 3. containerMapper without controlName\n * 4. errorMapper of the service using the controlName\n * 5. errorMapper of the service\n * 6: parent service\n */\n resolveErrors(\n controlName: string | number | null | undefined,\n errors: ValidationErrors | null,\n componentMapper?: SiFormValidationErrorMapper,\n containerMapper?: SiFormValidationErrorMapper\n ): SiFormError[] {\n if (!errors) {\n return [];\n }\n /*\n * Converts the angular error object (like: {required: true, minLength: {actualLength: 1, requiredLength: 3}})\n * to SiFormError[].\n * Therefore, the error key is look up in the error mappers.\n * If it can be resolved, the error will be printed using the resolved text.\n */\n return Object.entries(errors).map(([key, params]) =>\n this.resolveError(key, controlName, params, componentMapper, containerMapper)\n );\n }\n\n private resolveError(\n key: string,\n controlName: string | number | null | undefined,\n params: any,\n componentMapper?: SiFormValidationErrorMapper,\n containerMapper?: SiFormValidationErrorMapper\n ): SiFormError {\n return (\n this.resolveMessage(key, controlName, params, componentMapper) ??\n this.resolveMessage(key, controlName, params, containerMapper) ??\n this.resolveMessage(key, controlName, params, this.errorMapper) ??\n this.parent?.resolveError(key, controlName, params) ?? { key, params }\n );\n }\n\n private resolveMessage(\n key: string,\n controlName: string | number | null | undefined,\n params: any,\n mapper?: SiFormValidationErrorMapper\n ): SiFormError | undefined {\n if (!mapper) {\n return undefined;\n }\n\n const resolver = mapper[`${controlName}.${key}`] ?? mapper[key];\n\n if (resolver) {\n const message = typeof resolver === 'function' ? resolver(params) : resolver;\n return message ? { key, message, params } : undefined;\n }\n return undefined;\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ElementRef } from '@angular/core';\n\nimport { SiFormItemControl } from '../si-form-item.control';\n\n/**\n * This will be used by the `si-form-item` to create a form item control if none is provided.\n * This is typically the case for native form controls like `input`, `textarea` and `select`.\n * It allows accessing the control's id and type.\n */\nexport class SiFormFieldNativeControl implements SiFormItemControl {\n private static idCounter = 0;\n private static readonly supportedTypes = ['INPUT', 'TEXTAREA', 'SELECT', 'METER', 'PROGRESS'];\n\n static createForElementRef(\n element: ElementRef<HTMLElement> | undefined\n ): SiFormFieldNativeControl | undefined {\n if (!element) {\n return undefined;\n }\n\n if (!SiFormFieldNativeControl.supportedTypes.includes(element.nativeElement.tagName)) {\n return undefined;\n }\n\n return new SiFormFieldNativeControl(element.nativeElement);\n }\n\n private constructor(private readonly element: HTMLElement) {\n if (!element.id) {\n element.id = `__si-form-field-native-control-${SiFormFieldNativeControl.idCounter++}`;\n }\n\n this.errormessageId = `${this.id}-errormessage`;\n if (element instanceof HTMLInputElement) {\n this.isFormCheck = element.type === 'checkbox' || element.type === 'radio';\n } else {\n this.isFormCheck = false;\n }\n\n element.setAttribute('aria-describedby', this.errormessageId);\n }\n\n isFormCheck: boolean;\n\n get id(): string {\n return this.element?.id;\n }\n\n set id(value: string) {\n this.element.id = value;\n }\n\n readonly errormessageId: string;\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n AfterContentChecked,\n AfterContentInit,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n ElementRef,\n inject,\n input,\n isSignal,\n OnChanges,\n OnDestroy,\n OnInit,\n signal,\n SimpleChanges\n} from '@angular/core';\nimport {\n FormControl,\n NgControl,\n RequiredValidator,\n ValidationErrors,\n ValidatorFn\n} from '@angular/forms';\nimport { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormFieldsetComponent } from '../form-fieldset/si-form-fieldset.component';\nimport { SiFormContainerComponent } from '../si-form-container/si-form-container.component';\nimport { SI_FORM_ITEM_CONTROL, SiFormItemControl } from '../si-form-item.control';\nimport { SiFormValidationErrorMapper } from '../si-form-validation-error.model';\nimport { SiFormValidationErrorService } from '../si-form-validation-error.service';\nimport { SiFormFieldNativeControl } from './si-form-field-native.control';\n\n/** @internal */\nexport interface SiFormError {\n key: string;\n message?: TranslatableString;\n params: any;\n}\n\n@Component({\n selector: 'si-form-item',\n imports: [SiTranslatePipe, NgTemplateOutlet],\n templateUrl: './si-form-item.component.html',\n styleUrl: '../si-form.shared.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.required]': 'required()',\n '[style.--si-form-label-width]': 'labelWidthCssVar()',\n '[class.form-check]': 'fieldControl()?.isFormCheck',\n '[class.form-check-inline]': 'fieldset?.inline()',\n '[class.si-form-input]': '!fieldset'\n }\n})\nexport class SiFormItemComponent\n implements AfterContentInit, AfterContentChecked, OnChanges, OnInit, OnDestroy\n{\n /**\n * The label to be displayed in the form item.\n * It will be translated if a translation key is available.\n */\n readonly label = input.required<TranslatableString>();\n\n /**\n * A custom width value to be applied to the label.\n * A value of 0 is allowed as well to visually hide away the label area.\n *\n * Numbers will be converted to pixels.\n * Using numbers is discouraged and might be dropped.\n *\n * @example labelWidth=\"100px\"\n */\n readonly labelWidth = input<string | number>();\n\n /**\n * Disables the automatic error printing. Error printing will be enabled by default in v46.\n *\n * @defaultValue false\n */\n readonly disableErrorPrinting = input(false, { transform: booleanAttribute });\n\n readonly formErrorMapper = input<SiFormValidationErrorMapper>();\n\n /**\n * Defines that this form item is required for the overall form to be valid.\n *\n * @defaultValue false\n */\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly requiredInput = input(false, { transform: booleanAttribute, alias: 'required' });\n\n protected readonly fieldControlQuery = contentChild(SI_FORM_ITEM_CONTROL, { descendants: true });\n /** @internal */\n readonly ngControl = contentChild(NgControl, { descendants: true });\n protected readonly controlElementRef = contentChild<NgControl, ElementRef<HTMLElement>>(\n NgControl,\n {\n read: ElementRef,\n descendants: true\n }\n );\n protected readonly requiredValidator = contentChild(RequiredValidator, { descendants: true });\n\n /** @internal */\n readonly errors = signal<SiFormError[]>([]);\n\n protected fieldset = inject(SiFormFieldsetComponent, { optional: true });\n protected container = inject(SiFormContainerComponent, { optional: true });\n\n protected get formItemId(): string | null {\n const fieldControl = this.fieldControl();\n return isSignal(fieldControl?.id) ? (fieldControl.id() ?? null) : (fieldControl?.id ?? null);\n }\n\n protected get formItemLabelledBy(): string | null {\n const fieldControl = this.fieldControl();\n return isSignal(fieldControl?.labelledby)\n ? (fieldControl.labelledby() ?? null)\n : (fieldControl?.labelledby ?? null);\n }\n\n protected get formItemErrormessageId(): string | null {\n const fieldControl = this.fieldControl();\n return isSignal(fieldControl?.errormessageId)\n ? (fieldControl?.errormessageId() ?? null)\n : (fieldControl?.errormessageId ?? null);\n }\n\n protected readonly fieldControl = computed(\n () => this.fieldControlQuery() ?? this.fieldControlNative()\n );\n\n private validationErrorService = inject(SiFormValidationErrorService);\n private requiredTestControl = new FormControl('');\n private validator?: ValidatorFn | null;\n private previousErrors?: ValidationErrors | null;\n private readonly hasRequiredValidator = signal(false);\n private readonly fieldControlNative = signal<SiFormItemControl | undefined>(undefined);\n\n protected readonly labelWidthCssVar = computed(() => {\n const labelWidth = this.labelWidth();\n if (typeof labelWidth === 'number') {\n return `${labelWidth}px`;\n }\n\n return labelWidth;\n });\n\n protected readonly printErrors = computed(() => {\n return !this.disableErrorPrinting() && !(this.container?.disableErrorPrinting() ?? false);\n });\n\n /** @internal */\n readonly required = computed(() => this.requiredInput() || this.hasRequiredValidator());\n\n ngOnChanges(changes: SimpleChanges<this>): void {\n if (changes.formErrorMapper) {\n this.updateValidationMessages();\n }\n }\n\n ngOnInit(): void {\n this.fieldset?.registerFormItem(this);\n }\n\n ngAfterContentInit(): void {\n if (!this.fieldControlQuery()) {\n this.fieldControlNative.set(\n SiFormFieldNativeControl.createForElementRef(this.controlElementRef())\n );\n }\n }\n\n ngAfterContentChecked(): void {\n this.updateRequiredState();\n this.updateValidationMessages();\n }\n\n ngOnDestroy(): void {\n this.fieldset?.unregisterFormItem(this);\n }\n\n private updateRequiredState(): void {\n const requiredValidator = this.requiredValidator();\n if (requiredValidator) {\n // the easy case: required validator is applied in the template: <input required>\n this.hasRequiredValidator.set(booleanAttribute(requiredValidator.required));\n } else {\n // No required validator is applied via template, it could still be applied in the code.\n // If validators are applied via code, the validator object will change of controls.\n // So we only need to check for required if the validator object was changed.\n const validator = this.ngControl()?.control?.validator;\n\n if (this.validator !== validator) {\n this.validator = validator;\n this.requiredTestControl.setValidators(this.validator ?? null);\n this.requiredTestControl.updateValueAndValidity();\n this.hasRequiredValidator.set(this.requiredTestControl.errors?.required ?? false);\n }\n }\n }\n\n private updateValidationMessages(): void {\n const control = this.ngControl();\n const currentErrors = control?.errors;\n if (this.previousErrors !== currentErrors) {\n if (control && this.printErrors()) {\n this.errors.set(\n this.validationErrorService\n .resolveErrors(\n control.name,\n control.errors,\n this.formErrorMapper(),\n this.container?.formErrorMapper()\n )\n .filter(error => error.message)\n );\n this.previousErrors = currentErrors;\n } else if (this.errors().length) {\n this.errors.set([]);\n }\n }\n }\n}\n","<!--Block the space if no form-field is provided. Otherwise it looks weird in the formly field inline representation.-->\n@if (fieldControl()?.isFormCheck && !fieldset) {\n <div class=\"form-label\"></div>\n}\n@if (fieldControl()?.isFormCheck) {\n <div class=\"form-item-content\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n <ng-container [ngTemplateOutlet]=\"labelTemplate\" />\n <ng-container [ngTemplateOutlet]=\"feedbackTemplate\" />\n </div>\n} @else {\n <ng-container [ngTemplateOutlet]=\"labelTemplate\" />\n <div class=\"form-item-content\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n <ng-container [ngTemplateOutlet]=\"feedbackTemplate\" />\n </div>\n}\n\n<ng-template #labelTemplate>\n @if (label()) {\n <div\n class=\"d-flex gap-2\"\n [class.form-label]=\"!fieldControl()?.isFormCheck\"\n [class.form-check-label]=\"fieldControl()?.isFormCheck\"\n >\n @let labeledBy = formItemLabelledBy;\n @let required = this.required() && !this.fieldset?.hasOnlyRadios();\n @if (labeledBy) {\n <span [id]=\"labeledBy\" [class.required]=\"required\">{{ label()! | translate }}</span>\n } @else {\n <label [for]=\"formItemId\" [class.required]=\"required\">{{ label()! | translate }}</label>\n }\n <ng-content select=\"[si-help-button]\" />\n </div>\n }\n</ng-template>\n<ng-template #feedbackTemplate>\n @if (printErrors() && !fieldset?.hasOnlyRadios()) {\n <div class=\"invalid-feedback\" [attr.id]=\"formItemErrormessageId\">\n @for (error of errors(); track error.key) {\n <div>\n {{ error.message | translate: error.params }}\n </div>\n }\n </div>\n }\n <ng-content select=\".warning-feedback, .info-feedback, .invalid-feedback\" />\n</ng-template>\n<ng-template #content>\n <ng-content />\n</ng-template>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, inject, InjectionToken, Signal } from '@angular/core';\nimport { SiTranslatePipe } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormError } from '../si-form-item/si-form-item.component';\n\nexport const SI_FORM_VALIDATION_TOOLTIP_DATA = new InjectionToken<Signal<SiFormError[]>>(\n 'SiFormValidationTooltipData'\n);\n\n@Component({\n selector: 'si-form-validation-tooltip',\n imports: [SiTranslatePipe],\n template: `\n @for (error of errors(); track error.key) {\n <div>{{ error.message | translate: error.params }}</div>\n }\n `,\n host: {\n 'class': 'd-flex flex-column gap-2 text-start'\n }\n})\nexport class SiFormValidationTooltipComponent {\n protected errors = inject(SI_FORM_VALIDATION_TOOLTIP_DATA);\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport {\n Directive,\n DoCheck,\n ElementRef,\n HostListener,\n inject,\n Injector,\n input,\n OnDestroy,\n signal\n} from '@angular/core';\nimport { NgControl, ValidationErrors } from '@angular/forms';\nimport { SiTooltipService, TooltipRef } from '@siemens/element-ng/tooltip';\n\nimport { SiFormContainerComponent } from '../si-form-container/si-form-container.component';\nimport { SiFormError } from '../si-form-item/si-form-item.component';\nimport { SiFormValidationErrorMapper } from '../si-form-validation-error.model';\nimport { SiFormValidationErrorService } from '../si-form-validation-error.service';\nimport {\n SI_FORM_VALIDATION_TOOLTIP_DATA,\n SiFormValidationTooltipComponent\n} from './si-form-validation-tooltip.component';\n\n/**\n * Directive to show a tooltip with validation errors of a form control.\n *\n * In general, `si-form-item` should be used.\n * This directive is intended only for cases where the tooltip cannot be shown inline.\n * This is typically the case for tables and lists where the validation message would break the layout.\n *\n * @example\n * ```html\n * <input siFormValidationTooltip [formControl]=\"control\" />\n * ```\n */\n@Directive({\n selector: '[siFormValidationTooltip]',\n providers: [SiTooltipService],\n host: {\n '[attr.aria-describedby]': 'describedBy'\n }\n})\nexport class SiFormValidationTooltipDirective implements OnDestroy, DoCheck {\n private static idCounter = 0;\n\n private tooltipService = inject(SiTooltipService);\n private formValidationService = inject(SiFormValidationErrorService);\n private formContainer = inject(SiFormContainerComponent, { optional: true });\n readonly formErrorMapper = input<SiFormValidationErrorMapper>();\n private ngControl = inject(NgControl);\n private elementRef = inject(ElementRef);\n\n private tooltipRef?: TooltipRef;\n private readonly errors = signal<SiFormError[]>([]);\n private currentErrors: ValidationErrors | null = null;\n private touched: boolean | null = null;\n\n // Use a counter to track how many events are matched that keep the tooltip active.\n // Active means we are listening to error changes.\n private activationCount = 0;\n protected readonly describedBy = `__si-form-validation-tooltip-${SiFormValidationTooltipDirective.idCounter++}`;\n\n ngDoCheck(): void {\n if (\n this.activationCount &&\n (this.currentErrors !== this.ngControl.errors || this.touched !== this.ngControl.touched)\n ) {\n this.currentErrors = this.ngControl.errors;\n this.touched = this.ngControl.touched;\n this.updateErrors();\n }\n }\n\n ngOnDestroy(): void {\n this.destroyTooltip();\n }\n\n @HostListener('focus')\n @HostListener('mouseenter')\n protected increaseActivation(): void {\n this.activationCount++;\n if (this.activationCount === 1) {\n this.updateErrors();\n }\n }\n\n private updateErrors(): void {\n const errors = this.formValidationService\n .resolveErrors(\n this.ngControl.name,\n this.currentErrors,\n this.formErrorMapper(),\n this.formContainer?.formErrorMapper()\n )\n .filter(error => !!error.message);\n\n if (!this.tooltipRef && errors.length && this.ngControl.touched) {\n this.tooltipRef = this.tooltipService.createTooltip({\n placement: 'auto',\n element: this.elementRef,\n describedBy: this.describedBy,\n injector: Injector.create({\n providers: [{ provide: SI_FORM_VALIDATION_TOOLTIP_DATA, useValue: this.errors }]\n }),\n tooltip: () => SiFormValidationTooltipComponent,\n tooltipContext: () => undefined\n });\n this.tooltipRef.show();\n } else if (this.tooltipRef && (!errors.length || this.ngControl.pristine)) {\n this.destroyTooltip();\n }\n\n this.errors.set(errors);\n }\n\n @HostListener('blur')\n @HostListener('mouseleave')\n protected decreaseActivation(): void {\n this.activationCount--;\n if (!this.activationCount) {\n this.destroyTooltip();\n }\n }\n\n private destroyTooltip(): void {\n this.tooltipRef?.destroy();\n this.tooltipRef = undefined;\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Provider } from '@angular/core';\nimport { TranslatableString } from '@siemens/element-translate-ng/translate';\n\nimport { SiFormValidationErrorMapper } from './si-form-validation-error.model';\nimport { buildDefaults, SiFormValidationErrorService } from './si-form-validation-error.service';\n\n/**\n * The error mapper is used to resolve an angular validation error to a {@link TranslatableString}.\n * It will be merged with already existing error mappers.\n */\nexport const provideFormValidationErrorMapper = (\n mapper: SiFormValidationErrorMapper\n): Provider => ({\n provide: SiFormValidationErrorService,\n // defaults must always be provided in case this is called in app.config\n useFactory: () => new SiFormValidationErrorService({ ...buildDefaults(), ...mapper })\n});\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ModuleWithProviders, NgModule } from '@angular/core';\n\nimport { SiFormFieldsetComponent } from './form-fieldset/si-form-fieldset.component';\nimport { SiFormContainerComponent } from './si-form-container/si-form-container.component';\nimport { SiFormItemComponent } from './si-form-item/si-form-item.component';\nimport { SiFormValidationErrorMapper } from './si-form-validation-error.model';\nimport { provideFormValidationErrorMapper } from './si-form-validation-error.provider';\n\n@NgModule({\n imports: [SiFormContainerComponent, SiFormFieldsetComponent, SiFormItemComponent],\n exports: [SiFormContainerComponent, SiFormFieldsetComponent, SiFormItemComponent]\n})\nexport class SiFormModule {\n /**\n * Overrides the default configuration of the form module.\n *\n * @param errorMapper - The error mappers is used to resolve angular validation errors.\n * It will be merged with already existing error mappers.\n */\n // We have the errorMapper wrapped in an object, to allow the addition of more configuration fields without breaking the API.\n static withConfiguration({\n validationErrorMapper\n }: {\n validationErrorMapper: SiFormValidationErrorMapper;\n }): ModuleWithProviders<SiFormModule> {\n return {\n ngModule: SiFormModule,\n providers: [provideFormValidationErrorMapper(validationErrorMapper)]\n };\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-form-container/si-form-container.component';\nexport * from './si-form-item/si-form-item.component';\nexport * from './si-form-validation-tooltip/si-form-validation-tooltip.directive';\nexport * from './form-fieldset/si-form-fieldset.component';\nexport * from './si-form.module';\nexport * from './si-form-item.control';\nexport * from './si-form-validation-error.provider';\nexport * from './si-form-validation-error.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;MA0BU,wBAAwB,CAAA;AACnC;;;AAGG;IACM,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,M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,GAAG,aAAa,EAAE,EAAE,GAAG,MAAM,EAAE;AACrF,CAAA;;ACpBD;;;AAGG;MAaU,YAAY,CAAA;AACvB;;;;;AAKG;;AAEH,IAAA,OAAO,iBAAiB,CAAC,EACvB,qBAAqB,EAGtB,EAAA;QACC,OAAO;AACL,YAAA,QAAQ,EAAE,YAAY;AACtB,YAAA,SAAS,EAAE,CAAC,gCAAgC,CAAC,qBAAqB,CAAC;SACpE;IACH;uGAjBW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAZ,YAAY,EAAA,OAAA,EAAA,CAHb,wBAAwB,EAAE,uBAAuB,EAAE,mBAAmB,CAAA,EAAA,OAAA,EAAA,CACtE,wBAAwB,EAAE,uBAAuB,EAAE,mBAAmB,CAAA,EAAA,CAAA;wGAErE,YAAY,EAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,wBAAwB,EAAE,uBAAuB,EAAE,mBAAmB,CAAC;AACjF,oBAAA,OAAO,EAAE,CAAC,wBAAwB,EAAE,uBAAuB,EAAE,mBAAmB;AACjF,iBAAA;;;ACfD;;;AAGG;;ACHH;;AAEG;;;;"}
|
|
@@ -346,13 +346,13 @@ class SiHeaderDropdownItemComponent {
|
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiHeaderDropdownItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
349
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: SiHeaderDropdownItemComponent, isStandalone: true, selector: "si-header-dropdown-item, a[si-header-dropdown-item], button[si-header-dropdown-item]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, iconBadge: { classPropertyName: "iconBadge", publicName: "iconBadge", isSignal: true, isRequired: false, transformFunction: null }, badgeColor: { classPropertyName: "badgeColor", publicName: "badgeColor", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "click()" }, classAttribute: "dropdown-item focus-inside" }, ngImport: i0, template: "@if (icon()) {\n <si-icon class=\"icon\" [icon]=\"icon()!\" />\n}\n@if (iconBadge()) {\n <div class=\"badge-text\">{{ iconBadge() }}</div>\n}\n<span class=\"item-title text-truncate\">\n <ng-content />\n</span>\n<div class=\"item-end ps-2 d-flex me-n3 ms-auto gap-1\">\n @if (badge()) {\n <span class=\"mx-0 me-1 ms-2 badge\" [class]=\"`bg-${badgeColor() || 'default'}`\">{{\n badge()\n }}</span>\n }\n @if (checked() === 'check') {\n <si-icon [icon]=\"icons.elementOk\" />\n }\n @if (checked() === 'radio') {\n <si-icon class=\"icon-sm me-2\" [icon]=\"icons.elementRecordFilled\" />\n }\n @if (ownTrigger) {\n <si-icon class=\"dropdown-caret m-0 ps-0\" [icon]=\"icons.elementDown2\" />\n }\n</div>\n", styles: [".item-end:empty{display:none!important}:host-context(.dropdown-menu .dropdown-menu){padding-inline-start:28px}.dropdown-caret{transform-origin:initial}\n"], dependencies: [{ kind: "component", type: SiIconComponent, selector: "si-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
349
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: SiHeaderDropdownItemComponent, isStandalone: true, selector: "si-header-dropdown-item, a[si-header-dropdown-item], button[si-header-dropdown-item]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, iconBadge: { classPropertyName: "iconBadge", publicName: "iconBadge", isSignal: true, isRequired: false, transformFunction: null }, badgeColor: { classPropertyName: "badgeColor", publicName: "badgeColor", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "click()" }, classAttribute: "dropdown-item focus-inside" }, ngImport: i0, template: "@if (icon()) {\n <si-icon class=\"icon\" [icon]=\"icon()!\" />\n}\n@if (iconBadge()) {\n <div class=\"badge-text\">{{ iconBadge() }}</div>\n}\n<span class=\"item-title text-truncate\">\n <ng-content />\n</span>\n<div class=\"item-end ps-2 d-flex me-n3 ms-auto gap-1\">\n @if (badge()) {\n <span class=\"mx-0 me-1 ms-2 badge\" [class]=\"`bg-${badgeColor() || 'default'}`\">{{\n badge()\n }}</span>\n }\n @if (checked() === 'check') {\n <si-icon class=\"icon\" [icon]=\"icons.elementOk\" />\n }\n @if (checked() === 'radio') {\n <si-icon class=\"icon-sm me-2\" [icon]=\"icons.elementRecordFilled\" />\n }\n @if (ownTrigger) {\n <si-icon class=\"dropdown-caret m-0 ps-0\" [icon]=\"icons.elementDown2\" />\n }\n</div>\n", styles: [".item-end:empty{display:none!important}:host-context(.dropdown-menu .dropdown-menu){padding-inline-start:28px}.dropdown-caret{transform-origin:initial}\n"], dependencies: [{ kind: "component", type: SiIconComponent, selector: "si-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
350
350
|
}
|
|
351
351
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiHeaderDropdownItemComponent, decorators: [{
|
|
352
352
|
type: Component,
|
|
353
353
|
args: [{ selector: 'si-header-dropdown-item, a[si-header-dropdown-item], button[si-header-dropdown-item]', imports: [SiIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
354
354
|
class: 'dropdown-item focus-inside'
|
|
355
|
-
}, template: "@if (icon()) {\n <si-icon class=\"icon\" [icon]=\"icon()!\" />\n}\n@if (iconBadge()) {\n <div class=\"badge-text\">{{ iconBadge() }}</div>\n}\n<span class=\"item-title text-truncate\">\n <ng-content />\n</span>\n<div class=\"item-end ps-2 d-flex me-n3 ms-auto gap-1\">\n @if (badge()) {\n <span class=\"mx-0 me-1 ms-2 badge\" [class]=\"`bg-${badgeColor() || 'default'}`\">{{\n badge()\n }}</span>\n }\n @if (checked() === 'check') {\n <si-icon [icon]=\"icons.elementOk\" />\n }\n @if (checked() === 'radio') {\n <si-icon class=\"icon-sm me-2\" [icon]=\"icons.elementRecordFilled\" />\n }\n @if (ownTrigger) {\n <si-icon class=\"dropdown-caret m-0 ps-0\" [icon]=\"icons.elementDown2\" />\n }\n</div>\n", styles: [".item-end:empty{display:none!important}:host-context(.dropdown-menu .dropdown-menu){padding-inline-start:28px}.dropdown-caret{transform-origin:initial}\n"] }]
|
|
355
|
+
}, template: "@if (icon()) {\n <si-icon class=\"icon\" [icon]=\"icon()!\" />\n}\n@if (iconBadge()) {\n <div class=\"badge-text\">{{ iconBadge() }}</div>\n}\n<span class=\"item-title text-truncate\">\n <ng-content />\n</span>\n<div class=\"item-end ps-2 d-flex me-n3 ms-auto gap-1\">\n @if (badge()) {\n <span class=\"mx-0 me-1 ms-2 badge\" [class]=\"`bg-${badgeColor() || 'default'}`\">{{\n badge()\n }}</span>\n }\n @if (checked() === 'check') {\n <si-icon class=\"icon\" [icon]=\"icons.elementOk\" />\n }\n @if (checked() === 'radio') {\n <si-icon class=\"icon-sm me-2\" [icon]=\"icons.elementRecordFilled\" />\n }\n @if (ownTrigger) {\n <si-icon class=\"dropdown-caret m-0 ps-0\" [icon]=\"icons.elementDown2\" />\n }\n</div>\n", styles: [".item-end:empty{display:none!important}:host-context(.dropdown-menu .dropdown-menu){padding-inline-start:28px}.dropdown-caret{transform-origin:initial}\n"] }]
|
|
356
356
|
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], iconBadge: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconBadge", required: false }] }], badgeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeColor", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], click: [{
|
|
357
357
|
type: HostListener,
|
|
358
358
|
args: ['click']
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"siemens-element-ng-header-dropdown.mjs","sources":["../../../../projects/element-ng/header-dropdown/si-header.model.ts","../../../../projects/element-ng/header-dropdown/si-header-dropdown-trigger.directive.ts","../../../../projects/element-ng/header-dropdown/si-header-dropdown.component.ts","../../../../projects/element-ng/header-dropdown/si-header-dropdown.component.html","../../../../projects/element-ng/header-dropdown/si-header-dropdown-item.component.ts","../../../../projects/element-ng/header-dropdown/si-header-dropdown-item.component.html","../../../../projects/element-ng/header-dropdown/si-header-dropdown-items-factory.component.ts","../../../../projects/element-ng/header-dropdown/si-header-dropdown-items-factory.component.html","../../../../projects/element-ng/header-dropdown/index.ts","../../../../projects/element-ng/header-dropdown/siemens-element-ng-header-dropdown.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ConnectedPosition } from '@angular/cdk/overlay';\nimport { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { SiHeaderDropdownTriggerDirective } from './si-header-dropdown-trigger.directive';\n\n/** @internal */\nexport interface HeaderWithDropdowns {\n /** Called whenever an item is triggered that is not opening another dropdown. */\n onDropdownItemTriggered?(): void;\n /** Whether the dropdown should be opened inline. */\n inlineDropdown?: Observable<boolean>;\n /** The position of the dropdown if opened in an overlay. */\n overlayPosition?: ConnectedPosition[];\n /** Called whenever a dropdown is opened **/\n dropdownOpened?(trigger: SiHeaderDropdownTriggerDirective): void;\n /** Called whenever a dropdown is close **/\n dropdownClosed?(trigger: SiHeaderDropdownTriggerDirective): void;\n}\n\n/** @internal */\nexport const SI_HEADER_WITH_DROPDOWNS = new InjectionToken<HeaderWithDropdowns>(\n 'si-header.with-dropdowns'\n);\n\n/**\n * Can be used to pass context-specific options to a header-dropdown\n * that should / or cannot be provided by a consuming application.\n * @internal\n */\nexport interface HeaderDropdownOptions {\n /**\n * If the inline navbar is already wrapped in a focus trap,\n * set this property to prevent the header-dropdown from creating a focus trap.\n */\n disableRootFocusTrapForInlineMode: boolean;\n}\n\n/** @internal */\nexport const SI_HEADER_DROPDOWN_OPTIONS = new InjectionToken<HeaderDropdownOptions>(\n 'si-header-dropdown.options'\n);\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n Component,\n ComponentRef,\n Directive,\n ElementRef,\n EmbeddedViewRef,\n HostBinding,\n HostListener,\n inject,\n Injector,\n input,\n OnChanges,\n OnDestroy,\n OnInit,\n output,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport { of, Subject } from 'rxjs';\nimport { filter, skip, take, takeUntil } from 'rxjs/operators';\n\nimport { SI_HEADER_WITH_DROPDOWNS } from './si-header.model';\n\n@Component({ template: '', host: { '[attr.aria-owns]': 'ariaOwns()' } })\nclass SiHeaderAnchorComponent {\n readonly ariaOwns = input<string>();\n}\n\n/**\n * Trigger to open dropdowns in a navbar.\n * A dropdown will always be attached to the view, even if not visible.\n *\n * If a dropdown is opened in desktop mode, it will be reattached to an overlay while being opened.\n */\n@Directive({\n selector: '[siHeaderDropdownTriggerFor]',\n host: {\n class: 'dropdown-toggle'\n },\n exportAs: 'siHeaderDropdownTrigger'\n})\nexport class SiHeaderDropdownTriggerDirective implements OnChanges, OnInit, OnDestroy {\n private static idCounter = 0;\n\n /** Template that be rendered inside the dropdown. */\n readonly dropdown = input.required<TemplateRef<unknown>>({ alias: 'siHeaderDropdownTriggerFor' });\n /** Data that should be passed as template context to the dropdown. */\n readonly dropdownData = input<unknown>();\n /** Emits whenever a dropdown is opened or closed. */\n readonly openChange = output<boolean>();\n\n private readonly dropdownClose = new Subject<void>();\n\n /** Child triggers will set themselves here if they are open. */\n private openSubmenu?: SiHeaderDropdownTriggerDirective;\n\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly overlay = inject(Overlay);\n private readonly parent = inject(SiHeaderDropdownTriggerDirective, {\n optional: true,\n skipSelf: true\n });\n /** @internal */\n readonly navbar = inject(SI_HEADER_WITH_DROPDOWNS, { optional: true });\n\n // we need to create a new injector, so that the parent can be injected properly\n private readonly injector = Injector.create({ parent: inject(Injector), providers: [] });\n private viewRef?: EmbeddedViewRef<unknown>;\n private portal?: TemplatePortal<unknown>;\n private overlayRef?: OverlayRef;\n\n /** @internal */\n readonly level: number = this.parent ? this.parent.level + 1 : 1;\n\n // used to prevent immediate re-creation of the overlay if this trigger was clicked while overlay is open\n private destroying = false;\n\n /** @internal */\n @HostBinding('id') readonly id =\n `si-navbar-dropdown-trigger-${SiHeaderDropdownTriggerDirective.idCounter++}`;\n\n // eslint-disable-next-line @typescript-eslint/naming-convention\n @HostBinding('class.show') @HostBinding('attr.aria-expanded') protected _isOpen = false;\n\n /** @internal */\n @HostBinding('attr.aria-controls') readonly ariaControls =\n `si-navbar-dropdown-${SiHeaderDropdownTriggerDirective.idCounter}`;\n\n private headerAnchorComponentRef?: ComponentRef<SiHeaderAnchorComponent>;\n\n /** Whether the dropdown is open. */\n get isOpen(): boolean {\n return this._isOpen;\n }\n\n /** @internal */\n get isOverlay(): boolean {\n return !!this.overlayRef;\n }\n\n ngOnChanges(): void {\n if (this.portal) {\n this.portal.templateRef = this.dropdown();\n this.portal.context = this.dropdownData();\n }\n }\n\n ngOnInit(): void {\n // Always attach the dropdown, so that it can be used with routerLinkActive\n this.attachDropdownInline();\n }\n\n ngOnDestroy(): void {\n this.close();\n this.dropdownClose.complete();\n }\n\n /** Opens the dropdown. */\n open(): void {\n if (this.destroying || this._isOpen) {\n return;\n }\n\n (this.navbar?.inlineDropdown ?? of(false)).pipe(take(1)).subscribe(inline => {\n this._isOpen = true;\n if (!inline) {\n this.attachDropdownOverlay();\n }\n this.navbar?.inlineDropdown\n ?.pipe(skip(1), takeUntil(this.dropdownClose))\n .subscribe(() => this.close());\n });\n\n if (this.parent) {\n this.parent.openSubmenu = this;\n }\n\n if (this.navbar?.dropdownOpened) {\n this.navbar?.dropdownOpened(this);\n }\n this.openChange.emit(true);\n }\n\n /** Closes the dropdown. */\n close(options?: { all?: boolean }): void {\n if (!this._isOpen) {\n return;\n }\n\n if (this.openSubmenu) {\n this.openSubmenu.close();\n }\n\n this.dropdownClose.next();\n this._isOpen = false;\n if (this.overlayRef) {\n this.destroying = true;\n this.overlayRef.detach();\n this.overlayRef.dispose();\n this.viewRef?.destroy();\n this.portal = undefined;\n this.overlayRef = undefined;\n this.headerAnchorComponentRef?.destroy();\n // do not use queueMicrotask, it executed to early\n setTimeout(() => (this.destroying = false));\n this.attachDropdownInline();\n } else {\n this.viewRef?.markForCheck();\n }\n\n if (this.parent) {\n this.parent.openSubmenu = undefined;\n }\n\n if (options?.all && this.parent) {\n this.parent.close(options);\n } else {\n if (this.navbar?.dropdownClosed) {\n this.navbar?.dropdownClosed(this);\n }\n this.openChange.emit(false);\n }\n }\n\n @HostListener('click')\n protected click(): void {\n if (this._isOpen) {\n this.close();\n } else {\n this.open();\n }\n }\n\n private attachDropdownInline(): void {\n this.viewRef = this.viewContainerRef.createEmbeddedView(this.dropdown(), this.dropdownData(), {\n injector: this.injector\n });\n this.viewRef.markForCheck();\n }\n\n private attachDropdownOverlay(): void {\n this.viewRef?.destroy();\n this.overlayRef = this.overlay.create({\n positionStrategy: this.overlay\n .position()\n .flexibleConnectedTo(this.elementRef)\n .withPositions(\n this.navbar?.overlayPosition ??\n (this.level > 1\n ? [\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: 2\n }\n ]\n : [\n { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top' },\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -4\n }\n ])\n )\n });\n this.portal = new TemplatePortal(\n this.dropdown(),\n this.viewContainerRef,\n this.dropdownData(),\n this.injector\n );\n this.viewRef = this.overlayRef.attach(this.portal);\n this.headerAnchorComponentRef = this.viewContainerRef.createComponent(SiHeaderAnchorComponent);\n this.headerAnchorComponentRef.setInput('ariaOwns', this.ariaControls);\n\n this.overlayRef\n .outsidePointerEvents()\n .pipe(\n filter(event => event.type === 'click'),\n filter(() => !this.openSubmenu),\n takeUntil(this.dropdownClose),\n take(1)\n )\n .subscribe(() => this.close());\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { A11yModule, CdkTrapFocus } from '@angular/cdk/a11y';\nimport {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n HostListener,\n inject,\n viewChild,\n DOCUMENT\n} from '@angular/core';\n\nimport { SiHeaderDropdownTriggerDirective } from './si-header-dropdown-trigger.directive';\nimport { SI_HEADER_DROPDOWN_OPTIONS } from './si-header.model';\n\n/**\n * Wrapper component for {@link SiHeaderDropdownItemComponent}.\n * Must only be opened using an {@link SiHeaderDropdownTriggerDirective}.\n */\n@Component({\n selector: 'si-header-dropdown',\n imports: [A11yModule],\n templateUrl: './si-header-dropdown.component.html',\n styles: ':host.sub-menu {min-inline-size: 200px}',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'dropdown-menu position-static',\n role: 'group',\n '[id]': 'trigger.ariaControls',\n '[attr.aria-labelledby]': 'trigger.id'\n }\n})\nexport class SiHeaderDropdownComponent {\n /** @internal */\n protected trigger = inject(SiHeaderDropdownTriggerDirective);\n\n private readonly focusTrap = viewChild.required(CdkTrapFocus);\n private previousElement: Element | null = null;\n private readonly document = inject(DOCUMENT);\n private readonly options = inject(SI_HEADER_DROPDOWN_OPTIONS, { optional: true });\n\n constructor() {\n // The autoFocus feature of the focus trap is not enough, as this component is not newly created when opened in mobile (inline).\n // But we still need autofocus in desktop mode, as the close event is never executed (component is destroyed before).\n this.trigger.openChange.subscribe(change => {\n if (!this.trigger.isOverlay && this.trapFocus && change) {\n this.previousElement = this.document.activeElement;\n this.focusTrap().focusTrap.focusFirstTabbableElementWhenReady();\n } else {\n if (\n this.previousElement &&\n 'focus' in this.previousElement &&\n typeof this.previousElement.focus === 'function'\n ) {\n this.previousElement.focus();\n }\n this.previousElement = null;\n }\n });\n }\n\n /** @internal */\n @HostBinding('class.show')\n protected get show(): boolean {\n return this.trigger.isOpen;\n }\n\n /** @internal */\n @HostBinding('class.header-dropdown-overlay') protected get overlay(): boolean {\n return this.trigger.isOverlay;\n }\n\n /** @internal */\n @HostBinding('class.sub-menu') protected get submenu(): boolean {\n return this.trigger.level > 1;\n }\n\n /** @internal */\n protected get trapFocus(): boolean {\n return (\n this.trigger.isOverlay ||\n (!this.options?.disableRootFocusTrapForInlineMode && this.trigger.level === 1)\n );\n }\n\n /** @internal */\n @HostListener('keydown.escape')\n protected escape(): void {\n this.trigger?.close();\n }\n}\n","<div [cdkTrapFocus]=\"trapFocus\" [cdkTrapFocusAutoCapture]=\"this.trigger.isOverlay\">\n <ng-content />\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ChangeDetectionStrategy, Component, HostListener, inject, input } from '@angular/core';\nimport { elementDown2, elementOk, elementRecordFilled } from '@siemens/element-icons';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\n\nimport { SiHeaderDropdownTriggerDirective } from './si-header-dropdown-trigger.directive';\nimport { SI_HEADER_WITH_DROPDOWNS } from './si-header.model';\n\n/**\n * Creates a dropdown-item. Must be used within an {@link SiHeaderDropdownComponent}.\n */\n@Component({\n selector: 'si-header-dropdown-item, a[si-header-dropdown-item], button[si-header-dropdown-item]',\n imports: [SiIconComponent],\n templateUrl: './si-header-dropdown-item.component.html',\n styleUrl: './si-header-dropdown-item.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'dropdown-item focus-inside'\n }\n})\nexport class SiHeaderDropdownItemComponent {\n protected readonly icons = addIcons({ elementDown2, elementOk, elementRecordFilled });\n\n /** Optional icon that will be rendered before the label. */\n readonly icon = input<string>();\n /** Badge that is rendered after the label. */\n readonly badge = input<string | number>();\n /** Badge (always red) that is attached to the icon. */\n readonly iconBadge = input<string | number>();\n /** Color of the badge (not iconBadge). */\n readonly badgeColor = input<string>();\n /** Whether the icon is checked with a radio or check mark. */\n readonly checked = input<'radio' | 'check' | ''>();\n\n protected readonly ownTrigger = inject(SiHeaderDropdownTriggerDirective, {\n self: true,\n optional: true\n });\n protected readonly parentTrigger = inject(SiHeaderDropdownTriggerDirective, { skipSelf: true });\n protected readonly navbar = inject(SI_HEADER_WITH_DROPDOWNS, { optional: true });\n\n @HostListener('click')\n protected click(): void {\n if (!this.ownTrigger) {\n this.parentTrigger.close({ all: true });\n if (this.navbar?.onDropdownItemTriggered) {\n this.navbar?.onDropdownItemTriggered();\n }\n }\n }\n}\n","@if (icon()) {\n <si-icon class=\"icon\" [icon]=\"icon()!\" />\n}\n@if (iconBadge()) {\n <div class=\"badge-text\">{{ iconBadge() }}</div>\n}\n<span class=\"item-title text-truncate\">\n <ng-content />\n</span>\n<div class=\"item-end ps-2 d-flex me-n3 ms-auto gap-1\">\n @if (badge()) {\n <span class=\"mx-0 me-1 ms-2 badge\" [class]=\"`bg-${badgeColor() || 'default'}`\">{{\n badge()\n }}</span>\n }\n @if (checked() === 'check') {\n <si-icon [icon]=\"icons.elementOk\" />\n }\n @if (checked() === 'radio') {\n <si-icon class=\"icon-sm me-2\" [icon]=\"icons.elementRecordFilled\" />\n }\n @if (ownTrigger) {\n <si-icon class=\"dropdown-caret m-0 ps-0\" [icon]=\"icons.elementDown2\" />\n }\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, input, output } from '@angular/core';\nimport { MenuItem } from '@siemens/element-ng/common';\nimport { SiLinkDirective } from '@siemens/element-ng/link';\nimport { SiTranslatePipe } from '@siemens/element-translate-ng/translate';\n\nimport { SiHeaderDropdownItemComponent } from './si-header-dropdown-item.component';\nimport { SiHeaderDropdownTriggerDirective } from './si-header-dropdown-trigger.directive';\nimport { SiHeaderDropdownComponent } from './si-header-dropdown.component';\n\n/**\n * A factory to render multiple {@link MenuItem}.\n * Requires a wrapping {@link SiHeaderDropdownComponent}.\n *\n * @internal\n */\n@Component({\n selector: 'si-header-dropdown-items-factory',\n imports: [\n SiHeaderDropdownComponent,\n SiHeaderDropdownItemComponent,\n SiTranslatePipe,\n SiLinkDirective,\n SiHeaderDropdownTriggerDirective\n ],\n templateUrl: './si-header-dropdown-items-factory.component.html'\n})\nexport class SiHeaderDropdownItemsFactoryComponent {\n readonly items = input.required<MenuItem[]>();\n readonly activeChange = output<boolean>();\n}\n","@for (item of items(); track item) {\n @if (item.isHeading) {\n <div class=\"dropdown-item dropdown-header dropdown-item-static\">\n {{ item.title | translate }}\n </div>\n } @else {\n @if (item.title !== '-') {\n @if (item.items) {\n <button\n type=\"button\"\n si-header-dropdown-item\n [icon]=\"item.icon\"\n [badge]=\"item.badgeStyle !== 'dot' ? item.badge : undefined\"\n [badgeColor]=\"item.badgeColor\"\n [iconBadge]=\"item.badgeStyle === 'dot' ? item.badge : undefined\"\n [siHeaderDropdownTriggerFor]=\"dropdown\"\n >\n {{ item.title | translate }}\n </button>\n <ng-template #dropdown>\n <si-header-dropdown>\n <si-header-dropdown-items-factory [items]=\"item.items\" />\n </si-header-dropdown>\n </ng-template>\n } @else {\n <a\n si-header-dropdown-item\n activeClass=\"active\"\n [siLink]=\"item\"\n [icon]=\"item.icon\"\n [badge]=\"item.badgeStyle !== 'dot' ? item.badge : undefined\"\n [badgeColor]=\"item.badgeColor\"\n [iconBadge]=\"item.badgeStyle === 'dot' ? item.badge : undefined\"\n [checked]=\"item.selectionState\"\n (activeChange)=\"activeChange.emit($event)\"\n >\n {{ item.title | translate }}\n </a>\n }\n } @else {\n <div class=\"dropdown-divider\"></div>\n }\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-header-dropdown.component';\nexport * from './si-header-dropdown-trigger.directive';\nexport * from './si-header-dropdown-item.component';\nexport * from './si-header-dropdown-items-factory.component';\nexport * from './si-header.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAwBA;MACa,wBAAwB,GAAG,IAAI,cAAc,CACxD,0BAA0B;AAgB5B;MACa,0BAA0B,GAAG,IAAI,cAAc,CAC1D,4BAA4B;;AC5C9B;;;AAGG;AA0BH,MACM,uBAAuB,CAAA;IAClB,QAAQ,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;uGAD/B,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAvB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,uBAAuB,+QADN,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;2FACnB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAD5B,SAAS;mBAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,kBAAkB,EAAE,YAAY,EAAE,EAAE;;AAKvE;;;;;AAKG;MAQU,gCAAgC,CAAA;AACnC,IAAA,OAAO,SAAS,GAAG,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AA;;;AE3BH;;;AAGG;;ACHH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"siemens-element-ng-header-dropdown.mjs","sources":["../../../../projects/element-ng/header-dropdown/si-header.model.ts","../../../../projects/element-ng/header-dropdown/si-header-dropdown-trigger.directive.ts","../../../../projects/element-ng/header-dropdown/si-header-dropdown.component.ts","../../../../projects/element-ng/header-dropdown/si-header-dropdown.component.html","../../../../projects/element-ng/header-dropdown/si-header-dropdown-item.component.ts","../../../../projects/element-ng/header-dropdown/si-header-dropdown-item.component.html","../../../../projects/element-ng/header-dropdown/si-header-dropdown-items-factory.component.ts","../../../../projects/element-ng/header-dropdown/si-header-dropdown-items-factory.component.html","../../../../projects/element-ng/header-dropdown/index.ts","../../../../projects/element-ng/header-dropdown/siemens-element-ng-header-dropdown.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ConnectedPosition } from '@angular/cdk/overlay';\nimport { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { SiHeaderDropdownTriggerDirective } from './si-header-dropdown-trigger.directive';\n\n/** @internal */\nexport interface HeaderWithDropdowns {\n /** Called whenever an item is triggered that is not opening another dropdown. */\n onDropdownItemTriggered?(): void;\n /** Whether the dropdown should be opened inline. */\n inlineDropdown?: Observable<boolean>;\n /** The position of the dropdown if opened in an overlay. */\n overlayPosition?: ConnectedPosition[];\n /** Called whenever a dropdown is opened **/\n dropdownOpened?(trigger: SiHeaderDropdownTriggerDirective): void;\n /** Called whenever a dropdown is close **/\n dropdownClosed?(trigger: SiHeaderDropdownTriggerDirective): void;\n}\n\n/** @internal */\nexport const SI_HEADER_WITH_DROPDOWNS = new InjectionToken<HeaderWithDropdowns>(\n 'si-header.with-dropdowns'\n);\n\n/**\n * Can be used to pass context-specific options to a header-dropdown\n * that should / or cannot be provided by a consuming application.\n * @internal\n */\nexport interface HeaderDropdownOptions {\n /**\n * If the inline navbar is already wrapped in a focus trap,\n * set this property to prevent the header-dropdown from creating a focus trap.\n */\n disableRootFocusTrapForInlineMode: boolean;\n}\n\n/** @internal */\nexport const SI_HEADER_DROPDOWN_OPTIONS = new InjectionToken<HeaderDropdownOptions>(\n 'si-header-dropdown.options'\n);\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n Component,\n ComponentRef,\n Directive,\n ElementRef,\n EmbeddedViewRef,\n HostBinding,\n HostListener,\n inject,\n Injector,\n input,\n OnChanges,\n OnDestroy,\n OnInit,\n output,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport { of, Subject } from 'rxjs';\nimport { filter, skip, take, takeUntil } from 'rxjs/operators';\n\nimport { SI_HEADER_WITH_DROPDOWNS } from './si-header.model';\n\n@Component({ template: '', host: { '[attr.aria-owns]': 'ariaOwns()' } })\nclass SiHeaderAnchorComponent {\n readonly ariaOwns = input<string>();\n}\n\n/**\n * Trigger to open dropdowns in a navbar.\n * A dropdown will always be attached to the view, even if not visible.\n *\n * If a dropdown is opened in desktop mode, it will be reattached to an overlay while being opened.\n */\n@Directive({\n selector: '[siHeaderDropdownTriggerFor]',\n host: {\n class: 'dropdown-toggle'\n },\n exportAs: 'siHeaderDropdownTrigger'\n})\nexport class SiHeaderDropdownTriggerDirective implements OnChanges, OnInit, OnDestroy {\n private static idCounter = 0;\n\n /** Template that be rendered inside the dropdown. */\n readonly dropdown = input.required<TemplateRef<unknown>>({ alias: 'siHeaderDropdownTriggerFor' });\n /** Data that should be passed as template context to the dropdown. */\n readonly dropdownData = input<unknown>();\n /** Emits whenever a dropdown is opened or closed. */\n readonly openChange = output<boolean>();\n\n private readonly dropdownClose = new Subject<void>();\n\n /** Child triggers will set themselves here if they are open. */\n private openSubmenu?: SiHeaderDropdownTriggerDirective;\n\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly overlay = inject(Overlay);\n private readonly parent = inject(SiHeaderDropdownTriggerDirective, {\n optional: true,\n skipSelf: true\n });\n /** @internal */\n readonly navbar = inject(SI_HEADER_WITH_DROPDOWNS, { optional: true });\n\n // we need to create a new injector, so that the parent can be injected properly\n private readonly injector = Injector.create({ parent: inject(Injector), providers: [] });\n private viewRef?: EmbeddedViewRef<unknown>;\n private portal?: TemplatePortal<unknown>;\n private overlayRef?: OverlayRef;\n\n /** @internal */\n readonly level: number = this.parent ? this.parent.level + 1 : 1;\n\n // used to prevent immediate re-creation of the overlay if this trigger was clicked while overlay is open\n private destroying = false;\n\n /** @internal */\n @HostBinding('id') readonly id =\n `si-navbar-dropdown-trigger-${SiHeaderDropdownTriggerDirective.idCounter++}`;\n\n // eslint-disable-next-line @typescript-eslint/naming-convention\n @HostBinding('class.show') @HostBinding('attr.aria-expanded') protected _isOpen = false;\n\n /** @internal */\n @HostBinding('attr.aria-controls') readonly ariaControls =\n `si-navbar-dropdown-${SiHeaderDropdownTriggerDirective.idCounter}`;\n\n private headerAnchorComponentRef?: ComponentRef<SiHeaderAnchorComponent>;\n\n /** Whether the dropdown is open. */\n get isOpen(): boolean {\n return this._isOpen;\n }\n\n /** @internal */\n get isOverlay(): boolean {\n return !!this.overlayRef;\n }\n\n ngOnChanges(): void {\n if (this.portal) {\n this.portal.templateRef = this.dropdown();\n this.portal.context = this.dropdownData();\n }\n }\n\n ngOnInit(): void {\n // Always attach the dropdown, so that it can be used with routerLinkActive\n this.attachDropdownInline();\n }\n\n ngOnDestroy(): void {\n this.close();\n this.dropdownClose.complete();\n }\n\n /** Opens the dropdown. */\n open(): void {\n if (this.destroying || this._isOpen) {\n return;\n }\n\n (this.navbar?.inlineDropdown ?? of(false)).pipe(take(1)).subscribe(inline => {\n this._isOpen = true;\n if (!inline) {\n this.attachDropdownOverlay();\n }\n this.navbar?.inlineDropdown\n ?.pipe(skip(1), takeUntil(this.dropdownClose))\n .subscribe(() => this.close());\n });\n\n if (this.parent) {\n this.parent.openSubmenu = this;\n }\n\n if (this.navbar?.dropdownOpened) {\n this.navbar?.dropdownOpened(this);\n }\n this.openChange.emit(true);\n }\n\n /** Closes the dropdown. */\n close(options?: { all?: boolean }): void {\n if (!this._isOpen) {\n return;\n }\n\n if (this.openSubmenu) {\n this.openSubmenu.close();\n }\n\n this.dropdownClose.next();\n this._isOpen = false;\n if (this.overlayRef) {\n this.destroying = true;\n this.overlayRef.detach();\n this.overlayRef.dispose();\n this.viewRef?.destroy();\n this.portal = undefined;\n this.overlayRef = undefined;\n this.headerAnchorComponentRef?.destroy();\n // do not use queueMicrotask, it executed to early\n setTimeout(() => (this.destroying = false));\n this.attachDropdownInline();\n } else {\n this.viewRef?.markForCheck();\n }\n\n if (this.parent) {\n this.parent.openSubmenu = undefined;\n }\n\n if (options?.all && this.parent) {\n this.parent.close(options);\n } else {\n if (this.navbar?.dropdownClosed) {\n this.navbar?.dropdownClosed(this);\n }\n this.openChange.emit(false);\n }\n }\n\n @HostListener('click')\n protected click(): void {\n if (this._isOpen) {\n this.close();\n } else {\n this.open();\n }\n }\n\n private attachDropdownInline(): void {\n this.viewRef = this.viewContainerRef.createEmbeddedView(this.dropdown(), this.dropdownData(), {\n injector: this.injector\n });\n this.viewRef.markForCheck();\n }\n\n private attachDropdownOverlay(): void {\n this.viewRef?.destroy();\n this.overlayRef = this.overlay.create({\n positionStrategy: this.overlay\n .position()\n .flexibleConnectedTo(this.elementRef)\n .withPositions(\n this.navbar?.overlayPosition ??\n (this.level > 1\n ? [\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: 2\n }\n ]\n : [\n { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top' },\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -4\n }\n ])\n )\n });\n this.portal = new TemplatePortal(\n this.dropdown(),\n this.viewContainerRef,\n this.dropdownData(),\n this.injector\n );\n this.viewRef = this.overlayRef.attach(this.portal);\n this.headerAnchorComponentRef = this.viewContainerRef.createComponent(SiHeaderAnchorComponent);\n this.headerAnchorComponentRef.setInput('ariaOwns', this.ariaControls);\n\n this.overlayRef\n .outsidePointerEvents()\n .pipe(\n filter(event => event.type === 'click'),\n filter(() => !this.openSubmenu),\n takeUntil(this.dropdownClose),\n take(1)\n )\n .subscribe(() => this.close());\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { A11yModule, CdkTrapFocus } from '@angular/cdk/a11y';\nimport {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n HostListener,\n inject,\n viewChild,\n DOCUMENT\n} from '@angular/core';\n\nimport { SiHeaderDropdownTriggerDirective } from './si-header-dropdown-trigger.directive';\nimport { SI_HEADER_DROPDOWN_OPTIONS } from './si-header.model';\n\n/**\n * Wrapper component for {@link SiHeaderDropdownItemComponent}.\n * Must only be opened using an {@link SiHeaderDropdownTriggerDirective}.\n */\n@Component({\n selector: 'si-header-dropdown',\n imports: [A11yModule],\n templateUrl: './si-header-dropdown.component.html',\n styles: ':host.sub-menu {min-inline-size: 200px}',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'dropdown-menu position-static',\n role: 'group',\n '[id]': 'trigger.ariaControls',\n '[attr.aria-labelledby]': 'trigger.id'\n }\n})\nexport class SiHeaderDropdownComponent {\n /** @internal */\n protected trigger = inject(SiHeaderDropdownTriggerDirective);\n\n private readonly focusTrap = viewChild.required(CdkTrapFocus);\n private previousElement: Element | null = null;\n private readonly document = inject(DOCUMENT);\n private readonly options = inject(SI_HEADER_DROPDOWN_OPTIONS, { optional: true });\n\n constructor() {\n // The autoFocus feature of the focus trap is not enough, as this component is not newly created when opened in mobile (inline).\n // But we still need autofocus in desktop mode, as the close event is never executed (component is destroyed before).\n this.trigger.openChange.subscribe(change => {\n if (!this.trigger.isOverlay && this.trapFocus && change) {\n this.previousElement = this.document.activeElement;\n this.focusTrap().focusTrap.focusFirstTabbableElementWhenReady();\n } else {\n if (\n this.previousElement &&\n 'focus' in this.previousElement &&\n typeof this.previousElement.focus === 'function'\n ) {\n this.previousElement.focus();\n }\n this.previousElement = null;\n }\n });\n }\n\n /** @internal */\n @HostBinding('class.show')\n protected get show(): boolean {\n return this.trigger.isOpen;\n }\n\n /** @internal */\n @HostBinding('class.header-dropdown-overlay') protected get overlay(): boolean {\n return this.trigger.isOverlay;\n }\n\n /** @internal */\n @HostBinding('class.sub-menu') protected get submenu(): boolean {\n return this.trigger.level > 1;\n }\n\n /** @internal */\n protected get trapFocus(): boolean {\n return (\n this.trigger.isOverlay ||\n (!this.options?.disableRootFocusTrapForInlineMode && this.trigger.level === 1)\n );\n }\n\n /** @internal */\n @HostListener('keydown.escape')\n protected escape(): void {\n this.trigger?.close();\n }\n}\n","<div [cdkTrapFocus]=\"trapFocus\" [cdkTrapFocusAutoCapture]=\"this.trigger.isOverlay\">\n <ng-content />\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ChangeDetectionStrategy, Component, HostListener, inject, input } from '@angular/core';\nimport { elementDown2, elementOk, elementRecordFilled } from '@siemens/element-icons';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\n\nimport { SiHeaderDropdownTriggerDirective } from './si-header-dropdown-trigger.directive';\nimport { SI_HEADER_WITH_DROPDOWNS } from './si-header.model';\n\n/**\n * Creates a dropdown-item. Must be used within an {@link SiHeaderDropdownComponent}.\n */\n@Component({\n selector: 'si-header-dropdown-item, a[si-header-dropdown-item], button[si-header-dropdown-item]',\n imports: [SiIconComponent],\n templateUrl: './si-header-dropdown-item.component.html',\n styleUrl: './si-header-dropdown-item.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'dropdown-item focus-inside'\n }\n})\nexport class SiHeaderDropdownItemComponent {\n protected readonly icons = addIcons({ elementDown2, elementOk, elementRecordFilled });\n\n /** Optional icon that will be rendered before the label. */\n readonly icon = input<string>();\n /** Badge that is rendered after the label. */\n readonly badge = input<string | number>();\n /** Badge (always red) that is attached to the icon. */\n readonly iconBadge = input<string | number>();\n /** Color of the badge (not iconBadge). */\n readonly badgeColor = input<string>();\n /** Whether the icon is checked with a radio or check mark. */\n readonly checked = input<'radio' | 'check' | ''>();\n\n protected readonly ownTrigger = inject(SiHeaderDropdownTriggerDirective, {\n self: true,\n optional: true\n });\n protected readonly parentTrigger = inject(SiHeaderDropdownTriggerDirective, { skipSelf: true });\n protected readonly navbar = inject(SI_HEADER_WITH_DROPDOWNS, { optional: true });\n\n @HostListener('click')\n protected click(): void {\n if (!this.ownTrigger) {\n this.parentTrigger.close({ all: true });\n if (this.navbar?.onDropdownItemTriggered) {\n this.navbar?.onDropdownItemTriggered();\n }\n }\n }\n}\n","@if (icon()) {\n <si-icon class=\"icon\" [icon]=\"icon()!\" />\n}\n@if (iconBadge()) {\n <div class=\"badge-text\">{{ iconBadge() }}</div>\n}\n<span class=\"item-title text-truncate\">\n <ng-content />\n</span>\n<div class=\"item-end ps-2 d-flex me-n3 ms-auto gap-1\">\n @if (badge()) {\n <span class=\"mx-0 me-1 ms-2 badge\" [class]=\"`bg-${badgeColor() || 'default'}`\">{{\n badge()\n }}</span>\n }\n @if (checked() === 'check') {\n <si-icon class=\"icon\" [icon]=\"icons.elementOk\" />\n }\n @if (checked() === 'radio') {\n <si-icon class=\"icon-sm me-2\" [icon]=\"icons.elementRecordFilled\" />\n }\n @if (ownTrigger) {\n <si-icon class=\"dropdown-caret m-0 ps-0\" [icon]=\"icons.elementDown2\" />\n }\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, input, output } from '@angular/core';\nimport { MenuItem } from '@siemens/element-ng/common';\nimport { SiLinkDirective } from '@siemens/element-ng/link';\nimport { SiTranslatePipe } from '@siemens/element-translate-ng/translate';\n\nimport { SiHeaderDropdownItemComponent } from './si-header-dropdown-item.component';\nimport { SiHeaderDropdownTriggerDirective } from './si-header-dropdown-trigger.directive';\nimport { SiHeaderDropdownComponent } from './si-header-dropdown.component';\n\n/**\n * A factory to render multiple {@link MenuItem}.\n * Requires a wrapping {@link SiHeaderDropdownComponent}.\n *\n * @internal\n */\n@Component({\n selector: 'si-header-dropdown-items-factory',\n imports: [\n SiHeaderDropdownComponent,\n SiHeaderDropdownItemComponent,\n SiTranslatePipe,\n SiLinkDirective,\n SiHeaderDropdownTriggerDirective\n ],\n templateUrl: './si-header-dropdown-items-factory.component.html'\n})\nexport class SiHeaderDropdownItemsFactoryComponent {\n readonly items = input.required<MenuItem[]>();\n readonly activeChange = output<boolean>();\n}\n","@for (item of items(); track item) {\n @if (item.isHeading) {\n <div class=\"dropdown-item dropdown-header dropdown-item-static\">\n {{ item.title | translate }}\n </div>\n } @else {\n @if (item.title !== '-') {\n @if (item.items) {\n <button\n type=\"button\"\n si-header-dropdown-item\n [icon]=\"item.icon\"\n [badge]=\"item.badgeStyle !== 'dot' ? item.badge : undefined\"\n [badgeColor]=\"item.badgeColor\"\n [iconBadge]=\"item.badgeStyle === 'dot' ? item.badge : undefined\"\n [siHeaderDropdownTriggerFor]=\"dropdown\"\n >\n {{ item.title | translate }}\n </button>\n <ng-template #dropdown>\n <si-header-dropdown>\n <si-header-dropdown-items-factory [items]=\"item.items\" />\n </si-header-dropdown>\n </ng-template>\n } @else {\n <a\n si-header-dropdown-item\n activeClass=\"active\"\n [siLink]=\"item\"\n [icon]=\"item.icon\"\n [badge]=\"item.badgeStyle !== 'dot' ? item.badge : undefined\"\n [badgeColor]=\"item.badgeColor\"\n [iconBadge]=\"item.badgeStyle === 'dot' ? item.badge : undefined\"\n [checked]=\"item.selectionState\"\n (activeChange)=\"activeChange.emit($event)\"\n >\n {{ item.title | translate }}\n </a>\n }\n } @else {\n <div class=\"dropdown-divider\"></div>\n }\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-header-dropdown.component';\nexport * from './si-header-dropdown-trigger.directive';\nexport * from './si-header-dropdown-item.component';\nexport * from './si-header-dropdown-items-factory.component';\nexport * from './si-header.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAwBA;MACa,wBAAwB,GAAG,IAAI,cAAc,CACxD,0BAA0B;AAgB5B;MACa,0BAA0B,GAAG,IAAI,cAAc,CAC1D,4BAA4B;;AC5C9B;;;AAGG;AA0BH,MACM,uBAAuB,CAAA;IAClB,QAAQ,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;uGAD/B,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAvB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,uBAAuB,+QADN,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;2FACnB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAD5B,SAAS;mBAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,kBAAkB,EAAE,YAAY,EAAE,EAAE;;AAKvE;;;;;AAKG;MAQU,gCAAgC,CAAA;AACnC,IAAA,OAAO,SAAS,GAAG,CAAC;;IAGnB,QAAQ,GAAG,KAAK,CAAC,QAAQ,oDAAyB,KAAK,EAAE,4BAA4B,EAAA,CAAG;;IAExF,YAAY,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,cAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAW;;IAE/B,UAAU,GAAG,MAAM,EAAW;AAEtB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