@sixbell-telco/sdk 0.1.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/_index.scss +0 -1
  3. package/assets/styles/combobox.scss +5 -0
  4. package/components/button/src/button.component.d.ts +3 -3
  5. package/components/dropdown/src/dropdown.component.d.ts +4 -3
  6. package/components/file-upload/file-dropzone/src/file-dropzone.component.d.ts +1 -0
  7. package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +2 -5
  8. package/components/forms/combobox/src/combobox.component.d.ts +4 -4
  9. package/components/forms/datepicker/src/datepicker.component.d.ts +2 -0
  10. package/components/forms/input/src/input.component.d.ts +8 -5
  11. package/components/forms/select/src/select.component.d.ts +4 -4
  12. package/components/icon/material/baseline/index.d.ts +5 -0
  13. package/components/icon/material/baseline/public-api.d.ts +1 -0
  14. package/components/icon/material/outline/index.d.ts +5 -0
  15. package/components/icon/material/outline/public-api.d.ts +1 -0
  16. package/components/icon/material/round/index.d.ts +5 -0
  17. package/components/icon/material/round/public-api.d.ts +1 -0
  18. package/components/icon/material/sharp/index.d.ts +5 -0
  19. package/components/icon/material/sharp/public-api.d.ts +1 -0
  20. package/components/icon/public-api.d.ts +0 -1
  21. package/components/icon/src/icon.component.d.ts +2 -4
  22. package/components/link/src/link.component.d.ts +8 -7
  23. package/components/notification/src/notification.component.d.ts +2 -3
  24. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +2 -3
  25. package/components/paginator/src/paginator.component.d.ts +4 -0
  26. package/components/product-card/src/product-card.component.d.ts +3 -3
  27. package/components/toast/toast-message/toast-message.component.d.ts +4 -2
  28. package/components/wizard/wizard-step/wizard-step.component.d.ts +1 -0
  29. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +1 -0
  30. package/esm2022/components/button/src/button.component.mjs +6 -4
  31. package/esm2022/components/dropdown/src/dropdown.component.mjs +7 -4
  32. package/esm2022/components/dual-list/src/dual-list.component.mjs +3 -3
  33. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +5 -3
  34. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +3 -7
  35. package/esm2022/components/forms/combobox/src/combobox.component.mjs +15 -17
  36. package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +6 -3
  37. package/esm2022/components/forms/input/src/input.component.mjs +24 -19
  38. package/esm2022/components/forms/select/src/select.component.mjs +11 -12
  39. package/esm2022/components/icon/material/baseline/public-api.mjs +2 -0
  40. package/esm2022/components/icon/material/baseline/sixbell-telco-sdk-components-icon-material-baseline.mjs +5 -0
  41. package/esm2022/components/icon/material/outline/public-api.mjs +2 -0
  42. package/esm2022/components/icon/material/outline/sixbell-telco-sdk-components-icon-material-outline.mjs +5 -0
  43. package/esm2022/components/icon/material/round/public-api.mjs +2 -0
  44. package/esm2022/components/icon/material/round/sixbell-telco-sdk-components-icon-material-round.mjs +5 -0
  45. package/esm2022/components/icon/material/sharp/public-api.mjs +2 -0
  46. package/esm2022/components/icon/material/sharp/sixbell-telco-sdk-components-icon-material-sharp.mjs +5 -0
  47. package/esm2022/components/icon/public-api.mjs +1 -2
  48. package/esm2022/components/icon/src/icon.component.mjs +9 -11
  49. package/esm2022/components/link/src/link.component.mjs +12 -10
  50. package/esm2022/components/notification/src/notification.component.mjs +5 -4
  51. package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +5 -4
  52. package/esm2022/components/paginator/src/paginator.component.mjs +8 -3
  53. package/esm2022/components/product-card/src/product-card.component.mjs +6 -4
  54. package/esm2022/components/table/src/table.component.mjs +1 -1
  55. package/esm2022/components/toast/toast-message/toast-message.component.mjs +9 -5
  56. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +5 -3
  57. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +5 -3
  58. package/esm2022/public_api.mjs +1 -1
  59. package/esm2022/sixbell-telco-sdk.mjs +1 -1
  60. package/fesm2022/sixbell-telco-sdk-components-button.mjs +5 -3
  61. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  62. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +6 -3
  63. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  64. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +2 -2
  65. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  66. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +4 -2
  67. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
  68. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +2 -6
  69. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
  70. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +14 -16
  71. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  72. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +5 -2
  73. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
  74. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +23 -18
  75. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  76. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +10 -11
  77. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  78. package/fesm2022/sixbell-telco-sdk-components-icon-material-baseline.mjs +6 -0
  79. package/fesm2022/sixbell-telco-sdk-components-icon-material-baseline.mjs.map +1 -0
  80. package/fesm2022/sixbell-telco-sdk-components-icon-material-outline.mjs +6 -0
  81. package/fesm2022/sixbell-telco-sdk-components-icon-material-outline.mjs.map +1 -0
  82. package/fesm2022/sixbell-telco-sdk-components-icon-material-round.mjs +6 -0
  83. package/fesm2022/sixbell-telco-sdk-components-icon-material-round.mjs.map +1 -0
  84. package/fesm2022/sixbell-telco-sdk-components-icon-material-sharp.mjs +6 -0
  85. package/fesm2022/sixbell-telco-sdk-components-icon-material-sharp.mjs.map +1 -0
  86. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +8 -10
  87. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  88. package/fesm2022/sixbell-telco-sdk-components-link.mjs +11 -9
  89. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  90. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +4 -3
  91. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  92. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +10 -5
  93. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  94. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +5 -3
  95. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  96. package/fesm2022/sixbell-telco-sdk-components-table.mjs +1 -1
  97. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  98. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +7 -3
  99. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  100. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +7 -4
  101. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  102. package/fesm2022/sixbell-telco-sdk.mjs.map +1 -1
  103. package/package.json +29 -3
  104. package/assets/fonts/Poppins-Black.ttf +0 -0
  105. package/assets/fonts/Poppins-BlackItalic.ttf +0 -0
  106. package/assets/fonts/Poppins-Bold.ttf +0 -0
  107. package/assets/fonts/Poppins-BoldItalic.ttf +0 -0
  108. package/assets/fonts/Poppins-ExtraBold.ttf +0 -0
  109. package/assets/fonts/Poppins-ExtraBoldItalic.ttf +0 -0
  110. package/assets/fonts/Poppins-ExtraLight.ttf +0 -0
  111. package/assets/fonts/Poppins-ExtraLightItalic.ttf +0 -0
  112. package/assets/fonts/Poppins-Italic.ttf +0 -0
  113. package/assets/fonts/Poppins-Light.ttf +0 -0
  114. package/assets/fonts/Poppins-LightItalic.ttf +0 -0
  115. package/assets/fonts/Poppins-Medium.ttf +0 -0
  116. package/assets/fonts/Poppins-MediumItalic.ttf +0 -0
  117. package/assets/fonts/Poppins-Regular.ttf +0 -0
  118. package/assets/fonts/Poppins-SemiBold.ttf +0 -0
  119. package/assets/fonts/Poppins-SemiBoldItalic.ttf +0 -0
  120. package/assets/fonts/Poppins-Thin.ttf +0 -0
  121. package/assets/fonts/Poppins-ThinItalic.ttf +0 -0
  122. package/assets/icons/icons.svg +0 -1021
  123. package/assets/styles/fonts.scss +0 -85
  124. package/components/icon/src/icon.d.ts +0 -1
  125. package/esm2022/components/icon/src/icon.mjs +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-table.mjs","sources":["../../../projects/sdk/components/table/table-header-checkbox/table-header-checkbox.component.ts","../../../projects/sdk/components/table/table-header-checkbox/table-header-checkbox.component.html","../../../projects/sdk/components/table/table-row-checkbox/table-row-checkbox.component.ts","../../../projects/sdk/components/table/table-row-checkbox/table-row-checkbox.component.html","../../../projects/sdk/components/table/src/table.component.ts","../../../projects/sdk/components/table/src/table.component.html","../../../projects/sdk/components/table/sixbell-telco-sdk-components-table.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Host, input, signal } from '@angular/core';\nimport { CheckboxComponent, CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';\nimport { TableComponent } from '../src/table.component';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'tr[header-checkbox]',\n\tstandalone: true,\n\timports: [CheckboxComponent],\n\ttemplateUrl: './table-header-checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableHeaderCheckboxComponent {\n\tcheckboxVariant = input<CheckboxVariantProps>('primary');\n\tcheckboxSize = input<CheckboxSizeProps>('md');\n\tchecked = signal<boolean>(false);\n\tconstructor(@Host() private table: TableComponent) {}\n\n\thandleSelectAll(value: boolean) {\n\t\tthis.table.handleToggleAll(value);\n\t}\n}\n","<td class=\"w-4\">\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</td>\n<ng-content></ng-content>\n","import { ChangeDetectionStrategy, Component, Host, input, signal } from '@angular/core';\nimport { CheckboxComponent, CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';\nimport { TableComponent } from '../src/table.component';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'tr[row-checkbox]',\n\tstandalone: true,\n\timports: [CheckboxComponent],\n\ttemplateUrl: './table-row-checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableRowCheckboxComponent {\n\tcheckboxVariant = input<CheckboxVariantProps>('primary');\n\tcheckboxSize = input<CheckboxSizeProps>('md');\n\tidentifier = input.required();\n\tchecked = signal<boolean>(false);\n\n\tconstructor(@Host() private table: TableComponent) {}\n\n\thandleSelect(value: boolean) {\n\t\tthis.table.handleToggleCheckbox(value, this.identifier());\n\t}\n}\n","<td>\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, effect, input, output, signal } from '@angular/core';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { SelectComponent } from '@sixbell-telco/sdk/components/forms/select';\nimport { PaginatorComponent } from '@sixbell-telco/sdk/components/paginator';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\nimport { TableHeaderCheckboxComponent } from '../table-header-checkbox/table-header-checkbox.component';\nimport { TableRowCheckboxComponent } from '../table-row-checkbox/table-row-checkbox.component';\n\nexport type PaginationType = 'default' | 'dots';\n\nexport const tableContent = cva(['relative border-separate border-spacing-0'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: ['table', 'font-body'],\n\t\t\tzebra: ['table', 'table-zebra', 'font-body'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['table-xs'],\n\t\t\tsm: ['table-sm'],\n\t\t\tmd: ['table-md'],\n\t\t\tlg: ['table-lg'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'zebra',\n\t\tsize: 'md',\n\t},\n});\n\nexport type TableContentVariantProps = 'default' | 'zebra' | null | undefined;\nexport type TableContentSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport const tableContainer = cva(['flex flex-col gap-4 px-4 pb-10 pt-5 overflow-y-auto'], {\n\tvariants: {\n\t\tcontainerShadow: {\n\t\t\tnone: [],\n\t\t\tsecondary: ['shadow-secondary'],\n\t\t},\n\t\tcontainerHeight: {\n\t\t\tauto: ['h-auto'],\n\t\t\tfull: ['h-full'],\n\t\t\tsm: ['h-[400px]'],\n\t\t\tmd: ['h-[700px]'],\n\t\t\tlg: ['h-[80vh]'],\n\t\t},\n\t\tcontainerShape: {\n\t\t\t'round-sm': ['rounded-box-sm'],\n\t\t\t'round-md': ['rounded-box-md'],\n\t\t\t'round-lg': ['rounded-box-lg'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tcontainerShadow: 'none',\n\t\tcontainerHeight: 'auto',\n\t\tcontainerShape: 'round-sm',\n\t},\n});\nexport type TableContainerShadowProps = 'none' | 'secondary' | null | undefined;\nexport type TableContainerHeightProps = 'auto' | 'full' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type TableContainerShapeProps = 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\n\nexport type TableVariantProps = {\n\tsize?: TableContentSizeProps;\n\tvariant?: TableContentVariantProps;\n\tcontainerHeight?: TableContainerHeightProps;\n\tcontainerShadow?: TableContainerShadowProps;\n\tcontainerShape?: TableContainerShapeProps;\n};\nexport const tableComponent = ({ size, variant, containerHeight, containerShadow, containerShape }: TableVariantProps = {}) =>\n\tcx(tableContent({ variant, size }), tableContainer({ containerHeight, containerShadow, containerShape }));\n\nexport type TablePagination = {\n\tid: string;\n\tcurrentPage: number;\n\titemsPerPage: number;\n\tsearch: string;\n};\n\n@Component({\n\tselector: 'st-table',\n\tstandalone: true,\n\timports: [CommonModule, TranslateModule, PaginatorComponent, TypographyDirective, SelectComponent],\n\ttemplateUrl: './table.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableComponent {\n\t// Base table properties\n\tvariant = input<TableContentVariantProps>();\n\tsize = input<TableContentSizeProps>();\n\theight = input<TableContainerHeightProps>();\n\tshadow = input<TableContainerShadowProps>();\n\tshape = input<TableContainerShapeProps>();\n\tcontentClasses = input<string>('');\n\tcontainerClasses = input<string>('');\n\tpaginatorType = input<PaginationType>('default');\n\n\t// Table data\n\tdata = input<unknown[]>([]);\n\ttotalItems = input<number>(0);\n\terror = input<string>('common.errors.no_data_found');\n\n\t// Paginator properties\n\tpagination = input<TablePagination>({ id: 'paginator', currentPage: 1, itemsPerPage: 10, search: '' });\n\tmaxSize = input<number>(7);\n\tonPageChange = output<number>();\n\tonPageSizeChange = output<number>();\n\tshowItemsPerPage = input<boolean>(true);\n\tshowEntries = input<boolean>(true);\n\n\tpaginationRange = computed(() => {\n\t\tconst start = this.pagination().currentPage * this.pagination().itemsPerPage - this.pagination().itemsPerPage + 1;\n\t\tconst end = Math.min(this.pagination().currentPage * this.pagination().itemsPerPage, this.totalItems());\n\t\treturn `${start}-${end}`;\n\t});\n\n\thandlePageChange(page: number) {\n\t\tthis.handleToggleAll(false);\n\t\tthis.onPageChange.emit(page);\n\t}\n\n\thandlePageSizeChange(size: number) {\n\t\tthis.handleToggleAll(false);\n\t\tthis.onPageSizeChange.emit(size);\n\t}\n\n\tget contentClass() {\n\t\treturn cn(\n\t\t\ttableContent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.contentClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget containerClass() {\n\t\treturn cn(\n\t\t\ttableContainer({\n\t\t\t\tcontainerShadow: this.shadow(),\n\t\t\t\tcontainerHeight: this.height(),\n\t\t\t\tcontainerShape: this.shape(),\n\t\t\t\tclass: this.containerClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\t// For checkboxes on child components\n\theader = contentChild(TableHeaderCheckboxComponent, { descendants: true });\n\trows = contentChildren(TableRowCheckboxComponent, { descendants: true });\n\tidentifiers = signal<Set<unknown>>(new Set());\n\tonCheck = output<unknown[]>();\n\n\tcheckEffect = effect(() => {\n\t\tthis.onCheck.emit(Array.from(this.identifiers()));\n\t});\n\n\thandleToggleAll(value: boolean) {\n\t\tif (!value) {\n\t\t\tthis.clearList();\n\t\t}\n\n\t\tthis.rows().forEach((row) => {\n\t\t\trow.checked.set(value);\n\t\t\tif (value) {\n\t\t\t\tthis.identifiers.update((items) => new Set(items).add(row.identifier()));\n\t\t\t}\n\t\t});\n\t}\n\n\thandleToggleCheckbox(value: boolean, identifier: unknown) {\n\t\tif (value) {\n\t\t\tthis.identifiers.update((items) => new Set(items).add(identifier));\n\t\t} else {\n\t\t\tthis.header()?.checked.set(false);\n\t\t\tthis.identifiers.update((items) => {\n\t\t\t\titems.delete(identifier);\n\t\t\t\treturn new Set(items);\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate clearList() {\n\t\tthis.identifiers.set(new Set());\n\t\tthis.header()?.checked.set(false);\n\t}\n}\n","@let total = totalItems();\n@if (total > 0 || data().length > 0) {\n\t<section [class]=\"containerClass\">\n\t\t<!-- Table -->\n\t\t<div class=\"h-full overflow-x-auto overflow-y-auto\">\n\t\t\t<table [class]=\"contentClass\">\n\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\n\t\t@if (total > 0) {\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"grid grid-cols-[1fr_3fr_1fr] items-center\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPage()) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(onChange)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\tshape=\"round-sm\"\n\t\t\t\t\t\t\theight=\"sm\"\n\t\t\t\t\t\t\t[class]=\"'min-w-min'\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'black'\"> entradas por página</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t@if (total) {\n\t\t\t\t\t@if (paginatorType() === 'default') {\n\t\t\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t[paginatorId]=\"pagination().id\"\n\t\t\t\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\t\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t} @else if (paginatorType() === 'dots') {\n\t\t\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"pagination().id\" (onPageChange)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\n\t\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t\t@if (showEntries()) {\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<span typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'black'\"> {{ paginationRange() }} de {{ total }} entradas </span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t}\n\t</section>\n} @else {\n\t<div class=\"flex justify-center justify-self-center p-3\">\n\t\t<span typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'black'\">{{ error() | translate }}</span>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.TableComponent"],"mappings":";;;;;;;;;;;;MAYa,4BAA4B,CAAA;AAIZ,IAAA,KAAA,CAAA;AAH5B,IAAA,eAAe,GAAG,KAAK,CAAuB,SAAS,CAAC,CAAC;AACzD,IAAA,YAAY,GAAG,KAAK,CAAoB,IAAI,CAAC,CAAC;AAC9C,IAAA,OAAO,GAAG,MAAM,CAAU,KAAK,CAAC,CAAC;AACjC,IAAA,WAAA,CAA4B,KAAqB,EAAA;QAArB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;KAAI;AAErD,IAAA,eAAe,CAAC,KAAc,EAAA;AAC7B,QAAA,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;KAClC;wGARW,4BAA4B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,cAAA,EAAA,IAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;4FAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,EAAA,eAAA,EAAA,EAAA,i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A,UAAA,EAAA,IAAA,EAAE,eAAe,EAAE,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,aAAA,EAAA,IAAA,EAAA,WAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,kBAAkB,EAAE,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,SAAA,EAAA,MAAA,EAAA,OAAA,EAAA,aAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,EAAA,mBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,mBAAmB,8IAAE,eAAe,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,OAAA,EAAA,QAAA,EAAA,SAAA,EAAA,OAAA,EAAA,MAAA,EAAA,aAAA,EAAA,OAAA,EAAA,SAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,KAAA,EAAA,YAAA,EAAA,iBAAA,EAAA,UAAA,CAAA,EAAA,OAAA,EAAA,CAAA,aAAA,EAAA,gBAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAIrF,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,cACR,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,eAAe,CAAC,EAEjF,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,06EAAA,EAAA,CAAA;;;AExFhD;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-table.mjs","sources":["../../../projects/sdk/components/table/table-header-checkbox/table-header-checkbox.component.ts","../../../projects/sdk/components/table/table-header-checkbox/table-header-checkbox.component.html","../../../projects/sdk/components/table/table-row-checkbox/table-row-checkbox.component.ts","../../../projects/sdk/components/table/table-row-checkbox/table-row-checkbox.component.html","../../../projects/sdk/components/table/src/table.component.ts","../../../projects/sdk/components/table/src/table.component.html","../../../projects/sdk/components/table/sixbell-telco-sdk-components-table.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Host, input, signal } from '@angular/core';\nimport { CheckboxComponent, CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';\nimport { TableComponent } from '../src/table.component';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'tr[header-checkbox]',\n\tstandalone: true,\n\timports: [CheckboxComponent],\n\ttemplateUrl: './table-header-checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableHeaderCheckboxComponent {\n\tcheckboxVariant = input<CheckboxVariantProps>('primary');\n\tcheckboxSize = input<CheckboxSizeProps>('md');\n\tchecked = signal<boolean>(false);\n\tconstructor(@Host() private table: TableComponent) {}\n\n\thandleSelectAll(value: boolean) {\n\t\tthis.table.handleToggleAll(value);\n\t}\n}\n","<td class=\"w-4\">\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</td>\n<ng-content></ng-content>\n","import { ChangeDetectionStrategy, Component, Host, input, signal } from '@angular/core';\nimport { CheckboxComponent, CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';\nimport { TableComponent } from '../src/table.component';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'tr[row-checkbox]',\n\tstandalone: true,\n\timports: [CheckboxComponent],\n\ttemplateUrl: './table-row-checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableRowCheckboxComponent {\n\tcheckboxVariant = input<CheckboxVariantProps>('primary');\n\tcheckboxSize = input<CheckboxSizeProps>('md');\n\tidentifier = input.required();\n\tchecked = signal<boolean>(false);\n\n\tconstructor(@Host() private table: TableComponent) {}\n\n\thandleSelect(value: boolean) {\n\t\tthis.table.handleToggleCheckbox(value, this.identifier());\n\t}\n}\n","<td>\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, effect, input, output, signal } from '@angular/core';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { SelectComponent } from '@sixbell-telco/sdk/components/forms/select';\nimport { PaginatorComponent } from '@sixbell-telco/sdk/components/paginator';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\nimport { TableHeaderCheckboxComponent } from '../table-header-checkbox/table-header-checkbox.component';\nimport { TableRowCheckboxComponent } from '../table-row-checkbox/table-row-checkbox.component';\n\nexport type PaginationType = 'default' | 'dots';\n\nexport const tableContent = cva(['relative border-separate border-spacing-0'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: ['table', 'font-body'],\n\t\t\tzebra: ['table', 'table-zebra', 'font-body'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['table-xs'],\n\t\t\tsm: ['table-sm'],\n\t\t\tmd: ['table-md'],\n\t\t\tlg: ['table-lg'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'zebra',\n\t\tsize: 'md',\n\t},\n});\n\nexport type TableContentVariantProps = 'default' | 'zebra' | null | undefined;\nexport type TableContentSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport const tableContainer = cva(['flex flex-col gap-4 px-4 pb-10 pt-5 overflow-y-auto'], {\n\tvariants: {\n\t\tcontainerShadow: {\n\t\t\tnone: [],\n\t\t\tsecondary: ['shadow-secondary'],\n\t\t},\n\t\tcontainerHeight: {\n\t\t\tauto: ['h-auto'],\n\t\t\tfull: ['h-full'],\n\t\t\tsm: ['h-[400px]'],\n\t\t\tmd: ['h-[700px]'],\n\t\t\tlg: ['h-[80vh]'],\n\t\t},\n\t\tcontainerShape: {\n\t\t\t'round-sm': ['rounded-box-sm'],\n\t\t\t'round-md': ['rounded-box-md'],\n\t\t\t'round-lg': ['rounded-box-lg'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tcontainerShadow: 'none',\n\t\tcontainerHeight: 'auto',\n\t\tcontainerShape: 'round-sm',\n\t},\n});\nexport type TableContainerShadowProps = 'none' | 'secondary' | null | undefined;\nexport type TableContainerHeightProps = 'auto' | 'full' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type TableContainerShapeProps = 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\n\nexport type TableVariantProps = {\n\tsize?: TableContentSizeProps;\n\tvariant?: TableContentVariantProps;\n\tcontainerHeight?: TableContainerHeightProps;\n\tcontainerShadow?: TableContainerShadowProps;\n\tcontainerShape?: TableContainerShapeProps;\n};\nexport const tableComponent = ({ size, variant, containerHeight, containerShadow, containerShape }: TableVariantProps = {}) =>\n\tcx(tableContent({ variant, size }), tableContainer({ containerHeight, containerShadow, containerShape }));\n\nexport type TablePagination = {\n\tid: string;\n\tcurrentPage: number;\n\titemsPerPage: number;\n\tsearch: string;\n};\n\n@Component({\n\tselector: 'st-table',\n\tstandalone: true,\n\timports: [CommonModule, TranslateModule, PaginatorComponent, TypographyDirective, SelectComponent],\n\ttemplateUrl: './table.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableComponent {\n\t// Base table properties\n\tvariant = input<TableContentVariantProps>();\n\tsize = input<TableContentSizeProps>();\n\theight = input<TableContainerHeightProps>();\n\tshadow = input<TableContainerShadowProps>();\n\tshape = input<TableContainerShapeProps>();\n\tcontentClasses = input<string>('');\n\tcontainerClasses = input<string>('');\n\tpaginatorType = input<PaginationType>('default');\n\n\t// Table data\n\tdata = input<unknown[]>([]);\n\ttotalItems = input<number>(0);\n\terror = input<string>('common.errors.no_data_found');\n\n\t// Paginator properties\n\tpagination = input<TablePagination>({ id: 'paginator', currentPage: 1, itemsPerPage: 10, search: '' });\n\tmaxSize = input<number>(7);\n\tonPageChange = output<number>();\n\tonPageSizeChange = output<number>();\n\tshowItemsPerPage = input<boolean>(true);\n\tshowEntries = input<boolean>(true);\n\n\tpaginationRange = computed(() => {\n\t\tconst start = this.pagination().currentPage * this.pagination().itemsPerPage - this.pagination().itemsPerPage + 1;\n\t\tconst end = Math.min(this.pagination().currentPage * this.pagination().itemsPerPage, this.totalItems());\n\t\treturn `${start}-${end}`;\n\t});\n\n\thandlePageChange(page: number) {\n\t\tthis.handleToggleAll(false);\n\t\tthis.onPageChange.emit(page);\n\t}\n\n\thandlePageSizeChange(size: number) {\n\t\tthis.handleToggleAll(false);\n\t\tthis.onPageSizeChange.emit(size);\n\t}\n\n\tget contentClass() {\n\t\treturn cn(\n\t\t\ttableContent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.contentClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget containerClass() {\n\t\treturn cn(\n\t\t\ttableContainer({\n\t\t\t\tcontainerShadow: this.shadow(),\n\t\t\t\tcontainerHeight: this.height(),\n\t\t\t\tcontainerShape: this.shape(),\n\t\t\t\tclass: this.containerClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\t// For checkboxes on child components\n\theader = contentChild(TableHeaderCheckboxComponent, { descendants: true });\n\trows = contentChildren(TableRowCheckboxComponent, { descendants: true });\n\tidentifiers = signal<Set<unknown>>(new Set());\n\tonCheck = output<unknown[]>();\n\n\tcheckEffect = effect(() => {\n\t\tthis.onCheck.emit(Array.from(this.identifiers()));\n\t});\n\n\thandleToggleAll(value: boolean) {\n\t\tif (!value) {\n\t\t\tthis.clearList();\n\t\t}\n\n\t\tthis.rows().forEach((row) => {\n\t\t\trow.checked.set(value);\n\t\t\tif (value) {\n\t\t\t\tthis.identifiers.update((items) => new Set(items).add(row.identifier()));\n\t\t\t}\n\t\t});\n\t}\n\n\thandleToggleCheckbox(value: boolean, identifier: unknown) {\n\t\tif (value) {\n\t\t\tthis.identifiers.update((items) => new Set(items).add(identifier));\n\t\t} else {\n\t\t\tthis.header()?.checked.set(false);\n\t\t\tthis.identifiers.update((items) => {\n\t\t\t\titems.delete(identifier);\n\t\t\t\treturn new Set(items);\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate clearList() {\n\t\tthis.identifiers.set(new Set());\n\t\tthis.header()?.checked.set(false);\n\t}\n}\n","@let total = totalItems();\n@if (total > 0 || data().length > 0) {\n\t<section [class]=\"containerClass\">\n\t\t<!-- Table -->\n\t\t<div class=\"h-full overflow-x-auto overflow-y-auto\">\n\t\t\t<table [class]=\"contentClass\">\n\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\n\t\t@if (total > 0) {\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"grid grid-cols-[1fr_3fr_1fr] items-center\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPage()) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(onChange)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\tshape=\"round-sm\"\n\t\t\t\t\t\t\theight=\"sm\"\n\t\t\t\t\t\t\t[class]=\"'min-w-min'\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'black'\"> entradas por página</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t@if (total) {\n\t\t\t\t\t@if (paginatorType() === 'default') {\n\t\t\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t[paginatorId]=\"pagination().id\"\n\t\t\t\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\t\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t} @else if (paginatorType() === 'dots') {\n\t\t\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"pagination().id\" (onPageChange)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\n\t\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t\t@if (showEntries()) {\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<span typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'black'\"> {{ paginationRange() }} de {{ total }} entradas </span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t}\n\t</section>\n} @else {\n\t<div class=\"flex justify-center justify-self-center p-3\">\n\t\t<span typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'black'\">{{ error() | translate }}</span>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.TableComponent"],"mappings":";;;;;;;;;;;;MAYa,4BAA4B,CAAA;AAIZ,IAAA,KAAA,CAAA;AAH5B,IA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AAA,KAAA,EAAA,YAAA,EAAA,iBAAA,EAAA,UAAA,CAAA,EAAA,OAAA,EAAA,CAAA,aAAA,EAAA,gBAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAIrF,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,cACR,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,eAAe,CAAC,EAEjF,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,06EAAA,EAAA,CAAA;;;AExFhD;;AAEG;;;;"}
