@sixbell-telco/sdk 4.8.0 → 4.10.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/CHANGELOG.md +53 -0
- package/components/accordion/README.md +1 -1
- package/components/accordion/src/accordion.component.d.ts +4 -0
- package/components/alert/src/alert.component.d.ts +8 -1
- package/components/data-table/README.md +1 -0
- package/components/data-table/src/data-table.component.d.ts +2 -24
- package/components/dialog/README.md +4 -3
- package/components/dialog/dialog-actions/dialog-actions.component.d.ts +2 -1
- package/components/dialog/src/dialog.component.d.ts +10 -5
- package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +1 -1
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -2
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +12 -0
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +6 -0
- package/components/forms/combobox/README.md +49 -0
- package/components/forms/combobox/src/combobox.component.d.ts +178 -3
- package/components/forms/date-picker/README.md +3 -1
- package/components/forms/date-picker/src/date-picker.component.d.ts +8 -1
- package/components/forms/form-error/README.md +2 -0
- package/components/forms/form-error/src/form-error.component.d.ts +17 -0
- package/components/forms/form-hint/README.md +2 -2
- package/components/forms/form-item/README.md +1 -0
- package/components/forms/form-item/src/form-item.component.d.ts +38 -6
- package/components/forms/input/README.md +7 -0
- package/components/forms/input/src/input.component.d.ts +11 -1
- package/components/forms/select/README.md +48 -0
- package/components/forms/select/src/select.component.d.ts +157 -2
- package/components/forms/textarea/README.md +1 -0
- package/components/forms/textarea/src/textarea.component.d.ts +6 -1
- package/components/paginator/README.md +3 -0
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +8 -3
- package/components/paginator/src/paginator.component.d.ts +2 -1
- package/components/progress/src/progress.component.d.ts +17 -3
- package/components/table/README.md +2 -0
- package/components/table/src/table.component.d.ts +16 -23
- package/directives/only-numbers/src/only-numbers.directive.d.ts +27 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +6 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs +12 -5
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +5 -2
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +30 -13
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +2 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +10 -4
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +32 -6
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +272 -23
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +17 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +32 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +74 -10
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +13 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +258 -18
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +11 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +15 -11
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +22 -4
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +42 -5
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +49 -4
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/i18n/sdk/en.json +14 -4
- package/i18n/sdk/es.json +14 -4
- package/i18n/sdk/pt.json +14 -4
- package/manifest.json +185 -19
- package/package.json +1 -1
- package/src/_index.css +19 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-forms-select.mjs","sources":["../../../projects/sdk/components/forms/select/src/select.component.ts","../../../projects/sdk/components/forms/select/src/select.component.html","../../../projects/sdk/components/forms/select/sixbell-telco-sdk-components-forms-select.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport {\n\tafterRenderEffect,\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tmodel,\n\toutput,\n\tsignal,\n\tuntracked,\n\tviewChild,\n} from '@angular/core';\nimport { toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TranslatePipe, TranslateService } from '@ngx-translate/core';\nimport { injectFormFieldA11y, optionalBooleanAttribute } from '@sixbell-telco/sdk/components/forms/form-item';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\nimport { startWith, switchMap } from 'rxjs';\n\n// Angular CDK\nimport { CdkListbox, CdkOption } from '@angular/cdk/listbox';\nimport { ConnectedOverlayPositionChange, ConnectedPosition, OverlayModule } from '@angular/cdk/overlay';\nimport { PortalModule } from '@angular/cdk/portal';\n\n// Internal components\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\n\n// Icons\nimport { matCheckOutline, matCloseOutline, matKeyboardArrowDownOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { isPopoverMotionAnimation, PopoverPlacement, popoverPlacement, PopoverSide } from '@sixbell-telco/sdk/utils/popover-motion';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\n\n// ==============================================================================\n// TYPES AND INTERFACES\n// ==============================================================================\n\n/** Possible select dropdown style variants */\nexport type SelectVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'error' | 'warning' | null | undefined;\n\n/** Possible select dropdown size variants */\nexport type SelectSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for select styling */\nexport type SelectProps = {\n\tvariant?: SelectVariantProps;\n\tsize?: SelectSizeProps;\n};\n\n/** Animation states for the select overlay */\ntype AnimationState = 'closed' | 'opening' | 'open' | 'closing';\n\n// ==============================================================================\n// COMPONENT STYLES\n// ==============================================================================\n\n/**\n * @internal\n * Generates base select classes with style variants\n */\nconst selectComponent = cva(\n\t[\n\t\t'w-full',\n\t\t'min-w-fit',\n\t\t'text-pretty',\n\t\t'font-body',\n\t\t'font-normal',\n\t\t'select',\n\t\t'leading-normal',\n\t\t'rounded-field',\n\t\t'relative',\n\t\t'flex',\n\t\t'min-h-0',\n\t\t'items-center',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tbase: [],\n\t\t\t\tprimary: ['select-primary'],\n\t\t\t\tsecondary: ['select-secondary'],\n\t\t\t\ttertiary: ['select-tertiary'],\n\t\t\t\taccent: ['select-accent'],\n\t\t\t\tinfo: ['select-info'],\n\t\t\t\tsuccess: ['select-success'],\n\t\t\t\terror: ['select-error'],\n\t\t\t\twarning: ['select-warning'],\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\txs: ['select-xs'],\n\t\t\t\tsm: ['select-sm'],\n\t\t\t\tmd: ['select-md'],\n\t\t\t\tlg: ['select-lg'],\n\t\t\t\txl: ['select-xl'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tvariant: 'base',\n\t\t\tsize: 'md',\n\t\t},\n\t},\n);\n\n// ==============================================================================\n// COMPONENT\n// ==============================================================================\n\nlet nextSelectId = 0;\n\n/**\n * A customizable select dropdown component with CDK overlay integration\n *\n * @remarks\n * Uses the same visual design as the combobox but simplified for single selection only.\n * No search functionality or multi-select support. Implements ControlValueAccessor\n * for Angular form compatibility.\n *\n * @example\n * ```html\n * <!-- Basic usage with primitive values -->\n * <st-select\n * [options]=\"['Option 1', 'Option 2']\"\n * [(value)]=\"selectedValue\"\n * ></st-select>\n * ```\n *\n * @example\n * ```html\n * <!-- Object options with custom keys -->\n * <st-select\n * [options]=\"users\"\n * valueKey=\"id\"\n * displayKey=\"name\"\n * label=\"Select user\"\n * [parentForm]=\"userForm\"\n * formControlName=\"selectedUser\"\n * ></st-select>\n * ```\n */\n@Component({\n\tselector: 'st-select',\n\timports: [FormsModule, OverlayModule, PortalModule, CdkListbox, CdkOption, IconComponent, TranslatePipe],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: SelectComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './select.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SelectComponent implements ControlValueAccessor {\n\t// ==============================================================================\n\t// SERVICES\n\t// ==============================================================================\n\n\t/** @internal Translation service instance */\n\ttranslateService = inject(TranslateService);\n\tprotected readonly themeDomService = inject(ThemeDomService);\n\n\t// ==============================================================================\n\t// INPUT PROPERTIES\n\t// ==============================================================================\n\n\t/**\n\t * Select dropdown style variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<SelectVariantProps>('base');\n\n\t/**\n\t * Select dropdown size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<SelectSizeProps>('md');\n\n\t/**\n\t * Whether to show optional indicator\n\t * @defaultValue false\n\t */\n\tshowOptional = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Optional indicator text (translation key or literal)\n\t * @defaultValue 'sdk.formFields.optional'\n\t */\n\toptionalText = input<string>('sdk.formFields.optional');\n\n\t/**\n\t * Mark the field as required: shows the `*` marker and announces the field as required.\n\t * When not set, the enclosing `st-form-item` `required`, then `Validators.required` on the bound control decide.\n\t */\n\trequired = input<boolean | undefined, unknown>(undefined, { transform: optionalBooleanAttribute });\n\n\t/** @internal Required state and hint ids from the enclosing `st-form-item`. */\n\tprotected readonly fieldA11y = injectFormFieldA11y({\n\t\trequired: () => this.required(),\n\t\tcontrol: () => this.formControl(),\n\t\tstatus: () => this.statusSignal(),\n\t});\n\n\t/**\n\t * Whether to use ghost (transparent) styling\n\t * @defaultValue false\n\t */\n\tghost = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * HTML name attribute for the select\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Id of the focusable control, used by its label. A unique id is generated when omitted.\n\t */\n\tinputId = input<string | null>(null);\n\n\t/** @internal */\n\tprivate readonly generatedId = `st-select-${nextSelectId++}`;\n\n\t/** @internal Id applied to the focusable control and referenced by its label */\n\tprotected readonly resolvedId = computed(() => this.inputId() || this.generatedId);\n\n\t/**\n\t * Placeholder text when no option is selected\n\t */\n\tplaceholder = input<string>('');\n\n\t/**\n\t * Label text displayed above the select\n\t */\n\tlabel = input<string>('');\n\n\t/**\n\t * Two-way bindable selected value\n\t */\n\tvalue = model<any>();\n\n\t/**\n\t * Array of available options (primitives or objects)\n\t */\n\toptions = input<any[]>([]);\n\n\t/**\n\t * The object property to use for display text when options are objects\n\t * Falls back to common property names if not specified\n\t */\n\tdisplayKey = input<string>('');\n\n\t/**\n\t * The object property to use as the value when options are objects\n\t * Uses the entire object if not specified\n\t */\n\tvalueKey = input<string>('');\n\n\t/**\n\t * Whether to show a clear button next to the selected value\n\t * @default true\n\t */\n\tallowClear = input(true, { transform: booleanAttribute });\n\n\t/**\n\t * Parent form group for reactive forms\n\t */\n\tparentForm = input<FormGroup | null>(null);\n\n\t/**\n\t * Form control name for reactive forms\n\t */\n\tformControlName = input<string>('');\n\n\t/**\n\t * Whether the select is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * Event emitted when select loses focus\n\t */\n\tblurred = output<unknown>();\n\n\t/**\n\t * Event emitted when selection changes\n\t */\n\tvalueUpdated = output<any>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (click or keyboard)\n\t */\n\ttriggered = output<void>();\n\n\t// ==============================================================================\n\t// ICONS\n\t// ==============================================================================\n\n\t/** Custom field chevron (DaisyUI native triangles stay hidden) */\n\ticonChevronDown = matKeyboardArrowDownOutline;\n\t/** Check icon for selected options */\n\ticonCheck = matCheckOutline;\n\t/** Close/clear icon */\n\ticonClose = matCloseOutline;\n\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal Name of the icon-only clear button. */\n\tprotected readonly clearSelectionLabel = computed(() => this.translateLabel({ key: 'sdk.select.clearSelection', fallback: 'Clear selection' }));\n\n\t// ==============================================================================\n\t// PRIVATE PROPERTIES\n\t// ==============================================================================\n\n\t/** Current animation state of the overlay */\n\tprivate readonly animationState = signal<AnimationState>('closed');\n\t/** Set when the exit animation already ran the close cleanup, so the detach that follows does not repeat it */\n\tprivate exitSettled = false;\n\t/** Trigger for blur events in form validation */\n\tprivate readonly blurTrigger = signal(0);\n\t/** Active option index for keyboard navigation */\n\tprivate readonly activeOptionIndex = signal<number>(-1);\n\n\t// ==============================================================================\n\t// VIEW CHILDREN\n\t// ==============================================================================\n\n\t/** Reference to the field shell (CDK overlay origin) */\n\tfieldRef = viewChild<ElementRef<HTMLElement>>('field');\n\n\t/** Reference to the trigger button element */\n\ttriggerRef = viewChild<ElementRef<HTMLButtonElement>>('trigger');\n\n\t/** Reference to the options list container */\n\toptionsList = viewChild<ElementRef<HTMLDivElement>>('optionsList');\n\n\t/** Reference to the CDK listbox for keyboard navigation */\n\tlistbox = viewChild<CdkListbox>('listbox');\n\n\t// ==============================================================================\n\t// SIGNALS\n\t// ==============================================================================\n\n\t/** Width of the trigger button for overlay positioning */\n\ttriggerWidth = signal<number>(0);\n\n\t/** Tracks the overlay position to determine animation direction */\n\tprivate readonly currentPosition = signal<ConnectedPosition | null>(null);\n\n\t/** Overlay positions with a symmetric 4px trigger gap (below first, flip above) */\n\treadonly overlayPositions: ConnectedPosition[] = [\n\t\t{ originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },\n\t\t{ originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -4 },\n\t];\n\n\t/** Real placement of the open panel, bound to `data-side` / `data-align`; null until the CDK places it */\n\treadonly placement = computed<PopoverPlacement | null>(() => {\n\t\tconst position = this.currentPosition();\n\t\treturn position ? popoverPlacement(position) : null;\n\t});\n\n\t/**\n\t * Side of the field the panel opened on (`'bottom'` until the CDK places it)\n\t * @deprecated Read `data-side` on the panel instead; kept for compatibility\n\t */\n\tanimationDirection = computed<PopoverSide>(() => this.placement()?.side ?? 'bottom');\n\n\t/**\n\t * Class of the panel: the shared `popover-motion` utility driven by `data-state` and `data-side`\n\t * @deprecated Kept for compatibility; the motion lives in the `popover-motion` utility\n\t */\n\tanimationClasses = computed(() => 'popover-motion');\n\n\t// ==============================================================================\n\t// FORM CONTROL INTEGRATION\n\t// ==============================================================================\n\n\t/** Form control reference for reactive forms */\n\tprivate readonly formControl = computed(() => this.parentForm()?.get(this.formControlName()) as FormControl | null);\n\t/** Observable stream of form control */\n\tprivate readonly formControl$ = toObservable(this.formControl);\n\t/** Stream of form control status changes */\n\tprivate readonly statusChanges$ = this.formControl$.pipe(switchMap((control) => control?.statusChanges.pipe(startWith(control.status)) || []));\n\t/** Stream of form control value changes */\n\tprivate readonly stateChanges$ = this.formControl$.pipe(switchMap((control) => control?.valueChanges.pipe(startWith(control.value)) || []));\n\t/** Signal for form control status */\n\tprivate readonly statusSignal = toSignal(this.statusChanges$);\n\t/** Signal for form control state */\n\tprivate readonly stateSignal = toSignal(this.stateChanges$);\n\n\t// ==============================================================================\n\t// CONTROL VALUE ACCESSOR\n\t// ==============================================================================\n\n\t/** Callback function for value changes */\n\tprivate onChange = (value: any) => {};\n\t/** Callback function for touch events */\n\tprivate onTouched = () => {};\n\t/** Value written through the accessor while no options were bound yet */\n\tprivate pendingValue: any = null;\n\n\t// ==============================================================================\n\t// COMPUTED PROPERTIES\n\t// ==============================================================================\n\n\t/**\n\t * Whether the overlay is currently open or in the process of opening/closing\n\t * @returns True if overlay is visible or animating\n\t */\n\tisOpen = computed(() => {\n\t\tconst state = this.animationState();\n\t\treturn state === 'opening' || state === 'open' || state === 'closing';\n\t});\n\n\t/**\n\t * Whether the overlay is currently animating to open state\n\t * @returns True if overlay is opening or open\n\t */\n\tisAnimatingOpen = computed(() => {\n\t\tconst state = this.animationState();\n\t\treturn state === 'opening' || state === 'open';\n\t});\n\n\t/**\n\t * Current animation state for template binding\n\t * @returns Current animation state\n\t */\n\tdataState = computed(() => this.animationState());\n\n\t/**\n\t * Display value for the selected option\n\t * @returns Formatted display string for the current selection\n\t */\n\tdisplayValue = computed(() => {\n\t\tconst currentValue = this.value();\n\t\tif (!currentValue) return this.translatedPlaceholder();\n\n\t\t// If the current value is a string that matches one of the options, display it\n\t\tconst options = this.options();\n\t\tconst matchingOption = options.find((option) => {\n\t\t\tif (typeof option === 'string' && typeof currentValue === 'string') {\n\t\t\t\treturn option === currentValue;\n\t\t\t}\n\t\t\t// For objects, check if the current value matches the option or its value property\n\t\t\tconst optionValue = this.getOptionValue(option);\n\t\t\tconst currentOptionValue = this.getOptionValue(currentValue);\n\t\t\treturn optionValue === currentOptionValue || option === currentValue;\n\t\t});\n\n\t\tif (matchingOption) {\n\t\t\treturn this.getDisplayValue(matchingOption);\n\t\t}\n\n\t\t// If no matching option found, show placeholder (invalid value)\n\t\treturn this.translatedPlaceholder();\n\t});\n\n\t/**\n\t * Whether the clear button should be shown\n\t * @returns True if there's a valid selected value and clear is allowed\n\t */\n\tshowClearButton = computed(() => {\n\t\tif (!this.allowClear() || this.disabled()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst currentValue = this.value();\n\t\tif (!currentValue) return false;\n\n\t\t// Only show clear button if the value is valid (exists in options)\n\t\tconst options = this.options();\n\t\treturn options.some((option) => {\n\t\t\tif (typeof option === 'string' && typeof currentValue === 'string') {\n\t\t\t\treturn option === currentValue;\n\t\t\t}\n\t\t\t// For objects, check if the current value matches the option or its value property\n\t\t\tconst optionValue = this.getOptionValue(option);\n\t\t\tconst currentOptionValue = this.getOptionValue(currentValue);\n\t\t\treturn optionValue === currentOptionValue || option === currentValue;\n\t\t});\n\t});\n\n\t/**\n\t * Translated placeholder text\n\t * @returns Translated placeholder or input value\n\t */\n\ttranslatedPlaceholder = computed(() => {\n\t\tconst customPlaceholder = this.placeholder();\n\t\treturn customPlaceholder || this.translateService.instant('sdk.select.placeholder');\n\t});\n\n\t/**\n\t * @internal\n\t * Computed base select classes\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tselectComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{ 'select-ghost': this.ghost() },\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed error state classes\n\t */\n\terrorClass = computed(() => {\n\t\treturn cn(\n\t\t\tselectComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{ 'select-ghost': this.ghost() },\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed success state classes\n\t */\n\tsuccessClass = computed(() => {\n\t\treturn cn(\n\t\t\tselectComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{ 'select-ghost': this.ghost() },\n\t\t);\n\t});\n\n\t/**\n\t * Validation-aware CSS classes based on form control state\n\t * @internal\n\t */\n\tvalidationClass = computed(() => {\n\t\tconst control = this.formControl();\n\t\tconst trigger = this.blurTrigger();\n\n\t\tif (!control) return this.componentClass();\n\n\t\tconst isTouched = control.touched || trigger > 0;\n\t\tthis.statusSignal();\n\t\tthis.stateSignal();\n\n\t\tif (control.dirty || isTouched) {\n\t\t\tif (control.invalid) return this.errorClass();\n\t\t\tif (control.valid) return this.successClass();\n\t\t}\n\n\t\treturn this.componentClass();\n\t});\n\n\t/**\n\t * CSS classes for the options menu\n\t * @internal\n\t */\n\tmenuClass = computed(() => {\n\t\treturn cn(\n\t\t\t'menu max-h-72 w-full flex-nowrap overflow-y-auto overscroll-contain p-0 focus-within:outline-hidden focus:outline-hidden focus-visible:outline-hidden',\n\t\t\t{\n\t\t\t\t'menu-xs': this.size() === 'xs',\n\t\t\t\t'menu-sm': this.size() === 'sm',\n\t\t\t\t'menu-md': this.size() === 'md',\n\t\t\t\t'menu-lg': this.size() === 'lg',\n\t\t\t\t'menu-xl': this.size() === 'xl',\n\t\t\t},\n\t\t);\n\t});\n\n\t// ==============================================================================\n\t// LIFECYCLE METHODS\n\t// ==============================================================================\n\n\t/**\n\t * Updates the trigger width for proper overlay positioning\n\t */\n\tprivate readonly triggerWidthEffect = afterRenderEffect(() => {\n\t\tthis.updateTriggerWidth();\n\t});\n\n\t// ==============================================================================\n\t// CONTROL VALUE ACCESSOR IMPLEMENTATION\n\t// ==============================================================================\n\n\t/**\n\t * Writes a new value to the component\n\t * @param value - The new value to set\n\t */\n\twriteValue(value: any): void {\n\t\tif (!value) {\n\t\t\tthis.pendingValue = null;\n\t\t\tthis.value.set(value);\n\t\t\treturn;\n\t\t}\n\n\t\tconst options = this.options();\n\t\tif (this.hasOption(options, value)) {\n\t\t\tthis.pendingValue = null;\n\t\t\tthis.value.set(value);\n\t\t\treturn;\n\t\t}\n\n\t\t// Options may still be loading or be replaced: keep the raw value and resolve it when a matching option arrives\n\t\tthis.pendingValue = value;\n\t\tthis.value.set(null);\n\t}\n\n\t/**\n\t * Resolves a value written before its option existed once the options arrive.\n\t * Never calls onChange: the form already holds the value.\n\t */\n\tprivate readonly pendingValueEffect = effect(() => {\n\t\tconst options = this.options();\n\t\tuntracked(() => {\n\t\t\tconst pending = this.pendingValue;\n\t\t\tif (pending === null || !this.hasOption(options, pending)) return;\n\t\t\tthis.pendingValue = null;\n\t\t\tthis.value.set(pending);\n\t\t});\n\t});\n\n\tprivate hasOption(options: any[], value: any): boolean {\n\t\treturn options.some((option) => {\n\t\t\tif (typeof option === 'string' && typeof value === 'string') {\n\t\t\t\treturn option === value;\n\t\t\t}\n\t\t\t// For objects, check if the value matches the option or its value property\n\t\t\treturn this.getOptionValue(option) === this.getOptionValue(value) || option === value;\n\t\t});\n\t}\n\n\t/**\n\t * Registers a callback function to be called when the value changes\n\t * @param fn - The callback function\n\t */\n\tregisterOnChange(fn: (value: any) => void): void {\n\t\tthis.onChange = fn;\n\t}\n\n\t/**\n\t * Registers a callback function to be called when the component is touched\n\t * @param fn - The callback function\n\t */\n\tregisterOnTouched(fn: () => void): void {\n\t\tthis.onTouched = fn;\n\t}\n\n\t/**\n\t * Sets the disabled state of the component\n\t * @param isDisabled - Whether the component should be disabled\n\t */\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// ==============================================================================\n\t// PUBLIC METHODS\n\t// ==============================================================================\n\n\t/**\n\t * Toggles the overlay open/closed state\n\t * Handles focus management and animation state transitions\n\t */\n\ttoggleOverlay() {\n\t\tconst currentState = this.animationState();\n\n\t\tif (currentState === 'closed') {\n\t\t\tthis.updateTriggerWidth();\n\t\t\tthis.animationState.set('opening');\n\t\t\t// Set first option as active and focus listbox after opening\n\t\t\tsetTimeout(() => {\n\t\t\t\tif (this.animationState() !== 'opening' && this.animationState() !== 'open') return;\n\t\t\t\tthis.setDefaultActiveOption();\n\t\t\t\t// Focus the listbox for keyboard navigation\n\t\t\t\tthis.optionsList()?.nativeElement?.focus();\n\t\t\t}, 100);\n\t\t} else if (currentState === 'open') {\n\t\t\tthis.animationState.set('closing');\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation on trigger\n\t */\n\thandleClick(event: MouseEvent) {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t\tthis.toggleOverlay();\n\t}\n\n\t/**\n\t * Open from decorative chevron hits that miss the trigger button.\n\t * Clear and the trigger already handle their own clicks.\n\t */\n\thandleFieldChromeClick(event: MouseEvent) {\n\t\tif ((event.target as HTMLElement).closest('button')) return;\n\t\tthis.handleClick(event);\n\t}\n\n\t/**\n\t * Handles animation end events to update state\n\t * @param event - The animation event\n\t */\n\tonAnimationEnd(event: AnimationEvent) {\n\t\tif (event.target !== event.currentTarget) return;\n\t\tif (this.animationState() === 'opening' && isPopoverMotionAnimation(event, 'opening')) {\n\t\t\tthis.animationState.set('open');\n\t\t} else if (this.animationState() === 'closing' && isPopoverMotionAnimation(event, 'closing')) {\n\t\t\tthis.exitSettled = true;\n\t\t\tthis.animationState.set('closed');\n\t\t\tthis.currentPosition.set(null);\n\t\t\tthis.activeOptionIndex.set(-1);\n\t\t\tthis.triggerBlur();\n\t\t\t// Return focus to trigger\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.triggerRef()?.nativeElement?.focus();\n\t\t\t}, 0);\n\t\t}\n\t}\n\n\t/**\n\t * Handles overlay detachment\n\t * Cleans up state and triggers blur\n\t */\n\thandleDetach() {\n\t\tif (this.exitSettled) {\n\t\t\tthis.exitSettled = false;\n\t\t\treturn;\n\t\t}\n\t\tthis.animationState.set('closed');\n\t\tthis.currentPosition.set(null);\n\t\tthis.activeOptionIndex.set(-1);\n\t\tthis.triggerBlur();\n\t\t// Return focus to trigger\n\t\tsetTimeout(() => {\n\t\t\tthis.triggerRef()?.nativeElement?.focus();\n\t\t}, 0);\n\t}\n\n\t/**\n\t * Handles overlay position changes to determine animation direction\n\t * @param event - The position change event from CDK overlay\n\t */\n\tonPositionChange(event: ConnectedOverlayPositionChange): void {\n\t\tthis.currentPosition.set(event?.connectionPair || null);\n\t}\n\n\t/**\n\t * Handles clicks outside the component\n\t * @param event - The mouse event\n\t */\n\thandleClickOutside(event: MouseEvent) {\n\t\tconst state = this.animationState();\n\t\tif (state === 'opening' || state === 'open') {\n\t\t\tthis.animationState.set('closing');\n\t\t}\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\t// A panel that is shown blurs when its exit animation ends\n\t\tif (state === 'closed') {\n\t\t\tthis.triggerBlur();\n\t\t}\n\t}\n\n\t/**\n\t * Handles option selection\n\t * @param option - The selected option\n\t */\n\thandleOptionSelect(option: any) {\n\t\tthis.pendingValue = null;\n\t\tthis.value.set(option);\n\t\tthis.onChange(option);\n\t\tthis.onTouched();\n\t\tthis.valueUpdated.emit(option);\n\t\tthis.animationState.set('closing');\n\t}\n\n\t/**\n\t * Handles CDK listbox selection changes\n\t * @param event - The selection change event\n\t */\n\thandleSelectionChange(event: any) {\n\t\tif (event.option) {\n\t\t\tthis.handleOptionSelect(event.option.value);\n\t\t}\n\t}\n\n\t/**\n\t * Handles keyboard events for option selection\n\t * @param event - The keyboard event\n\t */\n\thandleListboxKeydown(event: KeyboardEvent) {\n\t\tconst options = this.options();\n\t\tconst currentIndex = this.activeOptionIndex();\n\n\t\tswitch (event.key) {\n\t\t\tcase 'ArrowDown': {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (this.stopPropagation()) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t}\n\t\t\t\tconst nextIndex = currentIndex < options.length - 1 ? currentIndex + 1 : 0;\n\t\t\t\tthis.setActiveOption(nextIndex);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase 'ArrowUp': {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (this.stopPropagation()) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t}\n\t\t\t\tconst prevIndex = currentIndex > 0 ? currentIndex - 1 : options.length - 1;\n\t\t\t\tthis.setActiveOption(prevIndex);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase 'Enter':\n\t\t\tcase ' ':\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (this.stopPropagation()) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t}\n\t\t\t\tif (currentIndex >= 0 && currentIndex < options.length) {\n\t\t\t\t\tthis.handleOptionSelect(options[currentIndex]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase 'Escape':\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (this.stopPropagation()) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t}\n\t\t\t\tthis.animationState.set('closing');\n\t\t\t\tthis.activeOptionIndex.set(-1);\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\t/**\n\t * Handles keyboard events on the trigger button\n\t * @param event - The keyboard event\n\t */\n\thandleTriggerKeydown(event: KeyboardEvent) {\n\t\tif (event.key === 'Enter') {\n\t\t\tif (this.stopPropagation()) {\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t\tthis.keyDownEnter.emit(event);\n\t\t\tthis.triggered.emit();\n\t\t}\n\t\tif (event.key === ' ') {\n\t\t\tif (this.stopPropagation()) {\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t\tthis.keyDownSpace.emit(event);\n\t\t\tthis.triggered.emit();\n\t\t}\n\t\tswitch (event.key) {\n\t\t\tcase 'ArrowDown':\n\t\t\tcase 'ArrowUp':\n\t\t\tcase 'Enter':\n\t\t\tcase ' ':\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (this.animationState() === 'closed') {\n\t\t\t\t\tthis.toggleOverlay();\n\t\t\t\t} else {\n\t\t\t\t\t// If already open, handle navigation\n\t\t\t\t\tthis.handleListboxKeydown(event);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'Escape':\n\t\t\t\tif (this.animationState() === 'open') {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tif (this.stopPropagation()) {\n\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t}\n\t\t\t\t\tthis.animationState.set('closing');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\t/**\n\t * Clears the current selection\n\t */\n\tclearSelection() {\n\t\tthis.pendingValue = null;\n\t\tthis.value.set(null);\n\t\tthis.onChange(null);\n\t\tthis.onTouched();\n\t\tthis.valueUpdated.emit(null);\n\t}\n\n\t/**\n\t * Handles clear selection button click\n\t * @param event - The click event\n\t */\n\thandleClearSelection(event: Event) {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tthis.clearSelection();\n\t\tif (this.isOpen()) {\n\t\t\tthis.toggleOverlay();\n\t\t}\n\t}\n\n\t/**\n\t * Checks if an option is currently selected\n\t * @param option - The option to check\n\t * @returns True if the option is selected\n\t */\n\tisOptionSelected(option: any): boolean {\n\t\tconst currentValue = this.value();\n\t\tif (!currentValue) return false;\n\n\t\t// Direct comparison for strings\n\t\tif (typeof option === 'string' && typeof currentValue === 'string') {\n\t\t\treturn option === currentValue;\n\t\t}\n\n\t\t// For objects or mixed types, compare values\n\t\tconst optionValue = this.getOptionValue(option);\n\t\tconst currentValueForComparison = this.getOptionValue(currentValue);\n\n\t\t// Also check direct object equality\n\t\treturn optionValue === currentValueForComparison || option === currentValue;\n\t}\n\n\t/**\n\t * Checks if an option is currently active for keyboard navigation\n\t * @param index - The option index\n\t * @returns True if the option is active\n\t */\n\tisActiveOption(index: number): boolean {\n\t\treturn this.activeOptionIndex() === index;\n\t}\n\n\t/**\n\t * Gets the display value for an option\n\t * @param option - The option to get display value for\n\t * @returns The display string for the option\n\t */\n\tgetDisplayValue(option: any): string {\n\t\tif (!option) return '';\n\t\tconst displayKey = this.displayKey();\n\n\t\tif (displayKey && typeof option === 'object') {\n\t\t\treturn option[displayKey] || '';\n\t\t}\n\n\t\tif (typeof option === 'object') {\n\t\t\tconst commonKeys = ['name', 'label', 'text', 'title', 'displayName'];\n\t\t\tfor (const key of commonKeys) {\n\t\t\t\tif (option[key] !== undefined && option[key] !== null) {\n\t\t\t\t\treturn String(option[key]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst keys = Object.keys(option);\n\t\t\tfor (const key of keys) {\n\t\t\t\tconst value = option[key];\n\t\t\t\tif (typeof value === 'string' || typeof value === 'number') {\n\t\t\t\t\treturn String(value);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn JSON.stringify(option);\n\t\t}\n\n\t\treturn String(option);\n\t}\n\n\t// ==============================================================================\n\t// PRIVATE METHODS\n\t// ==============================================================================\n\n\t/**\n\t * Updates the trigger button width for overlay positioning\n\t */\n\tprivate updateTriggerWidth() {\n\t\tconst width = this.fieldRef()?.nativeElement.offsetWidth;\n\t\tif (!width) return;\n\t\tthis.triggerWidth.set(width);\n\t}\n\n\t/**\n\t * Gets the value property from an option\n\t * @param option - The option to get value from\n\t * @returns The option value\n\t */\n\tprivate getOptionValue(option: any): any {\n\t\tif (!option) return option;\n\t\tconst valueKey = this.valueKey();\n\t\treturn valueKey && typeof option === 'object' ? option[valueKey] : option;\n\t}\n\n\t/**\n\t * Triggers blur event for form validation\n\t */\n\tprivate triggerBlur() {\n\t\tthis.blurTrigger.update((val) => val + 1);\n\t\tthis.onTouched();\n\t\tthis.blurred.emit(this.value());\n\t}\n\n\t/**\n\t * Sets the active option for keyboard navigation\n\t * @param index - The index of the option to make active\n\t */\n\tprivate setActiveOption(index: number) {\n\t\tthis.activeOptionIndex.set(index);\n\t\tthis.updateActiveOptionVisually();\n\t}\n\n\t/**\n\t * Sets the first option as active by default\n\t */\n\tprivate setDefaultActiveOption() {\n\t\tconst options = this.options();\n\t\tif (options.length > 0) {\n\t\t\tthis.setActiveOption(0);\n\t\t}\n\t}\n\n\t/**\n\t * Updates the visual state of the active option\n\t */\n\tprivate updateActiveOptionVisually() {\n\t\tif (!this.optionsList()?.nativeElement) return;\n\n\t\t// Remove active class from all options\n\t\tconst allOptions = this.optionsList()?.nativeElement.querySelectorAll('[data-option-index]');\n\t\tif (!allOptions) return;\n\t\tfor (const option of Array.from(allOptions)) {\n\t\t\toption.classList.remove('cdk-option-active');\n\t\t}\n\n\t\t// Add active class to current option\n\t\tconst currentIndex = this.activeOptionIndex();\n\t\tif (currentIndex >= 0) {\n\t\t\tconst activeOption = this.optionsList()?.nativeElement.querySelector(`[data-option-index=\"${currentIndex}\"]`);\n\t\t\tif (activeOption) {\n\t\t\t\tactiveOption.classList.add('cdk-option-active');\n\t\t\t\t// Scroll into view if needed\n\t\t\t\tactiveOption.scrollIntoView({ block: 'nearest' });\n\t\t\t}\n\t\t}\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<!-- Field chrome click is pointer-only sugar; keyboard access is the focusable trigger button inside. -->\n@let isOpen = this.isOpen(); @let triggerWidth = this.triggerWidth(); @let dataState = this.dataState(); @let options = this.options();\n@let displayValue = this.displayValue();\n@let label = this.label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (label) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ label }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\n\t<div\n\t\t#field\n\t\tcdkOverlayOrigin\n\t\t#overlayOrigin=\"cdkOverlayOrigin\"\n\t\t[class]=\"validationClass()\"\n\t\t[attr.data-open]=\"isOpen ? '' : null\"\n\t\t(click)=\"handleFieldChromeClick($event)\"\n\t>\n\t\t<button\n\t\t\t#trigger\n\t\t\t[id]=\"resolvedId()\"\n\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t[attr.aria-describedby]=\"fieldA11y.describedBy()\"\n\t\t\tclass=\"min-w-0 flex-1 grow cursor-pointer bg-transparent p-0 text-left outline-hidden\"\n\t\t\t(click)=\"handleClick($event)\"\n\t\t\t(keydown)=\"handleTriggerKeydown($event)\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"true\"\n\t\t\trole=\"combobox\"\n\t\t\t[attr.aria-controls]=\"'select-list'\"\n\t\t\t[attr.aria-expanded]=\"isOpen\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t>\n\t\t\t<span class=\"block min-w-0 truncate text-left\">\n\t\t\t\t{{ displayValue }}\n\t\t\t</span>\n\t\t</button>\n\t\t@if (showClearButton()) {\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tdata-st-clear\n\t\t\t\tclass=\"btn btn-ghost btn-square shrink-0 cursor-pointer [--fontsize:1em] [--size:1.25em]\"\n\t\t\t\t(click)=\"handleClearSelection($event)\"\n\t\t\t\t(keydown.enter)=\"handleClearSelection($event)\"\n\t\t\t\t(keydown.space)=\"handleClearSelection($event)\"\n\t\t\t\t[attr.aria-label]=\"clearSelectionLabel()\"\n\t\t\t>\n\t\t\t\t<st-icon [icon]=\"iconClose\"></st-icon>\n\t\t\t</button>\n\t\t}\n\t\t<span data-st-chevron class=\"pointer-events-none inline-flex size-[1em] shrink-0 items-center justify-center\" aria-hidden=\"true\">\n\t\t\t<st-icon [icon]=\"iconChevronDown\"></st-icon>\n\t\t</span>\n\t</div>\n\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"overlayOrigin\"\n\t\t[cdkConnectedOverlayOpen]=\"isOpen\"\n\t\t[cdkConnectedOverlayPositions]=\"overlayPositions\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t[cdkConnectedOverlayWidth]=\"triggerWidth\"\n\t\t[cdkConnectedOverlayMinWidth]=\"triggerWidth\"\n\t\t(detach)=\"handleDetach()\"\n\t\t(overlayOutsideClick)=\"handleClickOutside($event)\"\n\t\t(positionChange)=\"onPositionChange($event)\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(field)\">\n\t\t\t<div\n\t\t\t\t[class]=\"'rounded-box shadow-overlay w-full ' + animationClasses()\"\n\t\t\t\t(animationend)=\"onAnimationEnd($event)\"\n\t\t\t\t[attr.data-state]=\"dataState\"\n\t\t\t\t[attr.data-side]=\"placement()?.side\"\n\t\t\t\t[attr.data-align]=\"placement()?.align\"\n\t\t\t>\n\t\t\t\t<div class=\"bg-base-200 rounded-box border-neutral overflow-hidden border border-solid\">\n\t\t\t\t\t<!-- Options List -->\n\t\t\t\t\t@let menuClass = this.menuClass();\n\t\t\t\t\t<ul\n\t\t\t\t\t\t[class]=\"menuClass\"\n\t\t\t\t\t\tcdkListbox\n\t\t\t\t\t\tcdkListboxUseActiveDescendant\n\t\t\t\t\t\taria-labelledby=\"Select options\"\n\t\t\t\t\t\trole=\"listbox\"\n\t\t\t\t\t\t#optionsList\n\t\t\t\t\t\t[tabindex]=\"0\"\n\t\t\t\t\t\t(keydown)=\"handleListboxKeydown($event)\"\n\t\t\t\t\t\t(selectionChange)=\"handleSelectionChange($event)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@for (option of options; track $index) {\n\t\t\t\t\t\t\t<li [cdkOption]=\"option\" class=\"group\" [attr.data-option-index]=\"$index\" [class.cdk-option-active]=\"isActiveOption($index)\">\n\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\tclass=\"group-[.cdk-option-active]:bg-base-300 font-body flex w-full items-center justify-between rounded-none px-4 py-2 text-left leading-normal font-normal text-pretty transition-colors duration-150 ease-in-out\"\n\t\t\t\t\t\t\t\t\t(click)=\"handleOptionSelect(option)\"\n\t\t\t\t\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<span class=\"min-w-0 flex-1 wrap-break-word whitespace-normal\">{{ getDisplayValue(option) }}</span>\n\n\t\t\t\t\t\t\t\t\t@if (isOptionSelected(option)) {\n\t\t\t\t\t\t\t\t\t\t<st-icon class=\"h-4 w-4 shrink-0\" [icon]=\"iconCheck\"></st-icon>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t<!-- Empty state -->\n\t\t\t\t\t\t@if (options.length === 0) {\n\t\t\t\t\t\t\t<li class=\"text-base-content-muted px-4 py-2 text-center\">\n\t\t\t\t\t\t\t\t<span>No options available</span>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t}\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n\n\t@if (label) {\n\t\t<label class=\"sr-only\" [for]=\"resolvedId()\">{{ label }}</label>\n\t}\n\n\t<!-- Additional content -->\n\t<ng-content></ng-content>\n</fieldset>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AA2DA;AACA;AACA;AAEA;;;AAGG;AACH,MAAM,eAAe,GAAG,GAAG,CAC1B;IACC,QAAQ;IACR,WAAW;IACX,aAAa;IACb,WAAW;IACX,aAAa;IACb,QAAQ;IACR,gBAAgB;IAChB,eAAe;IACf,UAAU;IACV,MAAM;IACN,SAAS;IACT,cAAc;CACd,EACD;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,CAAC,gBAAgB,CAAC;YAC3B,SAAS,EAAE,CAAC,kBAAkB,CAAC;YAC/B,QAAQ,EAAE,CAAC,iBAAiB,CAAC;YAC7B,MAAM,EAAE,CAAC,eAAe,CAAC;YACzB,IAAI,EAAE,CAAC,aAAa,CAAC;YACrB,OAAO,EAAE,CAAC,gBAAgB,CAAC;YAC3B,KAAK,EAAE,CAAC,cAAc,CAAC;YACvB,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC3B,SAAA;AACD,QAAA,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,WAAW,CAAC;YACjB,EAAE,EAAE,CAAC,WAAW,CAAC;YACjB,EAAE,EAAE,CAAC,WAAW,CAAC;YACjB,EAAE,EAAE,CAAC,WAAW,CAAC;YACjB,EAAE,EAAE,CAAC,WAAW,CAAC;AACjB,SAA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kCAAA,EAAA,oCAAA,CAAA,EAAA,OAAA,EAAA,CAAA,uBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,SAAS,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,IAAA,EAAA,WAAA,EAAA,yBAAA,EAAA,mBAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,aAAa,+FAAE,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAW3F,eAAe,EAAA,UAAA,EAAA,CAAA;kBAb3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,WACZ,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,CAAC,EAAA,SAAA,EAC7F;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAA,eAAiB;AAC5B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;qBACD,EAAA,eAAA,EAEgB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,y3KAAA,EAAA;;;AE9JhD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-forms-select.mjs","sources":["../../../projects/sdk/components/forms/select/src/select.component.ts","../../../projects/sdk/components/forms/select/src/select.component.html","../../../projects/sdk/components/forms/select/sixbell-telco-sdk-components-forms-select.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterRenderEffect,\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tmodel,\n\toutput,\n\tsignal,\n\tuntracked,\n\tviewChild,\n} from '@angular/core';\nimport { toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TranslatePipe, TranslateService } from '@ngx-translate/core';\nimport { injectFormFieldA11y, optionalBooleanAttribute } from '@sixbell-telco/sdk/components/forms/form-item';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\nimport { startWith, switchMap } from 'rxjs';\n\n// Angular CDK\nimport { CdkListbox, CdkOption } from '@angular/cdk/listbox';\nimport { ConnectedOverlayPositionChange, ConnectedPosition, OverlayModule } from '@angular/cdk/overlay';\nimport { PortalModule } from '@angular/cdk/portal';\n\n// Internal components\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\n\n// Icons\nimport { matCheckOutline, matCloseOutline, matKeyboardArrowDownOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { isPopoverMotionAnimation, PopoverPlacement, popoverPlacement, PopoverSide } from '@sixbell-telco/sdk/utils/popover-motion';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\n\n// ==============================================================================\n// TYPES AND INTERFACES\n// ==============================================================================\n\n/** Possible select dropdown style variants */\nexport type SelectVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'error' | 'warning' | null | undefined;\n\n/** Possible select dropdown size variants */\nexport type SelectSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for select styling */\nexport type SelectProps = {\n\tvariant?: SelectVariantProps;\n\tsize?: SelectSizeProps;\n};\n\n/**\n * How wide the options panel is: `'trigger'` copies the control's width, `'content'` grows to the widest option\n */\nexport type SelectPanelWidth = 'trigger' | 'content';\n\n/** Animation states for the select overlay */\ntype AnimationState = 'closed' | 'opening' | 'open' | 'closing';\n\n// ==============================================================================\n// COMPONENT STYLES\n// ==============================================================================\n\n/**\n * @internal\n * Generates base select classes with style variants\n */\nconst selectComponent = cva(\n\t[\n\t\t'w-full',\n\t\t'min-w-fit',\n\t\t'text-pretty',\n\t\t'font-body',\n\t\t'font-normal',\n\t\t'select',\n\t\t'leading-normal',\n\t\t'rounded-field',\n\t\t'relative',\n\t\t'flex',\n\t\t'min-h-0',\n\t\t'items-center',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tbase: [],\n\t\t\t\tprimary: ['select-primary'],\n\t\t\t\tsecondary: ['select-secondary'],\n\t\t\t\ttertiary: ['select-tertiary'],\n\t\t\t\taccent: ['select-accent'],\n\t\t\t\tinfo: ['select-info'],\n\t\t\t\tsuccess: ['select-success'],\n\t\t\t\terror: ['select-error'],\n\t\t\t\twarning: ['select-warning'],\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\txs: ['select-xs'],\n\t\t\t\tsm: ['select-sm'],\n\t\t\t\tmd: ['select-md'],\n\t\t\t\tlg: ['select-lg'],\n\t\t\t\txl: ['select-xl'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tvariant: 'base',\n\t\t\tsize: 'md',\n\t\t},\n\t},\n);\n\n/**\n * @internal\n * Classes of an option row; the option sizer uses them too, so it measures what the panel shows\n */\nconst OPTION_ROW_CLASS =\n\t'group-[.cdk-option-active]:bg-base-300 font-body flex w-full items-center justify-between rounded-none px-4 py-2 text-left leading-normal font-normal text-pretty transition-colors duration-150 ease-in-out group-data-disabled:cursor-not-allowed group-data-disabled:bg-transparent group-data-disabled:text-(--color-disabled-content) group-data-disabled:hover:bg-transparent';\n\n// ==============================================================================\n// COMPONENT\n// ==============================================================================\n\nlet nextSelectId = 0;\n\n/**\n * A customizable select dropdown component with CDK overlay integration\n *\n * @remarks\n * Uses the same visual design as the combobox but simplified for single selection only.\n * No search functionality or multi-select support. Implements ControlValueAccessor\n * for Angular form compatibility.\n *\n * @example\n * ```html\n * <!-- Basic usage with primitive values -->\n * <st-select\n * [options]=\"['Option 1', 'Option 2']\"\n * [(value)]=\"selectedValue\"\n * ></st-select>\n * ```\n *\n * @example\n * ```html\n * <!-- Object options with custom keys -->\n * <st-select\n * [options]=\"users\"\n * valueKey=\"id\"\n * displayKey=\"name\"\n * label=\"Select user\"\n * [parentForm]=\"userForm\"\n * formControlName=\"selectedUser\"\n * ></st-select>\n * ```\n */\n@Component({\n\tselector: 'st-select',\n\timports: [FormsModule, NgTemplateOutlet, OverlayModule, PortalModule, CdkListbox, CdkOption, IconComponent, TranslatePipe],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: SelectComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './select.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'[class.inline-block]': 'fitOptions()',\n\t\t'[class.align-top]': 'fitOptions()',\n\t\t'[class.shrink-0]': 'fitOptions()',\n\t},\n})\nexport class SelectComponent implements ControlValueAccessor {\n\t// ==============================================================================\n\t// SERVICES\n\t// ==============================================================================\n\n\t/** @internal Translation service instance */\n\ttranslateService = inject(TranslateService);\n\tprotected readonly themeDomService = inject(ThemeDomService);\n\n\t// ==============================================================================\n\t// INPUT PROPERTIES\n\t// ==============================================================================\n\n\t/**\n\t * Select dropdown style variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<SelectVariantProps>('base');\n\n\t/**\n\t * Select dropdown size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<SelectSizeProps>('md');\n\n\t/**\n\t * Whether to show optional indicator\n\t * @defaultValue false\n\t */\n\tshowOptional = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Optional indicator text (translation key or literal)\n\t * @defaultValue 'sdk.formFields.optional'\n\t */\n\toptionalText = input<string>('sdk.formFields.optional');\n\n\t/**\n\t * Mark the field as required: shows the `*` marker and announces the field as required.\n\t * When not set, the enclosing `st-form-item` `required`, then `Validators.required` on the bound control decide.\n\t */\n\trequired = input<boolean | undefined, unknown>(undefined, { transform: optionalBooleanAttribute });\n\n\t/** @internal Required state and hint ids from the enclosing `st-form-item`. */\n\tprotected readonly fieldA11y = injectFormFieldA11y({\n\t\trequired: () => this.required(),\n\t\tcontrol: () => this.formControl(),\n\t\tstatus: () => this.statusSignal(),\n\t});\n\n\t/**\n\t * Whether to use ghost (transparent) styling\n\t * @defaultValue false\n\t */\n\tghost = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * HTML name attribute for the select\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Id of the focusable control, used by its label. A unique id is generated when omitted.\n\t */\n\tinputId = input<string | null>(null);\n\n\t/** @internal */\n\tprivate readonly generatedId = `st-select-${nextSelectId++}`;\n\n\t/** @internal Id applied to the focusable control and referenced by its label */\n\tprotected readonly resolvedId = computed(() => this.inputId() || this.generatedId);\n\n\t/** @internal Id of the options listbox, referenced by the trigger's `aria-controls` */\n\tprotected readonly listboxId = `${this.generatedId}-listbox`;\n\n\t/** @internal Id of the visually hidden label, which names the listbox */\n\tprotected readonly labelId = `${this.generatedId}-label`;\n\n\t/**\n\t * Placeholder text when no option is selected\n\t */\n\tplaceholder = input<string>('');\n\n\t/**\n\t * Label text displayed above the select\n\t */\n\tlabel = input<string>('');\n\n\t/**\n\t * Two-way bindable selected value\n\t */\n\tvalue = model<any>();\n\n\t/**\n\t * Array of available options (primitives or objects)\n\t */\n\toptions = input<any[]>([]);\n\n\t/**\n\t * The object property to use for display text when options are objects\n\t * Falls back to common property names if not specified\n\t */\n\tdisplayKey = input<string>('');\n\n\t/**\n\t * The object property to use as the value when options are objects\n\t * Uses the entire object if not specified\n\t */\n\tvalueKey = input<string>('');\n\n\t/**\n\t * The object property that marks an option as disabled when truthy.\n\t * A disabled option stays in the list (and in search results), is dimmed,\n\t * carries `aria-disabled=\"true\"` and cannot be chosen by click or keyboard.\n\t * Leave empty to keep every option enabled.\n\t */\n\tdisabledKey = input<string>('');\n\n\t/**\n\t * The object property holding a secondary text shown right-aligned on the option row\n\t * (for example why it is disabled: \"Already added\"). It is part of the\n\t * option's accessible name.\n\t */\n\tdescriptionKey = input<string>('');\n\n\t/**\n\t * The object property naming the group an option belongs to. Options that share a value are listed\n\t * together under one header showing that value, groups in the order they first appear, each group\n\t * named by its header for assistive technology. Options without the property are listed first,\n\t * ungrouped. Headers cannot be chosen and the arrow keys skip them. Leave empty for a flat list.\n\t */\n\tgroupKey = input<string>('');\n\n\t/**\n\t * The object property that marks an option as already taken outside this field when truthy (for\n\t * example a country added earlier). The option shows the check icon, in the option's own color, but\n\t * it is not part of the value and never appears in the trigger. Pair it with `disabledKey` so it is\n\t * dimmed, check included, and cannot be chosen again.\n\t */\n\tcheckedKey = input<string>('');\n\n\t/**\n\t * Whether to show a clear button next to the selected value\n\t * @default true\n\t */\n\tallowClear = input(true, { transform: booleanAttribute });\n\n\t/**\n\t * Width of the options panel.\n\t * - `'trigger'`: as wide as the control; a long option wraps onto more lines.\n\t * - `'content'`: at least as wide as the control and wider when an option needs it, up to\n\t * `min(28rem, 100vw - 2rem)`. Options stay on one line; past that cap the description, then the label,\n\t * end in an ellipsis and the row shows its full text as a tooltip. Near the viewport edge the panel\n\t * aligns to the control's end instead of overflowing.\n\t * @defaultValue 'trigger'\n\t */\n\tpanelWidth = input<SelectPanelWidth>('trigger');\n\n\t/**\n\t * Size the closed control to its widest option or the placeholder, measured with the option row's own\n\t * font, padding and check icon for the current `size`. A selected value never truncates and the control\n\t * keeps its width between selections. The panel then follows its options as with `panelWidth=\"content\"`.\n\t * The control does not shrink in a flex row (`shrink-0`); `min-w-*` and `w-*` classes on the element still apply.\n\t * @defaultValue false\n\t */\n\tfitOptions = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Parent form group for reactive forms\n\t */\n\tparentForm = input<FormGroup | null>(null);\n\n\t/**\n\t * Form control name for reactive forms\n\t */\n\tformControlName = input<string>('');\n\n\t/**\n\t * Whether the select is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * Event emitted when select loses focus\n\t */\n\tblurred = output<unknown>();\n\n\t/**\n\t * Event emitted when selection changes\n\t */\n\tvalueUpdated = output<any>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (click or keyboard)\n\t */\n\ttriggered = output<void>();\n\n\t// ==============================================================================\n\t// ICONS\n\t// ==============================================================================\n\n\t/** Custom field chevron (DaisyUI native triangles stay hidden) */\n\ticonChevronDown = matKeyboardArrowDownOutline;\n\t/** Check icon for selected options */\n\ticonCheck = matCheckOutline;\n\t/** Close/clear icon */\n\ticonClose = matCloseOutline;\n\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal Name of the icon-only clear button. */\n\tprotected readonly clearSelectionLabel = computed(() => this.translateLabel({ key: 'sdk.select.clearSelection', fallback: 'Clear selection' }));\n\n\t/** @internal Text of the empty listbox */\n\tprotected readonly noOptionsLabel = computed(() => this.translateLabel({ key: 'sdk.select.noOptions', fallback: 'No options available' }));\n\n\t// ==============================================================================\n\t// PRIVATE PROPERTIES\n\t// ==============================================================================\n\n\t/** Current animation state of the overlay */\n\tprivate readonly animationState = signal<AnimationState>('closed');\n\t/** Set when the exit animation already ran the close cleanup, so the detach that follows does not repeat it */\n\tprivate exitSettled = false;\n\t/** Trigger for blur events in form validation */\n\tprivate readonly blurTrigger = signal(0);\n\t/** Active option index for keyboard navigation */\n\tprivate readonly activeOptionIndex = signal<number>(-1);\n\n\t// ==============================================================================\n\t// VIEW CHILDREN\n\t// ==============================================================================\n\n\t/** Reference to the field shell (CDK overlay origin) */\n\tfieldRef = viewChild<ElementRef<HTMLElement>>('field');\n\n\t/** Reference to the trigger button element */\n\ttriggerRef = viewChild<ElementRef<HTMLButtonElement>>('trigger');\n\n\t/** Reference to the options list container */\n\toptionsList = viewChild<ElementRef<HTMLDivElement>>('optionsList');\n\n\t/** Reference to the CDK listbox for keyboard navigation */\n\tlistbox = viewChild<CdkListbox>('listbox');\n\n\t// ==============================================================================\n\t// SIGNALS\n\t// ==============================================================================\n\n\t/** Width of the trigger button for overlay positioning */\n\ttriggerWidth = signal<number>(0);\n\n\t/** Tracks the overlay position to determine animation direction */\n\tprivate readonly currentPosition = signal<ConnectedPosition | null>(null);\n\n\t/** Overlay positions with a symmetric 4px trigger gap (below first, flip above) */\n\treadonly overlayPositions: ConnectedPosition[] = [\n\t\t{ originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },\n\t\t{ originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -4 },\n\t];\n\n\t/** @internal Content-width panel positions: a panel wider than the control aligns to its end near the viewport edge */\n\tprivate readonly contentOverlayPositions: ConnectedPosition[] = [\n\t\t{ originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },\n\t\t{ originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetY: 4 },\n\t\t{ originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -4 },\n\t\t{ originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', offsetY: -4 },\n\t];\n\n\t/** @internal Whether the panel sizes to its options (`panelWidth=\"content\"` or `fitOptions`) */\n\tprotected readonly contentPanel = computed(() => this.fitOptions() || this.panelWidth() === 'content');\n\n\t/** @internal Positions bound to the overlay */\n\tprotected readonly activeOverlayPositions = computed(() => (this.contentPanel() ? this.contentOverlayPositions : this.overlayPositions));\n\n\t/** @internal Fixed overlay width: the trigger width, or none when the panel sizes to its options */\n\tprotected readonly overlayWidth = computed<number | string>(() => (this.contentPanel() ? '' : this.triggerWidth()));\n\n\t/** @internal Classes of the panel box */\n\tprotected readonly panelClass = computed(() =>\n\t\tcn(\n\t\t\t'rounded-box shadow-overlay',\n\t\t\tthis.contentPanel() ? 'w-max max-w-[min(28rem,calc(100vw-2rem))] min-w-full' : 'w-full',\n\t\t\tthis.animationClasses(),\n\t\t),\n\t);\n\n\t/**\n\t * @internal\n\t * Classes of the hidden option sizer: the panel's menu size, so rows measure alike, plus a reserved scrollbar\n\t * gutter, so a list that scrolls keeps the width of one that does not; capped like the panel, so a long\n\t * option cannot widen the control past the panel\n\t */\n\tprotected readonly optionSizerClass = computed(() =>\n\t\tcn(\n\t\t\t'menu pointer-events-none invisible h-0 max-w-[min(28rem,calc(100vw-2rem))] scrollbar-gutter-stable flex-nowrap overflow-hidden p-0',\n\t\t\tthis.menuSizeClass(),\n\t\t),\n\t);\n\n\t/** @internal Classes of an option row */\n\tprotected readonly optionRowClass = OPTION_ROW_CLASS;\n\n\t/** @internal Texts the closed control must fit with `fitOptions`: the placeholder and every option label */\n\tprotected readonly valueSizerLabels = computed(() => [\n\t\tthis.translatedPlaceholder(),\n\t\t...this.options().map((option) => this.getDisplayValue(option)),\n\t]);\n\n\t/** Real placement of the open panel, bound to `data-side` / `data-align`; null until the CDK places it */\n\treadonly placement = computed<PopoverPlacement | null>(() => {\n\t\tconst position = this.currentPosition();\n\t\treturn position ? popoverPlacement(position) : null;\n\t});\n\n\t/**\n\t * Side of the field the panel opened on (`'bottom'` until the CDK places it)\n\t * @deprecated Read `data-side` on the panel instead; kept for compatibility\n\t */\n\tanimationDirection = computed<PopoverSide>(() => this.placement()?.side ?? 'bottom');\n\n\t/**\n\t * Class of the panel: the shared `popover-motion` utility driven by `data-state` and `data-side`\n\t * @deprecated Kept for compatibility; the motion lives in the `popover-motion` utility\n\t */\n\tanimationClasses = computed(() => 'popover-motion');\n\n\t// ==============================================================================\n\t// FORM CONTROL INTEGRATION\n\t// ==============================================================================\n\n\t/** Form control reference for reactive forms */\n\tprivate readonly formControl = computed(() => this.parentForm()?.get(this.formControlName()) as FormControl | null);\n\t/** Observable stream of form control */\n\tprivate readonly formControl$ = toObservable(this.formControl);\n\t/** Stream of form control status changes */\n\tprivate readonly statusChanges$ = this.formControl$.pipe(switchMap((control) => control?.statusChanges.pipe(startWith(control.status)) || []));\n\t/** Stream of form control value changes */\n\tprivate readonly stateChanges$ = this.formControl$.pipe(switchMap((control) => control?.valueChanges.pipe(startWith(control.value)) || []));\n\t/** Signal for form control status */\n\tprivate readonly statusSignal = toSignal(this.statusChanges$);\n\t/** Signal for form control state */\n\tprivate readonly stateSignal = toSignal(this.stateChanges$);\n\n\t// ==============================================================================\n\t// CONTROL VALUE ACCESSOR\n\t// ==============================================================================\n\n\t/** Callback function for value changes */\n\tprivate onChange = (value: any) => {};\n\t/** Callback function for touch events */\n\tprivate onTouched = () => {};\n\t/** Value written through the accessor while no options were bound yet */\n\tprivate pendingValue: any = null;\n\n\t// ==============================================================================\n\t// COMPUTED PROPERTIES\n\t// ==============================================================================\n\n\t/**\n\t * Whether the overlay is currently open or in the process of opening/closing\n\t * @returns True if overlay is visible or animating\n\t */\n\tisOpen = computed(() => {\n\t\tconst state = this.animationState();\n\t\treturn state === 'opening' || state === 'open' || state === 'closing';\n\t});\n\n\t/**\n\t * Whether the overlay is currently animating to open state\n\t * @returns True if overlay is opening or open\n\t */\n\tisAnimatingOpen = computed(() => {\n\t\tconst state = this.animationState();\n\t\treturn state === 'opening' || state === 'open';\n\t});\n\n\t/**\n\t * Current animation state for template binding\n\t * @returns Current animation state\n\t */\n\tdataState = computed(() => this.animationState());\n\n\t/**\n\t * Display value for the selected option\n\t * @returns Formatted display string for the current selection\n\t */\n\tdisplayValue = computed(() => {\n\t\tconst currentValue = this.value();\n\t\tif (!currentValue) return this.translatedPlaceholder();\n\n\t\t// If the current value is a string that matches one of the options, display it\n\t\tconst options = this.options();\n\t\tconst matchingOption = options.find((option) => {\n\t\t\tif (typeof option === 'string' && typeof currentValue === 'string') {\n\t\t\t\treturn option === currentValue;\n\t\t\t}\n\t\t\t// For objects, check if the current value matches the option or its value property\n\t\t\tconst optionValue = this.getOptionValue(option);\n\t\t\tconst currentOptionValue = this.getOptionValue(currentValue);\n\t\t\treturn optionValue === currentOptionValue || option === currentValue;\n\t\t});\n\n\t\tif (matchingOption) {\n\t\t\treturn this.getDisplayValue(matchingOption);\n\t\t}\n\n\t\t// If no matching option found, show placeholder (invalid value)\n\t\treturn this.translatedPlaceholder();\n\t});\n\n\t/**\n\t * Whether the clear button should be shown\n\t * @returns True if there's a valid selected value and clear is allowed\n\t */\n\tshowClearButton = computed(() => {\n\t\tif (!this.allowClear() || this.disabled()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst currentValue = this.value();\n\t\tif (!currentValue) return false;\n\n\t\t// Only show clear button if the value is valid (exists in options)\n\t\tconst options = this.options();\n\t\treturn options.some((option) => {\n\t\t\tif (typeof option === 'string' && typeof currentValue === 'string') {\n\t\t\t\treturn option === currentValue;\n\t\t\t}\n\t\t\t// For objects, check if the current value matches the option or its value property\n\t\t\tconst optionValue = this.getOptionValue(option);\n\t\t\tconst currentOptionValue = this.getOptionValue(currentValue);\n\t\t\treturn optionValue === currentOptionValue || option === currentValue;\n\t\t});\n\t});\n\n\t/**\n\t * Translated placeholder text\n\t * @returns Translated placeholder or input value\n\t */\n\ttranslatedPlaceholder = computed(() => {\n\t\tconst customPlaceholder = this.placeholder();\n\t\treturn customPlaceholder || this.translateService.instant('sdk.select.placeholder');\n\t});\n\n\t/**\n\t * @internal\n\t * Computed base select classes\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tselectComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{ 'select-ghost': this.ghost() },\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed error state classes\n\t */\n\terrorClass = computed(() => {\n\t\treturn cn(\n\t\t\tselectComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{ 'select-ghost': this.ghost() },\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed success state classes\n\t */\n\tsuccessClass = computed(() => {\n\t\treturn cn(\n\t\t\tselectComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{ 'select-ghost': this.ghost() },\n\t\t);\n\t});\n\n\t/**\n\t * Validation-aware CSS classes based on form control state\n\t * @internal\n\t */\n\tvalidationClass = computed(() => {\n\t\tconst control = this.formControl();\n\t\tconst trigger = this.blurTrigger();\n\n\t\tif (!control) return this.componentClass();\n\n\t\tconst isTouched = control.touched || trigger > 0;\n\t\tthis.statusSignal();\n\t\tthis.stateSignal();\n\n\t\tif (control.dirty || isTouched) {\n\t\t\tif (control.invalid) return this.errorClass();\n\t\t\tif (control.valid) return this.successClass();\n\t\t}\n\n\t\treturn this.componentClass();\n\t});\n\n\t/**\n\t * @internal\n\t * Options in the order they are listed: ungrouped first, then each `groupKey` group\n\t */\n\tprotected readonly optionSections = computed(() => this.groupOptions(this.options()));\n\n\t/**\n\t * @internal\n\t * Options in the order they are listed, which keyboard navigation and `data-option-index` follow\n\t */\n\tprotected readonly orderedOptions = computed<any[]>(() =>\n\t\tthis.groupKey() ? this.optionSections().flatMap((section) => section.options.map((entry) => entry.option)) : this.options(),\n\t);\n\n\t/**\n\t * CSS classes for the options menu\n\t * @internal\n\t */\n\tmenuClass = computed(() => {\n\t\treturn cn(\n\t\t\t'menu scroll-fade-y max-h-72 w-full flex-nowrap overflow-y-auto overscroll-contain p-0 focus-within:outline-hidden focus:outline-hidden focus-visible:outline-hidden',\n\t\t\tthis.menuSizeClass(),\n\t\t);\n\t});\n\n\t/** @internal Menu size modifier shared by the options list and the option sizer */\n\tprivate readonly menuSizeClass = computed(() => {\n\t\tconst size = this.size();\n\t\treturn size ? `menu-${size}` : '';\n\t});\n\n\t// ==============================================================================\n\t// LIFECYCLE METHODS\n\t// ==============================================================================\n\n\t/**\n\t * Updates the trigger width for proper overlay positioning\n\t */\n\tprivate readonly triggerWidthEffect = afterRenderEffect(() => {\n\t\tthis.updateTriggerWidth();\n\t});\n\n\t// ==============================================================================\n\t// CONTROL VALUE ACCESSOR IMPLEMENTATION\n\t// ==============================================================================\n\n\t/**\n\t * Writes a new value to the component\n\t * @param value - The new value to set\n\t */\n\twriteValue(value: any): void {\n\t\tif (!value) {\n\t\t\tthis.pendingValue = null;\n\t\t\tthis.value.set(value);\n\t\t\treturn;\n\t\t}\n\n\t\tconst options = this.options();\n\t\tif (this.hasOption(options, value)) {\n\t\t\tthis.pendingValue = null;\n\t\t\tthis.value.set(value);\n\t\t\treturn;\n\t\t}\n\n\t\t// Options may still be loading or be replaced: keep the raw value and resolve it when a matching option arrives\n\t\tthis.pendingValue = value;\n\t\tthis.value.set(null);\n\t}\n\n\t/**\n\t * Resolves a value written before its option existed once the options arrive.\n\t * Never calls onChange: the form already holds the value.\n\t */\n\tprivate readonly pendingValueEffect = effect(() => {\n\t\tconst options = this.options();\n\t\tuntracked(() => {\n\t\t\tconst pending = this.pendingValue;\n\t\t\tif (pending === null || !this.hasOption(options, pending)) return;\n\t\t\tthis.pendingValue = null;\n\t\t\tthis.value.set(pending);\n\t\t});\n\t});\n\n\tprivate hasOption(options: any[], value: any): boolean {\n\t\treturn options.some((option) => {\n\t\t\tif (typeof option === 'string' && typeof value === 'string') {\n\t\t\t\treturn option === value;\n\t\t\t}\n\t\t\t// For objects, check if the value matches the option or its value property\n\t\t\treturn this.getOptionValue(option) === this.getOptionValue(value) || option === value;\n\t\t});\n\t}\n\n\t/**\n\t * Registers a callback function to be called when the value changes\n\t * @param fn - The callback function\n\t */\n\tregisterOnChange(fn: (value: any) => void): void {\n\t\tthis.onChange = fn;\n\t}\n\n\t/**\n\t * Registers a callback function to be called when the component is touched\n\t * @param fn - The callback function\n\t */\n\tregisterOnTouched(fn: () => void): void {\n\t\tthis.onTouched = fn;\n\t}\n\n\t/**\n\t * Sets the disabled state of the component\n\t * @param isDisabled - Whether the component should be disabled\n\t */\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// ==============================================================================\n\t// PUBLIC METHODS\n\t// ==============================================================================\n\n\t/**\n\t * Toggles the overlay open/closed state\n\t * Handles focus management and animation state transitions\n\t */\n\ttoggleOverlay() {\n\t\tconst currentState = this.animationState();\n\n\t\tif (currentState === 'closed') {\n\t\t\tthis.updateTriggerWidth();\n\t\t\tthis.animationState.set('opening');\n\t\t\t// Set first option as active and focus listbox after opening\n\t\t\tsetTimeout(() => {\n\t\t\t\tif (this.animationState() !== 'opening' && this.animationState() !== 'open') return;\n\t\t\t\tthis.setDefaultActiveOption();\n\t\t\t\t// Focus the listbox for keyboard navigation\n\t\t\t\tthis.optionsList()?.nativeElement?.focus();\n\t\t\t}, 100);\n\t\t} else if (currentState === 'open') {\n\t\t\tthis.animationState.set('closing');\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation on trigger\n\t */\n\thandleClick(event: MouseEvent) {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t\tthis.toggleOverlay();\n\t}\n\n\t/**\n\t * Open from decorative chevron hits that miss the trigger button.\n\t * Clear and the trigger already handle their own clicks.\n\t */\n\thandleFieldChromeClick(event: MouseEvent) {\n\t\tif ((event.target as HTMLElement).closest('button')) return;\n\t\tthis.handleClick(event);\n\t}\n\n\t/**\n\t * Handles animation end events to update state\n\t * @param event - The animation event\n\t */\n\tonAnimationEnd(event: AnimationEvent) {\n\t\tif (event.target !== event.currentTarget) return;\n\t\tif (this.animationState() === 'opening' && isPopoverMotionAnimation(event, 'opening')) {\n\t\t\tthis.animationState.set('open');\n\t\t} else if (this.animationState() === 'closing' && isPopoverMotionAnimation(event, 'closing')) {\n\t\t\tthis.exitSettled = true;\n\t\t\tthis.animationState.set('closed');\n\t\t\tthis.currentPosition.set(null);\n\t\t\tthis.activeOptionIndex.set(-1);\n\t\t\tthis.triggerBlur();\n\t\t\t// Return focus to trigger\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.triggerRef()?.nativeElement?.focus();\n\t\t\t}, 0);\n\t\t}\n\t}\n\n\t/**\n\t * Handles overlay detachment\n\t * Cleans up state and triggers blur\n\t */\n\thandleDetach() {\n\t\tif (this.exitSettled) {\n\t\t\tthis.exitSettled = false;\n\t\t\treturn;\n\t\t}\n\t\tthis.animationState.set('closed');\n\t\tthis.currentPosition.set(null);\n\t\tthis.activeOptionIndex.set(-1);\n\t\tthis.triggerBlur();\n\t\t// Return focus to trigger\n\t\tsetTimeout(() => {\n\t\t\tthis.triggerRef()?.nativeElement?.focus();\n\t\t}, 0);\n\t}\n\n\t/**\n\t * Handles overlay position changes to determine animation direction\n\t * @param event - The position change event from CDK overlay\n\t */\n\tonPositionChange(event: ConnectedOverlayPositionChange): void {\n\t\tthis.currentPosition.set(event?.connectionPair || null);\n\t}\n\n\t/**\n\t * Handles clicks outside the component\n\t * @param event - The mouse event\n\t */\n\thandleClickOutside(event: MouseEvent) {\n\t\tconst state = this.animationState();\n\t\tif (state === 'opening' || state === 'open') {\n\t\t\tthis.animationState.set('closing');\n\t\t}\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\t// A panel that is shown blurs when its exit animation ends\n\t\tif (state === 'closed') {\n\t\t\tthis.triggerBlur();\n\t\t}\n\t}\n\n\t/**\n\t * Handles option selection\n\t * @param option - The selected option\n\t */\n\thandleOptionSelect(option: any) {\n\t\tif (this.isOptionDisabled(option)) return;\n\t\tthis.pendingValue = null;\n\t\tthis.value.set(option);\n\t\tthis.onChange(option);\n\t\tthis.onTouched();\n\t\tthis.valueUpdated.emit(option);\n\t\tthis.animationState.set('closing');\n\t}\n\n\t/**\n\t * Handles CDK listbox selection changes\n\t * @param event - The selection change event\n\t */\n\thandleSelectionChange(event: any) {\n\t\tif (event.option) {\n\t\t\tthis.handleOptionSelect(event.option.value);\n\t\t}\n\t}\n\n\t/**\n\t * Handles keyboard events for option selection\n\t * @param event - The keyboard event\n\t */\n\thandleListboxKeydown(event: KeyboardEvent) {\n\t\tconst options = this.orderedOptions();\n\t\tconst currentIndex = this.activeOptionIndex();\n\n\t\tswitch (event.key) {\n\t\t\tcase 'ArrowDown': {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (this.stopPropagation()) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t}\n\t\t\t\tconst nextIndex = this.findEnabledIndex(options, currentIndex < options.length - 1 ? currentIndex : -1, 1);\n\t\t\t\tthis.setActiveOption(nextIndex);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase 'ArrowUp': {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (this.stopPropagation()) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t}\n\t\t\t\tconst prevIndex = this.findEnabledIndex(options, currentIndex > 0 ? currentIndex : options.length, -1);\n\t\t\t\tthis.setActiveOption(prevIndex);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase 'Home':\n\t\t\tcase 'End': {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (this.stopPropagation()) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t}\n\t\t\t\tconst edgeIndex = event.key === 'Home' ? this.findEnabledIndex(options, -1, 1) : this.findEnabledIndex(options, options.length, -1);\n\t\t\t\tthis.setActiveOption(edgeIndex);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase 'Enter':\n\t\t\tcase ' ':\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (this.stopPropagation()) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t}\n\t\t\t\tif (currentIndex >= 0 && currentIndex < options.length) {\n\t\t\t\t\tthis.handleOptionSelect(options[currentIndex]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase 'Escape':\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (this.stopPropagation()) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t}\n\t\t\t\tthis.animationState.set('closing');\n\t\t\t\tthis.activeOptionIndex.set(-1);\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\t/**\n\t * Handles keyboard events on the trigger button\n\t * @param event - The keyboard event\n\t */\n\thandleTriggerKeydown(event: KeyboardEvent) {\n\t\tif (event.key === 'Enter') {\n\t\t\tif (this.stopPropagation()) {\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t\tthis.keyDownEnter.emit(event);\n\t\t\tthis.triggered.emit();\n\t\t}\n\t\tif (event.key === ' ') {\n\t\t\tif (this.stopPropagation()) {\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t\tthis.keyDownSpace.emit(event);\n\t\t\tthis.triggered.emit();\n\t\t}\n\t\tswitch (event.key) {\n\t\t\tcase 'ArrowDown':\n\t\t\tcase 'ArrowUp':\n\t\t\tcase 'Enter':\n\t\t\tcase ' ':\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (this.animationState() === 'closed') {\n\t\t\t\t\tthis.toggleOverlay();\n\t\t\t\t} else {\n\t\t\t\t\t// If already open, handle navigation\n\t\t\t\t\tthis.handleListboxKeydown(event);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'Escape':\n\t\t\t\tif (this.animationState() === 'open') {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tif (this.stopPropagation()) {\n\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t}\n\t\t\t\t\tthis.animationState.set('closing');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\t/**\n\t * Clears the current selection\n\t */\n\tclearSelection() {\n\t\tthis.pendingValue = null;\n\t\tthis.value.set(null);\n\t\tthis.onChange(null);\n\t\tthis.onTouched();\n\t\tthis.valueUpdated.emit(null);\n\t}\n\n\t/**\n\t * Handles clear selection button click\n\t * @param event - The click event\n\t */\n\thandleClearSelection(event: Event) {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tthis.clearSelection();\n\t\tif (this.isOpen()) {\n\t\t\tthis.toggleOverlay();\n\t\t}\n\t}\n\n\t/**\n\t * Checks if an option is currently selected\n\t * @param option - The option to check\n\t * @returns True if the option is selected\n\t */\n\tisOptionSelected(option: any): boolean {\n\t\tconst currentValue = this.value();\n\t\tif (!currentValue) return false;\n\n\t\t// Direct comparison for strings\n\t\tif (typeof option === 'string' && typeof currentValue === 'string') {\n\t\t\treturn option === currentValue;\n\t\t}\n\n\t\t// For objects or mixed types, compare values\n\t\tconst optionValue = this.getOptionValue(option);\n\t\tconst currentValueForComparison = this.getOptionValue(currentValue);\n\n\t\t// Also check direct object equality\n\t\treturn optionValue === currentValueForComparison || option === currentValue;\n\t}\n\n\t/**\n\t * Checks if an option is currently active for keyboard navigation\n\t * @param index - The option index\n\t * @returns True if the option is active\n\t */\n\tisActiveOption(index: number): boolean {\n\t\treturn this.activeOptionIndex() === index;\n\t}\n\n\t/**\n\t * Whether an option is disabled through `disabledKey`\n\t * @param option - The option to check\n\t * @returns True if the option cannot be chosen\n\t */\n\tisOptionDisabled(option: any): boolean {\n\t\tconst disabledKey = this.disabledKey();\n\t\treturn !!disabledKey && !!option && typeof option === 'object' && !!option[disabledKey];\n\t}\n\n\t/**\n\t * Whether an option is marked as already taken through `checkedKey`\n\t * @param option - The option to check\n\t * @returns True if the option shows the check without being part of the value\n\t */\n\tisOptionChecked(option: any): boolean {\n\t\tconst checkedKey = this.checkedKey();\n\t\treturn !!checkedKey && !!option && typeof option === 'object' && !!option[checkedKey];\n\t}\n\n\t/**\n\t * Gets the secondary text for an option through `descriptionKey`\n\t * @param option - The option to read\n\t * @returns The secondary text, or an empty string\n\t */\n\tgetOptionDescription(option: any): string {\n\t\tconst descriptionKey = this.descriptionKey();\n\t\tif (!descriptionKey || !option || typeof option !== 'object') return '';\n\t\tconst description = option[descriptionKey];\n\t\treturn description === undefined || description === null ? '' : String(description);\n\t}\n\n\t/**\n\t * Gets the display value for an option\n\t * @param option - The option to get display value for\n\t * @returns The display string for the option\n\t */\n\tgetDisplayValue(option: any): string {\n\t\tif (!option) return '';\n\t\tconst displayKey = this.displayKey();\n\n\t\tif (displayKey && typeof option === 'object') {\n\t\t\treturn option[displayKey] || '';\n\t\t}\n\n\t\tif (typeof option === 'object') {\n\t\t\tconst commonKeys = ['name', 'label', 'text', 'title', 'displayName'];\n\t\t\tfor (const key of commonKeys) {\n\t\t\t\tif (option[key] !== undefined && option[key] !== null) {\n\t\t\t\t\treturn String(option[key]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst keys = Object.keys(option);\n\t\t\tfor (const key of keys) {\n\t\t\t\tconst value = option[key];\n\t\t\t\tif (typeof value === 'string' || typeof value === 'number') {\n\t\t\t\t\treturn String(value);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn JSON.stringify(option);\n\t\t}\n\n\t\treturn String(option);\n\t}\n\n\t// ==============================================================================\n\t// PRIVATE METHODS\n\t// ==============================================================================\n\n\t/**\n\t * Updates the trigger button width for overlay positioning\n\t */\n\tprivate updateTriggerWidth() {\n\t\t// Fractional widths round up: rounding down would make an option that exactly fills the control wrap\n\t\tconst width = Math.ceil(this.fieldRef()?.nativeElement.getBoundingClientRect().width ?? 0);\n\t\tif (!width) return;\n\t\tthis.triggerWidth.set(width);\n\t}\n\n\t/**\n\t * @internal\n\t * On hover of a single-line option, shows its full text as a tooltip when its label or description is cut off\n\t * @param event - The pointer event on the option row\n\t * @param option - The option the row shows\n\t */\n\tprotected syncOptionTitle(event: Event, option: any): void {\n\t\tthis.syncRowTitle(event.currentTarget as HTMLElement, option);\n\t}\n\n\t/**\n\t * Sets the full-text tooltip of an option row when its label or description is cut off, or removes it;\n\t * runs on hover and when the row becomes the keyboard-active one\n\t * @param row - The option row\n\t * @param option - The option the row shows\n\t */\n\tprivate syncRowTitle(row: HTMLElement, option: any): void {\n\t\tconst parts = row.querySelectorAll<HTMLElement>('[data-st-option-label], [data-st-option-description]');\n\t\tconst truncated = Array.from(parts).some((part) => part.scrollWidth > part.clientWidth);\n\t\tif (truncated) {\n\t\t\trow.setAttribute('title', this.getOptionFullText(option));\n\t\t} else {\n\t\t\trow.removeAttribute('title');\n\t\t}\n\t}\n\n\t/**\n\t * Gets the full text of an option: its label, then its description when it has one\n\t * @param option - The option to read\n\t * @returns The text shown as the tooltip of a truncated option\n\t */\n\tprivate getOptionFullText(option: any): string {\n\t\tconst description = this.getOptionDescription(option);\n\t\tconst label = this.getDisplayValue(option);\n\t\treturn description ? `${label}, ${description}` : label;\n\t}\n\n\t/**\n\t * Gets the value property from an option\n\t * @param option - The option to get value from\n\t * @returns The option value\n\t */\n\tprivate getOptionValue(option: any): any {\n\t\tif (!option) return option;\n\t\tconst valueKey = this.valueKey();\n\t\treturn valueKey && typeof option === 'object' ? option[valueKey] : option;\n\t}\n\n\t/**\n\t * Gets the group an option belongs to through `groupKey`\n\t * @param option - The option to read\n\t * @returns The group name, or null when the option is ungrouped\n\t */\n\tprivate getOptionGroup(option: any): string | null {\n\t\tconst groupKey = this.groupKey();\n\t\tif (!groupKey || !option || typeof option !== 'object') return null;\n\t\tconst group = option[groupKey];\n\t\treturn group === undefined || group === null || group === '' ? null : String(group);\n\t}\n\n\t/**\n\t * Splits options into the ungrouped run, listed first, and one section per group in first-appearance order.\n\t * `index` is the option's position in the listed order; `headerId` is unique per instance.\n\t * @param options - The options to list\n\t * @returns The sections to render\n\t */\n\tprivate groupOptions(options: any[]): { label: string | null; headerId: string | null; options: { option: any; index: number }[] }[] {\n\t\tconst ungrouped: any[] = [];\n\t\tconst groups = new Map<string, any[]>();\n\t\tfor (const option of options) {\n\t\t\tconst group = this.getOptionGroup(option);\n\t\t\tif (group === null) {\n\t\t\t\tungrouped.push(option);\n\t\t\t} else {\n\t\t\t\tgroups.set(group, [...(groups.get(group) ?? []), option]);\n\t\t\t}\n\t\t}\n\n\t\tlet index = 0;\n\t\tconst entries = (list: any[]) => list.map((option) => ({ option, index: index++ }));\n\t\tconst sections: { label: string | null; headerId: string | null; options: { option: any; index: number }[] }[] = [];\n\t\tif (ungrouped.length > 0) {\n\t\t\tsections.push({ label: null, headerId: null, options: entries(ungrouped) });\n\t\t}\n\t\tlet groupIndex = 0;\n\t\tfor (const [label, list] of groups) {\n\t\t\tsections.push({ label, headerId: `${this.listboxId}-group-${groupIndex++}`, options: entries(list) });\n\t\t}\n\t\treturn sections;\n\t}\n\n\t/**\n\t * Triggers blur event for form validation\n\t */\n\tprivate triggerBlur() {\n\t\tthis.blurTrigger.update((val) => val + 1);\n\t\tthis.onTouched();\n\t\tthis.blurred.emit(this.value());\n\t}\n\n\t/**\n\t * Finds the next enabled option index, wrapping around the list\n\t * @param options - The options being navigated\n\t * @param from - The index to start from (exclusive)\n\t * @param step - 1 to move down, -1 to move up\n\t * @returns The index of the next enabled option, or -1 if every option is disabled\n\t */\n\tprivate findEnabledIndex(options: any[], from: number, step: 1 | -1): number {\n\t\tconst count = options.length;\n\t\tfor (let offset = 1; offset <= count; offset++) {\n\t\t\tconst index = (((from + step * offset) % count) + count) % count;\n\t\t\tif (!this.isOptionDisabled(options[index])) return index;\n\t\t}\n\t\treturn -1;\n\t}\n\n\t/**\n\t * Sets the active option for keyboard navigation\n\t * @param index - The index of the option to make active\n\t */\n\tprivate setActiveOption(index: number) {\n\t\tthis.activeOptionIndex.set(index);\n\t\tthis.updateActiveOptionVisually();\n\t}\n\n\t/**\n\t * Makes the selected option active when the panel opens, so the highlight and the check sit on the same row;\n\t * without an enabled selected option, the first enabled one\n\t */\n\tprivate setDefaultActiveOption() {\n\t\tconst options = this.orderedOptions();\n\t\tif (options.length > 0) {\n\t\t\tconst selectedIndex = options.findIndex((option) => this.isOptionSelected(option) && !this.isOptionDisabled(option));\n\t\t\tthis.setActiveOption(selectedIndex >= 0 ? selectedIndex : this.findEnabledIndex(options, -1, 1));\n\t\t}\n\t}\n\n\t/**\n\t * Updates the visual state of the active option\n\t */\n\tprivate updateActiveOptionVisually() {\n\t\tif (!this.optionsList()?.nativeElement) return;\n\n\t\t// Remove active class from all options\n\t\tconst allOptions = this.optionsList()?.nativeElement.querySelectorAll('[data-option-index]');\n\t\tif (!allOptions) return;\n\t\tfor (const option of Array.from(allOptions)) {\n\t\t\toption.classList.remove('cdk-option-active');\n\t\t}\n\n\t\t// Add active class to current option\n\t\tconst currentIndex = this.activeOptionIndex();\n\t\tif (currentIndex >= 0) {\n\t\t\tconst activeOption = this.optionsList()?.nativeElement.querySelector(`[data-option-index=\"${currentIndex}\"]`);\n\t\t\tif (activeOption) {\n\t\t\t\tactiveOption.classList.add('cdk-option-active');\n\t\t\t\tconst row = activeOption.querySelector<HTMLElement>(':scope > button');\n\t\t\t\tif (row && this.contentPanel()) this.syncRowTitle(row, this.orderedOptions()[currentIndex]);\n\t\t\t\t// Scroll into view if needed\n\t\t\t\tactiveOption.scrollIntoView({ block: 'nearest' });\n\t\t\t}\n\t\t}\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<!-- Field chrome click is pointer-only sugar; keyboard access is the focusable trigger button inside. -->\n@let isOpen = this.isOpen(); @let triggerWidth = this.triggerWidth(); @let dataState = this.dataState(); @let options = this.options();\n@let displayValue = this.displayValue();\n@let label = this.label();\n@let fitOptions = this.fitOptions(); @let contentPanel = this.contentPanel();\n\n<!-- One option on a single line (content-width panel and option sizer): label, description, check slot (always 16px in the sizer) -->\n<ng-template #optionLine let-option let-sizer=\"sizer\">\n\t@let lineDescription = getOptionDescription(option);\n\t<span class=\"flex min-w-0 grow items-center\">\n\t\t<span data-st-option-label [class]=\"lineDescription ? 'max-w-[calc(100%-1.25rem)] shrink-0 truncate' : 'max-w-full shrink-0 truncate'\">{{\n\t\t\tgetDisplayValue(option)\n\t\t}}</span>\n\t\t@if (lineDescription) {\n\t\t\t<span class=\"sr-only\">, </span>\n\t\t\t<span\n\t\t\t\tdata-st-option-description\n\t\t\t\tclass=\"text-base-content-muted ms-3 me-2 min-w-0 grow truncate text-end text-sm group-data-disabled:text-(--color-disabled-content)\"\n\t\t\t\t>{{ lineDescription }}</span\n\t\t\t>\n\t\t}\n\t</span>\n\t@if (sizer) {\n\t\t<span class=\"size-4 shrink-0\"></span>\n\t} @else if (isOptionSelected(option)) {\n\t\t<st-icon class=\"h-4 w-4 shrink-0\" [icon]=\"iconCheck\"></st-icon>\n\t} @else if (isOptionChecked(option)) {\n\t\t<st-icon data-st-option-checked class=\"h-4 w-4 shrink-0 group-data-disabled:text-(--color-disabled-content)\" [icon]=\"iconCheck\"></st-icon>\n\t} @else {\n\t\t<span aria-hidden=\"true\" class=\"size-4 shrink-0\"></span>\n\t}\n</ng-template>\n\n<!-- Hidden stack of every option row, so CSS takes the widest as the width -->\n<ng-template #optionSizer let-placement>\n\t<ul aria-hidden=\"true\" data-st-option-sizer [class]=\"optionSizerClass() + ' ' + placement\">\n\t\t@for (section of optionSections(); track section.label) {\n\t\t\t@if (section.label) {\n\t\t\t\t<li class=\"menu-title px-4 font-semibold whitespace-nowrap\">{{ section.label }}</li>\n\t\t\t}\n\t\t\t@for (entry of section.options; track entry.index) {\n\t\t\t\t<li>\n\t\t\t\t\t<div [class]=\"optionRowClass + ' whitespace-nowrap'\">\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"optionLine; context: { $implicit: entry.option, sizer: true }\" />\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t}\n\t</ul>\n</ng-template>\n\n<fieldset class=\"fieldset p-0\">\n\t@if (label) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ label }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\n\t<div [class]=\"fitOptions ? 'grid' : 'contents'\">\n\t\t@if (fitOptions) {\n\t\t\t<ng-container *ngTemplateOutlet=\"optionSizer; context: { $implicit: 'col-start-1 row-start-1 border-x border-solid border-transparent' }\" />\n\t\t}\n\t\t<div\n\t\t\t#field\n\t\t\tcdkOverlayOrigin\n\t\t\t#overlayOrigin=\"cdkOverlayOrigin\"\n\t\t\t[class]=\"validationClass()\"\n\t\t\t[class.col-start-1]=\"fitOptions\"\n\t\t\t[class.row-start-1]=\"fitOptions\"\n\t\t\t[attr.data-open]=\"isOpen ? '' : null\"\n\t\t\t(click)=\"handleFieldChromeClick($event)\"\n\t\t>\n\t\t\t<button\n\t\t\t\t#trigger\n\t\t\t\t[id]=\"resolvedId()\"\n\t\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t\t[attr.aria-invalid]=\"fieldA11y.invalid() || null\"\n\t\t\t\t[attr.aria-describedby]=\"fieldA11y.describedBy()\"\n\t\t\t\tclass=\"min-w-0 flex-1 grow cursor-pointer bg-transparent p-0 text-left outline-hidden\"\n\t\t\t\t(click)=\"handleClick($event)\"\n\t\t\t\t(keydown)=\"handleTriggerKeydown($event)\"\n\t\t\t\ttype=\"button\"\n\t\t\t\taria-haspopup=\"listbox\"\n\t\t\t\trole=\"combobox\"\n\t\t\t\t[attr.aria-controls]=\"listboxId\"\n\t\t\t\t[attr.aria-expanded]=\"isOpen\"\n\t\t\t\t[disabled]=\"disabled()\"\n\t\t\t>\n\t\t\t\t@if (fitOptions) {\n\t\t\t\t\t<span class=\"grid min-w-0\">\n\t\t\t\t\t\t<span class=\"col-start-1 row-start-1 block min-w-0 truncate text-left\">{{ displayValue }}</span>\n\t\t\t\t\t\t<span aria-hidden=\"true\" data-st-value-sizer class=\"invisible col-start-1 row-start-1 h-0 overflow-hidden\">\n\t\t\t\t\t\t\t@for (text of valueSizerLabels(); track $index) {\n\t\t\t\t\t\t\t\t<span class=\"block whitespace-nowrap\">{{ text }}</span>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</span>\n\t\t\t\t} @else {\n\t\t\t\t\t<span class=\"block min-w-0 truncate text-left\">\n\t\t\t\t\t\t{{ displayValue }}\n\t\t\t\t\t</span>\n\t\t\t\t}\n\t\t\t</button>\n\t\t\t@if (showClearButton()) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tdata-st-clear\n\t\t\t\t\tclass=\"btn btn-ghost btn-square shrink-0 cursor-pointer [--fontsize:1em] [--size:1.25em]\"\n\t\t\t\t\t(click)=\"handleClearSelection($event)\"\n\t\t\t\t\t(keydown.enter)=\"handleClearSelection($event)\"\n\t\t\t\t\t(keydown.space)=\"handleClearSelection($event)\"\n\t\t\t\t\t[attr.aria-label]=\"clearSelectionLabel()\"\n\t\t\t\t>\n\t\t\t\t\t<st-icon [icon]=\"iconClose\"></st-icon>\n\t\t\t\t</button>\n\t\t\t} @else if (fitOptions && allowClear()) {\n\t\t\t\t<!-- Keeps the clear button's room so the fitted control does not change width when a value is chosen -->\n\t\t\t\t<span aria-hidden=\"true\" data-st-clear-spacer class=\"w-[1.25em] shrink-0\"></span>\n\t\t\t}\n\t\t\t<span data-st-chevron class=\"pointer-events-none inline-flex size-[1em] shrink-0 items-center justify-center\" aria-hidden=\"true\">\n\t\t\t\t<st-icon [icon]=\"iconChevronDown\"></st-icon>\n\t\t\t</span>\n\t\t</div>\n\t</div>\n\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"overlayOrigin\"\n\t\t[cdkConnectedOverlayOpen]=\"isOpen\"\n\t\t[cdkConnectedOverlayPositions]=\"activeOverlayPositions()\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t[cdkConnectedOverlayWidth]=\"overlayWidth()\"\n\t\t[cdkConnectedOverlayMinWidth]=\"triggerWidth\"\n\t\t(detach)=\"handleDetach()\"\n\t\t(overlayOutsideClick)=\"handleClickOutside($event)\"\n\t\t(positionChange)=\"onPositionChange($event)\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(field)\">\n\t\t\t<div\n\t\t\t\t[class]=\"panelClass()\"\n\t\t\t\t(animationend)=\"onAnimationEnd($event)\"\n\t\t\t\t[attr.data-state]=\"dataState\"\n\t\t\t\t[attr.data-side]=\"placement()?.side\"\n\t\t\t\t[attr.data-align]=\"placement()?.align\"\n\t\t\t>\n\t\t\t\t<div class=\"bg-base-200 rounded-box border-neutral overflow-hidden border border-solid\">\n\t\t\t\t\t<!-- Options List -->\n\t\t\t\t\t@let menuClass = this.menuClass();\n\t\t\t\t\t<ul\n\t\t\t\t\t\t[class]=\"menuClass\"\n\t\t\t\t\t\tcdkListbox\n\t\t\t\t\t\tcdkListboxUseActiveDescendant\n\t\t\t\t\t\t[id]=\"listboxId\"\n\t\t\t\t\t\t[attr.aria-labelledby]=\"label ? labelId : resolvedId()\"\n\t\t\t\t\t\trole=\"listbox\"\n\t\t\t\t\t\t#optionsList\n\t\t\t\t\t\t[tabindex]=\"0\"\n\t\t\t\t\t\t(keydown)=\"handleListboxKeydown($event)\"\n\t\t\t\t\t\t(selectionChange)=\"handleSelectionChange($event)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<ng-template #optionTemplate let-option let-index=\"index\">\n\t\t\t\t\t\t\t@let optionDisabled = isOptionDisabled(option);\n\t\t\t\t\t\t\t@let optionDescription = getOptionDescription(option);\n\t\t\t\t\t\t\t<li\n\t\t\t\t\t\t\t\t[cdkOption]=\"option\"\n\t\t\t\t\t\t\t\t[cdkOptionDisabled]=\"optionDisabled\"\n\t\t\t\t\t\t\t\tclass=\"group\"\n\t\t\t\t\t\t\t\t[attr.data-option-index]=\"index\"\n\t\t\t\t\t\t\t\t[attr.data-disabled]=\"optionDisabled ? '' : null\"\n\t\t\t\t\t\t\t\t[class.cdk-option-active]=\"isActiveOption(index)\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t@if (contentPanel) {\n\t\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\t\t[class]=\"optionRowClass + ' whitespace-nowrap'\"\n\t\t\t\t\t\t\t\t\t\t(click)=\"handleOptionSelect(option)\"\n\t\t\t\t\t\t\t\t\t\t(mouseenter)=\"syncOptionTitle($event, option)\"\n\t\t\t\t\t\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"optionLine; context: { $implicit: option }\" />\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<button type=\"button\" [class]=\"optionRowClass\" (click)=\"handleOptionSelect(option)\" tabindex=\"-1\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"min-w-min flex-1 wrap-break-word whitespace-normal\">\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"block\">{{ getDisplayValue(option) }}</span>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t@if (optionDescription) {\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"sr-only\">, </span>\n\t\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\t\tdata-st-option-description\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"text-base-content-muted ms-3 min-w-0 truncate text-end text-sm not-last:me-2 group-data-disabled:text-(--color-disabled-content)\"\n\t\t\t\t\t\t\t\t\t\t\t\t>{{ optionDescription }}</span\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t@if (isOptionSelected(option)) {\n\t\t\t\t\t\t\t\t\t\t\t<st-icon class=\"h-4 w-4 shrink-0\" [icon]=\"iconCheck\"></st-icon>\n\t\t\t\t\t\t\t\t\t\t} @else if (isOptionChecked(option)) {\n\t\t\t\t\t\t\t\t\t\t\t<st-icon\n\t\t\t\t\t\t\t\t\t\t\t\tdata-st-option-checked\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"h-4 w-4 shrink-0 group-data-disabled:text-(--color-disabled-content)\"\n\t\t\t\t\t\t\t\t\t\t\t\t[icon]=\"iconCheck\"\n\t\t\t\t\t\t\t\t\t\t\t></st-icon>\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ng-template>\n\n\t\t\t\t\t\t@for (section of optionSections(); track section.label; let firstSection = $first) {\n\t\t\t\t\t\t\t@if (section.headerId) {\n\t\t\t\t\t\t\t\t@if (!firstSection) {\n\t\t\t\t\t\t\t\t\t<li role=\"none\" data-st-option-group-separator class=\"pointer-events-none top-0 left-0 mx-0 my-1 w-full p-0\"></li>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t<li role=\"none\" data-st-option-group>\n\t\t\t\t\t\t\t\t\t<ul role=\"group\" class=\"ms-0 ps-0 whitespace-normal before:hidden\" [attr.aria-labelledby]=\"section.headerId\">\n\t\t\t\t\t\t\t\t\t\t<li\n\t\t\t\t\t\t\t\t\t\t\trole=\"presentation\"\n\t\t\t\t\t\t\t\t\t\t\tdata-st-option-group-header\n\t\t\t\t\t\t\t\t\t\t\tclass=\"menu-title text-base-content-secondary px-4 font-semibold\"\n\t\t\t\t\t\t\t\t\t\t\t[id]=\"section.headerId\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{{ section.label }}\n\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t@for (entry of section.options; track entry.index) {\n\t\t\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"optionTemplate; context: { $implicit: entry.option, index: entry.index }\" />\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t@for (entry of section.options; track entry.index) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"optionTemplate; context: { $implicit: entry.option, index: entry.index }\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t<!-- Empty state -->\n\t\t\t\t\t\t@if (options.length === 0) {\n\t\t\t\t\t\t\t<li class=\"text-base-content-muted px-4 py-2 text-center\">\n\t\t\t\t\t\t\t\t<span>{{ noOptionsLabel() }}</span>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t}\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n\n\t@if (label) {\n\t\t<label class=\"sr-only\" [id]=\"labelId\" [for]=\"resolvedId()\">{{ label }}</label>\n\t}\n\n\t<!-- Additional content -->\n\t<ng-content></ng-content>\n</fieldset>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAiEA;AACA;AACA;AAEA;;;AAGG;AACH,MAAM,eAAe,GAAG,GAAG,CAC1B;IACC,QAAQ;IACR,WAAW;IACX,aAAa;IACb,WAAW;IACX,aAAa;IACb,QAAQ;IACR,gBAAgB;IAChB,eAAe;IACf,UAAU;IACV,MAAM;IACN,SAAS;IACT,cAA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AAC1B,4BAAA,WAAW,EAAA,eAAiB;AAC5B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;qBACD,EAAA,eAAA,EAEgB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACL,wBAAA,sBAAsB,EAAE,cAAc;AACtC,wBAAA,mBAAmB,EAAE,cAAc;AACnC,wBAAA,kBAAkB,EAAE,cAAc;AAClC,qBAAA,EAAA,QAAA,EAAA,0lXAAA,EAAA;;;AEhLF;;AAEG;;;;"}
|
|
@@ -219,7 +219,7 @@ class SwitchComponent {
|
|
|
219
219
|
useExisting: forwardRef(() => SwitchComponent),
|
|
220
220
|
multi: true,
|
|
221
221
|
},
|
|
222
|
-
], ngImport: i0, template: "<label class=\"fieldset-label text-base-content font-body font-normal text-pretty\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\t[class]=\"componentClass()\"\n\t\t[attr.name]=\"name()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t{{ label() }}\n</label>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
222
|
+
], ngImport: i0, template: "<label class=\"fieldset-label text-base-content font-body font-normal text-pretty\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\trole=\"switch\"\n\t\t[class]=\"componentClass()\"\n\t\t[attr.name]=\"name()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t{{ label() }}\n</label>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
223
223
|
}
|
|
224
224
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SwitchComponent, decorators: [{
|
|
225
225
|
type: Component,
|
|
@@ -229,7 +229,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
229
229
|
useExisting: forwardRef(() => SwitchComponent),
|
|
230
230
|
multi: true,
|
|
231
231
|
},
|
|
232
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"fieldset-label text-base-content font-body font-normal text-pretty\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\t[class]=\"componentClass()\"\n\t\t[attr.name]=\"name()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t{{ label() }}\n</label>\n" }]
|
|
232
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"fieldset-label text-base-content font-body font-normal text-pretty\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\trole=\"switch\"\n\t\t[class]=\"componentClass()\"\n\t\t[attr.name]=\"name()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t{{ label() }}\n</label>\n" }]
|
|
233
233
|
}] });
|
|
234
234
|
|
|
235
235
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-forms-switch.mjs","sources":["../../../projects/sdk/components/forms/switch/src/switch.component.ts","../../../projects/sdk/components/forms/switch/src/switch.component.html","../../../projects/sdk/components/forms/switch/sixbell-telco-sdk-components-forms-switch.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, forwardRef, input, model, output } from '@angular/core';\nimport { ControlValueAccessor, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\n/**\n * @internal\n * Generates base switch classes with style variants\n */\nconst switchComponent = cva(['toggle', 'bg-base-100'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbase: [],\n\t\t\tprimary: ['toggle-primary'],\n\t\t\tsecondary: ['toggle-secondary'],\n\t\t\ttertiary: ['toggle-tertiary'],\n\t\t\taccent: ['toggle-accent'],\n\t\t\tinfo: ['toggle-info'],\n\t\t\tsuccess: ['toggle-success'],\n\t\t\terror: ['toggle-error'],\n\t\t\twarning: ['toggle-warning'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['toggle-xs'],\n\t\t\tsm: ['toggle-sm'],\n\t\t\tmd: ['toggle-md'],\n\t\t\tlg: ['toggle-lg'],\n\t\t\txl: ['toggle-xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'base',\n\t\tsize: 'md',\n\t},\n});\n\n/** Possible switch style variants */\nexport type SwitchVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'error' | 'warning' | null | undefined;\n\n/** Possible switch size variants */\nexport type SwitchSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for switch styling */\nexport type SwitchProps = {\n\tvariant?: SwitchVariantProps;\n\tsize?: SwitchSizeProps;\n};\n\n/**\n * A customizable switch/toggle component with form integration\n *\n * @remarks\n * Implements ControlValueAccessor for Angular form compatibility.\n * Supports various style variants and sizes through Tailwind CSS.\n *\n * @example\n * ```html\n * <!-- Basic standalone usage -->\n * <st-switch [(value)]=\"isEnabled\"></st-switch>\n * ```\n *\n * @example\n * ```html\n * <!-- With form integration -->\n * <st-switch\n * [parentForm]=\"settingsForm\"\n * formControlName=\"darkMode\"\n * label=\"Dark Mode\"\n * ></st-switch>\n * ```\n */\n@Component({\n\tselector: 'st-switch',\n\timports: [FormsModule],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: forwardRef(() => SwitchComponent),\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './switch.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SwitchComponent implements ControlValueAccessor {\n\t/**\n\t * Switch style variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<SwitchVariantProps>('base');\n\n\t/**\n\t * Switch size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<SwitchSizeProps>('md');\n\n\t/**\n\t * Label text displayed next to the switch\n\t */\n\tlabel = input<string>('');\n\n\t/**\n\t * HTML name attribute for the switch\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Two-way bindable switch state\n\t */\n\tvalue = model<boolean>(false);\n\n\t/**\n\t * Parent form group for reactive forms\n\t */\n\tparentForm = input<FormGroup | null>(null);\n\n\t/**\n\t * Form control name for reactive forms\n\t */\n\tformControlName = input<string>('');\n\n\t/**\n\t * Event emitted when switch loses focus\n\t */\n\tblurred = output<boolean>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (click or keyboard)\n\t */\n\ttriggered = output<void>();\n\n\t// ControlValueAccessor implementation\n\t/** @internal */\n\tprivate onControlChange: any = () => {};\n\t/** @internal */\n\tprivate onControlTouch: any = () => {};\n\n\t/**\n\t * Whether the switch is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * Event emitted when switch state changes\n\t */\n\tvalueUpdated = output<boolean>();\n\n\t/**\n\t * @internal\n\t * Computed base switch classes\n\t */\n\tcomponentClass = computed(() =>\n\t\tcn(\n\t\t\tswitchComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t),\n\t);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t/**\n\t * @internal\n\t * Handles state changes\n\t */\n\thandleChange(): void {\n\t\tthis.onControlChange(this.value());\n\t\tthis.valueUpdated.emit(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles blur event\n\t */\n\thandleBlur() {\n\t\tthis.blurred.emit(this.value());\n\t\tthis.onControlTouch();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.value.set(!this.value());\n\t\tthis.handleChange();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.value.set(!this.value());\n\t\tthis.handleChange();\n\t}\n}\n","<label class=\"fieldset-label text-base-content font-body font-normal text-pretty\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\t[class]=\"componentClass()\"\n\t\t[attr.name]=\"name()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleB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,4BAAA,EAAA,QAAA,EAAA,uGAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAWT,eAAe,EAAA,UAAA,EAAA,CAAA;kBAb3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,OAAA,EACZ,CAAC,WAAW,CAAC,EAAA,SAAA,EACX;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,qBAAqB,CAAC;AAC9C,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;qBACD,EAAA,eAAA,EAEgB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6dAAA,EAAA;;;AErFhD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-forms-switch.mjs","sources":["../../../projects/sdk/components/forms/switch/src/switch.component.ts","../../../projects/sdk/components/forms/switch/src/switch.component.html","../../../projects/sdk/components/forms/switch/sixbell-telco-sdk-components-forms-switch.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, forwardRef, input, model, output } from '@angular/core';\nimport { ControlValueAccessor, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\n/**\n * @internal\n * Generates base switch classes with style variants\n */\nconst switchComponent = cva(['toggle', 'bg-base-100'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbase: [],\n\t\t\tprimary: ['toggle-primary'],\n\t\t\tsecondary: ['toggle-secondary'],\n\t\t\ttertiary: ['toggle-tertiary'],\n\t\t\taccent: ['toggle-accent'],\n\t\t\tinfo: ['toggle-info'],\n\t\t\tsuccess: ['toggle-success'],\n\t\t\terror: ['toggle-error'],\n\t\t\twarning: ['toggle-warning'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['toggle-xs'],\n\t\t\tsm: ['toggle-sm'],\n\t\t\tmd: ['toggle-md'],\n\t\t\tlg: ['toggle-lg'],\n\t\t\txl: ['toggle-xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'base',\n\t\tsize: 'md',\n\t},\n});\n\n/** Possible switch style variants */\nexport type SwitchVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'error' | 'warning' | null | undefined;\n\n/** Possible switch size variants */\nexport type SwitchSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for switch styling */\nexport type SwitchProps = {\n\tvariant?: SwitchVariantProps;\n\tsize?: SwitchSizeProps;\n};\n\n/**\n * A customizable switch/toggle component with form integration\n *\n * @remarks\n * Implements ControlValueAccessor for Angular form compatibility.\n * Supports various style variants and sizes through Tailwind CSS.\n *\n * @example\n * ```html\n * <!-- Basic standalone usage -->\n * <st-switch [(value)]=\"isEnabled\"></st-switch>\n * ```\n *\n * @example\n * ```html\n * <!-- With form integration -->\n * <st-switch\n * [parentForm]=\"settingsForm\"\n * formControlName=\"darkMode\"\n * label=\"Dark Mode\"\n * ></st-switch>\n * ```\n */\n@Component({\n\tselector: 'st-switch',\n\timports: [FormsModule],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: forwardRef(() => SwitchComponent),\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './switch.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SwitchComponent implements ControlValueAccessor {\n\t/**\n\t * Switch style variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<SwitchVariantProps>('base');\n\n\t/**\n\t * Switch size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<SwitchSizeProps>('md');\n\n\t/**\n\t * Label text displayed next to the switch\n\t */\n\tlabel = input<string>('');\n\n\t/**\n\t * HTML name attribute for the switch\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Two-way bindable switch state\n\t */\n\tvalue = model<boolean>(false);\n\n\t/**\n\t * Parent form group for reactive forms\n\t */\n\tparentForm = input<FormGroup | null>(null);\n\n\t/**\n\t * Form control name for reactive forms\n\t */\n\tformControlName = input<string>('');\n\n\t/**\n\t * Event emitted when switch loses focus\n\t */\n\tblurred = output<boolean>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (click or keyboard)\n\t */\n\ttriggered = output<void>();\n\n\t// ControlValueAccessor implementation\n\t/** @internal */\n\tprivate onControlChange: any = () => {};\n\t/** @internal */\n\tprivate onControlTouch: any = () => {};\n\n\t/**\n\t * Whether the switch is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * Event emitted when switch state changes\n\t */\n\tvalueUpdated = output<boolean>();\n\n\t/**\n\t * @internal\n\t * Computed base switch classes\n\t */\n\tcomponentClass = computed(() =>\n\t\tcn(\n\t\t\tswitchComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t),\n\t);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t/**\n\t * @internal\n\t * Handles state changes\n\t */\n\thandleChange(): void {\n\t\tthis.onControlChange(this.value());\n\t\tthis.valueUpdated.emit(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles blur event\n\t */\n\thandleBlur() {\n\t\tthis.blurred.emit(this.value());\n\t\tthis.onControlTouch();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.value.set(!this.value());\n\t\tthis.handleChange();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.value.set(!this.value());\n\t\tthis.handleChange();\n\t}\n}\n","<label class=\"fieldset-label text-base-content font-body font-normal text-pretty\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\trole=\"switch\"\n\t\t[class]=\"componentClass()\"\n\t\t[attr.name]=\"name()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t{{ label() }}\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAAA;AAMA;;;AAGG;AACH,MAAM,eAAe,GAAG,GAAG,CAAC,CAAC,QAAQ,EAAE,aAAa,CAAC,EAAE;AACtD,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,CAAC,gBAAgB,CAAC;YAC3B,SAAS,EAAE,CAAC,kBAAkB,CAAC;YAC/B,QAAQ,EAAE,CAAC,iBAAiB,CAAC;YAC7B,MAAM,EAAE,CAAC,eAAe,CAAC;YACzB,IAAI,EAAE,CAAC,aAAa,CAAC;YACrB,OAAO,EAAE,CAAC,gBAAgB,CAAC;YAC3B,KAAK,EAAE,CAAC,cAAc,CAAC;YACvB,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC3B,SAAA;AACD,QAAA,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,WAAW,CAAC;YACjB,EAAE,EAAE,CAAC,WAAW,CAAC;YACjB,EAAE,EAAE,CAAC,WAAW,CAAC;YACjB,EAAE,EAAE,CAAC,WAAW,CAAC;YACjB,EAAE,EAAE,CAAC,WAAW,CAAC;AACjB,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE,EAAE;AACpB,IAAA,eAAe,EAAE;AAChB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extareaComponent {
|
|
|
134
134
|
generatedId = `st-textarea-${nextTextareaId++}`;
|
|
135
135
|
/** @internal Id applied to the focusable control and referenced by its label */
|
|
136
136
|
resolvedId = computed(() => this.inputId() || this.generatedId);
|
|
137
|
+
/** @internal Id of the character counter, referenced by the textarea's `aria-describedby`. */
|
|
138
|
+
counterId = computed(() => `${this.resolvedId()}-counter`);
|
|
139
|
+
/** @internal Hint and error ids from `st-form-item`, plus the counter id while a `maxCharacters` limit is set. */
|
|
140
|
+
describedBy = computed(() => {
|
|
141
|
+
const ids = [this.fieldA11y.describedBy(), this.maxCharacters() ? this.counterId() : null].filter(Boolean);
|
|
142
|
+
return ids.length ? ids.join(' ') : null;
|
|
143
|
+
});
|
|
137
144
|
/**
|
|
138
145
|
* Placeholder text when empty
|
|
139
146
|
*/
|
|
@@ -164,7 +171,8 @@ class TextareaComponent {
|
|
|
164
171
|
*/
|
|
165
172
|
value = model('');
|
|
166
173
|
/**
|
|
167
|
-
* Maximum allowed character count
|
|
174
|
+
* Maximum allowed character count. When set, the counter is shown, the textarea references it
|
|
175
|
+
* through `aria-describedby`, and the native `maxlength` stops typing past the limit.
|
|
168
176
|
* @defaultValue 0 (unlimited)
|
|
169
177
|
*/
|
|
170
178
|
maxCharacters = input(0);
|
|
@@ -440,7 +448,7 @@ class TextareaComponent {
|
|
|
440
448
|
useExisting: TextareaComponent,
|
|
441
449
|
multi: true,
|
|
442
450
|
},
|
|
443
|
-
], viewQueries: [{ propertyName: "counterBarRef", first: true, predicate: ["counterBarRef"], descendants: true, isSignal: true }], ngImport: i0, template: "@let labelVar = label();\n\n<fieldset class=\"font-body block text-xs\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ labelVar }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\n\t<div #wrapperRef [class]=\"wrapperClass()\" [style.height]=\"wrapperHeight()\">\n\t\t<textarea\n\t\t\tclass=\"placeholder-base-content-muted h-full min-h-0 w-full grow resize-none bg-transparent outline-hidden\"\n\t\t\t[id]=\"resolvedId()\"\n\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t[attr.aria-
|
|
451
|
+
], viewQueries: [{ propertyName: "counterBarRef", first: true, predicate: ["counterBarRef"], descendants: true, isSignal: true }], ngImport: i0, template: "@let labelVar = label();\n\n<fieldset class=\"font-body block text-xs\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ labelVar }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\n\t<div #wrapperRef [class]=\"wrapperClass()\" [style.height]=\"wrapperHeight()\">\n\t\t<textarea\n\t\t\tclass=\"placeholder-base-content-muted h-full min-h-0 w-full grow resize-none bg-transparent outline-hidden\"\n\t\t\t[id]=\"resolvedId()\"\n\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t[attr.aria-invalid]=\"fieldA11y.invalid() || null\"\n\t\t\t[attr.aria-describedby]=\"describedBy()\"\n\t\t\t[attr.maxlength]=\"maxCharacters() || null\"\n\t\t\t[class.cursor-not-allowed]=\"disabled()\"\n\t\t\t[attr.rows]=\"rows()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keydown.enter)=\"handleEnter($event)\"\n\t\t\t(click)=\"handleClick($event)\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[readOnly]=\"readonly()\"\n\t\t></textarea>\n\t\t@if (maxCharacters()) {\n\t\t\t<div #counterBarRef [id]=\"counterId()\" [class]=\"counterBarClass()\">\n\t\t\t\t<div [class]=\"errorClassMaxCharacters()\">\n\t\t\t\t\t<span stText=\"9\" stTextWeight=\"normal\">\n\t\t\t\t\t\t{{ 'sdk.textarea.maxCharacters' | translate: { current: value().length, max: maxCharacters() } }}\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n\n\t<ng-content></ng-content>\n\n\t@if (labelVar) {\n\t\t<label class=\"sr-only\" [for]=\"resolvedId()\">{{ labelVar }}</label>\n\t}\n</fieldset>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
444
452
|
}
|
|
445
453
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TextareaComponent, decorators: [{
|
|
446
454
|
type: Component,
|
|
@@ -450,7 +458,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
450
458
|
useExisting: TextareaComponent,
|
|
451
459
|
multi: true,
|
|
452
460
|
},
|
|
453
|
-
], template: "@let labelVar = label();\n\n<fieldset class=\"font-body block text-xs\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ labelVar }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\n\t<div #wrapperRef [class]=\"wrapperClass()\" [style.height]=\"wrapperHeight()\">\n\t\t<textarea\n\t\t\tclass=\"placeholder-base-content-muted h-full min-h-0 w-full grow resize-none bg-transparent outline-hidden\"\n\t\t\t[id]=\"resolvedId()\"\n\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t[attr.aria-
|
|
461
|
+
], template: "@let labelVar = label();\n\n<fieldset class=\"font-body block text-xs\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ labelVar }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\n\t<div #wrapperRef [class]=\"wrapperClass()\" [style.height]=\"wrapperHeight()\">\n\t\t<textarea\n\t\t\tclass=\"placeholder-base-content-muted h-full min-h-0 w-full grow resize-none bg-transparent outline-hidden\"\n\t\t\t[id]=\"resolvedId()\"\n\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t[attr.aria-invalid]=\"fieldA11y.invalid() || null\"\n\t\t\t[attr.aria-describedby]=\"describedBy()\"\n\t\t\t[attr.maxlength]=\"maxCharacters() || null\"\n\t\t\t[class.cursor-not-allowed]=\"disabled()\"\n\t\t\t[attr.rows]=\"rows()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keydown.enter)=\"handleEnter($event)\"\n\t\t\t(click)=\"handleClick($event)\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[readOnly]=\"readonly()\"\n\t\t></textarea>\n\t\t@if (maxCharacters()) {\n\t\t\t<div #counterBarRef [id]=\"counterId()\" [class]=\"counterBarClass()\">\n\t\t\t\t<div [class]=\"errorClassMaxCharacters()\">\n\t\t\t\t\t<span stText=\"9\" stTextWeight=\"normal\">\n\t\t\t\t\t\t{{ 'sdk.textarea.maxCharacters' | translate: { current: value().length, max: maxCharacters() } }}\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n\n\t<ng-content></ng-content>\n\n\t@if (labelVar) {\n\t\t<label class=\"sr-only\" [for]=\"resolvedId()\">{{ labelVar }}</label>\n\t}\n</fieldset>\n" }]
|
|
454
462
|
}], ctorParameters: () => [] });
|
|
455
463
|
|
|
456
464
|
/**
|