@sixbell-telco/sdk 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +33 -1
  3. package/assets/styles/toast.scss +1 -1
  4. package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
  5. package/components/accordion/src/accordion.component.d.ts +1 -1
  6. package/components/avatar/src/avatar.component.d.ts +1 -1
  7. package/components/button/src/button.component.d.ts +1 -1
  8. package/components/card/src/card.component.d.ts +1 -1
  9. package/components/countdown/src/countdown.component.d.ts +1 -1
  10. package/components/dropdown/src/dropdown.component.d.ts +1 -1
  11. package/components/dual-list/src/dual-list.component.d.ts +1 -1
  12. package/components/file-upload/file-dropzone/src/file-dropzone.component.d.ts +1 -1
  13. package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +1 -1
  14. package/components/forms/checkbox/src/checkbox.component.d.ts +1 -1
  15. package/components/forms/combobox/src/combobox.component.d.ts +1 -1
  16. package/components/forms/datepicker/src/datepicker.component.d.ts +1 -1
  17. package/components/forms/form-error/src/form-error.component.d.ts +1 -1
  18. package/components/forms/input/src/input.component.d.ts +1 -1
  19. package/components/forms/radio/src/radio.component.d.ts +1 -1
  20. package/components/forms/range/src/range.component.d.ts +1 -1
  21. package/components/forms/select/src/select.component.d.ts +1 -1
  22. package/components/forms/switch/src/switch.component.d.ts +1 -1
  23. package/components/forms/textarea/src/textarea.component.d.ts +1 -1
  24. package/components/forms/toggle/src/toggle.component.d.ts +1 -1
  25. package/components/icon/src/icon.component.d.ts +1 -1
  26. package/components/link/src/link.component.d.ts +2 -1
  27. package/components/modal/src/modal.component.d.ts +1 -1
  28. package/components/notification/src/notification.component.d.ts +1 -1
  29. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +1 -1
  30. package/components/paginator/src/paginator.component.d.ts +1 -1
  31. package/components/product-card/src/product-card.component.d.ts +1 -1
  32. package/components/progress/src/progress.component.d.ts +1 -1
  33. package/components/tab/src/tab.component.d.ts +1 -1
  34. package/components/table/src/table.component.d.ts +1 -1
  35. package/components/toast/toast-message/toast-message.component.d.ts +1 -1
  36. package/components/toast/toasts-container/toasts-container.component.d.ts +1 -1
  37. package/components/tooltip/src/tooltip.component.d.ts +1 -1
  38. package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
  39. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +1 -1
  40. package/components/wizard/wizard-step/wizard-step.component.d.ts +1 -1
  41. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +1 -1
  42. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +1 -1
  43. package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +3 -3
  44. package/esm2022/components/accordion/src/accordion.component.mjs +3 -3
  45. package/esm2022/components/avatar/src/avatar.component.mjs +3 -3
  46. package/esm2022/components/button/src/button.component.mjs +3 -3
  47. package/esm2022/components/card/src/card.component.mjs +3 -3
  48. package/esm2022/components/countdown/src/countdown.component.mjs +3 -3
  49. package/esm2022/components/dropdown/src/dropdown.component.mjs +3 -3
  50. package/esm2022/components/dual-list/src/dual-list.component.mjs +3 -3
  51. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +3 -3
  52. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +3 -3
  53. package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +3 -3
  54. package/esm2022/components/forms/combobox/src/combobox.component.mjs +5 -5
  55. package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +5 -5
  56. package/esm2022/components/forms/form-error/src/form-error.component.mjs +3 -3
  57. package/esm2022/components/forms/input/src/input.component.mjs +5 -5
  58. package/esm2022/components/forms/radio/src/radio.component.mjs +3 -3
  59. package/esm2022/components/forms/range/src/range.component.mjs +3 -3
  60. package/esm2022/components/forms/select/src/select.component.mjs +3 -3
  61. package/esm2022/components/forms/switch/src/switch.component.mjs +3 -3
  62. package/esm2022/components/forms/textarea/src/textarea.component.mjs +3 -3
  63. package/esm2022/components/forms/toggle/src/toggle.component.mjs +3 -3
  64. package/esm2022/components/icon/src/icon.component.mjs +3 -3
  65. package/esm2022/components/link/src/link.component.mjs +5 -4
  66. package/esm2022/components/modal/src/modal.component.mjs +3 -3
  67. package/esm2022/components/notification/src/notification.component.mjs +3 -3
  68. package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +3 -3
  69. package/esm2022/components/paginator/src/paginator.component.mjs +3 -3
  70. package/esm2022/components/product-card/src/product-card.component.mjs +3 -3
  71. package/esm2022/components/progress/src/progress.component.mjs +3 -3
  72. package/esm2022/components/tab/src/tab.component.mjs +3 -3
  73. package/esm2022/components/table/src/table.component.mjs +3 -3
  74. package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +3 -3
  75. package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +3 -3
  76. package/esm2022/components/toast/toast-message/toast-message.component.mjs +3 -3
  77. package/esm2022/components/toast/toasts-container/toasts-container.component.mjs +3 -3
  78. package/esm2022/components/tooltip/src/tooltip.component.mjs +3 -3
  79. package/esm2022/components/wizard/wizard-content/wizard-content.component.mjs +3 -3
  80. package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +3 -3
  81. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +3 -3
  82. package/esm2022/components/wizard/wizard-sub-step/wizard-sub-step.component.mjs +3 -3
  83. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +3 -3
  84. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +4 -4
  85. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  86. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +2 -2
  87. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  88. package/fesm2022/sixbell-telco-sdk-components-button.mjs +2 -2
  89. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  90. package/fesm2022/sixbell-telco-sdk-components-card.mjs +2 -2
  91. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  92. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +2 -2
  93. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  94. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +2 -2
  95. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  96. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +2 -2
  97. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  98. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +2 -2
  99. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
  100. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +2 -2
  101. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
  102. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +2 -2
  103. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  104. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +4 -4
  105. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  106. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +4 -4
  107. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
  108. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
  109. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  110. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +4 -4
  111. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  112. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +2 -2
  113. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  114. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +2 -2
  115. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  116. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
  117. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  118. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
  119. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  120. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +2 -2
  121. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  122. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
  123. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  124. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +2 -2
  125. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  126. package/fesm2022/sixbell-telco-sdk-components-link.mjs +4 -3
  127. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  128. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +2 -2
  129. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
  130. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +2 -2
  131. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  132. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +4 -4
  133. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  134. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +2 -2
  135. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  136. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
  137. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  138. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +2 -2
  139. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  140. package/fesm2022/sixbell-telco-sdk-components-table.mjs +6 -6
  141. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  142. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +4 -4
  143. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  144. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +2 -2
  145. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  146. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +10 -10
  147. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  148. package/package.json +2 -2
