@sixbell-telco/sdk 0.1.5 → 0.1.6

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 (123) hide show
  1. package/README.md +28 -3
  2. package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +4 -4
  3. package/esm2022/components/accordion/src/accordion.component.mjs +4 -4
  4. package/esm2022/components/avatar/src/avatar.component.mjs +4 -4
  5. package/esm2022/components/button/src/button.component.mjs +4 -4
  6. package/esm2022/components/card/src/card.component.mjs +4 -4
  7. package/esm2022/components/countdown/src/countdown.component.mjs +4 -4
  8. package/esm2022/components/dropdown/src/dropdown.component.mjs +4 -4
  9. package/esm2022/components/dual-list/src/dual-list.component.mjs +4 -4
  10. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +4 -4
  11. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +4 -4
  12. package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +4 -4
  13. package/esm2022/components/forms/combobox/src/combobox.component.mjs +5 -5
  14. package/esm2022/components/forms/datepicker/src/datepicker-format-month.pipe.mjs +4 -4
  15. package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +4 -4
  16. package/esm2022/components/forms/form-error/src/form-error.component.mjs +4 -4
  17. package/esm2022/components/forms/input/src/input.component.mjs +4 -4
  18. package/esm2022/components/forms/radio/src/radio.component.mjs +4 -4
  19. package/esm2022/components/forms/range/src/range.component.mjs +4 -4
  20. package/esm2022/components/forms/select/src/select.component.mjs +4 -4
  21. package/esm2022/components/forms/switch/src/switch.component.mjs +4 -4
  22. package/esm2022/components/forms/textarea/src/textarea.component.mjs +4 -4
  23. package/esm2022/components/forms/toggle/src/toggle.component.mjs +4 -4
  24. package/esm2022/components/icon/src/icon.component.mjs +4 -4
  25. package/esm2022/components/link/src/link.component.mjs +4 -4
  26. package/esm2022/components/modal/src/modal.component.mjs +4 -4
  27. package/esm2022/components/notification/src/notification.component.mjs +4 -4
  28. package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +4 -4
  29. package/esm2022/components/paginator/src/paginator.component.mjs +4 -4
  30. package/esm2022/components/product-card/directives/product-card-actions.directive.mjs +4 -4
  31. package/esm2022/components/product-card/directives/product-card-content.directive.mjs +4 -4
  32. package/esm2022/components/product-card/directives/product-card-header.directive.mjs +4 -4
  33. package/esm2022/components/product-card/src/product-card.component.mjs +4 -4
  34. package/esm2022/components/progress/src/progress.component.mjs +4 -4
  35. package/esm2022/components/tab/directives/tab-content/tab-content.directive.mjs +4 -4
  36. package/esm2022/components/tab/directives/tab-header/tab-header.directive.mjs +4 -4
  37. package/esm2022/components/tab/src/tab.component.mjs +4 -4
  38. package/esm2022/components/table/src/table.component.mjs +4 -4
  39. package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +4 -4
  40. package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +4 -4
  41. package/esm2022/components/toast/services/toast.service.mjs +4 -4
  42. package/esm2022/components/toast/toast-message/toast-message.component.mjs +4 -4
  43. package/esm2022/components/toast/toasts-container/toasts-container.component.mjs +4 -4
  44. package/esm2022/components/tooltip/src/tooltip.component.mjs +4 -4
  45. package/esm2022/components/wizard/wizard-content/wizard-content.component.mjs +4 -4
  46. package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +4 -4
  47. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +4 -4
  48. package/esm2022/components/wizard/wizard-sub-step/wizard-sub-step.component.mjs +4 -4
  49. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +4 -4
  50. package/esm2022/directives/typography/src/typography.directive.mjs +4 -4
  51. package/esm2022/utils/pipes/extract-extension/src/extract-extension.mjs +4 -4
  52. package/esm2022/utils/pipes/to-bytes-extesion/src/to-bytes.pipe.mjs +4 -4
  53. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +6 -6
  54. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  55. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +3 -3
  56. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  57. package/fesm2022/sixbell-telco-sdk-components-button.mjs +3 -3
  58. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  59. package/fesm2022/sixbell-telco-sdk-components-card.mjs +3 -3
  60. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  61. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +3 -3
  62. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  63. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +3 -3
  64. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  65. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +3 -3
  66. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  67. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +3 -3
  68. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
  69. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +3 -3
  70. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
  71. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +3 -3
  72. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  73. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +4 -4
  74. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  75. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +6 -6
  76. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
  77. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +3 -3
  78. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  79. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +3 -3
  80. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  81. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +3 -3
  82. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +3 -3
  84. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  85. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +3 -3
  86. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +3 -3
  88. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +3 -3
  90. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  91. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +3 -3
  92. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  93. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +3 -3
  94. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  95. package/fesm2022/sixbell-telco-sdk-components-link.mjs +3 -3
  96. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  97. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +3 -3
  98. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +3 -3
  100. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +6 -6
  102. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  103. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +12 -12
  104. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +3 -3
  106. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +9 -9
  108. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  109. package/fesm2022/sixbell-telco-sdk-components-table.mjs +9 -9
  110. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  111. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +9 -9
  112. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  113. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +3 -3
  114. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  115. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +15 -15
  116. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  117. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +3 -3
  118. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
  119. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +3 -3
  120. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs.map +1 -1
  121. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +3 -3
  122. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs.map +1 -1
  123. package/package.json +17 -17
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-avatar.mjs","sources":["../../../projects/sdk/components/avatar/src/avatar.component.ts","../../../projects/sdk/components/avatar/src/avatar.component.html","../../../projects/sdk/components/avatar/sixbell-telco-sdk-components-avatar.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n// import { formatTitleCase } from '@shared/utils/formaters/title-case';\nimport { cva } from 'class-variance-authority';\n\nexport type AvatarUser = {\n\tfirstName: string;\n\tlastName: string;\n\temail: string;\n\tprofile: string;\n\tclient: string;\n};\n\nexport type AvatarTypes = 'quick' | 'profile';\n\nexport const avatarComponent = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-circle',\n\t\t\t\t'btn-outline',\n\t\t\t\t'text-neutral',\n\t\t\t\t'border-ring',\n\t\t\t\t'bg-secondary-muted',\n\t\t\t\t'hover:text-neutral',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'hover:border-ring-accent',\n\t\t\t\t'hover:bg-secondary-muted',\n\t\t\t\t'active:hover:bg-ring-accent',\n\t\t\t\t'active:focus:border-ring-accent',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-xs': ['rounded-btn-xs'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\tauto: [],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tshape: 'round-lg',\n\t\tsize: 'auto',\n\t},\n});\n\nexport type AvatarVariantProps = 'primary' | null | undefined;\nexport type AvatarShapeProps = 'round-xs' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type AvatarSizeProps = 'auto' | null | undefined;\n\nexport type AvatarProps = {\n\tvariant?: AvatarVariantProps;\n\tshape?: AvatarShapeProps;\n\tsize?: AvatarSizeProps;\n};\n\n@Component({\n\tselector: 'app-avatar',\n\tstandalone: true,\n\timports: [TypographyDirective],\n\ttemplateUrl: './avatar.component.html',\n\tstyles: '',\n})\nexport class AvatarComponent {\n\tvariant = input<AvatarVariantProps>();\n\tshape = input<AvatarShapeProps>();\n\tsize = input<AvatarSizeProps>();\n\tclasses = input<string>('');\n\ttype = input<AvatarTypes>('quick');\n\tuser = input.required<AvatarUser>();\n\tdisabled = input<boolean>(false);\n\n\tget initials(): string {\n\t\treturn `${this.user().firstName[0].toUpperCase()}${this.user().lastName[0].toUpperCase()}`;\n\t}\n\n\tget componentClass() {\n\t\treturn cn(avatarComponent({ variant: this.variant(), shape: this.shape(), size: this.size(), class: this.classes() }));\n\t}\n\n\tget profile() {\n\t\treturn this.formatTitleCase(this.user().profile);\n\t}\n\n\tget client() {\n\t\treturn this.formatTitleCase(this.user().client);\n\t}\n\n\tformatTitleCase(value: string): string {\n\t\treturn value\n\t\t\t.split(' ')\n\t\t\t.map((word) => word[0].toUpperCase() + word.slice(1))\n\t\t\t.join(' ');\n\t}\n}\n","@if (type() === 'quick') {\n\t<button [class]=\"componentClass\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'semibold'\">{{ initials }}</span>\n\t</button>\n}\n\n@if (type() === 'profile') {\n\t<div class=\"flex items-center gap-2\">\n\t\t<button [class]=\"componentClass\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'semibold'\">{{ initials }}</span>\n\t\t</button>\n\t\t<div class=\"max-w-36\">\n\t\t\t<p class=\"space-x-1 truncate\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">Perfil:</span>\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ profile }}</span>\n\t\t\t</p>\n\t\t\t<p class=\"space-x-1 truncate\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">Cliente:</span>\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ client }}</span>\n\t\t\t</p>\n\t\t</div>\n\t</div>\n}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AIjB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EACV,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,mBAAmB,CAAC,EAAA,QAAA,EAAA,mzCAAA,EAAA,CAAA;;;AEjE/B;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-avatar.mjs","sources":["../../../projects/sdk/components/avatar/src/avatar.component.ts","../../../projects/sdk/components/avatar/src/avatar.component.html","../../../projects/sdk/components/avatar/sixbell-telco-sdk-components-avatar.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n// import { formatTitleCase } from '@shared/utils/formaters/title-case';\nimport { cva } from 'class-variance-authority';\n\nexport type AvatarUser = {\n\tfirstName: string;\n\tlastName: string;\n\temail: string;\n\tprofile: string;\n\tclient: string;\n};\n\nexport type AvatarTypes = 'quick' | 'profile';\n\nexport const avatarComponent = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-circle',\n\t\t\t\t'btn-outline',\n\t\t\t\t'text-neutral',\n\t\t\t\t'border-ring',\n\t\t\t\t'bg-secondary-muted',\n\t\t\t\t'hover:text-neutral',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'hover:border-ring-accent',\n\t\t\t\t'hover:bg-secondary-muted',\n\t\t\t\t'active:hover:bg-ring-accent',\n\t\t\t\t'active:focus:border-ring-accent',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-xs': ['rounded-btn-xs'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\tauto: [],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tshape: 'round-lg',\n\t\tsize: 'auto',\n\t},\n});\n\nexport type AvatarVariantProps = 'primary' | null | undefined;\nexport type AvatarShapeProps = 'round-xs' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type AvatarSizeProps = 'auto' | null | undefined;\n\nexport type AvatarProps = {\n\tvariant?: AvatarVariantProps;\n\tshape?: AvatarShapeProps;\n\tsize?: AvatarSizeProps;\n};\n\n@Component({\n\tselector: 'app-avatar',\n\tstandalone: true,\n\timports: [TypographyDirective],\n\ttemplateUrl: './avatar.component.html',\n\tstyles: '',\n})\nexport class AvatarComponent {\n\tvariant = input<AvatarVariantProps>();\n\tshape = input<AvatarShapeProps>();\n\tsize = input<AvatarSizeProps>();\n\tclasses = input<string>('');\n\ttype = input<AvatarTypes>('quick');\n\tuser = input.required<AvatarUser>();\n\tdisabled = input<boolean>(false);\n\n\tget initials(): string {\n\t\treturn `${this.user().firstName[0].toUpperCase()}${this.user().lastName[0].toUpperCase()}`;\n\t}\n\n\tget componentClass() {\n\t\treturn cn(avatarComponent({ variant: this.variant(), shape: this.shape(), size: this.size(), class: this.classes() }));\n\t}\n\n\tget profile() {\n\t\treturn this.formatTitleCase(this.user().profile);\n\t}\n\n\tget client() {\n\t\treturn this.formatTitleCase(this.user().client);\n\t}\n\n\tformatTitleCase(value: string): string {\n\t\treturn value\n\t\t\t.split(' ')\n\t\t\t.map((word) => word[0].toUpperCase() + word.slice(1))\n\t\t\t.join(' ');\n\t}\n}\n","@if (type() === 'quick') {\n\t<button [class]=\"componentClass\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'semibold'\">{{ initials }}</span>\n\t</button>\n}\n\n@if (type() === 'profile') {\n\t<div class=\"flex items-center gap-2\">\n\t\t<button [class]=\"componentClass\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'semibold'\">{{ initials }}</span>\n\t\t</button>\n\t\t<div class=\"max-w-36\">\n\t\t\t<p class=\"space-x-1 truncate\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">Perfil:</span>\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ profile }}</span>\n\t\t\t</p>\n\t\t\t<p class=\"space-x-1 truncate\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">Cliente:</span>\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ client }}</span>\n\t\t\t</p>\n\t\t</div>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAgBa,MAAA,eAAe,GAAG,GAAG,CAAC,EAAE,EAAE;AACtC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE;gBACR,KAAK;gBACL,YAAY;gBACZ,aAAa;gBACb,cAAc;gBACd,aAAa;gBACb,oBAAoB;gBACpB,oBAAoB;gBACpB,mCAAmC;gBACnC,0BAA0B;gBAC1B,0BAA0B;gBAC1B,6BAA6B;gBAC7B,iCAAiC;AACjC,aAAA;AACD,SAAA;AACD,QAAA,KAAK,EAAE;YACN,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;AAC9B,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,IAAI,EAAE,EAAE;AACR,SAAA;AACD,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AAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECrE5B,mzCAuBA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED0CW,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIjB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EACV,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,mBAAmB,CAAC,EAAA,QAAA,EAAA,mzCAAA,EAAA,CAAA;;;AEjE/B;;AAEG;;;;"}
@@ -146,10 +146,10 @@ class ButtonComponent {
146
146
  class: this.iconClasses(),
147
147
  }));
148
148
  }
