@sixbell-telco/sdk 0.19.1 → 0.20.1
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 +12 -0
- package/_index.css +0 -16
- package/components/button/src/button.component.d.ts +1 -0
- package/components/forms/input/src/input.component.d.ts +2 -2
- package/components/table/public-api.d.ts +2 -0
- package/components/table/table-action/table-action.component.d.ts +49 -0
- package/components/table/table-actions/table-actions.component.d.ts +25 -0
- package/directives/only-numbers/public-api.d.ts +1 -1
- package/directives/only-numbers/src/just-numbers.directive.d.ts +9 -0
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +18 -22
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +22 -4
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +12 -12
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +7 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +11 -11
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs +12 -12
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +12 -12
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +9 -9
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +108 -11
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +9 -9
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +21 -21
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +11 -11
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +3 -3
- package/package.json +23 -23
- package/sixbell-telco-sdk-0.20.1.tgz +0 -0
- package/directives/only-numbers/src/only-numbers.directive.d.ts +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-forms-input.mjs","sources":["../../../projects/sdk/components/forms/input/input-content/input-content.component.ts","../../../projects/sdk/components/forms/input/input-content/input-content.component.html","../../../projects/sdk/components/forms/input/src/input.component.ts","../../../projects/sdk/components/forms/input/src/input.component.html","../../../projects/sdk/components/forms/input/sixbell-telco-sdk-components-forms-input.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\ntype InputContentAligment = 'start' | 'end';\n\n@Component({\n\tselector: 'st-input-content',\n\timports: [CommonModule],\n\ttemplateUrl: './input-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputContentComponent {\n\talignment = input.required<InputContentAligment>();\n}\n","@let alignmentVar = alignment();\n\n<!-- <div [class]=\"aligmentVar === 'start' ? 'st-input-content-left' : 'st-input-content-right'\">\n\t<ng-content></ng-content>\n</div> -->\n<!-- input-content.component.html -->\n<div class=\"inline-flex items-center align-top\" [class.justify-start]=\"alignmentVar === 'start'\" [class.justify-end]=\"alignmentVar === 'end'\">\n\t<ng-content></ng-content>\n</div>\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Component, computed, effect, input, model, output, signal } from '@angular/core';\nimport { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { AutofocusDirective } from '@sixbell-telco/sdk/directives/auto-focus';\nimport { OnlyNumbersDirective } from '@sixbell-telco/sdk/directives/only-numbers';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { debounceTime, distinctUntilChanged, skip, startWith, Subject, switchMap } from 'rxjs';\n\n/**\n * @internal\n * Generates base input classes with style variants using class-variance-authority\n */\nconst inputComponent = cva(['font-body', 'w-full', 'input', 'placeholder:placeholder-base-placeholder', 'leading-normal', 'grow'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['input-primary'],\n\t\t\tsecondary: ['input-secondary'],\n\t\t\ttertiary: ['input-tertiary'],\n\t\t\taccent: ['input-accent'],\n\t\t\tinfo: ['input-info'],\n\t\t\tsuccess: ['input-success'],\n\t\t\twarning: ['input-warning'],\n\t\t\terror: ['input-error'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['input-xs'],\n\t\t\tsm: ['input-sm'],\n\t\t\tmd: ['input-md'],\n\t\t\tlg: ['input-lg'],\n\t\t\txl: ['input-xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tsize: 'md',\n\t},\n});\n\n/** Possible input style variants */\nexport type InputVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\n/** Possible input size variants */\nexport type InputSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for input styling */\nexport type InputProps = {\n\tvariant?: InputVariantProps;\n\tsize?: InputSizeProps;\n};\n\n/** Native HTML input types supported by the component */\ntype HTMLNativeInputType = 'text' | 'email' | 'number' | 'password' | 'file';\n\n/**\n * A customizable input component with validation, debouncing, and styling variants\n *\n * @remarks\n * Implements ControlValueAccessor for seamless integration with Angular forms.\n * Supports both template-driven and reactive forms, with automatic validation styling.\n *\n * @example\n * ```html\n * <!-- Basic usage -->\n * <st-input label=\"Username\" [(value)]=\"username\"></st-input>\n * ```\n *\n * @example\n * ```html\n * <!-- With validation and custom styling -->\n * <st-input\n * variant=\"secondary\"\n * size=\"lg\"\n * label=\"Email\"\n * type=\"email\"\n * [parentForm]=\"userForm\"\n * formControlName=\"email\"\n * ></st-input>\n * ```\n */\n@Component({\n\tselector: 'st-input',\n\timports: [FormsModule, AutofocusDirective, OnlyNumbersDirective],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: InputComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './input.component.html',\n})\nexport class InputComponent implements ControlValueAccessor {\n\t/**\n\t * Input style variant\n\t * @defaultValue 'secondary'\n\t */\n\tvariant = input<InputVariantProps>('secondary');\n\n\t/**\n\t * Input size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<InputSizeProps>('md');\n\n\t/**\n\t * Label text displayed above the input\n\t */\n\tlabel = input<string>('');\n\n\t/**\n\t * HTML input type\n\t * @defaultValue 'text'\n\t */\n\ttype = input<HTMLNativeInputType>('text');\n\n\t/**\n\t * HTML name attribute for the input\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Input placeholder text\n\t */\n\tplaceholder = input<string>('');\n\n\t/**\n\t * Whether the input is read-only\n\t * @defaultValue false\n\t */\n\treadonly = input<boolean>(false);\n\n\tfocus = input<boolean>(false);\n\n\tonlyNumbers = input<boolean>(false);\n\n\t/**\n\t * Whether to use ghost (transparent) styling\n\t * @defaultValue false\n\t */\n\tghost = input<boolean>(false);\n\n\t/**\n\t * Two-way bindable input value\n\t */\n\tvalue = model<string>('');\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// ControlValueAccessor implementation\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\n\t/**\n\t * Whether the input is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * Event emitted when Enter key is pressed\n\t */\n\tenterPressed = output<string>();\n\n\t/**\n\t * Event emitted when input loses focus\n\t */\n\tblurred = output<string>();\n\n\t/**\n\t * Event emitted with debounced value changes\n\t */\n\tvalueDebounced = output<string>();\n\n\t/**\n\t * Debounce time in milliseconds for value changes\n\t * @defaultValue 500\n\t */\n\tdebounceTime = input(500);\n\n\t// Internal implementation details\n\tprivate blurTrigger = signal(0);\n\tprivate debounceAction$ = new Subject<number>();\n\tprivate debounceTimeEffect = effect(() => {\n\t\tthis.debounceAction$.next(this.debounceTime());\n\t});\n\tprivate value$ = toObservable(this.value);\n\n\tconstructor() {\n\t\tthis.setupDebounce();\n\t}\n\n\t/**\n\t * @internal\n\t * Computed base input classes\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\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\tinputComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\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\tinputComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t// ControlValueAccessor implementation 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 value changes\n\t */\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles Enter key press\n\t */\n\thandleEnter() {\n\t\tthis.enterPressed.emit(this.value());\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 formControl = computed(() => this.parentForm()?.get(this.formControlName()) as FormControl | null);\n\t/** @internal */\n\tprivate formControl$ = toObservable(this.formControl);\n\t/** @internal */\n\tprivate statusChanges$ = this.formControl$.pipe(switchMap((control) => control?.statusChanges.pipe(startWith(control.status)) || []));\n\t/** @internal */\n\tprivate stateChanges$ = this.formControl$.pipe(switchMap((control) => control?.valueChanges.pipe(startWith(control.value)) || []));\n\t/** @internal */\n\tprivate statusSignal = toSignal(this.statusChanges$);\n\t/** @internal */\n\tprivate stateSignal = toSignal(this.stateChanges$);\n\n\t/**\n\t * @internal\n\t * Reactive validation class computation\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 debounced value changes\n\t */\n\tprivate setupDebounce() {\n\t\tthis.debounceAction$\n\t\t\t.pipe(\n\t\t\t\tswitchMap((time: number) => this.value$.pipe(skip(1), debounceTime(time), distinctUntilChanged())),\n\t\t\t\ttakeUntilDestroyed(),\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","<!-- eslint-disable @angular-eslint/template/no-autofocus -->\n@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend pt-0\">{{ labelVar }}</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"w-full grow\"\n\t\t\t[type]=\"type()\"\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[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[onlyNumbers]=\"onlyNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstOnlynumbers\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAWa,qBAAqB,CAAA;AACjC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAwB;uGADtC,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA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,EACrD,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAgB,cAAA;AAC3B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,wqCAAA,EAAA;;;AE3FF;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-forms-input.mjs","sources":["../../../projects/sdk/components/forms/input/input-content/input-content.component.ts","../../../projects/sdk/components/forms/input/input-content/input-content.component.html","../../../projects/sdk/components/forms/input/src/input.component.ts","../../../projects/sdk/components/forms/input/src/input.component.html","../../../projects/sdk/components/forms/input/sixbell-telco-sdk-components-forms-input.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\ntype InputContentAligment = 'start' | 'end';\n\n@Component({\n\tselector: 'st-input-content',\n\timports: [CommonModule],\n\ttemplateUrl: './input-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputContentComponent {\n\talignment = input.required<InputContentAligment>();\n}\n","@let alignmentVar = alignment();\n\n<!-- <div [class]=\"aligmentVar === 'start' ? 'st-input-content-left' : 'st-input-content-right'\">\n\t<ng-content></ng-content>\n</div> -->\n<!-- input-content.component.html -->\n<div class=\"inline-flex items-center align-top\" [class.justify-start]=\"alignmentVar === 'start'\" [class.justify-end]=\"alignmentVar === 'end'\">\n\t<ng-content></ng-content>\n</div>\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Component, computed, effect, input, model, output, signal } from '@angular/core';\nimport { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { AutofocusDirective } from '@sixbell-telco/sdk/directives/auto-focus';\nimport { JustNumbersDirective } from '@sixbell-telco/sdk/directives/only-numbers';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { debounceTime, distinctUntilChanged, skip, startWith, Subject, switchMap } from 'rxjs';\n\n/**\n * @internal\n * Generates base input classes with style variants using class-variance-authority\n */\nconst inputComponent = cva(['font-body', 'w-full', 'input', 'placeholder:placeholder-base-placeholder', 'leading-normal', 'grow'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['input-primary'],\n\t\t\tsecondary: ['input-secondary'],\n\t\t\ttertiary: ['input-tertiary'],\n\t\t\taccent: ['input-accent'],\n\t\t\tinfo: ['input-info'],\n\t\t\tsuccess: ['input-success'],\n\t\t\twarning: ['input-warning'],\n\t\t\terror: ['input-error'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['input-xs'],\n\t\t\tsm: ['input-sm'],\n\t\t\tmd: ['input-md'],\n\t\t\tlg: ['input-lg'],\n\t\t\txl: ['input-xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tsize: 'md',\n\t},\n});\n\n/** Possible input style variants */\nexport type InputVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\n/** Possible input size variants */\nexport type InputSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for input styling */\nexport type InputProps = {\n\tvariant?: InputVariantProps;\n\tsize?: InputSizeProps;\n};\n\n/** Native HTML input types supported by the component */\ntype HTMLNativeInputType = 'text' | 'email' | 'number' | 'password' | 'file';\n\n/**\n * A customizable input component with validation, debouncing, and styling variants\n *\n * @remarks\n * Implements ControlValueAccessor for seamless integration with Angular forms.\n * Supports both template-driven and reactive forms, with automatic validation styling.\n *\n * @example\n * ```html\n * <!-- Basic usage -->\n * <st-input label=\"Username\" [(value)]=\"username\"></st-input>\n * ```\n *\n * @example\n * ```html\n * <!-- With validation and custom styling -->\n * <st-input\n * variant=\"secondary\"\n * size=\"lg\"\n * label=\"Email\"\n * type=\"email\"\n * [parentForm]=\"userForm\"\n * formControlName=\"email\"\n * ></st-input>\n * ```\n */\n@Component({\n\tselector: 'st-input',\n\timports: [FormsModule, AutofocusDirective, JustNumbersDirective],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: InputComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './input.component.html',\n})\nexport class InputComponent implements ControlValueAccessor {\n\t/**\n\t * Input style variant\n\t * @defaultValue 'secondary'\n\t */\n\tvariant = input<InputVariantProps>('secondary');\n\n\t/**\n\t * Input size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<InputSizeProps>('md');\n\n\t/**\n\t * Label text displayed above the input\n\t */\n\tlabel = input<string>('');\n\n\t/**\n\t * HTML input type\n\t * @defaultValue 'text'\n\t */\n\ttype = input<HTMLNativeInputType>('text');\n\n\t/**\n\t * HTML name attribute for the input\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Input placeholder text\n\t */\n\tplaceholder = input<string>('');\n\n\t/**\n\t * Whether the input is read-only\n\t * @defaultValue false\n\t */\n\treadonly = input<boolean>(false);\n\n\tfocus = input<boolean>(false);\n\n\tjustNumbers = input<boolean>(false);\n\n\t/**\n\t * Whether to use ghost (transparent) styling\n\t * @defaultValue false\n\t */\n\tghost = input<boolean>(false);\n\n\t/**\n\t * Two-way bindable input value\n\t */\n\tvalue = model<string>('');\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// ControlValueAccessor implementation\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\n\t/**\n\t * Whether the input is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * Event emitted when Enter key is pressed\n\t */\n\tenterPressed = output<string>();\n\n\t/**\n\t * Event emitted when input loses focus\n\t */\n\tblurred = output<string>();\n\n\t/**\n\t * Event emitted with debounced value changes\n\t */\n\tvalueDebounced = output<string>();\n\n\t/**\n\t * Debounce time in milliseconds for value changes\n\t * @defaultValue 500\n\t */\n\tdebounceTime = input(500);\n\n\t// Internal implementation details\n\tprivate blurTrigger = signal(0);\n\tprivate debounceAction$ = new Subject<number>();\n\tprivate debounceTimeEffect = effect(() => {\n\t\tthis.debounceAction$.next(this.debounceTime());\n\t});\n\tprivate value$ = toObservable(this.value);\n\n\tconstructor() {\n\t\tthis.setupDebounce();\n\t}\n\n\t/**\n\t * @internal\n\t * Computed base input classes\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\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\tinputComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\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\tinputComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t// ControlValueAccessor implementation 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 value changes\n\t */\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles Enter key press\n\t */\n\thandleEnter() {\n\t\tthis.enterPressed.emit(this.value());\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 formControl = computed(() => this.parentForm()?.get(this.formControlName()) as FormControl | null);\n\t/** @internal */\n\tprivate formControl$ = toObservable(this.formControl);\n\t/** @internal */\n\tprivate statusChanges$ = this.formControl$.pipe(switchMap((control) => control?.statusChanges.pipe(startWith(control.status)) || []));\n\t/** @internal */\n\tprivate stateChanges$ = this.formControl$.pipe(switchMap((control) => control?.valueChanges.pipe(startWith(control.value)) || []));\n\t/** @internal */\n\tprivate statusSignal = toSignal(this.statusChanges$);\n\t/** @internal */\n\tprivate stateSignal = toSignal(this.stateChanges$);\n\n\t/**\n\t * @internal\n\t * Reactive validation class computation\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 debounced value changes\n\t */\n\tprivate setupDebounce() {\n\t\tthis.debounceAction$\n\t\t\t.pipe(\n\t\t\t\tswitchMap((time: number) => this.value$.pipe(skip(1), debounceTime(time), distinctUntilChanged())),\n\t\t\t\ttakeUntilDestroyed(),\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","<!-- eslint-disable @angular-eslint/template/no-autofocus -->\n@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend pt-0\">{{ labelVar }}</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"w-full grow\"\n\t\t\t[type]=\"type()\"\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[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[justNumbers]=\"justNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstJustNumbers\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAWa,qBAAqB,CAAA;AACjC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAwB;uGADtC,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAA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CAAA,EAAA,CAAA,EAAA,CAAA;;2FAUnD,cAAc,EAAA,UAAA,EAAA,CAAA;kBAZ1B,SAAS;+BACC,UAAU,EAAA,OAAA,EACX,CAAC,WAAW,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,EACrD,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAgB,cAAA;AAC3B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,wqCAAA,EAAA;;;AE3FF;;AAEG;;;;"}
|
|
@@ -147,8 +147,8 @@ class RadioComponent {
|
|
|
147
147
|
handleBlur() {
|
|
148
148
|
this.onControlTouch();
|
|
149
149
|
}
|
|
150
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
151
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.
|
|
150
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
151
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: RadioComponent, isStandalone: true, selector: "st-radio", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange", valueUpdated: "valueUpdated", disabled: "disabledChange" }, providers: [
|
|
152
152
|
{
|
|
153
153
|
provide: NG_VALUE_ACCESSOR,
|
|
154
154
|
useExisting: RadioComponent,
|
|
@@ -156,7 +156,7 @@ class RadioComponent {
|
|
|
156
156
|
},
|
|
157
157
|
], ngImport: i0, template: "<label class=\"fieldset-label text-base-content font-body\">\n\t<input\n\t\ttype=\"radio\"\n\t\t[class]=\"componentClass()\"\n\t\t[value]=\"value()\"\n\t\t[checked]=\"selected() === value()\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.name]=\"name()\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t{{ label() }}\n</label>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
158
158
|
}
|
|
159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: RadioComponent, decorators: [{
|
|
160
160
|
type: Component,
|
|
161
161
|
args: [{ selector: 'st-radio', imports: [FormsModule], providers: [
|
|
162
162
|
{
|
|
@@ -174,8 +174,8 @@ class RangeComponent {
|
|
|
174
174
|
this.onControlChange(this.value());
|
|
175
175
|
this.valueUpdated.emit(this.value());
|
|
176
176
|
}
|
|
177
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
178
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: RangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
178
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: RangeComponent, isStandalone: true, selector: "st-range", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, showRange: { classPropertyName: "showRange", publicName: "showRange", isSignal: true, isRequired: false, transformFunction: null }, steps: { classPropertyName: "steps", publicName: "steps", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", valueUpdated: "valueUpdated" }, providers: [
|
|
179
179
|
{
|
|
180
180
|
provide: NG_VALUE_ACCESSOR,
|
|
181
181
|
useExisting: RangeComponent,
|
|
@@ -183,7 +183,7 @@ class RangeComponent {
|
|
|
183
183
|
},
|
|
184
184
|
], ngImport: i0, template: "@if (label()) {\n\t<label class=\"fieldset-label text-base-content font-body\" [for]=\"this.name()\">\n\t\t{{ label() }}\n\t</label>\n}\n\n<div class=\"font-body w-full\">\n\t<input\n\t\t[class]=\"componentClass()\"\n\t\t[attr.name]=\"name()\"\n\t\ttype=\"range\"\n\t\t[min]=\"min()\"\n\t\t[max]=\"max()\"\n\t\t[step]=\"jumpSize()\"\n\t\t[value]=\"value()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t/>\n\t@if (steps() > 0 && !showRange()) {\n\t\t<div class=\"mt-2 flex justify-between px-2.5 text-xs\">\n\t\t\t@for (step of stepsQuantity(); track $index) {\n\t\t\t\t<span>|</span>\n\t\t\t}\n\t\t</div>\n\t}\n\n\t@if (showRange() && steps() <= 0) {\n\t\t<div class=\"mt-2 flex justify-between px-2.5 text-xs\">\n\t\t\t<span>{{ min() }}</span>\n\t\t\t<span>{{ max() }}</span>\n\t\t</div>\n\t}\n\n\t@if (showRange() && steps() > 0) {\n\t\t<div class=\"mt-2 flex justify-between px-2.5 text-xs\">\n\t\t\t<span>{{ min() }}</span>\n\t\t\t@for (step of stepsQuantity(); track $index) {\n\t\t\t\t<span>|</span>\n\t\t\t}\n\t\t\t<span>{{ max() }}</span>\n\t\t</div>\n\t}\n</div>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
185
185
|
}
|
|
186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: RangeComponent, decorators: [{
|
|
187
187
|
type: Component,
|
|
188
188
|
args: [{ selector: 'st-range', imports: [FormsModule], providers: [
|
|
189
189
|
{
|
|
@@ -266,8 +266,8 @@ class SelectComponent {
|
|
|
266
266
|
const trackValues = opts.map((o) => o[trackProp]);
|
|
267
267
|
return trackValues.length === new Set(trackValues).size;
|
|
268
268
|
});
|
|
269
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
270
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
269
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
270
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: SelectComponent, isStandalone: true, selector: "st-select", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, emptyOptionText: { classPropertyName: "emptyOptionText", publicName: "emptyOptionText", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", blurred: "blurred", disabled: "disabledChange", valueUpdated: "valueUpdated" }, providers: [
|
|
271
271
|
{
|
|
272
272
|
provide: NG_VALUE_ACCESSOR,
|
|
273
273
|
useExisting: SelectComponent,
|
|
@@ -275,7 +275,7 @@ class SelectComponent {
|
|
|
275
275
|
},
|
|
276
276
|
], ngImport: i0, template: "@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend pt-0\">{{ labelVar }}</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- select field -->\n\t\t<select\n\t\t\tclass=\"w-full min-w-fit grow\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleSelect()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t>\n\t\t\t@if (emptyOptionText()) {\n\t\t\t\t<option value=\"\">\n\t\t\t\t\t{{ emptyOptionText() }}\n\t\t\t\t</option>\n\t\t\t}\n\n\t\t\t@if (simpleOption()) {\n\t\t\t\t@for (option of options(); track option) {\n\t\t\t\t\t<option [ngValue]=\"option\">\n\t\t\t\t\t\t{{ option }}\n\t\t\t\t\t</option>\n\t\t\t\t}\n\t\t\t} @else {\n\t\t\t\t@if (isValidTrackAndKey()) {\n\t\t\t\t\t@for (option of options(); track option[trackBy()]) {\n\t\t\t\t\t\t<option [ngValue]=\"option\">\n\t\t\t\t\t\t\t{{ option[key()] }}\n\t\t\t\t\t\t</option>\n\t\t\t\t\t}\n\t\t\t\t} @else {\n\t\t\t\t\t@for (option of options(); track option) {\n\t\t\t\t\t\t<option [ngValue]=\"option\">\n\t\t\t\t\t\t\t{{ option }}\n\t\t\t\t\t\t</option>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t</select>\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n\n\t<!-- Additional content -->\n\t<ng-content></ng-content>\n</fieldset>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
277
277
|
}
|
|
278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: SelectComponent, decorators: [{
|
|
279
279
|
type: Component,
|
|
280
280
|
args: [{ selector: 'st-select', imports: [FormsModule], providers: [
|
|
281
281
|
{
|
|
@@ -137,8 +137,8 @@ class SwitchComponent {
|
|
|
137
137
|
this.blurred.emit(this.value());
|
|
138
138
|
this.onControlTouch();
|
|
139
139
|
}
|
|
140
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
141
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.
|
|
140
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: SwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
141
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: SwitchComponent, isStandalone: true, selector: "st-switch", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", blurred: "blurred", disabled: "disabledChange", valueUpdated: "valueUpdated" }, providers: [
|
|
142
142
|
{
|
|
143
143
|
provide: NG_VALUE_ACCESSOR,
|
|
144
144
|
useExisting: SwitchComponent,
|
|
@@ -146,7 +146,7 @@ class SwitchComponent {
|
|
|
146
146
|
},
|
|
147
147
|
], ngImport: i0, template: "<label class=\"fieldset-label text-base-content font-body\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\t[class]=\"componentClass()\"\n\t\t[attr.name]=\"name()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t{{ label() }}\n</label>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
148
148
|
}
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: SwitchComponent, decorators: [{
|
|
150
150
|
type: Component,
|
|
151
151
|
args: [{ selector: 'st-switch', imports: [FormsModule], providers: [
|
|
152
152
|
{
|
|
@@ -296,8 +296,8 @@ class TextareaComponent {
|
|
|
296
296
|
this.valueDebounced.emit(`${value}`);
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
300
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
299
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
300
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: TextareaComponent, isStandalone: true, selector: "st-textarea", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, maxCharacters: { classPropertyName: "maxCharacters", publicName: "maxCharacters", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange", blurred: "blurred", value: "valueChange", enterPressed: "enterPressed", valueDebounced: "valueDebounced" }, providers: [
|
|
301
301
|
{
|
|
302
302
|
provide: NG_VALUE_ACCESSOR,
|
|
303
303
|
useExisting: TextareaComponent,
|
|
@@ -305,7 +305,7 @@ class TextareaComponent {
|
|
|
305
305
|
},
|
|
306
306
|
], ngImport: i0, template: "@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend pt-0\">{{ labelVar }}</legend>\n\t}\n\n\t<textarea\n\t\t[class]=\"validationClass()\"\n\t\t[attr.rows]=\"rows()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t\t[readOnly]=\"readonly()\"\n\t></textarea>\n\n\t<div class=\"flex justify-between\">\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\n\t\t@if (maxCharacters()) {\n\t\t\t<div [class]=\"errorClassMaxCharacters()\">\n\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyFontWeight]=\"'normal'\" tyColor=\"inherit\">\n\t\t\t\t\t{{ 'sdk.textarea.maxCharacters' | translate: { current: value().length, max: maxCharacters() } }}\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t}\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n</fieldset>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
307
307
|
}
|
|
308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TextareaComponent, decorators: [{
|
|
309
309
|
type: Component,
|
|
310
310
|
args: [{ selector: 'st-textarea', imports: [FormsModule, TypographyDirective, TranslatePipe], providers: [
|
|
311
311
|
{
|
|
@@ -196,8 +196,8 @@ class ToggleComponent {
|
|
|
196
196
|
class: this.classes(),
|
|
197
197
|
}));
|
|
198
198
|
});
|
|
199
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
200
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.
|
|
199
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
200
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: ToggleComponent, isStandalone: true, selector: "st-toggle", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", valueUpdated: "valueUpdated" }, providers: [
|
|
201
201
|
{
|
|
202
202
|
provide: NG_VALUE_ACCESSOR,
|
|
203
203
|
useExisting: ToggleComponent,
|
|
@@ -205,7 +205,7 @@ class ToggleComponent {
|
|
|
205
205
|
},
|
|
206
206
|
], ngImport: i0, template: "@let disabledVar = disabled();\n<label class=\"flex cursor-pointer items-center justify-start gap-4\">\n\t<input\n\t\tclass=\"hidden\"\n\t\ttype=\"checkbox\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabledVar\"\n\t\t[attr.name]=\"name()\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t<button [class]=\"componentClass()\" (click)=\"handleToggle()\" [disabled]=\"disabledVar\">\n\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\">\n\t\t\t{{ label() }}\n\t\t</span>\n\t</button>\n</label>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
207
207
|
}
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ToggleComponent, decorators: [{
|
|
209
209
|
type: Component,
|
|
210
210
|
args: [{ selector: 'st-toggle', imports: [FormsModule, TypographyDirective], providers: [
|
|
211
211
|
{
|
|
@@ -41,10 +41,10 @@ class IconComponent {
|
|
|
41
41
|
size = input();
|
|
42
42
|
icon = input.required();
|
|
43
43
|
componentClass = computed(() => cn(iconComponent({ color: this.color(), size: this.size() })));
|
|
44
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
45
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.
|
|
44
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
45
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: IconComponent, isStandalone: true, selector: "st-icon", inputs: { color: { classPropertyName: "color", publicName: "color", 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: true, transformFunction: null } }, ngImport: i0, template: "<ng-icon [svg]=\"icon()\" [class]=\"componentClass()\" />\n", styles: [""], dependencies: [{ kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }] });
|
|
46
46
|
}
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: IconComponent, decorators: [{
|
|
48
48
|
type: Component,
|
|
49
49
|
args: [{ selector: 'st-icon', imports: [NgIconComponent], template: "<ng-icon [svg]=\"icon()\" [class]=\"componentClass()\" />\n" }]
|
|
50
50
|
}] });
|
|
@@ -54,10 +54,10 @@ class LinkComponent {
|
|
|
54
54
|
iconPosition: this.iconPosition(),
|
|
55
55
|
}));
|
|
56
56
|
});
|
|
57
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
58
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
57
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: LinkComponent, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
58
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: LinkComponent, isStandalone: true, selector: "st-link", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, routerLinkOptions: { classPropertyName: "routerLinkOptions", publicName: "routerLinkOptions", isSignal: true, isRequired: false, transformFunction: null }, routerLinkActive: { classPropertyName: "routerLinkActive", publicName: "routerLinkActive", isSignal: true, isRequired: false, transformFunction: null }, queryParams: { classPropertyName: "queryParams", publicName: "queryParams", isSignal: true, isRequired: false, transformFunction: null }, queryParamsHandling: { classPropertyName: "queryParamsHandling", publicName: "queryParamsHandling", isSignal: true, isRequired: false, transformFunction: null }, fragment: { classPropertyName: "fragment", publicName: "fragment", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let iconVar = this.icon();\n@let routerLinkVar = this.routerLink();\n@let rotuerLinkActiveVar = this.routerLinkActive();\n@let queryParamsVar = this.queryParams();\n@let queryParamsHandlingVar = this.queryParamsHandling();\n@let routerLinkOptionsVar = routerLinkOptions();\n@let fragmentVar = this.fragment();\n<a\n\t[class]=\"componentClass()\"\n\t[routerLink]=\"routerLinkVar\"\n\t[routerLinkActive]=\"rotuerLinkActiveVar\"\n\t[routerLinkActiveOptions]=\"routerLinkOptionsVar\"\n\t[queryParams]=\"queryParamsVar\"\n\t[queryParamsHandling]=\"queryParamsHandlingVar\"\n\t[fragment]=\"fragmentVar\"\n>\n\t@if (iconVar) {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\t<ng-content></ng-content>\n</a>\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
59
59
|
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: LinkComponent, decorators: [{
|
|
61
61
|
type: Component,
|
|
62
62
|
args: [{ selector: 'st-link', imports: [IconComponent, RouterLinkActive, RouterLink, FormsModule, CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let iconVar = this.icon();\n@let routerLinkVar = this.routerLink();\n@let rotuerLinkActiveVar = this.routerLinkActive();\n@let queryParamsVar = this.queryParams();\n@let queryParamsHandlingVar = this.queryParamsHandling();\n@let routerLinkOptionsVar = routerLinkOptions();\n@let fragmentVar = this.fragment();\n<a\n\t[class]=\"componentClass()\"\n\t[routerLink]=\"routerLinkVar\"\n\t[routerLinkActive]=\"rotuerLinkActiveVar\"\n\t[routerLinkActiveOptions]=\"routerLinkOptionsVar\"\n\t[queryParams]=\"queryParamsVar\"\n\t[queryParamsHandling]=\"queryParamsHandlingVar\"\n\t[fragment]=\"fragmentVar\"\n>\n\t@if (iconVar) {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\t<ng-content></ng-content>\n</a>\n" }]
|
|
63
63
|
}], ctorParameters: () => [{ type: i1.Router }] });
|
|
@@ -14,28 +14,28 @@ class ModalActionsComponent {
|
|
|
14
14
|
'justify-end': this.alignment() === 'right',
|
|
15
15
|
'justify-center': this.alignment() === 'center',
|
|
16
16
|
}));
|
|
17
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
18
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: ModalActionsComponent, isStandalone: true, selector: "st-modal-actions", inputs: { alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
19
19
|
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalActionsComponent, decorators: [{
|
|
21
21
|
type: Component,
|
|
22
22
|
args: [{ selector: 'st-modal-actions', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n" }]
|
|
23
23
|
}] });
|
|
24
24
|
|
|
25
25
|
class ModalContentComponent {
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
27
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: ModalContentComponent, isStandalone: true, selector: "st-modal-content", ngImport: i0, template: "<ng-content></ng-content>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalContentComponent, decorators: [{
|
|
30
30
|
type: Component,
|
|
31
31
|
args: [{ selector: 'st-modal-content', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n" }]
|
|
32
32
|
}] });
|
|
33
33
|
|
|
34
34
|
class ModalTitleComponent {
|
|
35
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
36
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: ModalTitleComponent, isStandalone: true, selector: "st-modal-title", ngImport: i0, template: "<div class=\"mb-6\">\n\t<h2 typography tyFontWeight=\"medium\" tyColor=\"base\" tyVariant=\"h2\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
37
37
|
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalTitleComponent, decorators: [{
|
|
39
39
|
type: Component,
|
|
40
40
|
args: [{ selector: 'st-modal-title', imports: [CommonModule, TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mb-6\">\n\t<h2 typography tyFontWeight=\"medium\" tyColor=\"base\" tyVariant=\"h2\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n" }]
|
|
41
41
|
}] });
|
|
@@ -186,10 +186,10 @@ class ModalComponent {
|
|
|
186
186
|
this.opened.set(false);
|
|
187
187
|
this.clickOutside.emit();
|
|
188
188
|
}
|
|
189
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
190
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.
|
|
189
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
190
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.0", type: ModalComponent, isStandalone: true, selector: "st-modal", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, modalId: { classPropertyName: "modalId", publicName: "modalId", isSignal: true, isRequired: true, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clickOutside: "clickOutside", closed: "closed", opened: "openedChange" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass()\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass()\">\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute top-0 right-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"handleClickOutside($event)\"></button>\n\t</form>\n</dialog>\n", styles: [""] });
|
|
191
191
|
}
|
|
192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalComponent, decorators: [{
|
|
193
193
|
type: Component,
|
|
194
194
|
args: [{ selector: 'st-modal', imports: [], template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass()\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass()\">\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute top-0 right-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"handleClickOutside($event)\"></button>\n\t</form>\n</dialog>\n" }]
|
|
195
195
|
}] });
|
|
@@ -49,10 +49,10 @@ class NotificationComponent {
|
|
|
49
49
|
size: this.size(),
|
|
50
50
|
}));
|
|
51
51
|
});
|
|
52
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
53
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
52
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: NotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: NotificationComponent, isStandalone: true, selector: "st-notification", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let iconVar = this.icon();\n@let componentClassVar = this.componentClass();\n\n@if (status() === 'seen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-success top-2 left-6 h-4 w-4 p-0\"></span>\n\t\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n\n@if (status() === 'unseen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-warning top-2 left-6 h-4 w-4 p-0\"></span>\n\t\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
|
|
54
54
|
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
56
56
|
type: Component,
|
|
57
57
|
args: [{ selector: 'st-notification', imports: [IconComponent], template: "@let iconVar = this.icon();\n@let componentClassVar = this.componentClass();\n\n@if (status() === 'seen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-success top-2 left-6 h-4 w-4 p-0\"></span>\n\t\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n\n@if (status() === 'unseen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-warning top-2 left-6 h-4 w-4 p-0\"></span>\n\t\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n" }]
|
|
58
58
|
}] });
|
|
@@ -148,10 +148,10 @@ class PaginationItemComponent {
|
|
|
148
148
|
'hover:scale-100 hover:bg-secondary/100 w-[16px] h-[16px] bg-secondary border-secondary text-secondary-content': this.active() && this.variant() === 'dots',
|
|
149
149
|
});
|
|
150
150
|
});
|
|
151
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
152
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
151
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: PaginationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
152
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: PaginationItemComponent, isStandalone: true, selector: "st-pagination-item", inputs: { variant: { classPropertyName: "variant", publicName: "variant", 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 } }, ngImport: i0, template: "@let variantVar = this.variant();\n@let componentClassVar = this.componentClass();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" size=\"sm\"></st-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span></span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }] });
|
|
153
153
|
}
|
|
154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: PaginationItemComponent, decorators: [{
|
|
155
155
|
type: Component,
|
|
156
156
|
args: [{ selector: 'st-pagination-item', imports: [IconComponent, TypographyDirective], template: "@let variantVar = this.variant();\n@let componentClassVar = this.componentClass();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" size=\"sm\"></st-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span></span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n" }]
|
|
157
157
|
}] });
|
|
@@ -282,10 +282,10 @@ class PaginatorComponent {
|
|
|
282
282
|
this.currentPage.set(this.pages());
|
|
283
283
|
this.pageChanged.emit(this.pages());
|
|
284
284
|
}
|
|
285
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
286
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
285
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: PaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
286
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", 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 }, 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\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" [maxSize]=\"maxSize()\" (pageChange)=\"handlePageChange($event)\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t\t\t\t(click)=\"firstPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t\t\t\t(click)=\"previousPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t\t\t\t(click)=\"nextPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t\t\t\t(click)=\"lastPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? handlePageChange(1) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? p.previous() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? p.next() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? handlePageChange(p.getLastPage()) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" (pageChange)=\"handlePageChange($event)\" [maxSize]=\"10000\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item variant=\"dots\" size=\"xs\" shape=\"round-lg\" padding=\"none\" [active]=\"currentPage() === page\"></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n", dependencies: [{ kind: "ngmodule", type: NgxPaginationModule }, { kind: "directive", type: i1.PaginationControlsDirective, selector: "pagination-template,[pagination-template]", inputs: ["id", "maxSize"], outputs: ["pageChange", "pageBoundsCorrection"], exportAs: ["paginationApi"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginationItemComponent, selector: "st-pagination-item", inputs: ["variant", "icon", "number", "active"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
287
287
|
}
|
|
288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
288
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: PaginatorComponent, decorators: [{
|
|
289
289
|
type: Component,
|
|
290
290
|
args: [{ selector: 'st-paginator', imports: [NgxPaginationModule, CommonModule, PaginationItemComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (type() === 'default') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" [maxSize]=\"maxSize()\" (pageChange)=\"handlePageChange($event)\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t\t\t\t(click)=\"firstPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t\t\t\t(click)=\"previousPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t\t\t\t(click)=\"nextPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t\t\t\t(click)=\"lastPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? handlePageChange(1) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? p.previous() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? p.next() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? handlePageChange(p.getLastPage()) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" (pageChange)=\"handlePageChange($event)\" [maxSize]=\"10000\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item variant=\"dots\" size=\"xs\" shape=\"round-lg\" padding=\"none\" [active]=\"currentPage() === page\"></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n" }]
|
|
291
291
|
}] });
|