@@ -114,11 +114,11 @@ class FileUploaderComponent {
114
114
  return this.componentClass();
115
115
  }
116
116
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FileUploaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
117
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: FileUploaderComponent, isStandalone: true, selector: "app-file-uploader", 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 }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, showExtensions: { classPropertyName: "showExtensions", publicName: "showExtensions", isSignal: true, isRequired: false, transformFunction: null }, extensions: { classPropertyName: "extensions", publicName: "extensions", 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 }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onFileChange: "onFileChange", value: "valueChange", disabled: "disabledChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => FileUploaderComponent), multi: true }], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["uploader"], descendants: true, isSignal: true }], ngImport: i0, template: "<app-input\n\t[label]=\"label()\"\n\t[placeholder]=\"placeholder()\"\n\tplaceholder=\"Seleccione un archivo...\"\n\t[readonly]=\"true\"\n\t(click)=\"handleClick()\"\n\t[(value)]=\"filename\"\n\t[name]=\"name()\"\n\t[variant]=\"validationClass().variant\"\n\t[size]=\"validationClass().size\"\n\t[shape]=\"validationClass().shape\"\n\t[padding]=\"validationClass().padding\"\n\t[classes]=\"classes()\"\n\t(onBlur)=\"_onTouched()\"\n\t[disabled]=\"disabled()\"\n>\n\t<div class=\"flex justify-between\">\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t\t@if (extensions().length > 0 && showExtensions()) {\n\t\t\t<div class=\"mt-1\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-xs'\">Archivos aceptados: {{ formattedExtensions() }}</span>\n\t\t\t</div>\n\t\t}\n\t</div>\n</app-input>\n@if (parentForm()) {\n\t<input type=\"file\" [(value)]=\"fileValue\" #uploader hidden (change)=\"handleReadFile($event)\" (blur)=\"_onTouched()\" required />\n} @else {\n\t<input type=\"file\" [(value)]=\"fileValue\" #uploader hidden (change)=\"handleAddFile($event)\" required />\n}\n", dependencies: [{ 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: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }], changeDetection: i0.ChangeDetectionStrategy.Default });
117
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: FileUploaderComponent, isStandalone: true, selector: "st-file-uploader", 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 }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, showExtensions: { classPropertyName: "showExtensions", publicName: "showExtensions", isSignal: true, isRequired: false, transformFunction: null }, extensions: { classPropertyName: "extensions", publicName: "extensions", 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 }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onFileChange: "onFileChange", value: "valueChange", disabled: "disabledChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => FileUploaderComponent), multi: true }], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["uploader"], descendants: true, isSignal: true }], ngImport: i0, template: "<st-input\n\t[label]=\"label()\"\n\t[placeholder]=\"placeholder()\"\n\tplaceholder=\"Seleccione un archivo...\"\n\t[readonly]=\"true\"\n\t(click)=\"handleClick()\"\n\t[(value)]=\"filename\"\n\t[name]=\"name()\"\n\t[variant]=\"validationClass().variant\"\n\t[size]=\"validationClass().size\"\n\t[shape]=\"validationClass().shape\"\n\t[padding]=\"validationClass().padding\"\n\t[classes]=\"classes()\"\n\t(onBlur)=\"_onTouched()\"\n\t[disabled]=\"disabled()\"\n>\n\t<div class=\"flex justify-between\">\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t\t@if (extensions().length > 0 && showExtensions()) {\n\t\t\t<div class=\"mt-1\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-xs'\">Archivos aceptados: {{ formattedExtensions() }}</span>\n\t\t\t</div>\n\t\t}\n\t</div>\n</st-input>\n@if (parentForm()) {\n\t<input type=\"file\" [(value)]=\"fileValue\" #uploader hidden (change)=\"handleReadFile($event)\" (blur)=\"_onTouched()\" required />\n} @else {\n\t<input type=\"file\" [(value)]=\"fileValue\" #uploader hidden (change)=\"handleAddFile($event)\" required />\n}\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: InputComponent, selector: "st-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: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }], changeDetection: i0.ChangeDetectionStrategy.Default });
118
118
  }