149
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
150
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: ButtonComponent, isStandalone: true, selector: "app-button", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, fontSize: { classPropertyName: "fontSize", publicName: "fontSize", isSignal: true, isRequired: false, transformFunction: null }, containerClasses: { classPropertyName: "containerClasses", publicName: "containerClasses", isSignal: true, isRequired: false, transformFunction: null }, iconClasses: { classPropertyName: "iconClasses", publicName: "iconClasses", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let variantVar = variant();\n@let iconNameVar = iconName();\n@let fontSizeVar = fontSize();\n\n@if (\n\tvariantVar === 'primary' ||\n\tvariantVar === 'warning' ||\n\tvariantVar === 'error' ||\n\tvariantVar === 'secondary' ||\n\tvariantVar === 'ghost-primary' ||\n\tvariantVar === 'ghost-error'\n) {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t@if (this.iconName()) {\n\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t@if (this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t\t}\n\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t</span>\n\t\t}\n\t\t@if (!this.iconName() && this.label()) {\n\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t}\n\t</button>\n} @else if (variantVar === 'circle' || variantVar === 'icon') {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t</button>\n} @else {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t@if (this.iconName()) {\n\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t@if (this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t\t}\n\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t</span>\n\t\t}\n\t\t@if (!this.iconName() && this.label()) {\n\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t}\n\t</button>\n}\n", styles: [""], dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "app-icon", inputs: ["color", "size", "classes", "iconName"] }] });
149
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
150
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ButtonComponent, isStandalone: true, selector: "app-button", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, fontSize: { classPropertyName: "fontSize", publicName: "fontSize", isSignal: true, isRequired: false, transformFunction: null }, containerClasses: { classPropertyName: "containerClasses", publicName: "containerClasses", isSignal: true, isRequired: false, transformFunction: null }, iconClasses: { classPropertyName: "iconClasses", publicName: "iconClasses", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let variantVar = variant();\n@let iconNameVar = iconName();\n@let fontSizeVar = fontSize();\n\n@if (\n\tvariantVar === 'primary' ||\n\tvariantVar === 'warning' ||\n\tvariantVar === 'error' ||\n\tvariantVar === 'secondary' ||\n\tvariantVar === 'ghost-primary' ||\n\tvariantVar === 'ghost-error'\n) {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t@if (this.iconName()) {\n\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t@if (this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t\t}\n\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t</span>\n\t\t}\n\t\t@if (!this.iconName() && this.label()) {\n\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t}\n\t</button>\n} @else if (variantVar === 'circle' || variantVar === 'icon') {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t</button>\n} @else {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t@if (this.iconName()) {\n\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t@if (this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t\t}\n\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t</span>\n\t\t}\n\t\t@if (!this.iconName() && this.label()) {\n\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t}\n\t</button>\n}\n", styles: [""], dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "app-icon", inputs: ["color", "size", "classes", "iconName"] }] });
151
151
  }
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ButtonComponent, decorators: [{
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ButtonComponent, decorators: [{
153
153
  type: Component,
154
154
  args: [{ selector: 'app-button', standalone: true, imports: [TypographyDirective, IconComponent], template: "@let variantVar = variant();\n@let iconNameVar = iconName();\n@let fontSizeVar = fontSize();\n\n@if (\n\tvariantVar === 'primary' ||\n\tvariantVar === 'warning' ||\n\tvariantVar === 'error' ||\n\tvariantVar === 'secondary' ||\n\tvariantVar === 'ghost-primary' ||\n\tvariantVar === 'ghost-error'\n) {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t@if (this.iconName()) {\n\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t@if (this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t\t}\n\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t</span>\n\t\t}\n\t\t@if (!this.iconName() && this.label()) {\n\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t}\n\t</button>\n} @else if (variantVar === 'circle' || variantVar === 'icon') {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t</button>\n} @else {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t@if (this.iconName()) {\n\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t@if (this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t\t}\n\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t</span>\n\t\t}\n\t\t@if (!this.iconName() && this.label()) {\n\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t}\n\t</button>\n}\n" }]
155
155
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-button.mjs","sources":["../../../projects/sdk/components/button/src/button.component.ts","../../../projects/sdk/components/button/src/button.component.html","../../../projects/sdk/components/button/sixbell-telco-sdk-components-button.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { IconComponent, IconName } from '@sixbell-telco/sdk/components/icon';\nimport { TypographyDirective, TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\n\nexport const buttonContainer = cva(['btn'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['btn-primary', 'h-auto', 'active:hover:shadow-primary', 'active:focus:shadow-primary'],\n\t\t\twarning: ['btn-warning', 'h-auto'],\n\t\t\terror: ['btn-error', 'h-auto'],\n\t\t\tsecondary: ['btn-secondary', 'h-auto'],\n\t\t\t'ghost-primary': [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-primary-content',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'active:focus:bg-primary',\n\t\t\t\t'active:focus:border-primary',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t\t'ghost-error': [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-error-content',\n\t\t\t\t'hover:bg-error',\n\t\t\t\t'active:focus:bg-error',\n\t\t\t\t'active:focus:border-error',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t\tcircle: [\n\t\t\t\t'btn-circle',\n\t\t\t\t'btn-outline',\n\t\t\t\t'text-neutral',\n\t\t\t\t'border-ring',\n\t\t\t\t'hover:text-neutral',\n\t\t\t\t'hover:border-ring-accent',\n\t\t\t\t'hover:bg-transparent',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'active:hover:bg-ring-accent',\n\t\t\t\t'active:focus:border-ring-accent',\n\t\t\t\t'focus-visible:outline-ring-accent',\n\t\t\t],\n\t\t\ticon: [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-primary',\n\t\t\t\t'hover:bg-transparent',\n\t\t\t\t'active:focus:bg-transparent',\n\t\t\t\t'active:focus:border-transparent',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tpadding: {\n\t\t\tnone: ['px-0', 'py-0'],\n\t\t\tnormal: ['px-3', 'py-3'],\n\t\t\tsm: ['px-4'],\n\t\t\tmd: ['px-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['h-fit', 'min-h-[auto]'],\n\t\t\tauto: ['h-auto', 'min-h-[auto]'],\n\t\t\tfull: ['h-full', 'min-h-full'],\n\t\t\t'min-content': ['h-min', 'min-h-min'],\n\t\t\t'max-content': ['h-max', 'min-h-max'],\n\t\t\tnormal: ['h-auto', 'min-h-12'],\n\t\t},\n\t\twidth: {\n\t\t\tfit: ['w-fit', 'min-w-[auto]'],\n\t\t\tauto: ['w-auto', 'min-w-[auto]'],\n\t\t\tfull: ['w-full', 'min-w-full'],\n\t\t\t'min-content': ['w-min', 'min-w-min'],\n\t\t\t'max-content': ['w-max', 'min-w-max'],\n\t\t\tnormal: ['w-auto', 'min-w-fit'],\n\t\t},\n\t\talignment: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['justify-start'],\n\t\t\tright: ['justify-end'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tshape: 'round-md',\n\t\tpadding: 'md',\n\t\theight: 'normal',\n\t\twidth: 'normal',\n\t\talignment: 'center',\n\t},\n});\n\nexport type ButtonContainerVariantProps =\n\t| 'primary'\n\t| 'warning'\n\t| 'error'\n\t| 'secondary'\n\t| 'ghost-primary'\n\t| 'ghost-error'\n\t| 'circle'\n\t| 'icon'\n\t| null\n\t| undefined;\nexport type ButtonContainerShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type ButtonContainerPaddingProps = 'none' | 'normal' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type ButtonContainerHeightProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | 'normal' | null | undefined;\nexport type ButtonContainerWidthProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | 'normal' | null | undefined;\nexport type ButtonContainerAlignmentProps = 'center' | 'left' | 'right' | null | undefined;\n\nexport const buttonIcon = cva(['flex items-center'], {\n\tvariants: {\n\t\ticonPosition: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['flex-row gap-2'],\n\t\t\tright: ['flex-row-reverse gap-2'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\ticonPosition: 'left',\n\t},\n});\n\nexport type ButtonIconVariantProps = 'center' | 'left' | 'right' | null | undefined;\n\nexport type ButtonProps = {\n\tvariant?: ButtonContainerVariantProps;\n\tshape?: ButtonContainerShapeProps;\n\tpadding?: ButtonContainerPaddingProps;\n\theight?: ButtonContainerHeightProps;\n\twidth?: ButtonContainerWidthProps;\n\talignment?: ButtonContainerAlignmentProps;\n\ticonPosition?: ButtonIconVariantProps;\n};\nexport const buttonComponent = ({ variant, shape, padding, height, width, alignment, iconPosition }: ButtonProps = {}) =>\n\tcx(buttonContainer({ variant, shape, padding, height, width, alignment }), buttonIcon({ iconPosition }));\n\ntype HTMLButtonType = 'button' | 'submit' | 'reset';\n\n@Component({\n\tselector: 'app-button',\n\tstandalone: true,\n\timports: [TypographyDirective, IconComponent],\n\ttemplateUrl: './button.component.html',\n\tstyles: '',\n})\nexport class ButtonComponent {\n\tvariant = input<ButtonContainerVariantProps>();\n\tshape = input<ButtonContainerShapeProps>();\n\tpadding = input<ButtonContainerPaddingProps>();\n\theight = input<ButtonContainerHeightProps>();\n\twidth = input<ButtonContainerWidthProps>();\n\talignment = input<ButtonContainerAlignmentProps>();\n\ticonPosition = input<ButtonIconVariantProps>();\n\tfontSize = input<TypographyVariantProps>('body');\n\tcontainerClasses = input<string>('');\n\ticonClasses = input<string>('');\n\tlabel = input<string>('');\n\ttype = input<HTMLButtonType>('button');\n\ticonName = input<IconName | undefined>();\n\tdisabled = input<boolean>(false);\n\n\tget containerClass() {\n\t\treturn cn(\n\t\t\tbuttonContainer({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\theight: this.height(),\n\t\t\t\twidth: this.width(),\n\t\t\t\talignment: this.alignment(),\n\t\t\t\tclass: this.containerClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget iconClass() {\n\t\treturn cn(\n\t\t\tbuttonIcon({\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t\tclass: this.iconClasses(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","@let variantVar = variant();\n@let iconNameVar = iconName();\n@let fontSizeVar = fontSize();\n\n@if (\n\tvariantVar === 'primary' ||\n\tvariantVar === 'warning' ||\n\tvariantVar === 'error' ||\n\tvariantVar === 'secondary' ||\n\tvariantVar === 'ghost-primary' ||\n\tvariantVar === 'ghost-error'\n) {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t@if (this.iconName()) {\n\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t@if (this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t\t}\n\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t</span>\n\t\t}\n\t\t@if (!this.iconName() && this.label()) {\n\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t}\n\t</button>\n} @else if (variantVar === 'circle' || variantVar === 'icon') {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t</button>\n} @else {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t@if (this.iconName()) {\n\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t@if (this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t\t}\n\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t</span>\n\t\t}\n\t\t@if (!this.iconName() && this.label()) {\n\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t}\n\t</button>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAMa,eAAe,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE;AAC3C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,6BAA6B,EAAE,6BAA6B,CAAC;AAChG,YAAA,OAAO,EAAE,CAAC,aAAa,EAAE,QAAQ,CAAC;AAClC,YAAA,KAAK,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC;AAC9B,YAAA,SAAS,EAAE,CAAC,eAAe,EAAE,QAAQ,CAAC;AACtC,YAAA,eAAe,EAAE;gBAChB,WAAW;gBACX,QAAQ;gBACR,cAAc;gBACd,4BAA4B;gBAC5B,kBAAkB;gBAClB,yBAAyB;gBACzB,6BAA6B;gBAC7B,+BAA+B;AAC/B,aAAA;AACD,YAAA,aAAa,EAAE;gBACd,WAAW;gBACX,QAAQ;gBACR,cAAc;gBACd,0BAA0B;gBAC1B,gBAAgB;gBAChB,uBAAuB;gBACvB,2BAA2B;gBAC3B,+BAA+B;AAC/B,aAAA;AACD,YAAA,MA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AAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,4rEAkDA,EDsGW,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,mBAAmB,8IAAE,aAAa,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIhC,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,cACV,IAAI,EAAA,OAAA,EACP,CAAC,mBAAmB,EAAE,aAAa,CAAC,EAAA,QAAA,EAAA,4rEAAA,EAAA,CAAA;;;AExJ9C;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-button.mjs","sources":["../../../projects/sdk/components/button/src/button.component.ts","../../../projects/sdk/components/button/src/button.component.html","../../../projects/sdk/components/button/sixbell-telco-sdk-components-button.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { IconComponent, IconName } from '@sixbell-telco/sdk/components/icon';\nimport { TypographyDirective, TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\n\nexport const buttonContainer = cva(['btn'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['btn-primary', 'h-auto', 'active:hover:shadow-primary', 'active:focus:shadow-primary'],\n\t\t\twarning: ['btn-warning', 'h-auto'],\n\t\t\terror: ['btn-error', 'h-auto'],\n\t\t\tsecondary: ['btn-secondary', 'h-auto'],\n\t\t\t'ghost-primary': [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-primary-content',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'active:focus:bg-primary',\n\t\t\t\t'active:focus:border-primary',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t\t'ghost-error': [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-error-content',\n\t\t\t\t'hover:bg-error',\n\t\t\t\t'active:focus:bg-error',\n\t\t\t\t'active:focus:border-error',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t\tcircle: [\n\t\t\t\t'btn-circle',\n\t\t\t\t'btn-outline',\n\t\t\t\t'text-neutral',\n\t\t\t\t'border-ring',\n\t\t\t\t'hover:text-neutral',\n\t\t\t\t'hover:border-ring-accent',\n\t\t\t\t'hover:bg-transparent',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'active:hover:bg-ring-accent',\n\t\t\t\t'active:focus:border-ring-accent',\n\t\t\t\t'focus-visible:outline-ring-accent',\n\t\t\t],\n\t\t\ticon: [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-primary',\n\t\t\t\t'hover:bg-transparent',\n\t\t\t\t'active:focus:bg-transparent',\n\t\t\t\t'active:focus:border-transparent',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tpadding: {\n\t\t\tnone: ['px-0', 'py-0'],\n\t\t\tnormal: ['px-3', 'py-3'],\n\t\t\tsm: ['px-4'],\n\t\t\tmd: ['px-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['h-fit', 'min-h-[auto]'],\n\t\t\tauto: ['h-auto', 'min-h-[auto]'],\n\t\t\tfull: ['h-full', 'min-h-full'],\n\t\t\t'min-content': ['h-min', 'min-h-min'],\n\t\t\t'max-content': ['h-max', 'min-h-max'],\n\t\t\tnormal: ['h-auto', 'min-h-12'],\n\t\t},\n\t\twidth: {\n\t\t\tfit: ['w-fit', 'min-w-[auto]'],\n\t\t\tauto: ['w-auto', 'min-w-[auto]'],\n\t\t\tfull: ['w-full', 'min-w-full'],\n\t\t\t'min-content': ['w-min', 'min-w-min'],\n\t\t\t'max-content': ['w-max', 'min-w-max'],\n\t\t\tnormal: ['w-auto', 'min-w-fit'],\n\t\t},\n\t\talignment: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['justify-start'],\n\t\t\tright: ['justify-end'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tshape: 'round-md',\n\t\tpadding: 'md',\n\t\theight: 'normal',\n\t\twidth: 'normal',\n\t\talignment: 'center',\n\t},\n});\n\nexport type ButtonContainerVariantProps =\n\t| 'primary'\n\t| 'warning'\n\t| 'error'\n\t| 'secondary'\n\t| 'ghost-primary'\n\t| 'ghost-error'\n\t| 'circle'\n\t| 'icon'\n\t| null\n\t| undefined;\nexport type ButtonContainerShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type ButtonContainerPaddingProps = 'none' | 'normal' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type ButtonContainerHeightProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | 'normal' | null | undefined;\nexport type ButtonContainerWidthProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | 'normal' | null | undefined;\nexport type ButtonContainerAlignmentProps = 'center' | 'left' | 'right' | null | undefined;\n\nexport const buttonIcon = cva(['flex items-center'], {\n\tvariants: {\n\t\ticonPosition: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['flex-row gap-2'],\n\t\t\tright: ['flex-row-reverse gap-2'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\ticonPosition: 'left',\n\t},\n});\n\nexport type ButtonIconVariantProps = 'center' | 'left' | 'right' | null | undefined;\n\nexport type ButtonProps = {\n\tvariant?: ButtonContainerVariantProps;\n\tshape?: ButtonContainerShapeProps;\n\tpadding?: ButtonContainerPaddingProps;\n\theight?: ButtonContainerHeightProps;\n\twidth?: ButtonContainerWidthProps;\n\talignment?: ButtonContainerAlignmentProps;\n\ticonPosition?: ButtonIconVariantProps;\n};\nexport const buttonComponent = ({ variant, shape, padding, height, width, alignment, iconPosition }: ButtonProps = {}) =>\n\tcx(buttonContainer({ variant, shape, padding, height, width, alignment }), buttonIcon({ iconPosition }));\n\ntype HTMLButtonType = 'button' | 'submit' | 'reset';\n\n@Component({\n\tselector: 'app-button',\n\tstandalone: true,\n\timports: [TypographyDirective, IconComponent],\n\ttemplateUrl: './button.component.html',\n\tstyles: '',\n})\nexport class ButtonComponent {\n\tvariant = input<ButtonContainerVariantProps>();\n\tshape = input<ButtonContainerShapeProps>();\n\tpadding = input<ButtonContainerPaddingProps>();\n\theight = input<ButtonContainerHeightProps>();\n\twidth = input<ButtonContainerWidthProps>();\n\talignment = input<ButtonContainerAlignmentProps>();\n\ticonPosition = input<ButtonIconVariantProps>();\n\tfontSize = input<TypographyVariantProps>('body');\n\tcontainerClasses = input<string>('');\n\ticonClasses = input<string>('');\n\tlabel = input<string>('');\n\ttype = input<HTMLButtonType>('button');\n\ticonName = input<IconName | undefined>();\n\tdisabled = input<boolean>(false);\n\n\tget containerClass() {\n\t\treturn cn(\n\t\t\tbuttonContainer({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\theight: this.height(),\n\t\t\t\twidth: this.width(),\n\t\t\t\talignment: this.alignment(),\n\t\t\t\tclass: this.containerClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget iconClass() {\n\t\treturn cn(\n\t\t\tbuttonIcon({\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t\tclass: this.iconClasses(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","@let variantVar = variant();\n@let iconNameVar = iconName();\n@let fontSizeVar = fontSize();\n\n@if (\n\tvariantVar === 'primary' ||\n\tvariantVar === 'warning' ||\n\tvariantVar === 'error' ||\n\tvariantVar === 'secondary' ||\n\tvariantVar === 'ghost-primary' ||\n\tvariantVar === 'ghost-error'\n) {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t@if (this.iconName()) {\n\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t@if (this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t\t}\n\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t</span>\n\t\t}\n\t\t@if (!this.iconName() && this.label()) {\n\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t}\n\t</button>\n} @else if (variantVar === 'circle' || variantVar === 'icon') {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t</button>\n} @else {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t@if (this.iconName()) {\n\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t@if (this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t\t}\n\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t<app-icon [iconName]=\"this.iconName() ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t}\n\t\t\t</span>\n\t\t}\n\t\t@if (!this.iconName() && this.label()) {\n\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t}\n\t</button>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAMa,eAAe,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE;AAC3C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,6BAA6B,EAAE,6BAA6B,CAAC;AAChG,YAAA,OAAO,EAAE,CAAC,aAAa,EAAE,QAAQ,CAAC;AAClC,YAAA,KAAK,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC;AAC9B,YAAA,SAAS,EAAE,CAAC,eAAe,EAAE,QAAQ,CAAC;AACtC,YAAA,eAAe,EAAE;gBAChB,WAAW;gBACX,QAAQ;gBACR,cAAc;gBACd,4BAA4B;gBAC5B,kBAAkB;gBAClB,yBAAyB;gBACzB,6BAA6B;gBAC7B,+BAA+B;AAC/B,aAAA;AACD,YAAA,aAAa,EAAE;gBACd,WAAW;gBACX,QAAQ;gBACR,cAAc;gBACd,0BAA0B;gBAC1B,gBAAgB;gBAChB,uBAAuB;gBACvB,2BAA2B;gBAC3B,+BAA+B;AAC/B,aAAA;AACD,YAAA,MAAM,EAAE;gBACP,YAAY;gBACZ,aAAa;gBACb,cAAc;gBACd,aAAa;gBACb,oBAAoB;gBACpB,0BAA0B;gBAC1B,sBAAsB;gBACtB,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,4rEAkDA,EDsGW,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,mBAAmB,8IAAE,aAAa,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIhC,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,cACV,IAAI,EAAA,OAAA,EACP,CAAC,mBAAmB,EAAE,aAAa,CAAC,EAAA,QAAA,EAAA,4rEAAA,EAAA,CAAA;;;AExJ9C;;AAEG;;;;"}
@@ -48,10 +48,10 @@ class CardComponent {
48
48
  get componentClass() {
49
49
  return cn(cardComponent({ shadow: this.shadow(), height: this.height(), width: this.width(), shape: this.shape(), class: this.classes() }));
50
50
  }
51
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
52
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.8", type: CardComponent, isStandalone: true, selector: "app-card", inputs: { shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<section [class]=\"componentClass\">\n\t<ng-content></ng-content>\n</section>\n", styles: [""] });
51
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
52
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: CardComponent, isStandalone: true, selector: "app-card", inputs: { shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<section [class]=\"componentClass\">\n\t<ng-content></ng-content>\n</section>\n", styles: [""] });
53
53
  }
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: CardComponent, decorators: [{
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: CardComponent, decorators: [{
55
55
  type: Component,
56
56
  args: [{ selector: 'app-card', standalone: true, imports: [], template: "<section [class]=\"componentClass\">\n\t<ng-content></ng-content>\n</section>\n" }]
57
57
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-card.mjs","sources":["../../../projects/sdk/components/card/src/card.component.ts","../../../projects/sdk/components/card/src/card.component.html","../../../projects/sdk/components/card/sixbell-telco-sdk-components-card.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport const cardComponent = cva(['flex flex-col gap-4 px-4 py-5'], {\n\tvariants: {\n\t\tshadow: {\n\t\t\tnone: [],\n\t\t\tprimary: ['shadow-primary'],\n\t\t\tsecondary: ['shadow-secondary'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['h-fit', 'min-h-[auto]'],\n\t\t\tauto: ['h-auto', 'min-h-[auto]'],\n\t\t\tfull: ['h-full', 'min-h-full'],\n\t\t\t'min-content': ['h-min', 'min-h-min'],\n\t\t\t'max-content': ['h-max', 'min-h-max'],\n\t\t},\n\t\twidth: {\n\t\t\tfit: ['w-fit', 'min-w-[auto]'],\n\t\t\tauto: ['w-auto', 'min-w-[auto]'],\n\t\t\tfull: ['w-full', 'min-w-full'],\n\t\t\t'min-content': ['w-min', 'min-w-min'],\n\t\t\t'max-content': ['w-max', 'min-w-max'],\n\t\t},\n\t\tshape: {\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\tshadow: 'secondary',\n\t\theight: 'auto',\n\t\twidth: 'auto',\n\t\tshape: 'round-sm',\n\t},\n});\nexport type CardShadowProps = 'none' | 'primary' | 'secondary' | null | undefined;\nexport type CardHeightProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;\nexport type CardWidthProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;\nexport type CardShapeProps = 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\n\nexport type CardProps = {\n\tshadow?: CardShadowProps;\n\theight?: CardHeightProps;\n\twidth?: CardWidthProps;\n\tshape?: CardShapeProps;\n};\n\n@Component({\n\tselector: 'app-card',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './card.component.html',\n\tstyles: '',\n})\nexport class CardComponent {\n\t// Base table properties\n\tshadow = input<CardShadowProps>();\n\theight = input<CardHeightProps>();\n\twidth = input<CardWidthProps>();\n\tshape = input<CardShapeProps>();\n\tclasses = input<string>('');\n\n\tget componentClass() {\n\t\treturn cn(cardComponent({ shadow: this.shadow(), height: this.height(), width: this.width(), shape: this.shape(), class: this.classes() }));\n\t}\n}\n","<section [class]=\"componentClass\">\n\t<ng-content></ng-content>\n</section>\n","/**\n * Generated bundle index. Do not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AAA;AACD,CAAA,EAAE;MAoBU,aAAa,CAAA;;IAEzB,MAAM,GAAG,KAAK,EAAmB,CAAC;IAClC,MAAM,GAAG,KAAK,EAAmB,CAAC;IAClC,KAAK,GAAG,KAAK,EAAkB,CAAC;IAChC,KAAK,GAAG,KAAK,EAAkB,CAAC;AAChC,IAAA,OAAO,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAE5B,IAAA,IAAI,cAAc,GAAA;AACjB,QAAA,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;KAC5I;uGAVW,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,orBC1D1B,iFAGA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FDuDa,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;+BACC,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,iFAAA,EAAA,CAAA;;;AEtDZ;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-card.mjs","sources":["../../../projects/sdk/components/card/src/card.component.ts","../../../projects/sdk/components/card/src/card.component.html","../../../projects/sdk/components/card/sixbell-telco-sdk-components-card.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport const cardComponent = cva(['flex flex-col gap-4 px-4 py-5'], {\n\tvariants: {\n\t\tshadow: {\n\t\t\tnone: [],\n\t\t\tprimary: ['shadow-primary'],\n\t\t\tsecondary: ['shadow-secondary'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['h-fit', 'min-h-[auto]'],\n\t\t\tauto: ['h-auto', 'min-h-[auto]'],\n\t\t\tfull: ['h-full', 'min-h-full'],\n\t\t\t'min-content': ['h-min', 'min-h-min'],\n\t\t\t'max-content': ['h-max', 'min-h-max'],\n\t\t},\n\t\twidth: {\n\t\t\tfit: ['w-fit', 'min-w-[auto]'],\n\t\t\tauto: ['w-auto', 'min-w-[auto]'],\n\t\t\tfull: ['w-full', 'min-w-full'],\n\t\t\t'min-content': ['w-min', 'min-w-min'],\n\t\t\t'max-content': ['w-max', 'min-w-max'],\n\t\t},\n\t\tshape: {\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\tshadow: 'secondary',\n\t\theight: 'auto',\n\t\twidth: 'auto',\n\t\tshape: 'round-sm',\n\t},\n});\nexport type CardShadowProps = 'none' | 'primary' | 'secondary' | null | undefined;\nexport type CardHeightProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;\nexport type CardWidthProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;\nexport type CardShapeProps = 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\n\nexport type CardProps = {\n\tshadow?: CardShadowProps;\n\theight?: CardHeightProps;\n\twidth?: CardWidthProps;\n\tshape?: CardShapeProps;\n};\n\n@Component({\n\tselector: 'app-card',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './card.component.html',\n\tstyles: '',\n})\nexport class CardComponent {\n\t// Base table properties\n\tshadow = input<CardShadowProps>();\n\theight = input<CardHeightProps>();\n\twidth = input<CardWidthProps>();\n\tshape = input<CardShapeProps>();\n\tclasses = input<string>('');\n\n\tget componentClass() {\n\t\treturn cn(cardComponent({ shadow: this.shadow(), height: this.height(), width: this.width(), shape: this.shape(), class: this.classes() }));\n\t}\n}\n","<section [class]=\"componentClass\">\n\t<ng-content></ng-content>\n</section>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAIa,aAAa,GAAG,GAAG,CAAC,CAAC,+BAA+B,CAAC,EAAE;AACnE,IAAA,QAAQ,EAAE;AACT,QAAA,MAAM,EAAE;AACP,YAAA,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,CAAC,gBAAgB,CAAC;YAC3B,SAAS,EAAE,CAAC,kBAAkB,CAAC;AAC/B,SAAA;AACD,QAAA,MAAM,EAAE;AACP,YAAA,GAAG,EAAE,CAAC,OAAO,EAAE,cAAc,CAAC;AAC9B,YAAA,IAAI,EAAE,CAAC,QAAQ,EAAE,cAAc,CAAC;AAChC,YAAA,IAAI,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC;AAC9B,YAAA,aAAa,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC;AACrC,YAAA,aAAa,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC;AACrC,SAAA;AACD,QAAA,KAAK,EAAE;AACN,YAAA,GAAG,EAAE,CAAC,OAAO,EAAE,cAAc,CAAC;AAC9B,YAAA,IAAI,EAAE,CAAC,QAAQ,EAAE,cAAc,CAAC;AAChC,YAAA,IAAI,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC;AAC9B,YAAA,aAAa,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC;AACrC,YAAA,aAAa,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC;AACrC,SAAA;AACD,QAAA,KAAK,EAAE;YACN,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gB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EAAA,QAAA,EAAA,iFAAA,EAAA,CAAA;;;AEtDZ;;AAEG;;;;"}
@@ -44,10 +44,10 @@ class CountdownComponent {
44
44
  seconds = computed(() => {
45
45
  return this.signalTimer()?.seconds;
46
46
  });
47
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: CountdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
48
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: CountdownComponent, isStandalone: true, selector: "app-countdown", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, dueDate: { classPropertyName: "dueDate", publicName: "dueDate", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, showDays: { classPropertyName: "showDays", publicName: "showDays", isSignal: true, isRequired: false, transformFunction: null }, showHours: { classPropertyName: "showHours", publicName: "showHours", isSignal: true, isRequired: false, transformFunction: null }, showMinutes: { classPropertyName: "showMinutes", publicName: "showMinutes", isSignal: true, isRequired: false, transformFunction: null }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onFinish: "onFinish" }, ngImport: i0, template: "@let shouldShowDays = showDays();\n@let shouldShowHours = showHours();\n@let shouldShowMinutes = showMinutes();\n@let shouldShowSeconds = showSeconds();\n\n@switch (type()) {\n\t<!-- 01:23:59:59 -->\n\t@case ('simple-1') {\n\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t@if (shouldShowDays && shouldShowHours && shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowHours && shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t}\n\t\t</span>\n\t}\n\n\t<!-- 01d23h59m59s -->\n\t@case ('simple-2') {\n\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t@if (shouldShowDays) {\n\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\td\n\t\t\t}\n\t\t\t@if (shouldShowHours) {\n\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\th\n\t\t\t}\n\t\t\t@if (shouldShowMinutes) {\n\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\tm\n\t\t\t}\n\t\t\t@if (shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\ts\n\t\t\t}\n\t\t</span>\n\t}\n\n\t<!-- 01 days 23 hours 59 min 59 sec -->\n\t@case ('extended-1') {\n\t\t<div class=\"flex gap-5\">\n\t\t\t@if (shouldShowDays) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tdays\n\t\t\t</div>\n\t\t\t@if (shouldShowHours) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\thours\n\t\t\t</div>\n\t\t\t@if (shouldShowMinutes) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tmin\n\t\t\t</div>\n\t\t\t@if (shouldShowSeconds) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tsec\n\t\t\t</div>\n\t\t</div>\n\t}\n\n\t<!-- 01 23 59 59 -->\n\t<!-- days hours min sec -->\n\t@case ('extended-2') {\n\t\t<div class=\"grid auto-cols-max grid-flow-col gap-5 text-center\">\n\t\t\t@if (shouldShowDays) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tdays\n\t\t\t</div>\n\t\t\t@if (shouldShowHours) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\thours\n\t\t\t</div>\n\t\t\t@if (shouldShowMinutes) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tmin\n\t\t\t</div>\n\t\t\t@if (shouldShowSeconds) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tsec\n\t\t\t</div>\n\t\t</div>\n\t}\n}\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
47
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: CountdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
48
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: CountdownComponent, isStandalone: true, selector: "app-countdown", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, dueDate: { classPropertyName: "dueDate", publicName: "dueDate", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, showDays: { classPropertyName: "showDays", publicName: "showDays", isSignal: true, isRequired: false, transformFunction: null }, showHours: { classPropertyName: "showHours", publicName: "showHours", isSignal: true, isRequired: false, transformFunction: null }, showMinutes: { classPropertyName: "showMinutes", publicName: "showMinutes", isSignal: true, isRequired: false, transformFunction: null }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onFinish: "onFinish" }, ngImport: i0, template: "@let shouldShowDays = showDays();\n@let shouldShowHours = showHours();\n@let shouldShowMinutes = showMinutes();\n@let shouldShowSeconds = showSeconds();\n\n@switch (type()) {\n\t<!-- 01:23:59:59 -->\n\t@case ('simple-1') {\n\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t@if (shouldShowDays && shouldShowHours && shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowHours && shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t}\n\t\t</span>\n\t}\n\n\t<!-- 01d23h59m59s -->\n\t@case ('simple-2') {\n\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t@if (shouldShowDays) {\n\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\td\n\t\t\t}\n\t\t\t@if (shouldShowHours) {\n\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\th\n\t\t\t}\n\t\t\t@if (shouldShowMinutes) {\n\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\tm\n\t\t\t}\n\t\t\t@if (shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\ts\n\t\t\t}\n\t\t</span>\n\t}\n\n\t<!-- 01 days 23 hours 59 min 59 sec -->\n\t@case ('extended-1') {\n\t\t<div class=\"flex gap-5\">\n\t\t\t@if (shouldShowDays) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tdays\n\t\t\t</div>\n\t\t\t@if (shouldShowHours) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\thours\n\t\t\t</div>\n\t\t\t@if (shouldShowMinutes) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tmin\n\t\t\t</div>\n\t\t\t@if (shouldShowSeconds) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tsec\n\t\t\t</div>\n\t\t</div>\n\t}\n\n\t<!-- 01 23 59 59 -->\n\t<!-- days hours min sec -->\n\t@case ('extended-2') {\n\t\t<div class=\"grid auto-cols-max grid-flow-col gap-5 text-center\">\n\t\t\t@if (shouldShowDays) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tdays\n\t\t\t</div>\n\t\t\t@if (shouldShowHours) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\thours\n\t\t\t</div>\n\t\t\t@if (shouldShowMinutes) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tmin\n\t\t\t</div>\n\t\t\t@if (shouldShowSeconds) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tsec\n\t\t\t</div>\n\t\t</div>\n\t}\n}\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
49
49
  }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: CountdownComponent, decorators: [{
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: CountdownComponent, decorators: [{
51
51
  type: Component,
52
52
  args: [{ selector: 'app-countdown', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let shouldShowDays = showDays();\n@let shouldShowHours = showHours();\n@let shouldShowMinutes = showMinutes();\n@let shouldShowSeconds = showSeconds();\n\n@switch (type()) {\n\t<!-- 01:23:59:59 -->\n\t@case ('simple-1') {\n\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t@if (shouldShowDays && shouldShowHours && shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowHours && shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t}\n\t\t</span>\n\t}\n\n\t<!-- 01d23h59m59s -->\n\t@case ('simple-2') {\n\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t@if (shouldShowDays) {\n\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\td\n\t\t\t}\n\t\t\t@if (shouldShowHours) {\n\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\th\n\t\t\t}\n\t\t\t@if (shouldShowMinutes) {\n\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\tm\n\t\t\t}\n\t\t\t@if (shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\ts\n\t\t\t}\n\t\t</span>\n\t}\n\n\t<!-- 01 days 23 hours 59 min 59 sec -->\n\t@case ('extended-1') {\n\t\t<div class=\"flex gap-5\">\n\t\t\t@if (shouldShowDays) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tdays\n\t\t\t</div>\n\t\t\t@if (shouldShowHours) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\thours\n\t\t\t</div>\n\t\t\t@if (shouldShowMinutes) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tmin\n\t\t\t</div>\n\t\t\t@if (shouldShowSeconds) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tsec\n\t\t\t</div>\n\t\t</div>\n\t}\n\n\t<!-- 01 23 59 59 -->\n\t<!-- days hours min sec -->\n\t@case ('extended-2') {\n\t\t<div class=\"grid auto-cols-max grid-flow-col gap-5 text-center\">\n\t\t\t@if (shouldShowDays) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tdays\n\t\t\t</div>\n\t\t\t@if (shouldShowHours) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\thours\n\t\t\t</div>\n\t\t\t@if (shouldShowMinutes) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tmin\n\t\t\t</div>\n\t\t\t@if (shouldShowSeconds) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tsec\n\t\t\t</div>\n\t\t</div>\n\t}\n}\n" }]
53
53
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-countdown.mjs","sources":["../../../projects/sdk/components/countdown/src/countdown.component.ts","../../../projects/sdk/components/countdown/src/countdown.component.html","../../../projects/sdk/components/countdown/sixbell-telco-sdk-components-countdown.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\nimport { map, takeWhile, tap, timer } from 'rxjs';\n\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport dayjs from 'dayjs';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\n\ndayjs.extend(customParseFormat);\n\n@Component({\n\tselector: 'app-countdown',\n\ttemplateUrl: './countdown.component.html',\n\tstandalone: true,\n\timports: [],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CountdownComponent {\n\ttype = input<'simple-1' | 'simple-2' | 'extended-1' | 'extended-2'>('simple-1');\n\tdueDate = input<string>('');\n\tformat = input<string>('DD/MM/YYYY HH:mm:ss');\n\n\tshowDays = input<boolean>(true);\n\tshowHours = input<boolean>(true);\n\tshowMinutes = input<boolean>(true);\n\tshowSeconds = input<boolean>(true);\n\n\tonFinish = output<void>();\n\n\tprivate countdownDateOnMilliseconds = computed(() => {\n\t\treturn dayjs(this.dueDate(), this.format()).toDate().getTime();\n\t});\n\n\tcountdowntimer$ = timer(0, 1000).pipe(\n\t\ttap(() => {\n\t\t\tif (dayjs().toDate().getTime() > this.countdownDateOnMilliseconds()) {\n\t\t\t\tthis.onFinish.emit();\n\t\t\t}\n\t\t}),\n\t\ttakeWhile(() => dayjs().toDate().getTime() < this.countdownDateOnMilliseconds()),\n\t\tmap(() => {\n\t\t\tconst now = dayjs().toDate().getTime();\n\t\t\tconst distance = this.countdownDateOnMilliseconds() - now;\n\t\t\tconst days = Math.floor(distance / (1000 * 60 * 60 * 24));\n\t\t\tconst hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));\n\t\t\tconst minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));\n\t\t\tconst seconds = Math.floor((distance % (1000 * 60)) / 1000);\n\n\t\t\treturn { days, hours, minutes, seconds };\n\t\t}),\n\t);\n\n\tsignalTimer = toSignal(this.countdowntimer$);\n\n\tdays = computed(() => {\n\t\treturn this.signalTimer()?.days;\n\t});\n\n\thours = computed(() => {\n\t\treturn this.signalTimer()?.hours;\n\t});\n\n\tminutes = computed(() => {\n\t\treturn this.signalTimer()?.minutes;\n\t});\n\n\tseconds = computed(() => {\n\t\treturn this.signalTimer()?.seconds;\n\t});\n}\n","@let shouldShowDays = showDays();\n@let shouldShowHours = showHours();\n@let shouldShowMinutes = showMinutes();\n@let shouldShowSeconds = showSeconds();\n\n@switch (type()) {\n\t<!-- 01:23:59:59 -->\n\t@case ('simple-1') {\n\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t@if (shouldShowDays && shouldShowHours && shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowHours && shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t}\n\t\t</span>\n\t}\n\n\t<!-- 01d23h59m59s -->\n\t@case ('simple-2') {\n\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t@if (shouldShowDays) {\n\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\td\n\t\t\t}\n\t\t\t@if (shouldShowHours) {\n\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\th\n\t\t\t}\n\t\t\t@if (shouldShowMinutes) {\n\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\tm\n\t\t\t}\n\t\t\t@if (shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\ts\n\t\t\t}\n\t\t</span>\n\t}\n\n\t<!-- 01 days 23 hours 59 min 59 sec -->\n\t@case ('extended-1') {\n\t\t<div class=\"flex gap-5\">\n\t\t\t@if (shouldShowDays) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tdays\n\t\t\t</div>\n\t\t\t@if (shouldShowHours) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\thours\n\t\t\t</div>\n\t\t\t@if (shouldShowMinutes) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tmin\n\t\t\t</div>\n\t\t\t@if (shouldShowSeconds) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tsec\n\t\t\t</div>\n\t\t</div>\n\t}\n\n\t<!-- 01 23 59 59 -->\n\t<!-- days hours min sec -->\n\t@case ('extended-2') {\n\t\t<div class=\"grid auto-cols-max grid-flow-col gap-5 text-center\">\n\t\t\t@if (shouldShowDays) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tdays\n\t\t\t</div>\n\t\t\t@if (shouldShowHours) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\thours\n\t\t\t</div>\n\t\t\t@if (shouldShowMinutes) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tmin\n\t\t\t</div>\n\t\t\t@if (shouldShowSeconds) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tsec\n\t\t\t</div>\n\t\t</div>\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAOA,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;MASnB,kBAAkB,CAAA;AAC9B,IAAA,IAAI,GAAG,KAAK,CAAwD,UAAU,CAAC,CAAC;AAChF,IAAA,OAAO,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC5B,IAAA,MAAM,GAAG,KAAK,CAAS,qBAAqB,CAAC,CAAC;AAE9C,IAAA,QAAQ,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;AAChC,IAAA,SAAS,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;AACjC,IAAA,WAAW,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;AACnC,IAAA,WAAW,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;IAEnC,QAAQ,GAAG,MAAM,EAAQ,CAAC;AAElB,IAAA,2BAA2B,GAAG,QAAQ,CAAC,MAAK;AACnD,QAAA,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;AAChE,KAAC,CAAC,CAAC;AAEH,IAAA,eAAe,GAAG,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CACpC,GAAG,CAAC,MAAK;AACR,QAAA,IAAI,KAAK,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,2BAA2B,EAAE,EAAE;AACpE,YAAA,IAAI,CAAC,QAAQ,CAAC,IA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,OAAO,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,CAAC;AAClC,KAAC,CAAC,CAAC;AAEH,IAAA,OAAO,GAAG,QAAQ,CAAC,MAAK;AACvB,QAAA,OAAO,IAAI,CAAC,WAAW,EAAE,EAAE,OAAO,CAAC;AACpC,KAAC,CAAC,CAAC;AAEH,IAAA,OAAO,GAAG,QAAQ,CAAC,MAAK;AACvB,QAAA,OAAO,IAAI,CAAC,WAAW,EAAE,EAAE,OAAO,CAAC;AACpC,KAAC,CAAC,CAAC;uGAnDS,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,+/BChB/B,02GAsHA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDtGa,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAP9B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,eAAe,cAEb,IAAI,EAAA,OAAA,EACP,EAAE,EACM,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,02GAAA,EAAA,CAAA;;;AEdhD;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-countdown.mjs","sources":["../../../projects/sdk/components/countdown/src/countdown.component.ts","../../../projects/sdk/components/countdown/src/countdown.component.html","../../../projects/sdk/components/countdown/sixbell-telco-sdk-components-countdown.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\nimport { map, takeWhile, tap, timer } from 'rxjs';\n\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport dayjs from 'dayjs';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\n\ndayjs.extend(customParseFormat);\n\n@Component({\n\tselector: 'app-countdown',\n\ttemplateUrl: './countdown.component.html',\n\tstandalone: true,\n\timports: [],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CountdownComponent {\n\ttype = input<'simple-1' | 'simple-2' | 'extended-1' | 'extended-2'>('simple-1');\n\tdueDate = input<string>('');\n\tformat = input<string>('DD/MM/YYYY HH:mm:ss');\n\n\tshowDays = input<boolean>(true);\n\tshowHours = input<boolean>(true);\n\tshowMinutes = input<boolean>(true);\n\tshowSeconds = input<boolean>(true);\n\n\tonFinish = output<void>();\n\n\tprivate countdownDateOnMilliseconds = computed(() => {\n\t\treturn dayjs(this.dueDate(), this.format()).toDate().getTime();\n\t});\n\n\tcountdowntimer$ = timer(0, 1000).pipe(\n\t\ttap(() => {\n\t\t\tif (dayjs().toDate().getTime() > this.countdownDateOnMilliseconds()) {\n\t\t\t\tthis.onFinish.emit();\n\t\t\t}\n\t\t}),\n\t\ttakeWhile(() => dayjs().toDate().getTime() < this.countdownDateOnMilliseconds()),\n\t\tmap(() => {\n\t\t\tconst now = dayjs().toDate().getTime();\n\t\t\tconst distance = this.countdownDateOnMilliseconds() - now;\n\t\t\tconst days = Math.floor(distance / (1000 * 60 * 60 * 24));\n\t\t\tconst hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));\n\t\t\tconst minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));\n\t\t\tconst seconds = Math.floor((distance % (1000 * 60)) / 1000);\n\n\t\t\treturn { days, hours, minutes, seconds };\n\t\t}),\n\t);\n\n\tsignalTimer = toSignal(this.countdowntimer$);\n\n\tdays = computed(() => {\n\t\treturn this.signalTimer()?.days;\n\t});\n\n\thours = computed(() => {\n\t\treturn this.signalTimer()?.hours;\n\t});\n\n\tminutes = computed(() => {\n\t\treturn this.signalTimer()?.minutes;\n\t});\n\n\tseconds = computed(() => {\n\t\treturn this.signalTimer()?.seconds;\n\t});\n}\n","@let shouldShowDays = showDays();\n@let shouldShowHours = showHours();\n@let shouldShowMinutes = showMinutes();\n@let shouldShowSeconds = showSeconds();\n\n@switch (type()) {\n\t<!-- 01:23:59:59 -->\n\t@case ('simple-1') {\n\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t@if (shouldShowDays && shouldShowHours && shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowHours && shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowMinutes && shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t:\n\t\t\t}\n\t\t\t@if (shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t}\n\t\t</span>\n\t}\n\n\t<!-- 01d23h59m59s -->\n\t@case ('simple-2') {\n\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t@if (shouldShowDays) {\n\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\td\n\t\t\t}\n\t\t\t@if (shouldShowHours) {\n\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\th\n\t\t\t}\n\t\t\t@if (shouldShowMinutes) {\n\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\tm\n\t\t\t}\n\t\t\t@if (shouldShowSeconds) {\n\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\ts\n\t\t\t}\n\t\t</span>\n\t}\n\n\t<!-- 01 days 23 hours 59 min 59 sec -->\n\t@case ('extended-1') {\n\t\t<div class=\"flex gap-5\">\n\t\t\t@if (shouldShowDays) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tdays\n\t\t\t</div>\n\t\t\t@if (shouldShowHours) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\thours\n\t\t\t</div>\n\t\t\t@if (shouldShowMinutes) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tmin\n\t\t\t</div>\n\t\t\t@if (shouldShowSeconds) {}\n\t\t\t<div>\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tsec\n\t\t\t</div>\n\t\t</div>\n\t}\n\n\t<!-- 01 23 59 59 -->\n\t<!-- days hours min sec -->\n\t@case ('extended-2') {\n\t\t<div class=\"grid auto-cols-max grid-flow-col gap-5 text-center\">\n\t\t\t@if (shouldShowDays) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ days() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tdays\n\t\t\t</div>\n\t\t\t@if (shouldShowHours) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ hours() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\thours\n\t\t\t</div>\n\t\t\t@if (shouldShowMinutes) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ minutes() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tmin\n\t\t\t</div>\n\t\t\t@if (shouldShowSeconds) {}\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<span class=\"countdown font-mono text-2xl\">\n\t\t\t\t\t<span style=\"--value: {{ seconds() }}\"></span>\n\t\t\t\t</span>\n\t\t\t\tsec\n\t\t\t</div>\n\t\t</div>\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAOA,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;MASnB,kBAAkB,CAAA;AAC9B,IAAA,IAAI,GAAG,KAAK,CAAwD,UAAU,CAAC,CAAC;AAChF,IAAA,OAAO,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC5B,IAAA,MAAM,GAAG,KAAK,CAAS,qBAAqB,CAAC,CAAC;AAE9C,IAAA,QAAQ,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;AAChC,IAAA,SAAS,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;AACjC,IAAA,WAAW,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;AACnC,IAAA,WAAW,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;IAEnC,QAAQ,GAAG,MAAM,EAAQ,CAAC;AAElB,IAAA,2BAA2B,GAAG,QAAQ,CAAC,MAAK;AACnD,QAAA,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;AAChE,KAAC,CAAC,CAAC;AAEH,IAAA,eAAe,GAAG,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CACpC,GAAG,CAAC,MAAK;AACR,QAAA,IAAI,KAAK,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,2BAA2B,EAAE,EAAE;AACpE,YAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;SACrB;KACD,CAAC,EACF,SAAS,CAAC,MAAM,KAAK,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,EA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AQ,CAAC,MAAK;AACvB,QAAA,OAAO,IAAI,CAAC,WAAW,EAAE,EAAE,OAAO,CAAC;AACpC,KAAC,CAAC,CAAC;AAEH,IAAA,OAAO,GAAG,QAAQ,CAAC,MAAK;AACvB,QAAA,OAAO,IAAI,CAAC,WAAW,EAAE,EAAE,OAAO,CAAC;AACpC,KAAC,CAAC,CAAC;wGAnDS,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,+/BChB/B,02GAsHA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FDtGa,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAP9B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,eAAe,cAEb,IAAI,EAAA,OAAA,EACP,EAAE,EACM,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,02GAAA,EAAA,CAAA;;;AEdhD;;AAEG;;;;"}
@@ -151,10 +151,10 @@ class DropdownComponent {
151
151
  class: this.iconClasses(),
152
152
  }));
153
153
  }
154
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
155
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: DropdownComponent, isStandalone: true, selector: "app-dropdown", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, menuPosition: { classPropertyName: "menuPosition", publicName: "menuPosition", isSignal: true, isRequired: false, transformFunction: null }, menuAlignment: { classPropertyName: "menuAlignment", publicName: "menuAlignment", isSignal: true, isRequired: false, transformFunction: null }, menuOpenBy: { classPropertyName: "menuOpenBy", publicName: "menuOpenBy", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, buttonClasses: { classPropertyName: "buttonClasses", publicName: "buttonClasses", isSignal: true, isRequired: false, transformFunction: null }, menuClasses: { classPropertyName: "menuClasses", publicName: "menuClasses", isSignal: true, isRequired: false, transformFunction: null }, iconClasses: { classPropertyName: "iconClasses", publicName: "iconClasses", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, routes: { classPropertyName: "routes", publicName: "routes", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let iconNameVar = iconName();\n@let labelVar = label();\n@let variantVar = variant();\n<div [class]=\"menuClass\">\n\t@if (\n\t\tvariantVar === 'primary' ||\n\t\tvariantVar === 'secondary' ||\n\t\tvariantVar === 'sucess' ||\n\t\tvariantVar === 'warning' ||\n\t\tvariantVar === 'error' ||\n\t\tvariantVar === 'info' ||\n\t\tvariantVar === 'accent'\n\t) {\n\t\t<div tabindex=\"0\" role=\"button\" [class]=\"buttonClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (labelVar) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ labelVar }}</span>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t} @else if (!iconNameVar && labelVar) {\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ labelVar }}</span>\n\t\t\t} @else {\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">Empty</span>\n\t\t\t}\n\t\t</div>\n\t} @else {\n\t\t<div tabindex=\"0\" role=\"button\" [class]=\"buttonClass\" [ariaDisabled]=\"disabled()\">\n\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'three-dots'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t</div>\n\t}\n\t<div tabindex=\"0\" class=\"menu dropdown-content z-[1] min-w-min overflow-hidden rounded-box-md bg-base-100 p-0 shadow\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "app-icon", inputs: ["color", "size", "classes", "iconName"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }] });
154
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
155
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: DropdownComponent, isStandalone: true, selector: "app-dropdown", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, menuPosition: { classPropertyName: "menuPosition", publicName: "menuPosition", isSignal: true, isRequired: false, transformFunction: null }, menuAlignment: { classPropertyName: "menuAlignment", publicName: "menuAlignment", isSignal: true, isRequired: false, transformFunction: null }, menuOpenBy: { classPropertyName: "menuOpenBy", publicName: "menuOpenBy", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, buttonClasses: { classPropertyName: "buttonClasses", publicName: "buttonClasses", isSignal: true, isRequired: false, transformFunction: null }, menuClasses: { classPropertyName: "menuClasses", publicName: "menuClasses", isSignal: true, isRequired: false, transformFunction: null }, iconClasses: { classPropertyName: "iconClasses", publicName: "iconClasses", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, routes: { classPropertyName: "routes", publicName: "routes", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let iconNameVar = iconName();\n@let labelVar = label();\n@let variantVar = variant();\n<div [class]=\"menuClass\">\n\t@if (\n\t\tvariantVar === 'primary' ||\n\t\tvariantVar === 'secondary' ||\n\t\tvariantVar === 'sucess' ||\n\t\tvariantVar === 'warning' ||\n\t\tvariantVar === 'error' ||\n\t\tvariantVar === 'info' ||\n\t\tvariantVar === 'accent'\n\t) {\n\t\t<div tabindex=\"0\" role=\"button\" [class]=\"buttonClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (labelVar) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ labelVar }}</span>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t} @else if (!iconNameVar && labelVar) {\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ labelVar }}</span>\n\t\t\t} @else {\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">Empty</span>\n\t\t\t}\n\t\t</div>\n\t} @else {\n\t\t<div tabindex=\"0\" role=\"button\" [class]=\"buttonClass\" [ariaDisabled]=\"disabled()\">\n\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'three-dots'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t</div>\n\t}\n\t<div tabindex=\"0\" class=\"menu dropdown-content z-[1] min-w-min overflow-hidden rounded-box-md bg-base-100 p-0 shadow\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "app-icon", inputs: ["color", "size", "classes", "iconName"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }] });
156
156
  }
157
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: DropdownComponent, decorators: [{
157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: DropdownComponent, decorators: [{
158
158
  type: Component,
159
159
  args: [{ selector: 'app-dropdown', standalone: true, imports: [IconComponent, TypographyDirective], template: "@let iconNameVar = iconName();\n@let labelVar = label();\n@let variantVar = variant();\n<div [class]=\"menuClass\">\n\t@if (\n\t\tvariantVar === 'primary' ||\n\t\tvariantVar === 'secondary' ||\n\t\tvariantVar === 'sucess' ||\n\t\tvariantVar === 'warning' ||\n\t\tvariantVar === 'error' ||\n\t\tvariantVar === 'info' ||\n\t\tvariantVar === 'accent'\n\t) {\n\t\t<div tabindex=\"0\" role=\"button\" [class]=\"buttonClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (labelVar) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ labelVar }}</span>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t} @else if (!iconNameVar && labelVar) {\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ labelVar }}</span>\n\t\t\t} @else {\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">Empty</span>\n\t\t\t}\n\t\t</div>\n\t} @else {\n\t\t<div tabindex=\"0\" role=\"button\" [class]=\"buttonClass\" [ariaDisabled]=\"disabled()\">\n\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'three-dots'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t</div>\n\t}\n\t<div tabindex=\"0\" class=\"menu dropdown-content z-[1] min-w-min overflow-hidden rounded-box-md bg-base-100 p-0 shadow\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n" }]
160
160
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-dropdown.mjs","sources":["../../../projects/sdk/components/dropdown/src/dropdown.component.ts","../../../projects/sdk/components/dropdown/src/dropdown.component.html","../../../projects/sdk/components/dropdown/sixbell-telco-sdk-components-dropdown.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { IconComponent, IconName } from '@sixbell-telco/sdk/components/icon';\nimport { Route } from '@sixbell-telco/sdk/components/link';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\n\nexport const dropdownButton = cva(['btn'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['btn-primary', 'h-auto', 'active:hover:shadow-primary', 'active:focus:shadow-primary'],\n\t\t\tsecondary: ['btn-secondary', 'h-auto', 'active:hover:shadow-secondary', 'active:focus:shadow-secondary'],\n\t\t\tsucess: ['btn-sucess', 'h-auto', 'active:hover:shadow-sucess', 'active:focus:shadow-sucess'],\n\t\t\twarning: ['btn-warning', 'h-auto', 'active:hover:shadow-warning', 'active:focus:shadow-warning'],\n\t\t\terror: ['btn-error', 'h-auto', 'active:hover:shadow-error', 'active:focus:shadow-error'],\n\t\t\tinfo: ['btn-info', 'h-auto', 'active:hover:shadow-info', 'active:focus:shadow-info'],\n\t\t\taccent: ['btn-accent', 'h-auto', 'active:hover:shadow-accent', 'active:focus:shadow-accent'],\n\t\t\ticon: [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-primary',\n\t\t\t\t'hover:bg-transparent',\n\t\t\t\t'active:focus:bg-transparent',\n\t\t\t\t'active:focus:border-transparent',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tpadding: {\n\t\t\tnone: ['px-0', 'py-0'],\n\t\t\tnormal: ['px-3', 'py-3'],\n\t\t\tsm: ['px-4'],\n\t\t\tmd: ['px-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['h-fit', 'min-h-[auto]'],\n\t\t\tauto: ['h-auto', 'min-h-[auto]'],\n\t\t\tfull: ['h-full', 'min-h-full'],\n\t\t\t'min-content': ['h-min', 'min-h-min'],\n\t\t\t'max-content': ['h-max', 'min-h-max'],\n\t\t\tnormal: ['h-auto', 'min-h-12'],\n\t\t},\n\t\twidth: {\n\t\t\tfit: ['w-fit', 'min-w-[auto]'],\n\t\t\tauto: ['w-auto', 'min-w-[auto]'],\n\t\t\tfull: ['w-full', 'min-w-full'],\n\t\t\t'min-content': ['w-min', 'min-w-min'],\n\t\t\t'max-content': ['w-max', 'min-w-max'],\n\t\t\tnormal: ['w-auto', 'min-w-fit'],\n\t\t},\n\t\talignment: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['justify-start'],\n\t\t\tright: ['justify-end'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'icon',\n\t\tshape: 'round-md',\n\t\tpadding: 'md',\n\t\theight: 'normal',\n\t\twidth: 'normal',\n\t\talignment: 'center',\n\t},\n});\n\nexport type DropdownButtonVariantProps = 'primary' | 'secondary' | 'sucess' | 'warning' | 'error' | 'info' | 'accent' | 'icon' | null | undefined;\nexport type DropdownButtonShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type DropdownButtonPaddingProps = 'none' | 'normal' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type DropdownButtonHeightProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | 'normal' | null | undefined;\nexport type DropdownButtonWidthProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | 'normal' | null | undefined;\nexport type DropdownButtonAlignmentProps = 'center' | 'left' | 'right' | null | undefined;\n\nexport const dropdownMenu = cva(['dropdown'], {\n\tvariants: {\n\t\tmenuPosition: {\n\t\t\ttop: ['dropdown-top'],\n\t\t\tbottom: ['dropdown-bottom'],\n\t\t\tright: ['dropdown-right'],\n\t\t\tleft: ['dropdown-left'],\n\t\t},\n\t\tmenuAlignment: {\n\t\t\tstart: [''],\n\t\t\tend: ['dropdown-end'],\n\t\t},\n\t\tmenuOpenBy: {\n\t\t\tclick: [''],\n\t\t\thover: ['dropdown-hover'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tmenuPosition: 'bottom',\n\t\tmenuAlignment: 'start',\n\t\tmenuOpenBy: 'hover',\n\t},\n});\n\nexport type DropdownMenuPositionProps = 'top' | 'bottom' | 'right' | 'left' | null | undefined;\nexport type DropdownMenuAlignmentProps = 'start' | 'end' | null | undefined;\nexport type DropdownMenuOpenByProps = 'click' | 'hover' | null | undefined;\n\nexport const dropdownIcon = cva(['flex items-center'], {\n\tvariants: {\n\t\ticonPosition: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['flex-row gap-2'],\n\t\t\tright: ['flex-row-reverse gap-2'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\ticonPosition: 'left',\n\t},\n});\n\nexport type DropdownIconPositionProps = 'center' | 'left' | 'right' | null | undefined;\n\nexport type DropdownProps = {\n\tvariant?: DropdownButtonVariantProps;\n\tshape?: DropdownButtonShapeProps;\n\theight?: DropdownButtonHeightProps;\n\tpadding?: DropdownButtonPaddingProps;\n\twidth?: DropdownButtonWidthProps;\n\talignment?: DropdownButtonAlignmentProps;\n\tmenuAlignment?: DropdownMenuAlignmentProps;\n\tmenuPosition?: DropdownMenuPositionProps;\n\tmenuOpenBy?: DropdownMenuOpenByProps;\n\ticonPosition?: DropdownIconPositionProps;\n};\nexport const dropdownComponent = ({\n\tvariant,\n\tshape,\n\theight,\n\tpadding,\n\twidth,\n\talignment,\n\tmenuAlignment,\n\tmenuPosition,\n\tmenuOpenBy,\n\ticonPosition,\n}: DropdownProps = {}) =>\n\tcx(\n\t\tdropdownButton({ variant, shape, height, padding, width, alignment }),\n\t\tdropdownMenu({ menuAlignment, menuOpenBy, menuPosition }),\n\t\tdropdownIcon({ iconPosition }),\n\t);\n\n@Component({\n\tselector: 'app-dropdown',\n\tstandalone: true,\n\timports: [IconComponent, TypographyDirective],\n\ttemplateUrl: './dropdown.component.html',\n\tstyles: '',\n})\nexport class DropdownComponent {\n\tvariant = input<DropdownButtonVariantProps>();\n\tshape = input<DropdownButtonShapeProps>();\n\tpadding = input<DropdownButtonPaddingProps>();\n\theight = input<DropdownButtonHeightProps>();\n\twidth = input<DropdownButtonWidthProps>();\n\talignment = input<DropdownButtonAlignmentProps>();\n\tmenuPosition = input<DropdownMenuPositionProps>();\n\tmenuAlignment = input<DropdownMenuAlignmentProps>();\n\tmenuOpenBy = input<DropdownMenuOpenByProps>();\n\ticonPosition = input<DropdownIconPositionProps>();\n\tbuttonClasses = input<string>('');\n\tmenuClasses = input<string>('');\n\ticonClasses = input<string>('');\n\tlabel = input<string | undefined>('');\n\ticonName = input<IconName | undefined>();\n\tdisabled = input<boolean>(false);\n\troutes = input<Route[]>([]);\n\n\tget buttonClass() {\n\t\treturn cn(\n\t\t\tdropdownButton({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\theight: this.height(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\twidth: this.width(),\n\t\t\t\talignment: this.alignment(),\n\t\t\t\tclass: this.buttonClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget menuClass() {\n\t\treturn cn(\n\t\t\tdropdownMenu({\n\t\t\t\tmenuPosition: this.menuPosition(),\n\t\t\t\tmenuAlignment: this.menuAlignment(),\n\t\t\t\tmenuOpenBy: this.menuOpenBy(),\n\t\t\t\tclass: this.menuClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget iconClass() {\n\t\treturn cn(\n\t\t\tdropdownIcon({\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t\tclass: this.iconClasses(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","@let iconNameVar = iconName();\n@let labelVar = label();\n@let variantVar = variant();\n<div [class]=\"menuClass\">\n\t@if (\n\t\tvariantVar === 'primary' ||\n\t\tvariantVar === 'secondary' ||\n\t\tvariantVar === 'sucess' ||\n\t\tvariantVar === 'warning' ||\n\t\tvariantVar === 'error' ||\n\t\tvariantVar === 'info' ||\n\t\tvariantVar === 'accent'\n\t) {\n\t\t<div tabindex=\"0\" role=\"button\" [class]=\"buttonClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (labelVar) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ labelVar }}</span>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t} @else if (!iconNameVar && labelVar) {\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ labelVar }}</span>\n\t\t\t} @else {\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">Empty</span>\n\t\t\t}\n\t\t</div>\n\t} @else {\n\t\t<div tabindex=\"0\" role=\"button\" [class]=\"buttonClass\" [ariaDisabled]=\"disabled()\">\n\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'three-dots'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t</div>\n\t}\n\t<div tabindex=\"0\" class=\"menu dropdown-content z-[1] min-w-min overflow-hidden rounded-box-md bg-base-100 p-0 shadow\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAOa,cAAc,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE;AAC1C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,6BAA6B,EAAE,6BAA6B,CAAC;YAChG,SAAS,EAAE,CAAC,eAAe,EAAE,QAAQ,EAAE,+BAA+B,EAAE,+BAA+B,CAAC;YACxG,MAAM,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,4BAA4B,EAAE,4BAA4B,CAAC;YAC5F,OAAO,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,6BAA6B,EAAE,6BAA6B,CAAC;YAChG,KAAK,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,2BAA2B,EAAE,2BAA2B,CAAC;YACxF,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,0BAA0B,EAAE,0BAA0B,CAAC;YACpF,MAAM,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,4BAA4B,EAAE,4BAA4B,CAAC;AAC5F,YAAA,IAAI,EAAE;gBACL,WAAW;gBACX,cAAc;gBACd,oBAAoB;gBACpB,sBAAsB;gBACtB,6BAA6B;gBAC7B,iCAAiC;gBACjC,+BAA+B;AAC/B,aAAA;AACD,SAAA;AACD,QAAA,KAAK,EAAE;YACN,YAAY,EAAE,CAAC,cAAc,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9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A,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,oqDAsCA,EDwHW,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,aAAa,uGAAE,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIhC,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAP7B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,cACZ,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,EAAE,mBAAmB,CAAC,EAAA,QAAA,EAAA,oqDAAA,EAAA,CAAA;;;AE9J9C;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-dropdown.mjs","sources":["../../../projects/sdk/components/dropdown/src/dropdown.component.ts","../../../projects/sdk/components/dropdown/src/dropdown.component.html","../../../projects/sdk/components/dropdown/sixbell-telco-sdk-components-dropdown.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { IconComponent, IconName } from '@sixbell-telco/sdk/components/icon';\nimport { Route } from '@sixbell-telco/sdk/components/link';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\n\nexport const dropdownButton = cva(['btn'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['btn-primary', 'h-auto', 'active:hover:shadow-primary', 'active:focus:shadow-primary'],\n\t\t\tsecondary: ['btn-secondary', 'h-auto', 'active:hover:shadow-secondary', 'active:focus:shadow-secondary'],\n\t\t\tsucess: ['btn-sucess', 'h-auto', 'active:hover:shadow-sucess', 'active:focus:shadow-sucess'],\n\t\t\twarning: ['btn-warning', 'h-auto', 'active:hover:shadow-warning', 'active:focus:shadow-warning'],\n\t\t\terror: ['btn-error', 'h-auto', 'active:hover:shadow-error', 'active:focus:shadow-error'],\n\t\t\tinfo: ['btn-info', 'h-auto', 'active:hover:shadow-info', 'active:focus:shadow-info'],\n\t\t\taccent: ['btn-accent', 'h-auto', 'active:hover:shadow-accent', 'active:focus:shadow-accent'],\n\t\t\ticon: [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-primary',\n\t\t\t\t'hover:bg-transparent',\n\t\t\t\t'active:focus:bg-transparent',\n\t\t\t\t'active:focus:border-transparent',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tpadding: {\n\t\t\tnone: ['px-0', 'py-0'],\n\t\t\tnormal: ['px-3', 'py-3'],\n\t\t\tsm: ['px-4'],\n\t\t\tmd: ['px-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['h-fit', 'min-h-[auto]'],\n\t\t\tauto: ['h-auto', 'min-h-[auto]'],\n\t\t\tfull: ['h-full', 'min-h-full'],\n\t\t\t'min-content': ['h-min', 'min-h-min'],\n\t\t\t'max-content': ['h-max', 'min-h-max'],\n\t\t\tnormal: ['h-auto', 'min-h-12'],\n\t\t},\n\t\twidth: {\n\t\t\tfit: ['w-fit', 'min-w-[auto]'],\n\t\t\tauto: ['w-auto', 'min-w-[auto]'],\n\t\t\tfull: ['w-full', 'min-w-full'],\n\t\t\t'min-content': ['w-min', 'min-w-min'],\n\t\t\t'max-content': ['w-max', 'min-w-max'],\n\t\t\tnormal: ['w-auto', 'min-w-fit'],\n\t\t},\n\t\talignment: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['justify-start'],\n\t\t\tright: ['justify-end'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'icon',\n\t\tshape: 'round-md',\n\t\tpadding: 'md',\n\t\theight: 'normal',\n\t\twidth: 'normal',\n\t\talignment: 'center',\n\t},\n});\n\nexport type DropdownButtonVariantProps = 'primary' | 'secondary' | 'sucess' | 'warning' | 'error' | 'info' | 'accent' | 'icon' | null | undefined;\nexport type DropdownButtonShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type DropdownButtonPaddingProps = 'none' | 'normal' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type DropdownButtonHeightProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | 'normal' | null | undefined;\nexport type DropdownButtonWidthProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | 'normal' | null | undefined;\nexport type DropdownButtonAlignmentProps = 'center' | 'left' | 'right' | null | undefined;\n\nexport const dropdownMenu = cva(['dropdown'], {\n\tvariants: {\n\t\tmenuPosition: {\n\t\t\ttop: ['dropdown-top'],\n\t\t\tbottom: ['dropdown-bottom'],\n\t\t\tright: ['dropdown-right'],\n\t\t\tleft: ['dropdown-left'],\n\t\t},\n\t\tmenuAlignment: {\n\t\t\tstart: [''],\n\t\t\tend: ['dropdown-end'],\n\t\t},\n\t\tmenuOpenBy: {\n\t\t\tclick: [''],\n\t\t\thover: ['dropdown-hover'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tmenuPosition: 'bottom',\n\t\tmenuAlignment: 'start',\n\t\tmenuOpenBy: 'hover',\n\t},\n});\n\nexport type DropdownMenuPositionProps = 'top' | 'bottom' | 'right' | 'left' | null | undefined;\nexport type DropdownMenuAlignmentProps = 'start' | 'end' | null | undefined;\nexport type DropdownMenuOpenByProps = 'click' | 'hover' | null | undefined;\n\nexport const dropdownIcon = cva(['flex items-center'], {\n\tvariants: {\n\t\ticonPosition: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['flex-row gap-2'],\n\t\t\tright: ['flex-row-reverse gap-2'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\ticonPosition: 'left',\n\t},\n});\n\nexport type DropdownIconPositionProps = 'center' | 'left' | 'right' | null | undefined;\n\nexport type DropdownProps = {\n\tvariant?: DropdownButtonVariantProps;\n\tshape?: DropdownButtonShapeProps;\n\theight?: DropdownButtonHeightProps;\n\tpadding?: DropdownButtonPaddingProps;\n\twidth?: DropdownButtonWidthProps;\n\talignment?: DropdownButtonAlignmentProps;\n\tmenuAlignment?: DropdownMenuAlignmentProps;\n\tmenuPosition?: DropdownMenuPositionProps;\n\tmenuOpenBy?: DropdownMenuOpenByProps;\n\ticonPosition?: DropdownIconPositionProps;\n};\nexport const dropdownComponent = ({\n\tvariant,\n\tshape,\n\theight,\n\tpadding,\n\twidth,\n\talignment,\n\tmenuAlignment,\n\tmenuPosition,\n\tmenuOpenBy,\n\ticonPosition,\n}: DropdownProps = {}) =>\n\tcx(\n\t\tdropdownButton({ variant, shape, height, padding, width, alignment }),\n\t\tdropdownMenu({ menuAlignment, menuOpenBy, menuPosition }),\n\t\tdropdownIcon({ iconPosition }),\n\t);\n\n@Component({\n\tselector: 'app-dropdown',\n\tstandalone: true,\n\timports: [IconComponent, TypographyDirective],\n\ttemplateUrl: './dropdown.component.html',\n\tstyles: '',\n})\nexport class DropdownComponent {\n\tvariant = input<DropdownButtonVariantProps>();\n\tshape = input<DropdownButtonShapeProps>();\n\tpadding = input<DropdownButtonPaddingProps>();\n\theight = input<DropdownButtonHeightProps>();\n\twidth = input<DropdownButtonWidthProps>();\n\talignment = input<DropdownButtonAlignmentProps>();\n\tmenuPosition = input<DropdownMenuPositionProps>();\n\tmenuAlignment = input<DropdownMenuAlignmentProps>();\n\tmenuOpenBy = input<DropdownMenuOpenByProps>();\n\ticonPosition = input<DropdownIconPositionProps>();\n\tbuttonClasses = input<string>('');\n\tmenuClasses = input<string>('');\n\ticonClasses = input<string>('');\n\tlabel = input<string | undefined>('');\n\ticonName = input<IconName | undefined>();\n\tdisabled = input<boolean>(false);\n\troutes = input<Route[]>([]);\n\n\tget buttonClass() {\n\t\treturn cn(\n\t\t\tdropdownButton({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\theight: this.height(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\twidth: this.width(),\n\t\t\t\talignment: this.alignment(),\n\t\t\t\tclass: this.buttonClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget menuClass() {\n\t\treturn cn(\n\t\t\tdropdownMenu({\n\t\t\t\tmenuPosition: this.menuPosition(),\n\t\t\t\tmenuAlignment: this.menuAlignment(),\n\t\t\t\tmenuOpenBy: this.menuOpenBy(),\n\t\t\t\tclass: this.menuClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget iconClass() {\n\t\treturn cn(\n\t\t\tdropdownIcon({\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t\tclass: this.iconClasses(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","@let iconNameVar = iconName();\n@let labelVar = label();\n@let variantVar = variant();\n<div [class]=\"menuClass\">\n\t@if (\n\t\tvariantVar === 'primary' ||\n\t\tvariantVar === 'secondary' ||\n\t\tvariantVar === 'sucess' ||\n\t\tvariantVar === 'warning' ||\n\t\tvariantVar === 'error' ||\n\t\tvariantVar === 'info' ||\n\t\tvariantVar === 'accent'\n\t) {\n\t\t<div tabindex=\"0\" role=\"button\" [class]=\"buttonClass\">\n\t\t\t@if (iconNameVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (labelVar) {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ labelVar }}</span>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'search'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t} @else if (!iconNameVar && labelVar) {\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ labelVar }}</span>\n\t\t\t} @else {\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">Empty</span>\n\t\t\t}\n\t\t</div>\n\t} @else {\n\t\t<div tabindex=\"0\" role=\"button\" [class]=\"buttonClass\" [ariaDisabled]=\"disabled()\">\n\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'three-dots'\" color=\"inherit\" size=\"md\"></app-icon>\n\t\t</div>\n\t}\n\t<div tabindex=\"0\" class=\"menu dropdown-content z-[1] min-w-min overflow-hidden rounded-box-md bg-base-100 p-0 shadow\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAOa,cAAc,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE;AAC1C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,6BAA6B,EAAE,6BAA6B,CAAC;YAChG,SAAS,EAAE,CAAC,eAAe,EAAE,QAAQ,EAAE,+BAA+B,EAAE,+BAA+B,CAAC;YACxG,MAAM,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,4BAA4B,EAAE,4BAA4B,CAAC;YAC5F,OAAO,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,6BAA6B,EAAE,6BAA6B,CAAC;YAChG,KAAK,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,2BAA2B,EAAE,2BAA2B,CAAC;YACxF,IAAI,EAAE,CAAC,UAAU,EAAE,Q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A,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,oqDAsCA,EDwHW,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,aAAa,uGAAE,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIhC,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAP7B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,cACZ,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,EAAE,mBAAmB,CAAC,EAAA,QAAA,EAAA,oqDAAA,EAAA,CAAA;;;AE9J9C;;AAEG;;;;"}
@@ -205,10 +205,10 @@ class DualListComponent {
205
205
  });
206
206
  this.target.set(items);
207
207
  }
208
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: DualListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
209
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: DualListComponent, isStandalone: true, selector: "app-dual-list", inputs: { leftTableVariant: { classPropertyName: "leftTableVariant", publicName: "leftTableVariant", isSignal: true, isRequired: false, transformFunction: null }, leftTableSize: { classPropertyName: "leftTableSize", publicName: "leftTableSize", isSignal: true, isRequired: false, transformFunction: null }, leftTableHeight: { classPropertyName: "leftTableHeight", publicName: "leftTableHeight", isSignal: true, isRequired: false, transformFunction: null }, leftTableShadow: { classPropertyName: "leftTableShadow", publicName: "leftTableShadow", isSignal: true, isRequired: false, transformFunction: null }, leftTableShape: { classPropertyName: "leftTableShape", publicName: "leftTableShape", isSignal: true, isRequired: false, transformFunction: null }, leftTableContentClasses: { classPropertyName: "leftTableContentClasses", publicName: "leftTableContentClasses", isSignal: true, isRequired: false, transformFunction: null }, leftTableContainerClasses: { classPropertyName: "leftTableContainerClasses", publicName: "leftTableContainerClasses", isSignal: true, isRequired: false, transformFunction: null }, rightTableVariant: { classPropertyName: "rightTableVariant", publicName: "rightTableVariant", isSignal: true, isRequired: false, transformFunction: null }, rightTableSize: { classPropertyName: "rightTableSize", publicName: "rightTableSize", isSignal: true, isRequired: false, transformFunction: null }, rightTableHeight: { classPropertyName: "rightTableHeight", publicName: "rightTableHeight", isSignal: true, isRequired: false, transformFunction: null }, rightTableShadow: { classPropertyName: "rightTableShadow", publicName: "rightTableShadow", isSignal: true, isRequired: false, transformFunction: null }, rightTableShape: { classPropertyName: "rightTableShape", publicName: "rightTableShape", isSignal: true, isRequired: false, transformFunction: null }, rightTableContentClasses: { classPropertyName: "rightTableContentClasses", publicName: "rightTableContentClasses", isSignal: true, isRequired: false, transformFunction: null }, rightTableContainerClasses: { classPropertyName: "rightTableContainerClasses", publicName: "rightTableContainerClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonAddVariant: { classPropertyName: "buttonAddVariant", publicName: "buttonAddVariant", isSignal: true, isRequired: false, transformFunction: null }, buttonAddContainerClasses: { classPropertyName: "buttonAddContainerClasses", publicName: "buttonAddContainerClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonAddIconClasses: { classPropertyName: "buttonAddIconClasses", publicName: "buttonAddIconClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonAddLabel: { classPropertyName: "buttonAddLabel", publicName: "buttonAddLabel", isSignal: true, isRequired: false, transformFunction: null }, buttonRemoveVariant: { classPropertyName: "buttonRemoveVariant", publicName: "buttonRemoveVariant", isSignal: true, isRequired: false, transformFunction: null }, buttonRemoveContainerClasses: { classPropertyName: "buttonRemoveContainerClasses", publicName: "buttonRemoveContainerClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonRemoveIconClasses: { classPropertyName: "buttonRemoveIconClasses", publicName: "buttonRemoveIconClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonRemoveLabel: { classPropertyName: "buttonRemoveLabel", publicName: "buttonRemoveLabel", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, titleLeft: { classPropertyName: "titleLeft", publicName: "titleLeft", isSignal: true, isRequired: false, transformFunction: null }, titleRight: { classPropertyName: "titleRight", publicName: "titleRight", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, addedItems: { classPropertyName: "addedItems", publicName: "addedItems", isSignal: true, isRequired: true, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onListChange: "onListChange", onSearch: "onSearch", onPageChange: "onPageChange", onPageSizeChange: "onPageSizeChange" }, ngImport: i0, template: "@let id = pagination().id;\n@let currentPage = pagination().currentPage;\n@let itemsPerPage = pagination().itemsPerPage;\n@let titleLeftVar = titleLeft();\n@let titleRightVar = titleRight();\n<div class=\"grid grid-cols-[3fr_1fr_3fr] gap-5\">\n\t<div class=\"flex flex-col rounded-[16px] border-[1px] border-secondary p-4 shadow-secondary\">\n\t\t@if (titleLeftVar) {\n\t\t\t<div class=\"mb-5\">\n\t\t\t\t<h3 typography [typographyVariant]=\"'h3'\">{{ titleLeftVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<app-input placeholder=\"Buscar\" (onEnter)=\"handleSearch($event)\" />\n\t\t<app-table\n\t\t\t[pagination]=\"pagination()\"\n\t\t\t[totalItems]=\"totalItems()\"\n\t\t\terror=\"No se encontraron elementos\"\n\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t(onPageSizeChange)=\"handlePageSizeChange($event)\"\n\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t[showEntries]=\"false\"\n\t\t\t[maxSize]=\"6\"\n\t\t\t[contentClasses]=\"leftTableContentClasses()\"\n\t\t\t[containerClasses]=\"leftTableContainerClass\"\n\t\t\t[variant]=\"leftTableVariantsClasses().variant\"\n\t\t\t[size]=\"leftTableVariantsClasses().size\"\n\t\t\t[height]=\"leftTableVariantsClasses().height\"\n\t\t\t[shadow]=\"leftTableVariantsClasses().shadow\"\n\t\t\t[shape]=\"leftTableVariantsClasses().shape\"\n\t\t\tclass=\"h-full\"\n\t\t\t[showEntries]=\"false\"\n\t\t\t[showItemsPerPage]=\"false\"\n\t\t>\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class=\"rounded-bl-box-lg rounded-tl-box-lg border-[1px] border-r-0 border-solid border-accent\">\n\t\t\t\t\t\t<app-checkbox [value]=\"allToAdd()\" (onChange)=\"handleSelectAll($event)\"></app-checkbox>\n\t\t\t\t\t</th>\n\t\t\t\t\t<th class=\"rounded-br-box-lg rounded-tr-box-lg border-[1px] border-l-0 border-solid border-accent\">Item</th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t<tbody>\n\t\t\t\t@for (item of computedItems() | paginate: { id, currentPage, itemsPerPage, totalItems: totalItems() }; track getKey(item)) {\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<app-checkbox [(value)]=\"item.selected\" (onChange)=\"handleSelectSourceItem($event, item)\"></app-checkbox>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>{{ getLabel(item) }}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t}\n\t\t\t</tbody>\n\t\t</app-table>\n\t</div>\n\n\t<!-- Buttons -->\n\t@let buttonAddContainerClassesVar = buttonAddContainerClasses();\n\t@let buttonAddIconClassesVar = buttonAddIconClasses();\n\t@let buttonAddLabelVar = buttonAddLabel();\n\t@let buttonRemoveContainerClassesVar = buttonRemoveContainerClasses();\n\t@let buttonRemoveIconClassesVar = buttonRemoveIconClasses();\n\t@let buttonRemoveLabelVar = buttonRemoveLabel();\n\n\t<div class=\"grid place-content-center gap-4\">\n\t\t<app-button\n\t\t\t[variant]=\"this.buttonAddClasses().variant\"\n\t\t\t[shape]=\"this.buttonAddClasses().shape\"\n\t\t\t[padding]=\"this.buttonAddClasses().padding\"\n\t\t\t[height]=\"this.buttonAddClasses().height\"\n\t\t\t[width]=\"this.buttonAddClasses().width\"\n\t\t\t[alignment]=\"this.buttonAddClasses().alignment\"\n\t\t\t[iconPosition]=\"this.buttonAddClasses().iconPosition\"\n\t\t\t[label]=\"buttonAddLabelVar\"\n\t\t\t[containerClasses]=\"buttonAddContainerClassesVar\"\n\t\t\t[iconClasses]=\"buttonAddIconClassesVar\"\n\t\t\t(click)=\"handleAddItems()\"\n\t\t/>\n\t\t<app-button\n\t\t\t[variant]=\"this.buttonRemoveClasses().variant\"\n\t\t\t[shape]=\"this.buttonRemoveClasses().shape\"\n\t\t\t[padding]=\"this.buttonRemoveClasses().padding\"\n\t\t\t[height]=\"this.buttonRemoveClasses().height\"\n\t\t\t[width]=\"this.buttonRemoveClasses().width\"\n\t\t\t[alignment]=\"this.buttonRemoveClasses().alignment\"\n\t\t\t[iconPosition]=\"this.buttonRemoveClasses().iconPosition\"\n\t\t\t[label]=\"buttonRemoveLabelVar\"\n\t\t\t[containerClasses]=\"buttonRemoveContainerClassesVar\"\n\t\t\t[iconClasses]=\"buttonRemoveIconClassesVar\"\n\t\t\t(click)=\"handleRemoveItems()\"\n\t\t/>\n\t</div>\n\n\t<!-- END Buttons -->\n\n\t<div class=\"flex flex-col rounded-[16px] border-[1px] border-secondary p-4 shadow-secondary\">\n\t\t@if (titleRightVar) {\n\t\t\t<div class=\"mb-5\">\n\t\t\t\t<h3 typography [typographyVariant]=\"'h3'\">{{ titleRightVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<app-input placeholder=\"Buscar\" (onEnter)=\"handleTargetListSearch($event)\" />\n\t\t@let added = searchTargetComputed();\n\t\t@if (added) {\n\t\t\t<app-table\n\t\t\t\t[data]=\"added\"\n\t\t\t\terror=\"Sin elementos para mostrar\"\n\t\t\t\t[contentClasses]=\"rightTableContentClasses()\"\n\t\t\t\t[containerClasses]=\"rightTableContainerClass\"\n\t\t\t\t[variant]=\"rightTableVariantsClasses().variant\"\n\t\t\t\t[size]=\"rightTableVariantsClasses().size\"\n\t\t\t\t[height]=\"rightTableVariantsClasses().height\"\n\t\t\t\t[shadow]=\"rightTableVariantsClasses().shadow\"\n\t\t\t\t[shape]=\"rightTableVariantsClasses().shape\"\n\t\t\t>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th class=\"rounded-bl-box-lg rounded-tl-box-lg border-[1px] border-r-0 border-solid border-accent\">\n\t\t\t\t\t\t\t@if (searchTarget() === '') {\n\t\t\t\t\t\t\t\t<app-checkbox [value]=\"allToRemove()\" (onChange)=\"handleSelectAllToRemove($event)\"></app-checkbox>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<th class=\"rounded-br-box-lg rounded-tr-box-lg border-[1px] border-l-0 border-solid border-accent\">Item</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t@for (item of added; track getKey(item)) {\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<app-checkbox [(value)]=\"item.selected\" (onChange)=\"handleSelectTargetItem($event, item)\"></app-checkbox>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>{{ getLabel(item) }}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t}\n\t\t\t\t</tbody>\n\t\t\t</app-table>\n\t\t}\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: TableComponent, selector: "app-table", inputs: ["variant", "size", "height", "shadow", "shape", "contentClasses", "containerClasses", "paginatorType", "data", "totalItems", "error", "pagination", "maxSize", "showItemsPerPage", "showEntries"], outputs: ["onPageChange", "onPageSizeChange", "onCheck"] }, { kind: "component", type: CheckboxComponent, selector: "app-checkbox", inputs: ["variant", "size", "classes", "label", "name", "value", "disabled"], outputs: ["valueChange", "disabledChange", "onChange"] }, { kind: "component", type: InputComponent, selector: "app-input", inputs: ["variant", "shape", "size", "padding", "classes", "label", "type", "name", "placeholder", "icon", "readonly", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "onEnter", "onBlur", "onDebounceChange"] }, { kind: "ngmodule", type: NgxPaginationModule }, { kind: "pipe", type: i1.PaginatePipe, name: "paginate" }, { kind: "component", type: ButtonComponent, selector: "app-button", inputs: ["variant", "shape", "padding", "height", "width", "alignment", "iconPosition", "fontSize", "containerClasses", "iconClasses", "label", "type", "iconName", "disabled"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }] });
208
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: DualListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
209
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: DualListComponent, isStandalone: true, selector: "app-dual-list", inputs: { leftTableVariant: { classPropertyName: "leftTableVariant", publicName: "leftTableVariant", isSignal: true, isRequired: false, transformFunction: null }, leftTableSize: { classPropertyName: "leftTableSize", publicName: "leftTableSize", isSignal: true, isRequired: false, transformFunction: null }, leftTableHeight: { classPropertyName: "leftTableHeight", publicName: "leftTableHeight", isSignal: true, isRequired: false, transformFunction: null }, leftTableShadow: { classPropertyName: "leftTableShadow", publicName: "leftTableShadow", isSignal: true, isRequired: false, transformFunction: null }, leftTableShape: { classPropertyName: "leftTableShape", publicName: "leftTableShape", isSignal: true, isRequired: false, transformFunction: null }, leftTableContentClasses: { classPropertyName: "leftTableContentClasses", publicName: "leftTableContentClasses", isSignal: true, isRequired: false, transformFunction: null }, leftTableContainerClasses: { classPropertyName: "leftTableContainerClasses", publicName: "leftTableContainerClasses", isSignal: true, isRequired: false, transformFunction: null }, rightTableVariant: { classPropertyName: "rightTableVariant", publicName: "rightTableVariant", isSignal: true, isRequired: false, transformFunction: null }, rightTableSize: { classPropertyName: "rightTableSize", publicName: "rightTableSize", isSignal: true, isRequired: false, transformFunction: null }, rightTableHeight: { classPropertyName: "rightTableHeight", publicName: "rightTableHeight", isSignal: true, isRequired: false, transformFunction: null }, rightTableShadow: { classPropertyName: "rightTableShadow", publicName: "rightTableShadow", isSignal: true, isRequired: false, transformFunction: null }, rightTableShape: { classPropertyName: "rightTableShape", publicName: "rightTableShape", isSignal: true, isRequired: false, transformFunction: null }, rightTableContentClasses: { classPropertyName: "rightTableContentClasses", publicName: "rightTableContentClasses", isSignal: true, isRequired: false, transformFunction: null }, rightTableContainerClasses: { classPropertyName: "rightTableContainerClasses", publicName: "rightTableContainerClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonAddVariant: { classPropertyName: "buttonAddVariant", publicName: "buttonAddVariant", isSignal: true, isRequired: false, transformFunction: null }, buttonAddContainerClasses: { classPropertyName: "buttonAddContainerClasses", publicName: "buttonAddContainerClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonAddIconClasses: { classPropertyName: "buttonAddIconClasses", publicName: "buttonAddIconClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonAddLabel: { classPropertyName: "buttonAddLabel", publicName: "buttonAddLabel", isSignal: true, isRequired: false, transformFunction: null }, buttonRemoveVariant: { classPropertyName: "buttonRemoveVariant", publicName: "buttonRemoveVariant", isSignal: true, isRequired: false, transformFunction: null }, buttonRemoveContainerClasses: { classPropertyName: "buttonRemoveContainerClasses", publicName: "buttonRemoveContainerClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonRemoveIconClasses: { classPropertyName: "buttonRemoveIconClasses", publicName: "buttonRemoveIconClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonRemoveLabel: { classPropertyName: "buttonRemoveLabel", publicName: "buttonRemoveLabel", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, titleLeft: { classPropertyName: "titleLeft", publicName: "titleLeft", isSignal: true, isRequired: false, transformFunction: null }, titleRight: { classPropertyName: "titleRight", publicName: "titleRight", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, addedItems: { classPropertyName: "addedItems", publicName: "addedItems", isSignal: true, isRequired: true, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onListChange: "onListChange", onSearch: "onSearch", onPageChange: "onPageChange", onPageSizeChange: "onPageSizeChange" }, ngImport: i0, template: "@let id = pagination().id;\n@let currentPage = pagination().currentPage;\n@let itemsPerPage = pagination().itemsPerPage;\n@let titleLeftVar = titleLeft();\n@let titleRightVar = titleRight();\n<div class=\"grid grid-cols-[3fr_1fr_3fr] gap-5\">\n\t<div class=\"flex flex-col rounded-[16px] border-[1px] border-secondary p-4 shadow-secondary\">\n\t\t@if (titleLeftVar) {\n\t\t\t<div class=\"mb-5\">\n\t\t\t\t<h3 typography [typographyVariant]=\"'h3'\">{{ titleLeftVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<app-input placeholder=\"Buscar\" (onEnter)=\"handleSearch($event)\" />\n\t\t<app-table\n\t\t\t[pagination]=\"pagination()\"\n\t\t\t[totalItems]=\"totalItems()\"\n\t\t\terror=\"No se encontraron elementos\"\n\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t(onPageSizeChange)=\"handlePageSizeChange($event)\"\n\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t[showEntries]=\"false\"\n\t\t\t[maxSize]=\"6\"\n\t\t\t[contentClasses]=\"leftTableContentClasses()\"\n\t\t\t[containerClasses]=\"leftTableContainerClass\"\n\t\t\t[variant]=\"leftTableVariantsClasses().variant\"\n\t\t\t[size]=\"leftTableVariantsClasses().size\"\n\t\t\t[height]=\"leftTableVariantsClasses().height\"\n\t\t\t[shadow]=\"leftTableVariantsClasses().shadow\"\n\t\t\t[shape]=\"leftTableVariantsClasses().shape\"\n\t\t\tclass=\"h-full\"\n\t\t\t[showEntries]=\"false\"\n\t\t\t[showItemsPerPage]=\"false\"\n\t\t>\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class=\"rounded-bl-box-lg rounded-tl-box-lg border-[1px] border-r-0 border-solid border-accent\">\n\t\t\t\t\t\t<app-checkbox [value]=\"allToAdd()\" (onChange)=\"handleSelectAll($event)\"></app-checkbox>\n\t\t\t\t\t</th>\n\t\t\t\t\t<th class=\"rounded-br-box-lg rounded-tr-box-lg border-[1px] border-l-0 border-solid border-accent\">Item</th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t<tbody>\n\t\t\t\t@for (item of computedItems() | paginate: { id, currentPage, itemsPerPage, totalItems: totalItems() }; track getKey(item)) {\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<app-checkbox [(value)]=\"item.selected\" (onChange)=\"handleSelectSourceItem($event, item)\"></app-checkbox>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>{{ getLabel(item) }}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t}\n\t\t\t</tbody>\n\t\t</app-table>\n\t</div>\n\n\t<!-- Buttons -->\n\t@let buttonAddContainerClassesVar = buttonAddContainerClasses();\n\t@let buttonAddIconClassesVar = buttonAddIconClasses();\n\t@let buttonAddLabelVar = buttonAddLabel();\n\t@let buttonRemoveContainerClassesVar = buttonRemoveContainerClasses();\n\t@let buttonRemoveIconClassesVar = buttonRemoveIconClasses();\n\t@let buttonRemoveLabelVar = buttonRemoveLabel();\n\n\t<div class=\"grid place-content-center gap-4\">\n\t\t<app-button\n\t\t\t[variant]=\"this.buttonAddClasses().variant\"\n\t\t\t[shape]=\"this.buttonAddClasses().shape\"\n\t\t\t[padding]=\"this.buttonAddClasses().padding\"\n\t\t\t[height]=\"this.buttonAddClasses().height\"\n\t\t\t[width]=\"this.buttonAddClasses().width\"\n\t\t\t[alignment]=\"this.buttonAddClasses().alignment\"\n\t\t\t[iconPosition]=\"this.buttonAddClasses().iconPosition\"\n\t\t\t[label]=\"buttonAddLabelVar\"\n\t\t\t[containerClasses]=\"buttonAddContainerClassesVar\"\n\t\t\t[iconClasses]=\"buttonAddIconClassesVar\"\n\t\t\t(click)=\"handleAddItems()\"\n\t\t/>\n\t\t<app-button\n\t\t\t[variant]=\"this.buttonRemoveClasses().variant\"\n\t\t\t[shape]=\"this.buttonRemoveClasses().shape\"\n\t\t\t[padding]=\"this.buttonRemoveClasses().padding\"\n\t\t\t[height]=\"this.buttonRemoveClasses().height\"\n\t\t\t[width]=\"this.buttonRemoveClasses().width\"\n\t\t\t[alignment]=\"this.buttonRemoveClasses().alignment\"\n\t\t\t[iconPosition]=\"this.buttonRemoveClasses().iconPosition\"\n\t\t\t[label]=\"buttonRemoveLabelVar\"\n\t\t\t[containerClasses]=\"buttonRemoveContainerClassesVar\"\n\t\t\t[iconClasses]=\"buttonRemoveIconClassesVar\"\n\t\t\t(click)=\"handleRemoveItems()\"\n\t\t/>\n\t</div>\n\n\t<!-- END Buttons -->\n\n\t<div class=\"flex flex-col rounded-[16px] border-[1px] border-secondary p-4 shadow-secondary\">\n\t\t@if (titleRightVar) {\n\t\t\t<div class=\"mb-5\">\n\t\t\t\t<h3 typography [typographyVariant]=\"'h3'\">{{ titleRightVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<app-input placeholder=\"Buscar\" (onEnter)=\"handleTargetListSearch($event)\" />\n\t\t@let added = searchTargetComputed();\n\t\t@if (added) {\n\t\t\t<app-table\n\t\t\t\t[data]=\"added\"\n\t\t\t\terror=\"Sin elementos para mostrar\"\n\t\t\t\t[contentClasses]=\"rightTableContentClasses()\"\n\t\t\t\t[containerClasses]=\"rightTableContainerClass\"\n\t\t\t\t[variant]=\"rightTableVariantsClasses().variant\"\n\t\t\t\t[size]=\"rightTableVariantsClasses().size\"\n\t\t\t\t[height]=\"rightTableVariantsClasses().height\"\n\t\t\t\t[shadow]=\"rightTableVariantsClasses().shadow\"\n\t\t\t\t[shape]=\"rightTableVariantsClasses().shape\"\n\t\t\t>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th class=\"rounded-bl-box-lg rounded-tl-box-lg border-[1px] border-r-0 border-solid border-accent\">\n\t\t\t\t\t\t\t@if (searchTarget() === '') {\n\t\t\t\t\t\t\t\t<app-checkbox [value]=\"allToRemove()\" (onChange)=\"handleSelectAllToRemove($event)\"></app-checkbox>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<th class=\"rounded-br-box-lg rounded-tr-box-lg border-[1px] border-l-0 border-solid border-accent\">Item</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t@for (item of added; track getKey(item)) {\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<app-checkbox [(value)]=\"item.selected\" (onChange)=\"handleSelectTargetItem($event, item)\"></app-checkbox>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>{{ getLabel(item) }}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t}\n\t\t\t\t</tbody>\n\t\t\t</app-table>\n\t\t}\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: TableComponent, selector: "app-table", inputs: ["variant", "size", "height", "shadow", "shape", "contentClasses", "containerClasses", "paginatorType", "data", "totalItems", "error", "pagination", "maxSize", "showItemsPerPage", "showEntries"], outputs: ["onPageChange", "onPageSizeChange", "onCheck"] }, { kind: "component", type: CheckboxComponent, selector: "app-checkbox", inputs: ["variant", "size", "classes", "label", "name", "value", "disabled"], outputs: ["valueChange", "disabledChange", "onChange"] }, { kind: "component", type: InputComponent, selector: "app-input", inputs: ["variant", "shape", "size", "padding", "classes", "label", "type", "name", "placeholder", "icon", "readonly", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "onEnter", "onBlur", "onDebounceChange"] }, { kind: "ngmodule", type: NgxPaginationModule }, { kind: "pipe", type: i1.PaginatePipe, name: "paginate" }, { kind: "component", type: ButtonComponent, selector: "app-button", inputs: ["variant", "shape", "padding", "height", "width", "alignment", "iconPosition", "fontSize", "containerClasses", "iconClasses", "label", "type", "iconName", "disabled"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }] });
210
210
  }
211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: DualListComponent, decorators: [{
211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: DualListComponent, decorators: [{
212
212
  type: Component,
213
213
  args: [{ selector: 'app-dual-list', standalone: true, imports: [ReactiveFormsModule, TableComponent, CheckboxComponent, InputComponent, NgxPaginationModule, ButtonComponent, TypographyDirective], template: "@let id = pagination().id;\n@let currentPage = pagination().currentPage;\n@let itemsPerPage = pagination().itemsPerPage;\n@let titleLeftVar = titleLeft();\n@let titleRightVar = titleRight();\n<div class=\"grid grid-cols-[3fr_1fr_3fr] gap-5\">\n\t<div class=\"flex flex-col rounded-[16px] border-[1px] border-secondary p-4 shadow-secondary\">\n\t\t@if (titleLeftVar) {\n\t\t\t<div class=\"mb-5\">\n\t\t\t\t<h3 typography [typographyVariant]=\"'h3'\">{{ titleLeftVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<app-input placeholder=\"Buscar\" (onEnter)=\"handleSearch($event)\" />\n\t\t<app-table\n\t\t\t[pagination]=\"pagination()\"\n\t\t\t[totalItems]=\"totalItems()\"\n\t\t\terror=\"No se encontraron elementos\"\n\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t(onPageSizeChange)=\"handlePageSizeChange($event)\"\n\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t[showEntries]=\"false\"\n\t\t\t[maxSize]=\"6\"\n\t\t\t[contentClasses]=\"leftTableContentClasses()\"\n\t\t\t[containerClasses]=\"leftTableContainerClass\"\n\t\t\t[variant]=\"leftTableVariantsClasses().variant\"\n\t\t\t[size]=\"leftTableVariantsClasses().size\"\n\t\t\t[height]=\"leftTableVariantsClasses().height\"\n\t\t\t[shadow]=\"leftTableVariantsClasses().shadow\"\n\t\t\t[shape]=\"leftTableVariantsClasses().shape\"\n\t\t\tclass=\"h-full\"\n\t\t\t[showEntries]=\"false\"\n\t\t\t[showItemsPerPage]=\"false\"\n\t\t>\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class=\"rounded-bl-box-lg rounded-tl-box-lg border-[1px] border-r-0 border-solid border-accent\">\n\t\t\t\t\t\t<app-checkbox [value]=\"allToAdd()\" (onChange)=\"handleSelectAll($event)\"></app-checkbox>\n\t\t\t\t\t</th>\n\t\t\t\t\t<th class=\"rounded-br-box-lg rounded-tr-box-lg border-[1px] border-l-0 border-solid border-accent\">Item</th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t<tbody>\n\t\t\t\t@for (item of computedItems() | paginate: { id, currentPage, itemsPerPage, totalItems: totalItems() }; track getKey(item)) {\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<app-checkbox [(value)]=\"item.selected\" (onChange)=\"handleSelectSourceItem($event, item)\"></app-checkbox>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>{{ getLabel(item) }}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t}\n\t\t\t</tbody>\n\t\t</app-table>\n\t</div>\n\n\t<!-- Buttons -->\n\t@let buttonAddContainerClassesVar = buttonAddContainerClasses();\n\t@let buttonAddIconClassesVar = buttonAddIconClasses();\n\t@let buttonAddLabelVar = buttonAddLabel();\n\t@let buttonRemoveContainerClassesVar = buttonRemoveContainerClasses();\n\t@let buttonRemoveIconClassesVar = buttonRemoveIconClasses();\n\t@let buttonRemoveLabelVar = buttonRemoveLabel();\n\n\t<div class=\"grid place-content-center gap-4\">\n\t\t<app-button\n\t\t\t[variant]=\"this.buttonAddClasses().variant\"\n\t\t\t[shape]=\"this.buttonAddClasses().shape\"\n\t\t\t[padding]=\"this.buttonAddClasses().padding\"\n\t\t\t[height]=\"this.buttonAddClasses().height\"\n\t\t\t[width]=\"this.buttonAddClasses().width\"\n\t\t\t[alignment]=\"this.buttonAddClasses().alignment\"\n\t\t\t[iconPosition]=\"this.buttonAddClasses().iconPosition\"\n\t\t\t[label]=\"buttonAddLabelVar\"\n\t\t\t[containerClasses]=\"buttonAddContainerClassesVar\"\n\t\t\t[iconClasses]=\"buttonAddIconClassesVar\"\n\t\t\t(click)=\"handleAddItems()\"\n\t\t/>\n\t\t<app-button\n\t\t\t[variant]=\"this.buttonRemoveClasses().variant\"\n\t\t\t[shape]=\"this.buttonRemoveClasses().shape\"\n\t\t\t[padding]=\"this.buttonRemoveClasses().padding\"\n\t\t\t[height]=\"this.buttonRemoveClasses().height\"\n\t\t\t[width]=\"this.buttonRemoveClasses().width\"\n\t\t\t[alignment]=\"this.buttonRemoveClasses().alignment\"\n\t\t\t[iconPosition]=\"this.buttonRemoveClasses().iconPosition\"\n\t\t\t[label]=\"buttonRemoveLabelVar\"\n\t\t\t[containerClasses]=\"buttonRemoveContainerClassesVar\"\n\t\t\t[iconClasses]=\"buttonRemoveIconClassesVar\"\n\t\t\t(click)=\"handleRemoveItems()\"\n\t\t/>\n\t</div>\n\n\t<!-- END Buttons -->\n\n\t<div class=\"flex flex-col rounded-[16px] border-[1px] border-secondary p-4 shadow-secondary\">\n\t\t@if (titleRightVar) {\n\t\t\t<div class=\"mb-5\">\n\t\t\t\t<h3 typography [typographyVariant]=\"'h3'\">{{ titleRightVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<app-input placeholder=\"Buscar\" (onEnter)=\"handleTargetListSearch($event)\" />\n\t\t@let added = searchTargetComputed();\n\t\t@if (added) {\n\t\t\t<app-table\n\t\t\t\t[data]=\"added\"\n\t\t\t\terror=\"Sin elementos para mostrar\"\n\t\t\t\t[contentClasses]=\"rightTableContentClasses()\"\n\t\t\t\t[containerClasses]=\"rightTableContainerClass\"\n\t\t\t\t[variant]=\"rightTableVariantsClasses().variant\"\n\t\t\t\t[size]=\"rightTableVariantsClasses().size\"\n\t\t\t\t[height]=\"rightTableVariantsClasses().height\"\n\t\t\t\t[shadow]=\"rightTableVariantsClasses().shadow\"\n\t\t\t\t[shape]=\"rightTableVariantsClasses().shape\"\n\t\t\t>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th class=\"rounded-bl-box-lg rounded-tl-box-lg border-[1px] border-r-0 border-solid border-accent\">\n\t\t\t\t\t\t\t@if (searchTarget() === '') {\n\t\t\t\t\t\t\t\t<app-checkbox [value]=\"allToRemove()\" (onChange)=\"handleSelectAllToRemove($event)\"></app-checkbox>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<th class=\"rounded-br-box-lg rounded-tr-box-lg border-[1px] border-l-0 border-solid border-accent\">Item</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t@for (item of added; track getKey(item)) {\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<app-checkbox [(value)]=\"item.selected\" (onChange)=\"handleSelectTargetItem($event, item)\"></app-checkbox>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>{{ getLabel(item) }}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t}\n\t\t\t\t</tbody>\n\t\t\t</app-table>\n\t\t}\n\t</div>\n</div>\n" }]
214
214
  }] });