@sixbell-telco/sdk 0.1.6 → 0.1.7
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 +2 -0
- package/README.md +33 -1
- package/assets/styles/toast.scss +1 -1
- package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
- package/components/accordion/src/accordion.component.d.ts +1 -1
- package/components/avatar/src/avatar.component.d.ts +1 -1
- package/components/button/src/button.component.d.ts +1 -1
- package/components/card/src/card.component.d.ts +1 -1
- package/components/countdown/src/countdown.component.d.ts +1 -1
- package/components/dropdown/src/dropdown.component.d.ts +1 -1
- package/components/dual-list/src/dual-list.component.d.ts +1 -1
- package/components/file-upload/file-dropzone/src/file-dropzone.component.d.ts +1 -1
- package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +1 -1
- package/components/forms/checkbox/src/checkbox.component.d.ts +1 -1
- package/components/forms/combobox/src/combobox.component.d.ts +1 -1
- package/components/forms/datepicker/src/datepicker.component.d.ts +1 -1
- package/components/forms/form-error/src/form-error.component.d.ts +1 -1
- package/components/forms/input/src/input.component.d.ts +1 -1
- package/components/forms/radio/src/radio.component.d.ts +1 -1
- package/components/forms/range/src/range.component.d.ts +1 -1
- package/components/forms/select/src/select.component.d.ts +1 -1
- package/components/forms/switch/src/switch.component.d.ts +1 -1
- package/components/forms/textarea/src/textarea.component.d.ts +1 -1
- package/components/forms/toggle/src/toggle.component.d.ts +1 -1
- package/components/icon/src/icon.component.d.ts +1 -1
- package/components/link/src/link.component.d.ts +2 -1
- package/components/modal/src/modal.component.d.ts +1 -1
- package/components/notification/src/notification.component.d.ts +1 -1
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +1 -1
- package/components/paginator/src/paginator.component.d.ts +1 -1
- package/components/product-card/src/product-card.component.d.ts +1 -1
- package/components/progress/src/progress.component.d.ts +1 -1
- package/components/tab/src/tab.component.d.ts +1 -1
- package/components/table/src/table.component.d.ts +1 -1
- package/components/toast/toast-message/toast-message.component.d.ts +1 -1
- package/components/toast/toasts-container/toasts-container.component.d.ts +1 -1
- package/components/tooltip/src/tooltip.component.d.ts +1 -1
- package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
- package/components/wizard/wizard-marker/wizard-marker.component.d.ts +1 -1
- package/components/wizard/wizard-step/wizard-step.component.d.ts +1 -1
- package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +1 -1
- package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +1 -1
- package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +3 -3
- package/esm2022/components/accordion/src/accordion.component.mjs +3 -3
- package/esm2022/components/avatar/src/avatar.component.mjs +3 -3
- package/esm2022/components/button/src/button.component.mjs +3 -3
- package/esm2022/components/card/src/card.component.mjs +3 -3
- package/esm2022/components/countdown/src/countdown.component.mjs +3 -3
- package/esm2022/components/dropdown/src/dropdown.component.mjs +3 -3
- package/esm2022/components/dual-list/src/dual-list.component.mjs +3 -3
- package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +3 -3
- package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +3 -3
- package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +3 -3
- package/esm2022/components/forms/combobox/src/combobox.component.mjs +5 -5
- package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +5 -5
- package/esm2022/components/forms/form-error/src/form-error.component.mjs +3 -3
- package/esm2022/components/forms/input/src/input.component.mjs +5 -5
- package/esm2022/components/forms/radio/src/radio.component.mjs +3 -3
- package/esm2022/components/forms/range/src/range.component.mjs +3 -3
- package/esm2022/components/forms/select/src/select.component.mjs +3 -3
- package/esm2022/components/forms/switch/src/switch.component.mjs +3 -3
- package/esm2022/components/forms/textarea/src/textarea.component.mjs +3 -3
- package/esm2022/components/forms/toggle/src/toggle.component.mjs +3 -3
- package/esm2022/components/icon/src/icon.component.mjs +3 -3
- package/esm2022/components/link/src/link.component.mjs +5 -4
- package/esm2022/components/modal/src/modal.component.mjs +3 -3
- package/esm2022/components/notification/src/notification.component.mjs +3 -3
- package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +3 -3
- package/esm2022/components/paginator/src/paginator.component.mjs +3 -3
- package/esm2022/components/product-card/src/product-card.component.mjs +3 -3
- package/esm2022/components/progress/src/progress.component.mjs +3 -3
- package/esm2022/components/tab/src/tab.component.mjs +3 -3
- package/esm2022/components/table/src/table.component.mjs +3 -3
- package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +3 -3
- package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +3 -3
- package/esm2022/components/toast/toast-message/toast-message.component.mjs +3 -3
- package/esm2022/components/toast/toasts-container/toasts-container.component.mjs +3 -3
- package/esm2022/components/tooltip/src/tooltip.component.mjs +3 -3
- package/esm2022/components/wizard/wizard-content/wizard-content.component.mjs +3 -3
- package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +3 -3
- package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +3 -3
- package/esm2022/components/wizard/wizard-sub-step/wizard-sub-step.component.mjs +3 -3
- package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +4 -3
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +10 -10
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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 { NgClass } from '@angular/common';\nimport { Component, computed, effect, input, model, output } from '@angular/core';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { debounceTime, distinctUntilChanged, skip, Subject, switchMap } from 'rxjs';\n\nconst textareaComponent = cva(['font-body', 'text-base', 'transition', 'duration-300', 'ease-ease-out-back', 'w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['textarea', 'textarea-primary'],\n\t\t\tsecondary: ['textarea', 'textarea-secondary'],\n\t\t\tsuccess: ['textarea', 'textarea-success'],\n\t\t\terror: ['textarea', 'textarea-error'],\n\t\t\twarning: ['textarea', 'textarea-warning'],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\tsm: ['min-h-10', 'h-10'],\n\t\t\tmd: ['min-h-11', 'h-11'],\n\t\t\tlg: ['min-h-12', 'h-12'],\n\t\t\txl: ['min-h-14', 'h-14'],\n\t\t\t'2xl': ['min-h-16', 'h-16'],\n\t\t\t'3xl': ['min-h-20', 'h-20'],\n\t\t\t'4xl': ['min-h-24', 'h-24'],\n\t\t},\n\t\tpadding: {\n\t\t\tsm: ['px-4'],\n\t\t\tmd: ['px-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tshape: 'round-sm',\n\t\tsize: 'md',\n\t\tpadding: 'md',\n\t},\n});\n\nexport type textareaVariantProps = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | null | undefined;\nexport type textareaShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type textareaSizeProps = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | null | undefined;\nexport type textareaPaddingProps = 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type textareaProps = {\n\tvariant?: textareaVariantProps;\n\tshape?: textareaShapeProps;\n\tsize?: textareaSizeProps;\n\tpadding?: textareaPaddingProps;\n};\n\n@Component({\n\tselector: 'app-textarea',\n\tstandalone: true,\n\timports: [FormsModule, TypographyDirective, NgClass],\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// Base input properties\n\tvariant = input<textareaVariantProps>('secondary');\n\tshape = input<textareaShapeProps>('round-sm');\n\tsize = input<textareaSizeProps>('md');\n\tpadding = input<textareaPaddingProps>('md');\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\tname = input<string | null>(null);\n\tplaceholder = input<string>('');\n\trows = input<string | number>(3);\n\n\t// Textarea value model\n\tvalue = model<string>('');\n\n\t// Textarea counter properties\n\tmaxCharacters = input<number>(0);\n\tinvalidMaxCharacters = computed<boolean>(() => this.value().length > this.maxCharacters());\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\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 attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\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// Change handler\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Enter handler\n\tonEnter = output<string>();\n\thandleEnter() {\n\t\tthis.onEnter.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Blur handler\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n\n\t// Debounce\n\tonDebounceChange = output<string>();\n\tdebounceTime = input(500);\n\tdebounceAction$ = new Subject<number>();\n\n\tdebounceTimeEffect = effect(() => {\n\t\tthis.debounceAction$.next(this.debounceTime());\n\t});\n\n\tvalue$ = toObservable(this.value);\n\n\tconstructor() {\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), // skip 1 to avoid initial value being automatically emitted\n\t\t\t\t\t\tdebounceTime(time),\n\t\t\t\t\t\tdistinctUntilChanged(),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\ttakeUntilDestroyed(),\n\t\t\t)\n\t\t\t.subscribe((value) => {\n\t\t\t\tthis.onDebounceChange.emit(`${value}`);\n\t\t\t});\n\t}\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\ttextareaComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget errorClass() {\n\t\treturn cn(\n\t\t\ttextareaComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget successClass() {\n\t\treturn cn(\n\t\t\ttextareaComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget validationClass() {\n\t\tif (!this.formField) return this.componentClass;\n\n\t\tif (this.formField.dirty || this.formField.touched) {\n\t\t\tif (this.formField.invalid) {\n\t\t\t\treturn this.errorClass;\n\t\t\t} else if (this.formField.valid) {\n\t\t\t\treturn this.successClass;\n\t\t\t}\n\t\t}\n\n\t\treturn this.componentClass;\n\t}\n}\n","<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\">\n\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\">{{ label() }}</span></label\n\t\t>\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></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<p\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body-xs'\"\n\t\t\t\t[typographyFontWeight]=\"'normal'\"\n\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t'text-neutral transition-colors duration-300 ease-ease-out-back': invalidMaxCharacters() === false,\n\t\t\t\t\t'text-error transition-colors duration-300 ease-ease-out-back': invalidMaxCharacters() === true,\n\t\t\t\t}\"\n\t\t\t>\n\t\t\t\t{{ value().length }} de {{ maxCharacters() }} caracteres\n\t\t\t</p>\n\t\t}\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AAUA,MAAM,iBAAiB,GAAG,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,oBAAoB,EAAE,QAAQ,CAAC,EAAE;AACvH,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE,CAAC,UAAU,EAAE,kBAAkB,CAAC;AACzC,YAAA,SAAS,EAAE,CAAC,UAAU,EAAE,oBAAoB,CAAC;AAC7C,YAAA,OAAO,EAAE,CAAC,UAAU,EAAE,kBAAkB,CAAC;AACzC,YAAA,KAAK,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;AACrC,YAAA,OAAO,EAAE,CAAC,UAAU,EAAE,kBAAkB,CAAC;AACzC,SAAA;AACD,QAAA,KAAK,EAAE;YACN,YAAY,EAAE,CAAC,cAAc,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;AAC9B,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;AACxB,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;AACxB,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;AACxB,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;AACxB,YAAA,KAAK,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;AAC3B,YAAA,KAAK,EAAE,CAAC,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.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 { NgClass } from '@angular/common';\nimport { Component, computed, effect, input, model, output } from '@angular/core';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { debounceTime, distinctUntilChanged, skip, Subject, switchMap } from 'rxjs';\n\nconst textareaComponent = cva(['font-body', 'text-base', 'transition', 'duration-300', 'ease-ease-out-back', 'w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['textarea', 'textarea-primary'],\n\t\t\tsecondary: ['textarea', 'textarea-secondary'],\n\t\t\tsuccess: ['textarea', 'textarea-success'],\n\t\t\terror: ['textarea', 'textarea-error'],\n\t\t\twarning: ['textarea', 'textarea-warning'],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\tsm: ['min-h-10', 'h-10'],\n\t\t\tmd: ['min-h-11', 'h-11'],\n\t\t\tlg: ['min-h-12', 'h-12'],\n\t\t\txl: ['min-h-14', 'h-14'],\n\t\t\t'2xl': ['min-h-16', 'h-16'],\n\t\t\t'3xl': ['min-h-20', 'h-20'],\n\t\t\t'4xl': ['min-h-24', 'h-24'],\n\t\t},\n\t\tpadding: {\n\t\t\tsm: ['px-4'],\n\t\t\tmd: ['px-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tshape: 'round-sm',\n\t\tsize: 'md',\n\t\tpadding: 'md',\n\t},\n});\n\nexport type textareaVariantProps = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | null | undefined;\nexport type textareaShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type textareaSizeProps = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | null | undefined;\nexport type textareaPaddingProps = 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type textareaProps = {\n\tvariant?: textareaVariantProps;\n\tshape?: textareaShapeProps;\n\tsize?: textareaSizeProps;\n\tpadding?: textareaPaddingProps;\n};\n\n@Component({\n\tselector: 'st-textarea',\n\tstandalone: true,\n\timports: [FormsModule, TypographyDirective, NgClass],\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// Base input properties\n\tvariant = input<textareaVariantProps>('secondary');\n\tshape = input<textareaShapeProps>('round-sm');\n\tsize = input<textareaSizeProps>('md');\n\tpadding = input<textareaPaddingProps>('md');\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\tname = input<string | null>(null);\n\tplaceholder = input<string>('');\n\trows = input<string | number>(3);\n\n\t// Textarea value model\n\tvalue = model<string>('');\n\n\t// Textarea counter properties\n\tmaxCharacters = input<number>(0);\n\tinvalidMaxCharacters = computed<boolean>(() => this.value().length > this.maxCharacters());\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\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 attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\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// Change handler\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Enter handler\n\tonEnter = output<string>();\n\thandleEnter() {\n\t\tthis.onEnter.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Blur handler\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n\n\t// Debounce\n\tonDebounceChange = output<string>();\n\tdebounceTime = input(500);\n\tdebounceAction$ = new Subject<number>();\n\n\tdebounceTimeEffect = effect(() => {\n\t\tthis.debounceAction$.next(this.debounceTime());\n\t});\n\n\tvalue$ = toObservable(this.value);\n\n\tconstructor() {\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), // skip 1 to avoid initial value being automatically emitted\n\t\t\t\t\t\tdebounceTime(time),\n\t\t\t\t\t\tdistinctUntilChanged(),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\ttakeUntilDestroyed(),\n\t\t\t)\n\t\t\t.subscribe((value) => {\n\t\t\t\tthis.onDebounceChange.emit(`${value}`);\n\t\t\t});\n\t}\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\ttextareaComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget errorClass() {\n\t\treturn cn(\n\t\t\ttextareaComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget successClass() {\n\t\treturn cn(\n\t\t\ttextareaComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget validationClass() {\n\t\tif (!this.formField) return this.componentClass;\n\n\t\tif (this.formField.dirty || this.formField.touched) {\n\t\t\tif (this.formField.invalid) {\n\t\t\t\treturn this.errorClass;\n\t\t\t} else if (this.formField.valid) {\n\t\t\t\treturn this.successClass;\n\t\t\t}\n\t\t}\n\n\t\treturn this.componentClass;\n\t}\n}\n","<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\">\n\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\">{{ label() }}</span></label\n\t\t>\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></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<p\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body-xs'\"\n\t\t\t\t[typographyFontWeight]=\"'normal'\"\n\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t'text-neutral transition-colors duration-300 ease-ease-out-back': invalidMaxCharacters() === false,\n\t\t\t\t\t'text-error transition-colors duration-300 ease-ease-out-back': invalidMaxCharacters() === true,\n\t\t\t\t}\"\n\t\t\t>\n\t\t\t\t{{ value().length }} de {{ maxCharacters() }} caracteres\n\t\t\t</p>\n\t\t}\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AAUA,MAAM,iBAAiB,GAAG,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,oBAAoB,EAAE,QAAQ,CAAC,EAAE;AACvH,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE,CAAC,UAAU,EAAE,kBAAkB,CAAC;AACzC,YAAA,SAAS,EAAE,CAAC,UAAU,EAAE,oBAAoB,CAAC;AAC7C,YAAA,OAAO,EAAE,CAAC,UAAU,EAAE,kBAAkB,CAAC;AACzC,YAAA,KAAK,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;AACrC,YAAA,OAAO,EAAE,CAAC,UAAU,EAAE,kBAAkB,CAAC;AACzC,SAAA;AACD,QAAA,KAAK,EAAE;YACN,YAAY,EAAE,CAAC,cAAc,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;AAC9B,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;AACxB,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;AACxB,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;AACxB,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;AACxB,YAAA,KAAK,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;AAC3B,YAAA,KAAK,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;AAC3B,YAAA,KAAK,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;AAC3B,SAAA;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A,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,WAAW,EAAE,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,EAAA,mBAAmB,8IAAE,OAAO,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAUvC,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAb7B,SAAS;+BACC,aAAa,EAAA,UAAA,EACX,IAAI,EAAA,OAAA,EACP,CAAC,WAAW,EAAE,mBAAmB,EAAE,OAAO,CAAC,EACzC,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAmB,iBAAA;AAC9B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,imCAAA,EAAA,CAAA;;;AEvEF;;AAEG;;;;"}
|
|
@@ -384,7 +384,7 @@ class ToggleComponent {
|
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
387
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: ToggleComponent, isStandalone: true, selector: "
|
|
387
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", 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", onChange: "onChange" }, providers: [
|
|
388
388
|
{
|
|
389
389
|
provide: NG_VALUE_ACCESSOR,
|
|
390
390
|
useExisting: ToggleComponent,
|
|
@@ -394,7 +394,7 @@ class ToggleComponent {
|
|
|
394
394
|
}
|
|
395
395
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ToggleComponent, decorators: [{
|
|
396
396
|
type: Component,
|
|
397
|
-
args: [{ selector: '
|
|
397
|
+
args: [{ selector: 'st-toggle', standalone: true, imports: [FormsModule, TypographyDirective], providers: [
|
|
398
398
|
{
|
|
399
399
|
provide: NG_VALUE_ACCESSOR,
|
|
400
400
|
useExisting: ToggleComponent,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-forms-toggle.mjs","sources":["../../../projects/sdk/components/forms/toggle/src/toggle.component.ts","../../../projects/sdk/components/forms/toggle/src/toggle.component.html","../../../projects/sdk/components/forms/toggle/sixbell-telco-sdk-components-forms-toggle.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ChangeDetectionStrategy, Component, input, model, output } from '@angular/core';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport const toggleComponent = cva(\n\t[\n\t\t'grid',\n\t\t'place-content-center',\n\t\t'rounded-full',\n\t\t'border-[1px]',\n\t\t'border-solid',\n\t\t'transition-colors',\n\t\t'focus-visible:outline',\n\t\t'focus-visible:outline-2',\n\t\t'focus-visible:outline-offset-2',\n\t\t'hover:bg-opacity-40',\n\t\t'active:transition-all',\n\t\t'active:hover:scale-95',\n\t\t'active:hover:animate-pop',\n\t\t'active:hover:ease-out',\n\t\t'active:hover:animate-duration-0',\n\t\t'active:hover:animate-fill-mode-backwards',\n\t\t'active:focus:scale-95',\n\t\t'active:focus:animate-pop',\n\t\t'active:focus:ease-out',\n\t\t'active:focus:animate-duration-0',\n\t\t'active:focus:animate-fill-mode-backwards',\n\t\t'hover:active:bg-opacity-100',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tprimary: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-primary',\n\t\t\t\t\t'hover:bg-primary',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-primary',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-primary',\n\t\t\t\t\t'hover:active:focus-visible:outline-primary',\n\t\t\t\t\t'hover:active:text-primary-content',\n\t\t\t\t],\n\t\t\t\t'primary-toggled': ['bg-primary', 'border-primary', 'text-neutral-content'],\n\t\t\t\t'primary-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t\tsecondary: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-secondary',\n\t\t\t\t\t'hover:bg-secondary',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-secondary',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-secondary',\n\t\t\t\t\t'hover:active:focus-visible:outline-secondary',\n\t\t\t\t\t'hover:active:text-secondary-content',\n\t\t\t\t],\n\t\t\t\t'secondary-toggled': ['bg-secondary', 'border-secondary', 'text-neutral'],\n\t\t\t\t'secondary-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t\tsuccess: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-success',\n\t\t\t\t\t'hover:bg-success',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-success',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-success',\n\t\t\t\t\t'hover:active:focus-visible:outline-success',\n\t\t\t\t\t'hover:active:text-success-content',\n\t\t\t\t],\n\t\t\t\t'success-toggled': ['bg-success', 'border-success', 'text-neutral-content'],\n\t\t\t\t'success-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t\terror: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-error',\n\t\t\t\t\t'hover:bg-error',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-error',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-error',\n\t\t\t\t\t'hover:active:focus-visible:outline-error',\n\t\t\t\t\t'hover:active:text-error-content',\n\t\t\t\t],\n\t\t\t\t'error-toggled': ['bg-error', 'border-error', 'text-neutral-content'],\n\t\t\t\t'error-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t\twarning: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-warning',\n\t\t\t\t\t'hover:bg-warning',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-warning',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-warning',\n\t\t\t\t\t'hover:active:focus-visible:outline-warning',\n\t\t\t\t\t'hover:active:text-warning-content',\n\t\t\t\t],\n\t\t\t\t'warning-toggled': ['bg-warning', 'border-warning', 'text-neutral-content'],\n\t\t\t\t'warning-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t\tinfo: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-info',\n\t\t\t\t\t'hover:bg-info',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-info',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-info',\n\t\t\t\t\t'hover:active:focus-visible:outline-info',\n\t\t\t\t\t'hover:active:text-primary-content',\n\t\t\t\t],\n\t\t\t\t'info-toggled': ['bg-info', 'border-info', 'text-neutral-content'],\n\t\t\t\t'info-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t\taccent: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-accent',\n\t\t\t\t\t'hover:bg-accent',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-accent',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-accent',\n\t\t\t\t\t'hover:active:focus-visible:outline-accent',\n\t\t\t\t\t'hover:active:text-accent-content',\n\t\t\t\t],\n\t\t\t\t'accent-toggled': ['bg-accent', 'border-accent', 'text-neutral-content'],\n\t\t\t\t'accent-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tsm: ['h-10', 'w-10'],\n\t\t\t\tmd: ['h-11', 'w-11'],\n\t\t\t\tlg: ['h-12', 'w-12'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tvariant: 'primary',\n\t\t\tsize: 'md',\n\t\t},\n\t},\n);\n\nexport type ToggleVariantProps =\n\t| 'primary'\n\t| 'primary-toggled'\n\t| 'primary-disabled'\n\t| 'secondary'\n\t| 'secondary-toggled'\n\t| 'secondary-disabled'\n\t| 'success'\n\t| 'success-toggled'\n\t| 'success-disabled'\n\t| 'error'\n\t| 'error-toggled'\n\t| 'error-disabled'\n\t| 'warning'\n\t| 'warning-toggled'\n\t| 'warning-disabled'\n\t| 'info'\n\t| 'info-toggled'\n\t| 'info-disabled'\n\t| 'accent'\n\t| 'accent-toggled'\n\t| 'accent-disabled'\n\t| null\n\t| undefined;\nexport type ToggleSizeProps = 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type ToggleProps = {\n\tvariant?: ToggleVariantProps;\n\tsize?: ToggleSizeProps;\n};\n\n@Component({\n\tselector: 'app-toggle',\n\tstandalone: true,\n\timports: [FormsModule, TypographyDirective],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: ToggleComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './toggle.component.html',\n\tstyles: '',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ToggleComponent {\n\t// Base checkbox properties\n\tvariant = input<ToggleVariantProps>();\n\tsize = input<ToggleSizeProps>();\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\tname = input<string | null>(null);\n\n\tvalue = model<boolean>(false);\n\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\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\thandleToggle() {\n\t\tthis.value.set(!this.value());\n\t\tthis.handleChange();\n\t}\n\n\t// Change handler\n\tonChange = output<boolean>();\n\thandleChange(): void {\n\t\tthis.onControlChange(this.value());\n\t\tthis.onChange.emit(this.value());\n\t}\n\n\t// Blur handler\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n\n\t// classes\n\tget componentClass(): string {\n\t\tif (this.variant() === 'primary') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'primary-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'primary-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'primary',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.variant() === 'secondary') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'secondary-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'secondary-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'secondary',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.variant() === 'success') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'success-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'success-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'success',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.variant() === 'warning') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'warning-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'warning-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'warning',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.variant() === 'error') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'error-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'error-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'error',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.variant() === 'accent') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'accent-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'accent-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'accent',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.variant() === 'info') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'info-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'info-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'info',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'primary-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'primary-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'primary',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","@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 [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\">\n\t\t\t{{ label() }}\n\t\t</span>\n\t</button>\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAAA;AAOO,MAAM,eAAe,GAAG,GAAG,CACjC;IACC,MAAM;IACN,sBAAsB;IACtB,cAAc;IACd,cAAc;IACd,cAAc;IACd,mBAAmB;IACnB,uBAAuB;IACvB,yBAAyB;IACzB,gCAAgC;IAChC,qBAAqB;IACrB,uBAAuB;IACvB,uBAAuB;IACvB,0BAA0B;IAC1B,uBAAuB;IAC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AA,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,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAY9B,eAAe,EAAA,UAAA,EAAA,CAAA;kBAf3B,SAAS;+BACC,YAAY,EAAA,UAAA,EACV,IAAI,EACP,OAAA,EAAA,CAAC,WAAW,EAAE,mBAAmB,CAAC,EAChC,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAiB,eAAA;AAC5B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;qBACD,EAGgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wiBAAA,EAAA,CAAA;;;AEhMhD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-forms-toggle.mjs","sources":["../../../projects/sdk/components/forms/toggle/src/toggle.component.ts","../../../projects/sdk/components/forms/toggle/src/toggle.component.html","../../../projects/sdk/components/forms/toggle/sixbell-telco-sdk-components-forms-toggle.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ChangeDetectionStrategy, Component, input, model, output } from '@angular/core';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport const toggleComponent = cva(\n\t[\n\t\t'grid',\n\t\t'place-content-center',\n\t\t'rounded-full',\n\t\t'border-[1px]',\n\t\t'border-solid',\n\t\t'transition-colors',\n\t\t'focus-visible:outline',\n\t\t'focus-visible:outline-2',\n\t\t'focus-visible:outline-offset-2',\n\t\t'hover:bg-opacity-40',\n\t\t'active:transition-all',\n\t\t'active:hover:scale-95',\n\t\t'active:hover:animate-pop',\n\t\t'active:hover:ease-out',\n\t\t'active:hover:animate-duration-0',\n\t\t'active:hover:animate-fill-mode-backwards',\n\t\t'active:focus:scale-95',\n\t\t'active:focus:animate-pop',\n\t\t'active:focus:ease-out',\n\t\t'active:focus:animate-duration-0',\n\t\t'active:focus:animate-fill-mode-backwards',\n\t\t'hover:active:bg-opacity-100',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tprimary: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-primary',\n\t\t\t\t\t'hover:bg-primary',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-primary',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-primary',\n\t\t\t\t\t'hover:active:focus-visible:outline-primary',\n\t\t\t\t\t'hover:active:text-primary-content',\n\t\t\t\t],\n\t\t\t\t'primary-toggled': ['bg-primary', 'border-primary', 'text-neutral-content'],\n\t\t\t\t'primary-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t\tsecondary: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-secondary',\n\t\t\t\t\t'hover:bg-secondary',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-secondary',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-secondary',\n\t\t\t\t\t'hover:active:focus-visible:outline-secondary',\n\t\t\t\t\t'hover:active:text-secondary-content',\n\t\t\t\t],\n\t\t\t\t'secondary-toggled': ['bg-secondary', 'border-secondary', 'text-neutral'],\n\t\t\t\t'secondary-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t\tsuccess: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-success',\n\t\t\t\t\t'hover:bg-success',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-success',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-success',\n\t\t\t\t\t'hover:active:focus-visible:outline-success',\n\t\t\t\t\t'hover:active:text-success-content',\n\t\t\t\t],\n\t\t\t\t'success-toggled': ['bg-success', 'border-success', 'text-neutral-content'],\n\t\t\t\t'success-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t\terror: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-error',\n\t\t\t\t\t'hover:bg-error',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-error',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-error',\n\t\t\t\t\t'hover:active:focus-visible:outline-error',\n\t\t\t\t\t'hover:active:text-error-content',\n\t\t\t\t],\n\t\t\t\t'error-toggled': ['bg-error', 'border-error', 'text-neutral-content'],\n\t\t\t\t'error-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t\twarning: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-warning',\n\t\t\t\t\t'hover:bg-warning',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-warning',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-warning',\n\t\t\t\t\t'hover:active:focus-visible:outline-warning',\n\t\t\t\t\t'hover:active:text-warning-content',\n\t\t\t\t],\n\t\t\t\t'warning-toggled': ['bg-warning', 'border-warning', 'text-neutral-content'],\n\t\t\t\t'warning-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t\tinfo: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-info',\n\t\t\t\t\t'hover:bg-info',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-info',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-info',\n\t\t\t\t\t'hover:active:focus-visible:outline-info',\n\t\t\t\t\t'hover:active:text-primary-content',\n\t\t\t\t],\n\t\t\t\t'info-toggled': ['bg-info', 'border-info', 'text-neutral-content'],\n\t\t\t\t'info-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t\taccent: [\n\t\t\t\t\t'border-secondary',\n\t\t\t\t\t'text-neutral',\n\t\t\t\t\t'hover:border-accent',\n\t\t\t\t\t'hover:bg-accent',\n\t\t\t\t\t'hover:text-neutral',\n\t\t\t\t\t'hover:active:bg-accent',\n\t\t\t\t\t'focus-visible:outline-secondary',\n\t\t\t\t\t'hover:focus-visible:outline-accent',\n\t\t\t\t\t'hover:active:focus-visible:outline-accent',\n\t\t\t\t\t'hover:active:text-accent-content',\n\t\t\t\t],\n\t\t\t\t'accent-toggled': ['bg-accent', 'border-accent', 'text-neutral-content'],\n\t\t\t\t'accent-disabled': ['border-secondary', 'border-opacity-50', 'text-neutral', 'text-opacity-50'],\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tsm: ['h-10', 'w-10'],\n\t\t\t\tmd: ['h-11', 'w-11'],\n\t\t\t\tlg: ['h-12', 'w-12'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tvariant: 'primary',\n\t\t\tsize: 'md',\n\t\t},\n\t},\n);\n\nexport type ToggleVariantProps =\n\t| 'primary'\n\t| 'primary-toggled'\n\t| 'primary-disabled'\n\t| 'secondary'\n\t| 'secondary-toggled'\n\t| 'secondary-disabled'\n\t| 'success'\n\t| 'success-toggled'\n\t| 'success-disabled'\n\t| 'error'\n\t| 'error-toggled'\n\t| 'error-disabled'\n\t| 'warning'\n\t| 'warning-toggled'\n\t| 'warning-disabled'\n\t| 'info'\n\t| 'info-toggled'\n\t| 'info-disabled'\n\t| 'accent'\n\t| 'accent-toggled'\n\t| 'accent-disabled'\n\t| null\n\t| undefined;\nexport type ToggleSizeProps = 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type ToggleProps = {\n\tvariant?: ToggleVariantProps;\n\tsize?: ToggleSizeProps;\n};\n\n@Component({\n\tselector: 'st-toggle',\n\tstandalone: true,\n\timports: [FormsModule, TypographyDirective],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: ToggleComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './toggle.component.html',\n\tstyles: '',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ToggleComponent {\n\t// Base checkbox properties\n\tvariant = input<ToggleVariantProps>();\n\tsize = input<ToggleSizeProps>();\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\tname = input<string | null>(null);\n\n\tvalue = model<boolean>(false);\n\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\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\thandleToggle() {\n\t\tthis.value.set(!this.value());\n\t\tthis.handleChange();\n\t}\n\n\t// Change handler\n\tonChange = output<boolean>();\n\thandleChange(): void {\n\t\tthis.onControlChange(this.value());\n\t\tthis.onChange.emit(this.value());\n\t}\n\n\t// Blur handler\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n\n\t// classes\n\tget componentClass(): string {\n\t\tif (this.variant() === 'primary') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'primary-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'primary-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'primary',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.variant() === 'secondary') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'secondary-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'secondary-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'secondary',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.variant() === 'success') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'success-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'success-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'success',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.variant() === 'warning') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'warning-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'warning-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'warning',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.variant() === 'error') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'error-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'error-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'error',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.variant() === 'accent') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'accent-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'accent-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'accent',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.variant() === 'info') {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'info-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'info-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'info',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif (this.disabled()) {\n\t\t\t\treturn cn(\n\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\tvariant: 'primary-disabled',\n\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tif (this.value()) {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'primary-toggled',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn cn(\n\t\t\t\t\t\ttoggleComponent({\n\t\t\t\t\t\t\tvariant: 'primary',\n\t\t\t\t\t\t\tsize: this.size(),\n\t\t\t\t\t\t\tclass: this.classes(),\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","@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 [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\">\n\t\t\t{{ label() }}\n\t\t</span>\n\t</button>\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAAA;AAOO,MAAM,eAAe,GAAG,GAAG,CACjC;IACC,MAAM;IACN,sBAAsB;IACtB,cAAc;IACd,cAAc;IACd,cAAc;IACd,mBAAmB;IACnB,uBAAuB;IACvB,yBAAyB;IACzB,gCAAgC;IAChC,qBAAqB;IACrB,uBAAuB;IACvB,uBAAuB;IACvB,0BAA0B;IAC1B,uBAAuB;IACvB,iCAAiC;IACjC,0CAA0C;IAC1C,uBAAuB;IACvB,0BAA0B;IAC1B,uBAAuB;IACvB,iCAAiC;IACjC,0CAA0C;IAC1C,6BAA6B;CAC7B,EACD;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE;gBACR,k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AAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAY9B,eAAe,EAAA,UAAA,EAAA,CAAA;kBAf3B,SAAS;+BACC,WAAW,EAAA,UAAA,EACT,IAAI,EACP,OAAA,EAAA,CAAC,WAAW,EAAE,mBAAmB,CAAC,EAChC,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAiB,eAAA;AAC5B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;qBACD,EAGgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wiBAAA,EAAA,CAAA;;;AEhMhD;;AAEG;;;;"}
|
|
@@ -35,11 +35,11 @@ class IconComponent {
|
|
|
35
35
|
return `assets/icons/icons.svg#${this.iconName()}`;
|
|
36
36
|
}
|
|
37
37
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: IconComponent, isStandalone: true, selector: "
|
|
38
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", 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 }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<svg [class]=\"componentClass\">\n\t<use attr.href=\"{{ iconPath }}\"></use>\n</svg>\n", styles: [""] });
|
|
39
39
|
}
|
|
40
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: IconComponent, decorators: [{
|
|
41
41
|
type: Component,
|
|
42
|
-
args: [{ selector: '
|
|
42
|
+
args: [{ selector: 'st-icon', standalone: true, imports: [], template: "<svg [class]=\"componentClass\">\n\t<use attr.href=\"{{ iconPath }}\"></use>\n</svg>\n" }]
|
|
43
43
|
}] });
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-icon.mjs","sources":["../../../projects/sdk/components/icon/src/icon.component.ts","../../../projects/sdk/components/icon/src/icon.component.html","../../../projects/sdk/components/icon/sixbell-telco-sdk-components-icon.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { IconName } from './icon';\n\nexport const iconComponent = cva([], {\n\tvariants: {\n\t\tcolor: {\n\t\t\twhite: 'text-neutral-content',\n\t\t\tblack: 'text-neutral',\n\t\t\tprimary: 'text-primary',\n\t\t\tinherit: 'text-inherit',\n\t\t},\n\t\tsize: {\n\t\t\tsm: ['w-5 h-5'],\n\t\t\tmd: ['w-6 h-6'],\n\t\t\tlg: ['w-9 h-9'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tcolor: 'inherit',\n\t\tsize: 'md',\n\t},\n});\n\nexport type IconColorProps = 'white' | 'black' | 'primary' | 'inherit' | null | undefined;\nexport type IconSizeProps = 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type IconProps = {\n\tcolor?: IconColorProps;\n\tsize?: IconSizeProps;\n};\n\n@Component({\n\tselector: '
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-icon.mjs","sources":["../../../projects/sdk/components/icon/src/icon.component.ts","../../../projects/sdk/components/icon/src/icon.component.html","../../../projects/sdk/components/icon/sixbell-telco-sdk-components-icon.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { IconName } from './icon';\n\nexport const iconComponent = cva([], {\n\tvariants: {\n\t\tcolor: {\n\t\t\twhite: 'text-neutral-content',\n\t\t\tblack: 'text-neutral',\n\t\t\tprimary: 'text-primary',\n\t\t\tinherit: 'text-inherit',\n\t\t},\n\t\tsize: {\n\t\t\tsm: ['w-5 h-5'],\n\t\t\tmd: ['w-6 h-6'],\n\t\t\tlg: ['w-9 h-9'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tcolor: 'inherit',\n\t\tsize: 'md',\n\t},\n});\n\nexport type IconColorProps = 'white' | 'black' | 'primary' | 'inherit' | null | undefined;\nexport type IconSizeProps = 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type IconProps = {\n\tcolor?: IconColorProps;\n\tsize?: IconSizeProps;\n};\n\n@Component({\n\tselector: 'st-icon',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './icon.component.html',\n\tstyles: '',\n})\nexport class IconComponent {\n\tcolor = input<IconColorProps>();\n\tsize = input<IconSizeProps>();\n\tclasses = input<string>('');\n\ticonName = input.required<IconName>();\n\n\tget componentClass() {\n\t\treturn cn(iconComponent({ color: this.color(), size: this.size(), class: this.classes() }));\n\t}\n\n\tget iconPath() {\n\t\treturn `assets/icons/icons.svg#${this.iconName()}`;\n\t}\n}\n","<svg [class]=\"componentClass\">\n\t<use attr.href=\"{{ iconPath }}\"></use>\n</svg>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKa,MAAA,aAAa,GAAG,GAAG,CAAC,EAAE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IAAA,EAAA,aAAa,0jBCzC1B,wFAGA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FDsCa,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;+BACC,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,wFAAA,EAAA,CAAA;;;AErCZ;;AAEG;;;;"}
|
|
@@ -158,7 +158,7 @@ class LinkComponent {
|
|
|
158
158
|
iconPosition = input();
|
|
159
159
|
fontSize = input('body-sm');
|
|
160
160
|
containerClasses = input('');
|
|
161
|
-
|
|
161
|
+
iconClasses = input('');
|
|
162
162
|
label = input('');
|
|
163
163
|
iconName = input();
|
|
164
164
|
opened = false;
|
|
@@ -182,6 +182,7 @@ class LinkComponent {
|
|
|
182
182
|
get iconClass() {
|
|
183
183
|
return cn(linkIcon({
|
|
184
184
|
iconPosition: this.iconPosition(),
|
|
185
|
+
class: this.iconClasses(),
|
|
185
186
|
}));
|
|
186
187
|
}
|
|
187
188
|
get dropdownClass() {
|
|
@@ -208,11 +209,11 @@ class LinkComponent {
|
|
|
208
209
|
this.opened = !this.opened;
|
|
209
210
|
}
|
|
210
211
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LinkComponent, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
211
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: LinkComponent, isStandalone: true, selector: "app-link", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, fontSize: { classPropertyName: "fontSize", publicName: "fontSize", isSignal: true, isRequired: false, transformFunction: null }, containerClasses: { classPropertyName: "containerClasses", publicName: "containerClasses", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: false, transformFunction: null }, childrenRoutes: { classPropertyName: "childrenRoutes", publicName: "childrenRoutes", isSignal: true, isRequired: false, transformFunction: null }, routerLinkActiveOptions: { classPropertyName: "routerLinkActiveOptions", publicName: "routerLinkActiveOptions", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let routeVar = this.route();\n@let childrenRoutesVar = this.childrenRoutes();\n@let fontSizeVar = this.fontSize();\n@let iconNameVar = this.iconName();\n@let routerLinkActiveOptionsVar = this.routerLinkActiveOptions();\n@let variantVar = this.variant();\n\n@if (variantVar === 'btn-primary' || variantVar === 'btn-secondary' || variantVar === 'btn-warning' || variantVar === 'btn-error') {\n\t@if (routeVar !== undefined) {\n\t\t<a\n\t\t\t[class]=\"containerClass\"\n\t\t\t[routerLink]=\"routeVar.path\"\n\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t>\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t} @else {\n\t\t<a [class]=\"containerClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t}\n} @else if (variantVar === 'btn-collapsable-primary') {\n\t@if (routeVar !== undefined) {\n\t\t<button [class]=\"containerClass\" (click)=\"toggle()\">\n\t\t\t<div class=\"inline-flex items-center justify-start gap-2\">\n\t\t\t\t@if (iconNameVar) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\trouteVar.label\n\t\t\t\t}}</span>\n\t\t\t</div>\n\t\t\t<div [class]=\"isOpenedClass\">\n\t\t\t\t<app-icon [iconName]=\"'angle-right'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t</div>\n\t\t</button>\n\n\t\t<div [class]=\"dropdownClass\">\n\t\t\t<div class=\"ml-9 mr-2 h-full w-[2px] self-center bg-separator\"></div>\n\t\t\t<ul class=\"space-y-[5px]\">\n\t\t\t\t@for (item of childrenRoutesVar; track $index) {\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"inline-flex h-auto min-h-12 w-full items-center justify-start gap-2 rounded-btn-md px-6 py-2 font-normal text-neutral hover:bg-primary hover:font-semibold hover:text-neutral-content focus:bg-primary focus:font-semibold focus:text-neutral-content active:hover:bg-primary active:hover:font-semibold active:hover:text-neutral-content active:focus:bg-primary active:focus:font-semibold active:focus:text-neutral-content\"\n\t\t\t\t\t\t\t[routerLink]=\"routeVar?.path ? routeVar?.path + item.path : '#'\"\n\t\t\t\t\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t\t\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\t\t\t\titem.label\n\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t} @else {\n\t\t<button [class]=\"containerClass\" (click)=\"toggle()\">\n\t\t\t<div class=\"inline-flex items-center justify-start gap-2\">\n\t\t\t\t@if (iconNameVar) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ 'Empty' }}</span>\n\t\t\t</div>\n\t\t\t<div [class]=\"isOpenedClass\">\n\t\t\t\t<app-icon [iconName]=\"'angle-right'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t</div>\n\t\t</button>\n\n\t\t<div [class]=\"dropdownClass\">\n\t\t\t<div class=\"ml-9 mr-2 h-full w-[2px] self-center bg-separator\"></div>\n\t\t\t<ul class=\"space-y-[5px]\">\n\t\t\t\t@for (item of childrenRoutesVar; track $index) {\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"inline-flex h-auto min-h-12 w-full items-center justify-start gap-2 rounded-btn-md px-6 py-2 font-normal text-neutral hover:bg-primary hover:font-semibold hover:text-neutral-content focus:bg-primary focus:font-semibold focus:text-neutral-content active:hover:bg-primary active:hover:font-semibold active:hover:text-neutral-content active:focus:bg-primary active:focus:font-semibold active:focus:text-neutral-content\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\t\t\t\titem.label\n\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t}\n} @else {\n\t@if (routeVar !== undefined) {\n\t\t<a\n\t\t\t[class]=\"containerClass\"\n\t\t\t[routerLink]=\"routeVar.path\"\n\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t>\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t} @else {\n\t\t<a [class]=\"containerClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t}\n}\n", styles: [""], dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "app-icon", inputs: ["color", "size", "classes", "iconName"] }, { 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 }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
212
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: LinkComponent, isStandalone: true, selector: "st-link", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, fontSize: { classPropertyName: "fontSize", publicName: "fontSize", isSignal: true, isRequired: false, transformFunction: null }, containerClasses: { classPropertyName: "containerClasses", publicName: "containerClasses", isSignal: true, isRequired: false, transformFunction: null }, iconClasses: { classPropertyName: "iconClasses", publicName: "iconClasses", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: false, transformFunction: null }, childrenRoutes: { classPropertyName: "childrenRoutes", publicName: "childrenRoutes", isSignal: true, isRequired: false, transformFunction: null }, routerLinkActiveOptions: { classPropertyName: "routerLinkActiveOptions", publicName: "routerLinkActiveOptions", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let routeVar = this.route();\n@let childrenRoutesVar = this.childrenRoutes();\n@let fontSizeVar = this.fontSize();\n@let iconNameVar = this.iconName();\n@let routerLinkActiveOptionsVar = this.routerLinkActiveOptions();\n@let variantVar = this.variant();\n\n@if (variantVar === 'btn-primary' || variantVar === 'btn-secondary' || variantVar === 'btn-warning' || variantVar === 'btn-error') {\n\t@if (routeVar !== undefined) {\n\t\t<a\n\t\t\t[class]=\"containerClass\"\n\t\t\t[routerLink]=\"routeVar.path\"\n\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t>\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t} @else {\n\t\t<a [class]=\"containerClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t}\n} @else if (variantVar === 'btn-collapsable-primary') {\n\t@if (routeVar !== undefined) {\n\t\t<button [class]=\"containerClass\" (click)=\"toggle()\">\n\t\t\t<div class=\"inline-flex items-center justify-start gap-2\">\n\t\t\t\t@if (iconNameVar) {\n\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t}\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\trouteVar.label\n\t\t\t\t}}</span>\n\t\t\t</div>\n\t\t\t<div [class]=\"isOpenedClass\">\n\t\t\t\t<st-icon [iconName]=\"'angle-right'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t</div>\n\t\t</button>\n\n\t\t<div [class]=\"dropdownClass\">\n\t\t\t<div class=\"ml-9 mr-2 h-full w-[2px] self-center bg-separator\"></div>\n\t\t\t<ul class=\"space-y-[5px]\">\n\t\t\t\t@for (item of childrenRoutesVar; track $index) {\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"inline-flex h-auto min-h-12 w-full items-center justify-start gap-2 rounded-btn-md px-6 py-2 font-normal text-neutral hover:bg-primary hover:font-semibold hover:text-neutral-content focus:bg-primary focus:font-semibold focus:text-neutral-content active:hover:bg-primary active:hover:font-semibold active:hover:text-neutral-content active:focus:bg-primary active:focus:font-semibold active:focus:text-neutral-content\"\n\t\t\t\t\t\t\t[routerLink]=\"routeVar?.path ? routeVar?.path + item.path : '#'\"\n\t\t\t\t\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t\t\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\t\t\t\titem.label\n\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t} @else {\n\t\t<button [class]=\"containerClass\" (click)=\"toggle()\">\n\t\t\t<div class=\"inline-flex items-center justify-start gap-2\">\n\t\t\t\t@if (iconNameVar) {\n\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t}\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ 'Empty' }}</span>\n\t\t\t</div>\n\t\t\t<div [class]=\"isOpenedClass\">\n\t\t\t\t<st-icon [iconName]=\"'angle-right'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t</div>\n\t\t</button>\n\n\t\t<div [class]=\"dropdownClass\">\n\t\t\t<div class=\"ml-9 mr-2 h-full w-[2px] self-center bg-separator\"></div>\n\t\t\t<ul class=\"space-y-[5px]\">\n\t\t\t\t@for (item of childrenRoutesVar; track $index) {\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"inline-flex h-auto min-h-12 w-full items-center justify-start gap-2 rounded-btn-md px-6 py-2 font-normal text-neutral hover:bg-primary hover:font-semibold hover:text-neutral-content focus:bg-primary focus:font-semibold focus:text-neutral-content active:hover:bg-primary active:hover:font-semibold active:hover:text-neutral-content active:focus:bg-primary active:focus:font-semibold active:focus:text-neutral-content\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\t\t\t\titem.label\n\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t}\n} @else {\n\t@if (routeVar !== undefined) {\n\t\t<a\n\t\t\t[class]=\"containerClass\"\n\t\t\t[routerLink]=\"routeVar.path\"\n\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t>\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t} @else {\n\t\t<a [class]=\"containerClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t}\n}\n", styles: [""], dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "iconName"] }, { 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 }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
212
213
|
}
|
|
213
214
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LinkComponent, decorators: [{
|
|
214
215
|
type: Component,
|
|
215
|
-
args: [{ selector: '
|
|
216
|
+
args: [{ selector: 'st-link', standalone: true, imports: [TypographyDirective, IconComponent, RouterLinkActive, RouterLink, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let routeVar = this.route();\n@let childrenRoutesVar = this.childrenRoutes();\n@let fontSizeVar = this.fontSize();\n@let iconNameVar = this.iconName();\n@let routerLinkActiveOptionsVar = this.routerLinkActiveOptions();\n@let variantVar = this.variant();\n\n@if (variantVar === 'btn-primary' || variantVar === 'btn-secondary' || variantVar === 'btn-warning' || variantVar === 'btn-error') {\n\t@if (routeVar !== undefined) {\n\t\t<a\n\t\t\t[class]=\"containerClass\"\n\t\t\t[routerLink]=\"routeVar.path\"\n\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t>\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t} @else {\n\t\t<a [class]=\"containerClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t}\n} @else if (variantVar === 'btn-collapsable-primary') {\n\t@if (routeVar !== undefined) {\n\t\t<button [class]=\"containerClass\" (click)=\"toggle()\">\n\t\t\t<div class=\"inline-flex items-center justify-start gap-2\">\n\t\t\t\t@if (iconNameVar) {\n\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t}\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\trouteVar.label\n\t\t\t\t}}</span>\n\t\t\t</div>\n\t\t\t<div [class]=\"isOpenedClass\">\n\t\t\t\t<st-icon [iconName]=\"'angle-right'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t</div>\n\t\t</button>\n\n\t\t<div [class]=\"dropdownClass\">\n\t\t\t<div class=\"ml-9 mr-2 h-full w-[2px] self-center bg-separator\"></div>\n\t\t\t<ul class=\"space-y-[5px]\">\n\t\t\t\t@for (item of childrenRoutesVar; track $index) {\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"inline-flex h-auto min-h-12 w-full items-center justify-start gap-2 rounded-btn-md px-6 py-2 font-normal text-neutral hover:bg-primary hover:font-semibold hover:text-neutral-content focus:bg-primary focus:font-semibold focus:text-neutral-content active:hover:bg-primary active:hover:font-semibold active:hover:text-neutral-content active:focus:bg-primary active:focus:font-semibold active:focus:text-neutral-content\"\n\t\t\t\t\t\t\t[routerLink]=\"routeVar?.path ? routeVar?.path + item.path : '#'\"\n\t\t\t\t\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t\t\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\t\t\t\titem.label\n\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t} @else {\n\t\t<button [class]=\"containerClass\" (click)=\"toggle()\">\n\t\t\t<div class=\"inline-flex items-center justify-start gap-2\">\n\t\t\t\t@if (iconNameVar) {\n\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t}\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ 'Empty' }}</span>\n\t\t\t</div>\n\t\t\t<div [class]=\"isOpenedClass\">\n\t\t\t\t<st-icon [iconName]=\"'angle-right'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t</div>\n\t\t</button>\n\n\t\t<div [class]=\"dropdownClass\">\n\t\t\t<div class=\"ml-9 mr-2 h-full w-[2px] self-center bg-separator\"></div>\n\t\t\t<ul class=\"space-y-[5px]\">\n\t\t\t\t@for (item of childrenRoutesVar; track $index) {\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"inline-flex h-auto min-h-12 w-full items-center justify-start gap-2 rounded-btn-md px-6 py-2 font-normal text-neutral hover:bg-primary hover:font-semibold hover:text-neutral-content focus:bg-primary focus:font-semibold focus:text-neutral-content active:hover:bg-primary active:hover:font-semibold active:hover:text-neutral-content active:focus:bg-primary active:focus:font-semibold active:focus:text-neutral-content\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\t\t\t\titem.label\n\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t}\n} @else {\n\t@if (routeVar !== undefined) {\n\t\t<a\n\t\t\t[class]=\"containerClass\"\n\t\t\t[routerLink]=\"routeVar.path\"\n\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t>\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t} @else {\n\t\t<a [class]=\"containerClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t}\n}\n" }]
|
|
216
217
|
}], ctorParameters: () => [{ type: i1.Router }] });
|
|
217
218
|
|
|
218
219
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-link.mjs","sources":["../../../projects/sdk/components/link/src/link.component.ts","../../../projects/sdk/components/link/src/link.component.html","../../../projects/sdk/components/link/sixbell-telco-sdk-components-link.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { NavigationEnd, Router, RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent, IconName } from '@sixbell-telco/sdk/components/icon';\nimport { TypographyDirective, TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\nimport { filter } from 'rxjs';\n\nexport type Route = {\n\tlabel: string;\n\tpath: string;\n};\n\nexport const linkContainer = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['link', 'link-primary', 'no-underline'],\n\t\t\tsecondary: ['link', 'link-secondary', 'no-underline'],\n\t\t\taccent: ['link', 'link-accent', 'no-underline'],\n\t\t\tsuccess: ['link', 'link-success', 'no-underline'],\n\t\t\tinfo: ['link', 'link-info', 'no-underline'],\n\t\t\twarning: ['link', 'link-warning', 'no-underline'],\n\t\t\terror: ['link', 'link-error', 'no-underline'],\n\t\t\t'btn-primary': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-primary-content',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-primary-content',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-primary-content',\n\t\t\t\t'active:focus:bg-primary',\n\t\t\t],\n\t\t\t'btn-secondary': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-secondary-content',\n\t\t\t\t'hover:bg-secondary',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-secondary-content',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-secondary-content',\n\t\t\t\t'active:focus:bg-secondary',\n\t\t\t],\n\t\t\t'btn-warning': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-warning-content',\n\t\t\t\t'hover:bg-warning',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-warning-content',\n\t\t\t\t'active:hover:bg-warning',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-warning-content',\n\t\t\t\t'active:focus:bg-warning',\n\t\t\t],\n\t\t\t'btn-error': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-error-content',\n\t\t\t\t'hover:bg-error',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-error-content',\n\t\t\t\t'active:hover:bg-error',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-error-content',\n\t\t\t\t'active:focus:bg-error',\n\t\t\t],\n\t\t\t'btn-collapsable-primary': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'items-center',\n\t\t\t\t'gap-2',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-neutral-content',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-neutral-content',\n\t\t\t\t'active:focus:bg-primary',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tpadding: {\n\t\t\tauto: [],\n\t\t\tsm: ['px-4', 'py-2'],\n\t\t\tmd: ['px-6', 'py-2'],\n\t\t\tlg: ['px-8', 'py-4'],\n\t\t},\n\t\talignment: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['justify-start'],\n\t\t\tright: ['justify-end'],\n\t\t\tbetween: ['justify-between'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'btn-primary',\n\t\tshape: 'round-md',\n\t\tpadding: 'md',\n\t\talignment: 'left',\n\t},\n});\n\nexport type LinkContainerVariantProps =\n\t| 'primary'\n\t| 'secondary'\n\t| 'accent'\n\t| 'success'\n\t| 'info'\n\t| 'warning'\n\t| 'error'\n\t| 'btn-primary'\n\t| 'btn-secondary'\n\t| 'btn-warning'\n\t| 'btn-error'\n\t| 'btn-collapsable-primary';\nexport type LinkContainerShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg';\nexport type LinkContainerPaddingProps = 'auto' | 'sm' | 'md' | 'lg';\nexport type LinkContainerAlignmentProps = 'center' | 'left' | 'right' | 'between';\n\nexport const linkIcon = cva(['flex items-center'], {\n\tvariants: {\n\t\ticonPosition: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['flex-row gap-2'],\n\t\t\tright: ['flex-row-reverse gap-2'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\ticonPosition: 'left',\n\t},\n});\n\nexport type LinkIconPositionProps = 'center' | 'left' | 'right';\n\nexport type LinkProps = {\n\tvariant?: LinkContainerVariantProps;\n\tshape?: LinkContainerShapeProps;\n\tpadding?: LinkContainerPaddingProps;\n\talignment?: LinkContainerAlignmentProps;\n\ticonPosition?: LinkIconPositionProps;\n};\n\nexport const linkComponent = ({ variant, shape, padding, alignment, iconPosition }: LinkProps = {}) =>\n\tcx(linkContainer({ variant, shape, padding, alignment }), linkIcon({ iconPosition }));\n\n@Component({\n\tselector: 'app-link',\n\tstandalone: true,\n\timports: [TypographyDirective, IconComponent, RouterLinkActive, RouterLink, FormsModule],\n\ttemplateUrl: './link.component.html',\n\tstyles: '',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LinkComponent implements OnInit {\n\t// base\n\tvariant = input<LinkContainerVariantProps>();\n\tshape = input<LinkContainerShapeProps>();\n\tpadding = input<LinkContainerPaddingProps>();\n\talignment = input<LinkContainerAlignmentProps>();\n\ticonPosition = input<LinkIconPositionProps>();\n\tfontSize = input<TypographyVariantProps>('body-sm');\n\tcontainerClasses = input<string>('');\n\t// iconClasses = input<string>('');\n\tlabel = input<string>('');\n\ticonName = input<IconName | undefined>();\n\topened: boolean = false;\n\tactiveClasses = 'bg-primary text-neutral-content font-semibold';\n\n\t// router\n\troute = input<Route>();\n\tchildrenRoutes = input<Route[]>();\n\trouterLinkActiveOptions = input<{ exact: boolean }>({ exact: false });\n\n\tconstructor(private router: Router) {}\n\n\tget containerClass() {\n\t\treturn cn(\n\t\t\tlinkContainer({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\talignment: this.alignment(),\n\t\t\t\tclass: this.containerClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget iconClass() {\n\t\treturn cn(\n\t\t\tlinkIcon({\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget dropdownClass() {\n\t\treturn cn({ 'invisible h-0 mt-[5px]': this.opened === false, 'visible h-auto mt-[5px] grid grid-cols-[max-content_1fr]': this.opened === true });\n\t}\n\n\tget isOpenedClass() {\n\t\treturn cn(\n\t\t\t{ 'rotate-0 transition-transform duration-150 ease-ease-out-back': this.opened === false },\n\t\t\t{ 'rotate-90 transition-transform duration-150 ease-ease-out-back': this.opened === true },\n\t\t);\n\t}\n\n\tngOnInit(): void {\n\t\tthis.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe(() => {\n\t\t\tconst currentPath = this.router.url;\n\t\t\tthis.updateOpenedState(currentPath);\n\t\t});\n\n\t\tconst lastOpenedNavlink = localStorage.getItem('lastOpenedNavlink');\n\t\tif (lastOpenedNavlink !== null) {\n\t\t\tthis.opened = this.childrenRoutes()?.some((route) => lastOpenedNavlink === this.route()?.path + route.path) ?? false;\n\t\t}\n\t}\n\n\tupdateOpenedState(currentPath: string): void {\n\t\tthis.opened = this.childrenRoutes()?.some((route) => currentPath.includes(this.route()?.path + route.path)) ?? false;\n\t\tlocalStorage.setItem('lastOpenedNavlink', currentPath);\n\t}\n\n\ttoggle() {\n\t\tthis.opened = !this.opened;\n\t}\n}\n","@let routeVar = this.route();\n@let childrenRoutesVar = this.childrenRoutes();\n@let fontSizeVar = this.fontSize();\n@let iconNameVar = this.iconName();\n@let routerLinkActiveOptionsVar = this.routerLinkActiveOptions();\n@let variantVar = this.variant();\n\n@if (variantVar === 'btn-primary' || variantVar === 'btn-secondary' || variantVar === 'btn-warning' || variantVar === 'btn-error') {\n\t@if (routeVar !== undefined) {\n\t\t<a\n\t\t\t[class]=\"containerClass\"\n\t\t\t[routerLink]=\"routeVar.path\"\n\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t>\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t} @else {\n\t\t<a [class]=\"containerClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t}\n} @else if (variantVar === 'btn-collapsable-primary') {\n\t@if (routeVar !== undefined) {\n\t\t<button [class]=\"containerClass\" (click)=\"toggle()\">\n\t\t\t<div class=\"inline-flex items-center justify-start gap-2\">\n\t\t\t\t@if (iconNameVar) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\trouteVar.label\n\t\t\t\t}}</span>\n\t\t\t</div>\n\t\t\t<div [class]=\"isOpenedClass\">\n\t\t\t\t<app-icon [iconName]=\"'angle-right'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t</div>\n\t\t</button>\n\n\t\t<div [class]=\"dropdownClass\">\n\t\t\t<div class=\"ml-9 mr-2 h-full w-[2px] self-center bg-separator\"></div>\n\t\t\t<ul class=\"space-y-[5px]\">\n\t\t\t\t@for (item of childrenRoutesVar; track $index) {\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"inline-flex h-auto min-h-12 w-full items-center justify-start gap-2 rounded-btn-md px-6 py-2 font-normal text-neutral hover:bg-primary hover:font-semibold hover:text-neutral-content focus:bg-primary focus:font-semibold focus:text-neutral-content active:hover:bg-primary active:hover:font-semibold active:hover:text-neutral-content active:focus:bg-primary active:focus:font-semibold active:focus:text-neutral-content\"\n\t\t\t\t\t\t\t[routerLink]=\"routeVar?.path ? routeVar?.path + item.path : '#'\"\n\t\t\t\t\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t\t\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\t\t\t\titem.label\n\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t} @else {\n\t\t<button [class]=\"containerClass\" (click)=\"toggle()\">\n\t\t\t<div class=\"inline-flex items-center justify-start gap-2\">\n\t\t\t\t@if (iconNameVar) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ 'Empty' }}</span>\n\t\t\t</div>\n\t\t\t<div [class]=\"isOpenedClass\">\n\t\t\t\t<app-icon [iconName]=\"'angle-right'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t</div>\n\t\t</button>\n\n\t\t<div [class]=\"dropdownClass\">\n\t\t\t<div class=\"ml-9 mr-2 h-full w-[2px] self-center bg-separator\"></div>\n\t\t\t<ul class=\"space-y-[5px]\">\n\t\t\t\t@for (item of childrenRoutesVar; track $index) {\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"inline-flex h-auto min-h-12 w-full items-center justify-start gap-2 rounded-btn-md px-6 py-2 font-normal text-neutral hover:bg-primary hover:font-semibold hover:text-neutral-content focus:bg-primary focus:font-semibold focus:text-neutral-content active:hover:bg-primary active:hover:font-semibold active:hover:text-neutral-content active:focus:bg-primary active:focus:font-semibold active:focus:text-neutral-content\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\t\t\t\titem.label\n\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t}\n} @else {\n\t@if (routeVar !== undefined) {\n\t\t<a\n\t\t\t[class]=\"containerClass\"\n\t\t\t[routerLink]=\"routeVar.path\"\n\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t>\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t} @else {\n\t\t<a [class]=\"containerClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAca,MAAA,aAAa,GAAG,GAAG,CAAC,EAAE,EAAE;AACpC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,cAAc,CAAC;AACjD,YAAA,SAAS,EAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,cAAc,CAAC;AACrD,YAAA,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,cAAc,CAAC;AAC/C,YAAA,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,cAAc,CAAC;AACjD,YAAA,IAAI,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,cAAc,CAAC;AAC3C,YAAA,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,cAAc,CAAC;AACjD,YAAA,KAAK,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,cAAc,CAAC;AAC7C,YAAA,aAAa,EAAE;gBACd,KAAK;gBACL,UAAU;gBACV,WAAW;gBACX,QAAQ;gBACR,aAAa;gBACb,cAAc;gBACd,qBAAqB;gBACrB,4BAA4B;gBAC5B,kBAAkB;gBAClB,4BAA4B;gBAC5B,mCAAmC;gBACnC,yBAAyB;gBACzB,4BAA4B;gBAC5B,mCAAmC;gBACnC,yBAAyB;AACzB,aAAA;AACD,YAAA,eAA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AA,EAAA,WAAA,EAAA,IAAA,EAAE,aAAa,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,uBAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,UAAU,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,aAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,OAAA,EAAA,MAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,YAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,WAAW,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAK3E,aAAa,EAAA,UAAA,EAAA,CAAA;kBARzB,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,cACR,IAAI,EAAA,OAAA,EACP,CAAC,mBAAmB,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,CAAC,EAGvE,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8yOAAA,EAAA,CAAA;;;AE9LhD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-link.mjs","sources":["../../../projects/sdk/components/link/src/link.component.ts","../../../projects/sdk/components/link/src/link.component.html","../../../projects/sdk/components/link/sixbell-telco-sdk-components-link.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { NavigationEnd, Router, RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent, IconName } from '@sixbell-telco/sdk/components/icon';\nimport { TypographyDirective, TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\nimport { filter } from 'rxjs';\n\nexport type Route = {\n\tlabel: string;\n\tpath: string;\n};\n\nexport const linkContainer = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['link', 'link-primary', 'no-underline'],\n\t\t\tsecondary: ['link', 'link-secondary', 'no-underline'],\n\t\t\taccent: ['link', 'link-accent', 'no-underline'],\n\t\t\tsuccess: ['link', 'link-success', 'no-underline'],\n\t\t\tinfo: ['link', 'link-info', 'no-underline'],\n\t\t\twarning: ['link', 'link-warning', 'no-underline'],\n\t\t\terror: ['link', 'link-error', 'no-underline'],\n\t\t\t'btn-primary': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-primary-content',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-primary-content',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-primary-content',\n\t\t\t\t'active:focus:bg-primary',\n\t\t\t],\n\t\t\t'btn-secondary': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-secondary-content',\n\t\t\t\t'hover:bg-secondary',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-secondary-content',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-secondary-content',\n\t\t\t\t'active:focus:bg-secondary',\n\t\t\t],\n\t\t\t'btn-warning': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-warning-content',\n\t\t\t\t'hover:bg-warning',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-warning-content',\n\t\t\t\t'active:hover:bg-warning',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-warning-content',\n\t\t\t\t'active:focus:bg-warning',\n\t\t\t],\n\t\t\t'btn-error': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-error-content',\n\t\t\t\t'hover:bg-error',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-error-content',\n\t\t\t\t'active:hover:bg-error',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-error-content',\n\t\t\t\t'active:focus:bg-error',\n\t\t\t],\n\t\t\t'btn-collapsable-primary': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'items-center',\n\t\t\t\t'gap-2',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-neutral-content',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-neutral-content',\n\t\t\t\t'active:focus:bg-primary',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tpadding: {\n\t\t\tauto: [],\n\t\t\tsm: ['px-4', 'py-2'],\n\t\t\tmd: ['px-6', 'py-2'],\n\t\t\tlg: ['px-8', 'py-4'],\n\t\t},\n\t\talignment: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['justify-start'],\n\t\t\tright: ['justify-end'],\n\t\t\tbetween: ['justify-between'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'btn-primary',\n\t\tshape: 'round-md',\n\t\tpadding: 'md',\n\t\talignment: 'left',\n\t},\n});\n\nexport type LinkContainerVariantProps =\n\t| 'primary'\n\t| 'secondary'\n\t| 'accent'\n\t| 'success'\n\t| 'info'\n\t| 'warning'\n\t| 'error'\n\t| 'btn-primary'\n\t| 'btn-secondary'\n\t| 'btn-warning'\n\t| 'btn-error'\n\t| 'btn-collapsable-primary';\nexport type LinkContainerShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg';\nexport type LinkContainerPaddingProps = 'auto' | 'sm' | 'md' | 'lg';\nexport type LinkContainerAlignmentProps = 'center' | 'left' | 'right' | 'between';\n\nexport const linkIcon = cva(['flex items-center'], {\n\tvariants: {\n\t\ticonPosition: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['flex-row gap-2'],\n\t\t\tright: ['flex-row-reverse gap-2'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\ticonPosition: 'left',\n\t},\n});\n\nexport type LinkIconPositionProps = 'center' | 'left' | 'right';\n\nexport type LinkProps = {\n\tvariant?: LinkContainerVariantProps;\n\tshape?: LinkContainerShapeProps;\n\tpadding?: LinkContainerPaddingProps;\n\talignment?: LinkContainerAlignmentProps;\n\ticonPosition?: LinkIconPositionProps;\n};\n\nexport const linkComponent = ({ variant, shape, padding, alignment, iconPosition }: LinkProps = {}) =>\n\tcx(linkContainer({ variant, shape, padding, alignment }), linkIcon({ iconPosition }));\n\n@Component({\n\tselector: 'st-link',\n\tstandalone: true,\n\timports: [TypographyDirective, IconComponent, RouterLinkActive, RouterLink, FormsModule],\n\ttemplateUrl: './link.component.html',\n\tstyles: '',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LinkComponent implements OnInit {\n\t// base\n\tvariant = input<LinkContainerVariantProps>();\n\tshape = input<LinkContainerShapeProps>();\n\tpadding = input<LinkContainerPaddingProps>();\n\talignment = input<LinkContainerAlignmentProps>();\n\ticonPosition = input<LinkIconPositionProps>();\n\tfontSize = input<TypographyVariantProps>('body-sm');\n\tcontainerClasses = input<string>('');\n\ticonClasses = input<string>('');\n\tlabel = input<string>('');\n\ticonName = input<IconName | undefined>();\n\topened: boolean = false;\n\tactiveClasses = 'bg-primary text-neutral-content font-semibold';\n\n\t// router\n\troute = input<Route>();\n\tchildrenRoutes = input<Route[]>();\n\trouterLinkActiveOptions = input<{ exact: boolean }>({ exact: false });\n\n\tconstructor(private router: Router) {}\n\n\tget containerClass() {\n\t\treturn cn(\n\t\t\tlinkContainer({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\talignment: this.alignment(),\n\t\t\t\tclass: this.containerClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget iconClass() {\n\t\treturn cn(\n\t\t\tlinkIcon({\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t\tclass: this.iconClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget dropdownClass() {\n\t\treturn cn({ 'invisible h-0 mt-[5px]': this.opened === false, 'visible h-auto mt-[5px] grid grid-cols-[max-content_1fr]': this.opened === true });\n\t}\n\n\tget isOpenedClass() {\n\t\treturn cn(\n\t\t\t{ 'rotate-0 transition-transform duration-150 ease-ease-out-back': this.opened === false },\n\t\t\t{ 'rotate-90 transition-transform duration-150 ease-ease-out-back': this.opened === true },\n\t\t);\n\t}\n\n\tngOnInit(): void {\n\t\tthis.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe(() => {\n\t\t\tconst currentPath = this.router.url;\n\t\t\tthis.updateOpenedState(currentPath);\n\t\t});\n\n\t\tconst lastOpenedNavlink = localStorage.getItem('lastOpenedNavlink');\n\t\tif (lastOpenedNavlink !== null) {\n\t\t\tthis.opened = this.childrenRoutes()?.some((route) => lastOpenedNavlink === this.route()?.path + route.path) ?? false;\n\t\t}\n\t}\n\n\tupdateOpenedState(currentPath: string): void {\n\t\tthis.opened = this.childrenRoutes()?.some((route) => currentPath.includes(this.route()?.path + route.path)) ?? false;\n\t\tlocalStorage.setItem('lastOpenedNavlink', currentPath);\n\t}\n\n\ttoggle() {\n\t\tthis.opened = !this.opened;\n\t}\n}\n","@let routeVar = this.route();\n@let childrenRoutesVar = this.childrenRoutes();\n@let fontSizeVar = this.fontSize();\n@let iconNameVar = this.iconName();\n@let routerLinkActiveOptionsVar = this.routerLinkActiveOptions();\n@let variantVar = this.variant();\n\n@if (variantVar === 'btn-primary' || variantVar === 'btn-secondary' || variantVar === 'btn-warning' || variantVar === 'btn-error') {\n\t@if (routeVar !== undefined) {\n\t\t<a\n\t\t\t[class]=\"containerClass\"\n\t\t\t[routerLink]=\"routeVar.path\"\n\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t>\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t} @else {\n\t\t<a [class]=\"containerClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t}\n} @else if (variantVar === 'btn-collapsable-primary') {\n\t@if (routeVar !== undefined) {\n\t\t<button [class]=\"containerClass\" (click)=\"toggle()\">\n\t\t\t<div class=\"inline-flex items-center justify-start gap-2\">\n\t\t\t\t@if (iconNameVar) {\n\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t}\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\trouteVar.label\n\t\t\t\t}}</span>\n\t\t\t</div>\n\t\t\t<div [class]=\"isOpenedClass\">\n\t\t\t\t<st-icon [iconName]=\"'angle-right'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t</div>\n\t\t</button>\n\n\t\t<div [class]=\"dropdownClass\">\n\t\t\t<div class=\"ml-9 mr-2 h-full w-[2px] self-center bg-separator\"></div>\n\t\t\t<ul class=\"space-y-[5px]\">\n\t\t\t\t@for (item of childrenRoutesVar; track $index) {\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"inline-flex h-auto min-h-12 w-full items-center justify-start gap-2 rounded-btn-md px-6 py-2 font-normal text-neutral hover:bg-primary hover:font-semibold hover:text-neutral-content focus:bg-primary focus:font-semibold focus:text-neutral-content active:hover:bg-primary active:hover:font-semibold active:hover:text-neutral-content active:focus:bg-primary active:focus:font-semibold active:focus:text-neutral-content\"\n\t\t\t\t\t\t\t[routerLink]=\"routeVar?.path ? routeVar?.path + item.path : '#'\"\n\t\t\t\t\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t\t\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\t\t\t\titem.label\n\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t} @else {\n\t\t<button [class]=\"containerClass\" (click)=\"toggle()\">\n\t\t\t<div class=\"inline-flex items-center justify-start gap-2\">\n\t\t\t\t@if (iconNameVar) {\n\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t}\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ 'Empty' }}</span>\n\t\t\t</div>\n\t\t\t<div [class]=\"isOpenedClass\">\n\t\t\t\t<st-icon [iconName]=\"'angle-right'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t</div>\n\t\t</button>\n\n\t\t<div [class]=\"dropdownClass\">\n\t\t\t<div class=\"ml-9 mr-2 h-full w-[2px] self-center bg-separator\"></div>\n\t\t\t<ul class=\"space-y-[5px]\">\n\t\t\t\t@for (item of childrenRoutesVar; track $index) {\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"inline-flex h-auto min-h-12 w-full items-center justify-start gap-2 rounded-btn-md px-6 py-2 font-normal text-neutral hover:bg-primary hover:font-semibold hover:text-neutral-content focus:bg-primary focus:font-semibold focus:text-neutral-content active:hover:bg-primary active:hover:font-semibold active:hover:text-neutral-content active:focus:bg-primary active:focus:font-semibold active:focus:text-neutral-content\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\t\t\t\titem.label\n\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t}\n} @else {\n\t@if (routeVar !== undefined) {\n\t\t<a\n\t\t\t[class]=\"containerClass\"\n\t\t\t[routerLink]=\"routeVar.path\"\n\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t>\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t} @else {\n\t\t<a [class]=\"containerClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [iconName]=\"iconNameVar ?? 'house'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconNameVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAca,MAAA,aAAa,GAAG,GAAG,CAAC,EAAE,EAA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EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,uBAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,UAAU,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,aAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,OAAA,EAAA,MAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,YAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,WAAW,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAK3E,aAAa,EAAA,UAAA,EAAA,CAAA;kBARzB,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,cACP,IAAI,EAAA,OAAA,EACP,CAAC,mBAAmB,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,CAAC,EAGvE,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,sxOAAA,EAAA,CAAA;;;AE9LhD;;AAEG;;;;"}
|
|
@@ -67,11 +67,11 @@ class ModalComponent {
|
|
|
67
67
|
this.dialog()?.nativeElement.close();
|
|
68
68
|
}
|
|
69
69
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
70
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.2.12", type: ModalComponent, isStandalone: true, selector: "
|
|
70
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.2.12", type: ModalComponent, isStandalone: true, selector: "st-modal", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", 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 }, modalId: { classPropertyName: "modalId", publicName: "modalId", isSignal: true, isRequired: true, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClickOutside: "onClickOutside" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, isSignal: true }], ngImport: i0, template: "<dialog #dialog [id]=\"modalId()\" class=\"modal\">\n\t<div [class]=\"componentClass\">\n\t\t<ng-content />\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"onClickOutside.emit()\">close</button>\n\t</form>\n</dialog>\n", styles: [""] });
|
|
71
71
|
}
|
|
72
72
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalComponent, decorators: [{
|
|
73
73
|
type: Component,
|
|
74
|
-
args: [{ selector: '
|
|
74
|
+
args: [{ selector: 'st-modal', standalone: true, imports: [], template: "<dialog #dialog [id]=\"modalId()\" class=\"modal\">\n\t<div [class]=\"componentClass\">\n\t\t<ng-content />\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"onClickOutside.emit()\">close</button>\n\t</form>\n</dialog>\n" }]
|
|
75
75
|
}] });
|
|
76
76
|
|
|
77
77
|
/**
|