@sixbell-telco/sdk 1.0.2 → 1.1.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 +100 -0
- package/README.md +44 -0
- package/_index.css +52 -25
- package/components/avatar/src/avatar.component.d.ts +40 -26
- package/components/button/src/button.component.d.ts +2 -2
- package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +39 -0
- package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +41 -0
- package/components/dropdown/dropdown-group/dropdown-group.component.d.ts +9 -0
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +23 -12
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +49 -0
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +53 -0
- package/components/dropdown/dropdown-label/dropdown-label.component.d.ts +17 -0
- package/components/dropdown/dropdown-separator/dropdown-separator.component.d.ts +21 -0
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +121 -0
- package/components/dropdown/public-api.d.ts +9 -0
- package/components/dropdown/src/dropdown.component.d.ts +20 -179
- package/components/dropdown/src/services/dropdown.service.d.ts +22 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +22 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +64 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +37 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +54 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +58 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-label/dropdown-menu-bar-label.component.d.ts +16 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-separator/dropdown-menu-bar-separator.component.d.ts +16 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +29 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +50 -0
- package/components/dropdown-menu/bar/index.d.ts +5 -0
- package/components/dropdown-menu/bar/public-api.d.ts +9 -0
- package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +23 -0
- package/components/dropdown-menu/context/index.d.ts +5 -0
- package/components/dropdown-menu/context/public-api.d.ts +1 -0
- package/components/dropdown-menu/dropdown-menu-chevron/dropdown-menu-chevron.component.d.ts +43 -0
- package/components/dropdown-menu/index.d.ts +5 -0
- package/components/dropdown-menu/public-api.d.ts +13 -0
- package/components/dropdown-menu/src/directives/dropdown-menu.directive.d.ts +40 -0
- package/components/dropdown-menu/src/dropdown-menu/dropdown-menu.component.d.ts +9 -0
- package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +40 -0
- package/components/dropdown-menu/src/dropdown-menu-group/dropdown-menu-group.component.d.ts +8 -0
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +38 -0
- package/components/dropdown-menu/src/dropdown-menu-label/dropdown-menu-label.component.d.ts +16 -0
- package/components/dropdown-menu/src/dropdown-menu-separator/dropdown-menu-separator.component.d.ts +16 -0
- package/components/dropdown-menu/src/dropdown-menu-sub/dropdown-menu-sub.component.d.ts +8 -0
- package/components/dropdown-menu/src/dropdown-menu-sub-content/dropdown-menu-sub-content.component.d.ts +31 -0
- package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +18 -0
- package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +19 -0
- package/components/dropdown-menu/src/services/dropdown-menu.service.d.ts +22 -0
- package/components/notification/src/notification.component.d.ts +3 -3
- package/components/product-card/directives/product-card-actions.directive.d.ts +1 -1
- package/components/product-card/directives/product-card-content.directive.d.ts +1 -1
- package/components/product-card/directives/product-card-header.directive.d.ts +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +75 -39
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +1 -0
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +529 -0
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +52 -0
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +539 -0
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +590 -217
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +21 -15
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +7 -7
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +139 -0
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +183 -0
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -0
- package/package.json +44 -24
- package/sixbell-telco-sdk-1.1.0.tgz +0 -0
- package/utils/theme/index.d.ts +5 -0
- package/utils/theme/public-api.d.ts +1 -0
- package/utils/theme/src/theme.service.d.ts +55 -0
- package/utils/translation/index.d.ts +5 -0
- package/utils/translation/public-api.d.ts +1 -0
- package/utils/translation/src/translation.service.d.ts +112 -0
- package/sixbell-telco-sdk-1.0.2.tgz +0 -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\tAfterViewInit,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tElementRef,\n\tinject,\n\tinput,\n\tmodel,\n\toutput,\n\tsignal,\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 { TranslateService } from '@ngx-translate/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { startWith, switchMap } from 'rxjs';\n\n// Angular CDK\nimport { CdkListbox, CdkOption } from '@angular/cdk/listbox';\nimport { 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';\n\n// ==============================================================================\n// TYPES AND INTERFACES\n// ==============================================================================\n\n/** Possible select dropdown style variants */\nexport type SelectVariantProps = '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(['w-full', 'min-w-fit', 'text-pretty', 'font-body', 'font-normal', 'select', 'leading-normal', 'bg-none'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['select-primary'],\n\t\t\tsecondary: ['select-secondary'],\n\t\t\ttertiary: ['select-tertiary'],\n\t\t\taccent: ['select-accent'],\n\t\t\tinfo: ['select-info'],\n\t\t\tsuccess: ['select-success'],\n\t\t\terror: ['select-error'],\n\t\t\twarning: ['select-warning'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['select-xs'],\n\t\t\tsm: ['select-sm'],\n\t\t\tmd: ['select-md'],\n\t\t\tlg: ['select-lg'],\n\t\t\txl: ['select-xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tsize: 'md',\n\t},\n});\n\n// ==============================================================================\n// COMPONENT\n// ==============================================================================\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],\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 AfterViewInit, ControlValueAccessor {\n\t// ==============================================================================\n\t// SERVICES\n\t// ==============================================================================\n\n\t/** @internal Translation service instance */\n\ttranslateService = inject(TranslateService);\n\n\t// ==============================================================================\n\t// INPUT PROPERTIES\n\t// ==============================================================================\n\n\t/**\n\t * Select dropdown style variant\n\t * @defaultValue 'secondary'\n\t */\n\tvariant = input<SelectVariantProps>('secondary');\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 use ghost (transparent) styling\n\t * @defaultValue false\n\t */\n\tghost = input<boolean>(false);\n\n\t/**\n\t * HTML name attribute for the select\n\t */\n\tname = input<string | null>(null);\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<boolean>(true);\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// ICONS\n\t// ==============================================================================\n\n\t/** Dropdown chevron icon */\n\ticonChevronDown = matKeyboardArrowDownOutline;\n\t/** Check icon for selected options */\n\ticonCheck = matCheckOutline;\n\t/** Close/clear icon */\n\ticonClose = matCloseOutline;\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/** 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 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// ==============================================================================\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\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 flex-nowrap max-h-72 overflow-y-auto overscroll-contain w-full p-0 focus-within:outline-none focus:outline-none focus-visible:outline-none',\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 * Angular lifecycle hook called after view initialization\n\t * Updates the trigger width for proper overlay positioning\n\t */\n\tngAfterViewInit() {\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\t// Only set the value if it's null/undefined or if it exists in the options\n\t\tif (!value) {\n\t\t\tthis.value.set(value);\n\t\t\treturn;\n\t\t}\n\n\t\tconst options = this.options();\n\t\tconst isValidValue = 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\tconst optionValue = this.getOptionValue(option);\n\t\t\tconst currentValue = this.getOptionValue(value);\n\t\t\treturn optionValue === currentValue || option === value;\n\t\t});\n\n\t\t// Only set the value if it's valid, otherwise set null\n\t\tthis.value.set(isValidValue ? value : null);\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\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 * Handles animation end events to update state\n\t * @param event - The animation event\n\t */\n\tonAnimationEnd(event: AnimationEvent) {\n\t\tif (event.animationName === 'fade-in-up') {\n\t\t\tthis.animationState.set('open');\n\t\t} else if (event.animationName === 'fade-out-down') {\n\t\t\tthis.animationState.set('closed');\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\tthis.animationState.set('closed');\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 clicks outside the component\n\t * @param event - The mouse event\n\t */\n\thandleClickOutside(event: MouseEvent) {\n\t\tif (this.animationState() === 'open') {\n\t\t\tthis.animationState.set('closing');\n\t\t}\n\t\tevent.stopPropagation();\n\t\tthis.triggerBlur();\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.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\tevent.stopPropagation();\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\tevent.stopPropagation();\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\tevent.stopPropagation();\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\tevent.stopPropagation();\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\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\tevent.stopPropagation();\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\tevent.stopPropagation();\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.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.stopPropagation();\n\t\tthis.clearSelection();\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\tif (this.triggerRef) {\n\t\t\tconst width = this.triggerRef()?.nativeElement.offsetWidth;\n\t\t\tif (!width) return;\n\t\t\tthis.triggerWidth.set(width);\n\t\t}\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\tallOptions.forEach((option) => {\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","@let isOpen = this.isOpen(); @let isAnimatingOpen = this.isAnimatingOpen(); @let triggerWidth = this.triggerWidth();\n@let dataState = this.dataState(); @let options = this.options(); @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 pt-0 text-pretty\">{{ label }}</legend>\n\t}\n\n\t<button\n\t\t#trigger\n\t\t[class]=\"validationClass()\"\n\t\t(click)=\"toggleOverlay()\"\n\t\t(keydown)=\"handleTriggerKeydown($event)\"\n\t\ttype=\"button\"\n\t\tcdkOverlayOrigin\n\t\taria-haspopup=\"true\"\n\t\trole=\"combobox\"\n\t\t[attr.aria-controls]=\"'select-list'\"\n\t\t[attr.aria-expanded]=\"isOpen\"\n\t\t[disabled]=\"disabled()\"\n\t>\n\t\t<span class=\"flex-1 truncate text-left\">\n\t\t\t{{ displayValue }}\n\t\t</span>\n\t\t<div class=\"inline-flex items-center justify-items-end gap-2\">\n\t\t\t<!-- Clear button -->\n\t\t\t@if (showClearButton()) {\n\t\t\t\t<div class=\"grid translate-x-full place-content-center\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclass=\"btn font-body btn-sm btn-secondary h-[1.5em] w-[1.5em] items-center p-0 align-top [font-size:inherit] leading-normal font-medium text-pretty\"\n\t\t\t\t\t\t(click)=\"handleClearSelection($event)\"\n\t\t\t\t\t\t(keydown.enter)=\"handleClearSelection($event)\"\n\t\t\t\t\t\t(keydown.space)=\"handleClearSelection($event)\"\n\t\t\t\t\t\t[attr.aria-label]=\"'Clear selection'\"\n\t\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<st-icon [icon]=\"iconClose\"></st-icon>\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t}\n\t\t\t<st-icon\n\t\t\t\tclass=\"h-[1.5em] w-[1.5em] flex-0 translate-x-full transition-transform duration-200\"\n\t\t\t\t[class.rotate-180]=\"isAnimatingOpen\"\n\t\t\t\t[icon]=\"iconChevronDown\"\n\t\t\t></st-icon>\n\t\t</div>\n\t</button>\n\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"trigger\"\n\t\t[cdkConnectedOverlayOpen]=\"isOpen\"\n\t\t[cdkConnectedOverlayWidth]=\"triggerWidth\"\n\t\t[cdkConnectedOverlayMinWidth]=\"triggerWidth\"\n\t\t(detach)=\"handleDetach()\"\n\t\t(overlayOutsideClick)=\"handleClickOutside($event)\"\n\t>\n\t\t<div\n\t\t\tclass=\"bg-base-200 rounded-box shadow-primary border-neutral data-[state=closing]:animate-fade-out-down data-[state=opening]:animate-fade-in-up data-[state=open]:animate-fade-in-up data-[state=closing]:animate-duration-150 data-[state=opening]:animate-duration-150 data-[state=open]:animate-duration-150 mt-1 w-full overflow-hidden border border-solid\"\n\t\t\t(animationend)=\"onAnimationEnd($event)\"\n\t\t\t[attr.data-state]=\"dataState\"\n\t\t>\n\t\t\t<!-- Options List -->\n\t\t\t@let menuClass = this.menuClass();\n\t\t\t<ul\n\t\t\t\t[class]=\"menuClass\"\n\t\t\t\tcdkListbox\n\t\t\t\tcdkListboxUseActiveDescendant\n\t\t\t\taria-labelledby=\"Select options\"\n\t\t\t\trole=\"listbox\"\n\t\t\t\t#optionsList\n\t\t\t\t[tabindex]=\"0\"\n\t\t\t\t(keydown)=\"handleListboxKeydown($event)\"\n\t\t\t\t(selectionChange)=\"handleSelectionChange($event)\"\n\t\t\t>\n\t\t\t\t@for (option of options; track $index) {\n\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<button\n\t\t\t\t\t\t\ttype=\"button\"\n\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(click)=\"handleOptionSelect(option)\"\n\t\t\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span class=\"flex-1 truncate\">{{ getDisplayValue(option) }}</span>\n\n\t\t\t\t\t\t\t@if (isOptionSelected(option)) {\n\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}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\n\t\t\t\t<!-- Empty state -->\n\t\t\t\t@if (options.length === 0) {\n\t\t\t\t\t<li class=\"text-base-content/60 px-4 py-2 text-center\">\n\t\t\t\t\t\t<span>No options available</span>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t</ng-template>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ label }}</label>\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;AAmDA;AACA;AACA;AAEA;;;AAGG;AACH,MAAM,eAAe,GAAG,GAAG,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,SAAS,CAAC,EAAE;AACtI,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,gBAAgB,CAAC;YAC3B,SAAS,EAAE,CAAC,kBAAkB,CAAC;YAC/B,QAAQ,EAAE,CAAC,iBAAiB,CAAC;YAC7B,MAAM,EAAE,CAAC,eA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A,cAAA,EAAA,MAAA,EAAA,CAAA,IAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,oBAAA,EAAA,oBAAA,EAAA,+BAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA,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,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAW5E,eAAe,EAAA,UAAA,EAAA,CAAA;kBAb3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EACZ,OAAA,EAAA,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,CAAC,EAC9E,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAiB,eAAA;AAC5B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;qBACD,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4xIAAA,EAAA;;;AEnIhD;;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 {\n\tAfterViewInit,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tElementRef,\n\tinject,\n\tinput,\n\tmodel,\n\toutput,\n\tsignal,\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 { TranslateService } from '@ngx-translate/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { startWith, switchMap } from 'rxjs';\n\n// Angular CDK\nimport { CdkListbox, CdkOption } from '@angular/cdk/listbox';\nimport { 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';\n\n// ==============================================================================\n// TYPES AND INTERFACES\n// ==============================================================================\n\n/** Possible select dropdown style variants */\nexport type SelectVariantProps = '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(['w-full', 'min-w-fit', 'text-pretty', 'font-body', 'font-normal', 'select', 'leading-normal', 'bg-none'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['select-primary'],\n\t\t\tsecondary: ['select-secondary'],\n\t\t\ttertiary: ['select-tertiary'],\n\t\t\taccent: ['select-accent'],\n\t\t\tinfo: ['select-info'],\n\t\t\tsuccess: ['select-success'],\n\t\t\terror: ['select-error'],\n\t\t\twarning: ['select-warning'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['select-xs'],\n\t\t\tsm: ['select-sm'],\n\t\t\tmd: ['select-md'],\n\t\t\tlg: ['select-lg'],\n\t\t\txl: ['select-xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tsize: 'md',\n\t},\n});\n\n// ==============================================================================\n// COMPONENT\n// ==============================================================================\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],\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 AfterViewInit, ControlValueAccessor {\n\t// ==============================================================================\n\t// SERVICES\n\t// ==============================================================================\n\n\t/** @internal Translation service instance */\n\ttranslateService = inject(TranslateService);\n\n\t// ==============================================================================\n\t// INPUT PROPERTIES\n\t// ==============================================================================\n\n\t/**\n\t * Select dropdown style variant\n\t * @defaultValue 'secondary'\n\t */\n\tvariant = input<SelectVariantProps>('secondary');\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 use ghost (transparent) styling\n\t * @defaultValue false\n\t */\n\tghost = input<boolean>(false);\n\n\t/**\n\t * HTML name attribute for the select\n\t */\n\tname = input<string | null>(null);\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<boolean>(true);\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// ICONS\n\t// ==============================================================================\n\n\t/** Dropdown chevron icon */\n\ticonChevronDown = matKeyboardArrowDownOutline;\n\t/** Check icon for selected options */\n\ticonCheck = matCheckOutline;\n\t/** Close/clear icon */\n\ticonClose = matCloseOutline;\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/** 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 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// ==============================================================================\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\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 flex-nowrap max-h-72 overflow-y-auto overscroll-contain w-full p-0 focus-within:outline-none focus:outline-none focus-visible:outline-none',\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 * Angular lifecycle hook called after view initialization\n\t * Updates the trigger width for proper overlay positioning\n\t */\n\tngAfterViewInit() {\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\t// Only set the value if it's null/undefined or if it exists in the options\n\t\tif (!value) {\n\t\t\tthis.value.set(value);\n\t\t\treturn;\n\t\t}\n\n\t\tconst options = this.options();\n\t\tconst isValidValue = 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\tconst optionValue = this.getOptionValue(option);\n\t\t\tconst currentValue = this.getOptionValue(value);\n\t\t\treturn optionValue === currentValue || option === value;\n\t\t});\n\n\t\t// Only set the value if it's valid, otherwise set null\n\t\tthis.value.set(isValidValue ? value : null);\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\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 * Handles animation end events to update state\n\t * @param event - The animation event\n\t */\n\tonAnimationEnd(event: AnimationEvent) {\n\t\tif (event.animationName === 'fade-in-up') {\n\t\t\tthis.animationState.set('open');\n\t\t} else if (event.animationName === 'fade-out-down') {\n\t\t\tthis.animationState.set('closed');\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\tthis.animationState.set('closed');\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 clicks outside the component\n\t * @param event - The mouse event\n\t */\n\thandleClickOutside(event: MouseEvent) {\n\t\tif (this.animationState() === 'open') {\n\t\t\tthis.animationState.set('closing');\n\t\t}\n\t\tevent.stopPropagation();\n\t\tthis.triggerBlur();\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.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\tevent.stopPropagation();\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\tevent.stopPropagation();\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\tevent.stopPropagation();\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\tevent.stopPropagation();\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\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\tevent.stopPropagation();\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\tevent.stopPropagation();\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.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.stopPropagation();\n\t\tthis.clearSelection();\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\tif (this.triggerRef) {\n\t\t\tconst width = this.triggerRef()?.nativeElement.offsetWidth;\n\t\t\tif (!width) return;\n\t\t\tthis.triggerWidth.set(width);\n\t\t}\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\tallOptions.forEach((option) => {\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","@let isOpen = this.isOpen(); @let isAnimatingOpen = this.isAnimatingOpen(); @let triggerWidth = this.triggerWidth();\n@let dataState = this.dataState(); @let options = this.options(); @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 pt-0 text-pretty\">{{ label }}</legend>\n\t}\n\n\t<button\n\t\t#trigger\n\t\t[class]=\"validationClass()\"\n\t\t(click)=\"toggleOverlay()\"\n\t\t(keydown)=\"handleTriggerKeydown($event)\"\n\t\ttype=\"button\"\n\t\tcdkOverlayOrigin\n\t\taria-haspopup=\"true\"\n\t\trole=\"combobox\"\n\t\t[attr.aria-controls]=\"'select-list'\"\n\t\t[attr.aria-expanded]=\"isOpen\"\n\t\t[disabled]=\"disabled()\"\n\t>\n\t\t<span class=\"flex-1 truncate text-left\">\n\t\t\t{{ displayValue }}\n\t\t</span>\n\t\t<div class=\"inline-flex items-center justify-items-end gap-2\">\n\t\t\t<!-- Clear button -->\n\t\t\t@if (showClearButton()) {\n\t\t\t\t<div class=\"grid translate-x-full place-content-center\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclass=\"btn font-body btn-sm btn-secondary h-[1.5em] w-[1.5em] items-center p-0 align-top [font-size:inherit] leading-normal font-medium text-pretty\"\n\t\t\t\t\t\t(click)=\"handleClearSelection($event)\"\n\t\t\t\t\t\t(keydown.enter)=\"handleClearSelection($event)\"\n\t\t\t\t\t\t(keydown.space)=\"handleClearSelection($event)\"\n\t\t\t\t\t\t[attr.aria-label]=\"'Clear selection'\"\n\t\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<st-icon [icon]=\"iconClose\"></st-icon>\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t}\n\t\t\t<st-icon\n\t\t\t\tclass=\"h-[1.5em] w-[1.5em] flex-0 translate-x-full transition-transform duration-200\"\n\t\t\t\t[class.rotate-180]=\"isAnimatingOpen\"\n\t\t\t\t[icon]=\"iconChevronDown\"\n\t\t\t></st-icon>\n\t\t</div>\n\t</button>\n\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"trigger\"\n\t\t[cdkConnectedOverlayOpen]=\"isOpen\"\n\t\t[cdkConnectedOverlayWidth]=\"triggerWidth\"\n\t\t[cdkConnectedOverlayMinWidth]=\"triggerWidth\"\n\t\t(detach)=\"handleDetach()\"\n\t\t(overlayOutsideClick)=\"handleClickOutside($event)\"\n\t>\n\t\t<div\n\t\t\tclass=\"bg-base-200 rounded-box shadow-main border-neutral data-[state=closing]:animate-fade-out-down data-[state=opening]:animate-fade-in-up data-[state=open]:animate-fade-in-up data-[state=closing]:animate-duration-150 data-[state=opening]:animate-duration-150 data-[state=open]:animate-duration-150 mt-1 w-full overflow-hidden border border-solid\"\n\t\t\t(animationend)=\"onAnimationEnd($event)\"\n\t\t\t[attr.data-state]=\"dataState\"\n\t\t>\n\t\t\t<!-- Options List -->\n\t\t\t@let menuClass = this.menuClass();\n\t\t\t<ul\n\t\t\t\t[class]=\"menuClass\"\n\t\t\t\tcdkListbox\n\t\t\t\tcdkListboxUseActiveDescendant\n\t\t\t\taria-labelledby=\"Select options\"\n\t\t\t\trole=\"listbox\"\n\t\t\t\t#optionsList\n\t\t\t\t[tabindex]=\"0\"\n\t\t\t\t(keydown)=\"handleListboxKeydown($event)\"\n\t\t\t\t(selectionChange)=\"handleSelectionChange($event)\"\n\t\t\t>\n\t\t\t\t@for (option of options; track $index) {\n\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<button\n\t\t\t\t\t\t\ttype=\"button\"\n\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(click)=\"handleOptionSelect(option)\"\n\t\t\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span class=\"flex-1 truncate\">{{ getDisplayValue(option) }}</span>\n\n\t\t\t\t\t\t\t@if (isOptionSelected(option)) {\n\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}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\n\t\t\t\t<!-- Empty state -->\n\t\t\t\t@if (options.length === 0) {\n\t\t\t\t\t<li class=\"text-base-content/60 px-4 py-2 text-center\">\n\t\t\t\t\t\t<span>No options available</span>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t</ng-template>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ label }}</label>\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;AAmDA;AACA;AACA;AAEA;;;AAGG;AACH,MAAM,eAAe,GAAG,GAAG,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,SAAS,CAAC,EAAE;AACtI,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,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,QAAA,OAAO,EAAE,WAAW;AACpB,QAAA,IAAI,EAAE,I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QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAW5E,eAAe,EAAA,UAAA,EAAA,CAAA;kBAb3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EACZ,OAAA,EAAA,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,CAAC,EAC9E,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAiB,eAAA;AAC5B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;qBACD,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,yxIAAA,EAAA;;;AEnIhD;;AAEG;;;;"}
|
|
@@ -12,21 +12,27 @@ const notificationComponent = cva([], {
|
|
|
12
12
|
'btn',
|
|
13
13
|
'btn-circle',
|
|
14
14
|
'btn-outline',
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
15
|
+
'!border-neutral-secondary',
|
|
16
|
+
'hover:bg-neutral-secondary/15',
|
|
17
|
+
'transition-colors',
|
|
18
|
+
'focus-visible:outline',
|
|
19
|
+
'focus-visible:outline-2',
|
|
20
|
+
'focus-visible:outline-offset-2',
|
|
21
|
+
'active:transition-[color, scale, color, background-color, border-color, outline-color, text-decoration-color, fill, stroke]',
|
|
22
|
+
'active:hover:scale-95',
|
|
23
|
+
'active:hover:animate-pop',
|
|
24
|
+
'active:hover:ease-out',
|
|
25
|
+
'active:hover:animate-duration-0',
|
|
26
|
+
'active:hover:animate-fill-mode-backwards',
|
|
27
|
+
'active:focus:scale-95',
|
|
28
|
+
'active:focus:animate-pop',
|
|
29
|
+
'active:focus:ease-out',
|
|
30
|
+
'active:focus:animate-duration-0',
|
|
31
|
+
'active:focus:animate-fill-mode-backwards',
|
|
24
32
|
],
|
|
25
33
|
},
|
|
26
34
|
shape: {
|
|
27
|
-
|
|
28
|
-
'round-md': ['rounded-btn-md'],
|
|
29
|
-
'round-lg': ['rounded-btn-lg'],
|
|
35
|
+
rounded: ['rounded-full'],
|
|
30
36
|
},
|
|
31
37
|
size: {
|
|
32
38
|
auto: [],
|
|
@@ -35,7 +41,7 @@ const notificationComponent = cva([], {
|
|
|
35
41
|
compoundVariants: [],
|
|
36
42
|
defaultVariants: {
|
|
37
43
|
variant: 'primary',
|
|
38
|
-
shape: '
|
|
44
|
+
shape: 'rounded',
|
|
39
45
|
size: 'auto',
|
|
40
46
|
},
|
|
41
47
|
});
|
|
@@ -54,11 +60,11 @@ class NotificationComponent {
|
|
|
54
60
|
}));
|
|
55
61
|
});
|
|
56
62
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: NotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
57
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: NotificationComponent, isStandalone: true, selector: "st-notification", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let iconVar = this.icon();\n@let componentClassVar = this.componentClass();\n\n@if (status() === 'seen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-success top-2 left-
|
|
63
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: NotificationComponent, isStandalone: true, selector: "st-notification", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let iconVar = this.icon();\n@let componentClassVar = this.componentClass();\n\n@if (status() === 'seen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-success top-2 left-[1.40rem] h-3 w-3 p-0\"></span>\n\t\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n\n@if (status() === 'unseen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-warning top-2 left-[1.40rem] h-3 w-3 p-0\"></span>\n\t\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
|
|
58
64
|
}
|
|
59
65
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
60
66
|
type: Component,
|
|
61
|
-
args: [{ selector: 'st-notification', imports: [IconComponent], template: "@let iconVar = this.icon();\n@let componentClassVar = this.componentClass();\n\n@if (status() === 'seen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-success top-2 left-
|
|
67
|
+
args: [{ selector: 'st-notification', imports: [IconComponent], template: "@let iconVar = this.icon();\n@let componentClassVar = this.componentClass();\n\n@if (status() === 'seen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-success top-2 left-[1.40rem] h-3 w-3 p-0\"></span>\n\t\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n\n@if (status() === 'unseen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-warning top-2 left-[1.40rem] h-3 w-3 p-0\"></span>\n\t\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n" }]
|
|
62
68
|
}] });
|
|
63
69
|
|
|
64
70
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-notification.mjs","sources":["../../../projects/sdk/components/notification/src/notification.component.ts","../../../projects/sdk/components/notification/src/notification.component.html","../../../projects/sdk/components/notification/sixbell-telco-sdk-components-notification.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matNotificationsOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport type NotificationStatus = 'seen' | 'unseen';\n\nexport const notificationComponent = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-circle',\n\t\t\t\t'btn-outline',\n\t\t\t\t'
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-notification.mjs","sources":["../../../projects/sdk/components/notification/src/notification.component.ts","../../../projects/sdk/components/notification/src/notification.component.html","../../../projects/sdk/components/notification/sixbell-telco-sdk-components-notification.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matNotificationsOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport type NotificationStatus = 'seen' | 'unseen';\n\nexport const notificationComponent = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-circle',\n\t\t\t\t'btn-outline',\n\t\t\t\t'!border-neutral-secondary',\n\t\t\t\t'hover:bg-neutral-secondary/15',\n\t\t\t\t'transition-colors',\n\t\t\t\t'focus-visible:outline',\n\t\t\t\t'focus-visible:outline-2',\n\t\t\t\t'focus-visible:outline-offset-2',\n\t\t\t\t'active:transition-[color, scale, color, background-color, border-color, outline-color, text-decoration-color, fill, stroke]',\n\t\t\t\t'active:hover:scale-95',\n\t\t\t\t'active:hover:animate-pop',\n\t\t\t\t'active:hover:ease-out',\n\t\t\t\t'active:hover:animate-duration-0',\n\t\t\t\t'active:hover:animate-fill-mode-backwards',\n\t\t\t\t'active:focus:scale-95',\n\t\t\t\t'active:focus:animate-pop',\n\t\t\t\t'active:focus:ease-out',\n\t\t\t\t'active:focus:animate-duration-0',\n\t\t\t\t'active:focus:animate-fill-mode-backwards',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\trounded: ['rounded-full'],\n\t\t},\n\t\tsize: {\n\t\t\tauto: [],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tshape: 'rounded',\n\t\tsize: 'auto',\n\t},\n});\n\nexport type NotificationVariantProps = 'primary';\nexport type NotificationShapeProps = 'rounded';\nexport type NotificationSizeProps = 'auto';\n\nexport type NotificationProps = {\n\tvariant?: NotificationVariantProps;\n\tshape?: NotificationShapeProps;\n\tsize?: NotificationSizeProps;\n};\n\n@Component({\n\tselector: 'st-notification',\n\timports: [IconComponent],\n\ttemplateUrl: './notification.component.html',\n\tstyles: '',\n})\nexport class NotificationComponent {\n\tvariant = input<NotificationVariantProps>();\n\tshape = input<NotificationShapeProps>();\n\tsize = input<NotificationSizeProps>();\n\ticon = input<string>(matNotificationsOutline);\n\tstatus = input.required<NotificationStatus>();\n\tdisabled = input<boolean>(false);\n\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tnotificationComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t);\n\t});\n}\n","@let iconVar = this.icon();\n@let componentClassVar = this.componentClass();\n\n@if (status() === 'seen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-success top-2 left-[1.40rem] h-3 w-3 p-0\"></span>\n\t\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n\n@if (status() === 'unseen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-warning top-2 left-[1.40rem] h-3 w-3 p-0\"></span>\n\t\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAQa,MAAA,qBAAqB,GAAG,GAAG,CAAC,EAAE,EAAE;AAC5C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA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EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAIX,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBANjC,SAAS;+BACC,iBAAiB,EAAA,OAAA,EAClB,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,wwBAAA,EAAA;;;AE7DzB;;AAEG;;;;"}
|
|
@@ -9,12 +9,12 @@ import { cva, cx } from 'class-variance-authority';
|
|
|
9
9
|
class ProductCardActionsDirective {
|
|
10
10
|
tplRef = inject(TemplateRef);
|
|
11
11
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductCardActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
12
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: ProductCardActionsDirective, isStandalone: true, selector: "[
|
|
12
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: ProductCardActionsDirective, isStandalone: true, selector: "[stProductCardActions]", ngImport: i0 });
|
|
13
13
|
}
|
|
14
14
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductCardActionsDirective, decorators: [{
|
|
15
15
|
type: Directive,
|
|
16
16
|
args: [{
|
|
17
|
-
selector: '[
|
|
17
|
+
selector: '[stProductCardActions]',
|
|
18
18
|
standalone: true,
|
|
19
19
|
}]
|
|
20
20
|
}] });
|
|
@@ -22,12 +22,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
22
22
|
class ProductCardContentDirective {
|
|
23
23
|
tplRef = inject(TemplateRef);
|
|
24
24
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductCardContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: ProductCardContentDirective, isStandalone: true, selector: "[
|
|
25
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: ProductCardContentDirective, isStandalone: true, selector: "[stProductCardContent]", ngImport: i0 });
|
|
26
26
|
}
|
|
27
27
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductCardContentDirective, decorators: [{
|
|
28
28
|
type: Directive,
|
|
29
29
|
args: [{
|
|
30
|
-
selector: '[
|
|
30
|
+
selector: '[stProductCardContent]',
|
|
31
31
|
standalone: true,
|
|
32
32
|
}]
|
|
33
33
|
}] });
|
|
@@ -35,12 +35,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
35
35
|
class ProductCardHeaderDirective {
|
|
36
36
|
tplRef = inject(TemplateRef);
|
|
37
37
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductCardHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
38
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: ProductCardHeaderDirective, isStandalone: true, selector: "[
|
|
38
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: ProductCardHeaderDirective, isStandalone: true, selector: "[stProductCardHeader]", ngImport: i0 });
|
|
39
39
|
}
|
|
40
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductCardHeaderDirective, decorators: [{
|
|
41
41
|
type: Directive,
|
|
42
42
|
args: [{
|
|
43
|
-
selector: '[
|
|
43
|
+
selector: '[stProductCardHeader]',
|
|
44
44
|
standalone: true,
|
|
45
45
|
}]
|
|
46
46
|
}] });
|
|
@@ -49,7 +49,7 @@ const productCardContainer = cva(['card'], {
|
|
|
49
49
|
variants: {
|
|
50
50
|
shadow: {
|
|
51
51
|
none: [],
|
|
52
|
-
primary: ['shadow-
|
|
52
|
+
primary: ['shadow-main'],
|
|
53
53
|
},
|
|
54
54
|
height: {
|
|
55
55
|
fit: ['h-fit', 'min-h-[auto]'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-product-card.mjs","sources":["../../../projects/sdk/components/product-card/directives/product-card-actions.directive.ts","../../../projects/sdk/components/product-card/directives/product-card-content.directive.ts","../../../projects/sdk/components/product-card/directives/product-card-header.directive.ts","../../../projects/sdk/components/product-card/src/product-card.component.ts","../../../projects/sdk/components/product-card/src/product-card.component.html","../../../projects/sdk/components/product-card/sixbell-telco-sdk-components-product-card.ts"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n\tselector: '[appProductCardActions]',\n\tstandalone: true,\n})\nexport class ProductCardActionsDirective {\n\ttplRef = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n\tselector: '[appProductCardContent]',\n\tstandalone: true,\n})\nexport class ProductCardContentDirective {\n\ttplRef = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n\tselector: '[appProductCardHeader]',\n\tstandalone: true,\n})\nexport class ProductCardHeaderDirective {\n\ttplRef = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, contentChild, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matCallOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\nimport { ProductCardActionsDirective } from '../directives/product-card-actions.directive';\nimport { ProductCardContentDirective } from '../directives/product-card-content.directive';\nimport { ProductCardHeaderDirective } from '../directives/product-card-header.directive';\n\nexport const productCardContainer = cva(['card'], {\n\tvariants: {\n\t\tshadow: {\n\t\t\tnone: [],\n\t\t\tprimary: ['shadow-primary'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['h-fit', 'min-h-[auto]'],\n\t\t\tauto: ['h-auto', 'min-h-[auto]'],\n\t\t\tfull: ['h-full', 'min-h-full'],\n\t\t\t'min-content': ['h-min', 'min-h-min'],\n\t\t\t'max-content': ['h-max', 'min-h-max'],\n\t\t},\n\t\twidth: {\n\t\t\tfit: ['w-fit', 'min-w-[auto]'],\n\t\t\tauto: ['w-auto', 'min-w-[auto]'],\n\t\t\tfull: ['w-full', 'min-w-full'],\n\t\t\t'min-content': ['w-min', 'min-w-min'],\n\t\t\t'max-content': ['w-max', 'min-w-max'],\n\t\t},\n\t\tsize: {\n\t\t\txs: 'card-xs',\n\t\t\tsm: 'card-sm',\n\t\t\tmd: 'card-md',\n\t\t\tlg: 'card-lg',\n\t\t\txl: 'card-xl',\n\t\t},\n\t\tfigurePosition: {\n\t\t\ttop: ['top'],\n\t\t\tbottom: ['bottom'],\n\t\t\tside: ['card-side'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tshadow: 'primary',\n\t\theight: 'full',\n\t\twidth: 'auto',\n\t\tsize: 'md',\n\t\tfigurePosition: 'top',\n\t},\n});\n\nexport type ProductCardContainerShadowProps = 'none' | 'primary' | null | undefined;\nexport type ProductCardContainerHeightProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;\nexport type ProductCardContainerWidthProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;\nexport type ProductCardContainerSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\nexport type ProductCardContainerFigurePositionProps = 'top' | 'bottom' | 'side' | null | undefined;\n\nexport const productCardFigure = cva([], {\n\tvariants: {\n\t\tfigureBackground: {\n\t\t\tnone: [],\n\t\t\timage: ['image-full'],\n\t\t\tprimary: ['bg-primary', 'text-primary-content'],\n\t\t\tsecondary: ['bg-secondary', 'text-secondary-content'],\n\t\t\twarning: ['bg-warning', 'text-warning-content'],\n\t\t\terror: ['bg-error', 'text-error-content'],\n\t\t\tneutral: ['bg-neutral', 'text-neutral-content'],\n\t\t},\n\t\tfigureAlignment: {\n\t\t\tauto: [],\n\t\t\tcenter: ['flex', 'justify-center'],\n\t\t\tstart: ['flex', 'justify-start'],\n\t\t\tend: ['flex', 'justify-end'],\n\t\t},\n\t\tfigurePaddingY: {\n\t\t\tnone: 'py-0',\n\t\t\tsm: 'py-2',\n\t\t\tmd: 'py-4',\n\t\t\tlg: 'py-6',\n\t\t},\n\t\tfigurePaddingX: {\n\t\t\tnone: 'px-0',\n\t\t\tsm: 'px-2',\n\t\t\tmd: 'px-4',\n\t\t\tlg: 'px-6',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tfigureBackground: 'none',\n\t\tfigureAlignment: 'auto',\n\t\tfigurePaddingY: 'none',\n\t\tfigurePaddingX: 'none',\n\t},\n});\n\nexport type ProductCardFigureBackgroundProps = 'none' | 'image' | 'primary' | 'secondary' | 'warning' | 'error' | 'neutral' | null | undefined;\nexport type ProductCardFigureAlignmentProps = 'auto' | 'center' | 'start' | 'end' | null | undefined;\nexport type ProductCardFigurePaddingYProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type ProductCardFigurePaddingXProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type ProductCardVariantProps = {\n\tshadow?: ProductCardContainerShadowProps;\n\theight?: ProductCardContainerHeightProps;\n\twidth?: ProductCardContainerWidthProps;\n\tsize?: ProductCardContainerSizeProps;\n\tfigureBackground?: ProductCardFigureBackgroundProps;\n\tfigurePosition?: ProductCardContainerFigurePositionProps;\n\tfigureAlignment?: ProductCardFigureAlignmentProps;\n\tfigurePaddingY?: ProductCardFigurePaddingYProps;\n\tfigurePaddingX?: ProductCardFigurePaddingXProps;\n};\n\nexport const productCardComponent = ({\n\tshadow,\n\theight,\n\twidth,\n\tsize,\n\tfigureBackground,\n\tfigurePosition,\n\tfigureAlignment,\n\tfigurePaddingY,\n\tfigurePaddingX,\n}: ProductCardVariantProps = {}) =>\n\tcx(\n\t\tproductCardContainer({ shadow, height, width, size, figurePosition }),\n\t\tproductCardFigure({ figureBackground, figureAlignment, figurePaddingX, figurePaddingY }),\n\t);\n\n@Component({\n\tselector: 'st-product-card',\n\timports: [NgTemplateOutlet, IconComponent],\n\ttemplateUrl: './product-card.component.html',\n\tstyles: '',\n})\nexport class ProductCardComponent {\n\t// Base table properties\n\tshadow = input<ProductCardContainerShadowProps>();\n\theight = input<ProductCardContainerHeightProps>();\n\twidth = input<ProductCardContainerWidthProps>();\n\tsize = input<ProductCardContainerSizeProps>();\n\tfigurePosition = input<ProductCardContainerFigurePositionProps>();\n\t// Figure properties\n\tfigureBackground = input<ProductCardFigureBackgroundProps>();\n\tfigureAlignment = input<ProductCardFigureAlignmentProps>();\n\tfigurePaddingY = input<ProductCardFigurePaddingYProps>();\n\tfigurePaddingX = input<ProductCardFigurePaddingXProps>();\n\n\ttitleClasses = input<string>('');\n\tactionsClasses = input<string>('');\n\timage = input<{ src: string; alt: string }>();\n\ticon = input<string>();\n\tfallbackIcon = matCallOutline;\n\theader = contentChild(ProductCardHeaderDirective);\n\tcontent = contentChild(ProductCardContentDirective);\n\tactions = contentChild(ProductCardActionsDirective);\n\n\tcontainerClass = computed(() =>\n\t\tcn(\n\t\t\tproductCardContainer({\n\t\t\t\tshadow: this.shadow(),\n\t\t\t\theight: this.height(),\n\t\t\t\twidth: this.width(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tfigurePosition: this.figurePosition(),\n\t\t\t}),\n\t\t),\n\t);\n\n\tfigureClass = computed(() =>\n\t\tcn(\n\t\t\tproductCardFigure({\n\t\t\t\tfigureBackground: this.figureBackground(),\n\t\t\t\tfigureAlignment: this.figureAlignment(),\n\t\t\t\tfigurePaddingX: this.figurePaddingX(),\n\t\t\t\tfigurePaddingY: this.figurePaddingY(),\n\t\t\t}),\n\t\t),\n\t);\n\n\ttitleClass = computed(() => cn('card-title', this.titleClasses()));\n\n\tactionsClass = computed(() => cn('card-actions', this.actionsClasses()));\n}\n","@let figurePositionVar = this.figurePosition();\n@let imageVar = image();\n@let iconVar = icon();\n\n<div [class]=\"containerClass()\">\n\t@if (figurePositionVar === 'top' || figurePositionVar === 'side' || !figurePositionVar) {\n\t\t<figure [class]=\"figureClass()\">\n\t\t\t@if (imageVar?.src && imageVar?.alt) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t}\n\t\t</figure>\n\t}\n\t<div class=\"card-body\">\n\t\t<div [class]=\"titleClass()\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"header()?.tplRef || null\"></ng-container>\n\t\t</div>\n\t\t<div>\n\t\t\t<ng-container [ngTemplateOutlet]=\"content()?.tplRef || null\"></ng-container>\n\t\t</div>\n\t\t<div [class]=\"actionsClass()\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"actions()?.tplRef || null\"></ng-container>\n\t\t</div>\n\t</div>\n\t@if (figurePositionVar === 'bottom') {\n\t\t<figure [class]=\"figureClass()\">\n\t\t\t@if (imageVar?.src && imageVar?.alt) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t}\n\t\t</figure>\n\t}\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAMa,2BAA2B,CAAA;AACvC,IAAA,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC;uGADhB,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,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2vCAAA,EAAA;;;AEnI3C;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-product-card.mjs","sources":["../../../projects/sdk/components/product-card/directives/product-card-actions.directive.ts","../../../projects/sdk/components/product-card/directives/product-card-content.directive.ts","../../../projects/sdk/components/product-card/directives/product-card-header.directive.ts","../../../projects/sdk/components/product-card/src/product-card.component.ts","../../../projects/sdk/components/product-card/src/product-card.component.html","../../../projects/sdk/components/product-card/sixbell-telco-sdk-components-product-card.ts"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n\tselector: '[stProductCardActions]',\n\tstandalone: true,\n})\nexport class ProductCardActionsDirective {\n\ttplRef = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n\tselector: '[stProductCardContent]',\n\tstandalone: true,\n})\nexport class ProductCardContentDirective {\n\ttplRef = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n\tselector: '[stProductCardHeader]',\n\tstandalone: true,\n})\nexport class ProductCardHeaderDirective {\n\ttplRef = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, contentChild, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matCallOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\nimport { ProductCardActionsDirective } from '../directives/product-card-actions.directive';\nimport { ProductCardContentDirective } from '../directives/product-card-content.directive';\nimport { ProductCardHeaderDirective } from '../directives/product-card-header.directive';\n\nexport const productCardContainer = cva(['card'], {\n\tvariants: {\n\t\tshadow: {\n\t\t\tnone: [],\n\t\t\tprimary: ['shadow-main'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['h-fit', 'min-h-[auto]'],\n\t\t\tauto: ['h-auto', 'min-h-[auto]'],\n\t\t\tfull: ['h-full', 'min-h-full'],\n\t\t\t'min-content': ['h-min', 'min-h-min'],\n\t\t\t'max-content': ['h-max', 'min-h-max'],\n\t\t},\n\t\twidth: {\n\t\t\tfit: ['w-fit', 'min-w-[auto]'],\n\t\t\tauto: ['w-auto', 'min-w-[auto]'],\n\t\t\tfull: ['w-full', 'min-w-full'],\n\t\t\t'min-content': ['w-min', 'min-w-min'],\n\t\t\t'max-content': ['w-max', 'min-w-max'],\n\t\t},\n\t\tsize: {\n\t\t\txs: 'card-xs',\n\t\t\tsm: 'card-sm',\n\t\t\tmd: 'card-md',\n\t\t\tlg: 'card-lg',\n\t\t\txl: 'card-xl',\n\t\t},\n\t\tfigurePosition: {\n\t\t\ttop: ['top'],\n\t\t\tbottom: ['bottom'],\n\t\t\tside: ['card-side'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tshadow: 'primary',\n\t\theight: 'full',\n\t\twidth: 'auto',\n\t\tsize: 'md',\n\t\tfigurePosition: 'top',\n\t},\n});\n\nexport type ProductCardContainerShadowProps = 'none' | 'primary' | null | undefined;\nexport type ProductCardContainerHeightProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;\nexport type ProductCardContainerWidthProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;\nexport type ProductCardContainerSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\nexport type ProductCardContainerFigurePositionProps = 'top' | 'bottom' | 'side' | null | undefined;\n\nexport const productCardFigure = cva([], {\n\tvariants: {\n\t\tfigureBackground: {\n\t\t\tnone: [],\n\t\t\timage: ['image-full'],\n\t\t\tprimary: ['bg-primary', 'text-primary-content'],\n\t\t\tsecondary: ['bg-secondary', 'text-secondary-content'],\n\t\t\twarning: ['bg-warning', 'text-warning-content'],\n\t\t\terror: ['bg-error', 'text-error-content'],\n\t\t\tneutral: ['bg-neutral', 'text-neutral-content'],\n\t\t},\n\t\tfigureAlignment: {\n\t\t\tauto: [],\n\t\t\tcenter: ['flex', 'justify-center'],\n\t\t\tstart: ['flex', 'justify-start'],\n\t\t\tend: ['flex', 'justify-end'],\n\t\t},\n\t\tfigurePaddingY: {\n\t\t\tnone: 'py-0',\n\t\t\tsm: 'py-2',\n\t\t\tmd: 'py-4',\n\t\t\tlg: 'py-6',\n\t\t},\n\t\tfigurePaddingX: {\n\t\t\tnone: 'px-0',\n\t\t\tsm: 'px-2',\n\t\t\tmd: 'px-4',\n\t\t\tlg: 'px-6',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tfigureBackground: 'none',\n\t\tfigureAlignment: 'auto',\n\t\tfigurePaddingY: 'none',\n\t\tfigurePaddingX: 'none',\n\t},\n});\n\nexport type ProductCardFigureBackgroundProps = 'none' | 'image' | 'primary' | 'secondary' | 'warning' | 'error' | 'neutral' | null | undefined;\nexport type ProductCardFigureAlignmentProps = 'auto' | 'center' | 'start' | 'end' | null | undefined;\nexport type ProductCardFigurePaddingYProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type ProductCardFigurePaddingXProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type ProductCardVariantProps = {\n\tshadow?: ProductCardContainerShadowProps;\n\theight?: ProductCardContainerHeightProps;\n\twidth?: ProductCardContainerWidthProps;\n\tsize?: ProductCardContainerSizeProps;\n\tfigureBackground?: ProductCardFigureBackgroundProps;\n\tfigurePosition?: ProductCardContainerFigurePositionProps;\n\tfigureAlignment?: ProductCardFigureAlignmentProps;\n\tfigurePaddingY?: ProductCardFigurePaddingYProps;\n\tfigurePaddingX?: ProductCardFigurePaddingXProps;\n};\n\nexport const productCardComponent = ({\n\tshadow,\n\theight,\n\twidth,\n\tsize,\n\tfigureBackground,\n\tfigurePosition,\n\tfigureAlignment,\n\tfigurePaddingY,\n\tfigurePaddingX,\n}: ProductCardVariantProps = {}) =>\n\tcx(\n\t\tproductCardContainer({ shadow, height, width, size, figurePosition }),\n\t\tproductCardFigure({ figureBackground, figureAlignment, figurePaddingX, figurePaddingY }),\n\t);\n\n@Component({\n\tselector: 'st-product-card',\n\timports: [NgTemplateOutlet, IconComponent],\n\ttemplateUrl: './product-card.component.html',\n\tstyles: '',\n})\nexport class ProductCardComponent {\n\t// Base table properties\n\tshadow = input<ProductCardContainerShadowProps>();\n\theight = input<ProductCardContainerHeightProps>();\n\twidth = input<ProductCardContainerWidthProps>();\n\tsize = input<ProductCardContainerSizeProps>();\n\tfigurePosition = input<ProductCardContainerFigurePositionProps>();\n\t// Figure properties\n\tfigureBackground = input<ProductCardFigureBackgroundProps>();\n\tfigureAlignment = input<ProductCardFigureAlignmentProps>();\n\tfigurePaddingY = input<ProductCardFigurePaddingYProps>();\n\tfigurePaddingX = input<ProductCardFigurePaddingXProps>();\n\n\ttitleClasses = input<string>('');\n\tactionsClasses = input<string>('');\n\timage = input<{ src: string; alt: string }>();\n\ticon = input<string>();\n\tfallbackIcon = matCallOutline;\n\theader = contentChild(ProductCardHeaderDirective);\n\tcontent = contentChild(ProductCardContentDirective);\n\tactions = contentChild(ProductCardActionsDirective);\n\n\tcontainerClass = computed(() =>\n\t\tcn(\n\t\t\tproductCardContainer({\n\t\t\t\tshadow: this.shadow(),\n\t\t\t\theight: this.height(),\n\t\t\t\twidth: this.width(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tfigurePosition: this.figurePosition(),\n\t\t\t}),\n\t\t),\n\t);\n\n\tfigureClass = computed(() =>\n\t\tcn(\n\t\t\tproductCardFigure({\n\t\t\t\tfigureBackground: this.figureBackground(),\n\t\t\t\tfigureAlignment: this.figureAlignment(),\n\t\t\t\tfigurePaddingX: this.figurePaddingX(),\n\t\t\t\tfigurePaddingY: this.figurePaddingY(),\n\t\t\t}),\n\t\t),\n\t);\n\n\ttitleClass = computed(() => cn('card-title', this.titleClasses()));\n\n\tactionsClass = computed(() => cn('card-actions', this.actionsClasses()));\n}\n","@let figurePositionVar = this.figurePosition();\n@let imageVar = image();\n@let iconVar = icon();\n\n<div [class]=\"containerClass()\">\n\t@if (figurePositionVar === 'top' || figurePositionVar === 'side' || !figurePositionVar) {\n\t\t<figure [class]=\"figureClass()\">\n\t\t\t@if (imageVar?.src && imageVar?.alt) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t}\n\t\t</figure>\n\t}\n\t<div class=\"card-body\">\n\t\t<div [class]=\"titleClass()\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"header()?.tplRef || null\"></ng-container>\n\t\t</div>\n\t\t<div>\n\t\t\t<ng-container [ngTemplateOutlet]=\"content()?.tplRef || null\"></ng-container>\n\t\t</div>\n\t\t<div [class]=\"actionsClass()\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"actions()?.tplRef || null\"></ng-container>\n\t\t</div>\n\t</div>\n\t@if (figurePositionVar === 'bottom') {\n\t\t<figure [class]=\"figureClass()\">\n\t\t\t@if (imageVar?.src && imageVar?.alt) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t}\n\t\t</figure>\n\t}\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAMa,2BAA2B,CAAA;AACvC,IAAA,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC;uGADhB,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAJvC,SAAS;AAAC,YAA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type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
438
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: TableComponent, isStandalone: true, selector: "st-table", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, showItemsPerPage: { classPropertyName: "showItemsPerPage", publicName: "showItemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, showEntries: { classPropertyName: "showEntries", publicName: "showEntries", isSignal: true, isRequired: false, transformFunction: null }, showPagination: { classPropertyName: "showPagination", publicName: "showPagination", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, allowHeaderOverflow: { classPropertyName: "allowHeaderOverflow", publicName: "allowHeaderOverflow", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged", checkedItems: "checkedItems" }, queries: [{ propertyName: "header", first: true, predicate: TableHeaderCheckboxComponent, descendants: true, isSignal: true }, { propertyName: "rows", predicate: TableRowCheckboxComponent, descendants: true, isSignal: true }], ngImport: i0, template: "@let total = totalItems();\n@let dataVar = data();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let showItemsPerPageVar = showItemsPerPage();\n@let paginationVar = pagination();\n@let showPaginationVar = showPagination();\n@let paginatorTypeVar = paginatorType();\n@let maxSizeVar = maxSize();\n@let showEntriesVar = showEntries();\n@let heightVar = height();\n@let showshowFooterVar = showFooter();\n\n@if (total > 0 || dataVar.length > 0) {\n\t<div [class]=\"containerClassVar\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClassVar\">\n\t\t\t<table [class]=\"tableClassVar\">\n\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t@if (heightVar !== 'auto') {\n\t\t\t\t<!-- gradient -->\n\t\t\t\t<div\n\t\t\t\t\tclass=\"after:from-base-200 relative after:absolute after:inset-x-0 after:right-0 after:bottom-0 after:left-0 after:block after:h-6 after:bg-gradient-to-t after:to-transparent after:bg-top after:content-['']\"\n\t\t\t\t></div>\n\t\t\t}\n\n\t\t\t<!-- Footer -->\n\t\t\t@if (showshowFooterVar) {\n\t\t\t\t<div class=\"flex flex-col gap-3\">\n\t\t\t\t\t<!-- Divider -->\n\t\t\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\n\t\t\t\t\t<!-- Paginator -->\n\t\t\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t\t\t<!-- Pagination info -->\n\t\t\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"paginationVar.id\" (pageChanged)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.table.entriesRange' | translate: { range: paginationRange(), total: total } }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"rounded-box border-neutral grid h-full place-content-center gap-4 border border-solid p-6\">\n\t\t<div>\n\t\t\t<div class=\"text-info grid place-content-center\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.emptyListMessage' | translate }}</span>\n\t\t</div>\n\t</div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "currentPage"], outputs: ["pageChanged", "currentPageChange"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "ghost", "name", "placeholder", "label", "value", "options", "displayKey", "valueKey", "allowClear", "parentForm", "formControlName", "disabled"], outputs: ["valueChange", "disabledChange", "blurred", "valueUpdated"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
438
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: TableComponent, isStandalone: true, selector: "st-table", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, showItemsPerPage: { classPropertyName: "showItemsPerPage", publicName: "showItemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, showEntries: { classPropertyName: "showEntries", publicName: "showEntries", isSignal: true, isRequired: false, transformFunction: null }, showPagination: { classPropertyName: "showPagination", publicName: "showPagination", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, allowHeaderOverflow: { classPropertyName: "allowHeaderOverflow", publicName: "allowHeaderOverflow", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged", checkedItems: "checkedItems" }, queries: [{ propertyName: "header", first: true, predicate: TableHeaderCheckboxComponent, descendants: true, isSignal: true }, { propertyName: "rows", predicate: TableRowCheckboxComponent, descendants: true, isSignal: true }], ngImport: i0, template: "@let total = totalItems();\n@let dataVar = data();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let showItemsPerPageVar = showItemsPerPage();\n@let paginationVar = pagination();\n@let showPaginationVar = showPagination();\n@let paginatorTypeVar = paginatorType();\n@let maxSizeVar = maxSize();\n@let showEntriesVar = showEntries();\n@let heightVar = height();\n@let showshowFooterVar = showFooter();\n\n@if (total > 0 || dataVar.length > 0) {\n\t<div [class]=\"containerClassVar\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClassVar\">\n\t\t\t<table [class]=\"tableClassVar\">\n\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t@if (heightVar !== 'auto') {\n\t\t\t\t<!-- gradient -->\n\t\t\t\t<div\n\t\t\t\t\tclass=\"after:from-base-200 relative after:absolute after:inset-x-0 after:right-0 after:bottom-0 after:left-0 after:block after:h-6 after:bg-gradient-to-t after:to-transparent after:bg-top after:content-['']\"\n\t\t\t\t></div>\n\t\t\t}\n\n\t\t\t<!-- Footer -->\n\t\t\t@if (showshowFooterVar) {\n\t\t\t\t<div class=\"flex flex-col gap-3\">\n\t\t\t\t\t<!-- Divider -->\n\t\t\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\n\t\t\t\t\t<!-- Paginator -->\n\t\t\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t\t\t<!-- Pagination info -->\n\t\t\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"paginationVar.id\" (pageChanged)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.table.entriesRange' | translate: { range: paginationRange(), total: total } }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"rounded-box border-neutral grid h-full place-content-center gap-4 border border-solid p-6\">\n\t\t<div>\n\t\t\t<div class=\"text-info grid place-content-center\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.emptyListMessage' | translate }}</span>\n\t\t</div>\n\t</div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "currentPage"], outputs: ["pageChanged", "currentPageChange"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "ghost", "name", "placeholder", "label", "value", "options", "displayKey", "valueKey", "allowClear", "parentForm", "formControlName", "disabled"], outputs: ["valueChange", "disabledChange", "blurred", "valueUpdated"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
439
439
|
}
|
|
440
440
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TableComponent, decorators: [{
|
|
441
441
|
type: Component,
|
|
442
|
-
args: [{ selector: 'st-table', imports: [CommonModule, PaginatorComponent, TypographyDirective, SelectComponent, IconComponent, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let total = totalItems();\n@let dataVar = data();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let showItemsPerPageVar = showItemsPerPage();\n@let paginationVar = pagination();\n@let showPaginationVar = showPagination();\n@let paginatorTypeVar = paginatorType();\n@let maxSizeVar = maxSize();\n@let showEntriesVar = showEntries();\n@let heightVar = height();\n@let showshowFooterVar = showFooter();\n\n@if (total > 0 || dataVar.length > 0) {\n\t<div [class]=\"containerClassVar\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClassVar\">\n\t\t\t<table [class]=\"tableClassVar\">\n\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t@if (heightVar !== 'auto') {\n\t\t\t\t<!-- gradient -->\n\t\t\t\t<div\n\t\t\t\t\tclass=\"after:from-base-200 relative after:absolute after:inset-x-0 after:right-0 after:bottom-0 after:left-0 after:block after:h-6 after:bg-gradient-to-t after:to-transparent after:bg-top after:content-['']\"\n\t\t\t\t></div>\n\t\t\t}\n\n\t\t\t<!-- Footer -->\n\t\t\t@if (showshowFooterVar) {\n\t\t\t\t<div class=\"flex flex-col gap-3\">\n\t\t\t\t\t<!-- Divider -->\n\t\t\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\n\t\t\t\t\t<!-- Paginator -->\n\t\t\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t\t\t<!-- Pagination info -->\n\t\t\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"paginationVar.id\" (pageChanged)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.table.entriesRange' | translate: { range: paginationRange(), total: total } }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"rounded-box border-neutral grid h-full place-content-center gap-4 border border-solid p-6\">\n\t\t<div>\n\t\t\t<div class=\"text-info grid place-content-center\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.emptyListMessage' | translate }}</span>\n\t\t</div>\n\t</div>\n}\n" }]
|
|
442
|
+
args: [{ selector: 'st-table', imports: [CommonModule, PaginatorComponent, TypographyDirective, SelectComponent, IconComponent, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let total = totalItems();\n@let dataVar = data();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let showItemsPerPageVar = showItemsPerPage();\n@let paginationVar = pagination();\n@let showPaginationVar = showPagination();\n@let paginatorTypeVar = paginatorType();\n@let maxSizeVar = maxSize();\n@let showEntriesVar = showEntries();\n@let heightVar = height();\n@let showshowFooterVar = showFooter();\n\n@if (total > 0 || dataVar.length > 0) {\n\t<div [class]=\"containerClassVar\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClassVar\">\n\t\t\t<table [class]=\"tableClassVar\">\n\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t@if (heightVar !== 'auto') {\n\t\t\t\t<!-- gradient -->\n\t\t\t\t<div\n\t\t\t\t\tclass=\"after:from-base-200 relative after:absolute after:inset-x-0 after:right-0 after:bottom-0 after:left-0 after:block after:h-6 after:bg-gradient-to-t after:to-transparent after:bg-top after:content-['']\"\n\t\t\t\t></div>\n\t\t\t}\n\n\t\t\t<!-- Footer -->\n\t\t\t@if (showshowFooterVar) {\n\t\t\t\t<div class=\"flex flex-col gap-3\">\n\t\t\t\t\t<!-- Divider -->\n\t\t\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\n\t\t\t\t\t<!-- Paginator -->\n\t\t\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t\t\t<!-- Pagination info -->\n\t\t\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.entriesByPage' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"paginationVar.id\" (pageChanged)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.table.entriesRange' | translate: { range: paginationRange(), total: total } }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"rounded-box border-neutral grid h-full place-content-center gap-4 border border-solid p-6\">\n\t\t<div>\n\t\t\t<div class=\"text-info grid place-content-center\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"paginatorTextSizeVar\" [tyColor]=\"'inherit'\">{{ 'sdk.table.emptyListMessage' | translate }}</span>\n\t\t</div>\n\t</div>\n}\n" }]
|
|
443
443
|
}] });
|
|
444
444
|
|
|
445
445
|
/**
|