@sixbell-telco/sdk 4.9.0 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/components/alert/src/alert.component.d.ts +8 -1
- package/components/data-table/README.md +1 -0
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +12 -0
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +6 -0
- package/components/forms/combobox/README.md +41 -1
- package/components/forms/combobox/src/combobox.component.d.ts +134 -3
- package/components/forms/select/README.md +41 -1
- package/components/forms/select/src/select.component.d.ts +119 -3
- package/components/forms/textarea/src/textarea.component.d.ts +6 -1
- package/components/progress/src/progress.component.d.ts +17 -3
- package/components/table/README.md +2 -0
- package/components/table/src/table.component.d.ts +13 -0
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs +12 -5
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +32 -6
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +204 -21
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +189 -17
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +11 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +22 -4
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +39 -5
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/i18n/sdk/en.json +7 -1
- package/i18n/sdk/es.json +7 -1
- package/i18n/sdk/pt.json +7 -1
- package/manifest.json +95 -9
- package/package.json +1 -1
|
@@ -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-invalid]=\"fieldA11y.invalid() || 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,EAA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CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1HF,k6DAqDA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED8DW,WAAW,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,8MAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,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,k6DAAA,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,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A,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,i+DAAA,EAAA;;;AE1HF;;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
|
|
61
|
-
* @defaultValue -1 (
|
|
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\">{{
|
|
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\">{{
|
|
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
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-progress.mjs","sources":["../../../projects/sdk/components/progress/src/progress.component.ts","../../../projects/sdk/components/progress/src/progress.component.html","../../../projects/sdk/components/progress/sixbell-telco-sdk-components-progress.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\n/**\n * @internal\n * Generates base progress bar classes with style variants\n */\nexport const progressComponent = cva(['progress'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbase: [],\n\t\t\tprimary: ['progress-primary'],\n\t\t\tsecondary: ['progress-secondary'],\n\t\t\tsuccess: ['progress-success'],\n\t\t\tinfo: ['progress-info'],\n\t\t\terror: ['progress-error'],\n\t\t\twarning: ['progress-warning'],\n\t\t\taccent: ['progress-accent'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'base',\n\t},\n});\n\n/** Possible progress bar color variants */\nexport type ProgressVariantProps = 'base' | 'primary' | 'secondary' | 'success' | 'info' | 'error' | 'warning' | 'accent' | null | undefined;\n\n/** Possible positions for progress bar label */\nexport type ProgressLabelPositionProps = 'top' | 'bottom' | 'none';\n\n/** Configuration object for progress bar styling */\nexport type ProgressProps = {\n\tvariant?: ProgressVariantProps;\n};\n\n/**\n * A customizable progress indicator component\n *\n * @remarks\n * Built with Tailwind CSS and class-variance-authority for style management.\n * Supports multiple color variants, indeterminate state, and label positioning.\n *\n * @example\n * ```html\n * <st-progress\n * variant=\"primary\"\n * [value]=\"75\"\n * labelPosition=\"top\"\n * ></st-progress>\n * ```\n *\n * @example\n * ```html\n * <st-progress\n * variant=\"success\"\n * [indeterminate]=\"true\"\n * ></st-progress>\n * ```\n */\n@Component({\n\tselector: 'st-progress',\n\ttemplateUrl: './progress.component.html',\n\timports: [TextDirective],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ProgressComponent {\n\t/**\n\t * Progress bar color variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<ProgressVariantProps>();\n\n\t/**\n\t * Current progress value
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-progress.mjs","sources":["../../../projects/sdk/components/progress/src/progress.component.ts","../../../projects/sdk/components/progress/src/progress.component.html","../../../projects/sdk/components/progress/sixbell-telco-sdk-components-progress.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\n\n/**\n * @internal\n * Generates base progress bar classes with style variants\n */\nexport const progressComponent = cva(['progress'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbase: [],\n\t\t\tprimary: ['progress-primary'],\n\t\t\tsecondary: ['progress-secondary'],\n\t\t\tsuccess: ['progress-success'],\n\t\t\tinfo: ['progress-info'],\n\t\t\terror: ['progress-error'],\n\t\t\twarning: ['progress-warning'],\n\t\t\taccent: ['progress-accent'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'base',\n\t},\n});\n\n/** Possible progress bar color variants */\nexport type ProgressVariantProps = 'base' | 'primary' | 'secondary' | 'success' | 'info' | 'error' | 'warning' | 'accent' | null | undefined;\n\n/** Possible positions for progress bar label */\nexport type ProgressLabelPositionProps = 'top' | 'bottom' | 'none';\n\n/** Configuration object for progress bar styling */\nexport type ProgressProps = {\n\tvariant?: ProgressVariantProps;\n};\n\n/**\n * A customizable progress indicator component\n *\n * @remarks\n * Built with Tailwind CSS and class-variance-authority for style management.\n * Supports multiple color variants, indeterminate state, and label positioning.\n *\n * @example\n * ```html\n * <st-progress\n * variant=\"primary\"\n * [value]=\"75\"\n * labelPosition=\"top\"\n * ></st-progress>\n * ```\n *\n * @example\n * ```html\n * <st-progress\n * variant=\"success\"\n * [indeterminate]=\"true\"\n * ></st-progress>\n * ```\n */\n@Component({\n\tselector: 'st-progress',\n\ttemplateUrl: './progress.component.html',\n\timports: [TextDirective],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ProgressComponent {\n\t/**\n\t * Progress bar color variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<ProgressVariantProps>();\n\n\t/**\n\t * Current progress value, from 0 to `max`\n\t * @defaultValue -1 (no value label and no `aria-valuenow` while value < 0)\n\t */\n\tvalue = input<number>(-1);\n\n\t/**\n\t * Maximum progress value\n\t * @defaultValue 100\n\t */\n\tmax = input<number>(100);\n\n\t/**\n\t * Enable indeterminate animation\n\t * @defaultValue false\n\t */\n\tindeterminate = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Position of progress value label\n\t * @defaultValue 'none'\n\t */\n\tlabelPosition = input<ProgressLabelPositionProps>('none');\n\n\t/**\n\t * Accessible name of the progress bar. Defaults to `sdk.progress.label` (\"Progress\").\n\t */\n\tariaLabel = input<string | null | undefined>();\n\n\t/** @internal */\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal Name announced for the progress bar. */\n\tprotected readonly accessibleName = computed(() => this.ariaLabel() || this.translateLabel({ key: 'sdk.progress.label', fallback: 'Progress' }));\n\n\t/** @internal Whether a value is shown and announced. */\n\tprotected readonly determinate = computed(() => !this.indeterminate() && this.value() >= 0);\n\n\t/** @internal Value clamped to `0..max`, as the native progress element does. */\n\tprotected readonly clampedValue = computed(() => Math.min(Math.max(this.value(), 0), Math.max(this.max(), 0)));\n\n\t/** @internal Value as a whole percentage of `max`. */\n\tprotected readonly percentage = computed(() => {\n\t\tconst max = this.max();\n\t\treturn max > 0 ? Math.round((this.clampedValue() / max) * 100) : 0;\n\t});\n\n\t/**\n\t * @internal\n\t * Computed class string for the progress bar container\n\t */\n\tcomponentClass = computed(() =>\n\t\tcn(\n\t\t\tprogressComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t}),\n\t\t),\n\t);\n}\n","@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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAMA;;;AAGG;MACU,iBAAiB,GAAG,GAAG,CAAC,CAAC,UAAU,CAAC,EAAE;AAClD,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,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,IAAI,EAAE,CAAC,eAAe,CAAC;YACvB,KAAK,EAAE,CAAC,gBAAgB,CAAC;YACzB,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,MAAM,EAAE,CAAC,iBAAiB,CAAC;AAC3B,S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AAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECtE9B,w7BAwBA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED2CW,aAAa,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,cAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,iBAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAGX,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAN7B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,WAEd,CAAC,aAAa,CAAC,EAAA,eAAA,EACP,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,w7BAAA,EAAA;;;AEpEhD;;AAEG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TABLE_EMPTY_STATE } from '@sixbell-telco/sdk/components/table/tokens';
|
|
2
2
|
export { TABLE_EMPTY_STATE } from '@sixbell-telco/sdk/components/table/tokens';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { inject, ElementRef, signal, afterRenderEffect, computed, input, ChangeDetectionStrategy, Component, booleanAttribute, output, contentChild, contentChildren } from '@angular/core';
|
|
4
|
+
import { inject, ElementRef, signal, afterRenderEffect, computed, input, ChangeDetectionStrategy, Component, booleanAttribute, output, viewChild, DestroyRef, contentChild, contentChildren } from '@angular/core';
|
|
5
5
|
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
6
6
|
import * as i1 from '@angular/common';
|
|
7
7
|
import { CommonModule } from '@angular/common';
|
|
@@ -704,6 +704,38 @@ class TableComponent {
|
|
|
704
704
|
translateLabel = injectLabelTranslator();
|
|
705
705
|
/** @internal Id of the items-per-page select, named by its visually hidden label */
|
|
706
706
|
pageSizeSelectId = `st-table-page-size-${nextTablePageSizeId++}`;
|
|
707
|
+
/** @internal The horizontal scroll container */
|
|
708
|
+
scrollContainer = viewChild('scrollContainer');
|
|
709
|
+
/** @internal The table, observed so a wider column re-measures the overflow */
|
|
710
|
+
tableElement = viewChild('tableElement');
|
|
711
|
+
/**
|
|
712
|
+
* @internal
|
|
713
|
+
* Whether the table is wider than its container. Only then the container is a named, focusable region,
|
|
714
|
+
* so keyboard users can scroll it; a table that fits adds no tab stop
|
|
715
|
+
*/
|
|
716
|
+
overflowsX = signal(false);
|
|
717
|
+
/** @internal Accessible name of the scroll container while it overflows */
|
|
718
|
+
scrollRegionLabel = computed(() => this.translateLabel({ key: 'sdk.table.scrollRegion', fallback: 'Scrollable table' }));
|
|
719
|
+
constructor() {
|
|
720
|
+
let observer = null;
|
|
721
|
+
inject(DestroyRef).onDestroy(() => observer?.disconnect());
|
|
722
|
+
afterRenderEffect(() => {
|
|
723
|
+
const container = this.scrollContainer()?.nativeElement;
|
|
724
|
+
const table = this.tableElement()?.nativeElement;
|
|
725
|
+
observer?.disconnect();
|
|
726
|
+
observer = null;
|
|
727
|
+
if (!container)
|
|
728
|
+
return;
|
|
729
|
+
const measure = () => this.overflowsX.set(container.scrollWidth > container.clientWidth);
|
|
730
|
+
measure();
|
|
731
|
+
if (typeof ResizeObserver === 'undefined')
|
|
732
|
+
return;
|
|
733
|
+
observer = new ResizeObserver(measure);
|
|
734
|
+
observer.observe(container);
|
|
735
|
+
if (table)
|
|
736
|
+
observer.observe(table);
|
|
737
|
+
});
|
|
738
|
+
}
|
|
707
739
|
entriesPerPageOptions = computed(() => this.ENTRIES.map((n) => ({
|
|
708
740
|
value: n,
|
|
709
741
|
text: this.translateLabel({ key: 'sdk.table.perPage', fallback: '{{count}} / page', params: { count: n } }),
|
|
@@ -846,7 +878,9 @@ class TableComponent {
|
|
|
846
878
|
*/
|
|
847
879
|
tableContainerClass = computed(() => cn(tableContainer({
|
|
848
880
|
containerHeight: this.height(),
|
|
849
|
-
}), { '[&_thead]:whitespace-normal': !this.allowHeaderOverflow() }, 'w-full flex-grow overflow-x-auto'
|
|
881
|
+
}), { '[&_thead]:whitespace-normal': !this.allowHeaderOverflow() }, 'scroll-fade-x w-full flex-grow overflow-x-auto',
|
|
882
|
+
// Inset ring when the overflowing container takes keyboard focus; the edge fade is dropped meanwhile so it does not hide the ring
|
|
883
|
+
'focus-visible:outline-primary focus-visible:[mask-image:none] focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:[-webkit-mask-image:none]'));
|
|
850
884
|
/**
|
|
851
885
|
* @internal
|
|
852
886
|
* Computes outer container classes based on size
|
|
@@ -930,12 +964,12 @@ class TableComponent {
|
|
|
930
964
|
this.header()?.checked.set(false);
|
|
931
965
|
}
|
|
932
966
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
933
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TableComponent, isStandalone: true, selector: "st-table", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, rowHover: { classPropertyName: "rowHover", publicName: "rowHover", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingRows: { classPropertyName: "loadingRows", publicName: "loadingRows", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, noDataIcon: { classPropertyName: "noDataIcon", publicName: "noDataIcon", isSignal: true, isRequired: false, transformFunction: null }, noResultsIcon: { classPropertyName: "noResultsIcon", publicName: "noResultsIcon", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, showItemsPerPage: { classPropertyName: "showItemsPerPage", publicName: "showItemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, showEntries: { classPropertyName: "showEntries", publicName: "showEntries", isSignal: true, isRequired: false, transformFunction: null }, showPagination: { classPropertyName: "showPagination", publicName: "showPagination", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, hasActiveFiltersCallback: { classPropertyName: "hasActiveFiltersCallback", publicName: "hasActiveFiltersCallback", isSignal: true, isRequired: false, transformFunction: null }, allowHeaderOverflow: { classPropertyName: "allowHeaderOverflow", publicName: "allowHeaderOverflow", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged", checkedItems: "checkedItems" }, queries: [{ propertyName: "customEmptyState", first: true, predicate: TABLE_EMPTY_STATE, isSignal: true }, { propertyName: "header", first: true, predicate: TableHeaderCheckboxComponent, descendants: true, isSignal: true }, { propertyName: "rows", predicate: TableRowCheckboxComponent, descendants: true, isSignal: true }], ngImport: i0, template: "@let total = totalItems();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let footerSelectSizeVar = footerSelectSize();\n@let footerPaginatorSizeVar = footerPaginatorSize();\n@let footerWrapperClassVar = footerWrapperClass();\n@let footerDividerClassVar = footerDividerClass();\n@let footerContentClassVar = footerContentClass();\n@let showItemsPerPageVar = showItemsPerPage();\n@let paginationVar = pagination();\n@let showPaginationVar = showPagination();\n@let paginatorTypeVar = paginatorType();\n@let maxSizeVar = maxSize();\n@let showEntriesVar = showEntries();\n@let showFooterVar = showFooter();\n@let totalPagesVar = totalPages();\n\n@let loadingVar = loading();\n\n<div [class]=\"containerClassVar\">\n\t<span role=\"status\" class=\"sr-only\">\n\t\t@if (loadingVar) {\n\t\t\t{{ 'sdk.table.loading' | translate }}\n\t\t}\n\t</span>\n\t<div [class]=\"tableContainerClassVar\">\n\t\t<div class=\"w-full\">\n\t\t\t@if (customEmptyState() && (showNoData() || showNoResults())) {\n\t\t\t\t<ng-content select=\"st-empty-state\"></ng-content>\n\t\t\t} @else if (showNoData()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content-muted\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content-muted\">{{ 'sdk.table.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ 'sdk.table.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (showNoResults()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content-muted\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content-muted\">{{ 'sdk.table.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ 'sdk.table.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClassVar\" [attr.aria-busy]=\"loadingVar || null\">\n\t\t\t\t\t<ng-content select=\"caption, colgroup\"></ng-content>\n\t\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t\t@if (loadingVar) {\n\t\t\t\t\t\t<tbody data-st-skeleton aria-hidden=\"true\">\n\t\t\t\t\t\t\t@for (row of skeletonRows(); track row) {\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t@for (column of skeletonColumns(); track column) {\n\t\t\t\t\t\t\t\t\t\t<td><div [class]=\"skeletonClass()\"></div></td>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t\t\t\t<ng-content select=\"tfoot\"></ng-content>\n\t\t\t\t\t}\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\t@if (total > 0) {\n\t\t@if (showFooterVar) {\n\t\t\t<div [class]=\"footerWrapperClassVar\">\n\t\t\t\t<div [class]=\"footerDividerClassVar\"></div>\n\t\t\t\t<div [class]=\"footerContentClassVar\">\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\t\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\t\t\t\t\t\t\t\t\t{{ 'sdk.table.entriesRange' | translate: { range: paginationRange(), total: total } }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t\ttype=\"dots\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t\t<label class=\"sr-only\" [for]=\"pageSizeSelectId\">{{ 'sdk.table.entriesByPage' | translate }}</label>\n\t\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t\t\t\t[inputId]=\"pageSizeSelectId\"\n\t\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t\t\t\t[size]=\"footerSelectSizeVar\"\n\t\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t}\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "size", "currentPage"], outputs: ["pageChanged", "currentPageChange"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "showOptional", "optionalText", "required", "ghost", "name", "inputId", "placeholder", "label", "value", "options", "displayKey", "valueKey", "disabledKey", "descriptionKey", "allowClear", "parentForm", "formControlName", "disabled", "stopPropagation"], outputs: ["valueChange", "disabledChange", "blurred", "valueUpdated", "clicked", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
967
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TableComponent, isStandalone: true, selector: "st-table", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, rowHover: { classPropertyName: "rowHover", publicName: "rowHover", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingRows: { classPropertyName: "loadingRows", publicName: "loadingRows", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, noDataIcon: { classPropertyName: "noDataIcon", publicName: "noDataIcon", isSignal: true, isRequired: false, transformFunction: null }, noResultsIcon: { classPropertyName: "noResultsIcon", publicName: "noResultsIcon", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, showItemsPerPage: { classPropertyName: "showItemsPerPage", publicName: "showItemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, showEntries: { classPropertyName: "showEntries", publicName: "showEntries", isSignal: true, isRequired: false, transformFunction: null }, showPagination: { classPropertyName: "showPagination", publicName: "showPagination", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, hasActiveFiltersCallback: { classPropertyName: "hasActiveFiltersCallback", publicName: "hasActiveFiltersCallback", isSignal: true, isRequired: false, transformFunction: null }, allowHeaderOverflow: { classPropertyName: "allowHeaderOverflow", publicName: "allowHeaderOverflow", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged", checkedItems: "checkedItems" }, queries: [{ propertyName: "customEmptyState", first: true, predicate: TABLE_EMPTY_STATE, isSignal: true }, { propertyName: "header", first: true, predicate: TableHeaderCheckboxComponent, descendants: true, isSignal: true }, { propertyName: "rows", predicate: TableRowCheckboxComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollContainer"], descendants: true, isSignal: true }, { propertyName: "tableElement", first: true, predicate: ["tableElement"], descendants: true, isSignal: true }], ngImport: i0, template: "@let total = totalItems();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let footerSelectSizeVar = footerSelectSize();\n@let footerPaginatorSizeVar = footerPaginatorSize();\n@let footerWrapperClassVar = footerWrapperClass();\n@let footerDividerClassVar = footerDividerClass();\n@let footerContentClassVar = footerContentClass();\n@let showItemsPerPageVar = showItemsPerPage();\n@let paginationVar = pagination();\n@let showPaginationVar = showPagination();\n@let paginatorTypeVar = paginatorType();\n@let maxSizeVar = maxSize();\n@let showEntriesVar = showEntries();\n@let showFooterVar = showFooter();\n@let totalPagesVar = totalPages();\n\n@let loadingVar = loading();\n\n<div [class]=\"containerClassVar\">\n\t<span role=\"status\" class=\"sr-only\">\n\t\t@if (loadingVar) {\n\t\t\t{{ 'sdk.table.loading' | translate }}\n\t\t}\n\t</span>\n\t@let overflowsXVar = overflowsX();\n\t<div\n\t\t#scrollContainer\n\t\tdata-st-table-scroll\n\t\t[class]=\"tableContainerClassVar\"\n\t\t[attr.tabindex]=\"overflowsXVar ? 0 : null\"\n\t\t[attr.role]=\"overflowsXVar ? 'region' : null\"\n\t\t[attr.aria-label]=\"overflowsXVar ? scrollRegionLabel() : null\"\n\t>\n\t\t<div class=\"w-full\">\n\t\t\t@if (customEmptyState() && (showNoData() || showNoResults())) {\n\t\t\t\t<ng-content select=\"st-empty-state\"></ng-content>\n\t\t\t} @else if (showNoData()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content-muted\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content-muted\">{{ 'sdk.table.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ 'sdk.table.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (showNoResults()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content-muted\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content-muted\">{{ 'sdk.table.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ 'sdk.table.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table #tableElement [class]=\"tableClassVar\" [attr.aria-busy]=\"loadingVar || null\">\n\t\t\t\t\t<ng-content select=\"caption, colgroup\"></ng-content>\n\t\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t\t@if (loadingVar) {\n\t\t\t\t\t\t<tbody data-st-skeleton aria-hidden=\"true\">\n\t\t\t\t\t\t\t@for (row of skeletonRows(); track row) {\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t@for (column of skeletonColumns(); track column) {\n\t\t\t\t\t\t\t\t\t\t<td><div [class]=\"skeletonClass()\"></div></td>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t\t\t\t<ng-content select=\"tfoot\"></ng-content>\n\t\t\t\t\t}\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\t@if (total > 0) {\n\t\t@if (showFooterVar) {\n\t\t\t<div [class]=\"footerWrapperClassVar\">\n\t\t\t\t<div [class]=\"footerDividerClassVar\"></div>\n\t\t\t\t<div [class]=\"footerContentClassVar\">\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\t\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\t\t\t\t\t\t\t\t\t{{ 'sdk.table.entriesRange' | translate: { range: paginationRange(), total: total } }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t\ttype=\"dots\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t\t<label class=\"sr-only\" [for]=\"pageSizeSelectId\">{{ 'sdk.table.entriesByPage' | translate }}</label>\n\t\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t\t\t\t[inputId]=\"pageSizeSelectId\"\n\t\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t\t\t\t[size]=\"footerSelectSizeVar\"\n\t\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t\t\tfitOptions\n\t\t\t\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t}\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "size", "currentPage"], outputs: ["pageChanged", "currentPageChange"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "showOptional", "optionalText", "required", "ghost", "name", "inputId", "placeholder", "label", "value", "options", "displayKey", "valueKey", "disabledKey", "descriptionKey", "groupKey", "checkedKey", "allowClear", "panelWidth", "fitOptions", "parentForm", "formControlName", "disabled", "stopPropagation"], outputs: ["valueChange", "disabledChange", "blurred", "valueUpdated", "clicked", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
934
968
|
}
|
|
935
969
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TableComponent, decorators: [{
|
|
936
970
|
type: Component,
|
|
937
|
-
args: [{ selector: 'st-table', imports: [CommonModule, PaginatorComponent, TextDirective, SelectComponent, IconComponent, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let total = totalItems();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let footerSelectSizeVar = footerSelectSize();\n@let footerPaginatorSizeVar = footerPaginatorSize();\n@let footerWrapperClassVar = footerWrapperClass();\n@let footerDividerClassVar = footerDividerClass();\n@let footerContentClassVar = footerContentClass();\n@let showItemsPerPageVar = showItemsPerPage();\n@let paginationVar = pagination();\n@let showPaginationVar = showPagination();\n@let paginatorTypeVar = paginatorType();\n@let maxSizeVar = maxSize();\n@let showEntriesVar = showEntries();\n@let showFooterVar = showFooter();\n@let totalPagesVar = totalPages();\n\n@let loadingVar = loading();\n\n<div [class]=\"containerClassVar\">\n\t<span role=\"status\" class=\"sr-only\">\n\t\t@if (loadingVar) {\n\t\t\t{{ 'sdk.table.loading' | translate }}\n\t\t}\n\t</span>\n\t<div
|
|
938
|
-
}] });
|
|
971
|
+
args: [{ selector: 'st-table', imports: [CommonModule, PaginatorComponent, TextDirective, SelectComponent, IconComponent, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let total = totalItems();\n@let containerClassVar = containerClass();\n@let tableContainerClassVar = tableContainerClass();\n@let tableClassVar = tableClass();\n@let paginatorTextSizeVar = paginatorTextSize();\n@let footerSelectSizeVar = footerSelectSize();\n@let footerPaginatorSizeVar = footerPaginatorSize();\n@let footerWrapperClassVar = footerWrapperClass();\n@let footerDividerClassVar = footerDividerClass();\n@let footerContentClassVar = footerContentClass();\n@let showItemsPerPageVar = showItemsPerPage();\n@let paginationVar = pagination();\n@let showPaginationVar = showPagination();\n@let paginatorTypeVar = paginatorType();\n@let maxSizeVar = maxSize();\n@let showEntriesVar = showEntries();\n@let showFooterVar = showFooter();\n@let totalPagesVar = totalPages();\n\n@let loadingVar = loading();\n\n<div [class]=\"containerClassVar\">\n\t<span role=\"status\" class=\"sr-only\">\n\t\t@if (loadingVar) {\n\t\t\t{{ 'sdk.table.loading' | translate }}\n\t\t}\n\t</span>\n\t@let overflowsXVar = overflowsX();\n\t<div\n\t\t#scrollContainer\n\t\tdata-st-table-scroll\n\t\t[class]=\"tableContainerClassVar\"\n\t\t[attr.tabindex]=\"overflowsXVar ? 0 : null\"\n\t\t[attr.role]=\"overflowsXVar ? 'region' : null\"\n\t\t[attr.aria-label]=\"overflowsXVar ? scrollRegionLabel() : null\"\n\t>\n\t\t<div class=\"w-full\">\n\t\t\t@if (customEmptyState() && (showNoData() || showNoResults())) {\n\t\t\t\t<ng-content select=\"st-empty-state\"></ng-content>\n\t\t\t} @else if (showNoData()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content-muted\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content-muted\">{{ 'sdk.table.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ 'sdk.table.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (showNoResults()) {\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content-muted\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content-muted\">{{ 'sdk.table.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ 'sdk.table.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table #tableElement [class]=\"tableClassVar\" [attr.aria-busy]=\"loadingVar || null\">\n\t\t\t\t\t<ng-content select=\"caption, colgroup\"></ng-content>\n\t\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t\t@if (loadingVar) {\n\t\t\t\t\t\t<tbody data-st-skeleton aria-hidden=\"true\">\n\t\t\t\t\t\t\t@for (row of skeletonRows(); track row) {\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t@for (column of skeletonColumns(); track column) {\n\t\t\t\t\t\t\t\t\t\t<td><div [class]=\"skeletonClass()\"></div></td>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t\t\t\t<ng-content select=\"tfoot\"></ng-content>\n\t\t\t\t\t}\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\t@if (total > 0) {\n\t\t@if (showFooterVar) {\n\t\t\t<div [class]=\"footerWrapperClassVar\">\n\t\t\t\t<div [class]=\"footerDividerClassVar\"></div>\n\t\t\t\t<div [class]=\"footerContentClassVar\">\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showEntriesVar) {\n\t\t\t\t\t\t\t@if (!showItemsPerPageVar && !showPaginationVar) {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\t\t\t\t\t\t\t\t\t{{ 'sdk.table.totalEntries' | translate: { total: total } }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<span [stText]=\"paginatorTextSizeVar\">\n\t\t\t\t\t\t\t\t\t{{ 'sdk.table.entriesRange' | translate: { range: paginationRange(), total: total } }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t\t\t@if (showPaginationVar) {\n\t\t\t\t\t\t\t@if (paginatorTypeVar === 'default') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t[maxSize]=\"maxSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t} @else if (paginatorTypeVar === 'dots') {\n\t\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t\t[paginatorId]=\"paginationVar.id\"\n\t\t\t\t\t\t\t\t\t[pages]=\"totalPagesVar\"\n\t\t\t\t\t\t\t\t\t[currentPage]=\"paginationVar.currentPage\"\n\t\t\t\t\t\t\t\t\t[size]=\"footerPaginatorSizeVar\"\n\t\t\t\t\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t\t\ttype=\"dots\"\n\t\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t\t\t@if (showItemsPerPageVar) {\n\t\t\t\t\t\t\t<label class=\"sr-only\" [for]=\"pageSizeSelectId\">{{ 'sdk.table.entriesByPage' | translate }}</label>\n\t\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t\t\t\t[inputId]=\"pageSizeSelectId\"\n\t\t\t\t\t\t\t\t[value]=\"paginationVar.itemsPerPage\"\n\t\t\t\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t\t\t\t[size]=\"footerSelectSizeVar\"\n\t\t\t\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t\t\tfitOptions\n\t\t\t\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t}\n</div>\n" }]
|
|
972
|
+
}], ctorParameters: () => [] });
|
|
939
973
|
|
|
940
974
|
/**
|
|
941
975
|
* Component to render a table action, typically a button with optional tooltip.
|