@sixbell-telco/sdk 0.5.3 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +17 -3
- package/_index.scss +6 -0
- package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +20 -0
- package/components/audio-player/button-play/button-play.component.d.ts +23 -0
- package/components/audio-player/index.d.ts +5 -0
- package/components/audio-player/public-api.d.ts +3 -0
- package/components/audio-player/services/audio.service.d.ts +54 -0
- package/components/audio-player/src/audio-player.component.d.ts +34 -0
- package/components/audio-player/track-info/track-info.component.d.ts +8 -0
- package/components/audio-player/volume-control/volume-control.component.d.ts +24 -0
- package/components/button/src/button.component.d.ts +2 -1
- package/components/icon/heroicons/mini/index.d.ts +5 -0
- package/components/icon/heroicons/mini/public-api.d.ts +1 -0
- package/components/icon/heroicons/outline/index.d.ts +5 -0
- package/components/icon/heroicons/outline/public-api.d.ts +1 -0
- package/components/icon/heroicons/solid/index.d.ts +5 -0
- package/components/icon/heroicons/solid/public-api.d.ts +1 -0
- package/components/icon/ionicons/index.d.ts +5 -0
- package/components/icon/ionicons/public-api.d.ts +1 -0
- package/components/toast/services/toast.service.d.ts +0 -1
- package/components/toast/toasts-container/toasts-container.component.d.ts +0 -1
- package/directives/typography/src/typography.directive.d.ts +4 -1
- package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +1 -1
- package/esm2022/components/audio-player/audio-timeline/audio-timeline.component.mjs +76 -0
- package/esm2022/components/audio-player/button-play/button-play.component.mjs +62 -0
- package/esm2022/components/audio-player/public-api.mjs +4 -0
- package/esm2022/components/audio-player/services/audio.service.mjs +186 -0
- package/esm2022/components/audio-player/sixbell-telco-sdk-components-audio-player.mjs +5 -0
- package/esm2022/components/audio-player/src/audio-player.component.mjs +84 -0
- package/esm2022/components/audio-player/track-info/track-info.component.mjs +17 -0
- package/esm2022/components/audio-player/volume-control/volume-control.component.mjs +83 -0
- package/esm2022/components/avatar/src/avatar.component.mjs +1 -1
- package/esm2022/components/button/src/button.component.mjs +5 -3
- package/esm2022/components/dual-list/src/dual-list.component.mjs +2 -2
- package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +2 -2
- package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +1 -1
- package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +1 -1
- package/esm2022/components/forms/combobox/src/combobox.component.mjs +2 -2
- package/esm2022/components/forms/form-error/src/form-error.component.mjs +1 -1
- package/esm2022/components/forms/input/src/input.component.mjs +2 -2
- package/esm2022/components/forms/radio/src/radio.component.mjs +1 -1
- package/esm2022/components/forms/range/src/range.component.mjs +2 -2
- package/esm2022/components/forms/select/src/select.component.mjs +1 -1
- package/esm2022/components/forms/switch/src/switch.component.mjs +1 -1
- package/esm2022/components/forms/textarea/src/textarea.component.mjs +2 -2
- package/esm2022/components/forms/toggle/src/toggle.component.mjs +1 -1
- package/esm2022/components/icon/heroicons/mini/public-api.mjs +2 -0
- package/esm2022/components/icon/heroicons/mini/sixbell-telco-sdk-components-icon-heroicons-mini.mjs +5 -0
- package/esm2022/components/icon/heroicons/outline/public-api.mjs +2 -0
- package/esm2022/components/icon/heroicons/outline/sixbell-telco-sdk-components-icon-heroicons-outline.mjs +5 -0
- package/esm2022/components/icon/heroicons/solid/public-api.mjs +2 -0
- package/esm2022/components/icon/heroicons/solid/sixbell-telco-sdk-components-icon-heroicons-solid.mjs +5 -0
- package/esm2022/components/icon/ionicons/public-api.mjs +2 -0
- package/esm2022/components/icon/ionicons/sixbell-telco-sdk-components-icon-ionicons.mjs +5 -0
- package/esm2022/components/modal/modal-title/modal-title.component.mjs +1 -1
- package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +1 -1
- package/esm2022/components/product-card/src/product-card.component.mjs +2 -2
- package/esm2022/components/progress/src/progress.component.mjs +1 -1
- package/esm2022/components/table/src/table.component.mjs +3 -3
- package/esm2022/components/toast/services/toast.service.mjs +3 -13
- package/esm2022/components/toast/toast-message/toast-message.component.mjs +2 -2
- package/esm2022/components/toast/toasts-container/toasts-container.component.mjs +3 -11
- package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +1 -1
- package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +2 -2
- package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +2 -2
- package/esm2022/directives/typography/src/typography.directive.mjs +9 -2
- package/esm2022/utils/pipes/time/public-api.mjs +2 -0
- package/esm2022/utils/pipes/time/sixbell-telco-sdk-utils-pipes-time.mjs +5 -0
- package/esm2022/utils/pipes/time/src/time.pipe.mjs +19 -0
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +481 -0
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +4 -2
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +1 -1
- 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 +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon-heroicons-mini.mjs +6 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-heroicons-mini.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-heroicons-outline.mjs +6 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-heroicons-outline.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-heroicons-solid.mjs +6 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-heroicons-solid.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-ionicons.mjs +6 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-ionicons.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +4 -22
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +8 -1
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs +26 -0
- package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs.map +1 -0
- package/package.json +104 -65
- package/utils/pipes/time/index.d.ts +5 -0
- package/utils/pipes/time/public-api.d.ts +1 -0
- package/utils/pipes/time/src/time.pipe.d.ts +7 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-toast.mjs","sources":["../../../projects/sdk/components/toast/services/toast.service.ts","../../../projects/sdk/components/toast/toast-message/toast-message.component.ts","../../../projects/sdk/components/toast/toast-message/toast-message.component.html","../../../projects/sdk/components/toast/toasts-container/toasts-container.component.ts","../../../projects/sdk/components/toast/toasts-container/toasts-container.component.html","../../../projects/sdk/components/toast/sixbell-telco-sdk-components-toast.ts"],"sourcesContent":["import { computed, effect, Injectable, signal } from '@angular/core';\nimport { generateUniqueId } from '@sixbell-telco/sdk/utils/generators/uuid';\n\nexport enum ToastTypes {\n\tSUCCESS = 'toast-success',\n\tERROR = 'toast-error',\n\tINFO = 'toast-info',\n\tWARNING = 'toast-warning',\n}\n\nexport type Toast = {\n\tid: string;\n\ttype: ToastTypes;\n\tmessage: string;\n\ttitle: string;\n\tduration: number;\n\tanimate: 'enter' | 'leave';\n};\n\n@Injectable({\n\tprovidedIn: 'root',\n})\nexport class ToastService {\n\tprivate toastsSignal = signal<Toast[]>([]);\n\tprivate expandedSignal = signal(false);\n\n\t// Create computed signals for derived state\n\treadonly toasts = computed(() => this.toastsSignal());\n\treadonly expanded = computed(() => this.expandedSignal());\n\treadonly isEmpty = computed(() => this.toasts().length === 0);\n\n\tconstructor() {\n\t\t// Debug effect to monitor state changes\n\t\teffect(() => {\n\t\t\tconsole.log('Toast state changed:', {\n\t\t\t\ttoasts: this.toasts(),\n\t\t\t\texpanded: this.expanded(),\n\t\t\t\tisEmpty: this.isEmpty(),\n\t\t\t});\n\t\t});\n\t}\n\n\tnotify(type: ToastTypes, message: string, title: string = '', duration: number = 10000) {\n\t\tconst toast: Toast = {\n\t\t\tid: generateUniqueId(),\n\t\t\ttype,\n\t\t\tmessage,\n\t\t\ttitle,\n\t\t\tduration,\n\t\t\tanimate: 'enter',\n\t\t};\n\n\t\t// Create a new array reference to ensure change detection\n\t\tthis.toastsSignal.update((toasts) => [toast, ...toasts]);\n\n\t\tthis.scheduleDismiss(toast);\n\t}\n\n\tscheduleDismiss(toast: Toast) {\n\t\tsetTimeout(() => {\n\t\t\tthis.remove(toast);\n\t\t}, toast.duration);\n\t}\n\n\tanimateRemoval(toast: Toast) {\n\t\tthis.toastsSignal.update((toasts) => toasts.map((t) => (t.id === toast.id ? { ...t, animate: 'leave' } : t)));\n\t}\n\n\tremove(toast: Toast) {\n\t\tthis.toastsSignal.update((toasts) => toasts.filter((t) => t.id !== toast.id));\n\n\t\tif (this.isEmpty()) {\n\t\t\tthis.collapse();\n\t\t}\n\t}\n\n\tclear() {\n\t\tthis.toastsSignal.set([]);\n\t\tthis.collapse();\n\t}\n\n\ttoggle() {\n\t\tthis.expandedSignal.update((expanded) => !expanded);\n\t}\n\n\tcollapse() {\n\t\tthis.expandedSignal.set(false);\n\t}\n\n\texpand() {\n\t\tthis.expandedSignal.set(true);\n\t}\n}\n","import { NgClass } from '@angular/common';\nimport { Component, input, output } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matCheckCircleOutline, matErrorOutline, matInfoOutline, matWarningOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { Toast, ToastTypes } from '../services/toast.service';\n\nexport const toastComponent = cva(\n\t[\n\t\t'toast-message relative mb-2 flex min-h-20 h-20 w-[400px] cursor-pointer items-center rounded-lg border-2 bg-base-200 p-2 transition-all duration-300 ease-ease-in-and-out-back',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tinfo: ['border-primary', 'text-primary'],\n\t\t\t\tsuccess: ['border-success', 'text-success'],\n\t\t\t\twarning: ['border-warning', 'text-warning'],\n\t\t\t\terror: ['border-error', 'text-error'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tvariant: 'info',\n\t\t},\n\t},\n);\n\nexport type ToastVariantProps = 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\nexport type ToastProps = {\n\tvariant?: ToastVariantProps;\n};\n\n@Component({\n\tselector: 'st-toast-message',\n\tstandalone: true,\n\timports: [TypographyDirective, IconComponent, NgClass],\n\ttemplateUrl: './toast-message.component.html',\n})\nexport class ToastMessageComponent {\n\tvariant = input<ToastVariantProps>();\n\tclasses = input<string>('');\n\ttypes = ToastTypes;\n\ttoast = input.required<Toast>();\n\ttoastAmount = input.required<number>();\n\ttoastIndex = input.required<number>();\n\tonClick = output<Toast>();\n\ticonCheckCircle = matCheckCircleOutline;\n\ticonWarning = matWarningOutline;\n\ticonError = matErrorOutline;\n\ticonInfo = matInfoOutline;\n\n\tget componentClass() {\n\t\tif (this.toast().type === this.types.SUCCESS) {\n\t\t\treturn cn(\n\t\t\t\ttoastComponent({\n\t\t\t\t\tvariant: 'success',\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t} else if (this.toast().type === this.types.ERROR) {\n\t\t\treturn cn(\n\t\t\t\ttoastComponent({\n\t\t\t\t\tvariant: 'error',\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t} else if (this.toast().type === this.types.INFO) {\n\t\t\treturn cn(\n\t\t\t\ttoastComponent({\n\t\t\t\t\tvariant: 'info',\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t} else if (this.toast().type === this.types.WARNING) {\n\t\t\treturn cn(\n\t\t\t\ttoastComponent({\n\t\t\t\t\tvariant: 'warning',\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t} else {\n\t\t\treturn cn(\n\t\t\t\ttoastComponent({\n\t\t\t\t\tvariant: 'info',\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\t}\n\n\thandleClose() {\n\t\tthis.onClick.emit(this.toast());\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<li\n\t[class]=\"componentClass\"\n\t[ngClass]=\"{\n\t\t'bottom-0 animate-toast-slide-out': toast().animate === 'leave' && toastAmount() > 1,\n\t\t'animate-slide-out': toast().animate === 'leave' && toastAmount() === 1,\n\t\t'animate-fade-out': toast().animate === 'leave' && toastAmount() > 1 && toastIndex() === 0,\n\t\t'animate-slide-in': toast().animate === 'enter',\n\t}\"\n\t(click)=\"handleClose()\"\n\trole=\"button\"\n\ttabindex=\"0\"\n>\n\t<div class=\"flex flex-1 items-center justify-center\">\n\t\t@if (this.toast().type === this.types.SUCCESS) {\n\t\t\t<st-icon [icon]=\"iconCheckCircle\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.WARNING) {\n\t\t\t<st-icon [icon]=\"iconWarning\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.ERROR) {\n\t\t\t<st-icon [icon]=\"iconError\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.INFO) {\n\t\t\t<st-icon [icon]=\"iconInfo\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t}\n\t</div>\n\t<div class=\"flex-[4]\">\n\t\t<div class=\"grid grid-rows-[min-content_1fr]\">\n\t\t\t<div typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'semibold'\">{{ toast().title }}</div>\n\t\t\t<div typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">\n\t\t\t\t{{ toast().message }}\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</li>\n","import { NgClass } from '@angular/common';\nimport { Component, computed, effect, inject } from '@angular/core';\nimport { Toast, ToastService } from '../services/toast.service';\nimport { ToastMessageComponent } from '../toast-message/toast-message.component';\n\n@Component({\n\tselector: 'st-toasts-container',\n\tstandalone: true,\n\timports: [ToastMessageComponent, NgClass],\n\ttemplateUrl: './toasts-container.component.html',\n})\nexport class ToastsContainerComponent {\n\ttoastService = inject(ToastService);\n\n\tprotected containerClasses = computed(() => {\n\t\tconst toastCount = this.toastService.toasts().length;\n\t\tconst isExpanded = this.toastService.expanded();\n\n\t\treturn {\n\t\t\t'min-h-64': toastCount === 3 && isExpanded,\n\t\t\t'min-h-48': toastCount === 2 && isExpanded,\n\t\t\t'h-24 min-h-24': toastCount === 1 && isExpanded,\n\t\t\t'h-28 min-h-28': toastCount > 0 && !isExpanded,\n\t\t\t'h-0 min-h-0': toastCount === 0 && !isExpanded,\n\t\t};\n\t});\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconsole.log('Container state:', {\n\t\t\t\ttoastCount: this.toastService.toasts().length,\n\t\t\t\texpanded: this.toastService.expanded(),\n\t\t\t});\n\t\t});\n\t}\n\n\thandleExpand(): void {\n\t\tthis.toastService.expand();\n\t}\n\n\thandleCollapse(): void {\n\t\tthis.toastService.collapse();\n\t}\n\n\thandleRemove(toast: Toast): void {\n\t\tthis.toastService.animateRemoval(toast);\n\t\tsetTimeout(() => {\n\t\t\tthis.toastService.remove(toast);\n\t\t}, 500);\n\t}\n\n\tgetToastIndex(toast: Toast): number {\n\t\treturn this.toastService.toasts().findIndex((t) => t.id === toast.id);\n\t}\n}\n","<section class=\"fixed bottom-2 right-4 z-10\">\n\t<ol\n\t\tclass=\"toast-container group flex min-w-[400px] flex-col gap-2\"\n\t\t[ngClass]=\"containerClasses()\"\n\t\t[attr.aria-expanded]=\"toastService.expanded()\"\n\t\t(mouseenter)=\"handleExpand()\"\n\t\t(mouseleave)=\"handleCollapse()\"\n\t>\n\t\t@for (toast of toastService.toasts(); track toast.id) {\n\t\t\t<st-toast-message\n\t\t\t\t[toast]=\"toast\"\n\t\t\t\t[toastIndex]=\"getToastIndex(toast)\"\n\t\t\t\t[toastAmount]=\"toastService.toasts().length\"\n\t\t\t\t(onClick)=\"handleRemove($event)\"\n\t\t\t/>\n\t\t}\n\t</ol>\n</section>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;IAGY,WAKX;AALD,CAAA,UAAY,UAAU,EAAA;AACrB,IAAA,UAAA,CAAA,SAAA,CAAA,GAAA,eAAyB,CAAA;AACzB,IAAA,UAAA,CAAA,OAAA,CAAA,GAAA,aAAqB,CAAA;AACrB,IAAA,UAAA,CAAA,MAAA,CAAA,GAAA,YAAmB,CAAA;AACnB,IAAA,UAAA,CAAA,SAAA,CAAA,GAAA,eAAyB,CAAA;AAC1B,CAAC,EALW,UA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,EAAA,IAAA,EAAA,wBAAwB,ECXrC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,wlBAkBA,EDVW,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,qBAAqB,yJAAE,OAAO,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAG5B,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,qBAAqB,cACnB,IAAI,EAAA,OAAA,EACP,CAAC,qBAAqB,EAAE,OAAO,CAAC,EAAA,QAAA,EAAA,wlBAAA,EAAA,CAAA;;;AER1C;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-toast.mjs","sources":["../../../projects/sdk/components/toast/services/toast.service.ts","../../../projects/sdk/components/toast/toast-message/toast-message.component.ts","../../../projects/sdk/components/toast/toast-message/toast-message.component.html","../../../projects/sdk/components/toast/toasts-container/toasts-container.component.ts","../../../projects/sdk/components/toast/toasts-container/toasts-container.component.html","../../../projects/sdk/components/toast/sixbell-telco-sdk-components-toast.ts"],"sourcesContent":["import { computed, Injectable, signal } from '@angular/core';\nimport { generateUniqueId } from '@sixbell-telco/sdk/utils/generators/uuid';\n\nexport enum ToastTypes {\n\tSUCCESS = 'toast-success',\n\tERROR = 'toast-error',\n\tINFO = 'toast-info',\n\tWARNING = 'toast-warning',\n}\n\nexport type Toast = {\n\tid: string;\n\ttype: ToastTypes;\n\tmessage: string;\n\ttitle: string;\n\tduration: number;\n\tanimate: 'enter' | 'leave';\n};\n\n@Injectable({\n\tprovidedIn: 'root',\n})\nexport class ToastService {\n\tprivate toastsSignal = signal<Toast[]>([]);\n\tprivate expandedSignal = signal(false);\n\n\t// Create computed signals for derived state\n\treadonly toasts = computed(() => this.toastsSignal());\n\treadonly expanded = computed(() => this.expandedSignal());\n\treadonly isEmpty = computed(() => this.toasts().length === 0);\n\n\tnotify(type: ToastTypes, message: string, title: string = '', duration: number = 10000) {\n\t\tconst toast: Toast = {\n\t\t\tid: generateUniqueId(),\n\t\t\ttype,\n\t\t\tmessage,\n\t\t\ttitle,\n\t\t\tduration,\n\t\t\tanimate: 'enter',\n\t\t};\n\n\t\t// Create a new array reference to ensure change detection\n\t\tthis.toastsSignal.update((toasts) => [toast, ...toasts]);\n\n\t\tthis.scheduleDismiss(toast);\n\t}\n\n\tscheduleDismiss(toast: Toast) {\n\t\tsetTimeout(() => {\n\t\t\tthis.remove(toast);\n\t\t}, toast.duration);\n\t}\n\n\tanimateRemoval(toast: Toast) {\n\t\tthis.toastsSignal.update((toasts) => toasts.map((t) => (t.id === toast.id ? { ...t, animate: 'leave' } : t)));\n\t}\n\n\tremove(toast: Toast) {\n\t\tthis.toastsSignal.update((toasts) => toasts.filter((t) => t.id !== toast.id));\n\n\t\tif (this.isEmpty()) {\n\t\t\tthis.collapse();\n\t\t}\n\t}\n\n\tclear() {\n\t\tthis.toastsSignal.set([]);\n\t\tthis.collapse();\n\t}\n\n\ttoggle() {\n\t\tthis.expandedSignal.update((expanded) => !expanded);\n\t}\n\n\tcollapse() {\n\t\tthis.expandedSignal.set(false);\n\t}\n\n\texpand() {\n\t\tthis.expandedSignal.set(true);\n\t}\n}\n","import { NgClass } from '@angular/common';\nimport { Component, input, output } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matCheckCircleOutline, matErrorOutline, matInfoOutline, matWarningOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { Toast, ToastTypes } from '../services/toast.service';\n\nexport const toastComponent = cva(\n\t[\n\t\t'toast-message relative mb-2 flex min-h-20 h-20 w-[400px] cursor-pointer items-center rounded-lg border-2 bg-base-200 p-2 transition-all duration-300 ease-ease-in-and-out-back',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tinfo: ['border-primary', 'text-primary'],\n\t\t\t\tsuccess: ['border-success', 'text-success'],\n\t\t\t\twarning: ['border-warning', 'text-warning'],\n\t\t\t\terror: ['border-error', 'text-error'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tvariant: 'info',\n\t\t},\n\t},\n);\n\nexport type ToastVariantProps = 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\nexport type ToastProps = {\n\tvariant?: ToastVariantProps;\n};\n\n@Component({\n\tselector: 'st-toast-message',\n\tstandalone: true,\n\timports: [TypographyDirective, IconComponent, NgClass],\n\ttemplateUrl: './toast-message.component.html',\n})\nexport class ToastMessageComponent {\n\tvariant = input<ToastVariantProps>();\n\tclasses = input<string>('');\n\ttypes = ToastTypes;\n\ttoast = input.required<Toast>();\n\ttoastAmount = input.required<number>();\n\ttoastIndex = input.required<number>();\n\tonClick = output<Toast>();\n\ticonCheckCircle = matCheckCircleOutline;\n\ticonWarning = matWarningOutline;\n\ticonError = matErrorOutline;\n\ticonInfo = matInfoOutline;\n\n\tget componentClass() {\n\t\tif (this.toast().type === this.types.SUCCESS) {\n\t\t\treturn cn(\n\t\t\t\ttoastComponent({\n\t\t\t\t\tvariant: 'success',\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t} else if (this.toast().type === this.types.ERROR) {\n\t\t\treturn cn(\n\t\t\t\ttoastComponent({\n\t\t\t\t\tvariant: 'error',\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t} else if (this.toast().type === this.types.INFO) {\n\t\t\treturn cn(\n\t\t\t\ttoastComponent({\n\t\t\t\t\tvariant: 'info',\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t} else if (this.toast().type === this.types.WARNING) {\n\t\t\treturn cn(\n\t\t\t\ttoastComponent({\n\t\t\t\t\tvariant: 'warning',\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t} else {\n\t\t\treturn cn(\n\t\t\t\ttoastComponent({\n\t\t\t\t\tvariant: 'info',\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\t}\n\n\thandleClose() {\n\t\tthis.onClick.emit(this.toast());\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<li\n\t[class]=\"componentClass\"\n\t[ngClass]=\"{\n\t\t'bottom-0 animate-toast-slide-out': toast().animate === 'leave' && toastAmount() > 1,\n\t\t'animate-slide-out': toast().animate === 'leave' && toastAmount() === 1,\n\t\t'animate-fade-out': toast().animate === 'leave' && toastAmount() > 1 && toastIndex() === 0,\n\t\t'animate-slide-in': toast().animate === 'enter',\n\t}\"\n\t(click)=\"handleClose()\"\n\trole=\"button\"\n\ttabindex=\"0\"\n>\n\t<div class=\"flex flex-1 items-center justify-center\">\n\t\t@if (this.toast().type === this.types.SUCCESS) {\n\t\t\t<st-icon [icon]=\"iconCheckCircle\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.WARNING) {\n\t\t\t<st-icon [icon]=\"iconWarning\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.ERROR) {\n\t\t\t<st-icon [icon]=\"iconError\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.INFO) {\n\t\t\t<st-icon [icon]=\"iconInfo\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t}\n\t</div>\n\t<div class=\"flex-[4]\">\n\t\t<div class=\"grid grid-rows-[min-content_1fr]\">\n\t\t\t<div typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'semibold'\">{{ toast().title }}</div>\n\t\t\t<div typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">\n\t\t\t\t{{ toast().message }}\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</li>\n","import { NgClass } from '@angular/common';\nimport { Component, computed, inject } from '@angular/core';\nimport { Toast, ToastService } from '../services/toast.service';\nimport { ToastMessageComponent } from '../toast-message/toast-message.component';\n\n@Component({\n\tselector: 'st-toasts-container',\n\tstandalone: true,\n\timports: [ToastMessageComponent, NgClass],\n\ttemplateUrl: './toasts-container.component.html',\n})\nexport class ToastsContainerComponent {\n\ttoastService = inject(ToastService);\n\n\tprotected containerClasses = computed(() => {\n\t\tconst toastCount = this.toastService.toasts().length;\n\t\tconst isExpanded = this.toastService.expanded();\n\n\t\treturn {\n\t\t\t'min-h-64': toastCount === 3 && isExpanded,\n\t\t\t'min-h-48': toastCount === 2 && isExpanded,\n\t\t\t'h-24 min-h-24': toastCount === 1 && isExpanded,\n\t\t\t'h-28 min-h-28': toastCount > 0 && !isExpanded,\n\t\t\t'h-0 min-h-0': toastCount === 0 && !isExpanded,\n\t\t};\n\t});\n\n\thandleExpand(): void {\n\t\tthis.toastService.expand();\n\t}\n\n\thandleCollapse(): void {\n\t\tthis.toastService.collapse();\n\t}\n\n\thandleRemove(toast: Toast): void {\n\t\tthis.toastService.animateRemoval(toast);\n\t\tsetTimeout(() => {\n\t\t\tthis.toastService.remove(toast);\n\t\t}, 500);\n\t}\n\n\tgetToastIndex(toast: Toast): number {\n\t\treturn this.toastService.toasts().findIndex((t) => t.id === toast.id);\n\t}\n}\n","<section class=\"fixed bottom-2 right-4 z-10\">\n\t<ol\n\t\tclass=\"toast-container group flex min-w-[400px] flex-col gap-2\"\n\t\t[ngClass]=\"containerClasses()\"\n\t\t[attr.aria-expanded]=\"toastService.expanded()\"\n\t\t(mouseenter)=\"handleExpand()\"\n\t\t(mouseleave)=\"handleCollapse()\"\n\t>\n\t\t@for (toast of toastService.toasts(); track toast.id) {\n\t\t\t<st-toast-message\n\t\t\t\t[toast]=\"toast\"\n\t\t\t\t[toastIndex]=\"getToastIndex(toast)\"\n\t\t\t\t[toastAmount]=\"toastService.toasts().length\"\n\t\t\t\t(onClick)=\"handleRemove($event)\"\n\t\t\t/>\n\t\t}\n\t</ol>\n</section>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;IAGY,WAKX;AALD,CAAA,UAAY,UAAU,EAAA;AACrB,IAAA,UAAA,CAAA,SAAA,CAAA,GAAA,eAAyB,CAAA;AACzB,IAAA,UAAA,CAAA,OAAA,CAAA,GAAA,aAAqB,CAAA;AACrB,IAAA,UAAA,CAAA,MAAA,CAAA,GAAA,YAAmB,CAAA;AACnB,IAAA,UAAA,CAAA,SAAA,CAAA,GAAA,eAAyB,CAAA;AAC1B,CAAC,EALW,UAAU,KAAV,UAAU,GAKrB,EAAA,CAAA,CAAA,CAAA;MAcY,YAAY,CAAA;AAChB,IAAA,YAAY,GAAG,MAAM,CAAU,EAAE,CAAC,CAAC;AACnC,IAAA,cAAc,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;;IAG9B,MAAM,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;IAC7C,QAAQ,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;AACjD,IAAA,OAAO,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAE9D,MAAM,CAAC,IAAgB,EAAE,OAAe,EAAE,KAAgB,GAAA,EAAE,EAAE,QAAA,GAAmB,KAAK,EAAA;AACrF,QAAA,MAAM,KAAK,GAAU;YACpB,EAAE,EAAE,gBAAgB,EAAE;YACtB,IAAI;YACJ,OAAO;YACP,KAAK;YACL,QAAQ;AACR,YAAA,OAAO,EAAE,OAAO;SAChB,CAA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IAAA,EAAA,wBAAwB,ECXrC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,wlBAkBA,EDVW,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,qBAAqB,yJAAE,OAAO,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAG5B,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,qBAAqB,cACnB,IAAI,EAAA,OAAA,EACP,CAAC,qBAAqB,EAAE,OAAO,CAAC,EAAA,QAAA,EAAA,wlBAAA,EAAA,CAAA;;;AER1C;;AAEG;;;;"}
|
|
@@ -20,7 +20,7 @@ class WizardMarkerComponent {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardMarkerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: WizardMarkerComponent, isStandalone: true, selector: "st-wizard-marker", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@let contentVar = content();\n<div [class]=\"getStepStatusMarkerClasses(contentVar)\">\n\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">{{ getStatusMarkerMessage(contentVar) }}</span>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: WizardMarkerComponent, isStandalone: true, selector: "st-wizard-marker", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@let contentVar = content();\n<div [class]=\"getStepStatusMarkerClasses(contentVar)\">\n\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">{{ getStatusMarkerMessage(contentVar) }}</span>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
24
24
|
}
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardMarkerComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
@@ -58,7 +58,7 @@ class WizardStepComponent {
|
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
61
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: WizardStepComponent, isStandalone: true, selector: "st-wizard-step", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, currentStep: { classPropertyName: "currentStep", publicName: "currentStep", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@let currentStepVar = currentStep();\n@let contentVar = content();\n\n<div [class]=\"getStepClasses(currentStepVar, contentVar).outerClasses\">\n\t<div [class]=\"getStepClasses(currentStepVar, contentVar).innerClasses\">\n\t\t<div [class]=\"stepNumberClasses\">\n\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">\n\t\t\t\t{{ contentVar.step() + 1 }}\n\t\t\t</span>\n\t\t</div>\n\t\t<st-icon [class]=\"stepIconClasses\" [icon]=\"icon\" color=\"inherit\" size=\"md\"></st-icon>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
61
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: WizardStepComponent, isStandalone: true, selector: "st-wizard-step", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, currentStep: { classPropertyName: "currentStep", publicName: "currentStep", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@let currentStepVar = currentStep();\n@let contentVar = content();\n\n<div [class]=\"getStepClasses(currentStepVar, contentVar).outerClasses\">\n\t<div [class]=\"getStepClasses(currentStepVar, contentVar).innerClasses\">\n\t\t<div [class]=\"stepNumberClasses\">\n\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">\n\t\t\t\t{{ contentVar.step() + 1 }}\n\t\t\t</span>\n\t\t</div>\n\t\t<st-icon [class]=\"stepIconClasses\" [icon]=\"icon\" color=\"inherit\" size=\"md\"></st-icon>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
62
62
|
}
|
|
63
63
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardStepComponent, decorators: [{
|
|
64
64
|
type: Component,
|
|
@@ -166,7 +166,7 @@ class WizardWrapperComponent {
|
|
|
166
166
|
return { outerClasses, innerClasses };
|
|
167
167
|
}
|
|
168
168
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
169
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: WizardWrapperComponent, isStandalone: true, selector: "st-wizard", inputs: { currentStep: { classPropertyName: "currentStep", publicName: "currentStep", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { currentStep: "currentStepChange", onBack: "onBack", oncompleted: "oncompleted" }, queries: [{ propertyName: "contents", predicate: WizardContentComponent, isSignal: true }], ngImport: i0, template: "@let contentsVar = contents();\n@let currentStepVar = currentStep();\n\n<div class=\"flex flex-col gap-5\">\n\t<ul class=\"flex gap-4 px-[20%] pt-6\">\n\t\t@for (content of contentsVar; track $index) {\n\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t<st-wizard-step [currentStep]=\"currentStepVar\" [content]=\"content\" [status]=\"content.status()\"></st-wizard-step>\n\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t<div class=\"flex flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-marker [content]=\"content\"></st-wizard-marker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<st-wizard-sub-step [currentStep]=\"currentStepVar\" [content]=\"content\"></st-wizard-sub-step>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t\t<div class=\"w-[50px]\">\n\t\t\t\t\t<div class=\"flex max-w-fit flex-col items-center text-secondary\">\n\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ content.name() }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ content.label() }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t}\n\t</ul>\n\n\t<div>\n\t\t<ng-content></ng-content>\n\t</div>\n\n\t<div class=\"flex items-center justify-center gap-5\">\n\t\t@if (isFirstStep()) {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button variant=\"secondary\" (click)=\"handleBack()\" [block]=\"true\">Volver</st-button>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [icon]=\"icon\" variant=\"secondary\" (click)=\"handlePreviousStep()\" [block]=\"true\">Anterior</st-button>\n\t\t\t</div>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [disabled]=\"!allStepsAreValid()\" variant=\"secondary\" (click)=\"handleComplete()\" [block]=\"true\">Finalizar</st-button>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [disabled]=\"!isCurrentStepValid()\" (click)=\"handleNextStep()\" [block]=\"true\">Siguiente</st-button>\n\t\t\t</div>\n\t\t}\n\t</div>\n</div>\n", dependencies: [{ kind: "component", type: WizardStepComponent, selector: "st-wizard-step", inputs: ["status", "content", "currentStep"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "circle", "square", "glass", "block", "loader", "size", "icon", "iconPosition", "type", "disabled"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight"] }, { kind: "component", type: WizardMarkerComponent, selector: "st-wizard-marker", inputs: ["content"] }, { kind: "component", type: WizardSubStepComponent, selector: "st-wizard-sub-step", inputs: ["content", "currentStep"] }] });
|
|
169
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: WizardWrapperComponent, isStandalone: true, selector: "st-wizard", inputs: { currentStep: { classPropertyName: "currentStep", publicName: "currentStep", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { currentStep: "currentStepChange", onBack: "onBack", oncompleted: "oncompleted" }, queries: [{ propertyName: "contents", predicate: WizardContentComponent, isSignal: true }], ngImport: i0, template: "@let contentsVar = contents();\n@let currentStepVar = currentStep();\n\n<div class=\"flex flex-col gap-5\">\n\t<ul class=\"flex gap-4 px-[20%] pt-6\">\n\t\t@for (content of contentsVar; track $index) {\n\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t<st-wizard-step [currentStep]=\"currentStepVar\" [content]=\"content\" [status]=\"content.status()\"></st-wizard-step>\n\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t<div class=\"flex flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-marker [content]=\"content\"></st-wizard-marker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<st-wizard-sub-step [currentStep]=\"currentStepVar\" [content]=\"content\"></st-wizard-sub-step>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t\t<div class=\"w-[50px]\">\n\t\t\t\t\t<div class=\"flex max-w-fit flex-col items-center text-secondary\">\n\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ content.name() }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ content.label() }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t}\n\t</ul>\n\n\t<div>\n\t\t<ng-content></ng-content>\n\t</div>\n\n\t<div class=\"flex items-center justify-center gap-5\">\n\t\t@if (isFirstStep()) {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button variant=\"secondary\" (click)=\"handleBack()\" [block]=\"true\">Volver</st-button>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [icon]=\"icon\" variant=\"secondary\" (click)=\"handlePreviousStep()\" [block]=\"true\">Anterior</st-button>\n\t\t\t</div>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [disabled]=\"!allStepsAreValid()\" variant=\"secondary\" (click)=\"handleComplete()\" [block]=\"true\">Finalizar</st-button>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [disabled]=\"!isCurrentStepValid()\" (click)=\"handleNextStep()\" [block]=\"true\">Siguiente</st-button>\n\t\t\t</div>\n\t\t}\n\t</div>\n</div>\n", dependencies: [{ kind: "component", type: WizardStepComponent, selector: "st-wizard-step", inputs: ["status", "content", "currentStep"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "circle", "square", "glass", "block", "loader", "size", "shadow", "icon", "iconPosition", "type", "disabled"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: WizardMarkerComponent, selector: "st-wizard-marker", inputs: ["content"] }, { kind: "component", type: WizardSubStepComponent, selector: "st-wizard-sub-step", inputs: ["content", "currentStep"] }] });
|
|
170
170
|
}
|
|
171
171
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardWrapperComponent, decorators: [{
|
|
172
172
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-wizard.mjs","sources":["../../../projects/sdk/components/wizard/wizard-marker/wizard-marker.component.ts","../../../projects/sdk/components/wizard/wizard-marker/wizard-marker.component.html","../../../projects/sdk/components/wizard/wizard-step/wizard-step.component.ts","../../../projects/sdk/components/wizard/wizard-step/wizard-step.component.html","../../../projects/sdk/components/wizard/wizard-sub-step/wizard-sub-step.component.ts","../../../projects/sdk/components/wizard/wizard-sub-step/wizard-sub-step.component.html","../../../projects/sdk/components/wizard/wizard-wrapper/wizard-wrapper.component.ts","../../../projects/sdk/components/wizard/wizard-wrapper/wizard-wrapper.component.html","../../../projects/sdk/components/wizard/wizard-content/wizard-content.component.ts","../../../projects/sdk/components/wizard/wizard-content/wizard-content.component.html","../../../projects/sdk/components/wizard/sixbell-telco-sdk-components-wizard.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardContentComponent } from '../wizard-content/wizard-content.component';\n\n@Component({\n\tselector: 'st-wizard-marker',\n\tstandalone: true,\n\timports: [TypographyDirective],\n\ttemplateUrl: './wizard-marker.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WizardMarkerComponent {\n\tcontent = input.required<WizardContentComponent>();\n\n\tgetStatusMarkerMessage(content: WizardContentComponent) {\n\t\treturn content.status() === 'completed' ? 'Completado' : content.status() === 'in progress' ? 'En progreso' : 'Pendiente';\n\t}\n\n\tgetStepStatusMarkerClasses(content: WizardContentComponent) {\n\t\treturn cn('rounded-btn-xs', {\n\t\t\t'transition-colors duration-300 ease-out delay-150 bg-primary bg-opacity-20 text-primary px-3 py-[5px]': content.status() === 'completed',\n\t\t\t'transition-colors duration-300 ease-out delay-150 bg-neutral-content text-secondary border-[2px] border-secondary px-[10px] py-[3px]':\n\t\t\t\tcontent.status() === 'in progress',\n\t\t\t'transition-colors duration-300 ease-out delay-150 bg-neutral-content text-tertiary border-[2px] border-tertiary px-[10px] py-[3px]':\n\t\t\t\tcontent.status() === 'pending',\n\t\t});\n\t}\n}\n","@let contentVar = content();\n<div [class]=\"getStepStatusMarkerClasses(contentVar)\">\n\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">{{ getStatusMarkerMessage(contentVar) }}</span>\n</div>\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matCheckOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardContentComponent, WizardStepStatus } from '../wizard-content/wizard-content.component';\n\n@Component({\n\tselector: 'st-wizard-step',\n\ttemplateUrl: './wizard-step.component.html',\n\tstandalone: true,\n\timports: [TypographyDirective, IconComponent],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WizardStepComponent {\n\tstatus = input.required<WizardStepStatus>();\n\tcontent = input.required<WizardContentComponent>();\n\tcurrentStep = input.required<number>();\n\ticon = matCheckOutline;\n\n\tgetStepClasses(currentStep: number, content: WizardContentComponent) {\n\t\tconst outerClasses = cn(\n\t\t\t'flex h-[50px] min-h-[50px] w-[50px] min-w-[50px] items-center justify-center rounded-full border-[1px] border-solid p-[2px] font-medium text-neutral-content',\n\t\t\t{\n\t\t\t\t'border-primary currentStep transition-colors duration-300 ease-out':\n\t\t\t\t\tcurrentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),\n\t\t\t\t'border-primary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'completed',\n\t\t\t\t'border-secondary notCurrentStep transition-colors duration-300 ease-out delay-[300ms]':\n\t\t\t\t\tcurrentStep !== content.step() && content.status() === 'pending',\n\t\t\t},\n\t\t);\n\t\tconst innerClasses = cn('flex h-full w-full items-center justify-center rounded-full', {\n\t\t\t'bg-primary currentStep transition-colors duration-300 ease-out':\n\t\t\t\tcurrentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),\n\t\t\t'bg-primary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'completed',\n\t\t\t'bg-secondary notCurrentStep transition-colors duration-300 ease-out delay-[300ms]':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'pending',\n\t\t});\n\t\treturn { outerClasses, innerClasses };\n\t}\n\n\tget stepNumberClasses() {\n\t\treturn cn({\n\t\t\t'hidden opacity-0': this.status() === 'completed',\n\t\t\t'animate-fade-in animate-duration-300 delay-[350ms] opacity-1': this.status() === 'in progress' || this.status() === 'pending',\n\t\t});\n\t}\n\n\tget stepIconClasses() {\n\t\treturn cn({\n\t\t\t'animate-fade-in animate-duration-300 delay-[350ms] opacity-1': this.status() === 'completed',\n\t\t\t'hidden opacity-0': this.status() === 'in progress' || this.status() === 'pending',\n\t\t});\n\t}\n}\n","@let currentStepVar = currentStep();\n@let contentVar = content();\n\n<div [class]=\"getStepClasses(currentStepVar, contentVar).outerClasses\">\n\t<div [class]=\"getStepClasses(currentStepVar, contentVar).innerClasses\">\n\t\t<div [class]=\"stepNumberClasses\">\n\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">\n\t\t\t\t{{ contentVar.step() + 1 }}\n\t\t\t</span>\n\t\t</div>\n\t\t<st-icon [class]=\"stepIconClasses\" [icon]=\"icon\" color=\"inherit\" size=\"md\"></st-icon>\n\t</div>\n</div>\n","import { Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardContentComponent } from '../wizard-content/wizard-content.component';\n\n@Component({\n\tselector: 'st-wizard-sub-step',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './wizard-sub-step.component.html',\n})\nexport class WizardSubStepComponent {\n\tcontent = input.required<WizardContentComponent>();\n\tcurrentStep = input.required<number>();\n\n\tgetSubStepClasses(currentStep: number, content: WizardContentComponent) {\n\t\tconst leftClasses = cn('h-[2px] w-full', {\n\t\t\t'bg-secondary currentStep relative after:absolute after:w-full after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out':\n\t\t\t\tcurrentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),\n\t\t\t'bg-secondary notCurrentSte relative after:absolute after:w-full after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'completed',\n\t\t\t'bg-secondary notCurrentStep relative after:absolute after:w-0 after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out after:delay-[350ms]':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'pending',\n\t\t});\n\n\t\tconst centerClasses = cn('h-3 min-h-3 w-3 min-w-3 rounded-full', {\n\t\t\t'bg-primary currentStep transition-colors duration-300 ease-out delay-300':\n\t\t\t\tcurrentStep === content.step() && content.status() === 'in progress',\n\t\t\t'bg-primary notCurrentStep transition-colors duration-300 ease-out delay-300':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'completed',\n\t\t\t'bg-primary currentStep inProgress transition-colors duration-300 ease-out delay-300':\n\t\t\t\tcurrentStep === content.step() && content.status() === 'completed',\n\t\t\t'bg-secondary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'pending',\n\t\t});\n\n\t\tconst rightClasses = cn('h-[2px] w-full', {\n\t\t\t'bg-secondary currentStep relative after:absolute after:w-full after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out after:delay-[350ms]':\n\t\t\t\tcurrentStep === content.step() && content.status() === 'completed',\n\t\t\t'bg-secondary notCurrentStep relative after:absolute after:w-full after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out after:delay-[350ms]':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'completed',\n\t\t\t'bg-secondary currentStep inProgress relative after:absolute after:w-0 after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out':\n\t\t\t\tcurrentStep === content.step() && content.status() === 'in progress',\n\t\t\t'bg-secondary notCurrentStep relative after:absolute after:w-0 after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'pending',\n\t\t});\n\n\t\treturn { leftClasses, centerClasses, rightClasses };\n\t}\n}\n","@let currentStepVar = currentStep();\n@let contentVar = content();\n<div class=\"flex flex-1 -translate-y-3 items-center\">\n\t<div [class]=\"getSubStepClasses(currentStepVar, contentVar).leftClasses\"></div>\n\t<div [class]=\"getSubStepClasses(currentStepVar, contentVar).centerClasses\"></div>\n\t<div [class]=\"getSubStepClasses(currentStepVar, contentVar).rightClasses\"></div>\n</div>\n","import { NgClass } from '@angular/common';\nimport { Component, computed, contentChildren, model, output } from '@angular/core';\nimport { ButtonComponent } from '@sixbell-telco/sdk/components/button';\nimport { matKeyboardBackspaceOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardContentComponent } from '../wizard-content/wizard-content.component';\nimport { WizardMarkerComponent } from '../wizard-marker/wizard-marker.component';\nimport { WizardStepComponent } from '../wizard-step/wizard-step.component';\nimport { WizardSubStepComponent } from '../wizard-sub-step/wizard-sub-step.component';\n\n@Component({\n\tselector: 'st-wizard',\n\ttemplateUrl: './wizard-wrapper.component.html',\n\tstandalone: true,\n\timports: [WizardStepComponent, ButtonComponent, NgClass, TypographyDirective, WizardMarkerComponent, WizardSubStepComponent],\n})\nexport class WizardWrapperComponent {\n\tcontents = contentChildren(WizardContentComponent);\n\tcurrentStep = model(0);\n\n\tonBack = output();\n\toncompleted = output();\n\n\tisFirstStep = computed(() => this.currentStep() === 0);\n\tisLastStep = computed(() => this.currentStep() === this.contents().length - 1);\n\n\tallStepsAreValid = computed(() => this.contents().every((step) => step.isValid()));\n\tisCurrentStepValid = computed(() => this.contents()[this.currentStep()].isValid());\n\n\ticon = matKeyboardBackspaceOutline;\n\n\thandlePreviousStep() {\n\t\tif (this.currentStep() <= 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.currentStep.set(this.currentStep() - 1);\n\n\t\tthis.handleStepStatusChange(this.contents()[this.currentStep()]);\n\t}\n\n\thandleNextStep() {\n\t\tif (this.currentStep() >= this.contents().length - 1) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.isCurrentStepValid()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.currentStep.set(this.currentStep() + 1);\n\n\t\tthis.handleStepStatusChange(this.contents()[this.currentStep()]);\n\t}\n\n\thandleBack() {\n\t\tthis.onBack.emit();\n\t}\n\n\thandleComplete() {\n\t\tif (!this.isCurrentStepValid()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.oncompleted.emit();\n\t}\n\n\thandleStepStatusChange(step: WizardContentComponent) {\n\t\tthis.contents().forEach((s) => {\n\t\t\tif (s.step() < step.step()) {\n\t\t\t\ts.status.set('completed');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (s.step() > step.step()) {\n\t\t\t\ts.status.set('pending');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (s.step() === step.step() && !step.isValid()) {\n\t\t\t\ts.status.set('in progress');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (s.step() === step.step() && step.isValid()) {\n\t\t\t\ts.status.set('completed');\n\t\t\t\treturn;\n\t\t\t}\n\t\t});\n\t}\n\n\tgetStepClasses(currentStep: number, step: WizardContentComponent) {\n\t\tconst outerClasses = cn({\n\t\t\t'border-primary currentStep': currentStep === step.step() && (step.status() === 'in progress' || step.status() === 'completed'),\n\t\t\t'border-primary notCurrentStep': currentStep !== step.step() && step.status() === 'completed',\n\t\t\t'border-secondary notCurrentStep': currentStep !== step.step() && step.status() === 'pending',\n\t\t});\n\t\tconst innerClasses = cn({\n\t\t\t'bg-primary currentStep': currentStep === step.step() && (step.status() === 'in progress' || step.status() === 'completed'),\n\t\t\t'bg-primary notCurrentStep': currentStep !== step.step() && step.status() === 'completed',\n\t\t\t'bg-secondary notCurrentStep': currentStep !== step.step() && step.status() === 'pending',\n\t\t});\n\t\treturn { outerClasses, innerClasses };\n\t}\n}\n","@let contentsVar = contents();\n@let currentStepVar = currentStep();\n\n<div class=\"flex flex-col gap-5\">\n\t<ul class=\"flex gap-4 px-[20%] pt-6\">\n\t\t@for (content of contentsVar; track $index) {\n\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t<st-wizard-step [currentStep]=\"currentStepVar\" [content]=\"content\" [status]=\"content.status()\"></st-wizard-step>\n\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t<div class=\"flex flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-marker [content]=\"content\"></st-wizard-marker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<st-wizard-sub-step [currentStep]=\"currentStepVar\" [content]=\"content\"></st-wizard-sub-step>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t\t<div class=\"w-[50px]\">\n\t\t\t\t\t<div class=\"flex max-w-fit flex-col items-center text-secondary\">\n\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ content.name() }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ content.label() }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t}\n\t</ul>\n\n\t<div>\n\t\t<ng-content></ng-content>\n\t</div>\n\n\t<div class=\"flex items-center justify-center gap-5\">\n\t\t@if (isFirstStep()) {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button variant=\"secondary\" (click)=\"handleBack()\" [block]=\"true\">Volver</st-button>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [icon]=\"icon\" variant=\"secondary\" (click)=\"handlePreviousStep()\" [block]=\"true\">Anterior</st-button>\n\t\t\t</div>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [disabled]=\"!allStepsAreValid()\" variant=\"secondary\" (click)=\"handleComplete()\" [block]=\"true\">Finalizar</st-button>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [disabled]=\"!isCurrentStepValid()\" (click)=\"handleNextStep()\" [block]=\"true\">Siguiente</st-button>\n\t\t\t</div>\n\t\t}\n\t</div>\n</div>\n","import { Component, computed, Host, input, model } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardWrapperComponent } from '../wizard-wrapper/wizard-wrapper.component';\n\nexport type WizardStepStatus = 'in progress' | 'pending' | 'completed';\n\n@Component({\n\tselector: 'st-wizard-content',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './wizard-content.component.html',\n})\nexport class WizardContentComponent {\n\tstep = input(0);\n\tname = input('');\n\tstatus = model.required<WizardStepStatus>();\n\tisValid = model.required<boolean>();\n\tlabel = input('');\n\tclasses = input('');\n\n\tcurrentStep = computed(() => this.wizard.currentStep());\n\tisStepActive = computed(() => this.step() === this.currentStep());\n\n\tconstructor(@Host() private wizard: WizardWrapperComponent) {}\n\n\tget componentClass() {\n\t\treturn cn('animate-fade-in animate-duration-300', this.classes());\n\t}\n}\n","@if (this.isStepActive()) {\n\t<div [class]=\"componentClass\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.WizardWrapperComponent"],"mappings":";;;;;;;;;MAYa,qBAAqB,CAAA;AACjC,IAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,EAA0B,CAAC;AAEnD,IAAA,sBAAsB,CAAC,OAA+B,EAAA;QACrD,OAAO,OAAO,CAAC,MAAM,EAAE,KAAK,WAAW,GAAG,YAAY,GAAG,OAAO,CAAC,MAAM,EAAE,KAAK,aAAa,GAAG,aAAa,GAAG,WAAW,CAAC;KAC1H;AAED,IAAA,0BAA0B,CAAC,OAA+B,EAAA;QACzD,OAAO,EAAE,CAAC,gBAAgB,EAAE;AAC3B,YAAA,uGAAuG,EAAE,OAAO,CAAC,MAAM,EAAE,KAAK,WAAW;AACzI,YAAA,sIAAsI,EACrI,OAAO,CAAC,MAAM,EAAE,KAAK,aAAa;AACnC,YAAA,oIAAoI,EACnI,OAAO,CAAC,MAAM,EAAE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A,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,+2BCZnC,+GAKA,EAAA,CAAA,CAAA;;4FDOa,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;+BACC,mBAAmB,EAAA,UAAA,EACjB,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,+GAAA,EAAA,CAAA;;0BAcE,IAAI;;;AEvBlB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-wizard.mjs","sources":["../../../projects/sdk/components/wizard/wizard-marker/wizard-marker.component.ts","../../../projects/sdk/components/wizard/wizard-marker/wizard-marker.component.html","../../../projects/sdk/components/wizard/wizard-step/wizard-step.component.ts","../../../projects/sdk/components/wizard/wizard-step/wizard-step.component.html","../../../projects/sdk/components/wizard/wizard-sub-step/wizard-sub-step.component.ts","../../../projects/sdk/components/wizard/wizard-sub-step/wizard-sub-step.component.html","../../../projects/sdk/components/wizard/wizard-wrapper/wizard-wrapper.component.ts","../../../projects/sdk/components/wizard/wizard-wrapper/wizard-wrapper.component.html","../../../projects/sdk/components/wizard/wizard-content/wizard-content.component.ts","../../../projects/sdk/components/wizard/wizard-content/wizard-content.component.html","../../../projects/sdk/components/wizard/sixbell-telco-sdk-components-wizard.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardContentComponent } from '../wizard-content/wizard-content.component';\n\n@Component({\n\tselector: 'st-wizard-marker',\n\tstandalone: true,\n\timports: [TypographyDirective],\n\ttemplateUrl: './wizard-marker.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WizardMarkerComponent {\n\tcontent = input.required<WizardContentComponent>();\n\n\tgetStatusMarkerMessage(content: WizardContentComponent) {\n\t\treturn content.status() === 'completed' ? 'Completado' : content.status() === 'in progress' ? 'En progreso' : 'Pendiente';\n\t}\n\n\tgetStepStatusMarkerClasses(content: WizardContentComponent) {\n\t\treturn cn('rounded-btn-xs', {\n\t\t\t'transition-colors duration-300 ease-out delay-150 bg-primary bg-opacity-20 text-primary px-3 py-[5px]': content.status() === 'completed',\n\t\t\t'transition-colors duration-300 ease-out delay-150 bg-neutral-content text-secondary border-[2px] border-secondary px-[10px] py-[3px]':\n\t\t\t\tcontent.status() === 'in progress',\n\t\t\t'transition-colors duration-300 ease-out delay-150 bg-neutral-content text-tertiary border-[2px] border-tertiary px-[10px] py-[3px]':\n\t\t\t\tcontent.status() === 'pending',\n\t\t});\n\t}\n}\n","@let contentVar = content();\n<div [class]=\"getStepStatusMarkerClasses(contentVar)\">\n\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">{{ getStatusMarkerMessage(contentVar) }}</span>\n</div>\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matCheckOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardContentComponent, WizardStepStatus } from '../wizard-content/wizard-content.component';\n\n@Component({\n\tselector: 'st-wizard-step',\n\ttemplateUrl: './wizard-step.component.html',\n\tstandalone: true,\n\timports: [TypographyDirective, IconComponent],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WizardStepComponent {\n\tstatus = input.required<WizardStepStatus>();\n\tcontent = input.required<WizardContentComponent>();\n\tcurrentStep = input.required<number>();\n\ticon = matCheckOutline;\n\n\tgetStepClasses(currentStep: number, content: WizardContentComponent) {\n\t\tconst outerClasses = cn(\n\t\t\t'flex h-[50px] min-h-[50px] w-[50px] min-w-[50px] items-center justify-center rounded-full border-[1px] border-solid p-[2px] font-medium text-neutral-content',\n\t\t\t{\n\t\t\t\t'border-primary currentStep transition-colors duration-300 ease-out':\n\t\t\t\t\tcurrentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),\n\t\t\t\t'border-primary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'completed',\n\t\t\t\t'border-secondary notCurrentStep transition-colors duration-300 ease-out delay-[300ms]':\n\t\t\t\t\tcurrentStep !== content.step() && content.status() === 'pending',\n\t\t\t},\n\t\t);\n\t\tconst innerClasses = cn('flex h-full w-full items-center justify-center rounded-full', {\n\t\t\t'bg-primary currentStep transition-colors duration-300 ease-out':\n\t\t\t\tcurrentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),\n\t\t\t'bg-primary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'completed',\n\t\t\t'bg-secondary notCurrentStep transition-colors duration-300 ease-out delay-[300ms]':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'pending',\n\t\t});\n\t\treturn { outerClasses, innerClasses };\n\t}\n\n\tget stepNumberClasses() {\n\t\treturn cn({\n\t\t\t'hidden opacity-0': this.status() === 'completed',\n\t\t\t'animate-fade-in animate-duration-300 delay-[350ms] opacity-1': this.status() === 'in progress' || this.status() === 'pending',\n\t\t});\n\t}\n\n\tget stepIconClasses() {\n\t\treturn cn({\n\t\t\t'animate-fade-in animate-duration-300 delay-[350ms] opacity-1': this.status() === 'completed',\n\t\t\t'hidden opacity-0': this.status() === 'in progress' || this.status() === 'pending',\n\t\t});\n\t}\n}\n","@let currentStepVar = currentStep();\n@let contentVar = content();\n\n<div [class]=\"getStepClasses(currentStepVar, contentVar).outerClasses\">\n\t<div [class]=\"getStepClasses(currentStepVar, contentVar).innerClasses\">\n\t\t<div [class]=\"stepNumberClasses\">\n\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">\n\t\t\t\t{{ contentVar.step() + 1 }}\n\t\t\t</span>\n\t\t</div>\n\t\t<st-icon [class]=\"stepIconClasses\" [icon]=\"icon\" color=\"inherit\" size=\"md\"></st-icon>\n\t</div>\n</div>\n","import { Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardContentComponent } from '../wizard-content/wizard-content.component';\n\n@Component({\n\tselector: 'st-wizard-sub-step',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './wizard-sub-step.component.html',\n})\nexport class WizardSubStepComponent {\n\tcontent = input.required<WizardContentComponent>();\n\tcurrentStep = input.required<number>();\n\n\tgetSubStepClasses(currentStep: number, content: WizardContentComponent) {\n\t\tconst leftClasses = cn('h-[2px] w-full', {\n\t\t\t'bg-secondary currentStep relative after:absolute after:w-full after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out':\n\t\t\t\tcurrentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),\n\t\t\t'bg-secondary notCurrentSte relative after:absolute after:w-full after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'completed',\n\t\t\t'bg-secondary notCurrentStep relative after:absolute after:w-0 after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out after:delay-[350ms]':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'pending',\n\t\t});\n\n\t\tconst centerClasses = cn('h-3 min-h-3 w-3 min-w-3 rounded-full', {\n\t\t\t'bg-primary currentStep transition-colors duration-300 ease-out delay-300':\n\t\t\t\tcurrentStep === content.step() && content.status() === 'in progress',\n\t\t\t'bg-primary notCurrentStep transition-colors duration-300 ease-out delay-300':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'completed',\n\t\t\t'bg-primary currentStep inProgress transition-colors duration-300 ease-out delay-300':\n\t\t\t\tcurrentStep === content.step() && content.status() === 'completed',\n\t\t\t'bg-secondary notCurrentStep transition-colors duration-300 ease-out': currentStep !== content.step() && content.status() === 'pending',\n\t\t});\n\n\t\tconst rightClasses = cn('h-[2px] w-full', {\n\t\t\t'bg-secondary currentStep relative after:absolute after:w-full after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out after:delay-[350ms]':\n\t\t\t\tcurrentStep === content.step() && content.status() === 'completed',\n\t\t\t'bg-secondary notCurrentStep relative after:absolute after:w-full after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out after:delay-[350ms]':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'completed',\n\t\t\t'bg-secondary currentStep inProgress relative after:absolute after:w-0 after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out':\n\t\t\t\tcurrentStep === content.step() && content.status() === 'in progress',\n\t\t\t'bg-secondary notCurrentStep relative after:absolute after:w-0 after:left-0 after:bottom-0 after:bg-primary bg:content-[\" \"] after:h-[2px] after:transition-[width] after:duration-300 after:ease-out':\n\t\t\t\tcurrentStep !== content.step() && content.status() === 'pending',\n\t\t});\n\n\t\treturn { leftClasses, centerClasses, rightClasses };\n\t}\n}\n","@let currentStepVar = currentStep();\n@let contentVar = content();\n<div class=\"flex flex-1 -translate-y-3 items-center\">\n\t<div [class]=\"getSubStepClasses(currentStepVar, contentVar).leftClasses\"></div>\n\t<div [class]=\"getSubStepClasses(currentStepVar, contentVar).centerClasses\"></div>\n\t<div [class]=\"getSubStepClasses(currentStepVar, contentVar).rightClasses\"></div>\n</div>\n","import { NgClass } from '@angular/common';\nimport { Component, computed, contentChildren, model, output } from '@angular/core';\nimport { ButtonComponent } from '@sixbell-telco/sdk/components/button';\nimport { matKeyboardBackspaceOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardContentComponent } from '../wizard-content/wizard-content.component';\nimport { WizardMarkerComponent } from '../wizard-marker/wizard-marker.component';\nimport { WizardStepComponent } from '../wizard-step/wizard-step.component';\nimport { WizardSubStepComponent } from '../wizard-sub-step/wizard-sub-step.component';\n\n@Component({\n\tselector: 'st-wizard',\n\ttemplateUrl: './wizard-wrapper.component.html',\n\tstandalone: true,\n\timports: [WizardStepComponent, ButtonComponent, NgClass, TypographyDirective, WizardMarkerComponent, WizardSubStepComponent],\n})\nexport class WizardWrapperComponent {\n\tcontents = contentChildren(WizardContentComponent);\n\tcurrentStep = model(0);\n\n\tonBack = output();\n\toncompleted = output();\n\n\tisFirstStep = computed(() => this.currentStep() === 0);\n\tisLastStep = computed(() => this.currentStep() === this.contents().length - 1);\n\n\tallStepsAreValid = computed(() => this.contents().every((step) => step.isValid()));\n\tisCurrentStepValid = computed(() => this.contents()[this.currentStep()].isValid());\n\n\ticon = matKeyboardBackspaceOutline;\n\n\thandlePreviousStep() {\n\t\tif (this.currentStep() <= 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.currentStep.set(this.currentStep() - 1);\n\n\t\tthis.handleStepStatusChange(this.contents()[this.currentStep()]);\n\t}\n\n\thandleNextStep() {\n\t\tif (this.currentStep() >= this.contents().length - 1) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.isCurrentStepValid()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.currentStep.set(this.currentStep() + 1);\n\n\t\tthis.handleStepStatusChange(this.contents()[this.currentStep()]);\n\t}\n\n\thandleBack() {\n\t\tthis.onBack.emit();\n\t}\n\n\thandleComplete() {\n\t\tif (!this.isCurrentStepValid()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.oncompleted.emit();\n\t}\n\n\thandleStepStatusChange(step: WizardContentComponent) {\n\t\tthis.contents().forEach((s) => {\n\t\t\tif (s.step() < step.step()) {\n\t\t\t\ts.status.set('completed');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (s.step() > step.step()) {\n\t\t\t\ts.status.set('pending');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (s.step() === step.step() && !step.isValid()) {\n\t\t\t\ts.status.set('in progress');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (s.step() === step.step() && step.isValid()) {\n\t\t\t\ts.status.set('completed');\n\t\t\t\treturn;\n\t\t\t}\n\t\t});\n\t}\n\n\tgetStepClasses(currentStep: number, step: WizardContentComponent) {\n\t\tconst outerClasses = cn({\n\t\t\t'border-primary currentStep': currentStep === step.step() && (step.status() === 'in progress' || step.status() === 'completed'),\n\t\t\t'border-primary notCurrentStep': currentStep !== step.step() && step.status() === 'completed',\n\t\t\t'border-secondary notCurrentStep': currentStep !== step.step() && step.status() === 'pending',\n\t\t});\n\t\tconst innerClasses = cn({\n\t\t\t'bg-primary currentStep': currentStep === step.step() && (step.status() === 'in progress' || step.status() === 'completed'),\n\t\t\t'bg-primary notCurrentStep': currentStep !== step.step() && step.status() === 'completed',\n\t\t\t'bg-secondary notCurrentStep': currentStep !== step.step() && step.status() === 'pending',\n\t\t});\n\t\treturn { outerClasses, innerClasses };\n\t}\n}\n","@let contentsVar = contents();\n@let currentStepVar = currentStep();\n\n<div class=\"flex flex-col gap-5\">\n\t<ul class=\"flex gap-4 px-[20%] pt-6\">\n\t\t@for (content of contentsVar; track $index) {\n\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t<st-wizard-step [currentStep]=\"currentStepVar\" [content]=\"content\" [status]=\"content.status()\"></st-wizard-step>\n\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t<div class=\"flex flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-marker [content]=\"content\"></st-wizard-marker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<st-wizard-sub-step [currentStep]=\"currentStepVar\" [content]=\"content\"></st-wizard-sub-step>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t\t<div class=\"w-[50px]\">\n\t\t\t\t\t<div class=\"flex max-w-fit flex-col items-center text-secondary\">\n\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ content.name() }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ content.label() }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t}\n\t</ul>\n\n\t<div>\n\t\t<ng-content></ng-content>\n\t</div>\n\n\t<div class=\"flex items-center justify-center gap-5\">\n\t\t@if (isFirstStep()) {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button variant=\"secondary\" (click)=\"handleBack()\" [block]=\"true\">Volver</st-button>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [icon]=\"icon\" variant=\"secondary\" (click)=\"handlePreviousStep()\" [block]=\"true\">Anterior</st-button>\n\t\t\t</div>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [disabled]=\"!allStepsAreValid()\" variant=\"secondary\" (click)=\"handleComplete()\" [block]=\"true\">Finalizar</st-button>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"w-60\">\n\t\t\t\t<st-button [disabled]=\"!isCurrentStepValid()\" (click)=\"handleNextStep()\" [block]=\"true\">Siguiente</st-button>\n\t\t\t</div>\n\t\t}\n\t</div>\n</div>\n","import { Component, computed, Host, input, model } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardWrapperComponent } from '../wizard-wrapper/wizard-wrapper.component';\n\nexport type WizardStepStatus = 'in progress' | 'pending' | 'completed';\n\n@Component({\n\tselector: 'st-wizard-content',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './wizard-content.component.html',\n})\nexport class WizardContentComponent {\n\tstep = input(0);\n\tname = input('');\n\tstatus = model.required<WizardStepStatus>();\n\tisValid = model.required<boolean>();\n\tlabel = input('');\n\tclasses = input('');\n\n\tcurrentStep = computed(() => this.wizard.currentStep());\n\tisStepActive = computed(() => this.step() === this.currentStep());\n\n\tconstructor(@Host() private wizard: WizardWrapperComponent) {}\n\n\tget componentClass() {\n\t\treturn cn('animate-fade-in animate-duration-300', this.classes());\n\t}\n}\n","@if (this.isStepActive()) {\n\t<div [class]=\"componentClass\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.WizardWrapperComponent"],"mappings":";;;;;;;;;MAYa,qBAAqB,CAAA;AACjC,IAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,EAA0B,CAAC;AAEnD,IAAA,sBAAsB,CAAC,OAA+B,EAAA;QACrD,OAAO,OAAO,CAAC,MAAM,EAAE,KAAK,WAAW,GAAG,YAAY,GAAG,OAAO,CAAC,MAAM,EAAE,KAAK,aAAa,GAAG,aAAa,GAAG,WAAW,CAAC;KAC1H;AAED,IAAA,0BAA0B,CAAC,OAA+B,EAAA;QACzD,OAAO,EAAE,CAAC,gBAAgB,EAAE;AAC3B,YAAA,uGAAuG,EAAE,OAAO,CAAC,MAAM,EAAE,KAAK,WAAW;AACzI,YAAA,sIAAsI,EACrI,OAAO,CAAC,MAAM,EAAE,KAAK,aAAa;AACnC,YAAA,oIAAoI,EACnI,OAAO,CAAC,MAAM,EAAE,KAAK,SAAS;AAC/B,SAAA,CAAC,CAAC;KACH;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AA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,+2BCZnC,+GAKA,EAAA,CAAA,CAAA;;4FDOa,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;+BACC,mBAAmB,EAAA,UAAA,EACjB,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,+GAAA,EAAA,CAAA;;0BAcE,IAAI;;;AEvBlB;;AAEG;;;;"}
|
|
@@ -29,12 +29,18 @@ const typographyDirective = cva([], {
|
|
|
29
29
|
normal: 'font-normal',
|
|
30
30
|
inherit: ['font-inherit', 'font-body'],
|
|
31
31
|
},
|
|
32
|
+
textOverflow: {
|
|
33
|
+
clip: 'text-clip',
|
|
34
|
+
ellipsis: 'text-ellipsis',
|
|
35
|
+
truncate: 'text-truncate',
|
|
36
|
+
},
|
|
32
37
|
},
|
|
33
38
|
compoundVariants: [],
|
|
34
39
|
defaultVariants: {
|
|
35
40
|
variant: 'body',
|
|
36
41
|
color: 'inherit',
|
|
37
42
|
fontWeight: 'normal',
|
|
43
|
+
textOverflow: 'clip',
|
|
38
44
|
},
|
|
39
45
|
});
|
|
40
46
|
class TypographyDirective {
|
|
@@ -42,6 +48,7 @@ class TypographyDirective {
|
|
|
42
48
|
variant = input('body', { alias: 'tyVariant' });
|
|
43
49
|
color = input('inherit', { alias: 'tyColor' });
|
|
44
50
|
fontWeight = input('normal', { alias: 'tyFontWeight' });
|
|
51
|
+
textOverflow = input('clip', { alias: 'tyTextOverflow' });
|
|
45
52
|
element = inject(ElementRef);
|
|
46
53
|
renderer = inject(Renderer2);
|
|
47
54
|
classListEffect = effect(() => {
|
|
@@ -49,7 +56,7 @@ class TypographyDirective {
|
|
|
49
56
|
this.renderer.setAttribute(this.element.nativeElement, 'class', classList);
|
|
50
57
|
});
|
|
51
58
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TypographyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
52
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.12", type: TypographyDirective, isStandalone: true, selector: "[typography]", inputs: { variant: { classPropertyName: "variant", publicName: "tyVariant", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "tyColor", isSignal: true, isRequired: false, transformFunction: null }, fontWeight: { classPropertyName: "fontWeight", publicName: "tyFontWeight", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
59
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.12", type: TypographyDirective, isStandalone: true, selector: "[typography]", inputs: { variant: { classPropertyName: "variant", publicName: "tyVariant", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "tyColor", isSignal: true, isRequired: false, transformFunction: null }, fontWeight: { classPropertyName: "fontWeight", publicName: "tyFontWeight", isSignal: true, isRequired: false, transformFunction: null }, textOverflow: { classPropertyName: "textOverflow", publicName: "tyTextOverflow", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
53
60
|
}
|
|
54
61
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TypographyDirective, decorators: [{
|
|
55
62
|
type: Directive,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-directives-typography.mjs","sources":["../../../projects/sdk/directives/typography/src/typography.directive.ts","../../../projects/sdk/directives/typography/sixbell-telco-sdk-directives-typography.ts"],"sourcesContent":["import { Directive, ElementRef, Renderer2, effect, inject, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst typographyDirective = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\th1: ['text-[2.027rem]', 'text-balance', 'font-heading', 'leading-tight'],\n\t\t\th2: ['text-[1.802rem]', 'text-balance', 'font-heading', 'leading-tight'],\n\t\t\th3: ['text-[1.602rem]', 'text-balance', 'font-heading', 'leading-tight'],\n\t\t\th4: ['text-[1.424rem]', 'text-balance', 'font-heading', 'leading-snug'],\n\t\t\th5: ['text-[1.266rem]', 'text-balance', 'font-heading', 'leading-snug'],\n\t\t\th6: ['text-xl', 'text-balance', 'font-heading', 'leading-snug'],\n\t\t\tbody: ['text-base', 'text-pretty', 'font-body', 'leading-normal'],\n\t\t\t'body-sm': ['text-[0.8rem]', 'text-pretty', 'font-body', 'leading-normal'],\n\t\t\t'body-xs': ['text-[0.64rem]', 'text-pretty', 'font-body', 'leading-normal'],\n\t\t\tinherit: ['font-body'],\n\t\t},\n\t\tcolor: {\n\t\t\tbase: 'text-base-content',\n\t\t\t'base-placeholder': 'text-neutral',\n\t\t\tinherit: 'text-inherit',\n\t\t},\n\t\tfontWeight: {\n\t\t\tbold: 'font-bold',\n\t\t\tsemibold: 'font-semibold',\n\t\t\tmedium: 'font-medium',\n\t\t\tnormal: 'font-normal',\n\t\t\tinherit: ['font-inherit', 'font-body'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'body',\n\t\tcolor: 'inherit',\n\t\tfontWeight: 'normal',\n\t},\n});\n\nexport type TypographyVariantProps = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'body-sm' | 'body-xs' | 'inherit' | null | undefined;\nexport type TypographyColorProps = 'base' | 'base-placeholder' | 'inherit' | null | undefined;\nexport type TypographyFontWeightProps = 'bold' | 'semibold' | 'medium' | 'normal' | 'inherit' | null | undefined;\n\nexport type TypographyProps = {\n\tvariant?: TypographyVariantProps;\n\tcolor?: TypographyColorProps;\n\tfontWeight?: TypographyFontWeightProps;\n};\n\n@Directive({\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: '[typography]',\n\tstandalone: true,\n})\nexport class TypographyDirective {\n\t// typography = input<TypographyProps>();\n\tvariant = input<TypographyVariantProps>('body', { alias: 'tyVariant' });\n\tcolor = input<TypographyColorProps>('inherit', { alias: 'tyColor' });\n\tfontWeight = input<TypographyFontWeightProps>('normal', { alias: 'tyFontWeight' });\n\n\tprivate element: ElementRef = inject(ElementRef);\n\tprivate renderer: Renderer2 = inject(Renderer2);\n\n\tclassListEffect = effect(() => {\n\t\tconst classList = cn(typographyDirective({ variant: this.variant(), color: this.color(), fontWeight: this.fontWeight() }));\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'class', classList);\n\t});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA,MAAM,mBAAmB,GAAG,GAAG,CAAC,EAAE,EAAE;AACnC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,EAAE,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,CAAC;YACxE,EAAE,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,CAAC;YACxE,EAAE,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,CAAC;YACxE,EAAE,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,CAAC;YACvE,EAAE,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,CAAC;YACvE,EAAE,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,CAAC;YAC/D,IAAI,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,CAAC;YACjE,SAAS,EAAE,CAAC,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,CAAC;YAC1E,SAAS,EAAE,CAAC,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,CAAC;YAC3E,OAAO,EAAE,CAAC,WAAW,CAAC;AACtB,SAAA;AACD,QAAA,KAAK,EAAE;AACN,YAAA,IAAI,EAAE,mBAAmB;AACzB,YAAA,kBAAkB,EAAE,cAAc;AAClC,YAAA,OAAO,EAAE,cAAc;AACvB,SAAA;AACD,QAAA,UAAU,EAAE;AACX,YAAA,IAAI,EAAE,WAAW;AACjB,YAAA,QAAQ,EAAE,eAAe;AACzB,YAAA,MAAM,EAAE,aAAa;AACrB,YAAA,MAAM,EAAE,aAAa;AACrB,YAAA,OAAO,EAAE,CAAC,cAAc,EAAE,WAAW,CAAC;AACtC,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE,EAAE;AACpB,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,UAAU,EAAE,QAAQ;AACpB,KAAA;AACD,CAAA,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-directives-typography.mjs","sources":["../../../projects/sdk/directives/typography/src/typography.directive.ts","../../../projects/sdk/directives/typography/sixbell-telco-sdk-directives-typography.ts"],"sourcesContent":["import { Directive, ElementRef, Renderer2, effect, inject, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst typographyDirective = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\th1: ['text-[2.027rem]', 'text-balance', 'font-heading', 'leading-tight'],\n\t\t\th2: ['text-[1.802rem]', 'text-balance', 'font-heading', 'leading-tight'],\n\t\t\th3: ['text-[1.602rem]', 'text-balance', 'font-heading', 'leading-tight'],\n\t\t\th4: ['text-[1.424rem]', 'text-balance', 'font-heading', 'leading-snug'],\n\t\t\th5: ['text-[1.266rem]', 'text-balance', 'font-heading', 'leading-snug'],\n\t\t\th6: ['text-xl', 'text-balance', 'font-heading', 'leading-snug'],\n\t\t\tbody: ['text-base', 'text-pretty', 'font-body', 'leading-normal'],\n\t\t\t'body-sm': ['text-[0.8rem]', 'text-pretty', 'font-body', 'leading-normal'],\n\t\t\t'body-xs': ['text-[0.64rem]', 'text-pretty', 'font-body', 'leading-normal'],\n\t\t\tinherit: ['font-body'],\n\t\t},\n\t\tcolor: {\n\t\t\tbase: 'text-base-content',\n\t\t\t'base-placeholder': 'text-neutral',\n\t\t\tinherit: 'text-inherit',\n\t\t},\n\t\tfontWeight: {\n\t\t\tbold: 'font-bold',\n\t\t\tsemibold: 'font-semibold',\n\t\t\tmedium: 'font-medium',\n\t\t\tnormal: 'font-normal',\n\t\t\tinherit: ['font-inherit', 'font-body'],\n\t\t},\n\t\ttextOverflow: {\n\t\t\tclip: 'text-clip',\n\t\t\tellipsis: 'text-ellipsis',\n\t\t\ttruncate: 'text-truncate',\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'body',\n\t\tcolor: 'inherit',\n\t\tfontWeight: 'normal',\n\t\ttextOverflow: 'clip',\n\t},\n});\n\nexport type TypographyVariantProps = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'body-sm' | 'body-xs' | 'inherit' | null | undefined;\nexport type TypographyColorProps = 'base' | 'base-placeholder' | 'inherit' | null | undefined;\nexport type TypographyFontWeightProps = 'bold' | 'semibold' | 'medium' | 'normal' | 'inherit' | null | undefined;\nexport type TypographyTextOverflowProps = 'clip' | 'ellipsis' | 'truncate' | null | undefined;\n\nexport type TypographyProps = {\n\tvariant?: TypographyVariantProps;\n\tcolor?: TypographyColorProps;\n\tfontWeight?: TypographyFontWeightProps;\n\ttextOverflow?: TypographyTextOverflowProps;\n};\n\n@Directive({\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: '[typography]',\n\tstandalone: true,\n})\nexport class TypographyDirective {\n\t// typography = input<TypographyProps>();\n\tvariant = input<TypographyVariantProps>('body', { alias: 'tyVariant' });\n\tcolor = input<TypographyColorProps>('inherit', { alias: 'tyColor' });\n\tfontWeight = input<TypographyFontWeightProps>('normal', { alias: 'tyFontWeight' });\n\ttextOverflow = input<TypographyTextOverflowProps>('clip', { alias: 'tyTextOverflow' });\n\n\tprivate element: ElementRef = inject(ElementRef);\n\tprivate renderer: Renderer2 = inject(Renderer2);\n\n\tclassListEffect = effect(() => {\n\t\tconst classList = cn(typographyDirective({ variant: this.variant(), color: this.color(), fontWeight: this.fontWeight() }));\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'class', classList);\n\t});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA,MAAM,mBAAmB,GAAG,GAAG,CAAC,EAAE,EAAE;AACnC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,EAAE,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,CAAC;YACxE,EAAE,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,CAAC;YACxE,EAAE,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,CAAC;YACxE,EAAE,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,CAAC;YACvE,EAAE,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,CAAC;YACvE,EAAE,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,CAAC;YAC/D,IAAI,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,CAAC;YACjE,SAAS,EAAE,CAAC,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,CAAC;YAC1E,SAAS,EAAE,CAAC,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,CAAC;YAC3E,OAAO,EAAE,CAAC,WAAW,CAAC;AACtB,SAAA;AACD,QAAA,KAAK,EAAE;AACN,YAAA,IAAI,EAAE,mBAAmB;AACzB,YAAA,kBAAkB,EAAE,cAAc;AAClC,YAAA,OAAO,EAAE,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;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Pipe } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
class TimePipe {
|
|
5
|
+
transform(value) {
|
|
6
|
+
const minutes = Math.floor(value / 60);
|
|
7
|
+
const seconds = Math.floor(value % 60);
|
|
8
|
+
return `${minutes}:${seconds.toString().padStart(2, '0')}`;
|
|
9
|
+
}
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
11
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: TimePipe, isStandalone: true, name: "time" });
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TimePipe, decorators: [{
|
|
14
|
+
type: Pipe,
|
|
15
|
+
args: [{
|
|
16
|
+
name: 'time',
|
|
17
|
+
standalone: true,
|
|
18
|
+
}]
|
|
19
|
+
}] });
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Generated bundle index. Do not edit.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
export { TimePipe };
|
|
26
|
+
//# sourceMappingURL=sixbell-telco-sdk-utils-pipes-time.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-utils-pipes-time.mjs","sources":["../../../projects/sdk/utils/pipes/time/src/time.pipe.ts","../../../projects/sdk/utils/pipes/time/sixbell-telco-sdk-utils-pipes-time.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n\tname: 'time',\n\tstandalone: true,\n})\nexport class TimePipe implements PipeTransform {\n\ttransform(value: number): string {\n\t\tconst minutes = Math.floor(value / 60);\n\t\tconst seconds = Math.floor(value % 60);\n\t\treturn `${minutes}:${seconds.toString().padStart(2, '0')}`;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAMa,QAAQ,CAAA;AACpB,IAAA,SAAS,CAAC,KAAa,EAAA;QACtB,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC;QACvC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC;AACvC,QAAA,OAAO,CAAG,EAAA,OAAO,CAAI,CAAA,EAAA,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;KAC3D;wGALW,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;sGAAR,QAAQ,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,CAAA;;4FAAR,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAJpB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACL,oBAAA,IAAI,EAAE,MAAM;AACZ,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;ACLD;;AAEG;;;;"}
|