119
119
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FileUploaderComponent, decorators: [{
120
120
  type: Component,
121
- args: [{ selector: 'app-file-uploader', standalone: true, imports: [FormsModule, InputComponent, TypographyDirective], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => FileUploaderComponent), multi: true }], changeDetection: ChangeDetectionStrategy.Default, template: "<app-input\n\t[label]=\"label()\"\n\t[placeholder]=\"placeholder()\"\n\tplaceholder=\"Seleccione un archivo...\"\n\t[readonly]=\"true\"\n\t(click)=\"handleClick()\"\n\t[(value)]=\"filename\"\n\t[name]=\"name()\"\n\t[variant]=\"validationClass().variant\"\n\t[size]=\"validationClass().size\"\n\t[shape]=\"validationClass().shape\"\n\t[padding]=\"validationClass().padding\"\n\t[classes]=\"classes()\"\n\t(onBlur)=\"_onTouched()\"\n\t[disabled]=\"disabled()\"\n>\n\t<div class=\"flex justify-between\">\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t\t@if (extensions().length > 0 && showExtensions()) {\n\t\t\t<div class=\"mt-1\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-xs'\">Archivos aceptados: {{ formattedExtensions() }}</span>\n\t\t\t</div>\n\t\t}\n\t</div>\n</app-input>\n@if (parentForm()) {\n\t<input type=\"file\" [(value)]=\"fileValue\" #uploader hidden (change)=\"handleReadFile($event)\" (blur)=\"_onTouched()\" required />\n} @else {\n\t<input type=\"file\" [(value)]=\"fileValue\" #uploader hidden (change)=\"handleAddFile($event)\" required />\n}\n" }]
121
+ args: [{ selector: 'st-file-uploader', standalone: true, imports: [FormsModule, InputComponent, TypographyDirective], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => FileUploaderComponent), multi: true }], changeDetection: ChangeDetectionStrategy.Default, template: "<st-input\n\t[label]=\"label()\"\n\t[placeholder]=\"placeholder()\"\n\tplaceholder=\"Seleccione un archivo...\"\n\t[readonly]=\"true\"\n\t(click)=\"handleClick()\"\n\t[(value)]=\"filename\"\n\t[name]=\"name()\"\n\t[variant]=\"validationClass().variant\"\n\t[size]=\"validationClass().size\"\n\t[shape]=\"validationClass().shape\"\n\t[padding]=\"validationClass().padding\"\n\t[classes]=\"classes()\"\n\t(onBlur)=\"_onTouched()\"\n\t[disabled]=\"disabled()\"\n>\n\t<div class=\"flex justify-between\">\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t\t@if (extensions().length > 0 && showExtensions()) {\n\t\t\t<div class=\"mt-1\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-xs'\">Archivos aceptados: {{ formattedExtensions() }}</span>\n\t\t\t</div>\n\t\t}\n\t</div>\n</st-input>\n@if (parentForm()) {\n\t<input type=\"file\" [(value)]=\"fileValue\" #uploader hidden (change)=\"handleReadFile($event)\" (blur)=\"_onTouched()\" required />\n} @else {\n\t<input type=\"file\" [(value)]=\"fileValue\" #uploader hidden (change)=\"handleAddFile($event)\" required />\n}\n" }]
122
122
  }] });
123
123
 