@@ -3,6 +3,7 @@ import { signal, computed, effect, Injectable, input, output, Component, inject
3
3
  import { generateUniqueId } from '@sixbell-telco/sdk/utils/generators/uuid';
4
4
  import { NgClass } from '@angular/common';
5
5
  import { IconComponent } from '@sixbell-telco/sdk/components/icon';
6
+ import { matCheckCircleOutline, matWarningOutline, matErrorOutline, matInfoOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
6
7
  import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
7
8
  import { cn } from '@sixbell-telco/sdk/utils/cn';
8
9
  import { cva } from 'class-variance-authority';
@@ -105,7 +106,10 @@ class ToastMessageComponent {
105
106
  toastAmount = input.required();
106
107
  toastIndex = input.required();
107
108
  onClick = output();
108
- iconName = signal('check-circle');
109
+ iconCheckCircle = matCheckCircleOutline;
110
+ iconWarning = matWarningOutline;
111
+ iconError = matErrorOutline;
112
+ iconInfo = matInfoOutline;
109
113
  get componentClass() {
110
114
  if (this.toast().type === this.types.SUCCESS) {
111
115
  return cn(toastComponent({
@@ -142,11 +146,11 @@ class ToastMessageComponent {
142
146
  this.onClick.emit(this.toast());
143
147
  }
144
148
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ToastMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
145
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ToastMessageComponent, isStandalone: true, selector: "st-toast-message", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, toast: { classPropertyName: "toast", publicName: "toast", isSignal: true, isRequired: true, transformFunction: null }, toastAmount: { classPropertyName: "toastAmount", publicName: "toastAmount", isSignal: true, isRequired: true, transformFunction: null }, toastIndex: { classPropertyName: "toastIndex", publicName: "toastIndex", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<!-- 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 [iconName]=\"'check-circle'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.WARNING) {\n\t\t\t<st-icon [iconName]=\"'exclamation-diamond'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.ERROR) {\n\t\t\t<st-icon [iconName]=\"'x-hexagonal'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.INFO) {\n\t\t\t<st-icon [iconName]=\"'info-circle'\" 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<span\n\t\t\t\tclasses=\"block max-h-6 truncate\"\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body'\"\n\t\t\t\t[typographyColor]=\"'black'\"\n\t\t\t\t[typographyFontWeight]=\"'semibold'\"\n\t\t\t\t>{{ toast().title }}</span\n\t\t\t>\n\t\t\t<span\n\t\t\t\tclasses=\"block max-h-8 overflow-y-auto\"\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body-xs'\"\n\t\t\t\t[typographyColor]=\"'black'\"\n\t\t\t\t[typographyFontWeight]=\"'normal'\"\n\t\t\t\t>{{ toast().message }}\n\t\t\t</span>\n\t\t</div>\n\t</div>\n</li>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "iconName"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
149
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ToastMessageComponent, isStandalone: true, selector: "st-toast-message", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, toast: { classPropertyName: "toast", publicName: "toast", isSignal: true, isRequired: true, transformFunction: null }, toastAmount: { classPropertyName: "toastAmount", publicName: "toastAmount", isSignal: true, isRequired: true, transformFunction: null }, toastIndex: { classPropertyName: "toastIndex", publicName: "toastIndex", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<!-- 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<span\n\t\t\t\tclasses=\"block max-h-6 truncate\"\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body'\"\n\t\t\t\t[typographyColor]=\"'black'\"\n\t\t\t\t[typographyFontWeight]=\"'semibold'\"\n\t\t\t\t>{{ toast().title }}</span\n\t\t\t>\n\t\t\t<span\n\t\t\t\tclasses=\"block max-h-8 overflow-y-auto\"\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body-xs'\"\n\t\t\t\t[typographyColor]=\"'black'\"\n\t\t\t\t[typographyFontWeight]=\"'normal'\"\n\t\t\t\t>{{ toast().message }}\n\t\t\t</span>\n\t\t</div>\n\t</div>\n</li>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
146
150
  }
147
151
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ToastMessageComponent, decorators: [{
148
152
  type: Component,
149
- args: [{ selector: 'st-toast-message', standalone: true, imports: [TypographyDirective, IconComponent, NgClass], template: "<!-- 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 [iconName]=\"'check-circle'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.WARNING) {\n\t\t\t<st-icon [iconName]=\"'exclamation-diamond'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.ERROR) {\n\t\t\t<st-icon [iconName]=\"'x-hexagonal'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.INFO) {\n\t\t\t<st-icon [iconName]=\"'info-circle'\" 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<span\n\t\t\t\tclasses=\"block max-h-6 truncate\"\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body'\"\n\t\t\t\t[typographyColor]=\"'black'\"\n\t\t\t\t[typographyFontWeight]=\"'semibold'\"\n\t\t\t\t>{{ toast().title }}</span\n\t\t\t>\n\t\t\t<span\n\t\t\t\tclasses=\"block max-h-8 overflow-y-auto\"\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body-xs'\"\n\t\t\t\t[typographyColor]=\"'black'\"\n\t\t\t\t[typographyFontWeight]=\"'normal'\"\n\t\t\t\t>{{ toast().message }}\n\t\t\t</span>\n\t\t</div>\n\t</div>\n</li>\n" }]
153
+ args: [{ selector: 'st-toast-message', standalone: true, imports: [TypographyDirective, IconComponent, NgClass], template: "<!-- 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<span\n\t\t\t\tclasses=\"block max-h-6 truncate\"\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body'\"\n\t\t\t\t[typographyColor]=\"'black'\"\n\t\t\t\t[typographyFontWeight]=\"'semibold'\"\n\t\t\t\t>{{ toast().title }}</span\n\t\t\t>\n\t\t\t<span\n\t\t\t\tclasses=\"block max-h-8 overflow-y-auto\"\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body-xs'\"\n\t\t\t\t[typographyColor]=\"'black'\"\n\t\t\t\t[typographyFontWeight]=\"'normal'\"\n\t\t\t\t>{{ toast().message }}\n\t\t\t</span>\n\t\t</div>\n\t</div>\n</li>\n" }]
150
154
  }] });
151
155
 
152
156
  class ToastsContainerComponent {
@@ -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, signal } from '@angular/core';\nimport { IconComponent, IconName } from '@sixbell-telco/sdk/components/icon';\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-white 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\ticonName = signal<IconName>('check-circle');\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 [iconName]=\"'check-circle'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.WARNING) {\n\t\t\t<st-icon [iconName]=\"'exclamation-diamond'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.ERROR) {\n\t\t\t<st-icon [iconName]=\"'x-hexagonal'\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.INFO) {\n\t\t\t<st-icon [iconName]=\"'info-circle'\" 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<span\n\t\t\t\tclasses=\"block max-h-6 truncate\"\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body'\"\n\t\t\t\t[typographyColor]=\"'black'\"\n\t\t\t\t[typographyFontWeight]=\"'semibold'\"\n\t\t\t\t>{{ toast().title }}</span\n\t\t\t>\n\t\t\t<span\n\t\t\t\tclasses=\"block max-h-8 overflow-y-auto\"\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body-xs'\"\n\t\t\t\t[typographyColor]=\"'black'\"\n\t\t\t\t[typographyFontWeight]=\"'normal'\"\n\t\t\t\t>{{ toast().message }}\n\t\t\t</span>\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,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,CAA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AA,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, 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-white 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<span\n\t\t\t\tclasses=\"block max-h-6 truncate\"\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body'\"\n\t\t\t\t[typographyColor]=\"'black'\"\n\t\t\t\t[typographyFontWeight]=\"'semibold'\"\n\t\t\t\t>{{ toast().title }}</span\n\t\t\t>\n\t\t\t<span\n\t\t\t\tclasses=\"block max-h-8 overflow-y-auto\"\n\t\t\t\ttypography\n\t\t\t\t[typographyVariant]=\"'body-xs'\"\n\t\t\t\t[typographyColor]=\"'black'\"\n\t\t\t\t[typographyFontWeight]=\"'normal'\"\n\t\t\t\t>{{ toast().message }}\n\t\t\t</span>\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,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;AAE9D,IAAA,WAAA,GAAA;;QAEC,MAAM,CAAC,MAAK;AACX,YAAA,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE;AACnC,gBAAA,MAAM,EAAE,IAAI,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AAEG;;;;"}
@@ -3,6 +3,7 @@ import { input, Component, ChangeDetectionStrategy, contentChildren, model, outp
3
3
  import { cn } from '@sixbell-telco/sdk/utils/cn';
4
4
  import { NgClass } from '@angular/common';
5
5
  import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
6
+ import { matCheckOutline, matKeyboardBackspaceOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
6
7
  import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
7
8
  import { IconComponent } from '@sixbell-telco/sdk/components/icon';
8
9
 
@@ -30,6 +31,7 @@ class WizardStepComponent {
30
31
  status = input.required();
31
32
  content = input.required();
32
33
  currentStep = input.required();
34
+ icon = matCheckOutline;
33
35
  getStepClasses(currentStep, content) {
34
36
  const outerClasses = cn('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', {
35
37
  'border-primary currentStep transition-colors duration-300 ease-out': currentStep === content.step() && (content.status() === 'in progress' || content.status() === 'completed'),
@@ -56,11 +58,11 @@ class WizardStepComponent {
56
58
  });
57
59
  }
58
60
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
59
- 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 [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'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\" [iconName]=\"'check'\" color=\"inherit\" size=\"md\"></st-icon>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "iconName"] }], 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 [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'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: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
60
62
  }
61
63
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardStepComponent, decorators: [{
62
64
  type: Component,
63
- args: [{ selector: 'st-wizard-step', standalone: true, imports: [TypographyDirective, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, 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 [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'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\" [iconName]=\"'check'\" color=\"inherit\" size=\"md\"></st-icon>\n\t</div>\n</div>\n" }]
65
+ args: [{ selector: 'st-wizard-step', standalone: true, imports: [TypographyDirective, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, 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 [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'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" }]
64
66
  }] });
65
67
 
66
68
  class WizardSubStepComponent {
@@ -103,6 +105,7 @@ class WizardWrapperComponent {
103
105
  isLastStep = computed(() => this.currentStep() === this.contents().length - 1);
104
106
  allStepsAreValid = computed(() => this.contents().every((step) => step.isValid()));
105
107
  isCurrentStepValid = computed(() => this.contents()[this.currentStep()].isValid());
108
+ icon = matKeyboardBackspaceOutline;
106
109
  handlePreviousStep() {
107
110
  if (this.currentStep() <= 0) {
108
111
  return;
@@ -163,11 +166,11 @@ class WizardWrapperComponent {
163
166
  return { outerClasses, innerClasses };
164
167
  }
165
168
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
166
- 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 [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{\n\t\t\t\t\t\t\t\tcontent.name()\n\t\t\t\t\t\t\t}}</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 [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'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<st-button label=\"Volver\" type=\"button\" containerClasses=\"w-60\" variant=\"secondary\" shape=\"round-lg\" padding=\"md\" (click)=\"handleBack()\" />\n\t\t} @else {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Anterior\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\ticonName=\"arrow-left\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handlePreviousStep()\"\n\t\t\t/>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Finalizar\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[disabled]=\"!allStepsAreValid()\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t/>\n\t\t} @else {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Siguiente\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[disabled]=\"!isCurrentStepValid()\"\n\t\t\t\tvariant=\"primary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handleNextStep()\"\n\t\t\t/>\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", "shape", "padding", "height", "width", "alignment", "iconPosition", "fontSize", "containerClasses", "iconClasses", "label", "type", "iconName", "disabled"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { 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 [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{\n\t\t\t\t\t\t\t\tcontent.name()\n\t\t\t\t\t\t\t}}</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 [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'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<st-button label=\"Volver\" type=\"button\" containerClasses=\"w-60\" variant=\"secondary\" shape=\"round-lg\" padding=\"md\" (click)=\"handleBack()\" />\n\t\t} @else {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Anterior\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[icon]=\"icon\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handlePreviousStep()\"\n\t\t\t/>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Finalizar\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[disabled]=\"!allStepsAreValid()\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t/>\n\t\t} @else {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Siguiente\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[disabled]=\"!isCurrentStepValid()\"\n\t\t\t\tvariant=\"primary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handleNextStep()\"\n\t\t\t/>\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", "shape", "padding", "height", "width", "alignment", "iconPosition", "fontSize", "containerClasses", "iconClasses", "label", "type", "icon", "disabled"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: WizardMarkerComponent, selector: "st-wizard-marker", inputs: ["content"] }, { kind: "component", type: WizardSubStepComponent, selector: "st-wizard-sub-step", inputs: ["content", "currentStep"] }] });
167
170
  }
168
171
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: WizardWrapperComponent, decorators: [{
169
172
  type: Component,
170
- args: [{ selector: 'st-wizard', standalone: true, imports: [WizardStepComponent, ButtonComponent, NgClass, TypographyDirective, WizardMarkerComponent, WizardSubStepComponent], 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 [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{\n\t\t\t\t\t\t\t\tcontent.name()\n\t\t\t\t\t\t\t}}</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 [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'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<st-button label=\"Volver\" type=\"button\" containerClasses=\"w-60\" variant=\"secondary\" shape=\"round-lg\" padding=\"md\" (click)=\"handleBack()\" />\n\t\t} @else {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Anterior\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\ticonName=\"arrow-left\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handlePreviousStep()\"\n\t\t\t/>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Finalizar\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[disabled]=\"!allStepsAreValid()\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t/>\n\t\t} @else {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Siguiente\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[disabled]=\"!isCurrentStepValid()\"\n\t\t\t\tvariant=\"primary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handleNextStep()\"\n\t\t\t/>\n\t\t}\n\t</div>\n</div>\n" }]
173
+ args: [{ selector: 'st-wizard', standalone: true, imports: [WizardStepComponent, ButtonComponent, NgClass, TypographyDirective, WizardMarkerComponent, WizardSubStepComponent], 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 [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{\n\t\t\t\t\t\t\t\tcontent.name()\n\t\t\t\t\t\t\t}}</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 [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'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<st-button label=\"Volver\" type=\"button\" containerClasses=\"w-60\" variant=\"secondary\" shape=\"round-lg\" padding=\"md\" (click)=\"handleBack()\" />\n\t\t} @else {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Anterior\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[icon]=\"icon\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handlePreviousStep()\"\n\t\t\t/>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Finalizar\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[disabled]=\"!allStepsAreValid()\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t/>\n\t\t} @else {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Siguiente\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[disabled]=\"!isCurrentStepValid()\"\n\t\t\t\tvariant=\"primary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handleNextStep()\"\n\t\t\t/>\n\t\t}\n\t</div>\n</div>\n" }]
171
174
  }] });
172
175
 
173
176
  class WizardContentComponent {
@@ -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-secondary-muted border-[2px] border-secondary-muted 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 [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'semibold'\">{{\n\t\tgetStatusMarkerMessage(contentVar)\n\t}}</span>\n</div>\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\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\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 [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'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\" [iconName]=\"'check'\" 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 { 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\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 [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{\n\t\t\t\t\t\t\t\tcontent.name()\n\t\t\t\t\t\t\t}}</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 [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'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<st-button label=\"Volver\" type=\"button\" containerClasses=\"w-60\" variant=\"secondary\" shape=\"round-lg\" padding=\"md\" (click)=\"handleBack()\" />\n\t\t} @else {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Anterior\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\ticonName=\"arrow-left\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handlePreviousStep()\"\n\t\t\t/>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Finalizar\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[disabled]=\"!allStepsAreValid()\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t/>\n\t\t} @else {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Siguiente\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[disabled]=\"!isCurrentStepValid()\"\n\t\t\t\tvariant=\"primary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handleNextStep()\"\n\t\t\t/>\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,kJAAkJ,EACjJ,OAAO,CAAC,MAAM,EAAE,KAAK,SAAS;AAC/B,SAAA,CAAC,CAAC;KACH;wGAfW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECZlC,sRAMA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDEW,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,iBAAA,EAAA,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AAEpB,IAAA,WAAW,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;AACxD,IAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;AAElE,IAAA,WAAA,CAA4B,MAA8B,EAAA;QAA9B,IAAM,CAAA,MAAA,GAAN,MAAM,CAAwB;KAAI;AAE9D,IAAA,IAAI,cAAc,GAAA;QACjB,OAAO,EAAE,CAAC,sCAAsC,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;KAClE;wGAfW,sBAAsB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,sBAAA,EAAA,IAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,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-secondary-muted border-[2px] border-secondary-muted 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 [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'semibold'\">{{\n\t\tgetStatusMarkerMessage(contentVar)\n\t}}</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 [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'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 [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{\n\t\t\t\t\t\t\t\tcontent.name()\n\t\t\t\t\t\t\t}}</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 [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'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<st-button label=\"Volver\" type=\"button\" containerClasses=\"w-60\" variant=\"secondary\" shape=\"round-lg\" padding=\"md\" (click)=\"handleBack()\" />\n\t\t} @else {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Anterior\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[icon]=\"icon\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handlePreviousStep()\"\n\t\t\t/>\n\t\t}\n\t\t@if (isLastStep()) {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Finalizar\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[disabled]=\"!allStepsAreValid()\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t/>\n\t\t} @else {\n\t\t\t<st-button\n\t\t\t\tlabel=\"Siguiente\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tcontainerClasses=\"w-60\"\n\t\t\t\t[disabled]=\"!isCurrentStepValid()\"\n\t\t\t\tvariant=\"primary\"\n\t\t\t\tshape=\"round-lg\"\n\t\t\t\tpadding=\"md\"\n\t\t\t\t(click)=\"handleNextStep()\"\n\t\t\t/>\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,kJAAkJ,EACjJ,OAAO,CAAC,MAAM,EAAE,KAAK,SAAS;AAC/B,SAAA,CAAC,CAAC;KACH;wGAfW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAA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,EAAA,UAAA,EACjB,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,+GAAA,EAAA,CAAA;;0BAcE,IAAI;;;AEvBlB;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk.mjs","sources":["../../../projects/sdk/src/public_api.ts","../../../projects/sdk/src/sixbell-telco-sdk.ts"],"sourcesContent":["export const SIXBELL_TELCO_UI = '@sixbell-telco/ui';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"AAAO,MAAM,gBAAgB,GAAG;;ACAhC;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk.mjs","sources":["../../../projects/sdk/public_api.ts","../../../projects/sdk/sixbell-telco-sdk.ts"],"sourcesContent":["export const SIXBELL_TELCO_UI = '@sixbell-telco/ui';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"AAAO,MAAM,gBAAgB,GAAG;;ACAhC;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sixbell-telco/sdk",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "description": "A collection of reusable components designed for use in Sixbell Telco Angular projects",
5
5
  "keywords": [
6
6
  "sixbell",
@@ -250,6 +250,30 @@
250
250
  "esm2022": "./esm2022/utils/pipes/to-bytes-extesion/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs",
251
251
  "esm": "./esm2022/utils/pipes/to-bytes-extesion/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs",
252
252
  "default": "./fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs"
253
+ },
254
+ "./components/icon/material/baseline": {
255
+ "types": "./components/icon/material/baseline/index.d.ts",
256
+ "esm2022": "./esm2022/components/icon/material/baseline/sixbell-telco-sdk-components-icon-material-baseline.mjs",
257
+ "esm": "./esm2022/components/icon/material/baseline/sixbell-telco-sdk-components-icon-material-baseline.mjs",
258
+ "default": "./fesm2022/sixbell-telco-sdk-components-icon-material-baseline.mjs"
259
+ },
260
+ "./components/icon/material/outline": {
261
+ "types": "./components/icon/material/outline/index.d.ts",
262
+ "esm2022": "./esm2022/components/icon/material/outline/sixbell-telco-sdk-components-icon-material-outline.mjs",
263
+ "esm": "./esm2022/components/icon/material/outline/sixbell-telco-sdk-components-icon-material-outline.mjs",
264
+ "default": "./fesm2022/sixbell-telco-sdk-components-icon-material-outline.mjs"
265
+ },
266
+ "./components/icon/material/round": {
267
+ "types": "./components/icon/material/round/index.d.ts",
268
+ "esm2022": "./esm2022/components/icon/material/round/sixbell-telco-sdk-components-icon-material-round.mjs",
269
+ "esm": "./esm2022/components/icon/material/round/sixbell-telco-sdk-components-icon-material-round.mjs",
270
+ "default": "./fesm2022/sixbell-telco-sdk-components-icon-material-round.mjs"
271
+ },
272
+ "./components/icon/material/sharp": {
273
+ "types": "./components/icon/material/sharp/index.d.ts",
274
+ "esm2022": "./esm2022/components/icon/material/sharp/sixbell-telco-sdk-components-icon-material-sharp.mjs",
275
+ "esm": "./esm2022/components/icon/material/sharp/sixbell-telco-sdk-components-icon-material-sharp.mjs",
276
+ "default": "./fesm2022/sixbell-telco-sdk-components-icon-material-sharp.mjs"
253
277
  }
254
278
  },
255
279
  "peerDependencies": {
@@ -268,11 +292,13 @@
268
292
  "tailwindcss": "~3.4.15",
269
293
  "dayjs": "~1.11.13",
270
294
  "@ngx-translate/core": "~15.0.0",
271
- "uuid": "~11.0.3"
295
+ "uuid": "~11.0.3",
296
+ "@ng-icons/core": "~29.10.0",
297
+ "@ng-icons/material-icons": "~29.10.0"
272
298
  },
299
+ "sideEffects": false,
273
300
  "module": "fesm2022/sixbell-telco-sdk.mjs",
274
301
  "typings": "index.d.ts",
275
- "sideEffects": false,
276
302
  "dependencies": {
277
303
  "tslib": "^2.3.0"
278
304
  }
Binary file
Binary file