@sixbell-telco/sdk 4.8.0 → 4.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/components/accordion/README.md +1 -1
  3. package/components/accordion/src/accordion.component.d.ts +4 -0
  4. package/components/alert/src/alert.component.d.ts +8 -1
  5. package/components/data-table/README.md +1 -0
  6. package/components/data-table/src/data-table.component.d.ts +2 -24
  7. package/components/dialog/README.md +4 -3
  8. package/components/dialog/dialog-actions/dialog-actions.component.d.ts +2 -1
  9. package/components/dialog/src/dialog.component.d.ts +10 -5
  10. package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +1 -1
  11. package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -2
  12. package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +12 -0
  13. package/components/file-upload/file-uploader/file-uploader.component.d.ts +6 -0
  14. package/components/forms/combobox/README.md +49 -0
  15. package/components/forms/combobox/src/combobox.component.d.ts +178 -3
  16. package/components/forms/date-picker/README.md +3 -1
  17. package/components/forms/date-picker/src/date-picker.component.d.ts +8 -1
  18. package/components/forms/form-error/README.md +2 -0
  19. package/components/forms/form-error/src/form-error.component.d.ts +17 -0
  20. package/components/forms/form-hint/README.md +2 -2
  21. package/components/forms/form-item/README.md +1 -0
  22. package/components/forms/form-item/src/form-item.component.d.ts +38 -6
  23. package/components/forms/input/README.md +7 -0
  24. package/components/forms/input/src/input.component.d.ts +11 -1
  25. package/components/forms/select/README.md +48 -0
  26. package/components/forms/select/src/select.component.d.ts +157 -2
  27. package/components/forms/textarea/README.md +1 -0
  28. package/components/forms/textarea/src/textarea.component.d.ts +6 -1
  29. package/components/paginator/README.md +3 -0
  30. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +8 -3
  31. package/components/paginator/src/paginator.component.d.ts +2 -1
  32. package/components/progress/src/progress.component.d.ts +17 -3
  33. package/components/table/README.md +2 -0
  34. package/components/table/src/table.component.d.ts +16 -23
  35. package/directives/only-numbers/src/only-numbers.directive.d.ts +27 -1
  36. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +6 -1
  37. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  38. package/fesm2022/sixbell-telco-sdk-components-alert.mjs +12 -5
  39. package/fesm2022/sixbell-telco-sdk-components-alert.mjs.map +1 -1
  40. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +5 -2
  41. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  42. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +30 -13
  43. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  44. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +2 -1
  45. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  46. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +10 -4
  47. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
  48. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
  49. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  50. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +32 -6
  51. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  52. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +272 -23
  53. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  54. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +17 -4
  55. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  56. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +32 -4
  57. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  58. package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +74 -10
  59. package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
  60. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +13 -3
  61. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  62. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +258 -18
  63. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  64. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
  65. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  66. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +11 -3
  67. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  68. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +15 -11
  69. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  70. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +22 -4
  71. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  72. package/fesm2022/sixbell-telco-sdk-components-table.mjs +42 -5
  73. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  74. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +49 -4
  75. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
  76. package/fesm2022/sixbell-telco-sdk-layouts.mjs +1 -1
  77. package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
  78. package/i18n/sdk/en.json +14 -4
  79. package/i18n/sdk/es.json +14 -4
  80. package/i18n/sdk/pt.json +14 -4
  81. package/manifest.json +185 -19
  82. package/package.json +1 -1
  83. package/src/_index.css +19 -0
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-forms-textarea.mjs","sources":["../../../projects/sdk/components/forms/textarea/src/textarea.component.ts","../../../projects/sdk/components/forms/textarea/src/textarea.component.html","../../../projects/sdk/components/forms/textarea/sixbell-telco-sdk-components-forms-textarea.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport {\n\tafterRenderEffect,\n\tbooleanAttribute,\n\tComponent,\n\tcomputed,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tmodel,\n\toutput,\n\tsignal,\n\tviewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { injectFormFieldA11y, optionalBooleanAttribute } from '@sixbell-telco/sdk/components/forms/form-item';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { distinctUntilChanged, map, skip, startWith, Subject, switchMap, timer } from 'rxjs';\n\n/**\n * @internal\n * Generates base textarea classes with style variants\n */\nconst textareaComponent = cva(\n\t[\n\t\t'text-pretty',\n\t\t'font-body',\n\t\t'input',\n\t\t'placeholder:placeholder-base-content-muted',\n\t\t'leading-normal',\n\t\t'grow',\n\t\t'textarea',\n\t\t'w-full',\n\t\t'rounded-field',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tbase: [],\n\t\t\t\tprimary: ['textarea-primary'],\n\t\t\t\tsecondary: ['textarea-secondary'],\n\t\t\t\ttertiary: ['textarea-tertiary'],\n\t\t\t\taccent: ['textarea-accent'],\n\t\t\t\tinfo: ['textarea-info'],\n\t\t\t\tsuccess: ['textarea-success'],\n\t\t\t\twarning: ['textarea-warning'],\n\t\t\t\terror: ['textarea-error'],\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\txs: ['textarea-xs'],\n\t\t\t\tsm: ['textarea-sm'],\n\t\t\t\tmd: ['textarea-md'],\n\t\t\t\tlg: ['textarea-lg'],\n\t\t\t\txl: ['textarea-xl'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tvariant: 'base',\n\t\t\tsize: 'md',\n\t\t},\n\t},\n);\n\n/** Possible textarea style variants */\nexport type textareaVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\n/** Possible textarea size variants */\nexport type textareaSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for textarea styling */\nexport type textareaProps = {\n\tvariant?: textareaVariantProps;\n\tsize?: textareaSizeProps;\n};\n\nlet nextTextareaId = 0;\n\n/**\n * A customizable textarea component with form integration and validation features\n *\n * @remarks\n * Supports character counting, debounced input, and automatic validation styling.\n * Implements ControlValueAccessor for Angular form compatibility.\n *\n * @example\n * ```html\n * <!-- Basic textarea usage -->\n * <st-textarea\n * [(value)]=\"description\"\n * label=\"Description\"\n * maxCharacters=\"500\"\n * ></st-textarea>\n * ```\n *\n * @example\n * ```html\n * <!-- Reactive form integration -->\n * <st-textarea\n * [parentForm]=\"userForm\"\n * formControlName=\"bio\"\n * variant=\"primary\"\n * debounceTime=\"300\"\n * ></st-textarea>\n * ```\n */\n@Component({\n\tselector: 'st-textarea',\n\timports: [FormsModule, TextDirective, TranslatePipe],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: TextareaComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './textarea.component.html',\n})\nexport class TextareaComponent {\n\t/**\n\t * Textarea style variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<textareaVariantProps>('base');\n\n\t/**\n\t * Textarea size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<textareaSizeProps>('md');\n\n\t/**\n\t * Whether to use ghost (transparent) styling\n\t * @defaultValue false\n\t */\n\tghost = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Label displayed above the textarea\n\t */\n\tlabel = input<string | null>(null);\n\n\t/**\n\t * Whether to show optional indicator\n\t * @defaultValue false\n\t */\n\tshowOptional = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Optional indicator text (translation key or literal)\n\t * @defaultValue 'sdk.formFields.optional'\n\t */\n\toptionalText = input<string>('sdk.formFields.optional');\n\n\t/**\n\t * Mark the field as required: shows the `*` marker and announces the field as required.\n\t * When not set, the enclosing `st-form-item` `required`, then `Validators.required` on the bound control decide.\n\t */\n\trequired = input<boolean | undefined, unknown>(undefined, { transform: optionalBooleanAttribute });\n\n\t/** @internal Required state and hint ids from the enclosing `st-form-item`. */\n\tprotected readonly fieldA11y = injectFormFieldA11y({\n\t\trequired: () => this.required(),\n\t\tcontrol: () => this.formControl(),\n\t\tstatus: () => this.statusSignal(),\n\t});\n\n\t/**\n\t * HTML name attribute for the textarea\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Id of the focusable control, used by its label. A unique id is generated when omitted.\n\t */\n\tinputId = input<string | null>(null);\n\n\t/** @internal */\n\tprivate readonly generatedId = `st-textarea-${nextTextareaId++}`;\n\n\t/** @internal Id applied to the focusable control and referenced by its label */\n\tprotected readonly resolvedId = computed(() => this.inputId() || this.generatedId);\n\n\t/**\n\t * Placeholder text when empty\n\t */\n\tplaceholder = input<string>('');\n\n\t/**\n\t * Number of visible text rows\n\t * @defaultValue 3\n\t */\n\trows = input<string | number>(3);\n\n\t/**\n\t * Whether the textarea is readonly\n\t * @defaultValue false\n\t */\n\treadonly = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Whether the textarea is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * Event emitted on textarea blur\n\t */\n\tblurred = output<string>();\n\n\t/** @internal */\n\tprivate readonly blurTrigger = signal(0);\n\n\t/**\n\t * Two-way bindable textarea value\n\t */\n\tvalue = model<string>('');\n\n\t/**\n\t * Maximum allowed character count\n\t * @defaultValue 0 (unlimited)\n\t */\n\tmaxCharacters = input<number>(0);\n\n\t/**\n\t * Whether current value exceeds maxCharacters\n\t * @internal\n\t */\n\tinvalidMaxCharacters = computed<boolean>(() => this.value().length > this.maxCharacters());\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 * @internal\n\t * Gets associated form control\n\t */\n\tget formField(): FormControl | null {\n\t\tif (!this.parentForm()) return null;\n\t\treturn this.parentForm()?.get(this.formControlName()) as FormControl;\n\t}\n\n\t// ControlValueAccessor implementation\n\t/** @internal */\n\tprivate onControlChange: any = () => {};\n\t/** @internal */\n\tprivate onControlTouch: any = () => {};\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (Enter)\n\t */\n\ttriggered = output<void>();\n\n\t/**\n\t * Debounce time in milliseconds for valueDebounced output\n\t * @defaultValue 500\n\t */\n\tdebounceTime = input(500);\n\n\t/**\n\t * Event emitted after debounce time when value changes\n\t */\n\tvalueDebounced = output<string>();\n\n\t/** @internal */\n\tprivate readonly debounceAction$ = new Subject<number>();\n\t/** @internal */\n\tprivate readonly value$ = toObservable(this.value);\n\t/** @internal */\n\tprivate readonly destroyRef = inject(DestroyRef);\n\t/** @internal */\n\tprivate readonly counterBarRef = viewChild<ElementRef<HTMLDivElement>>('counterBarRef');\n\t/** @internal */\n\tprivate readonly counterHeightPx = signal(0);\n\t/** @internal */\n\tprivate readonly counterObserver = signal<ResizeObserver | null>(null);\n\n\tconstructor() {\n\t\t// Emit debounce time changes to the action subject\n\t\teffect(() => {\n\t\t\tthis.debounceAction$.next(this.debounceTime());\n\t\t});\n\n\t\tthis.destroyRef.onDestroy(() => {\n\t\t\tconst observer = this.counterObserver();\n\t\t\tif (observer) observer.disconnect();\n\t\t});\n\n\t\tafterRenderEffect(() => {\n\t\t\tconst counterRef = this.counterBarRef();\n\t\t\tconst currentObserver = this.counterObserver();\n\n\t\t\tif (!this.maxCharacters() || !counterRef?.nativeElement) {\n\t\t\t\tif (currentObserver) {\n\t\t\t\t\tcurrentObserver.disconnect();\n\t\t\t\t\tthis.counterObserver.set(null);\n\t\t\t\t}\n\t\t\t\tthis.counterHeightPx.set(0);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (currentObserver) return;\n\n\t\t\tconst observer = new ResizeObserver((entries) => {\n\t\t\t\tconst entry = entries[0];\n\t\t\t\tthis.counterHeightPx.set(Math.ceil(entry.contentRect.height));\n\t\t\t});\n\n\t\t\tconst counter = counterRef.nativeElement;\n\t\t\tif (!(counter instanceof Element)) return;\n\t\t\tobserver.observe(counter);\n\t\t\tthis.counterObserver.set(observer);\n\t\t\tthis.counterHeightPx.set(Math.ceil(counter.getBoundingClientRect().height));\n\t\t});\n\n\t\tthis.setupDebounce();\n\t}\n\n\t/**\n\t * @internal\n\t * Computed base textarea classes\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\ttextareaComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{ 'textarea-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\ttextareaComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{ 'textarea-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\ttextareaComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{ 'textarea-ghost': this.ghost() },\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed character counter error classes\n\t */\n\terrorClassMaxCharacters = computed(() => {\n\t\treturn cn('text-base-content ease-out-back grow-0 transition-colors duration-300', {\n\t\t\t'text-error ease-out-back transition-colors duration-300': this.invalidMaxCharacters(),\n\t\t\t'text-inherit': !this.invalidMaxCharacters(),\n\t\t});\n\t});\n\n\t/**\n\t * @internal\n\t * Wrapper classes for textarea layout\n\t */\n\twrapperClass = computed(() => {\n\t\tconst baseClass = this.validationClass();\n\t\tconst gridRowsClass = this.maxCharacters() ? 'grid-rows-[minmax(0,1fr)_auto]' : 'h-auto grid-rows-[minmax(0,1fr)]';\n\t\tconst disabledClass = this.disabled()\n\t\t\t? 'border-base-300! bg-base-300! text-base-content/40! placeholder-base-content/20! cursor-not-allowed'\n\t\t\t: '';\n\t\treturn cn(baseClass, 'grid w-full gap-0', gridRowsClass, disabledClass);\n\t});\n\n\t/**\n\t * @internal\n\t * Wrapper height to accommodate counter\n\t */\n\twrapperHeight = computed(() => {\n\t\tif (!this.maxCharacters()) return null;\n\t\tconst height = this.counterHeightPx();\n\t\treturn `calc(100% + ${height}px)`;\n\t});\n\n\t/**\n\t * @internal\n\t * Background bar behind the counter\n\t */\n\tcounterBarClass = computed(() => {\n\t\tconst baseClass = this.invalidMaxCharacters() ? 'text-error' : 'text-base-content';\n\t\tconst backgroundClass = this.disabled() ? 'bg-base-300! text-base-content/40!' : 'bg-base-100';\n\t\treturn cn('pointer-events-none row-start-2 flex w-full items-center justify-end', baseClass, backgroundClass);\n\t});\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t/**\n\t * @internal\n\t * Handles input changes\n\t */\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Handles Enter key press\n\t */\n\thandleEnter(event: Event) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles blur event\n\t */\n\thandleBlur() {\n\t\tthis.blurred.emit(this.value());\n\t\tthis.onControlTouch();\n\t\tthis.blurTrigger.update((v) => v + 1);\n\t}\n\n\t/** @internal */\n\tprivate readonly formControl = computed(() => this.parentForm()?.get(this.formControlName()) as FormControl | null);\n\t/** @internal */\n\tprivate readonly formControl$ = toObservable(this.formControl);\n\t/** @internal */\n\tprivate readonly statusChanges$ = this.formControl$.pipe(switchMap((control) => control?.statusChanges.pipe(startWith(control.status)) || []));\n\t/** @internal */\n\tprivate readonly stateChanges$ = this.formControl$.pipe(switchMap((control) => control?.valueChanges.pipe(startWith(control.value)) || []));\n\t/** @internal */\n\tprivate readonly statusSignal = toSignal(this.statusChanges$);\n\t/** @internal */\n\tprivate readonly stateSignal = toSignal(this.stateChanges$);\n\n\t/**\n\t * @internal\n\t * Computed validation classes based on form state\n\t */\n\tvalidationClass = computed(() => {\n\t\tconst control = this.formControl();\n\t\tconst trigger = this.blurTrigger();\n\n\t\tif (!control) return this.componentClass();\n\n\t\tconst isTouched = control.touched || trigger > 0;\n\t\tthis.statusSignal();\n\t\tthis.stateSignal();\n\n\t\tif (control.dirty || isTouched) {\n\t\t\tif (control.invalid) return this.errorClass();\n\t\t\tif (control.valid) return this.successClass();\n\t\t}\n\n\t\treturn this.componentClass();\n\t});\n\n\t/**\n\t * @internal\n\t * Sets up debounce mechanism for value changes\n\t */\n\tprivate setupDebounce() {\n\t\tthis.debounceAction$\n\t\t\t.pipe(\n\t\t\t\tswitchMap((time: number) =>\n\t\t\t\t\tthis.value$.pipe(\n\t\t\t\t\t\tskip(1),\n\t\t\t\t\t\t// switchMap + timer instead of debounceTime: debounceTime flushes its pending value when the source completes, while here takeUntilDestroyed unsubscribes and the pending timer is dropped\n\t\t\t\t\t\tswitchMap((value) => timer(time).pipe(map(() => value))),\n\t\t\t\t\t\tdistinctUntilChanged(),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\ttakeUntilDestroyed(this.destroyRef),\n\t\t\t)\n\t\t\t.subscribe((value) => {\n\t\t\t\tthis.valueDebounced.emit(`${value}`);\n\t\t\t});\n\t}\n}\n","@let labelVar = label();\n\n<fieldset class=\"font-body block text-xs\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ labelVar }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\n\t<div #wrapperRef [class]=\"wrapperClass()\" [style.height]=\"wrapperHeight()\">\n\t\t<textarea\n\t\t\tclass=\"placeholder-base-content-muted h-full min-h-0 w-full grow resize-none bg-transparent outline-hidden\"\n\t\t\t[id]=\"resolvedId()\"\n\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t[attr.aria-describedby]=\"fieldA11y.describedBy()\"\n\t\t\t[class.cursor-not-allowed]=\"disabled()\"\n\t\t\t[attr.rows]=\"rows()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keydown.enter)=\"handleEnter($event)\"\n\t\t\t(click)=\"handleClick($event)\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[readOnly]=\"readonly()\"\n\t\t></textarea>\n\t\t@if (maxCharacters()) {\n\t\t\t<div #counterBarRef [class]=\"counterBarClass()\">\n\t\t\t\t<div [class]=\"errorClassMaxCharacters()\">\n\t\t\t\t\t<span stText=\"9\" stTextWeight=\"normal\">\n\t\t\t\t\t\t{{ 'sdk.textarea.maxCharacters' | translate: { current: value().length, max: maxCharacters() } }}\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n\n\t<ng-content></ng-content>\n\n\t@if (labelVar) {\n\t\t<label class=\"sr-only\" [for]=\"resolvedId()\">{{ labelVar }}</label>\n\t}\n</fieldset>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA;AAyBA;;;AAGG;AACH,MAAM,iBAAiB,GAAG,GAAG,CAC5B;IACC,aAAa;IACb,WAAW;IACX,OAAO;IACP,4CAA4C;IAC5C,gBAAgB;IAChB,MAAM;IACN,UAAU;IACV,QAAQ;IACR,eAAe;CACf,EACD;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,SAAS,EAAE,CAAC,oBAAoB,CAAC;YACjC,QAAQ,EAAE,CAAC,mBAAmB,CAAC;YAC/B,MAAM,EAAE,CAAC,iBAAiB,CAAC;YAC3B,IAAI,EAAE,CAAC,eAAe,CAAC;YACvB,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,KAAK,EAAE,CAAC,gBAAgB,CAAC;AACzB,SAAA;AACD,QAAA,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A,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,aAAa,uJAAE,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,CAAA;;4FAUvC,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAZ7B,SAAS;+BACC,aAAa,EAAA,OAAA,EACd,CAAC,WAAW,EAAE,aAAa,EAAE,aAAa,CAAC,EAAA,SAAA,EACzC;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAA,iBAAmB;AAC9B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,u2DAAA,EAAA;;;AE1HF;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-forms-textarea.mjs","sources":["../../../projects/sdk/components/forms/textarea/src/textarea.component.ts","../../../projects/sdk/components/forms/textarea/src/textarea.component.html","../../../projects/sdk/components/forms/textarea/sixbell-telco-sdk-components-forms-textarea.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport {\n\tafterRenderEffect,\n\tbooleanAttribute,\n\tComponent,\n\tcomputed,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tmodel,\n\toutput,\n\tsignal,\n\tviewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { injectFormFieldA11y, optionalBooleanAttribute } from '@sixbell-telco/sdk/components/forms/form-item';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { distinctUntilChanged, map, skip, startWith, Subject, switchMap, timer } from 'rxjs';\n\n/**\n * @internal\n * Generates base textarea classes with style variants\n */\nconst textareaComponent = cva(\n\t[\n\t\t'text-pretty',\n\t\t'font-body',\n\t\t'input',\n\t\t'placeholder:placeholder-base-content-muted',\n\t\t'leading-normal',\n\t\t'grow',\n\t\t'textarea',\n\t\t'w-full',\n\t\t'rounded-field',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tbase: [],\n\t\t\t\tprimary: ['textarea-primary'],\n\t\t\t\tsecondary: ['textarea-secondary'],\n\t\t\t\ttertiary: ['textarea-tertiary'],\n\t\t\t\taccent: ['textarea-accent'],\n\t\t\t\tinfo: ['textarea-info'],\n\t\t\t\tsuccess: ['textarea-success'],\n\t\t\t\twarning: ['textarea-warning'],\n\t\t\t\terror: ['textarea-error'],\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\txs: ['textarea-xs'],\n\t\t\t\tsm: ['textarea-sm'],\n\t\t\t\tmd: ['textarea-md'],\n\t\t\t\tlg: ['textarea-lg'],\n\t\t\t\txl: ['textarea-xl'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tvariant: 'base',\n\t\t\tsize: 'md',\n\t\t},\n\t},\n);\n\n/** Possible textarea style variants */\nexport type textareaVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\n/** Possible textarea size variants */\nexport type textareaSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for textarea styling */\nexport type textareaProps = {\n\tvariant?: textareaVariantProps;\n\tsize?: textareaSizeProps;\n};\n\nlet nextTextareaId = 0;\n\n/**\n * A customizable textarea component with form integration and validation features\n *\n * @remarks\n * Supports character counting, debounced input, and automatic validation styling.\n * Implements ControlValueAccessor for Angular form compatibility.\n *\n * @example\n * ```html\n * <!-- Basic textarea usage -->\n * <st-textarea\n * [(value)]=\"description\"\n * label=\"Description\"\n * maxCharacters=\"500\"\n * ></st-textarea>\n * ```\n *\n * @example\n * ```html\n * <!-- Reactive form integration -->\n * <st-textarea\n * [parentForm]=\"userForm\"\n * formControlName=\"bio\"\n * variant=\"primary\"\n * debounceTime=\"300\"\n * ></st-textarea>\n * ```\n */\n@Component({\n\tselector: 'st-textarea',\n\timports: [FormsModule, TextDirective, TranslatePipe],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: TextareaComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './textarea.component.html',\n})\nexport class TextareaComponent {\n\t/**\n\t * Textarea style variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<textareaVariantProps>('base');\n\n\t/**\n\t * Textarea size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<textareaSizeProps>('md');\n\n\t/**\n\t * Whether to use ghost (transparent) styling\n\t * @defaultValue false\n\t */\n\tghost = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Label displayed above the textarea\n\t */\n\tlabel = input<string | null>(null);\n\n\t/**\n\t * Whether to show optional indicator\n\t * @defaultValue false\n\t */\n\tshowOptional = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Optional indicator text (translation key or literal)\n\t * @defaultValue 'sdk.formFields.optional'\n\t */\n\toptionalText = input<string>('sdk.formFields.optional');\n\n\t/**\n\t * Mark the field as required: shows the `*` marker and announces the field as required.\n\t * When not set, the enclosing `st-form-item` `required`, then `Validators.required` on the bound control decide.\n\t */\n\trequired = input<boolean | undefined, unknown>(undefined, { transform: optionalBooleanAttribute });\n\n\t/** @internal Required state and hint ids from the enclosing `st-form-item`. */\n\tprotected readonly fieldA11y = injectFormFieldA11y({\n\t\trequired: () => this.required(),\n\t\tcontrol: () => this.formControl(),\n\t\tstatus: () => this.statusSignal(),\n\t});\n\n\t/**\n\t * HTML name attribute for the textarea\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Id of the focusable control, used by its label. A unique id is generated when omitted.\n\t */\n\tinputId = input<string | null>(null);\n\n\t/** @internal */\n\tprivate readonly generatedId = `st-textarea-${nextTextareaId++}`;\n\n\t/** @internal Id applied to the focusable control and referenced by its label */\n\tprotected readonly resolvedId = computed(() => this.inputId() || this.generatedId);\n\n\t/** @internal Id of the character counter, referenced by the textarea's `aria-describedby`. */\n\tprotected readonly counterId = computed(() => `${this.resolvedId()}-counter`);\n\n\t/** @internal Hint and error ids from `st-form-item`, plus the counter id while a `maxCharacters` limit is set. */\n\tprotected readonly describedBy = computed(() => {\n\t\tconst ids = [this.fieldA11y.describedBy(), this.maxCharacters() ? this.counterId() : null].filter(Boolean);\n\t\treturn ids.length ? ids.join(' ') : null;\n\t});\n\n\t/**\n\t * Placeholder text when empty\n\t */\n\tplaceholder = input<string>('');\n\n\t/**\n\t * Number of visible text rows\n\t * @defaultValue 3\n\t */\n\trows = input<string | number>(3);\n\n\t/**\n\t * Whether the textarea is readonly\n\t * @defaultValue false\n\t */\n\treadonly = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Whether the textarea is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * Event emitted on textarea blur\n\t */\n\tblurred = output<string>();\n\n\t/** @internal */\n\tprivate readonly blurTrigger = signal(0);\n\n\t/**\n\t * Two-way bindable textarea value\n\t */\n\tvalue = model<string>('');\n\n\t/**\n\t * Maximum allowed character count. When set, the counter is shown, the textarea references it\n\t * through `aria-describedby`, and the native `maxlength` stops typing past the limit.\n\t * @defaultValue 0 (unlimited)\n\t */\n\tmaxCharacters = input<number>(0);\n\n\t/**\n\t * Whether current value exceeds maxCharacters\n\t * @internal\n\t */\n\tinvalidMaxCharacters = computed<boolean>(() => this.value().length > this.maxCharacters());\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 * @internal\n\t * Gets associated form control\n\t */\n\tget formField(): FormControl | null {\n\t\tif (!this.parentForm()) return null;\n\t\treturn this.parentForm()?.get(this.formControlName()) as FormControl;\n\t}\n\n\t// ControlValueAccessor implementation\n\t/** @internal */\n\tprivate onControlChange: any = () => {};\n\t/** @internal */\n\tprivate onControlTouch: any = () => {};\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (Enter)\n\t */\n\ttriggered = output<void>();\n\n\t/**\n\t * Debounce time in milliseconds for valueDebounced output\n\t * @defaultValue 500\n\t */\n\tdebounceTime = input(500);\n\n\t/**\n\t * Event emitted after debounce time when value changes\n\t */\n\tvalueDebounced = output<string>();\n\n\t/** @internal */\n\tprivate readonly debounceAction$ = new Subject<number>();\n\t/** @internal */\n\tprivate readonly value$ = toObservable(this.value);\n\t/** @internal */\n\tprivate readonly destroyRef = inject(DestroyRef);\n\t/** @internal */\n\tprivate readonly counterBarRef = viewChild<ElementRef<HTMLDivElement>>('counterBarRef');\n\t/** @internal */\n\tprivate readonly counterHeightPx = signal(0);\n\t/** @internal */\n\tprivate readonly counterObserver = signal<ResizeObserver | null>(null);\n\n\tconstructor() {\n\t\t// Emit debounce time changes to the action subject\n\t\teffect(() => {\n\t\t\tthis.debounceAction$.next(this.debounceTime());\n\t\t});\n\n\t\tthis.destroyRef.onDestroy(() => {\n\t\t\tconst observer = this.counterObserver();\n\t\t\tif (observer) observer.disconnect();\n\t\t});\n\n\t\tafterRenderEffect(() => {\n\t\t\tconst counterRef = this.counterBarRef();\n\t\t\tconst currentObserver = this.counterObserver();\n\n\t\t\tif (!this.maxCharacters() || !counterRef?.nativeElement) {\n\t\t\t\tif (currentObserver) {\n\t\t\t\t\tcurrentObserver.disconnect();\n\t\t\t\t\tthis.counterObserver.set(null);\n\t\t\t\t}\n\t\t\t\tthis.counterHeightPx.set(0);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (currentObserver) return;\n\n\t\t\tconst observer = new ResizeObserver((entries) => {\n\t\t\t\tconst entry = entries[0];\n\t\t\t\tthis.counterHeightPx.set(Math.ceil(entry.contentRect.height));\n\t\t\t});\n\n\t\t\tconst counter = counterRef.nativeElement;\n\t\t\tif (!(counter instanceof Element)) return;\n\t\t\tobserver.observe(counter);\n\t\t\tthis.counterObserver.set(observer);\n\t\t\tthis.counterHeightPx.set(Math.ceil(counter.getBoundingClientRect().height));\n\t\t});\n\n\t\tthis.setupDebounce();\n\t}\n\n\t/**\n\t * @internal\n\t * Computed base textarea classes\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\ttextareaComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{ 'textarea-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\ttextareaComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{ 'textarea-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\ttextareaComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{ 'textarea-ghost': this.ghost() },\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed character counter error classes\n\t */\n\terrorClassMaxCharacters = computed(() => {\n\t\treturn cn('text-base-content ease-out-back grow-0 transition-colors duration-300', {\n\t\t\t'text-error ease-out-back transition-colors duration-300': this.invalidMaxCharacters(),\n\t\t\t'text-inherit': !this.invalidMaxCharacters(),\n\t\t});\n\t});\n\n\t/**\n\t * @internal\n\t * Wrapper classes for textarea layout\n\t */\n\twrapperClass = computed(() => {\n\t\tconst baseClass = this.validationClass();\n\t\tconst gridRowsClass = this.maxCharacters() ? 'grid-rows-[minmax(0,1fr)_auto]' : 'h-auto grid-rows-[minmax(0,1fr)]';\n\t\tconst disabledClass = this.disabled()\n\t\t\t? 'border-base-300! bg-base-300! text-base-content/40! placeholder-base-content/20! cursor-not-allowed'\n\t\t\t: '';\n\t\treturn cn(baseClass, 'grid w-full gap-0', gridRowsClass, disabledClass);\n\t});\n\n\t/**\n\t * @internal\n\t * Wrapper height to accommodate counter\n\t */\n\twrapperHeight = computed(() => {\n\t\tif (!this.maxCharacters()) return null;\n\t\tconst height = this.counterHeightPx();\n\t\treturn `calc(100% + ${height}px)`;\n\t});\n\n\t/**\n\t * @internal\n\t * Background bar behind the counter\n\t */\n\tcounterBarClass = computed(() => {\n\t\tconst baseClass = this.invalidMaxCharacters() ? 'text-error' : 'text-base-content';\n\t\tconst backgroundClass = this.disabled() ? 'bg-base-300! text-base-content/40!' : 'bg-base-100';\n\t\treturn cn('pointer-events-none row-start-2 flex w-full items-center justify-end', baseClass, backgroundClass);\n\t});\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t/**\n\t * @internal\n\t * Handles input changes\n\t */\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Handles Enter key press\n\t */\n\thandleEnter(event: Event) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles blur event\n\t */\n\thandleBlur() {\n\t\tthis.blurred.emit(this.value());\n\t\tthis.onControlTouch();\n\t\tthis.blurTrigger.update((v) => v + 1);\n\t}\n\n\t/** @internal */\n\tprivate readonly formControl = computed(() => this.parentForm()?.get(this.formControlName()) as FormControl | null);\n\t/** @internal */\n\tprivate readonly formControl$ = toObservable(this.formControl);\n\t/** @internal */\n\tprivate readonly statusChanges$ = this.formControl$.pipe(switchMap((control) => control?.statusChanges.pipe(startWith(control.status)) || []));\n\t/** @internal */\n\tprivate readonly stateChanges$ = this.formControl$.pipe(switchMap((control) => control?.valueChanges.pipe(startWith(control.value)) || []));\n\t/** @internal */\n\tprivate readonly statusSignal = toSignal(this.statusChanges$);\n\t/** @internal */\n\tprivate readonly stateSignal = toSignal(this.stateChanges$);\n\n\t/**\n\t * @internal\n\t * Computed validation classes based on form state\n\t */\n\tvalidationClass = computed(() => {\n\t\tconst control = this.formControl();\n\t\tconst trigger = this.blurTrigger();\n\n\t\tif (!control) return this.componentClass();\n\n\t\tconst isTouched = control.touched || trigger > 0;\n\t\tthis.statusSignal();\n\t\tthis.stateSignal();\n\n\t\tif (control.dirty || isTouched) {\n\t\t\tif (control.invalid) return this.errorClass();\n\t\t\tif (control.valid) return this.successClass();\n\t\t}\n\n\t\treturn this.componentClass();\n\t});\n\n\t/**\n\t * @internal\n\t * Sets up debounce mechanism for value changes\n\t */\n\tprivate setupDebounce() {\n\t\tthis.debounceAction$\n\t\t\t.pipe(\n\t\t\t\tswitchMap((time: number) =>\n\t\t\t\t\tthis.value$.pipe(\n\t\t\t\t\t\tskip(1),\n\t\t\t\t\t\t// switchMap + timer instead of debounceTime: debounceTime flushes its pending value when the source completes, while here takeUntilDestroyed unsubscribes and the pending timer is dropped\n\t\t\t\t\t\tswitchMap((value) => timer(time).pipe(map(() => value))),\n\t\t\t\t\t\tdistinctUntilChanged(),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\ttakeUntilDestroyed(this.destroyRef),\n\t\t\t)\n\t\t\t.subscribe((value) => {\n\t\t\t\tthis.valueDebounced.emit(`${value}`);\n\t\t\t});\n\t}\n}\n","@let labelVar = label();\n\n<fieldset class=\"font-body block text-xs\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ labelVar }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\n\t<div #wrapperRef [class]=\"wrapperClass()\" [style.height]=\"wrapperHeight()\">\n\t\t<textarea\n\t\t\tclass=\"placeholder-base-content-muted h-full min-h-0 w-full grow resize-none bg-transparent outline-hidden\"\n\t\t\t[id]=\"resolvedId()\"\n\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t[attr.aria-invalid]=\"fieldA11y.invalid() || null\"\n\t\t\t[attr.aria-describedby]=\"describedBy()\"\n\t\t\t[attr.maxlength]=\"maxCharacters() || null\"\n\t\t\t[class.cursor-not-allowed]=\"disabled()\"\n\t\t\t[attr.rows]=\"rows()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keydown.enter)=\"handleEnter($event)\"\n\t\t\t(click)=\"handleClick($event)\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[readOnly]=\"readonly()\"\n\t\t></textarea>\n\t\t@if (maxCharacters()) {\n\t\t\t<div #counterBarRef [id]=\"counterId()\" [class]=\"counterBarClass()\">\n\t\t\t\t<div [class]=\"errorClassMaxCharacters()\">\n\t\t\t\t\t<span stText=\"9\" stTextWeight=\"normal\">\n\t\t\t\t\t\t{{ 'sdk.textarea.maxCharacters' | translate: { current: value().length, max: maxCharacters() } }}\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n\n\t<ng-content></ng-content>\n\n\t@if (labelVar) {\n\t\t<label class=\"sr-only\" [for]=\"resolvedId()\">{{ labelVar }}</label>\n\t}\n</fieldset>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA;AAyBA;;;AAGG;AACH,MAAM,iBAAiB,GAAG,GAAG,CAC5B;IACC,aAAa;IACb,WAAW;IACX,OAAO;IACP,4CAA4C;IAC5C,gBAAgB;IAChB,MAAM;IACN,UAAU;IACV,QAAQ;IACR,eAAe;CACf,EACD;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,SAAS,EAAE,CAAC,oBAAoB,CAAC;YACjC,QAAQ,EAAE,CAAC,mBAAmB,CAAC;YAC/B,MAAM,EAAE,CAAC,iBAAiB,CAAC;YAC3B,IAAI,EAAE,CAAC,eAAe,CAAC;YACvB,OAAO,EAAE,CAAC,k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E,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,i+DAAA,EAAA;;;AE1HF;;AAEG;;;;"}
@@ -4,8 +4,8 @@ import { IconComponent } from '@sixbell-telco/sdk/components/icon';
4
4
  import { matKeyboardArrowLeftOutline, matKeyboardDoubleArrowLeftOutline, matKeyboardArrowRightOutline, matKeyboardDoubleArrowRightOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
5
5
  import { TextDirective } from '@sixbell-telco/sdk/directives/text';
6
6
  import { cn } from '@sixbell-telco/sdk/utils/cn';
7
- import { CommonModule } from '@angular/common';
8
7
  import { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';
8
+ import { CommonModule } from '@angular/common';
9
9
 
10
10
  const paginationItemDimensions = {
11
11
  xs: {
@@ -114,6 +114,7 @@ class PaginationItemComponent {
114
114
  /**
115
115
  * Accessible name forwarded to the inner `<button>` as `aria-label`.
116
116
  * Required for the `icon` and `dots` variants, which have no visible text.
117
+ * On the `ellipsis` variant it replaces the screen-reader text, which defaults to `sdk.pagination.more` ("More pages").
117
118
  */
118
119
  ariaLabel = input();
119
120
  /**
@@ -129,9 +130,13 @@ class PaginationItemComponent {
129
130
  */
130
131
  keyDownSpace = output();
131
132
  /**
132
- * Event emitted on activation (click or keyboard)
133
+ * Event emitted once per activation. Enter and Space reach it through the native button click
134
+ * they produce, so one key press or one mouse click emits it once.
133
135
  */
134
136
  triggered = output();
137
+ translateLabel = injectLabelTranslator();
138
+ /** @internal Screen-reader text for the `ellipsis` variant; the visible dots are hidden from assistive technology. */
139
+ ellipsisLabel = computed(() => this.ariaLabel() || this.translateLabel({ key: 'sdk.pagination.more', fallback: 'More pages' }));
135
140
  /**
136
141
  * @internal
137
142
  * DaisyUI button geometry with paginator-owned semantic state colors.
@@ -171,7 +176,7 @@ class PaginationItemComponent {
171
176
  }
172
177
  /**
173
178
  * @internal
174
- * Handle Enter key activation
179
+ * Report the Enter key. Activation comes from the click the native button fires next.
175
180
  */
176
181
  handleKeyDownEnter(event) {
177
182
  if (this.disabled())
@@ -180,11 +185,10 @@ class PaginationItemComponent {
180
185
  event.stopPropagation();
181
186
  }
182
187
  this.keyDownEnter.emit(event);
183
- this.triggered.emit();
184
188
  }
185
189
  /**
186
190
  * @internal
187
- * Handle Space key activation
191
+ * Report the Space key. Activation comes from the click the native button fires on key up.
188
192
  */
189
193
  handleKeyDownSpace(event) {
190
194
  if (this.disabled())
@@ -193,14 +197,13 @@ class PaginationItemComponent {
193
197
  event.stopPropagation();
194
198
  }
195
199
  this.keyDownSpace.emit(event);
196
- this.triggered.emit();
197
200
  }
198
201
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PaginationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
199
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: PaginationItemComponent, isStandalone: true, selector: "st-pagination-item", inputs: { variant: { classPropertyName: "variant", publicName: "variant", 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 }, number: { classPropertyName: "number", publicName: "number", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace", triggered: "triggered" }, ngImport: i0, template: "@let variantVar = this.variant();\n\n@if (variantVar === 'ellipsis') {\n\t<span [class]=\"componentClass()\" [stText]=\"textPreset()\">{{ number() }}</span>\n} @else {\n\t<button\n\t\t[class]=\"componentClass()\"\n\t\ttype=\"button\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.aria-current]=\"active() ? 'page' : null\"\n\t\t[attr.aria-label]=\"ariaLabel() || null\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t>\n\t\t@if (variantVar === 'icon') {\n\t\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" [size]=\"iconSize()\"></st-icon>\n\t\t} @else if (variantVar === 'dots') {\n\t\t\t<span [class]=\"dotClass()\"></span>\n\t\t} @else {\n\t\t\t<span [stText]=\"textPreset()\">{{ number() }}</span>\n\t\t}\n\t</button>\n}\n", styles: [".pagination-item-control{background-color:var(--color-base-200);border-color:var(--color-base-300);color:var(--color-base-content);box-shadow:none}.pagination-item-control:not(.pagination-item-current):hover,.pagination-item-control:not(.pagination-item-current):active{background-color:var(--color-base-300);border-color:var(--color-base-300);color:var(--color-base-content)}.pagination-item-control:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.pagination-item-current,.pagination-item-current:hover,.pagination-item-current:active{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-content)}.pagination-item-control:disabled{background-color:var(--color-disabled);border-color:var(--color-disabled);color:var(--color-disabled-content);opacity:1}.pagination-item-control.pagination-item-dot,.pagination-item-control.pagination-item-dot:hover,.pagination-item-control.pagination-item-dot:active,.pagination-item-control.pagination-item-dot:disabled{background-color:transparent;border-color:transparent}.pagination-dot-indicator{background-color:var(--color-neutral-secondary)}.pagination-item-dot:hover .pagination-dot-indicator,.pagination-item-dot:active .pagination-dot-indicator{background-color:var(--color-base-content);transform:scale(1.25)}.pagination-dot-current,.pagination-item-dot:hover .pagination-dot-current,.pagination-item-dot:active .pagination-dot-current{background-color:var(--color-primary);transform:none}@media(prefers-reduced-motion:reduce){.pagination-item-dot .pagination-dot-indicator{transform:none}}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
202
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: PaginationItemComponent, isStandalone: true, selector: "st-pagination-item", inputs: { variant: { classPropertyName: "variant", publicName: "variant", 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 }, number: { classPropertyName: "number", publicName: "number", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace", triggered: "triggered" }, ngImport: i0, template: "@let variantVar = this.variant();\n\n@if (variantVar === 'ellipsis') {\n\t<span [class]=\"componentClass()\" [stText]=\"textPreset()\">\n\t\t<span aria-hidden=\"true\">{{ number() }}</span>\n\t\t<span class=\"sr-only\">{{ ellipsisLabel() }}</span>\n\t</span>\n} @else {\n\t<button\n\t\t[class]=\"componentClass()\"\n\t\ttype=\"button\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.aria-current]=\"active() ? 'page' : null\"\n\t\t[attr.aria-label]=\"ariaLabel() || null\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t>\n\t\t@if (variantVar === 'icon') {\n\t\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" [size]=\"iconSize()\"></st-icon>\n\t\t} @else if (variantVar === 'dots') {\n\t\t\t<span [class]=\"dotClass()\"></span>\n\t\t} @else {\n\t\t\t<span [stText]=\"textPreset()\">{{ number() }}</span>\n\t\t}\n\t</button>\n}\n", styles: [".pagination-item-control{background-color:var(--color-base-200);border-color:var(--color-base-300);color:var(--color-base-content);box-shadow:none}.pagination-item-control:not(.pagination-item-current):hover,.pagination-item-control:not(.pagination-item-current):active{background-color:var(--color-base-300);border-color:var(--color-base-300);color:var(--color-base-content)}.pagination-item-control:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.pagination-item-current,.pagination-item-current:hover,.pagination-item-current:active{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-content)}.pagination-item-control:disabled{background-color:var(--color-disabled);border-color:var(--color-disabled);color:var(--color-disabled-content);opacity:1}.pagination-item-control.pagination-item-dot,.pagination-item-control.pagination-item-dot:hover,.pagination-item-control.pagination-item-dot:active,.pagination-item-control.pagination-item-dot:disabled{background-color:transparent;border-color:transparent}.pagination-dot-indicator{background-color:var(--color-neutral-secondary)}.pagination-item-dot:hover .pagination-dot-indicator,.pagination-item-dot:active .pagination-dot-indicator{background-color:var(--color-base-content);transform:scale(1.25)}.pagination-dot-current,.pagination-item-dot:hover .pagination-dot-current,.pagination-item-dot:active .pagination-dot-current{background-color:var(--color-primary);transform:none}@media(prefers-reduced-motion:reduce){.pagination-item-dot .pagination-dot-indicator{transform:none}}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
200
203
  }
201
204
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PaginationItemComponent, decorators: [{
202
205
  type: Component,
203
- args: [{ selector: 'st-pagination-item', imports: [IconComponent, TextDirective], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@let variantVar = this.variant();\n\n@if (variantVar === 'ellipsis') {\n\t<span [class]=\"componentClass()\" [stText]=\"textPreset()\">{{ number() }}</span>\n} @else {\n\t<button\n\t\t[class]=\"componentClass()\"\n\t\ttype=\"button\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.aria-current]=\"active() ? 'page' : null\"\n\t\t[attr.aria-label]=\"ariaLabel() || null\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t>\n\t\t@if (variantVar === 'icon') {\n\t\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" [size]=\"iconSize()\"></st-icon>\n\t\t} @else if (variantVar === 'dots') {\n\t\t\t<span [class]=\"dotClass()\"></span>\n\t\t} @else {\n\t\t\t<span [stText]=\"textPreset()\">{{ number() }}</span>\n\t\t}\n\t</button>\n}\n", styles: [".pagination-item-control{background-color:var(--color-base-200);border-color:var(--color-base-300);color:var(--color-base-content);box-shadow:none}.pagination-item-control:not(.pagination-item-current):hover,.pagination-item-control:not(.pagination-item-current):active{background-color:var(--color-base-300);border-color:var(--color-base-300);color:var(--color-base-content)}.pagination-item-control:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.pagination-item-current,.pagination-item-current:hover,.pagination-item-current:active{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-content)}.pagination-item-control:disabled{background-color:var(--color-disabled);border-color:var(--color-disabled);color:var(--color-disabled-content);opacity:1}.pagination-item-control.pagination-item-dot,.pagination-item-control.pagination-item-dot:hover,.pagination-item-control.pagination-item-dot:active,.pagination-item-control.pagination-item-dot:disabled{background-color:transparent;border-color:transparent}.pagination-dot-indicator{background-color:var(--color-neutral-secondary)}.pagination-item-dot:hover .pagination-dot-indicator,.pagination-item-dot:active .pagination-dot-indicator{background-color:var(--color-base-content);transform:scale(1.25)}.pagination-dot-current,.pagination-item-dot:hover .pagination-dot-current,.pagination-item-dot:active .pagination-dot-current{background-color:var(--color-primary);transform:none}@media(prefers-reduced-motion:reduce){.pagination-item-dot .pagination-dot-indicator{transform:none}}\n"] }]
206
+ args: [{ selector: 'st-pagination-item', imports: [IconComponent, TextDirective], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@let variantVar = this.variant();\n\n@if (variantVar === 'ellipsis') {\n\t<span [class]=\"componentClass()\" [stText]=\"textPreset()\">\n\t\t<span aria-hidden=\"true\">{{ number() }}</span>\n\t\t<span class=\"sr-only\">{{ ellipsisLabel() }}</span>\n\t</span>\n} @else {\n\t<button\n\t\t[class]=\"componentClass()\"\n\t\ttype=\"button\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.aria-current]=\"active() ? 'page' : null\"\n\t\t[attr.aria-label]=\"ariaLabel() || null\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t>\n\t\t@if (variantVar === 'icon') {\n\t\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" [size]=\"iconSize()\"></st-icon>\n\t\t} @else if (variantVar === 'dots') {\n\t\t\t<span [class]=\"dotClass()\"></span>\n\t\t} @else {\n\t\t\t<span [stText]=\"textPreset()\">{{ number() }}</span>\n\t\t}\n\t</button>\n}\n", styles: [".pagination-item-control{background-color:var(--color-base-200);border-color:var(--color-base-300);color:var(--color-base-content);box-shadow:none}.pagination-item-control:not(.pagination-item-current):hover,.pagination-item-control:not(.pagination-item-current):active{background-color:var(--color-base-300);border-color:var(--color-base-300);color:var(--color-base-content)}.pagination-item-control:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.pagination-item-current,.pagination-item-current:hover,.pagination-item-current:active{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-content)}.pagination-item-control:disabled{background-color:var(--color-disabled);border-color:var(--color-disabled);color:var(--color-disabled-content);opacity:1}.pagination-item-control.pagination-item-dot,.pagination-item-control.pagination-item-dot:hover,.pagination-item-control.pagination-item-dot:active,.pagination-item-control.pagination-item-dot:disabled{background-color:transparent;border-color:transparent}.pagination-dot-indicator{background-color:var(--color-neutral-secondary)}.pagination-item-dot:hover .pagination-dot-indicator,.pagination-item-dot:active .pagination-dot-indicator{background-color:var(--color-base-content);transform:scale(1.25)}.pagination-dot-current,.pagination-item-dot:hover .pagination-dot-current,.pagination-item-dot:active .pagination-dot-current{background-color:var(--color-primary);transform:none}@media(prefers-reduced-motion:reduce){.pagination-item-dot .pagination-dot-indicator{transform:none}}\n"] }]
204
207
  }] });
205
208
 
206
209
  // projects/sdk/components/paginator/src/pagination.pipe.ts
@@ -322,8 +325,9 @@ class PaginatorComponent {
322
325
  */
323
326
  iconDoubleArrowRight = matKeyboardDoubleArrowRightOutline;
324
327
  translateLabel = injectLabelTranslator();
325
- /** @internal Names of the icon-only navigation buttons, from `sdk.pagination.*` with English fallbacks. */
328
+ /** @internal Names of the landmark and the icon-only navigation buttons, from `sdk.pagination.*` with English fallbacks. */
326
329
  navigationLabels = computed(() => ({
330
+ nav: this.translateLabel({ key: 'sdk.pagination.label', fallback: 'Pagination' }),
327
331
  first: this.translateLabel({ key: 'sdk.pagination.first', fallback: 'First page' }),
328
332
  previous: this.translateLabel({ key: 'sdk.pagination.previous', fallback: 'Previous page' }),
329
333
  next: this.translateLabel({ key: 'sdk.pagination.next', fallback: 'Next page' }),
@@ -451,11 +455,11 @@ class PaginatorComponent {
451
455
  this.handlePageChange(Math.max(this.pages(), 1));
452
456
  }
453
457
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
454
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: PaginatorComponent, isStandalone: true, selector: "st-paginator", inputs: { paginatorId: { classPropertyName: "paginatorId", publicName: "paginatorId", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, pages: { classPropertyName: "pages", publicName: "pages", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", currentPage: "currentPageChange" }, ngImport: i0, template: "@if (type() === 'default') {\n\t<div class=\"flex items-center justify-center gap-2\">\n\t\t<!-- First page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t(triggered)=\"firstPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().first\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Previous page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t(triggered)=\"previousPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().previous\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" [size]=\"size()\" shape=\"round-xs\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<!-- Numeric page item -->\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(triggered)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\n\t\t<!-- Next page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t(triggered)=\"nextPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().next\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages() || pages() <= 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Last page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t(triggered)=\"lastPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().last\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages() || pages() <= 1\"\n\t\t></st-pagination-item>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex items-center justify-center gap-2\">\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" [size]=\"size()\" shape=\"round-lg\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(triggered)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t[ariaLabel]=\"pageLabel(page)\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\t</div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginationItemComponent, selector: "st-pagination-item", inputs: ["variant", "size", "icon", "number", "active", "disabled", "stopPropagation", "ariaLabel"], outputs: ["clicked", "keyDownEnter", "keyDownSpace", "triggered"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
458
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: PaginatorComponent, isStandalone: true, selector: "st-paginator", inputs: { paginatorId: { classPropertyName: "paginatorId", publicName: "paginatorId", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, pages: { classPropertyName: "pages", publicName: "pages", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", currentPage: "currentPageChange" }, ngImport: i0, template: "<nav class=\"flex max-w-full flex-wrap items-center justify-center gap-1 sm:gap-2\" [attr.aria-label]=\"navigationLabels().nav\">\n\t@if (type() === 'default') {\n\t\t<!-- First page button: hidden on phones, previous and next stay -->\n\t\t<st-pagination-item\n\t\t\tclass=\"hidden sm:flex\"\n\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t(triggered)=\"firstPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().first\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Previous page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t(triggered)=\"previousPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().previous\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" [size]=\"size()\" shape=\"round-xs\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<!-- Numeric page item -->\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(triggered)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\n\t\t<!-- Next page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t(triggered)=\"nextPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().next\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages() || pages() <= 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Last page button: hidden on phones, previous and next stay -->\n\t\t<st-pagination-item\n\t\t\tclass=\"hidden sm:flex\"\n\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t(triggered)=\"lastPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().last\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages() || pages() <= 1\"\n\t\t></st-pagination-item>\n\t}\n\t@if (type() === 'dots') {\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" [size]=\"size()\" shape=\"round-lg\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(triggered)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t[ariaLabel]=\"pageLabel(page)\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\t}\n</nav>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginationItemComponent, selector: "st-pagination-item", inputs: ["variant", "size", "icon", "number", "active", "disabled", "stopPropagation", "ariaLabel"], outputs: ["clicked", "keyDownEnter", "keyDownSpace", "triggered"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
455
459
  }
456
460
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PaginatorComponent, decorators: [{
457
461
  type: Component,
458
- args: [{ selector: 'st-paginator', imports: [CommonModule, PaginationItemComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (type() === 'default') {\n\t<div class=\"flex items-center justify-center gap-2\">\n\t\t<!-- First page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t(triggered)=\"firstPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().first\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Previous page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t(triggered)=\"previousPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().previous\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" [size]=\"size()\" shape=\"round-xs\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<!-- Numeric page item -->\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(triggered)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\n\t\t<!-- Next page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t(triggered)=\"nextPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().next\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages() || pages() <= 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Last page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t(triggered)=\"lastPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().last\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages() || pages() <= 1\"\n\t\t></st-pagination-item>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex items-center justify-center gap-2\">\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" [size]=\"size()\" shape=\"round-lg\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(triggered)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t[ariaLabel]=\"pageLabel(page)\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\t</div>\n}\n" }]
462
+ args: [{ selector: 'st-paginator', imports: [CommonModule, PaginationItemComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nav class=\"flex max-w-full flex-wrap items-center justify-center gap-1 sm:gap-2\" [attr.aria-label]=\"navigationLabels().nav\">\n\t@if (type() === 'default') {\n\t\t<!-- First page button: hidden on phones, previous and next stay -->\n\t\t<st-pagination-item\n\t\t\tclass=\"hidden sm:flex\"\n\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t(triggered)=\"firstPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().first\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Previous page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t(triggered)=\"previousPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().previous\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" [size]=\"size()\" shape=\"round-xs\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<!-- Numeric page item -->\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(triggered)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\n\t\t<!-- Next page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t(triggered)=\"nextPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().next\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages() || pages() <= 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Last page button: hidden on phones, previous and next stay -->\n\t\t<st-pagination-item\n\t\t\tclass=\"hidden sm:flex\"\n\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t(triggered)=\"lastPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().last\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages() || pages() <= 1\"\n\t\t></st-pagination-item>\n\t}\n\t@if (type() === 'dots') {\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" [size]=\"size()\" shape=\"round-lg\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(triggered)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t[ariaLabel]=\"pageLabel(page)\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\t}\n</nav>\n" }]
459
463
  }] });
460
464
 
461
465
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-paginator.mjs","sources":["../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.ts","../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.html","../../../projects/sdk/components/paginator/pipes/pagination.pipe.ts","../../../projects/sdk/components/paginator/src/paginator.component.ts","../../../projects/sdk/components/paginator/src/paginator.component.html","../../../projects/sdk/components/paginator/sixbell-telco-sdk-components-paginator.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matKeyboardArrowLeftOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TextDirective, TextPreset } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\nexport type PaginationItemSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nconst paginationItemDimensions: Record<\n\tExclude<PaginationItemSizeProps, null | undefined>,\n\t{\n\t\tnumeric: string[];\n\t\ticon: string[];\n\t\tdots: string[];\n\t\ttext: TextPreset;\n\t\ticonSize: 'xs' | 'sm' | 'md';\n\t}\n> = {\n\txs: {\n\t\tnumeric: ['min-h-[24px]', 'h-[24px]', 'min-w-[24px]', 'px-1'],\n\t\ticon: ['min-h-[24px]', 'h-[24px]', 'min-w-[24px]', 'w-[24px]'],\n\t\tdots: ['h-[8px]', 'min-h-[8px]', 'w-[8px]', 'min-w-[8px]'],\n\t\ttext: '10',\n\t\ticonSize: 'xs',\n\t},\n\tsm: {\n\t\tnumeric: ['min-h-[28px]', 'h-[28px]', 'min-w-[28px]', 'px-1'],\n\t\ticon: ['min-h-[28px]', 'h-[28px]', 'min-w-[28px]', 'w-[28px]'],\n\t\tdots: ['h-[9px]', 'min-h-[9px]', 'w-[9px]', 'min-w-[9px]'],\n\t\ttext: '9',\n\t\ticonSize: 'xs',\n\t},\n\tmd: {\n\t\tnumeric: ['min-h-[30px]', 'h-[30px]', 'min-w-[30px]', 'px-1.5'],\n\t\ticon: ['min-h-[30px]', 'h-[30px]', 'min-w-[30px]', 'w-[30px]'],\n\t\tdots: ['h-[10px]', 'min-h-[10px]', 'w-[10px]', 'min-w-[10px]'],\n\t\ttext: '8',\n\t\ticonSize: 'sm',\n\t},\n\tlg: {\n\t\tnumeric: ['min-h-[36px]', 'h-[36px]', 'min-w-[36px]', 'px-2'],\n\t\ticon: ['min-h-[36px]', 'h-[36px]', 'min-w-[36px]', 'w-[36px]'],\n\t\tdots: ['h-[12px]', 'min-h-[12px]', 'w-[12px]', 'min-w-[12px]'],\n\t\ttext: '7',\n\t\ticonSize: 'md',\n\t},\n};\n\n/** Possible pagination item style variants */\nexport type PaginationItemVariantProps = 'numeric' | 'icon' | 'dots' | 'ellipsis' | null | undefined;\n\n/** Configuration object for pagination item styling */\nexport type PaginationItemProps = {\n\tvariant?: PaginationItemVariantProps;\n};\n\n/**\n * A compact pagination control component with interactive states\n *\n * @remarks\n * Uses DaisyUI's button primitive with paginator-specific interaction states:\n * neutral surfaces at rest and solid `primary` for the current page.\n * Supports three variants: numeric pages, navigation icons, and dot indicators.\n * Provides visual feedback for active and hover states.\n *\n * @example\n * ```html\n * <!-- Numeric page item -->\n * <st-pagination-item\n * variant=\"numeric\"\n * [number]=\"2\"\n * [active]=\"true\"\n * ></st-pagination-item>\n * ```\n *\n * @example\n * ```html\n * <!-- Icon navigation -->\n * <st-pagination-item\n * variant=\"icon\"\n * icon=\"chevron-right\"\n * ariaLabel=\"Next page\"\n * ></st-pagination-item>\n * ```\n *\n * @example\n * ```html\n * <!-- Active dot indicator -->\n * <st-pagination-item\n * variant=\"dots\"\n * [active]=\"true\"\n * ></st-pagination-item>\n * ```\n */\n@Component({\n\tselector: 'st-pagination-item',\n\timports: [IconComponent, TextDirective],\n\ttemplateUrl: './pagination-item.component.html',\n\tstyles: `\n\t\t.pagination-item-control {\n\t\t\tbackground-color: var(--color-base-200);\n\t\t\tborder-color: var(--color-base-300);\n\t\t\tcolor: var(--color-base-content);\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t.pagination-item-control:not(.pagination-item-current):hover,\n\t\t.pagination-item-control:not(.pagination-item-current):active {\n\t\t\tbackground-color: var(--color-base-300);\n\t\t\tborder-color: var(--color-base-300);\n\t\t\tcolor: var(--color-base-content);\n\t\t}\n\n\t\t.pagination-item-control:focus-visible {\n\t\t\toutline: 2px solid var(--color-primary);\n\t\t\toutline-offset: 2px;\n\t\t}\n\n\t\t.pagination-item-current,\n\t\t.pagination-item-current:hover,\n\t\t.pagination-item-current:active {\n\t\t\tbackground-color: var(--color-primary);\n\t\t\tborder-color: var(--color-primary);\n\t\t\tcolor: var(--color-primary-content);\n\t\t}\n\n\t\t.pagination-item-control:disabled {\n\t\t\tbackground-color: var(--color-disabled);\n\t\t\tborder-color: var(--color-disabled);\n\t\t\tcolor: var(--color-disabled-content);\n\t\t\topacity: 1;\n\t\t}\n\n\t\t.pagination-item-control.pagination-item-dot,\n\t\t.pagination-item-control.pagination-item-dot:hover,\n\t\t.pagination-item-control.pagination-item-dot:active,\n\t\t.pagination-item-control.pagination-item-dot:disabled {\n\t\t\tbackground-color: transparent;\n\t\t\tborder-color: transparent;\n\t\t}\n\n\t\t.pagination-dot-indicator {\n\t\t\tbackground-color: var(--color-neutral-secondary);\n\t\t}\n\n\t\t.pagination-item-dot:hover .pagination-dot-indicator,\n\t\t.pagination-item-dot:active .pagination-dot-indicator {\n\t\t\tbackground-color: var(--color-base-content);\n\t\t\ttransform: scale(1.25);\n\t\t}\n\n\t\t.pagination-dot-current,\n\t\t.pagination-item-dot:hover .pagination-dot-current,\n\t\t.pagination-item-dot:active .pagination-dot-current {\n\t\t\tbackground-color: var(--color-primary);\n\t\t\ttransform: none;\n\t\t}\n\n\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\t.pagination-item-dot .pagination-dot-indicator {\n\t\t\t\ttransform: none;\n\t\t\t}\n\t\t}\n\t`,\n\tstandalone: true,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PaginationItemComponent {\n\t/**\n\t * Style variant for the pagination item\n\t * @defaultValue 'numeric'\n\t */\n\tvariant = input<PaginationItemVariantProps>();\n\n\t/**\n\t * Visual size for numeric and icon items\n\t * @defaultValue 'md'\n\t */\n\tsize = input<PaginationItemSizeProps>('md');\n\n\t/**\n\t * Icon name from the icon library\n\t * @defaultValue matKeyboardArrowLeftOutline\n\t */\n\ticon = input<string>(matKeyboardArrowLeftOutline);\n\n\t/**\n\t * Display number or custom content\n\t * @defaultValue 1\n\t */\n\tnumber = input<number | string>(1);\n\n\t/**\n\t * Active state styling\n\t * @defaultValue false\n\t */\n\tactive = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Disabled state styling\n\t * @defaultValue false\n\t */\n\tdisabled = input(false, { transform: booleanAttribute }); // New input for disabled state\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Accessible name forwarded to the inner `<button>` as `aria-label`.\n\t * Required for the `icon` and `dots` variants, which have no visible text.\n\t */\n\tariaLabel = input<string | null | undefined>();\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (click or keyboard)\n\t */\n\ttriggered = output<void>();\n\n\t/**\n\t * @internal\n\t * DaisyUI button geometry with paginator-owned semantic state colors.\n\t */\n\tcomponentClass = computed(() => {\n\t\tconst resolvedSize = this.size() ?? 'md';\n\t\tconst resolvedVariant = this.variant() ?? 'numeric';\n\t\tconst dimensions = paginationItemDimensions[resolvedSize];\n\n\t\tif (resolvedVariant === 'ellipsis') {\n\t\t\treturn cn('px-2', 'py-1', 'text-base-content', 'pointer-events-none', 'select-none');\n\t\t}\n\n\t\tif (resolvedVariant === 'dots') {\n\t\t\treturn cn(\n\t\t\t\t'pagination-item-control pagination-item-dot btn group rounded-full border-0 p-0',\n\t\t\t\t'disabled:cursor-not-allowed disabled:opacity-50',\n\t\t\t\tdimensions.icon,\n\t\t\t);\n\t\t}\n\n\t\tconst sizeClasses = resolvedVariant === 'icon' ? dimensions.icon : dimensions.numeric;\n\t\treturn cn(\n\t\t\t'pagination-item-control btn rounded-field font-body flex border p-0 leading-normal font-medium',\n\t\t\tsizeClasses,\n\t\t\tthis.active() && 'pagination-item-current btn-primary',\n\t\t\t'disabled:cursor-not-allowed',\n\t\t);\n\t});\n\n\t/** @internal Visual dot kept separate from its accessible hit target. */\n\tdotClass = computed(() => {\n\t\tconst dimensions = paginationItemDimensions[this.size() ?? 'md'];\n\t\treturn cn(\n\t\t\t'pagination-dot-indicator rounded-full transition-[transform,background-color]',\n\t\t\tthis.active() ? 'pagination-dot-current h-[16px] w-[16px]' : dimensions.dots,\n\t\t);\n\t});\n\n\ttextPreset = computed<TextPreset>(() => paginationItemDimensions[this.size() ?? 'md'].text);\n\n\ticonSize = computed<'xs' | 'sm' | 'md'>(() => paginationItemDimensions[this.size() ?? 'md'].iconSize);\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t}\n}\n","@let variantVar = this.variant();\n\n@if (variantVar === 'ellipsis') {\n\t<span [class]=\"componentClass()\" [stText]=\"textPreset()\">{{ number() }}</span>\n} @else {\n\t<button\n\t\t[class]=\"componentClass()\"\n\t\ttype=\"button\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.aria-current]=\"active() ? 'page' : null\"\n\t\t[attr.aria-label]=\"ariaLabel() || null\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t>\n\t\t@if (variantVar === 'icon') {\n\t\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" [size]=\"iconSize()\"></st-icon>\n\t\t} @else if (variantVar === 'dots') {\n\t\t\t<span [class]=\"dotClass()\"></span>\n\t\t} @else {\n\t\t\t<span [stText]=\"textPreset()\">{{ number() }}</span>\n\t\t}\n\t</button>\n}\n","// projects/sdk/components/paginator/src/pagination.pipe.ts\nimport { Pipe, PipeTransform } from '@angular/core';\n\nexport type Pagination = {\n\tcurrentPage: number;\n\titemsPerPage: number;\n};\n\n/**\n * A pipe to manually paginate an array of items.\n *\n * @remarks\n * This pipe takes an array and a pagination configuration object (currentPage, itemsPerPage)\n * and returns a sliced version of the array, representing the items for the current page.\n *\n * @example\n * ```html\n * @for (item of items | pagination: { currentPage: 2, itemsPerPage: 10 }; track item.id) {\n * <li>{{ item.name }}</li>\n * }\n * ```\n */\n@Pipe({\n\tname: 'paginate',\n\tstandalone: true, // Use standalone pipes for better tree-shaking and consistency\n})\nexport class PaginationPipe implements PipeTransform {\n\ttransform<T>(items: T[], pagination: { currentPage: number; itemsPerPage: number }): T[];\n\ttransform<T>(items: T[] | null, pagination: { currentPage: number; itemsPerPage: number }): T[] | null;\n\ttransform<T>(items: T[] | undefined, pagination: { currentPage: number; itemsPerPage: number }): T[] | undefined;\n\ttransform<T>(items: T[] | null | undefined, pagination: { currentPage: number; itemsPerPage: number }): T[] | null | undefined;\n\ttransform<T>(items: T[] | null | undefined, pagination: { currentPage: number; itemsPerPage: number }): T[] | null | undefined {\n\t\tif (!items || !Array.isArray(items) || pagination?.currentPage === undefined || pagination?.itemsPerPage === undefined) {\n\t\t\treturn items;\n\t\t}\n\n\t\tconst currentPage = Math.max(1, pagination.currentPage);\n\t\tconst itemsPerPage = Math.max(1, pagination.itemsPerPage);\n\n\t\tconst startIndex = (currentPage - 1) * itemsPerPage;\n\t\tconst endIndex = startIndex + itemsPerPage;\n\n\t\treturn items.slice(startIndex, endIndex);\n\t}\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';\nimport {\n\tmatKeyboardArrowLeftOutline,\n\tmatKeyboardArrowRightOutline,\n\tmatKeyboardDoubleArrowLeftOutline,\n\tmatKeyboardDoubleArrowRightOutline,\n} from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { PaginationItemComponent } from '../components/pagination-item/pagination-item.component';\n\n/** Type of pagination display variant */\nexport type PaginationType = 'default' | 'dots';\nexport type PaginatorSizeProps = 'xs' | 'sm' | 'md' | 'lg';\n\n/**\n * A customizable pagination component with navigation controls\n *\n * @remarks\n * Supports both traditional numbered pagination and dot indicators.\n * Provides custom styling and navigation controls.\n *\n * @example\n * ```html\n * <st-paginator\n * [pages]=\"10\"\n * type=\"default\"\n * (pageChanged)=\"onPageChange($event)\"\n * ></st-paginator>\n * ```\n *\n * @example\n * ```html\n * <st-paginator\n * [pages]=\"5\"\n * type=\"dots\"\n * [maxSize]=\"3\"\n * ></st-paginator>\n * ```\n */\n@Component({\n\tselector: 'st-paginator',\n\timports: [CommonModule, PaginationItemComponent],\n\ttemplateUrl: './paginator.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PaginatorComponent {\n\t/**\n\t * Unique identifier for the paginator instance\n\t * @defaultValue 'paginator'\n\t */\n\tpaginatorId = input<string>('paginator');\n\n\t/**\n\t * Maximum number of visible numeric page items (excluding arrows and ellipses).\n\t * This controls the window of page numbers shown around the current page.\n\t * @defaultValue 4\n\t */\n\tmaxSize = input<number>(4);\n\n\t/**\n\t * Pagination display variant\n\t * @defaultValue 'default'\n\t */\n\ttype = input<PaginationType>('default');\n\n\t/**\n\t * Event emitted when the current page changes\n\t */\n\tpageChanged = output<number>();\n\n\t/**\n\t * Total number of pages\n\t * @defaultValue 0\n\t */\n\tpages = input<number>(0);\n\n\t/**\n\t * Size for pagination buttons and labels\n\t * @defaultValue 'md'\n\t */\n\tsize = input<PaginatorSizeProps>('md');\n\n\t/**\n\t * Current active page (1-based)\n\t * @defaultValue 1\n\t */\n\tcurrentPage = model<number>(1);\n\n\t/**\n\t * @internal\n\t * Left arrow icon reference\n\t */\n\ticonArrowLeft = matKeyboardArrowLeftOutline;\n\n\t/**\n\t * @internal\n\t * Double left arrow icon reference\n\t */\n\ticonDoubleArrowLeft = matKeyboardDoubleArrowLeftOutline;\n\n\t/**\n\t * @internal\n\t * Right arrow icon reference\n\t */\n\ticonArrowRight = matKeyboardArrowRightOutline;\n\n\t/**\n\t * @internal\n\t * Double right arrow icon reference\n\t */\n\ticonDoubleArrowRight = matKeyboardDoubleArrowRightOutline;\n\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal Names of the icon-only navigation buttons, from `sdk.pagination.*` with English fallbacks. */\n\tprotected readonly navigationLabels = computed(() => ({\n\t\tfirst: this.translateLabel({ key: 'sdk.pagination.first', fallback: 'First page' }),\n\t\tprevious: this.translateLabel({ key: 'sdk.pagination.previous', fallback: 'Previous page' }),\n\t\tnext: this.translateLabel({ key: 'sdk.pagination.next', fallback: 'Next page' }),\n\t\tlast: this.translateLabel({ key: 'sdk.pagination.last', fallback: 'Last page' }),\n\t}));\n\n\t/** @internal Name of a dot button, from `sdk.pagination.page`. */\n\tprotected pageLabel(page: number | string): string {\n\t\treturn this.translateLabel({ key: 'sdk.pagination.page', fallback: 'Page {{page}}', params: { page } });\n\t}\n\n\t/**\n\t * @internal\n\t * Computed array of page numbers and ellipses for display.\n\t * Implements the logic to show a limited range of pages around the current page\n\t * with '...' for skipped pages.\n\t */\n\tpageNumbersForDisplay = computed<(number | string)[]>(() => {\n\t\tconst totalPages = this.pages();\n\t\tconst currentPage = this.currentPage();\n\t\tconst maxSize = this.maxSize(); // Number of visible numeric page links\n\n\t\tconst pages: (number | string)[] = [];\n\n\t\tif (totalPages <= 1) {\n\t\t\treturn [1];\n\t\t}\n\n\t\tlet startRange: number;\n\t\tlet endRange: number;\n\n\t\t// Calculate the range of pages to display around the current page\n\t\tif (totalPages <= maxSize) {\n\t\t\t// If total pages are less than or equal to maxSize, show all pages\n\t\t\tstartRange = 1;\n\t\t\tendRange = totalPages;\n\t\t} else {\n\t\t\t// Calculate the range to center the currentPage\n\t\t\tconst half = Math.floor(maxSize / 2);\n\t\t\tstartRange = currentPage - half;\n\t\t\tendRange = currentPage + (maxSize - 1 - half);\n\n\t\t\t// Adjust boundary conditions\n\t\t\tif (startRange < 1) {\n\t\t\t\tstartRange = 1;\n\t\t\t\tendRange = maxSize;\n\t\t\t}\n\t\t\tif (endRange > totalPages) {\n\t\t\t\tendRange = totalPages;\n\t\t\t\tstartRange = totalPages - maxSize + 1;\n\t\t\t}\n\t\t}\n\n\t\t// Add first page and leading ellipsis if necessary\n\t\tif (startRange > 1) {\n\t\t\tpages.push(1);\n\t\t\tif (startRange > 2) {\n\t\t\t\t// Only add ellipsis if there's at least one page between 1 and startRange\n\t\t\t\tpages.push('...');\n\t\t\t}\n\t\t}\n\n\t\t// Add pages within the calculated range\n\t\tfor (let i = startRange; i <= endRange; i++) {\n\t\t\tpages.push(i);\n\t\t}\n\n\t\t// Add trailing ellipsis and last page if necessary\n\t\tif (endRange < totalPages) {\n\t\t\tif (endRange < totalPages - 1) {\n\t\t\t\t// Only add ellipsis if there's at least one page between endRange and totalPages\n\t\t\t\tpages.push('...');\n\t\t\t}\n\t\t\t// Ensure last page is only added once and if it's not already in the array\n\t\t\tif (!pages.includes(totalPages)) {\n\t\t\t\tpages.push(totalPages);\n\t\t\t}\n\t\t}\n\n\t\t// Final pass to remove potential duplicate adjacent '...' (e.g., if page 1, ..., 3, ..., 5 leads to 1, ..., ..., 5)\n\t\tconst finalPages: (number | string)[] = [];\n\t\tfor (let i = 0; i < pages.length; i++) {\n\t\t\t// Skip if current is '...' and previous was also '...'\n\t\t\tif (pages[i] === '...' && finalPages.length > 0 && finalPages[finalPages.length - 1] === '...') {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfinalPages.push(pages[i]);\n\t\t}\n\n\t\treturn finalPages;\n\t});\n\n\t/**\n\t * @internal\n\t * Handles page navigation changes\n\t * @param page - New page number (or '...' if clicked on ellipsis, which is ignored)\n\t */\n\thandlePageChange(page: number | string) {\n\t\t// Updated signature to accept string\n\t\tif (typeof page !== 'number') {\n\t\t\t// Type guard: ignore clicks on '...'\n\t\t\treturn;\n\t\t}\n\t\tconst totalPages = Math.max(this.pages(), 1);\n\t\tconst newPage = Math.min(Math.max(1, page), totalPages);\n\t\tif (newPage !== this.currentPage()) {\n\t\t\tthis.currentPage.set(newPage);\n\t\t\tthis.pageChanged.emit(newPage);\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Navigates to previous page if available\n\t */\n\tpreviousPage() {\n\t\tthis.handlePageChange(this.currentPage() - 1);\n\t}\n\n\t/**\n\t * @internal\n\t * Navigates to next page if available\n\t */\n\tnextPage() {\n\t\tthis.handlePageChange(this.currentPage() + 1);\n\t}\n\n\t/**\n\t * @internal\n\t * Jumps to first page\n\t */\n\tfirstPage() {\n\t\tthis.handlePageChange(1);\n\t}\n\n\t/**\n\t * @internal\n\t * Jumps to last page\n\t */\n\tlastPage() {\n\t\tthis.handlePageChange(Math.max(this.pages(), 1));\n\t}\n}\n","@if (type() === 'default') {\n\t<div class=\"flex items-center justify-center gap-2\">\n\t\t<!-- First page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t(triggered)=\"firstPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().first\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Previous page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t(triggered)=\"previousPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().previous\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" [size]=\"size()\" shape=\"round-xs\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<!-- Numeric page item -->\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(triggered)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\n\t\t<!-- Next page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t(triggered)=\"nextPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().next\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages() || pages() <= 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Last page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t(triggered)=\"lastPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().last\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages() || pages() <= 1\"\n\t\t></st-pagination-item>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex items-center justify-center gap-2\">\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" [size]=\"size()\" shape=\"round-lg\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(triggered)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t[ariaLabel]=\"pageLabel(page)\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAQA,MAAM,wBAAwB,GAS1B;AACH,IAAA,EAAE,EAAE;QACH,OAAO,EAAE,CAAC,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,CAAC;QAC7D,IAAI,EAAE,CAAC,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,CAAC;QAC9D,IAAI,EAAE,CAAC,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,CAAC;AAC1D,QAAA,IAAI,EAAE,IAAI;AACV,QAAA,QAAQ,EAAE,IAAI;AACd,KAAA;AACD,IAAA,EAAE,EAAE;QACH,OAAO,EAAE,CAAC,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,CAAC;QAC7D,IAAI,EAAE,CAAC,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,CAAC;QAC9D,IAAI,EAAE,CAAC,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,CAAC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AA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,WAAA,EAAA,mBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC9C/B,+1FAuFA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED7CW,YAAY,+BAAE,uBAAuB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,QAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,cAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAInC,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;+BACC,cAAc,EAAA,OAAA,EACf,CAAC,YAAY,EAAE,uBAAuB,CAAC,EAAA,eAAA,EAE/B,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+1FAAA,EAAA;;;AE5ChD;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-paginator.mjs","sources":["../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.ts","../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.html","../../../projects/sdk/components/paginator/pipes/pagination.pipe.ts","../../../projects/sdk/components/paginator/src/paginator.component.ts","../../../projects/sdk/components/paginator/src/paginator.component.html","../../../projects/sdk/components/paginator/sixbell-telco-sdk-components-paginator.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matKeyboardArrowLeftOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TextDirective, TextPreset } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\n\nexport type PaginationItemSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nconst paginationItemDimensions: Record<\n\tExclude<PaginationItemSizeProps, null | undefined>,\n\t{\n\t\tnumeric: string[];\n\t\ticon: string[];\n\t\tdots: string[];\n\t\ttext: TextPreset;\n\t\ticonSize: 'xs' | 'sm' | 'md';\n\t}\n> = {\n\txs: {\n\t\tnumeric: ['min-h-[24px]', 'h-[24px]', 'min-w-[24px]', 'px-1'],\n\t\ticon: ['min-h-[24px]', 'h-[24px]', 'min-w-[24px]', 'w-[24px]'],\n\t\tdots: ['h-[8px]', 'min-h-[8px]', 'w-[8px]', 'min-w-[8px]'],\n\t\ttext: '10',\n\t\ticonSize: 'xs',\n\t},\n\tsm: {\n\t\tnumeric: ['min-h-[28px]', 'h-[28px]', 'min-w-[28px]', 'px-1'],\n\t\ticon: ['min-h-[28px]', 'h-[28px]', 'min-w-[28px]', 'w-[28px]'],\n\t\tdots: ['h-[9px]', 'min-h-[9px]', 'w-[9px]', 'min-w-[9px]'],\n\t\ttext: '9',\n\t\ticonSize: 'xs',\n\t},\n\tmd: {\n\t\tnumeric: ['min-h-[30px]', 'h-[30px]', 'min-w-[30px]', 'px-1.5'],\n\t\ticon: ['min-h-[30px]', 'h-[30px]', 'min-w-[30px]', 'w-[30px]'],\n\t\tdots: ['h-[10px]', 'min-h-[10px]', 'w-[10px]', 'min-w-[10px]'],\n\t\ttext: '8',\n\t\ticonSize: 'sm',\n\t},\n\tlg: {\n\t\tnumeric: ['min-h-[36px]', 'h-[36px]', 'min-w-[36px]', 'px-2'],\n\t\ticon: ['min-h-[36px]', 'h-[36px]', 'min-w-[36px]', 'w-[36px]'],\n\t\tdots: ['h-[12px]', 'min-h-[12px]', 'w-[12px]', 'min-w-[12px]'],\n\t\ttext: '7',\n\t\ticonSize: 'md',\n\t},\n};\n\n/** Possible pagination item style variants */\nexport type PaginationItemVariantProps = 'numeric' | 'icon' | 'dots' | 'ellipsis' | null | undefined;\n\n/** Configuration object for pagination item styling */\nexport type PaginationItemProps = {\n\tvariant?: PaginationItemVariantProps;\n};\n\n/**\n * A compact pagination control component with interactive states\n *\n * @remarks\n * Uses DaisyUI's button primitive with paginator-specific interaction states:\n * neutral surfaces at rest and solid `primary` for the current page.\n * Supports three variants: numeric pages, navigation icons, and dot indicators.\n * Provides visual feedback for active and hover states.\n *\n * @example\n * ```html\n * <!-- Numeric page item -->\n * <st-pagination-item\n * variant=\"numeric\"\n * [number]=\"2\"\n * [active]=\"true\"\n * ></st-pagination-item>\n * ```\n *\n * @example\n * ```html\n * <!-- Icon navigation -->\n * <st-pagination-item\n * variant=\"icon\"\n * icon=\"chevron-right\"\n * ariaLabel=\"Next page\"\n * ></st-pagination-item>\n * ```\n *\n * @example\n * ```html\n * <!-- Active dot indicator -->\n * <st-pagination-item\n * variant=\"dots\"\n * [active]=\"true\"\n * ></st-pagination-item>\n * ```\n */\n@Component({\n\tselector: 'st-pagination-item',\n\timports: [IconComponent, TextDirective],\n\ttemplateUrl: './pagination-item.component.html',\n\tstyles: `\n\t\t.pagination-item-control {\n\t\t\tbackground-color: var(--color-base-200);\n\t\t\tborder-color: var(--color-base-300);\n\t\t\tcolor: var(--color-base-content);\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t.pagination-item-control:not(.pagination-item-current):hover,\n\t\t.pagination-item-control:not(.pagination-item-current):active {\n\t\t\tbackground-color: var(--color-base-300);\n\t\t\tborder-color: var(--color-base-300);\n\t\t\tcolor: var(--color-base-content);\n\t\t}\n\n\t\t.pagination-item-control:focus-visible {\n\t\t\toutline: 2px solid var(--color-primary);\n\t\t\toutline-offset: 2px;\n\t\t}\n\n\t\t.pagination-item-current,\n\t\t.pagination-item-current:hover,\n\t\t.pagination-item-current:active {\n\t\t\tbackground-color: var(--color-primary);\n\t\t\tborder-color: var(--color-primary);\n\t\t\tcolor: var(--color-primary-content);\n\t\t}\n\n\t\t.pagination-item-control:disabled {\n\t\t\tbackground-color: var(--color-disabled);\n\t\t\tborder-color: var(--color-disabled);\n\t\t\tcolor: var(--color-disabled-content);\n\t\t\topacity: 1;\n\t\t}\n\n\t\t.pagination-item-control.pagination-item-dot,\n\t\t.pagination-item-control.pagination-item-dot:hover,\n\t\t.pagination-item-control.pagination-item-dot:active,\n\t\t.pagination-item-control.pagination-item-dot:disabled {\n\t\t\tbackground-color: transparent;\n\t\t\tborder-color: transparent;\n\t\t}\n\n\t\t.pagination-dot-indicator {\n\t\t\tbackground-color: var(--color-neutral-secondary);\n\t\t}\n\n\t\t.pagination-item-dot:hover .pagination-dot-indicator,\n\t\t.pagination-item-dot:active .pagination-dot-indicator {\n\t\t\tbackground-color: var(--color-base-content);\n\t\t\ttransform: scale(1.25);\n\t\t}\n\n\t\t.pagination-dot-current,\n\t\t.pagination-item-dot:hover .pagination-dot-current,\n\t\t.pagination-item-dot:active .pagination-dot-current {\n\t\t\tbackground-color: var(--color-primary);\n\t\t\ttransform: none;\n\t\t}\n\n\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\t.pagination-item-dot .pagination-dot-indicator {\n\t\t\t\ttransform: none;\n\t\t\t}\n\t\t}\n\t`,\n\tstandalone: true,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PaginationItemComponent {\n\t/**\n\t * Style variant for the pagination item\n\t * @defaultValue 'numeric'\n\t */\n\tvariant = input<PaginationItemVariantProps>();\n\n\t/**\n\t * Visual size for numeric and icon items\n\t * @defaultValue 'md'\n\t */\n\tsize = input<PaginationItemSizeProps>('md');\n\n\t/**\n\t * Icon name from the icon library\n\t * @defaultValue matKeyboardArrowLeftOutline\n\t */\n\ticon = input<string>(matKeyboardArrowLeftOutline);\n\n\t/**\n\t * Display number or custom content\n\t * @defaultValue 1\n\t */\n\tnumber = input<number | string>(1);\n\n\t/**\n\t * Active state styling\n\t * @defaultValue false\n\t */\n\tactive = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Disabled state styling\n\t * @defaultValue false\n\t */\n\tdisabled = input(false, { transform: booleanAttribute }); // New input for disabled state\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Accessible name forwarded to the inner `<button>` as `aria-label`.\n\t * Required for the `icon` and `dots` variants, which have no visible text.\n\t * On the `ellipsis` variant it replaces the screen-reader text, which defaults to `sdk.pagination.more` (\"More pages\").\n\t */\n\tariaLabel = input<string | null | undefined>();\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted once per activation. Enter and Space reach it through the native button click\n\t * they produce, so one key press or one mouse click emits it once.\n\t */\n\ttriggered = output<void>();\n\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal Screen-reader text for the `ellipsis` variant; the visible dots are hidden from assistive technology. */\n\tprotected readonly ellipsisLabel = computed(() => this.ariaLabel() || this.translateLabel({ key: 'sdk.pagination.more', fallback: 'More pages' }));\n\n\t/**\n\t * @internal\n\t * DaisyUI button geometry with paginator-owned semantic state colors.\n\t */\n\tcomponentClass = computed(() => {\n\t\tconst resolvedSize = this.size() ?? 'md';\n\t\tconst resolvedVariant = this.variant() ?? 'numeric';\n\t\tconst dimensions = paginationItemDimensions[resolvedSize];\n\n\t\tif (resolvedVariant === 'ellipsis') {\n\t\t\treturn cn('px-2', 'py-1', 'text-base-content', 'pointer-events-none', 'select-none');\n\t\t}\n\n\t\tif (resolvedVariant === 'dots') {\n\t\t\treturn cn(\n\t\t\t\t'pagination-item-control pagination-item-dot btn group rounded-full border-0 p-0',\n\t\t\t\t'disabled:cursor-not-allowed disabled:opacity-50',\n\t\t\t\tdimensions.icon,\n\t\t\t);\n\t\t}\n\n\t\tconst sizeClasses = resolvedVariant === 'icon' ? dimensions.icon : dimensions.numeric;\n\t\treturn cn(\n\t\t\t'pagination-item-control btn rounded-field font-body flex border p-0 leading-normal font-medium',\n\t\t\tsizeClasses,\n\t\t\tthis.active() && 'pagination-item-current btn-primary',\n\t\t\t'disabled:cursor-not-allowed',\n\t\t);\n\t});\n\n\t/** @internal Visual dot kept separate from its accessible hit target. */\n\tdotClass = computed(() => {\n\t\tconst dimensions = paginationItemDimensions[this.size() ?? 'md'];\n\t\treturn cn(\n\t\t\t'pagination-dot-indicator rounded-full transition-[transform,background-color]',\n\t\t\tthis.active() ? 'pagination-dot-current h-[16px] w-[16px]' : dimensions.dots,\n\t\t);\n\t});\n\n\ttextPreset = computed<TextPreset>(() => paginationItemDimensions[this.size() ?? 'md'].text);\n\n\ticonSize = computed<'xs' | 'sm' | 'md'>(() => paginationItemDimensions[this.size() ?? 'md'].iconSize);\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t}\n\n\t/**\n\t * @internal\n\t * Report the Enter key. Activation comes from the click the native button fires next.\n\t */\n\thandleKeyDownEnter(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t}\n\n\t/**\n\t * @internal\n\t * Report the Space key. Activation comes from the click the native button fires on key up.\n\t */\n\thandleKeyDownSpace(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t}\n}\n","@let variantVar = this.variant();\n\n@if (variantVar === 'ellipsis') {\n\t<span [class]=\"componentClass()\" [stText]=\"textPreset()\">\n\t\t<span aria-hidden=\"true\">{{ number() }}</span>\n\t\t<span class=\"sr-only\">{{ ellipsisLabel() }}</span>\n\t</span>\n} @else {\n\t<button\n\t\t[class]=\"componentClass()\"\n\t\ttype=\"button\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.aria-current]=\"active() ? 'page' : null\"\n\t\t[attr.aria-label]=\"ariaLabel() || null\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t>\n\t\t@if (variantVar === 'icon') {\n\t\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" [size]=\"iconSize()\"></st-icon>\n\t\t} @else if (variantVar === 'dots') {\n\t\t\t<span [class]=\"dotClass()\"></span>\n\t\t} @else {\n\t\t\t<span [stText]=\"textPreset()\">{{ number() }}</span>\n\t\t}\n\t</button>\n}\n","// projects/sdk/components/paginator/src/pagination.pipe.ts\nimport { Pipe, PipeTransform } from '@angular/core';\n\nexport type Pagination = {\n\tcurrentPage: number;\n\titemsPerPage: number;\n};\n\n/**\n * A pipe to manually paginate an array of items.\n *\n * @remarks\n * This pipe takes an array and a pagination configuration object (currentPage, itemsPerPage)\n * and returns a sliced version of the array, representing the items for the current page.\n *\n * @example\n * ```html\n * @for (item of items | pagination: { currentPage: 2, itemsPerPage: 10 }; track item.id) {\n * <li>{{ item.name }}</li>\n * }\n * ```\n */\n@Pipe({\n\tname: 'paginate',\n\tstandalone: true, // Use standalone pipes for better tree-shaking and consistency\n})\nexport class PaginationPipe implements PipeTransform {\n\ttransform<T>(items: T[], pagination: { currentPage: number; itemsPerPage: number }): T[];\n\ttransform<T>(items: T[] | null, pagination: { currentPage: number; itemsPerPage: number }): T[] | null;\n\ttransform<T>(items: T[] | undefined, pagination: { currentPage: number; itemsPerPage: number }): T[] | undefined;\n\ttransform<T>(items: T[] | null | undefined, pagination: { currentPage: number; itemsPerPage: number }): T[] | null | undefined;\n\ttransform<T>(items: T[] | null | undefined, pagination: { currentPage: number; itemsPerPage: number }): T[] | null | undefined {\n\t\tif (!items || !Array.isArray(items) || pagination?.currentPage === undefined || pagination?.itemsPerPage === undefined) {\n\t\t\treturn items;\n\t\t}\n\n\t\tconst currentPage = Math.max(1, pagination.currentPage);\n\t\tconst itemsPerPage = Math.max(1, pagination.itemsPerPage);\n\n\t\tconst startIndex = (currentPage - 1) * itemsPerPage;\n\t\tconst endIndex = startIndex + itemsPerPage;\n\n\t\treturn items.slice(startIndex, endIndex);\n\t}\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';\nimport {\n\tmatKeyboardArrowLeftOutline,\n\tmatKeyboardArrowRightOutline,\n\tmatKeyboardDoubleArrowLeftOutline,\n\tmatKeyboardDoubleArrowRightOutline,\n} from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { PaginationItemComponent } from '../components/pagination-item/pagination-item.component';\n\n/** Type of pagination display variant */\nexport type PaginationType = 'default' | 'dots';\nexport type PaginatorSizeProps = 'xs' | 'sm' | 'md' | 'lg';\n\n/**\n * A customizable pagination component with navigation controls\n *\n * @remarks\n * Supports both traditional numbered pagination and dot indicators.\n * Provides custom styling and navigation controls.\n *\n * @example\n * ```html\n * <st-paginator\n * [pages]=\"10\"\n * type=\"default\"\n * (pageChanged)=\"onPageChange($event)\"\n * ></st-paginator>\n * ```\n *\n * @example\n * ```html\n * <st-paginator\n * [pages]=\"5\"\n * type=\"dots\"\n * [maxSize]=\"3\"\n * ></st-paginator>\n * ```\n */\n@Component({\n\tselector: 'st-paginator',\n\timports: [CommonModule, PaginationItemComponent],\n\ttemplateUrl: './paginator.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PaginatorComponent {\n\t/**\n\t * Unique identifier for the paginator instance\n\t * @defaultValue 'paginator'\n\t */\n\tpaginatorId = input<string>('paginator');\n\n\t/**\n\t * Maximum number of visible numeric page items (excluding arrows and ellipses).\n\t * This controls the window of page numbers shown around the current page.\n\t * @defaultValue 4\n\t */\n\tmaxSize = input<number>(4);\n\n\t/**\n\t * Pagination display variant\n\t * @defaultValue 'default'\n\t */\n\ttype = input<PaginationType>('default');\n\n\t/**\n\t * Event emitted when the current page changes\n\t */\n\tpageChanged = output<number>();\n\n\t/**\n\t * Total number of pages\n\t * @defaultValue 0\n\t */\n\tpages = input<number>(0);\n\n\t/**\n\t * Size for pagination buttons and labels\n\t * @defaultValue 'md'\n\t */\n\tsize = input<PaginatorSizeProps>('md');\n\n\t/**\n\t * Current active page (1-based)\n\t * @defaultValue 1\n\t */\n\tcurrentPage = model<number>(1);\n\n\t/**\n\t * @internal\n\t * Left arrow icon reference\n\t */\n\ticonArrowLeft = matKeyboardArrowLeftOutline;\n\n\t/**\n\t * @internal\n\t * Double left arrow icon reference\n\t */\n\ticonDoubleArrowLeft = matKeyboardDoubleArrowLeftOutline;\n\n\t/**\n\t * @internal\n\t * Right arrow icon reference\n\t */\n\ticonArrowRight = matKeyboardArrowRightOutline;\n\n\t/**\n\t * @internal\n\t * Double right arrow icon reference\n\t */\n\ticonDoubleArrowRight = matKeyboardDoubleArrowRightOutline;\n\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal Names of the landmark and the icon-only navigation buttons, from `sdk.pagination.*` with English fallbacks. */\n\tprotected readonly navigationLabels = computed(() => ({\n\t\tnav: this.translateLabel({ key: 'sdk.pagination.label', fallback: 'Pagination' }),\n\t\tfirst: this.translateLabel({ key: 'sdk.pagination.first', fallback: 'First page' }),\n\t\tprevious: this.translateLabel({ key: 'sdk.pagination.previous', fallback: 'Previous page' }),\n\t\tnext: this.translateLabel({ key: 'sdk.pagination.next', fallback: 'Next page' }),\n\t\tlast: this.translateLabel({ key: 'sdk.pagination.last', fallback: 'Last page' }),\n\t}));\n\n\t/** @internal Name of a dot button, from `sdk.pagination.page`. */\n\tprotected pageLabel(page: number | string): string {\n\t\treturn this.translateLabel({ key: 'sdk.pagination.page', fallback: 'Page {{page}}', params: { page } });\n\t}\n\n\t/**\n\t * @internal\n\t * Computed array of page numbers and ellipses for display.\n\t * Implements the logic to show a limited range of pages around the current page\n\t * with '...' for skipped pages.\n\t */\n\tpageNumbersForDisplay = computed<(number | string)[]>(() => {\n\t\tconst totalPages = this.pages();\n\t\tconst currentPage = this.currentPage();\n\t\tconst maxSize = this.maxSize(); // Number of visible numeric page links\n\n\t\tconst pages: (number | string)[] = [];\n\n\t\tif (totalPages <= 1) {\n\t\t\treturn [1];\n\t\t}\n\n\t\tlet startRange: number;\n\t\tlet endRange: number;\n\n\t\t// Calculate the range of pages to display around the current page\n\t\tif (totalPages <= maxSize) {\n\t\t\t// If total pages are less than or equal to maxSize, show all pages\n\t\t\tstartRange = 1;\n\t\t\tendRange = totalPages;\n\t\t} else {\n\t\t\t// Calculate the range to center the currentPage\n\t\t\tconst half = Math.floor(maxSize / 2);\n\t\t\tstartRange = currentPage - half;\n\t\t\tendRange = currentPage + (maxSize - 1 - half);\n\n\t\t\t// Adjust boundary conditions\n\t\t\tif (startRange < 1) {\n\t\t\t\tstartRange = 1;\n\t\t\t\tendRange = maxSize;\n\t\t\t}\n\t\t\tif (endRange > totalPages) {\n\t\t\t\tendRange = totalPages;\n\t\t\t\tstartRange = totalPages - maxSize + 1;\n\t\t\t}\n\t\t}\n\n\t\t// Add first page and leading ellipsis if necessary\n\t\tif (startRange > 1) {\n\t\t\tpages.push(1);\n\t\t\tif (startRange > 2) {\n\t\t\t\t// Only add ellipsis if there's at least one page between 1 and startRange\n\t\t\t\tpages.push('...');\n\t\t\t}\n\t\t}\n\n\t\t// Add pages within the calculated range\n\t\tfor (let i = startRange; i <= endRange; i++) {\n\t\t\tpages.push(i);\n\t\t}\n\n\t\t// Add trailing ellipsis and last page if necessary\n\t\tif (endRange < totalPages) {\n\t\t\tif (endRange < totalPages - 1) {\n\t\t\t\t// Only add ellipsis if there's at least one page between endRange and totalPages\n\t\t\t\tpages.push('...');\n\t\t\t}\n\t\t\t// Ensure last page is only added once and if it's not already in the array\n\t\t\tif (!pages.includes(totalPages)) {\n\t\t\t\tpages.push(totalPages);\n\t\t\t}\n\t\t}\n\n\t\t// Final pass to remove potential duplicate adjacent '...' (e.g., if page 1, ..., 3, ..., 5 leads to 1, ..., ..., 5)\n\t\tconst finalPages: (number | string)[] = [];\n\t\tfor (let i = 0; i < pages.length; i++) {\n\t\t\t// Skip if current is '...' and previous was also '...'\n\t\t\tif (pages[i] === '...' && finalPages.length > 0 && finalPages[finalPages.length - 1] === '...') {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfinalPages.push(pages[i]);\n\t\t}\n\n\t\treturn finalPages;\n\t});\n\n\t/**\n\t * @internal\n\t * Handles page navigation changes\n\t * @param page - New page number (or '...' if clicked on ellipsis, which is ignored)\n\t */\n\thandlePageChange(page: number | string) {\n\t\t// Updated signature to accept string\n\t\tif (typeof page !== 'number') {\n\t\t\t// Type guard: ignore clicks on '...'\n\t\t\treturn;\n\t\t}\n\t\tconst totalPages = Math.max(this.pages(), 1);\n\t\tconst newPage = Math.min(Math.max(1, page), totalPages);\n\t\tif (newPage !== this.currentPage()) {\n\t\t\tthis.currentPage.set(newPage);\n\t\t\tthis.pageChanged.emit(newPage);\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Navigates to previous page if available\n\t */\n\tpreviousPage() {\n\t\tthis.handlePageChange(this.currentPage() - 1);\n\t}\n\n\t/**\n\t * @internal\n\t * Navigates to next page if available\n\t */\n\tnextPage() {\n\t\tthis.handlePageChange(this.currentPage() + 1);\n\t}\n\n\t/**\n\t * @internal\n\t * Jumps to first page\n\t */\n\tfirstPage() {\n\t\tthis.handlePageChange(1);\n\t}\n\n\t/**\n\t * @internal\n\t * Jumps to last page\n\t */\n\tlastPage() {\n\t\tthis.handlePageChange(Math.max(this.pages(), 1));\n\t}\n}\n","<nav class=\"flex max-w-full flex-wrap items-center justify-center gap-1 sm:gap-2\" [attr.aria-label]=\"navigationLabels().nav\">\n\t@if (type() === 'default') {\n\t\t<!-- First page button: hidden on phones, previous and next stay -->\n\t\t<st-pagination-item\n\t\t\tclass=\"hidden sm:flex\"\n\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t(triggered)=\"firstPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().first\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Previous page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t(triggered)=\"previousPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().previous\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" [size]=\"size()\" shape=\"round-xs\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<!-- Numeric page item -->\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(triggered)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\n\t\t<!-- Next page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t(triggered)=\"nextPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().next\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages() || pages() <= 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Last page button: hidden on phones, previous and next stay -->\n\t\t<st-pagination-item\n\t\t\tclass=\"hidden sm:flex\"\n\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t(triggered)=\"lastPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\t[ariaLabel]=\"navigationLabels().last\"\n\t\t\t[size]=\"size()\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages() || pages() <= 1\"\n\t\t></st-pagination-item>\n\t}\n\t@if (type() === 'dots') {\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" [size]=\"size()\" shape=\"round-lg\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(triggered)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t[ariaLabel]=\"pageLabel(page)\"\n\t\t\t\t\t[size]=\"size()\"\n\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\t}\n</nav>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AASA,MAAM,wBAAwB,GAS1B;AACH,IAAA,EAAE,EAAE;QACH,OAA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AAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAInC,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;+BACC,cAAc,EAAA,OAAA,EACf,CAAC,YAAY,EAAE,uBAAuB,CAAC,EAAA,eAAA,EAE/B,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8/FAAA,EAAA;;;AE5ChD;;AAEG;;;;"}
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { input, booleanAttribute, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import { TextDirective } from '@sixbell-telco/sdk/directives/text';
4
4
  import { cn } from '@sixbell-telco/sdk/utils/cn';
5
+ import { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';
5
6
  import { cva } from 'class-variance-authority';
6
7
 
7
8
  /**
@@ -57,8 +58,8 @@ class ProgressComponent {
57
58
  */
58
59
  variant = input();
59
60
  /**
60
- * Current progress value (0-100)
61
- * @defaultValue -1 (indeterminate when value < 0)
61
+ * Current progress value, from 0 to `max`
62
+ * @defaultValue -1 (no value label and no `aria-valuenow` while value < 0)
62
63
  */
63
64
  value = input(-1);
64
65
  /**
@@ -76,6 +77,23 @@ class ProgressComponent {
76
77
  * @defaultValue 'none'
77
78
  */
78
79
  labelPosition = input('none');
80
+ /**
81
+ * Accessible name of the progress bar. Defaults to `sdk.progress.label` ("Progress").
82
+ */
83
+ ariaLabel = input();
84
+ /** @internal */
85
+ translateLabel = injectLabelTranslator();
86
+ /** @internal Name announced for the progress bar. */
87
+ accessibleName = computed(() => this.ariaLabel() || this.translateLabel({ key: 'sdk.progress.label', fallback: 'Progress' }));
88
+ /** @internal Whether a value is shown and announced. */
89
+ determinate = computed(() => !this.indeterminate() && this.value() >= 0);
90
+ /** @internal Value clamped to `0..max`, as the native progress element does. */
91
+ clampedValue = computed(() => Math.min(Math.max(this.value(), 0), Math.max(this.max(), 0)));
92
+ /** @internal Value as a whole percentage of `max`. */
93
+ percentage = computed(() => {
94
+ const max = this.max();
95
+ return max > 0 ? Math.round((this.clampedValue() / max) * 100) : 0;
96
+ });
79
97
  /**
80
98
  * @internal
81
99
  * Computed class string for the progress bar container
@@ -84,11 +102,11 @@ class ProgressComponent {
84
102
  variant: this.variant(),
85
103
  })));
86
104
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
87
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ProgressComponent, isStandalone: true, selector: "st-progress", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let labelPositionVar = labelPosition();\n@let valueVar = value();\n@let indeterminateVar = indeterminate();\n@let maxVar = max();\n@let componentClassVar = componentClass();\n\n<div class=\"flex flex-col items-center gap-1\">\n\t@if (valueVar >= 0 && labelPositionVar === 'top') {\n\t\t<span stText=\"9\">{{ valueVar }} %</span>\n\t}\n\t<progress [class]=\"componentClassVar\" [attr.value]=\"!indeterminateVar ? valueVar : null\" [max]=\"maxVar\"></progress>\n\t@if (valueVar >= 0 && labelPositionVar === 'bottom') {\n\t\t<span stText=\"9\">{{ valueVar }} %</span>\n\t}\n</div>\n", dependencies: [{ kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
105
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ProgressComponent, isStandalone: true, selector: "st-progress", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let labelPositionVar = labelPosition();\n@let valueVar = value();\n@let indeterminateVar = indeterminate();\n@let maxVar = max();\n@let componentClassVar = componentClass();\n\n<div class=\"flex flex-col items-center gap-1\">\n\t@if (valueVar >= 0 && labelPositionVar === 'top') {\n\t\t<span stText=\"9\" aria-hidden=\"true\">{{ percentage() }} %</span>\n\t}\n\t<progress\n\t\t[class]=\"componentClassVar\"\n\t\t[attr.value]=\"!indeterminateVar ? valueVar : null\"\n\t\t[max]=\"maxVar\"\n\t\t[attr.aria-label]=\"accessibleName()\"\n\t\t[attr.aria-valuemin]=\"determinate() ? 0 : null\"\n\t\t[attr.aria-valuemax]=\"determinate() ? maxVar : null\"\n\t\t[attr.aria-valuenow]=\"determinate() ? clampedValue() : null\"\n\t\t[attr.aria-valuetext]=\"determinate() ? percentage() + ' %' : null\"\n\t></progress>\n\t@if (valueVar >= 0 && labelPositionVar === 'bottom') {\n\t\t<span stText=\"9\" aria-hidden=\"true\">{{ percentage() }} %</span>\n\t}\n</div>\n", dependencies: [{ kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
88
106
  }
89
107
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProgressComponent, decorators: [{
90
108
  type: Component,
91
- args: [{ selector: 'st-progress', imports: [TextDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let labelPositionVar = labelPosition();\n@let valueVar = value();\n@let indeterminateVar = indeterminate();\n@let maxVar = max();\n@let componentClassVar = componentClass();\n\n<div class=\"flex flex-col items-center gap-1\">\n\t@if (valueVar >= 0 && labelPositionVar === 'top') {\n\t\t<span stText=\"9\">{{ valueVar }} %</span>\n\t}\n\t<progress [class]=\"componentClassVar\" [attr.value]=\"!indeterminateVar ? valueVar : null\" [max]=\"maxVar\"></progress>\n\t@if (valueVar >= 0 && labelPositionVar === 'bottom') {\n\t\t<span stText=\"9\">{{ valueVar }} %</span>\n\t}\n</div>\n" }]
109
+ args: [{ selector: 'st-progress', imports: [TextDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let labelPositionVar = labelPosition();\n@let valueVar = value();\n@let indeterminateVar = indeterminate();\n@let maxVar = max();\n@let componentClassVar = componentClass();\n\n<div class=\"flex flex-col items-center gap-1\">\n\t@if (valueVar >= 0 && labelPositionVar === 'top') {\n\t\t<span stText=\"9\" aria-hidden=\"true\">{{ percentage() }} %</span>\n\t}\n\t<progress\n\t\t[class]=\"componentClassVar\"\n\t\t[attr.value]=\"!indeterminateVar ? valueVar : null\"\n\t\t[max]=\"maxVar\"\n\t\t[attr.aria-label]=\"accessibleName()\"\n\t\t[attr.aria-valuemin]=\"determinate() ? 0 : null\"\n\t\t[attr.aria-valuemax]=\"determinate() ? maxVar : null\"\n\t\t[attr.aria-valuenow]=\"determinate() ? clampedValue() : null\"\n\t\t[attr.aria-valuetext]=\"determinate() ? percentage() + ' %' : null\"\n\t></progress>\n\t@if (valueVar >= 0 && labelPositionVar === 'bottom') {\n\t\t<span stText=\"9\" aria-hidden=\"true\">{{ percentage() }} %</span>\n\t}\n</div>\n" }]
92
110
  }] });
93
111
 
94
112
  /**