124
124
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-file-upload-file-uploader.mjs","sources":["../../../projects/sdk/components/file-upload/file-uploader/src/file-uploader.component.ts","../../../projects/sdk/components/file-upload/file-uploader/src/file-uploader.component.html","../../../projects/sdk/components/file-upload/file-uploader/sixbell-telco-sdk-components-file-upload-file-uploader.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ChangeDetectionStrategy, Component, computed, ElementRef, forwardRef, input, model, output, viewChild } from '@angular/core';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { InputComponent, InputPaddingProps, InputShapeProps, InputSizeProps, InputVariantProps } from '@sixbell-telco/sdk/components/forms/input';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n// Create a new type by excluding specific values from the variant property\nexport type FileUploaderVariantProps = Exclude<InputVariantProps, 'search' | 'search-ghost'>;\nexport type FileUploaderShapeProps = InputShapeProps;\nexport type FileUploaderSizeProps = InputSizeProps;\nexport type FileUploaderPaddingProps = InputPaddingProps;\n\nexport type FileUploaderProps = {\n\tvariant?: FileUploaderVariantProps;\n\tshape?: FileUploaderShapeProps;\n\tsize?: FileUploaderSizeProps;\n\tpadding?: FileUploaderPaddingProps;\n};\n\n@Component({\n\tselector: 'app-file-uploader',\n\tstandalone: true,\n\timports: [FormsModule, InputComponent, TypographyDirective],\n\tproviders: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => FileUploaderComponent), multi: true }],\n\ttemplateUrl: './file-uploader.component.html',\n\tchangeDetection: ChangeDetectionStrategy.Default,\n})\nexport class FileUploaderComponent implements ControlValueAccessor {\n\t// Base input properties\n\tvariant = input<FileUploaderVariantProps>('secondary');\n\tshape = input<FileUploaderShapeProps>('round-sm');\n\tsize = input<FileUploaderSizeProps>('md');\n\tpadding = input<FileUploaderPaddingProps>('md');\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\tname = input<string | null>(null);\n\tplaceholder = input<string>('');\n\tshowExtensions = input<boolean>(true);\n\textensions = input<string[]>([]);\n\tonFileChange = output<File>();\n\n\tfilename = '';\n\tfileValue: File | null = null;\n\tformattedExtensions = computed(() => this.extensions().join(', '));\n\tfileInput = viewChild<ElementRef>('uploader');\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\tvalue = model<File | null>(null);\n\n\t// ControlValueAccessor attributes\n\t_onChange: any;\n\t_onTouched: any;\n\tdisabled = model<boolean>(false);\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\twriteValue(value: any): void {\n\t\tthis.value.set(value);\n\t\tthis.filename = value?.name || '';\n\t}\n\tregisterOnChange(fn: any): void {\n\t\tthis._onChange = fn; // Register this as a change callback function\n\t}\n\tregisterOnTouched(fn: any): void {\n\t\tthis._onTouched = fn; // Register this as a blur callback function\n\t}\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// Input functions\n\thandleClick() {\n\t\tif (!this.fileInput()) return;\n\t\tthis.fileInput()?.nativeElement.click(); // Access the element to trigger click\n\t}\n\n\thandleReadFile(event: Event) {\n\t\tconst file: File | undefined = (event.target as HTMLInputElement).files?.[0];\n\t\tif (file instanceof File) {\n\t\t\tthis.filename = file.name;\n\t\t\tthis._onChange(file);\n\t\t\tthis.value.set(file);\n\t\t\tthis.onFileChange.emit(file);\n\t\t}\n\t}\n\n\thandleAddFile(event: Event) {\n\t\tconst file: File | undefined = (event.target as HTMLInputElement).files?.[0];\n\t\tif (file instanceof File) {\n\t\t\tthis.filename = file.name;\n\t\t\tthis.onFileChange.emit(file);\n\t\t}\n\t}\n\n\tremoveFile() {\n\t\tthis.filename = '';\n\t\tthis.value.set(null);\n\t\tthis._onChange(null);\n\t}\n\n\t// Style Getters\n\tcomponentClass(): FileUploaderProps {\n\t\treturn {\n\t\t\tvariant: 'secondary',\n\t\t\tshape: 'round-md',\n\t\t\tsize: 'md',\n\t\t\tpadding: 'md',\n\t\t};\n\t}\n\n\terrorClass(): FileUploaderProps {\n\t\treturn {\n\t\t\tvariant: 'error',\n\t\t\tshape: this.shape(),\n\t\t\tsize: this.size(),\n\t\t\tpadding: this.padding(),\n\t\t};\n\t}\n\n\tsuccessClass(): FileUploaderProps {\n\t\treturn {\n\t\t\tvariant: 'success',\n\t\t\tshape: this.shape(),\n\t\t\tsize: this.size(),\n\t\t\tpadding: this.padding(),\n\t\t};\n\t}\n\n\tvalidationClass(): FileUploaderProps {\n\t\tif (!this.formField) return this.componentClass();\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","<app-input\n\t[label]=\"label()\"\n\t[placeholder]=\"placeholder()\"\n\tplaceholder=\"Seleccione un archivo...\"\n\t[readonly]=\"true\"\n\t(click)=\"handleClick()\"\n\t[(value)]=\"filename\"\n\t[name]=\"name()\"\n\t[variant]=\"validationClass().variant\"\n\t[size]=\"validationClass().size\"\n\t[shape]=\"validationClass().shape\"\n\t[padding]=\"validationClass().padding\"\n\t[classes]=\"classes()\"\n\t(onBlur)=\"_onTouched()\"\n\t[disabled]=\"disabled()\"\n>\n\t<div class=\"flex justify-between\">\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t\t@if (extensions().length > 0 && showExtensions()) {\n\t\t\t<div class=\"mt-1\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-xs'\">Archivos aceptados: {{ formattedExtensions() }}</span>\n\t\t\t</div>\n\t\t}\n\t</div>\n</app-input>\n@if (parentForm()) {\n\t<input type=\"file\" [(value)]=\"fileValue\" #uploader hidden (change)=\"handleReadFile($event)\" (blur)=\"_onTouched()\" required />\n} @else {\n\t<input type=\"file\" [(value)]=\"fileValue\" #uploader hidden (change)=\"handleAddFile($event)\" required />\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAAA;MA2Ba,qBAAqB,CAAA;;AAEjC,IAAA,OAAO,GAAG,KAAK,CAA2B,WAAW,CAAC,CAAC;AACvD,IAAA,KAAK,GAAG,KAAK,CAAyB,UAAU,CAAC,CAAC;AAClD,IAAA,IAAI,GAAG,KAAK,CAAwB,IAAI,CAAC,CAAC;AAC1C,IAAA,OAAO,GAAG,KAAK,CAA2B,IAAI,CAAC,CAAC;AAChD,IAAA,OAAO,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC5B,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC1B,IAAA,IAAI,GAAG,KAAK,CAAgB,IAAI,CAAC,CAAC;AAClC,IAAA,WAAW,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAChC,IAAA,cAAc,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;AACtC,IAAA,UAAU,GAAG,KAAK,CAAW,EAAE,CAAC,C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,EAAA,QAAA,EAAA,mkCAgCA,EDVW,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,WAAW,EAAE,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,cAAc,yUAAE,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,OAAA,EAAA,CAAA,CAAA;;4FAK9C,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBARjC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,mBAAmB,EACjB,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,WAAW,EAAE,cAAc,EAAE,mBAAmB,CAAC,EAChD,SAAA,EAAA,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,2BAA2B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAE7F,eAAA,EAAA,uBAAuB,CAAC,OAAO,EAAA,QAAA,EAAA,mkCAAA,EAAA,CAAA;;;AEzBjD;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-file-upload-file-uploader.mjs","sources":["../../../projects/sdk/components/file-upload/file-uploader/src/file-uploader.component.ts","../../../projects/sdk/components/file-upload/file-uploader/src/file-uploader.component.html","../../../projects/sdk/components/file-upload/file-uploader/sixbell-telco-sdk-components-file-upload-file-uploader.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ChangeDetectionStrategy, Component, computed, ElementRef, forwardRef, input, model, output, viewChild } from '@angular/core';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { InputComponent, InputPaddingProps, InputShapeProps, InputSizeProps, InputVariantProps } from '@sixbell-telco/sdk/components/forms/input';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n// Create a new type by excluding specific values from the variant property\nexport type FileUploaderVariantProps = Exclude<InputVariantProps, 'search' | 'search-ghost'>;\nexport type FileUploaderShapeProps = InputShapeProps;\nexport type FileUploaderSizeProps = InputSizeProps;\nexport type FileUploaderPaddingProps = InputPaddingProps;\n\nexport type FileUploaderProps = {\n\tvariant?: FileUploaderVariantProps;\n\tshape?: FileUploaderShapeProps;\n\tsize?: FileUploaderSizeProps;\n\tpadding?: FileUploaderPaddingProps;\n};\n\n@Component({\n\tselector: 'st-file-uploader',\n\tstandalone: true,\n\timports: [FormsModule, InputComponent, TypographyDirective],\n\tproviders: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => FileUploaderComponent), multi: true }],\n\ttemplateUrl: './file-uploader.component.html',\n\tchangeDetection: ChangeDetectionStrategy.Default,\n})\nexport class FileUploaderComponent implements ControlValueAccessor {\n\t// Base input properties\n\tvariant = input<FileUploaderVariantProps>('secondary');\n\tshape = input<FileUploaderShapeProps>('round-sm');\n\tsize = input<FileUploaderSizeProps>('md');\n\tpadding = input<FileUploaderPaddingProps>('md');\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\tname = input<string | null>(null);\n\tplaceholder = input<string>('');\n\tshowExtensions = input<boolean>(true);\n\textensions = input<string[]>([]);\n\tonFileChange = output<File>();\n\n\tfilename = '';\n\tfileValue: File | null = null;\n\tformattedExtensions = computed(() => this.extensions().join(', '));\n\tfileInput = viewChild<ElementRef>('uploader');\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\tvalue = model<File | null>(null);\n\n\t// ControlValueAccessor attributes\n\t_onChange: any;\n\t_onTouched: any;\n\tdisabled = model<boolean>(false);\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\twriteValue(value: any): void {\n\t\tthis.value.set(value);\n\t\tthis.filename = value?.name || '';\n\t}\n\tregisterOnChange(fn: any): void {\n\t\tthis._onChange = fn; // Register this as a change callback function\n\t}\n\tregisterOnTouched(fn: any): void {\n\t\tthis._onTouched = fn; // Register this as a blur callback function\n\t}\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// Input functions\n\thandleClick() {\n\t\tif (!this.fileInput()) return;\n\t\tthis.fileInput()?.nativeElement.click(); // Access the element to trigger click\n\t}\n\n\thandleReadFile(event: Event) {\n\t\tconst file: File | undefined = (event.target as HTMLInputElement).files?.[0];\n\t\tif (file instanceof File) {\n\t\t\tthis.filename = file.name;\n\t\t\tthis._onChange(file);\n\t\t\tthis.value.set(file);\n\t\t\tthis.onFileChange.emit(file);\n\t\t}\n\t}\n\n\thandleAddFile(event: Event) {\n\t\tconst file: File | undefined = (event.target as HTMLInputElement).files?.[0];\n\t\tif (file instanceof File) {\n\t\t\tthis.filename = file.name;\n\t\t\tthis.onFileChange.emit(file);\n\t\t}\n\t}\n\n\tremoveFile() {\n\t\tthis.filename = '';\n\t\tthis.value.set(null);\n\t\tthis._onChange(null);\n\t}\n\n\t// Style Getters\n\tcomponentClass(): FileUploaderProps {\n\t\treturn {\n\t\t\tvariant: 'secondary',\n\t\t\tshape: 'round-md',\n\t\t\tsize: 'md',\n\t\t\tpadding: 'md',\n\t\t};\n\t}\n\n\terrorClass(): FileUploaderProps {\n\t\treturn {\n\t\t\tvariant: 'error',\n\t\t\tshape: this.shape(),\n\t\t\tsize: this.size(),\n\t\t\tpadding: this.padding(),\n\t\t};\n\t}\n\n\tsuccessClass(): FileUploaderProps {\n\t\treturn {\n\t\t\tvariant: 'success',\n\t\t\tshape: this.shape(),\n\t\t\tsize: this.size(),\n\t\t\tpadding: this.padding(),\n\t\t};\n\t}\n\n\tvalidationClass(): FileUploaderProps {\n\t\tif (!this.formField) return this.componentClass();\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","<st-input\n\t[label]=\"label()\"\n\t[placeholder]=\"placeholder()\"\n\tplaceholder=\"Seleccione un archivo...\"\n\t[readonly]=\"true\"\n\t(click)=\"handleClick()\"\n\t[(value)]=\"filename\"\n\t[name]=\"name()\"\n\t[variant]=\"validationClass().variant\"\n\t[size]=\"validationClass().size\"\n\t[shape]=\"validationClass().shape\"\n\t[padding]=\"validationClass().padding\"\n\t[classes]=\"classes()\"\n\t(onBlur)=\"_onTouched()\"\n\t[disabled]=\"disabled()\"\n>\n\t<div class=\"flex justify-between\">\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t\t@if (extensions().length > 0 && showExtensions()) {\n\t\t\t<div class=\"mt-1\">\n\t\t\t\t<span typography [typographyVariant]=\"'body-xs'\">Archivos aceptados: {{ formattedExtensions() }}</span>\n\t\t\t</div>\n\t\t}\n\t</div>\n</st-input>\n@if (parentForm()) {\n\t<input type=\"file\" [(value)]=\"fileValue\" #uploader hidden (change)=\"handleReadFile($event)\" (blur)=\"_onTouched()\" required />\n} @else {\n\t<input type=\"file\" [(value)]=\"fileValue\" #uploader hidden (change)=\"handleAddFile($event)\" required />\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAAA;MA2Ba,qBAAqB,CAAA;;AAEjC,IAAA,OAAO,GAAG,KAAK,CAA2B,WAAW,CAAC,CAAC;AACvD,IAAA,KAAK,GAAG,KAAK,CAAyB,UAAU,CAAC,CAAC;AAClD,IAAA,IAAI,GAAG,KAAK,CAAwB,IAAI,CAAC,CAAC;AAC1C,IAAA,OAAO,GAAG,KAAK,CAA2B,IAAI,CAAC,CAAC;AAChD,IAAA,OAAO,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;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,EAAE,UAAU,CAAC,MAAM,qBAAqB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,ECvB/G,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,WAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,ikCAgCA,EDVW,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,WAAW,EAAE,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,cAAc,wUAAE,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,OAAA,EAAA,CAAA,CAAA;;4FAK9C,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBARjC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAChB,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,WAAW,EAAE,cAAc,EAAE,mBAAmB,CAAC,EAChD,SAAA,EAAA,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,2BAA2B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAE7F,eAAA,EAAA,uBAAuB,CAAC,OAAO,EAAA,QAAA,EAAA,ikCAAA,EAAA,CAAA;;;AEzBjD;;AAEG;;;;"}
@@ -73,7 +73,7 @@ class CheckboxComponent {
73
73
  }));
