@sixbell-telco/sdk 0.1.4 → 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 (155) hide show
  1. package/CHANGELOG.md +128 -4
  2. package/README.md +40 -8
  3. package/components/accordion/accordion-item/accordion-item.component.d.ts +9 -6
  4. package/components/avatar/src/avatar.component.d.ts +17 -12
  5. package/components/button/src/button.component.d.ts +29 -28
  6. package/components/card/src/card.component.d.ts +18 -12
  7. package/components/dropdown/src/dropdown.component.d.ts +29 -27
  8. package/components/dual-list/src/dual-list.component.d.ts +47 -37
  9. package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +20 -11
  10. package/components/forms/checkbox/src/checkbox.component.d.ts +7 -3
  11. package/components/forms/combobox/src/combobox.component.d.ts +17 -16
  12. package/components/forms/input/src/input.component.d.ts +20 -15
  13. package/components/forms/radio/src/radio.component.d.ts +14 -1
  14. package/components/forms/range/src/range.component.d.ts +11 -11
  15. package/components/forms/select/src/select.component.d.ts +17 -15
  16. package/components/forms/switch/src/switch.component.d.ts +11 -11
  17. package/components/forms/textarea/src/textarea.component.d.ts +20 -16
  18. package/components/forms/toggle/src/toggle.component.d.ts +12 -7
  19. package/components/icon/src/icon.component.d.ts +12 -7
  20. package/components/link/src/link.component.d.ts +27 -16
  21. package/components/modal/src/modal.component.d.ts +18 -7
  22. package/components/notification/src/notification.component.d.ts +15 -7
  23. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +18 -7
  24. package/components/product-card/src/product-card.component.d.ts +42 -17
  25. package/components/progress/src/progress.component.d.ts +9 -7
  26. package/components/tab/directives/tab-content/tab-content.directive.d.ts +8 -10
  27. package/components/tab/directives/tab-header/tab-header.directive.d.ts +9 -12
  28. package/components/tab/src/tab.component.d.ts +14 -9
  29. package/components/table/src/table.component.d.ts +28 -17
  30. package/components/toast/toast-message/toast-message.component.d.ts +9 -7
  31. package/components/tooltip/src/tooltip.component.d.ts +12 -7
  32. package/components/wizard/wizard-content/wizard-content.component.d.ts +3 -3
  33. package/directives/typography/src/typography.directive.d.ts +13 -12
  34. package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +9 -9
  35. package/esm2022/components/accordion/src/accordion.component.mjs +5 -5
  36. package/esm2022/components/avatar/src/avatar.component.mjs +9 -9
  37. package/esm2022/components/button/src/button.component.mjs +15 -13
  38. package/esm2022/components/card/src/card.component.mjs +9 -9
  39. package/esm2022/components/countdown/src/countdown.component.mjs +4 -4
  40. package/esm2022/components/dropdown/src/dropdown.component.mjs +17 -13
  41. package/esm2022/components/dual-list/src/dual-list.component.mjs +55 -35
  42. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +5 -6
  43. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +30 -24
  44. package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +11 -11
  45. package/esm2022/components/forms/combobox/src/combobox.component.mjs +33 -30
  46. package/esm2022/components/forms/datepicker/src/datepicker-format-month.pipe.mjs +4 -4
  47. package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +6 -6
  48. package/esm2022/components/forms/form-error/src/form-error.component.mjs +5 -5
  49. package/esm2022/components/forms/input/src/input.component.mjs +36 -36
  50. package/esm2022/components/forms/radio/src/radio.component.mjs +55 -6
  51. package/esm2022/components/forms/range/src/range.component.mjs +16 -15
  52. package/esm2022/components/forms/select/src/select.component.mjs +32 -30
  53. package/esm2022/components/forms/switch/src/switch.component.mjs +17 -16
  54. package/esm2022/components/forms/textarea/src/textarea.component.mjs +37 -38
  55. package/esm2022/components/forms/toggle/src/toggle.component.mjs +115 -92
  56. package/esm2022/components/icon/src/icon.component.mjs +11 -10
  57. package/esm2022/components/link/src/link.component.mjs +28 -22
  58. package/esm2022/components/modal/src/modal.component.mjs +19 -15
  59. package/esm2022/components/notification/src/notification.component.mjs +12 -10
  60. package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +20 -17
  61. package/esm2022/components/paginator/src/paginator.component.mjs +5 -5
  62. package/esm2022/components/product-card/directives/product-card-actions.directive.mjs +4 -4
  63. package/esm2022/components/product-card/directives/product-card-content.directive.mjs +4 -4
  64. package/esm2022/components/product-card/directives/product-card-header.directive.mjs +4 -4
  65. package/esm2022/components/product-card/src/product-card.component.mjs +54 -48
  66. package/esm2022/components/progress/src/progress.component.mjs +13 -13
  67. package/esm2022/components/tab/directives/tab-content/tab-content.directive.mjs +16 -15
  68. package/esm2022/components/tab/directives/tab-header/tab-header.directive.mjs +19 -17
  69. package/esm2022/components/tab/src/tab.component.mjs +19 -17
  70. package/esm2022/components/table/src/table.component.mjs +34 -25
  71. package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +4 -4
  72. package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +4 -4
  73. package/esm2022/components/toast/services/toast.service.mjs +4 -4
  74. package/esm2022/components/toast/toast-message/toast-message.component.mjs +24 -19
  75. package/esm2022/components/toast/toasts-container/toasts-container.component.mjs +4 -4
  76. package/esm2022/components/tooltip/src/tooltip.component.mjs +14 -12
  77. package/esm2022/components/wizard/wizard-content/wizard-content.component.mjs +8 -8
  78. package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +5 -5
  79. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +5 -6
  80. package/esm2022/components/wizard/wizard-sub-step/wizard-sub-step.component.mjs +4 -4
  81. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +5 -13
  82. package/esm2022/directives/typography/src/typography.directive.mjs +11 -8
  83. package/esm2022/utils/pipes/extract-extension/src/extract-extension.mjs +4 -4
  84. package/esm2022/utils/pipes/to-bytes-extesion/src/to-bytes.pipe.mjs +4 -4
  85. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +13 -13
  86. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +9 -9
  88. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-components-button.mjs +15 -13
  90. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  91. package/fesm2022/sixbell-telco-sdk-components-card.mjs +9 -9
  92. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  93. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +3 -3
  94. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  95. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +17 -13
  96. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  97. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +53 -33
  98. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +4 -5
  100. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +29 -23
  102. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
  103. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +10 -10
  104. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +32 -29
  106. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +8 -8
  108. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
  109. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +4 -4
  110. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  111. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +35 -35
  112. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  113. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +54 -5
  114. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  115. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +15 -14
  116. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  117. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +31 -29
  118. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  119. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +16 -15
  120. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  121. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +36 -37
  122. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  123. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +115 -92
  124. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  125. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +11 -10
  126. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  127. package/fesm2022/sixbell-telco-sdk-components-link.mjs +28 -22
  128. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  129. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +19 -15
  130. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
  131. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +12 -10
  132. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  133. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +24 -21
  134. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  135. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +63 -57
  136. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  137. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +13 -13
  138. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  139. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +52 -47
  140. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  141. package/fesm2022/sixbell-telco-sdk-components-table.mjs +41 -31
  142. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  143. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +30 -25
  144. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  145. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +14 -12
  146. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  147. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +22 -30
  148. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  149. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +10 -7
  150. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
  151. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +3 -3
  152. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs.map +1 -1
  153. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +3 -3
  154. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs.map +1 -1
  155. package/package.json +30 -24
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-forms-combobox.mjs","sources":["../../../projects/sdk/components/forms/combobox/src/combobox.component.ts","../../../projects/sdk/components/forms/combobox/src/combobox.component.html","../../../projects/sdk/components/forms/combobox/sixbell-telco-sdk-components-forms-combobox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ChangeDetectionStrategy, Component, effect, input, model, output } from '@angular/core';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';\nimport { NgSelectModule } from '@ng-select/ng-select';\nimport { InputComponent } from '@sixbell-telco/sdk/components/forms/input';\nimport { NativeSelectVariantProps } from '@sixbell-telco/sdk/components/forms/select';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, VariantProps } from 'class-variance-authority';\n\nconst combobox = cva(['[&>*]:w-full', 'font-body', 'custom-ng-select'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['combobox-primary'],\n\t\t\tsecondary: ['combobox-secondary'],\n\t\t\tsuccess: ['combobox-success'],\n\t\t\terror: ['combobox-error'],\n\t\t\twarning: ['combobox-warning'],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['[&>*]:rounded-[0px_!important]'],\n\t\t\t'round-sm': ['[&>*]:rounded-[var(--rounded-btn-sm)_!important]'],\n\t\t\t'round-md': ['[&>*]:rounded-[var(--rounded-btn-md)_!important]'],\n\t\t\t'round-lg': ['[&>*]:rounded-[var(--rounded-btn-lg)_!important]'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['[&>*]:h-[fit-content!important]', '[&>*]:min-h-[fit-content!important]'],\n\t\t\tsm: ['[&>*]:h-[1.875rem_!important]', '[&>*]:min-h-[1.875rem_!important]'],\n\t\t\tmd: ['[&>*]:h-[2.75rem_!important]', '[&>*]:min-h-[2.75rem_!important]'],\n\t\t\tlg: ['[&>*]:h-[3rem_!important]', '[&>*]:min-h-[3rem_!important]'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tshape: 'round-sm',\n\t\theight: 'md',\n\t},\n});\n\nexport type ComboboxVariantProps = VariantProps<typeof combobox>;\n\n/**\n * Search input component\n * A search input component that allows the user to search for an option from a list of options\n * This component was implemented using the ng-select library\n * Docs: https://github.com/ng-select/ng-select\n */\n@Component({\n\tselector: 'app-combobox',\n\tstandalone: true,\n\timports: [NgSelectModule, FormsModule, InputComponent, TypographyDirective, ReactiveFormsModule],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: ComboboxComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './combobox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ComboboxComponent implements ControlValueAccessor {\n\t// Basi input properties\n\tvariants = input<NativeSelectVariantProps>({ variant: 'secondary', shape: 'round-sm', height: 'md' });\n\tclass = input<string>('');\n\tname = input<string | null>(null);\n\tlabel = input<string>('');\n\n\tvalue = model();\n\toptions = input<any[]>([]);\n\temptyOptionText = input<string>('');\n\tloading = input<boolean>(false);\n\tsearch = '';\n\n\t// Options properties\n\ttrackBy = input<string>('id');\n\tkey = input<string>('name');\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\n\tget formField(): FormControl | null {\n\t\tif (!this.parentForm()) return null;\n\t\treturn this.parentForm()?.get(this.formControlName()) as FormControl;\n\t}\n\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState?(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// Select handler\n\tonChange = output<any>();\n\thandleSelect() {\n\t\tthis.onChange.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t\tthis.handleSearch('');\n\t}\n\n\t// Search handler\n\tonSearch = output<string>();\n\thandleSearch(search: string) {\n\t\tthis.onSearch.emit(search);\n\t\tthis.search = search;\n\t}\n\n\t// Blur handler\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n\n\t// Checks if options are primitives or not\n\tsimpleOption = false;\n\toptionsEffect = effect(() => {\n\t\tthis.simpleOption = this.options().every((option) => typeof option !== 'object');\n\t});\n\n\tget classes() {\n\t\treturn cn(\n\t\t\tcombobox({\n\t\t\t\tvariant: this.variants()?.variant,\n\t\t\t\tshape: this.variants()?.shape,\n\t\t\t\theight: this.variants()?.height,\n\t\t\t\tclass: this.class(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget errorClasses() {\n\t\treturn cn(\n\t\t\tcombobox({\n\t\t\t\tvariant: 'error',\n\t\t\t\tshape: this.variants()?.shape,\n\t\t\t\theight: this.variants()?.height,\n\t\t\t\tclass: this.class(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget successClasses() {\n\t\treturn cn(\n\t\t\tcombobox({\n\t\t\t\tvariant: 'success',\n\t\t\t\tshape: this.variants()?.shape,\n\t\t\t\theight: this.variants()?.height,\n\t\t\t\tclass: this.class(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget validationClasses() {\n\t\tif (!this.formField) return this.classes;\n\n\t\tif (this.formField.dirty || this.formField.touched) {\n\t\t\tif (this.formField.invalid) {\n\t\t\t\treturn this.errorClasses;\n\t\t\t} else if (this.formField.valid) {\n\t\t\t\treturn this.successClasses;\n\t\t\t}\n\t\t}\n\n\t\treturn this.classes;\n\t}\n}\n","<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\" class=\"block\"\n\t\t\t><span [typography]=\"{ variant: 'body', color: 'black', fontWeight: 'normal' }\">{{ label() }}</span></label\n\t\t>\n\t}\n\n\t<ng-select\n\t\t#select\n\t\tnotFoundText=\"Ningún elemento encontrado...\"\n\t\tloadingText=\"Cargando...\"\n\t\t[searchable]=\"false\"\n\t\t[clearable]=\"false\"\n\t\t[(ngModel)]=\"value\"\n\t\t[bindLabel]=\"key()\"\n\t\t[disabled]=\"disabled()\"\n\t\t(change)=\"handleSelect()\"\n\t\t(blur)=\"handleBlur()\"\n\t\t[class]=\"validationClasses\"\n\t>\n\t\t@if (emptyOptionText() && !search) {\n\t\t\t<ng-option value=\"\">\n\t\t\t\t<span [typography]=\"{ variant: 'body-sm', color: 'black', fontWeight: 'normal' }\">{{ emptyOptionText() }}</span></ng-option\n\t\t\t>\n\t\t}\n\n\t\t@if (simpleOption) {\n\t\t\t@for (option of options(); track option) {\n\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t<span [typography]=\"{ variant: 'body-sm', color: 'black', fontWeight: 'normal' }\">{{ option }}</span>\n\t\t\t\t</ng-option>\n\t\t\t}\n\t\t} @else {\n\t\t\t@for (option of options(); track option[trackBy()]) {\n\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t<span [typography]=\"{ variant: 'body-sm', color: 'black', fontWeight: 'normal' }\">{{ option[key()] }}</span>\n\t\t\t\t</ng-option>\n\t\t\t}\n\t\t}\n\n\t\t<ng-template ng-header-tmp>\n\t\t\t<app-input\n\t\t\t\tplaceholder=\"Buscar...\"\n\t\t\t\t(onDebounceChange)=\"handleSearch($event)\"\n\t\t\t\t[variants]=\"{ variant: 'search-ghost', size: 'sm' }\"\n\t\t\t\tclass=\"text-sm\"\n\t\t\t/>\n\t\t\t<!-- TODO: loader -->\n\t\t</ng-template>\n\t</ng-select>\n\n\t<ng-content></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AAUA,MAAM,QAAQ,GAAG,GAAG,CAAC,CAAC,cAAc,EAAE,WAAW,EAAE,kBAAkB,CAAC,EAAE;AACvE,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,SAAS,EAAE,CAAC,oBAAoB,CAAC;YACjC,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,KAAK,EAAE,CAAC,gBAAgB,CAAC;YACzB,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC7B,SAAA;AACD,QAAA,KAAK,EAAE;YACN,YAAY,EAAE,CAAC,gCAAgC,CAAC;YAChD,UAAU,EAAE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EAAA,CAAA;kBAd7B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,EACZ,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,CAAC,EACrF,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAmB,iBAAA;AAC9B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;qBACD,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2qDAAA,EAAA,CAAA;;;AE5DhD;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-forms-combobox.mjs","sources":["../../../projects/sdk/components/forms/combobox/src/combobox.component.ts","../../../projects/sdk/components/forms/combobox/src/combobox.component.html","../../../projects/sdk/components/forms/combobox/sixbell-telco-sdk-components-forms-combobox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ChangeDetectionStrategy, Component, effect, input, model, output } from '@angular/core';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';\nimport { NgSelectModule } from '@ng-select/ng-select';\nimport { InputComponent } from '@sixbell-telco/sdk/components/forms/input';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst comboboxComponent = cva(['[&>*]:w-full', 'font-body', 'custom-ng-select'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['combobox-primary'],\n\t\t\tsecondary: ['combobox-secondary'],\n\t\t\tsuccess: ['combobox-success'],\n\t\t\terror: ['combobox-error'],\n\t\t\twarning: ['combobox-warning'],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['[&>*]:rounded-[0px_!important]'],\n\t\t\t'round-sm': ['[&>*]:rounded-[var(--rounded-btn-sm)_!important]'],\n\t\t\t'round-md': ['[&>*]:rounded-[var(--rounded-btn-md)_!important]'],\n\t\t\t'round-lg': ['[&>*]:rounded-[var(--rounded-btn-lg)_!important]'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['[&>*]:h-[fit-content!important]', '[&>*]:min-h-[fit-content!important]'],\n\t\t\tsm: ['[&>*]:h-[1.875rem_!important]', '[&>*]:min-h-[1.875rem_!important]'],\n\t\t\tmd: ['[&>*]:h-[2.75rem_!important]', '[&>*]:min-h-[2.75rem_!important]'],\n\t\t\tlg: ['[&>*]:h-[3rem_!important]', '[&>*]:min-h-[3rem_!important]'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tshape: 'round-sm',\n\t\theight: 'md',\n\t},\n});\n\nexport type ComboboxVariantProps = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | null | undefined;\nexport type ComboboxShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type ComboboxHeightProps = 'fit' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type ComboboxProps = {\n\tvariant?: ComboboxVariantProps;\n\tshape?: ComboboxShapeProps;\n\theight?: ComboboxHeightProps;\n};\n\n/**\n * Search input component\n * A search input component that allows the user to search for an option from a list of options\n * This component was implemented using the ng-select library\n * Docs: https://github.com/ng-select/ng-select\n */\n@Component({\n\tselector: 'app-combobox',\n\tstandalone: true,\n\timports: [NgSelectModule, FormsModule, InputComponent, TypographyDirective, ReactiveFormsModule],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: ComboboxComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './combobox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ComboboxComponent implements ControlValueAccessor {\n\t// Basi input properties\n\t// { variant: 'secondary', shape: 'round-sm', height: 'md' }\n\tvariant = input<ComboboxVariantProps>('secondary');\n\tshape = input<ComboboxShapeProps>('round-sm');\n\theight = input<ComboboxHeightProps>('md');\n\tclasses = input<string>('');\n\tname = input<string | null>(null);\n\tlabel = input<string>('');\n\n\tvalue = model();\n\toptions = input<any[]>([]);\n\temptyOptionText = input<string>('');\n\tloading = input<boolean>(false);\n\tsearch = '';\n\n\t// Options properties\n\ttrackBy = input<string>('id');\n\tkey = input<string>('name');\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\n\tget formField(): FormControl | null {\n\t\tif (!this.parentForm()) return null;\n\t\treturn this.parentForm()?.get(this.formControlName()) as FormControl;\n\t}\n\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState?(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// Select handler\n\tonChange = output<any>();\n\thandleSelect() {\n\t\tthis.onChange.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t\tthis.handleSearch('');\n\t}\n\n\t// Search handler\n\tonSearch = output<string>();\n\thandleSearch(search: string) {\n\t\tthis.onSearch.emit(search);\n\t\tthis.search = search;\n\t}\n\n\t// Blur handler\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n\n\t// Checks if options are primitives or not\n\tsimpleOption = false;\n\toptionsEffect = effect(() => {\n\t\tthis.simpleOption = this.options().every((option) => typeof option !== 'object');\n\t});\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tcomboboxComponent({\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\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget errorClass() {\n\t\treturn cn(\n\t\t\tcomboboxComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tshape: this.shape(),\n\t\t\t\theight: this.height(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget successClass() {\n\t\treturn cn(\n\t\t\tcomboboxComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tshape: this.shape(),\n\t\t\t\theight: this.height(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget validationClass() {\n\t\tif (!this.formField) return this.componentClass;\n\n\t\tif (this.formField.dirty || this.formField.touched) {\n\t\t\tif (this.formField.invalid) {\n\t\t\t\treturn this.errorClass;\n\t\t\t} else if (this.formField.valid) {\n\t\t\t\treturn this.successClass;\n\t\t\t}\n\t\t}\n\n\t\treturn this.componentClass;\n\t}\n}\n","<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\" class=\"block\"\n\t\t\t><span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span></label\n\t\t>\n\t}\n\t<ng-select\n\t\t#select\n\t\tnotFoundText=\"Ningún elemento encontrado...\"\n\t\tloadingText=\"Cargando...\"\n\t\t[searchable]=\"false\"\n\t\t[clearable]=\"false\"\n\t\t[(ngModel)]=\"value\"\n\t\t[bindLabel]=\"key()\"\n\t\t[disabled]=\"disabled()\"\n\t\t(change)=\"handleSelect()\"\n\t\t(blur)=\"handleBlur()\"\n\t\t[class]=\"validationClass\"\n\t>\n\t\t@if (emptyOptionText() && !search) {\n\t\t\t<ng-option value=\"\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{\n\t\t\t\t\temptyOptionText()\n\t\t\t\t}}</span></ng-option\n\t\t\t>\n\t\t}\n\t\t@if (simpleOption) {\n\t\t\t@for (option of options(); track option) {\n\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t</ng-option>\n\t\t\t}\n\t\t} @else {\n\t\t\t@for (option of options(); track option[trackBy()]) {\n\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ option[key()] }}</span>\n\t\t\t\t</ng-option>\n\t\t\t}\n\t\t}\n\t\t<ng-template ng-header-tmp>\n\t\t\t<app-input placeholder=\"Buscar...\" (onDebounceChange)=\"handleSearch($event)\" [variant]=\"'search-ghost'\" [size]=\"'sm'\" class=\"text-sm\" />\n\t\t\t<!-- TODO: loader -->\n\t\t</ng-template>\n\t</ng-select>\n\t<ng-content></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AASA,MAAM,iBAAiB,GAAG,GAAG,CAAC,CAAC,cAAc,EAAE,WAAW,EAAE,kBAAkB,CAAC,EAAE;AAChF,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,SAAS,EAAE,CAAC,oBAAoB,CAAC;YACjC,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,KAAK,EAAE,CAAC,gBAAgB,CAAC;YACzB,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC7B,SAAA;AACD,QAAA,KAAK,EAAE;YACN,YAAY,EAAE,CAAC,gCAAgC,CAAC;YAChD,UAAU,EAAE,CAAC,kDAAkD,CAAC;YAChE,UAAU,EAAE,CAAC,kDAAkD,CAAC;YAChE,UAAU,EAAE,CAAC,kD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cAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAWnF,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAd7B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,EACZ,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,CAAC,EACrF,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAmB,iBAAA;AAC9B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;qBACD,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,owDAAA,EAAA,CAAA;;;AEnEhD;;AAEG;;;;"}
@@ -17,10 +17,10 @@ class DatepickerFormatMonthPipe {
17
17
  // capitalize the first letter of the month
18
18
  return value.locale(language).format('MMMM').charAt(0).toUpperCase() + value.format('MMMM YYYY').slice(1);
19
19
  }
20
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: DatepickerFormatMonthPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
21
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.8", ngImport: i0, type: DatepickerFormatMonthPipe, isStandalone: true, name: "datepickerFormatMonth" });
20
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: DatepickerFormatMonthPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
21
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: DatepickerFormatMonthPipe, isStandalone: true, name: "datepickerFormatMonth" });
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: DatepickerFormatMonthPipe, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: DatepickerFormatMonthPipe, decorators: [{
24
24
  type: Pipe,
25
25
  args: [{
26
26
  name: 'datepickerFormatMonth',
@@ -181,16 +181,16 @@ class DatepickerComponent {
181
181
  this.toggleDatepicker();
182
182
  }
183
183
  }
184
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: DatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
185
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: DatepickerComponent, isStandalone: true, selector: "app-datepicker", inputs: { format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, range: { classPropertyName: "range", publicName: "range", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, disableUntil: { classPropertyName: "disableUntil", publicName: "disableUntil", isSignal: true, isRequired: false, transformFunction: null }, disableFrom: { classPropertyName: "disableFrom", publicName: "disableFrom", isSignal: true, isRequired: false, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { current: "currentChange", onDateChange: "onDateChange", disabled: "disabledChange" }, providers: [
184
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: DatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
185
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: DatepickerComponent, isStandalone: true, selector: "app-datepicker", inputs: { format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, range: { classPropertyName: "range", publicName: "range", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, disableUntil: { classPropertyName: "disableUntil", publicName: "disableUntil", isSignal: true, isRequired: false, transformFunction: null }, disableFrom: { classPropertyName: "disableFrom", publicName: "disableFrom", isSignal: true, isRequired: false, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { current: "currentChange", onDateChange: "onDateChange", disabled: "disabledChange" }, providers: [
186
186
  {
187
187
  provide: NG_VALUE_ACCESSOR,
188
188
  useExisting: DatepickerComponent,
189
189
  multi: true,
190
190
  },
191
- ], ngImport: i0, template: "<app-input (click)=\"toggleDatepicker()\" [(value)]=\"current\" [readonly]=\"true\" [label]=\"label()\" />\n<div class=\"datepicker-container\">\n\t<div [class]=\"isOpen ? 'calendar-wrapper active' : 'calendar-wrapper inactive'\">\n\t\t<div class=\"calendar-header\">\n\t\t\t<button (click)=\"changeMonth(true)\" class=\"btn-prev\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/left.svg\" /> -->\n\t\t\t\t<app-icon class=\"text-secondary-content\" [iconName]=\"'angle-left'\" [variants]=\"{ color: 'inherit' }\">></app-icon>\n\t\t\t</button>\n\t\t\t<h1>{{ monthAndYearLabel | datepickerFormatMonth: language() }}</h1>\n\t\t\t<button (click)=\"changeMonth(false)\" class=\"btn-next\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/right.svg\" /> -->\n\t\t\t\t<app-icon class=\"text-secondary-content\" [iconName]=\"'angle-right'\" [variants]=\"{ color: 'inherit' }\"></app-icon>\n\t\t\t</button>\n\t\t</div>\n\t\t<ol class=\"days\">\n\t\t\t@for (day of weekFromLanguage(); track day) {\n\t\t\t\t<li class=\"day-name\">{{ day | slice: 0 : 1 }}</li>\n\t\t\t}\n\n\t\t\t@for (day of daysOfMonth; track day.value) {\n\t\t\t\t<li\n\t\t\t\t\tclass=\"day\"\n\t\t\t\t\t(click)=\"handleSelectDay(day)\"\n\t\t\t\t\t[ngClass]=\"{ active: day.date === current(), disabled: day.disabled }\"\n\t\t\t\t\t[style.gridColumnStart]=\"$first ? day.indexWeek : 'auto'\"\n\t\t\t\t>\n\t\t\t\t\t<span>{{ day.value }}</span>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ol>\n\t</div>\n</div>\n", styles: [".datepicker-container{position:relative}.calendar-wrapper{padding:20px;border:solid 1px #eaeaea;background:#fff;box-shadow:0 4px 15px #0000001a;border-radius:15px;position:absolute;top:5px;left:0;z-index:9999;max-width:280px}.calendar-wrapper.active{display:block}.calendar-wrapper.inactive{display:none}.calendar-header{display:flex;width:100%;justify-content:space-between;align-items:center;align-content:center;padding:10px 0 0;margin-bottom:10px}.calendar-header h1{width:100%;font-style:normal;font-weight:500;font-size:15px;line-height:18px;color:#777675;text-align:center;font-family:Roboto,sans-serif}.calendar-header button{cursor:pointer;background-color:transparent;border:0;width:40px;display:flex;justify-content:center;align-items:center}.days{list-style:none;display:grid;grid-template-columns:repeat(7,34px);margin:0;padding:0;gap:0}.days .day-name{font-weight:700;margin-bottom:2px;padding:4px;text-align:center;font-style:normal;font-size:15px;color:#4dd6ed;margin-top:10px}.days .day{display:flex;justify-content:center;align-items:center;width:100%;height:34px;padding:.25rem;font-size:15px;cursor:pointer;color:#636363}.days .day:hover{font-weight:600;background:#4dd6ed;border-radius:50%;color:#fff}.days .day.disabled{color:#ccc}.days .day.active{font-weight:600;background:#4dd6ed;border-radius:50%;color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.SlicePipe, name: "slice" }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: InputComponent, selector: "app-input", inputs: ["variants", "class", "label", "type", "name", "placeholder", "icon", "readonly", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "onEnter", "onBlur", "onDebounceChange"] }, { kind: "pipe", type: DatepickerFormatMonthPipe, name: "datepickerFormatMonth" }, { kind: "component", type: IconComponent, selector: "app-icon", inputs: ["variants", "class", "iconName"] }] });
191
+ ], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<app-input (click)=\"toggleDatepicker()\" [(value)]=\"current\" [readonly]=\"true\" [label]=\"label()\" />\n<div class=\"datepicker-container\">\n\t<div [class]=\"isOpen ? 'calendar-wrapper active' : 'calendar-wrapper inactive'\">\n\t\t<div class=\"calendar-header\">\n\t\t\t<button (click)=\"changeMonth(true)\" class=\"btn-prev\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/left.svg\" /> -->\n\t\t\t\t<app-icon class=\"text-secondary-content\" [iconName]=\"'angle-left'\" color=\"inherit\">></app-icon>\n\t\t\t</button>\n\t\t\t<h1>{{ monthAndYearLabel | datepickerFormatMonth: language() }}</h1>\n\t\t\t<button (click)=\"changeMonth(false)\" class=\"btn-next\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/right.svg\" /> -->\n\t\t\t\t<app-icon class=\"text-secondary-content\" [iconName]=\"'angle-right'\" color=\"inherit\"></app-icon>\n\t\t\t</button>\n\t\t</div>\n\t\t<ol class=\"days\">\n\t\t\t@for (day of weekFromLanguage(); track day) {\n\t\t\t\t<li class=\"day-name\">{{ day | slice: 0 : 1 }}</li>\n\t\t\t}\n\n\t\t\t@for (day of daysOfMonth; track day.value) {\n\t\t\t\t<li\n\t\t\t\t\tclass=\"day\"\n\t\t\t\t\t(click)=\"handleSelectDay(day)\"\n\t\t\t\t\t[ngClass]=\"{ active: day.date === current(), disabled: day.disabled }\"\n\t\t\t\t\t[style.gridColumnStart]=\"$first ? day.indexWeek : 'auto'\"\n\t\t\t\t>\n\t\t\t\t\t<span>{{ day.value }}</span>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ol>\n\t</div>\n</div>\n", styles: [".datepicker-container{position:relative}.calendar-wrapper{padding:20px;border:solid 1px #eaeaea;background:#fff;box-shadow:0 4px 15px #0000001a;border-radius:15px;position:absolute;top:5px;left:0;z-index:9999;max-width:280px}.calendar-wrapper.active{display:block}.calendar-wrapper.inactive{display:none}.calendar-header{display:flex;width:100%;justify-content:space-between;align-items:center;align-content:center;padding:10px 0 0;margin-bottom:10px}.calendar-header h1{width:100%;font-style:normal;font-weight:500;font-size:15px;line-height:18px;color:#777675;text-align:center;font-family:Roboto,sans-serif}.calendar-header button{cursor:pointer;background-color:transparent;border:0;width:40px;display:flex;justify-content:center;align-items:center}.days{list-style:none;display:grid;grid-template-columns:repeat(7,34px);margin:0;padding:0;gap:0}.days .day-name{font-weight:700;margin-bottom:2px;padding:4px;text-align:center;font-style:normal;font-size:15px;color:#4dd6ed;margin-top:10px}.days .day{display:flex;justify-content:center;align-items:center;width:100%;height:34px;padding:.25rem;font-size:15px;cursor:pointer;color:#636363}.days .day:hover{font-weight:600;background:#4dd6ed;border-radius:50%;color:#fff}.days .day.disabled{color:#ccc}.days .day.active{font-weight:600;background:#4dd6ed;border-radius:50%;color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.SlicePipe, name: "slice" }, { kind: "ngmodule", type: FormsModule }, { 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: "pipe", type: DatepickerFormatMonthPipe, name: "datepickerFormatMonth" }, { kind: "component", type: IconComponent, selector: "app-icon", inputs: ["color", "size", "classes", "iconName"] }] });
192
192
  }
193
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: DatepickerComponent, decorators: [{
193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: DatepickerComponent, decorators: [{
194
194
  type: Component,
195
195
  args: [{ selector: 'app-datepicker', standalone: true, imports: [CommonModule, FormsModule, InputComponent, DatepickerFormatMonthPipe, IconComponent], providers: [
196
196
  {
@@ -198,7 +198,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
198
198
  useExisting: DatepickerComponent,
199
199
  multi: true,
200
200
  },
201
- ], template: "<app-input (click)=\"toggleDatepicker()\" [(value)]=\"current\" [readonly]=\"true\" [label]=\"label()\" />\n<div class=\"datepicker-container\">\n\t<div [class]=\"isOpen ? 'calendar-wrapper active' : 'calendar-wrapper inactive'\">\n\t\t<div class=\"calendar-header\">\n\t\t\t<button (click)=\"changeMonth(true)\" class=\"btn-prev\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/left.svg\" /> -->\n\t\t\t\t<app-icon class=\"text-secondary-content\" [iconName]=\"'angle-left'\" [variants]=\"{ color: 'inherit' }\">></app-icon>\n\t\t\t</button>\n\t\t\t<h1>{{ monthAndYearLabel | datepickerFormatMonth: language() }}</h1>\n\t\t\t<button (click)=\"changeMonth(false)\" class=\"btn-next\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/right.svg\" /> -->\n\t\t\t\t<app-icon class=\"text-secondary-content\" [iconName]=\"'angle-right'\" [variants]=\"{ color: 'inherit' }\"></app-icon>\n\t\t\t</button>\n\t\t</div>\n\t\t<ol class=\"days\">\n\t\t\t@for (day of weekFromLanguage(); track day) {\n\t\t\t\t<li class=\"day-name\">{{ day | slice: 0 : 1 }}</li>\n\t\t\t}\n\n\t\t\t@for (day of daysOfMonth; track day.value) {\n\t\t\t\t<li\n\t\t\t\t\tclass=\"day\"\n\t\t\t\t\t(click)=\"handleSelectDay(day)\"\n\t\t\t\t\t[ngClass]=\"{ active: day.date === current(), disabled: day.disabled }\"\n\t\t\t\t\t[style.gridColumnStart]=\"$first ? day.indexWeek : 'auto'\"\n\t\t\t\t>\n\t\t\t\t\t<span>{{ day.value }}</span>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ol>\n\t</div>\n</div>\n", styles: [".datepicker-container{position:relative}.calendar-wrapper{padding:20px;border:solid 1px #eaeaea;background:#fff;box-shadow:0 4px 15px #0000001a;border-radius:15px;position:absolute;top:5px;left:0;z-index:9999;max-width:280px}.calendar-wrapper.active{display:block}.calendar-wrapper.inactive{display:none}.calendar-header{display:flex;width:100%;justify-content:space-between;align-items:center;align-content:center;padding:10px 0 0;margin-bottom:10px}.calendar-header h1{width:100%;font-style:normal;font-weight:500;font-size:15px;line-height:18px;color:#777675;text-align:center;font-family:Roboto,sans-serif}.calendar-header button{cursor:pointer;background-color:transparent;border:0;width:40px;display:flex;justify-content:center;align-items:center}.days{list-style:none;display:grid;grid-template-columns:repeat(7,34px);margin:0;padding:0;gap:0}.days .day-name{font-weight:700;margin-bottom:2px;padding:4px;text-align:center;font-style:normal;font-size:15px;color:#4dd6ed;margin-top:10px}.days .day{display:flex;justify-content:center;align-items:center;width:100%;height:34px;padding:.25rem;font-size:15px;cursor:pointer;color:#636363}.days .day:hover{font-weight:600;background:#4dd6ed;border-radius:50%;color:#fff}.days .day.disabled{color:#ccc}.days .day.active{font-weight:600;background:#4dd6ed;border-radius:50%;color:#fff}\n"] }]
201
+ ], template: "<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<app-input (click)=\"toggleDatepicker()\" [(value)]=\"current\" [readonly]=\"true\" [label]=\"label()\" />\n<div class=\"datepicker-container\">\n\t<div [class]=\"isOpen ? 'calendar-wrapper active' : 'calendar-wrapper inactive'\">\n\t\t<div class=\"calendar-header\">\n\t\t\t<button (click)=\"changeMonth(true)\" class=\"btn-prev\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/left.svg\" /> -->\n\t\t\t\t<app-icon class=\"text-secondary-content\" [iconName]=\"'angle-left'\" color=\"inherit\">></app-icon>\n\t\t\t</button>\n\t\t\t<h1>{{ monthAndYearLabel | datepickerFormatMonth: language() }}</h1>\n\t\t\t<button (click)=\"changeMonth(false)\" class=\"btn-next\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/right.svg\" /> -->\n\t\t\t\t<app-icon class=\"text-secondary-content\" [iconName]=\"'angle-right'\" color=\"inherit\"></app-icon>\n\t\t\t</button>\n\t\t</div>\n\t\t<ol class=\"days\">\n\t\t\t@for (day of weekFromLanguage(); track day) {\n\t\t\t\t<li class=\"day-name\">{{ day | slice: 0 : 1 }}</li>\n\t\t\t}\n\n\t\t\t@for (day of daysOfMonth; track day.value) {\n\t\t\t\t<li\n\t\t\t\t\tclass=\"day\"\n\t\t\t\t\t(click)=\"handleSelectDay(day)\"\n\t\t\t\t\t[ngClass]=\"{ active: day.date === current(), disabled: day.disabled }\"\n\t\t\t\t\t[style.gridColumnStart]=\"$first ? day.indexWeek : 'auto'\"\n\t\t\t\t>\n\t\t\t\t\t<span>{{ day.value }}</span>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ol>\n\t</div>\n</div>\n", styles: [".datepicker-container{position:relative}.calendar-wrapper{padding:20px;border:solid 1px #eaeaea;background:#fff;box-shadow:0 4px 15px #0000001a;border-radius:15px;position:absolute;top:5px;left:0;z-index:9999;max-width:280px}.calendar-wrapper.active{display:block}.calendar-wrapper.inactive{display:none}.calendar-header{display:flex;width:100%;justify-content:space-between;align-items:center;align-content:center;padding:10px 0 0;margin-bottom:10px}.calendar-header h1{width:100%;font-style:normal;font-weight:500;font-size:15px;line-height:18px;color:#777675;text-align:center;font-family:Roboto,sans-serif}.calendar-header button{cursor:pointer;background-color:transparent;border:0;width:40px;display:flex;justify-content:center;align-items:center}.days{list-style:none;display:grid;grid-template-columns:repeat(7,34px);margin:0;padding:0;gap:0}.days .day-name{font-weight:700;margin-bottom:2px;padding:4px;text-align:center;font-style:normal;font-size:15px;color:#4dd6ed;margin-top:10px}.days .day{display:flex;justify-content:center;align-items:center;width:100%;height:34px;padding:.25rem;font-size:15px;cursor:pointer;color:#636363}.days .day:hover{font-weight:600;background:#4dd6ed;border-radius:50%;color:#fff}.days .day.disabled{color:#ccc}.days .day.active{font-weight:600;background:#4dd6ed;border-radius:50%;color:#fff}\n"] }]
202
202
  }], ctorParameters: () => [] });
203
203
 
204
204
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-forms-datepicker.mjs","sources":["../../../projects/sdk/components/forms/datepicker/src/datepicker-format-month.pipe.ts","../../../projects/sdk/components/forms/datepicker/src/datepicker.component.ts","../../../projects/sdk/components/forms/datepicker/src/datepicker.component.html","../../../projects/sdk/components/forms/datepicker/sixbell-telco-sdk-components-forms-datepicker.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport dayjs from 'dayjs';\nimport 'dayjs/locale/es';\nimport 'dayjs/locale/pt';\n\n@Pipe({\n\tname: 'datepickerFormatMonth',\n\tstandalone: true,\n})\nexport class DatepickerFormatMonthPipe implements PipeTransform {\n\ttransform(value: dayjs.Dayjs, language: string = 'es'): string {\n\t\t// capitalize the first letter of the month\n\t\treturn value.locale(language).format('MMMM').charAt(0).toUpperCase() + value.format('MMMM YYYY').slice(1);\n\t}\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { CommonModule } from '@angular/common';\nimport { Component, computed, effect, input, model, OnInit, output } from '@angular/core';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { InputComponent } from '@sixbell-telco/sdk/components/forms/input';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport dayjs from 'dayjs';\nimport 'dayjs/locale/es';\nimport 'dayjs/locale/pt';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\nimport isBetween from 'dayjs/plugin/isBetween';\nimport isoWeek from 'dayjs/plugin/isoWeek';\nimport { DatepickerFormatMonthPipe } from './datepicker-format-month.pipe';\n\ntype DayOfMonth = {\n\tname: string;\n\tvalue: number;\n\tindexWeek: number;\n\tdisabled: boolean;\n\tdate: string;\n};\n\n@Component({\n\tselector: 'app-datepicker',\n\ttemplateUrl: './datepicker.component.html',\n\tstyleUrls: ['./datepicker.component.scss'],\n\tstandalone: true,\n\timports: [CommonModule, FormsModule, InputComponent, DatepickerFormatMonthPipe, IconComponent],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: DatepickerComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n})\nexport class DatepickerComponent implements OnInit, ControlValueAccessor {\n\tformat = input<string>('DD/MM/YYYY');\n\tlanguage = input<string>('es');\n\n\tweekFromLanguage = computed(() => {\n\t\tif (this.language() === 'en') {\n\t\t\treturn ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];\n\t\t} else if (this.language() === 'pt') {\n\t\t\treturn ['Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb', 'Dom'];\n\t\t} else {\n\t\t\treturn ['Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb', 'Dom'];\n\t\t}\n\t});\n\n\tlabel = input<string>('');\n\trange = input<[number, dayjs.ManipulateType] | null>(null); // example: [1, 'month']\n\tminDate = input<string | null>(null);\n\tmaxDate = input<string | null>(null);\n\tdisableUntil = input<string>('');\n\tdisableFrom = input<string>('');\n\n\tcurrent = model<string>(dayjs().locale(this.language()).format(this.format()));\n\tonDateChange = output<string>();\n\n\tsynchronizedPickersEffect = effect(() => {\n\t\tif (this.minDate() || this.maxDate()) {\n\t\t\tthis.refresh();\n\t\t}\n\t});\n\n\tdaysOfMonth: DayOfMonth[] = [];\n\tmonthAndYearLabel: dayjs.Dayjs = dayjs().locale(this.language());\n\tisOpen: boolean = false;\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\n\tget formField(): FormControl | null {\n\t\tif (!this.parentForm()) return null;\n\t\treturn this.parentForm()?.get(this.formControlName()) as FormControl;\n\t}\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: string): void {\n\t\tthis.current.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\tconstructor() {\n\t\tdayjs.extend(isoWeek);\n\t\tdayjs.extend(customParseFormat);\n\t\tdayjs.extend(isBetween);\n\t}\n\n\tngOnInit(): void {\n\t\tif (this.current()) {\n\t\t\tthis.getDaysFromDate(\n\t\t\t\tdayjs(this.current(), this.format()).locale(this.language()).month() + 1,\n\t\t\t\tdayjs(this.current(), this.format()).locale(this.language()).year(),\n\t\t\t);\n\t\t} else {\n\t\t\tconst d = new Date();\n\t\t\tthis.getDaysFromDate(d.getMonth() + 1, d.getFullYear());\n\t\t}\n\t}\n\n\ttoggleDatepicker() {\n\t\tif (this.range()) {\n\t\t\tthis.refresh();\n\t\t}\n\t\tthis.isOpen = !this.isOpen;\n\t\tthis.onControlTouch();\n\t}\n\n\tprivate getDaysFromDate(month: string | number, year: string | number) {\n\t\tconst startDate = dayjs(`${year}/${month}/01`).locale(this.language());\n\t\tconst endDate = startDate.clone().endOf('month');\n\t\tthis.monthAndYearLabel = startDate;\n\n\t\tconst diffDays = endDate.diff(startDate, 'days', true);\n\t\tconst numberDays = Math.round(diffDays);\n\n\t\tconst days: DayOfMonth[] = Object.keys([...Array(numberDays)]).map((a: string) => {\n\t\t\tconst d = parseInt(a) + 1;\n\t\t\tconst day = dayjs(`${year}-${month}-${d}`).locale(this.language());\n\n\t\t\tconst range = this.range();\n\t\t\tconst dateRange = this.minDate() ?? this.maxDate() ?? '';\n\n\t\t\treturn {\n\t\t\t\tname: day.format('dddd'),\n\t\t\t\tvalue: d, // Change the value to a number\n\t\t\t\tindexWeek: day.isoWeekday(),\n\t\t\t\tdisabled: range ? this.shouldDisableDayByRange(day, dateRange, range[0], range[1]) : this.shouldDisableDay(day),\n\t\t\t\tdate: day.format(this.format()),\n\t\t\t};\n\t\t});\n\n\t\tthis.daysOfMonth = days;\n\t}\n\n\tprivate shouldDisableDayByRange(day: dayjs.Dayjs, from: string, quantity: number, unit: dayjs.ManipulateType) {\n\t\tif (!from) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this.maxDate()) {\n\t\t\t// If maxDate is true, disables all dates AFTER 'from' date\n\t\t\treturn !day.isBetween(\n\t\t\t\tdayjs(from, this.format()).locale(this.language()).subtract(quantity, unit),\n\t\t\t\tdayjs(from, this.format()).locale(this.language()),\n\t\t\t\tnull,\n\t\t\t\t'[]',\n\t\t\t);\n\t\t}\n\n\t\tif (this.minDate()) {\n\t\t\t// If minDate is true, disables all dates BEFORE 'from' date\n\t\t\treturn !day.isBetween(\n\t\t\t\tdayjs(from, this.format()).locale(this.language()),\n\t\t\t\tdayjs(from, this.format()).locale(this.language()).add(quantity, unit),\n\t\t\t\tnull,\n\t\t\t\t'[]',\n\t\t\t);\n\t\t}\n\n\t\t// Disables all dates BEFORE and AFTER 'from' date\n\t\treturn !day.isBetween(\n\t\t\tdayjs(from, this.format()).locale(this.language()).subtract(quantity, unit),\n\t\t\tdayjs(from, this.format()).locale(this.language()).add(quantity, unit),\n\t\t\tnull,\n\t\t\t'[]',\n\t\t);\n\t}\n\n\tprivate shouldDisableDay(day: dayjs.Dayjs) {\n\t\tif (this.disableUntil() && this.disableFrom()) {\n\t\t\treturn !day.isBetween(\n\t\t\t\tdayjs(this.disableUntil(), this.format()).locale(this.language()).subtract(1, 'day'),\n\t\t\t\tdayjs(this.disableFrom(), this.format()).locale(this.language()).add(1, 'day'),\n\t\t\t);\n\t\t}\n\n\t\tif (this.disableUntil() && !this.disableFrom()) {\n\t\t\treturn day.isBefore(dayjs(this.disableUntil(), this.format()).locale(this.language()));\n\t\t}\n\n\t\tif (this.disableFrom() && !this.disableUntil()) {\n\t\t\treturn day.isAfter(dayjs(this.disableFrom(), this.format()).locale(this.language()));\n\t\t}\n\n\t\treturn false;\n\t}\n\n\tprivate refresh() {\n\t\t// Used to force a refresh on the calendar\n\t\tthis.changeMonth(true);\n\t\tthis.changeMonth(false);\n\t}\n\n\tchangeMonth(flag: boolean) {\n\t\tif (flag) {\n\t\t\tconst prevDate = this.monthAndYearLabel.clone().subtract(1, 'month');\n\t\t\tthis.getDaysFromDate(prevDate.format('MM'), prevDate.format('YYYY'));\n\t\t} else {\n\t\t\tconst nextDate = this.monthAndYearLabel.clone().add(1, 'month');\n\t\t\tthis.getDaysFromDate(nextDate.format('MM'), nextDate.format('YYYY'));\n\t\t}\n\t}\n\n\thandleSelectDay(day: DayOfMonth) {\n\t\tif (day.disabled) return;\n\n\t\tconst monthYear = this.monthAndYearLabel.format('YYYY-MM');\n\t\tconst parsedDay = `${monthYear}-${day.value}`;\n\t\tconst date = dayjs(parsedDay).locale(this.language()).format(this.format());\n\t\tthis.current.set(date);\n\t\tthis.onDateChange.emit(date);\n\t\tthis.onControlChange(date);\n\n\t\tif (!this.range()) {\n\t\t\tthis.toggleDatepicker();\n\t\t}\n\t}\n}\n","<app-input (click)=\"toggleDatepicker()\" [(value)]=\"current\" [readonly]=\"true\" [label]=\"label()\" />\n<div class=\"datepicker-container\">\n\t<div [class]=\"isOpen ? 'calendar-wrapper active' : 'calendar-wrapper inactive'\">\n\t\t<div class=\"calendar-header\">\n\t\t\t<button (click)=\"changeMonth(true)\" class=\"btn-prev\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/left.svg\" /> -->\n\t\t\t\t<app-icon class=\"text-secondary-content\" [iconName]=\"'angle-left'\" [variants]=\"{ color: 'inherit' }\">></app-icon>\n\t\t\t</button>\n\t\t\t<h1>{{ monthAndYearLabel | datepickerFormatMonth: language() }}</h1>\n\t\t\t<button (click)=\"changeMonth(false)\" class=\"btn-next\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/right.svg\" /> -->\n\t\t\t\t<app-icon class=\"text-secondary-content\" [iconName]=\"'angle-right'\" [variants]=\"{ color: 'inherit' }\"></app-icon>\n\t\t\t</button>\n\t\t</div>\n\t\t<ol class=\"days\">\n\t\t\t@for (day of weekFromLanguage(); track day) {\n\t\t\t\t<li class=\"day-name\">{{ day | slice: 0 : 1 }}</li>\n\t\t\t}\n\n\t\t\t@for (day of daysOfMonth; track day.value) {\n\t\t\t\t<li\n\t\t\t\t\tclass=\"day\"\n\t\t\t\t\t(click)=\"handleSelectDay(day)\"\n\t\t\t\t\t[ngClass]=\"{ active: day.date === current(), disabled: day.disabled }\"\n\t\t\t\t\t[style.gridColumnStart]=\"$first ? day.indexWeek : 'auto'\"\n\t\t\t\t>\n\t\t\t\t\t<span>{{ day.value }}</span>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ol>\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MASa,yBAAyB,CAAA;AACrC,IAAA,SAAS,CAAC,KAAkB,EAAE,QAAA,GAAmB,IAAI,EAAA;;AAEpD,QAAA,OAAO,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC1G;uGAJW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;qGAAzB,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,uBAAA,EAAA,CAAA,CAAA;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACL,oBAAA,IAAI,EAAE,uBAAuB;AAC7B,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;ACRD;MAoCa,mBAAmB,CAAA;AAC/B,IAAA,MAAM,GAAG,KAAK,CAAS,YAAY,CAAC,CAAC;AACrC,IAAA,QAAQ,GAAG,KAAK,CAAS,IAAI,CAAC,CAAC;AAE/B,IAAA,gBAAgB,GAAG,QAAQ,CAAC,MAAK;AAChC,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;AAC7B,YAAA,OAAO,CAAC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icker.mjs","sources":["../../../projects/sdk/components/forms/datepicker/src/datepicker-format-month.pipe.ts","../../../projects/sdk/components/forms/datepicker/src/datepicker.component.ts","../../../projects/sdk/components/forms/datepicker/src/datepicker.component.html","../../../projects/sdk/components/forms/datepicker/sixbell-telco-sdk-components-forms-datepicker.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport dayjs from 'dayjs';\nimport 'dayjs/locale/es';\nimport 'dayjs/locale/pt';\n\n@Pipe({\n\tname: 'datepickerFormatMonth',\n\tstandalone: true,\n})\nexport class DatepickerFormatMonthPipe implements PipeTransform {\n\ttransform(value: dayjs.Dayjs, language: string = 'es'): string {\n\t\t// capitalize the first letter of the month\n\t\treturn value.locale(language).format('MMMM').charAt(0).toUpperCase() + value.format('MMMM YYYY').slice(1);\n\t}\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { CommonModule } from '@angular/common';\nimport { Component, computed, effect, input, model, OnInit, output } from '@angular/core';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { InputComponent } from '@sixbell-telco/sdk/components/forms/input';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport dayjs from 'dayjs';\nimport 'dayjs/locale/es';\nimport 'dayjs/locale/pt';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\nimport isBetween from 'dayjs/plugin/isBetween';\nimport isoWeek from 'dayjs/plugin/isoWeek';\nimport { DatepickerFormatMonthPipe } from './datepicker-format-month.pipe';\n\ntype DayOfMonth = {\n\tname: string;\n\tvalue: number;\n\tindexWeek: number;\n\tdisabled: boolean;\n\tdate: string;\n};\n\n@Component({\n\tselector: 'app-datepicker',\n\ttemplateUrl: './datepicker.component.html',\n\tstyleUrls: ['./datepicker.component.scss'],\n\tstandalone: true,\n\timports: [CommonModule, FormsModule, InputComponent, DatepickerFormatMonthPipe, IconComponent],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: DatepickerComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n})\nexport class DatepickerComponent implements OnInit, ControlValueAccessor {\n\tformat = input<string>('DD/MM/YYYY');\n\tlanguage = input<string>('es');\n\n\tweekFromLanguage = computed(() => {\n\t\tif (this.language() === 'en') {\n\t\t\treturn ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];\n\t\t} else if (this.language() === 'pt') {\n\t\t\treturn ['Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb', 'Dom'];\n\t\t} else {\n\t\t\treturn ['Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb', 'Dom'];\n\t\t}\n\t});\n\n\tlabel = input<string>('');\n\trange = input<[number, dayjs.ManipulateType] | null>(null); // example: [1, 'month']\n\tminDate = input<string | null>(null);\n\tmaxDate = input<string | null>(null);\n\tdisableUntil = input<string>('');\n\tdisableFrom = input<string>('');\n\n\tcurrent = model<string>(dayjs().locale(this.language()).format(this.format()));\n\tonDateChange = output<string>();\n\n\tsynchronizedPickersEffect = effect(() => {\n\t\tif (this.minDate() || this.maxDate()) {\n\t\t\tthis.refresh();\n\t\t}\n\t});\n\n\tdaysOfMonth: DayOfMonth[] = [];\n\tmonthAndYearLabel: dayjs.Dayjs = dayjs().locale(this.language());\n\tisOpen: boolean = false;\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\n\tget formField(): FormControl | null {\n\t\tif (!this.parentForm()) return null;\n\t\treturn this.parentForm()?.get(this.formControlName()) as FormControl;\n\t}\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: string): void {\n\t\tthis.current.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\tconstructor() {\n\t\tdayjs.extend(isoWeek);\n\t\tdayjs.extend(customParseFormat);\n\t\tdayjs.extend(isBetween);\n\t}\n\n\tngOnInit(): void {\n\t\tif (this.current()) {\n\t\t\tthis.getDaysFromDate(\n\t\t\t\tdayjs(this.current(), this.format()).locale(this.language()).month() + 1,\n\t\t\t\tdayjs(this.current(), this.format()).locale(this.language()).year(),\n\t\t\t);\n\t\t} else {\n\t\t\tconst d = new Date();\n\t\t\tthis.getDaysFromDate(d.getMonth() + 1, d.getFullYear());\n\t\t}\n\t}\n\n\ttoggleDatepicker() {\n\t\tif (this.range()) {\n\t\t\tthis.refresh();\n\t\t}\n\t\tthis.isOpen = !this.isOpen;\n\t\tthis.onControlTouch();\n\t}\n\n\tprivate getDaysFromDate(month: string | number, year: string | number) {\n\t\tconst startDate = dayjs(`${year}/${month}/01`).locale(this.language());\n\t\tconst endDate = startDate.clone().endOf('month');\n\t\tthis.monthAndYearLabel = startDate;\n\n\t\tconst diffDays = endDate.diff(startDate, 'days', true);\n\t\tconst numberDays = Math.round(diffDays);\n\n\t\tconst days: DayOfMonth[] = Object.keys([...Array(numberDays)]).map((a: string) => {\n\t\t\tconst d = parseInt(a) + 1;\n\t\t\tconst day = dayjs(`${year}-${month}-${d}`).locale(this.language());\n\n\t\t\tconst range = this.range();\n\t\t\tconst dateRange = this.minDate() ?? this.maxDate() ?? '';\n\n\t\t\treturn {\n\t\t\t\tname: day.format('dddd'),\n\t\t\t\tvalue: d, // Change the value to a number\n\t\t\t\tindexWeek: day.isoWeekday(),\n\t\t\t\tdisabled: range ? this.shouldDisableDayByRange(day, dateRange, range[0], range[1]) : this.shouldDisableDay(day),\n\t\t\t\tdate: day.format(this.format()),\n\t\t\t};\n\t\t});\n\n\t\tthis.daysOfMonth = days;\n\t}\n\n\tprivate shouldDisableDayByRange(day: dayjs.Dayjs, from: string, quantity: number, unit: dayjs.ManipulateType) {\n\t\tif (!from) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this.maxDate()) {\n\t\t\t// If maxDate is true, disables all dates AFTER 'from' date\n\t\t\treturn !day.isBetween(\n\t\t\t\tdayjs(from, this.format()).locale(this.language()).subtract(quantity, unit),\n\t\t\t\tdayjs(from, this.format()).locale(this.language()),\n\t\t\t\tnull,\n\t\t\t\t'[]',\n\t\t\t);\n\t\t}\n\n\t\tif (this.minDate()) {\n\t\t\t// If minDate is true, disables all dates BEFORE 'from' date\n\t\t\treturn !day.isBetween(\n\t\t\t\tdayjs(from, this.format()).locale(this.language()),\n\t\t\t\tdayjs(from, this.format()).locale(this.language()).add(quantity, unit),\n\t\t\t\tnull,\n\t\t\t\t'[]',\n\t\t\t);\n\t\t}\n\n\t\t// Disables all dates BEFORE and AFTER 'from' date\n\t\treturn !day.isBetween(\n\t\t\tdayjs(from, this.format()).locale(this.language()).subtract(quantity, unit),\n\t\t\tdayjs(from, this.format()).locale(this.language()).add(quantity, unit),\n\t\t\tnull,\n\t\t\t'[]',\n\t\t);\n\t}\n\n\tprivate shouldDisableDay(day: dayjs.Dayjs) {\n\t\tif (this.disableUntil() && this.disableFrom()) {\n\t\t\treturn !day.isBetween(\n\t\t\t\tdayjs(this.disableUntil(), this.format()).locale(this.language()).subtract(1, 'day'),\n\t\t\t\tdayjs(this.disableFrom(), this.format()).locale(this.language()).add(1, 'day'),\n\t\t\t);\n\t\t}\n\n\t\tif (this.disableUntil() && !this.disableFrom()) {\n\t\t\treturn day.isBefore(dayjs(this.disableUntil(), this.format()).locale(this.language()));\n\t\t}\n\n\t\tif (this.disableFrom() && !this.disableUntil()) {\n\t\t\treturn day.isAfter(dayjs(this.disableFrom(), this.format()).locale(this.language()));\n\t\t}\n\n\t\treturn false;\n\t}\n\n\tprivate refresh() {\n\t\t// Used to force a refresh on the calendar\n\t\tthis.changeMonth(true);\n\t\tthis.changeMonth(false);\n\t}\n\n\tchangeMonth(flag: boolean) {\n\t\tif (flag) {\n\t\t\tconst prevDate = this.monthAndYearLabel.clone().subtract(1, 'month');\n\t\t\tthis.getDaysFromDate(prevDate.format('MM'), prevDate.format('YYYY'));\n\t\t} else {\n\t\t\tconst nextDate = this.monthAndYearLabel.clone().add(1, 'month');\n\t\t\tthis.getDaysFromDate(nextDate.format('MM'), nextDate.format('YYYY'));\n\t\t}\n\t}\n\n\thandleSelectDay(day: DayOfMonth) {\n\t\tif (day.disabled) return;\n\n\t\tconst monthYear = this.monthAndYearLabel.format('YYYY-MM');\n\t\tconst parsedDay = `${monthYear}-${day.value}`;\n\t\tconst date = dayjs(parsedDay).locale(this.language()).format(this.format());\n\t\tthis.current.set(date);\n\t\tthis.onDateChange.emit(date);\n\t\tthis.onControlChange(date);\n\n\t\tif (!this.range()) {\n\t\t\tthis.toggleDatepicker();\n\t\t}\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<app-input (click)=\"toggleDatepicker()\" [(value)]=\"current\" [readonly]=\"true\" [label]=\"label()\" />\n<div class=\"datepicker-container\">\n\t<div [class]=\"isOpen ? 'calendar-wrapper active' : 'calendar-wrapper inactive'\">\n\t\t<div class=\"calendar-header\">\n\t\t\t<button (click)=\"changeMonth(true)\" class=\"btn-prev\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/left.svg\" /> -->\n\t\t\t\t<app-icon class=\"text-secondary-content\" [iconName]=\"'angle-left'\" color=\"inherit\">></app-icon>\n\t\t\t</button>\n\t\t\t<h1>{{ monthAndYearLabel | datepickerFormatMonth: language() }}</h1>\n\t\t\t<button (click)=\"changeMonth(false)\" class=\"btn-next\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/right.svg\" /> -->\n\t\t\t\t<app-icon class=\"text-secondary-content\" [iconName]=\"'angle-right'\" color=\"inherit\"></app-icon>\n\t\t\t</button>\n\t\t</div>\n\t\t<ol class=\"days\">\n\t\t\t@for (day of weekFromLanguage(); track day) {\n\t\t\t\t<li class=\"day-name\">{{ day | slice: 0 : 1 }}</li>\n\t\t\t}\n\n\t\t\t@for (day of daysOfMonth; track day.value) {\n\t\t\t\t<li\n\t\t\t\t\tclass=\"day\"\n\t\t\t\t\t(click)=\"handleSelectDay(day)\"\n\t\t\t\t\t[ngClass]=\"{ active: day.date === current(), disabled: day.disabled }\"\n\t\t\t\t\t[style.gridColumnStart]=\"$first ? day.indexWeek : 'auto'\"\n\t\t\t\t>\n\t\t\t\t\t<span>{{ day.value }}</span>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ol>\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MASa,yBAAyB,CAAA;AACrC,IAAA,SAAS,CAAC,KAAkB,EAAE,QAAA,GAAmB,IAAI,EAAA;;AAEpD,QAAA,OAAO,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC1G;wGAJW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;sGAAzB,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,uBAAA,EAAA,CAAA,CAAA;;4FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACL,oBAAA,IAAI,EAAE,uBAAuB;AAC7B,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;ACRD;MAoCa,mBAAmB,CAAA;AAC/B,IAAA,MAAM,GAAG,KAAK,CAAS,YAAY,CA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,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAqB,mBAAA;AAChC,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,yiDAAA,EAAA,MAAA,EAAA,CAAA,2zCAAA,CAAA,EAAA,CAAA;;;AElCF;;AAEG;;;;"}
@@ -23,12 +23,12 @@ class FormErrorsComponent {
23
23
  }
24
24
  return null;
25
25
  });
26
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: FormErrorsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
27
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: FormErrorsComponent, isStandalone: true, selector: "app-form-errors", inputs: { parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: true, transformFunction: null }, formField: { classPropertyName: "formField", publicName: "formField", isSignal: true, isRequired: true, transformFunction: null }, isRequired: { classPropertyName: "isRequired", publicName: "isRequired", isSignal: true, isRequired: false, transformFunction: null }, isMinLength: { classPropertyName: "isMinLength", publicName: "isMinLength", isSignal: true, isRequired: false, transformFunction: null }, isMaxLength: { classPropertyName: "isMaxLength", publicName: "isMaxLength", isSignal: true, isRequired: false, transformFunction: null }, isMin: { classPropertyName: "isMin", publicName: "isMin", isSignal: true, isRequired: false, transformFunction: null }, isMax: { classPropertyName: "isMax", publicName: "isMax", isSignal: true, isRequired: false, transformFunction: null }, isPattern: { classPropertyName: "isPattern", publicName: "isPattern", isSignal: true, isRequired: false, transformFunction: null }, isEmail: { classPropertyName: "isEmail", publicName: "isEmail", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n\t[typography]=\"{ variant: 'body-xs', color: 'inherit', fontWeight: 'normal' }\"\n\t[class]=\"\n\t\t!(formControl()?.errors && (formControl().dirty || formControl().touched))\n\t\t\t? 'invisible flex select-none items-center justify-start px-1 text-error opacity-0 transition-opacity duration-300 ease-ease-out-back'\n\t\t\t: 'visible flex select-none items-center justify-start px-1 text-error opacity-100 transition-opacity duration-300 ease-ease-out-back'\n\t\"\n>\n\t<span class=\"label-text-alt\" [typography]=\"{ variant: 'body-xs', color: 'inherit', fontWeight: 'normal' }\">\n\t\t@if (formControl()?.errors && (formControl().dirty || formControl().touched)) {\n\t\t\t@if (formControl().getError('required')) {\n\t\t\t\t{{ isRequired() ?? '* Este campo es requerido' }}\n\t\t\t} @else if (formControl().getError('minlength')) {\n\t\t\t\t{{ isMinLength() ?? '* Este campo debe tener al menos ' + formControl().getError('minlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('maxlength')) {\n\t\t\t\t{{ isMaxLength() ?? '* Este campo no debe superar los ' + formControl().getError('maxlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('min')) {\n\t\t\t\t{{ isMin() ?? '* El n\u00FAmero ingresado debe ser mayor o igual a ' + formControl().getError('min').min }}\n\t\t\t} @else if (formControl().getError('max')) {\n\t\t\t\t{{ isMax() ?? '* El n\u00FAmero ingresado debe ser menor o igual a ' + formControl().getError('max').max }}\n\t\t\t} @else if (formControl().getError('pattern')) {\n\t\t\t\t{{ isPattern() ?? '* El campo no cumple con el formato requerido' }}\n\t\t\t} @else if (formControl().getError('email')) {\n\t\t\t\t{{ isEmail() ?? '* El email ingresado no es v\u00E1lido' }}\n\t\t\t} @else if (customError()) {\n\t\t\t\t{{ customError() }}\n\t\t\t}\n\t\t} @else {\n\t\t\t''\n\t\t}\n\t</span>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typography", "class"] }] });
26
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormErrorsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
27
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: FormErrorsComponent, isStandalone: true, selector: "app-form-errors", inputs: { parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: true, transformFunction: null }, formField: { classPropertyName: "formField", publicName: "formField", isSignal: true, isRequired: true, transformFunction: null }, isRequired: { classPropertyName: "isRequired", publicName: "isRequired", isSignal: true, isRequired: false, transformFunction: null }, isMinLength: { classPropertyName: "isMinLength", publicName: "isMinLength", isSignal: true, isRequired: false, transformFunction: null }, isMaxLength: { classPropertyName: "isMaxLength", publicName: "isMaxLength", isSignal: true, isRequired: false, transformFunction: null }, isMin: { classPropertyName: "isMin", publicName: "isMin", isSignal: true, isRequired: false, transformFunction: null }, isMax: { classPropertyName: "isMax", publicName: "isMax", isSignal: true, isRequired: false, transformFunction: null }, isPattern: { classPropertyName: "isPattern", publicName: "isPattern", isSignal: true, isRequired: false, transformFunction: null }, isEmail: { classPropertyName: "isEmail", publicName: "isEmail", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n\t[class]=\"\n\t\t!(formControl()?.errors && (formControl().dirty || formControl().touched))\n\t\t\t? 'invisible flex select-none items-center justify-start px-1 text-error opacity-0 transition-opacity duration-300 ease-ease-out-back'\n\t\t\t: 'visible flex select-none items-center justify-start px-1 text-error opacity-100 transition-opacity duration-300 ease-ease-out-back'\n\t\"\n>\n\t<span classes=\"label-text-alt\" typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t@if (formControl()?.errors && (formControl().dirty || formControl().touched)) {\n\t\t\t@if (formControl().getError('required')) {\n\t\t\t\t{{ isRequired() ?? '* Este campo es requerido' }}\n\t\t\t} @else if (formControl().getError('minlength')) {\n\t\t\t\t{{ isMinLength() ?? '* Este campo debe tener al menos ' + formControl().getError('minlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('maxlength')) {\n\t\t\t\t{{ isMaxLength() ?? '* Este campo no debe superar los ' + formControl().getError('maxlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('min')) {\n\t\t\t\t{{ isMin() ?? '* El n\u00FAmero ingresado debe ser mayor o igual a ' + formControl().getError('min').min }}\n\t\t\t} @else if (formControl().getError('max')) {\n\t\t\t\t{{ isMax() ?? '* El n\u00FAmero ingresado debe ser menor o igual a ' + formControl().getError('max').max }}\n\t\t\t} @else if (formControl().getError('pattern')) {\n\t\t\t\t{{ isPattern() ?? '* El campo no cumple con el formato requerido' }}\n\t\t\t} @else if (formControl().getError('email')) {\n\t\t\t\t{{ isEmail() ?? '* El email ingresado no es v\u00E1lido' }}\n\t\t\t} @else if (customError()) {\n\t\t\t\t{{ customError() }}\n\t\t\t}\n\t\t} @else {\n\t\t\t''\n\t\t}\n\t</span>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }] });
28
28
  }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: FormErrorsComponent, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormErrorsComponent, decorators: [{
30
30
  type: Component,
31
- args: [{ selector: 'app-form-errors', standalone: true, imports: [TypographyDirective], template: "<div\n\t[typography]=\"{ variant: 'body-xs', color: 'inherit', fontWeight: 'normal' }\"\n\t[class]=\"\n\t\t!(formControl()?.errors && (formControl().dirty || formControl().touched))\n\t\t\t? 'invisible flex select-none items-center justify-start px-1 text-error opacity-0 transition-opacity duration-300 ease-ease-out-back'\n\t\t\t: 'visible flex select-none items-center justify-start px-1 text-error opacity-100 transition-opacity duration-300 ease-ease-out-back'\n\t\"\n>\n\t<span class=\"label-text-alt\" [typography]=\"{ variant: 'body-xs', color: 'inherit', fontWeight: 'normal' }\">\n\t\t@if (formControl()?.errors && (formControl().dirty || formControl().touched)) {\n\t\t\t@if (formControl().getError('required')) {\n\t\t\t\t{{ isRequired() ?? '* Este campo es requerido' }}\n\t\t\t} @else if (formControl().getError('minlength')) {\n\t\t\t\t{{ isMinLength() ?? '* Este campo debe tener al menos ' + formControl().getError('minlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('maxlength')) {\n\t\t\t\t{{ isMaxLength() ?? '* Este campo no debe superar los ' + formControl().getError('maxlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('min')) {\n\t\t\t\t{{ isMin() ?? '* El n\u00FAmero ingresado debe ser mayor o igual a ' + formControl().getError('min').min }}\n\t\t\t} @else if (formControl().getError('max')) {\n\t\t\t\t{{ isMax() ?? '* El n\u00FAmero ingresado debe ser menor o igual a ' + formControl().getError('max').max }}\n\t\t\t} @else if (formControl().getError('pattern')) {\n\t\t\t\t{{ isPattern() ?? '* El campo no cumple con el formato requerido' }}\n\t\t\t} @else if (formControl().getError('email')) {\n\t\t\t\t{{ isEmail() ?? '* El email ingresado no es v\u00E1lido' }}\n\t\t\t} @else if (customError()) {\n\t\t\t\t{{ customError() }}\n\t\t\t}\n\t\t} @else {\n\t\t\t''\n\t\t}\n\t</span>\n</div>\n" }]
31
+ args: [{ selector: 'app-form-errors', standalone: true, imports: [TypographyDirective], template: "<div\n\t[class]=\"\n\t\t!(formControl()?.errors && (formControl().dirty || formControl().touched))\n\t\t\t? 'invisible flex select-none items-center justify-start px-1 text-error opacity-0 transition-opacity duration-300 ease-ease-out-back'\n\t\t\t: 'visible flex select-none items-center justify-start px-1 text-error opacity-100 transition-opacity duration-300 ease-ease-out-back'\n\t\"\n>\n\t<span classes=\"label-text-alt\" typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t@if (formControl()?.errors && (formControl().dirty || formControl().touched)) {\n\t\t\t@if (formControl().getError('required')) {\n\t\t\t\t{{ isRequired() ?? '* Este campo es requerido' }}\n\t\t\t} @else if (formControl().getError('minlength')) {\n\t\t\t\t{{ isMinLength() ?? '* Este campo debe tener al menos ' + formControl().getError('minlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('maxlength')) {\n\t\t\t\t{{ isMaxLength() ?? '* Este campo no debe superar los ' + formControl().getError('maxlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('min')) {\n\t\t\t\t{{ isMin() ?? '* El n\u00FAmero ingresado debe ser mayor o igual a ' + formControl().getError('min').min }}\n\t\t\t} @else if (formControl().getError('max')) {\n\t\t\t\t{{ isMax() ?? '* El n\u00FAmero ingresado debe ser menor o igual a ' + formControl().getError('max').max }}\n\t\t\t} @else if (formControl().getError('pattern')) {\n\t\t\t\t{{ isPattern() ?? '* El campo no cumple con el formato requerido' }}\n\t\t\t} @else if (formControl().getError('email')) {\n\t\t\t\t{{ isEmail() ?? '* El email ingresado no es v\u00E1lido' }}\n\t\t\t} @else if (customError()) {\n\t\t\t\t{{ customError() }}\n\t\t\t}\n\t\t} @else {\n\t\t\t''\n\t\t}\n\t</span>\n</div>\n" }]
32
32
  }] });
33
33
 
34
34
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-forms-form-error.mjs","sources":["../../../projects/sdk/components/forms/form-error/src/form-error.component.ts","../../../projects/sdk/components/forms/form-error/src/form-error.component.html","../../../projects/sdk/components/forms/form-error/sixbell-telco-sdk-components-forms-form-error.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\nimport { FormControl, FormGroup } from '@angular/forms';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n@Component({\n\tselector: 'app-form-errors',\n\tstandalone: true,\n\timports: [TypographyDirective],\n\ttemplateUrl: './form-error.component.html',\n})\nexport class FormErrorsComponent {\n\t// Main properties\n\tparentForm = input.required<FormGroup>();\n\tformField = input.required<string>();\n\n\t// Custom messages\n\tisRequired = input<string | undefined>(undefined);\n\tisMinLength = input<string | undefined>(undefined);\n\tisMaxLength = input<string | undefined>(undefined);\n\tisMin = input<string | undefined>(undefined);\n\tisMax = input<string | undefined>(undefined);\n\tisPattern = input<string | undefined>(undefined);\n\tisEmail = input<string | undefined>(undefined);\n\n\tformControl = computed(() => this.parentForm().get(this.formField()) as FormControl);\n\tcustomError = computed(() => {\n\t\tconst errors = this.formControl()?.errors;\n\t\tconst keys = Object.keys(errors || {});\n\n\t\tif (keys.length > 0) {\n\t\t\treturn this.formControl().getError(keys[0]);\n\t\t}\n\n\t\treturn null;\n\t});\n}\n","<div\n\t[typography]=\"{ variant: 'body-xs', color: 'inherit', fontWeight: 'normal' }\"\n\t[class]=\"\n\t\t!(formControl()?.errors && (formControl().dirty || formControl().touched))\n\t\t\t? 'invisible flex select-none items-center justify-start px-1 text-error opacity-0 transition-opacity duration-300 ease-ease-out-back'\n\t\t\t: 'visible flex select-none items-center justify-start px-1 text-error opacity-100 transition-opacity duration-300 ease-ease-out-back'\n\t\"\n>\n\t<span class=\"label-text-alt\" [typography]=\"{ variant: 'body-xs', color: 'inherit', fontWeight: 'normal' }\">\n\t\t@if (formControl()?.errors && (formControl().dirty || formControl().touched)) {\n\t\t\t@if (formControl().getError('required')) {\n\t\t\t\t{{ isRequired() ?? '* Este campo es requerido' }}\n\t\t\t} @else if (formControl().getError('minlength')) {\n\t\t\t\t{{ isMinLength() ?? '* Este campo debe tener al menos ' + formControl().getError('minlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('maxlength')) {\n\t\t\t\t{{ isMaxLength() ?? '* Este campo no debe superar los ' + formControl().getError('maxlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('min')) {\n\t\t\t\t{{ isMin() ?? '* El número ingresado debe ser mayor o igual a ' + formControl().getError('min').min }}\n\t\t\t} @else if (formControl().getError('max')) {\n\t\t\t\t{{ isMax() ?? '* El número ingresado debe ser menor o igual a ' + formControl().getError('max').max }}\n\t\t\t} @else if (formControl().getError('pattern')) {\n\t\t\t\t{{ isPattern() ?? '* El campo no cumple con el formato requerido' }}\n\t\t\t} @else if (formControl().getError('email')) {\n\t\t\t\t{{ isEmail() ?? '* El email ingresado no es válido' }}\n\t\t\t} @else if (customError()) {\n\t\t\t\t{{ customError() }}\n\t\t\t}\n\t\t} @else {\n\t\t\t''\n\t\t}\n\t</span>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAUa,mBAAmB,CAAA;;AAE/B,IAAA,UAAU,GAAG,KAAK,CAAC,QAAQ,EAAa,CAAC;AACzC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;;AAGrC,IAAA,UAAU,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAClD,IAAA,WAAW,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AACnD,IAAA,WAAW,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AACnD,IAAA,KAAK,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAC7C,IAAA,KAAK,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAC7C,IAAA,SAAS,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AACjD,IAAA,OAAO,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAE/C,IAAA,WAAW,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,CAAgB,CAAC,CAAC;AACrF,IAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;QAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,EAAE,EAAE,MAAM,CAAC;QAC1C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;AAEvC,QAAA,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;AACpB,YAAA,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;SAC5C;AAED,QAAA,OAAO,IAAI,CAAC;AACb,KAAC,CAAC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SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECVhC,y2DAgCA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDzBW,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAGjB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EACf,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,mBAAmB,CAAC,EAAA,QAAA,EAAA,y2DAAA,EAAA,CAAA;;;AEP/B;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-forms-form-error.mjs","sources":["../../../projects/sdk/components/forms/form-error/src/form-error.component.ts","../../../projects/sdk/components/forms/form-error/src/form-error.component.html","../../../projects/sdk/components/forms/form-error/sixbell-telco-sdk-components-forms-form-error.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\nimport { FormControl, FormGroup } from '@angular/forms';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n@Component({\n\tselector: 'app-form-errors',\n\tstandalone: true,\n\timports: [TypographyDirective],\n\ttemplateUrl: './form-error.component.html',\n})\nexport class FormErrorsComponent {\n\t// Main properties\n\tparentForm = input.required<FormGroup>();\n\tformField = input.required<string>();\n\n\t// Custom messages\n\tisRequired = input<string | undefined>(undefined);\n\tisMinLength = input<string | undefined>(undefined);\n\tisMaxLength = input<string | undefined>(undefined);\n\tisMin = input<string | undefined>(undefined);\n\tisMax = input<string | undefined>(undefined);\n\tisPattern = input<string | undefined>(undefined);\n\tisEmail = input<string | undefined>(undefined);\n\n\tformControl = computed(() => this.parentForm().get(this.formField()) as FormControl);\n\tcustomError = computed(() => {\n\t\tconst errors = this.formControl()?.errors;\n\t\tconst keys = Object.keys(errors || {});\n\n\t\tif (keys.length > 0) {\n\t\t\treturn this.formControl().getError(keys[0]);\n\t\t}\n\n\t\treturn null;\n\t});\n}\n","<div\n\t[class]=\"\n\t\t!(formControl()?.errors && (formControl().dirty || formControl().touched))\n\t\t\t? 'invisible flex select-none items-center justify-start px-1 text-error opacity-0 transition-opacity duration-300 ease-ease-out-back'\n\t\t\t: 'visible flex select-none items-center justify-start px-1 text-error opacity-100 transition-opacity duration-300 ease-ease-out-back'\n\t\"\n>\n\t<span classes=\"label-text-alt\" typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t@if (formControl()?.errors && (formControl().dirty || formControl().touched)) {\n\t\t\t@if (formControl().getError('required')) {\n\t\t\t\t{{ isRequired() ?? '* Este campo es requerido' }}\n\t\t\t} @else if (formControl().getError('minlength')) {\n\t\t\t\t{{ isMinLength() ?? '* Este campo debe tener al menos ' + formControl().getError('minlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('maxlength')) {\n\t\t\t\t{{ isMaxLength() ?? '* Este campo no debe superar los ' + formControl().getError('maxlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('min')) {\n\t\t\t\t{{ isMin() ?? '* El número ingresado debe ser mayor o igual a ' + formControl().getError('min').min }}\n\t\t\t} @else if (formControl().getError('max')) {\n\t\t\t\t{{ isMax() ?? '* El número ingresado debe ser menor o igual a ' + formControl().getError('max').max }}\n\t\t\t} @else if (formControl().getError('pattern')) {\n\t\t\t\t{{ isPattern() ?? '* El campo no cumple con el formato requerido' }}\n\t\t\t} @else if (formControl().getError('email')) {\n\t\t\t\t{{ isEmail() ?? '* El email ingresado no es válido' }}\n\t\t\t} @else if (customError()) {\n\t\t\t\t{{ customError() }}\n\t\t\t}\n\t\t} @else {\n\t\t\t''\n\t\t}\n\t</span>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAUa,mBAAmB,CAAA;;AAE/B,IAAA,UAAU,GAAG,KAAK,CAAC,QAAQ,EAAa,CAAC;AACzC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;;AAGrC,IAAA,UAAU,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAClD,IAAA,WAAW,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AACnD,IAAA,WAAW,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AACnD,IAAA,KAAK,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAC7C,IAAA,KAAK,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAC7C,IAAA,SAAS,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AACjD,IAAA,OAAO,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAE/C,IAAA,WAAW,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,CAAgB,CAAC,CAAC;AACrF,IAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;QAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,EAAE,EAAE,MAAM,CAAC;QAC1C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;AAEvC,QAAA,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;AACpB,YAAA,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAA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AAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECVhC,yzDA+BA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDxBW,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAGjB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EACf,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,mBAAmB,CAAC,EAAA,QAAA,EAAA,yzDAAA,EAAA,CAAA;;;AEP/B;;AAEG;;;;"}
@@ -10,7 +10,7 @@ import { cva } from 'class-variance-authority';
10
10
  import { Subject, switchMap, skip, debounceTime, distinctUntilChanged } from 'rxjs';
11
11
 
12
12
  /* eslint-disable @typescript-eslint/no-explicit-any */
13
- const nativeInput = cva(['font-body', 'text-base', 'transition', 'duration-300', 'ease-ease-out-back', 'w-full'], {
13
+ const inputComponent = cva(['font-body', 'text-base', 'transition', 'duration-300', 'ease-ease-out-back', 'w-full'], {
14
14
  variants: {
15
15
  variant: {
16
16
  primary: ['input', 'input-primary'],
@@ -57,8 +57,11 @@ const nativeInput = cva(['font-body', 'text-base', 'transition', 'duration-300',
57
57
  });
58
58
  class InputComponent {
59
59
  // Base input properties
60
- variants = input({ variant: 'secondary', shape: 'round-sm', size: 'md', padding: 'md' });
61
- class = input('');
60
+ variant = input('secondary');
61
+ shape = input('round-sm');
62
+ size = input('md');
63
+ padding = input('md');
64
+ classes = input('');
62
65
  label = input('');
63
66
  type = input('text');
64
67
  name = input(null);
@@ -124,59 +127,56 @@ class InputComponent {
124
127
  this.onDebounceChange.emit(`${value}`);
125
128
  });
126
129
  }
127
- get classes() {
128
- const variants = this.variants();
129
- return cn(nativeInput({
130
- variant: variants.variant,
131
- shape: variants.shape,
132
- size: variants.size,
133
- padding: variants.padding,
134
- class: this.class(),
130
+ get componentClass() {
131
+ return cn(inputComponent({
132
+ variant: this.variant(),
133
+ shape: this.shape(),
134
+ size: this.size(),
135
+ padding: this.padding(),
136
+ class: this.classes(),
135
137
  }));
136
138
  }
137
- get errorClasses() {
138
- const variants = this.variants();
139
- return cn(nativeInput({
139
+ get errorClass() {
140
+ return cn(inputComponent({
140
141
  variant: 'error',
141
- shape: variants.shape,
142
- size: variants.size,
143
- padding: variants.padding,
144
- class: this.class(),
142
+ shape: this.shape(),
143
+ size: this.size(),
144
+ padding: this.padding(),
145
+ class: this.classes(),
145
146
  }));
146
147
  }
147
- get successClasses() {
148
- const variants = this.variants();
149
- return cn(nativeInput({
148
+ get successClass() {
149
+ return cn(inputComponent({
150
150
  variant: 'success',
151
- shape: variants.shape,
152
- size: variants.size,
153
- padding: variants.padding,
154
- class: this.class(),
151
+ shape: this.shape(),
152
+ size: this.size(),
153
+ padding: this.padding(),
154
+ class: this.classes(),
155
155
  }));
156
156
  }
157
- get validationClasses() {
157
+ get validationClass() {
158
158
  if (!this.formField)
159
- return this.classes;
159
+ return this.componentClass;
160
160
  if (this.formField.dirty || this.formField.touched) {
161
161
  if (this.formField.invalid) {
162
- return this.errorClasses;
162
+ return this.errorClass;
163
163
  }
164
164
  else if (this.formField.valid) {
165
- return this.successClasses;
165
+ return this.successClass;
166
166
  }
167
167
  }
168
- return this.classes;
168
+ return this.componentClass;
169
169
  }
170
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
171
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: InputComponent, isStandalone: true, selector: "app-input", inputs: { variants: { classPropertyName: "variants", publicName: "variants", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", 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 }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", onEnter: "onEnter", onBlur: "onBlur", onDebounceChange: "onDebounceChange" }, providers: [
170
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
171
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: InputComponent, isStandalone: true, selector: "app-input", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", onEnter: "onEnter", onBlur: "onBlur", onDebounceChange: "onDebounceChange" }, providers: [
172
172
  {
173
173
  provide: NG_VALUE_ACCESSOR,
174
174
  useExisting: InputComponent,
175
175
  multi: true,
176
176
  },
177
- ], ngImport: i0, template: "@let variant = variants().variant;\n\n@if (variant === 'primary' || variant === 'secondary' || variant === 'success' || variant === 'error' || variant === 'warning') {\n\t<div class=\"flex flex-col gap-1\">\n\t\t@if (label()) {\n\t\t\t<label [for]=\"this.name()\">\n\t\t\t\t<span [typography]=\"{ variant: 'body', color: 'black', fontWeight: 'normal' }\">{{ label() }}</span>\n\t\t\t</label>\n\t\t}\n\n\t\t<input\n\t\t\t[class]=\"validationClasses\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\n\t\t<ng-content></ng-content>\n\t</div>\n} @else if (variant === 'search' || variant === 'search-ghost') {\n\t<label [class]=\"classes\">\n\t\t<app-icon iconName=\"search\" [variants]=\"{ color: 'black', size: 'md' }\"></app-icon>\n\t\t<input\n\t\t\tclass=\"grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t</label>\n} @else {\n\t<input\n\t\t[class]=\"classes\"\n\t\t[type]=\"type()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(keyup.enter)=\"handleEnter()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n}\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typography", "class"] }, { kind: "component", type: IconComponent, selector: "app-icon", inputs: ["variants", "class", "iconName"] }] });
177
+ ], ngImport: i0, template: "@let variantVar = this.variant();\n\n@if (variantVar === 'primary' || variantVar === 'secondary' || variantVar === 'success' || variantVar === 'error' || variantVar === 'warning') {\n\t<div class=\"flex flex-col gap-1\">\n\t\t@if (label()) {\n\t\t\t<label [for]=\"this.name()\">\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t</label>\n\t\t}\n\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\n\t\t<ng-content></ng-content>\n\t</div>\n} @else if (variantVar === 'search' || variantVar === 'search-ghost') {\n\t<label [class]=\"componentClass\">\n\t\t<app-icon iconName=\"search\" color=\"black\" , size=\"md\"></app-icon>\n\t\t<input\n\t\t\tclass=\"grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t</label>\n} @else {\n\t<input\n\t\t[class]=\"componentClass\"\n\t\t[type]=\"type()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(keyup.enter)=\"handleEnter()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n}\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "app-icon", inputs: ["color", "size", "classes", "iconName"] }] });
178
178
  }
179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: InputComponent, decorators: [{
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: InputComponent, decorators: [{
180
180
  type: Component,
181
181
  args: [{ selector: 'app-input', standalone: true, imports: [FormsModule, TypographyDirective, IconComponent], providers: [
182
182
  {
@@ -184,7 +184,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
184
184
  useExisting: InputComponent,
185
185
  multi: true,
186
186
  },
187
- ], template: "@let variant = variants().variant;\n\n@if (variant === 'primary' || variant === 'secondary' || variant === 'success' || variant === 'error' || variant === 'warning') {\n\t<div class=\"flex flex-col gap-1\">\n\t\t@if (label()) {\n\t\t\t<label [for]=\"this.name()\">\n\t\t\t\t<span [typography]=\"{ variant: 'body', color: 'black', fontWeight: 'normal' }\">{{ label() }}</span>\n\t\t\t</label>\n\t\t}\n\n\t\t<input\n\t\t\t[class]=\"validationClasses\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\n\t\t<ng-content></ng-content>\n\t</div>\n} @else if (variant === 'search' || variant === 'search-ghost') {\n\t<label [class]=\"classes\">\n\t\t<app-icon iconName=\"search\" [variants]=\"{ color: 'black', size: 'md' }\"></app-icon>\n\t\t<input\n\t\t\tclass=\"grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t</label>\n} @else {\n\t<input\n\t\t[class]=\"classes\"\n\t\t[type]=\"type()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(keyup.enter)=\"handleEnter()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n}\n" }]
187
+ ], template: "@let variantVar = this.variant();\n\n@if (variantVar === 'primary' || variantVar === 'secondary' || variantVar === 'success' || variantVar === 'error' || variantVar === 'warning') {\n\t<div class=\"flex flex-col gap-1\">\n\t\t@if (label()) {\n\t\t\t<label [for]=\"this.name()\">\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t</label>\n\t\t}\n\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\n\t\t<ng-content></ng-content>\n\t</div>\n} @else if (variantVar === 'search' || variantVar === 'search-ghost') {\n\t<label [class]=\"componentClass\">\n\t\t<app-icon iconName=\"search\" color=\"black\" , size=\"md\"></app-icon>\n\t\t<input\n\t\t\tclass=\"grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t</label>\n} @else {\n\t<input\n\t\t[class]=\"componentClass\"\n\t\t[type]=\"type()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(keyup.enter)=\"handleEnter()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n}\n" }]
188
188
  }], ctorParameters: () => [] });
189
189
 
190
190
  /**