74
74
  }
75
75
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
76
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: CheckboxComponent, isStandalone: true, selector: "app-checkbox", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", onChange: "onChange" }, providers: [
76
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: CheckboxComponent, isStandalone: true, selector: "st-checkbox", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", onChange: "onChange" }, providers: [
77
77
  {
78
78
  provide: NG_VALUE_ACCESSOR,
79
79
  useExisting: CheckboxComponent,
@@ -83,7 +83,7 @@ class CheckboxComponent {
83
83
  }
84
84
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: CheckboxComponent, decorators: [{
85
85
  type: Component,
86
- args: [{ selector: 'app-checkbox', standalone: true, imports: [FormsModule, TypographyDirective], providers: [
86
+ args: [{ selector: 'st-checkbox', standalone: true, imports: [FormsModule, TypographyDirective], providers: [
87
87
  {
88
88
  provide: NG_VALUE_ACCESSOR,
89
89
  useExisting: CheckboxComponent,
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-forms-checkbox.mjs","sources":["../../../projects/sdk/components/forms/checkbox/src/checkbox.component.ts","../../../projects/sdk/components/forms/checkbox/src/checkbox.component.html","../../../projects/sdk/components/forms/checkbox/sixbell-telco-sdk-components-forms-checkbox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ChangeDetectionStrategy, Component, input, model, output } from '@angular/core';\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst checkboxComponent = cva(['checkbox', 'border-secondary'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['checkbox-primary'],\n\t\t\tsuccess: ['checkbox-success'],\n\t\t\terror: ['checkbox-error'],\n\t\t\twarning: ['checkbox-warning'],\n\t\t\tinfo: ['checkbox-info'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['checkbox-xs'],\n\t\t\tsm: ['checkbox-sm'],\n\t\t\tmd: ['checkbox-md'],\n\t\t\tlg: ['checkbox-lg'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tsize: 'md',\n\t},\n});\n\nexport type CheckboxVariantProps = 'primary' | 'success' | 'error' | 'warning' | 'info' | null | undefined;\nexport type CheckboxSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type CheckboxProps = {\n\tvariant?: CheckboxVariantProps;\n\tsize?: CheckboxSizeProps;\n};\n\n@Component({\n\tselector: 'app-checkbox',\n\tstandalone: true,\n\timports: [FormsModule, TypographyDirective],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: CheckboxComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CheckboxComponent implements ControlValueAccessor {\n\t// Base checkbox properties\n\tvariant = input<CheckboxVariantProps>();\n\tsize = input<CheckboxSizeProps>();\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\tname = input<string | null>(null);\n\n\tvalue = model<boolean>(false);\n\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState?(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// Change handler\n\tonChange = output<boolean>();\n\thandleChange(): void {\n\t\tthis.onControlChange(this.value());\n\t\tthis.onChange.emit(this.value());\n\t}\n\n\t// Blur handler\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n\n\t// classes\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tcheckboxComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","<label class=\"flex cursor-pointer items-center justify-start gap-4\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\t[class]=\"componentClass\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.name]=\"name()\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\">{{ label() }}</span>\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAAA;AAOA,MAAM,iBAAiB,GAAG,GAAG,CAAC,CAAC,UAAU,EAAE,kBAAkB,CAAC,EAAE;AAC/D,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,KAAK,EAAE,CAAC,gBAAgB,CAAC;YACzB,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,IAAI,EAAE,CAAC,eAAe,CAAC;AACvB,SAAA;AACD,QAAA,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,aAAa,CAAC;YACnB,EAAE,EAAE,CAAC,aAAa,CAAC;YACnB,EAAE,EAAE,CAAC,aAAa,CAAC;YACnB,EAAE,EAAE,CAAC,aAAa,CAAC;AACnB,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE,EAAE;AACpB,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,IAAI,EAAE,IAAI;AACV,KAAA;AACD,CAAA,CAAC,CAAC;MAwBU,iBAAiB,CAAA;;IAE7B,OAAO,GAAG,KAAK,EAAwB,CAAC;IACxC,IAAI,GAAG,KAAK,EAAqB,CAAC;AAClC,IAAA,OAAO,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC5B,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC1B,IAAA,IAAI,GAAG,KAAK,CAAgB,IAAI,CAAC,CAAC;AAElC,IAAA,KAAK,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;;AAGtB,IAAA,eAAe,GAAQ,MAAK,GAAG,CAAC;AAChC,IAAA,cAAc,G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EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qZAAA,EAAA,CAAA;;;AElDhD;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-forms-checkbox.mjs","sources":["../../../projects/sdk/components/forms/checkbox/src/checkbox.component.ts","../../../projects/sdk/components/forms/checkbox/src/checkbox.component.html","../../../projects/sdk/components/forms/checkbox/sixbell-telco-sdk-components-forms-checkbox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ChangeDetectionStrategy, Component, input, model, output } from '@angular/core';\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst checkboxComponent = cva(['checkbox', 'border-secondary'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['checkbox-primary'],\n\t\t\tsuccess: ['checkbox-success'],\n\t\t\terror: ['checkbox-error'],\n\t\t\twarning: ['checkbox-warning'],\n\t\t\tinfo: ['checkbox-info'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['checkbox-xs'],\n\t\t\tsm: ['checkbox-sm'],\n\t\t\tmd: ['checkbox-md'],\n\t\t\tlg: ['checkbox-lg'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tsize: 'md',\n\t},\n});\n\nexport type CheckboxVariantProps = 'primary' | 'success' | 'error' | 'warning' | 'info' | null | undefined;\nexport type CheckboxSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type CheckboxProps = {\n\tvariant?: CheckboxVariantProps;\n\tsize?: CheckboxSizeProps;\n};\n\n@Component({\n\tselector: 'st-checkbox',\n\tstandalone: true,\n\timports: [FormsModule, TypographyDirective],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: CheckboxComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CheckboxComponent implements ControlValueAccessor {\n\t// Base checkbox properties\n\tvariant = input<CheckboxVariantProps>();\n\tsize = input<CheckboxSizeProps>();\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\tname = input<string | null>(null);\n\n\tvalue = model<boolean>(false);\n\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState?(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// Change handler\n\tonChange = output<boolean>();\n\thandleChange(): void {\n\t\tthis.onControlChange(this.value());\n\t\tthis.onChange.emit(this.value());\n\t}\n\n\t// Blur handler\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n\n\t// classes\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tcheckboxComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","<label class=\"flex cursor-pointer items-center justify-start gap-4\">\n\t<input\n\t\ttype=\"checkbox\"\n\t\t[class]=\"componentClass\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t[attr.name]=\"name()\"\n\t\t(change)=\"handleChange()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\">{{ label() }}</span>\n</label>\n","/**\n * Generated bundle index. Do not edit.\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componentClass;
148
148
  }
149
149
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ComboboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
150
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ComboboxComponent, isStandalone: true, selector: "app-combobox", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, emptyOptionText: { classPropertyName: "emptyOptionText", publicName: "emptyOptionText", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", 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: { value: "valueChange", disabled: "disabledChange", onChange: "onChange", onSearch: "onSearch" }, providers: [
150
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ComboboxComponent, isStandalone: true, selector: "st-combobox", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, emptyOptionText: { classPropertyName: "emptyOptionText", publicName: "emptyOptionText", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", 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: { value: "valueChange", disabled: "disabledChange", onChange: "onChange", onSearch: "onSearch" }, providers: [
151
151
  {
152
152
  provide: NG_VALUE_ACCESSOR,
153
153
  useExisting: ComboboxComponent,
154
154
  multi: true,
155
155
  },
156
- ], ngImport: i0, template: "<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\u00FAn 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", dependencies: [{ kind: "ngmodule", type: NgSelectModule }, { kind: "component", type: i1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "ariaLabel", "markFirst", "placeholder", "fixedPlaceholder", "notFoundText", "typeToSearchText", "preventToggleOnRightClick", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "ngClass", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "deselectOnClick", "keyDownFn"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: i1.NgOptionComponent, selector: "ng-option", inputs: ["value", "disabled"] }, { kind: "directive", type: i1.NgHeaderTemplateDirective, selector: "[ng-header-tmp]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "ngmodule", type: ReactiveFormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
156
+ ], ngImport: i0, template: "<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\u00FAn 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<st-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", dependencies: [{ kind: "ngmodule", type: NgSelectModule }, { kind: "component", type: i1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "ariaLabel", "markFirst", "placeholder", "fixedPlaceholder", "notFoundText", "typeToSearchText", "preventToggleOnRightClick", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "ngClass", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "deselectOnClick", "keyDownFn"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: i1.NgOptionComponent, selector: "ng-option", inputs: ["value", "disabled"] }, { kind: "directive", type: i1.NgHeaderTemplateDirective, selector: "[ng-header-tmp]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: InputComponent, selector: "st-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: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "ngmodule", type: ReactiveFormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
157
157
  }
158
158
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ComboboxComponent, decorators: [{
159
159
  type: Component,
160
- args: [{ selector: 'app-combobox', standalone: true, imports: [NgSelectModule, FormsModule, InputComponent, TypographyDirective, ReactiveFormsModule], providers: [
160
+ args: [{ selector: 'st-combobox', standalone: true, imports: [NgSelectModule, FormsModule, InputComponent, TypographyDirective, ReactiveFormsModule], providers: [
161
161
  {
162
162
  provide: NG_VALUE_ACCESSOR,
163
163
  useExisting: ComboboxComponent,
164
164
  multi: true,
165
165
  },
166
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<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\u00FAn 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" }]
166
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<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\u00FAn 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<st-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" }]
167
167
  }] });
168
168
 
169
169
  /**
@@ -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 { 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,kDAAkD,CAAC;AAChE,SAAA;AACD,QAAA,MAAM,EAAE;AACP,YAAA,GAAG,EAAE,CAAC,iCAAiC,EAAE,qCAAqC,CAAC;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,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;;;;"}
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: 'st-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<st-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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CAAA,aAAA,EAAA,gBAAA,EAAA,SAAA,EAAA,QAAA,EAAA,kBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,SAAA,CAAA,EAAA,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,aAAa,EACX,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,mwDAAA,EAAA,CAAA;;;AEnEhD;;AAEG;;;;"}
@@ -182,23 +182,23 @@ class DatepickerComponent {
182
182
  }
183
183
  }
184
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: [
185
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: DatepickerComponent, isStandalone: true, selector: "st-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: "<!-- 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"] }] });
191
+ ], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<st-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<st-icon class=\"text-secondary-content\" [iconName]=\"'angle-left'\" color=\"inherit\">></st-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<st-icon class=\"text-secondary-content\" [iconName]=\"'angle-right'\" color=\"inherit\"></st-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: "st-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: "st-icon", inputs: ["color", "size", "classes", "iconName"] }] });
192
192
  }
193
193
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: DatepickerComponent, decorators: [{
194
194
  type: Component,
195
- args: [{ selector: 'app-datepicker', standalone: true, imports: [CommonModule, FormsModule, InputComponent, DatepickerFormatMonthPipe, IconComponent], providers: [
195
+ args: [{ selector: 'st-datepicker', standalone: true, imports: [CommonModule, FormsModule, InputComponent, DatepickerFormatMonthPipe, IconComponent], providers: [
196
196
  {
197
197
  provide: NG_VALUE_ACCESSOR,
198
198
  useExisting: DatepickerComponent,
199
199
  multi: true,
200
200
  },
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"] }]
201
+ ], template: "<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<st-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<st-icon class=\"text-secondary-content\" [iconName]=\"'angle-left'\" color=\"inherit\">></st-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<st-icon class=\"text-secondary-content\" [iconName]=\"'angle-right'\" color=\"inherit\"></st-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","<!-- 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,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AAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FASjF,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAd/B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAGd,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,yBAAyB,EAAE,aAAa,CAAC,EACnF,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,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;;;;"}
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: 'st-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<st-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<st-icon class=\"text-secondary-content\" [iconName]=\"'angle-left'\" color=\"inherit\">></st-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<st-icon class=\"text-secondary-content\" [iconName]=\"'angle-right'\" color=\"inherit\"></st-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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AA,kBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,yBAAyB,EAAA,IAAA,EAAA,uBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FASjF,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAd/B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,eAAe,EAGb,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,yBAAyB,EAAE,aAAa,CAAC,EACnF,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAqB,mBAAA;AAChC,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,oiDAAA,EAAA,MAAA,EAAA,CAAA,2zCAAA,CAAA,EAAA,CAAA;;;AElCF;;AAEG;;;;"}
@@ -24,11 +24,11 @@ class FormErrorsComponent {
24
24
  return null;
25
25
  });
26
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"] }] });
27
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: FormErrorsComponent, isStandalone: true, selector: "st-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
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[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" }]
31
+ args: [{ selector: 'st-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
  /**