@sixbell-telco/sdk 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +96 -55
  3. package/assets/styles/combobox.scss +17 -17
  4. package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -2
  5. package/components/avatar/src/avatar.component.d.ts +11 -18
  6. package/components/button/src/button.component.d.ts +12 -19
  7. package/components/card/card-actions/card-actions.component.d.ts +8 -0
  8. package/components/card/card-content/card-content.component.d.ts +5 -0
  9. package/components/card/card-title/card-title.component.d.ts +5 -0
  10. package/components/card/public-api.d.ts +3 -0
  11. package/components/card/src/card.component.d.ts +19 -20
  12. package/components/countdown/src/countdown.component.d.ts +6 -1
  13. package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +10 -0
  14. package/components/dropdown/public-api.d.ts +1 -0
  15. package/components/dropdown/src/dropdown.component.d.ts +24 -42
  16. package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +2 -5
  17. package/components/forms/checkbox/src/checkbox.component.d.ts +2 -3
  18. package/components/forms/input/src/input.component.d.ts +7 -8
  19. package/components/forms/radio/src/radio.component.d.ts +2 -6
  20. package/components/forms/select/src/select.component.d.ts +5 -8
  21. package/components/forms/textarea/src/textarea.component.d.ts +5 -11
  22. package/components/link/src/link.component.d.ts +18 -45
  23. package/components/modal/modal-actions/modal-actions.component.d.ts +8 -0
  24. package/components/modal/modal-content/modal-content.component.d.ts +5 -0
  25. package/components/modal/modal-title/modal-title.component.d.ts +5 -0
  26. package/components/modal/public-api.d.ts +3 -0
  27. package/components/modal/src/modal.component.d.ts +7 -13
  28. package/components/product-card/src/product-card.component.d.ts +5 -9
  29. package/components/tab/src/tab.component.d.ts +1 -2
  30. package/directives/click-outside/index.d.ts +5 -0
  31. package/directives/click-outside/public-api.d.ts +1 -0
  32. package/directives/click-outside/src/click-outside.directive.d.ts +10 -0
  33. package/directives/typography/src/typography.directive.d.ts +3 -4
  34. package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +5 -6
  35. package/esm2022/components/avatar/src/avatar.component.mjs +27 -43
  36. package/esm2022/components/button/src/button.component.mjs +12 -22
  37. package/esm2022/components/card/card-actions/card-actions.component.mjs +22 -0
  38. package/esm2022/components/card/card-content/card-content.component.mjs +12 -0
  39. package/esm2022/components/card/card-title/card-title.component.mjs +12 -0
  40. package/esm2022/components/card/public-api.mjs +4 -1
  41. package/esm2022/components/card/src/card.component.mjs +20 -45
  42. package/esm2022/components/countdown/src/countdown.component.mjs +10 -3
  43. package/esm2022/components/dropdown/dropdown-item/dropdown-item.component.mjs +24 -0
  44. package/esm2022/components/dropdown/public-api.mjs +2 -1
  45. package/esm2022/components/dropdown/src/dropdown.component.mjs +65 -101
  46. package/esm2022/components/dual-list/src/dual-list.component.mjs +3 -3
  47. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +3 -3
  48. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +3 -7
  49. package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +9 -8
  50. package/esm2022/components/forms/combobox/src/combobox.component.mjs +3 -3
  51. package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +2 -2
  52. package/esm2022/components/forms/form-error/src/form-error.component.mjs +3 -3
  53. package/esm2022/components/forms/input/src/input.component.mjs +51 -45
  54. package/esm2022/components/forms/radio/src/radio.component.mjs +5 -18
  55. package/esm2022/components/forms/range/src/range.component.mjs +3 -3
  56. package/esm2022/components/forms/select/src/select.component.mjs +24 -34
  57. package/esm2022/components/forms/switch/src/switch.component.mjs +3 -3
  58. package/esm2022/components/forms/textarea/src/textarea.component.mjs +35 -48
  59. package/esm2022/components/forms/toggle/src/toggle.component.mjs +3 -3
  60. package/esm2022/components/link/src/link.component.mjs +27 -183
  61. package/esm2022/components/modal/modal-actions/modal-actions.component.mjs +22 -0
  62. package/esm2022/components/modal/modal-content/modal-content.component.mjs +12 -0
  63. package/esm2022/components/modal/modal-title/modal-title.component.mjs +13 -0
  64. package/esm2022/components/modal/public-api.mjs +4 -1
  65. package/esm2022/components/modal/src/modal.component.mjs +22 -31
  66. package/esm2022/components/notification/src/notification.component.mjs +2 -5
  67. package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +24 -24
  68. package/esm2022/components/product-card/src/product-card.component.mjs +5 -14
  69. package/esm2022/components/progress/src/progress.component.mjs +3 -3
  70. package/esm2022/components/tab/src/tab.component.mjs +2 -4
  71. package/esm2022/components/table/src/table.component.mjs +4 -4
  72. package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +1 -1
  73. package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +1 -1
  74. package/esm2022/components/toast/toast-message/toast-message.component.mjs +4 -4
  75. package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +4 -4
  76. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +3 -3
  77. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +3 -3
  78. package/esm2022/directives/click-outside/public-api.mjs +2 -0
  79. package/esm2022/directives/click-outside/sixbell-telco-sdk-directives-click-outside.mjs +5 -0
  80. package/esm2022/directives/click-outside/src/click-outside.directive.mjs +30 -0
  81. package/esm2022/directives/typography/src/typography.directive.mjs +19 -18
  82. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +4 -5
  83. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  84. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +26 -42
  85. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  86. package/fesm2022/sixbell-telco-sdk-components-button.mjs +11 -21
  87. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  88. package/fesm2022/sixbell-telco-sdk-components-card.mjs +57 -46
  89. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  90. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +9 -2
  91. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  92. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +86 -101
  93. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  94. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +2 -2
  95. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  96. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +2 -2
  97. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
  98. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +2 -6
  99. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
  100. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +8 -7
  101. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  102. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
  103. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  104. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +1 -1
  105. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
  106. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
  107. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  108. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +51 -45
  109. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  110. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +4 -17
  111. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  112. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +2 -2
  113. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  114. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +23 -33
  115. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  116. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
  117. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  118. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +34 -47
  119. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  120. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
  121. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  122. package/fesm2022/sixbell-telco-sdk-components-link.mjs +27 -183
  123. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  124. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +62 -33
  125. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
  126. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +1 -4
  127. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  128. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +23 -23
  129. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  130. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +4 -13
  131. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  132. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
  133. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  134. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +1 -3
  135. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  136. package/fesm2022/sixbell-telco-sdk-components-table.mjs +5 -5
  137. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  138. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +3 -3
  139. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  140. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +7 -7
  141. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  142. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +37 -0
  143. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -0
  144. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +18 -17
  145. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
  146. package/package.json +13 -7
@@ -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 { matKeyboardArrowLeftOutline, matKeyboardArrowRightOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\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\ticonArrowLeft = matKeyboardArrowLeftOutline;\n\ticonArrowRight = matKeyboardArrowRightOutline;\n\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\" [icon]=\"iconArrowLeft\" 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\" [icon]=\"iconArrowRight\" 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,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC1G;wG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A,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,MAAA,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,8hDAAA,EAAA,MAAA,EAAA,CAAA,2zCAAA,CAAA,EAAA,CAAA;;;AEnCF;;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 { matKeyboardArrowLeftOutline, matKeyboardArrowRightOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\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\ticonArrowLeft = matKeyboardArrowLeftOutline;\n\ticonArrowRight = matKeyboardArrowRightOutline;\n\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\" [icon]=\"iconArrowLeft\" 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\" [icon]=\"iconArrowRight\" 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>\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
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: "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"] }] });
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 typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'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: ["tyVariant", "tyColor", "tyFontWeight"] }] });
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: '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" }]
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 typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t@if (formControl()?.errors && (formControl().dirty || formControl().touched)) {\n\t\t\t@if (formControl().getError('required')) {\n\t\t\t\t{{ isRequired() ?? '* Este campo es requerido' }}\n\t\t\t} @else if (formControl().getError('minlength')) {\n\t\t\t\t{{ isMinLength() ?? '* Este campo debe tener al menos ' + formControl().getError('minlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('maxlength')) {\n\t\t\t\t{{ isMaxLength() ?? '* Este campo no debe superar los ' + formControl().getError('maxlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('min')) {\n\t\t\t\t{{ isMin() ?? '* El n\u00FAmero ingresado debe ser mayor o igual a ' + formControl().getError('min').min }}\n\t\t\t} @else if (formControl().getError('max')) {\n\t\t\t\t{{ isMax() ?? '* El n\u00FAmero ingresado debe ser menor o igual a ' + formControl().getError('max').max }}\n\t\t\t} @else if (formControl().getError('pattern')) {\n\t\t\t\t{{ isPattern() ?? '* El campo no cumple con el formato requerido' }}\n\t\t\t} @else if (formControl().getError('email')) {\n\t\t\t\t{{ isEmail() ?? '* El email ingresado no es v\u00E1lido' }}\n\t\t\t} @else if (customError()) {\n\t\t\t\t{{ customError() }}\n\t\t\t}\n\t\t} @else {\n\t\t\t''\n\t\t}\n\t</span>\n</div>\n" }]
32
32
  }] });
33
33
 
34
34
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-forms-form-error.mjs","sources":["../../../projects/sdk/components/forms/form-error/src/form-error.component.ts","../../../projects/sdk/components/forms/form-error/src/form-error.component.html","../../../projects/sdk/components/forms/form-error/sixbell-telco-sdk-components-forms-form-error.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\nimport { FormControl, FormGroup } from '@angular/forms';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n@Component({\n\tselector: 'st-form-errors',\n\tstandalone: true,\n\timports: [TypographyDirective],\n\ttemplateUrl: './form-error.component.html',\n})\nexport class FormErrorsComponent {\n\t// Main properties\n\tparentForm = input.required<FormGroup>();\n\tformField = input.required<string>();\n\n\t// Custom messages\n\tisRequired = input<string | undefined>(undefined);\n\tisMinLength = input<string | undefined>(undefined);\n\tisMaxLength = input<string | undefined>(undefined);\n\tisMin = input<string | undefined>(undefined);\n\tisMax = input<string | undefined>(undefined);\n\tisPattern = input<string | undefined>(undefined);\n\tisEmail = input<string | undefined>(undefined);\n\n\tformControl = computed(() => this.parentForm().get(this.formField()) as FormControl);\n\tcustomError = computed(() => {\n\t\tconst errors = this.formControl()?.errors;\n\t\tconst keys = Object.keys(errors || {});\n\n\t\tif (keys.length > 0) {\n\t\t\treturn this.formControl().getError(keys[0]);\n\t\t}\n\n\t\treturn null;\n\t});\n}\n","<div\n\t[class]=\"\n\t\t!(formControl()?.errors && (formControl().dirty || formControl().touched))\n\t\t\t? 'invisible flex select-none items-center justify-start px-1 text-error opacity-0 transition-opacity duration-300 ease-ease-out-back'\n\t\t\t: 'visible flex select-none items-center justify-start px-1 text-error opacity-100 transition-opacity duration-300 ease-ease-out-back'\n\t\"\n>\n\t<span classes=\"label-text-alt\" typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t@if (formControl()?.errors && (formControl().dirty || formControl().touched)) {\n\t\t\t@if (formControl().getError('required')) {\n\t\t\t\t{{ isRequired() ?? '* Este campo es requerido' }}\n\t\t\t} @else if (formControl().getError('minlength')) {\n\t\t\t\t{{ isMinLength() ?? '* Este campo debe tener al menos ' + formControl().getError('minlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('maxlength')) {\n\t\t\t\t{{ isMaxLength() ?? '* Este campo no debe superar los ' + formControl().getError('maxlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('min')) {\n\t\t\t\t{{ isMin() ?? '* El número ingresado debe ser mayor o igual a ' + formControl().getError('min').min }}\n\t\t\t} @else if (formControl().getError('max')) {\n\t\t\t\t{{ isMax() ?? '* El número ingresado debe ser menor o igual a ' + formControl().getError('max').max }}\n\t\t\t} @else if (formControl().getError('pattern')) {\n\t\t\t\t{{ isPattern() ?? '* El campo no cumple con el formato requerido' }}\n\t\t\t} @else if (formControl().getError('email')) {\n\t\t\t\t{{ isEmail() ?? '* El email ingresado no es válido' }}\n\t\t\t} @else if (customError()) {\n\t\t\t\t{{ customError() }}\n\t\t\t}\n\t\t} @else {\n\t\t\t''\n\t\t}\n\t</span>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAUa,mBAAmB,CAAA;;AAE/B,IAAA,UAAU,GAAG,KAAK,CAAC,QAAQ,EAAa,CAAC;AACzC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;;AAGrC,IAAA,UAAU,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAClD,IAAA,WAAW,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AACnD,IAAA,WAAW,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AACnD,IAAA,KAAK,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAC7C,IAAA,KAAK,GAAG,KAA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B,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EACd,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,mBAAmB,CAAC,EAAA,QAAA,EAAA,yzDAAA,EAAA,CAAA;;;AEP/B;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-forms-form-error.mjs","sources":["../../../projects/sdk/components/forms/form-error/src/form-error.component.ts","../../../projects/sdk/components/forms/form-error/src/form-error.component.html","../../../projects/sdk/components/forms/form-error/sixbell-telco-sdk-components-forms-form-error.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\nimport { FormControl, FormGroup } from '@angular/forms';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n@Component({\n\tselector: 'st-form-errors',\n\tstandalone: true,\n\timports: [TypographyDirective],\n\ttemplateUrl: './form-error.component.html',\n})\nexport class FormErrorsComponent {\n\t// Main properties\n\tparentForm = input.required<FormGroup>();\n\tformField = input.required<string>();\n\n\t// Custom messages\n\tisRequired = input<string | undefined>(undefined);\n\tisMinLength = input<string | undefined>(undefined);\n\tisMaxLength = input<string | undefined>(undefined);\n\tisMin = input<string | undefined>(undefined);\n\tisMax = input<string | undefined>(undefined);\n\tisPattern = input<string | undefined>(undefined);\n\tisEmail = input<string | undefined>(undefined);\n\n\tformControl = computed(() => this.parentForm().get(this.formField()) as FormControl);\n\tcustomError = computed(() => {\n\t\tconst errors = this.formControl()?.errors;\n\t\tconst keys = Object.keys(errors || {});\n\n\t\tif (keys.length > 0) {\n\t\t\treturn this.formControl().getError(keys[0]);\n\t\t}\n\n\t\treturn null;\n\t});\n}\n","<div\n\t[class]=\"\n\t\t!(formControl()?.errors && (formControl().dirty || formControl().touched))\n\t\t\t? 'invisible flex select-none items-center justify-start px-1 text-error opacity-0 transition-opacity duration-300 ease-ease-out-back'\n\t\t\t: 'visible flex select-none items-center justify-start px-1 text-error opacity-100 transition-opacity duration-300 ease-ease-out-back'\n\t\"\n>\n\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t@if (formControl()?.errors && (formControl().dirty || formControl().touched)) {\n\t\t\t@if (formControl().getError('required')) {\n\t\t\t\t{{ isRequired() ?? '* Este campo es requerido' }}\n\t\t\t} @else if (formControl().getError('minlength')) {\n\t\t\t\t{{ isMinLength() ?? '* Este campo debe tener al menos ' + formControl().getError('minlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('maxlength')) {\n\t\t\t\t{{ isMaxLength() ?? '* Este campo no debe superar los ' + formControl().getError('maxlength').requiredLength + ' caracteres' }}\n\t\t\t} @else if (formControl().getError('min')) {\n\t\t\t\t{{ isMin() ?? '* El número ingresado debe ser mayor o igual a ' + formControl().getError('min').min }}\n\t\t\t} @else if (formControl().getError('max')) {\n\t\t\t\t{{ isMax() ?? '* El número ingresado debe ser menor o igual a ' + formControl().getError('max').max }}\n\t\t\t} @else if (formControl().getError('pattern')) {\n\t\t\t\t{{ isPattern() ?? '* El campo no cumple con el formato requerido' }}\n\t\t\t} @else if (formControl().getError('email')) {\n\t\t\t\t{{ isEmail() ?? '* El email ingresado no es válido' }}\n\t\t\t} @else if (customError()) {\n\t\t\t\t{{ customError() }}\n\t\t\t}\n\t\t} @else {\n\t\t\t''\n\t\t}\n\t</span>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAUa,mBAAmB,CAAA;;AAE/B,IAAA,UAAU,GAAG,KAAK,CAAC,QAAQ,EAAa,CAAC;AACzC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;;AAGrC,IAAA,UAAU,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAClD,IAAA,WAAW,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AACnD,IAAA,WAAW,GAAG,KAAK,CAAqB,SAA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WAAA,EAAA,SAAA,EAAA,cAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAGjB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EACd,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,mBAAmB,CAAC,EAAA,QAAA,EAAA,swDAAA,EAAA,CAAA;;;AEP/B;;AAEG;;;;"}
@@ -1,46 +1,42 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, model, output, effect, Component } from '@angular/core';
2
+ import { input, output, model, effect, Component } from '@angular/core';
3
3
  import { toObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import * as i1 from '@angular/forms';
5
5
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
6
6
  import { IconComponent } from '@sixbell-telco/sdk/components/icon';
7
- import { matSearchOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
8
7
  import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
9
8
  import { cn } from '@sixbell-telco/sdk/utils/cn';
10
9
  import { cva } from 'class-variance-authority';
11
10
  import { Subject, switchMap, skip, debounceTime, distinctUntilChanged } from 'rxjs';
12
11
 
13
12
  /* eslint-disable @typescript-eslint/no-explicit-any */
14
- const inputComponent = cva(['min-h-[auto]', 'h-auto', 'font-body', 'text-base', 'transition', 'duration-300', 'ease-ease-out-back', 'w-full'], {
13
+ const inputComponent = cva([
14
+ 'font-body',
15
+ 'transition',
16
+ 'duration-300',
17
+ 'ease-ease-out-back',
18
+ 'w-full',
19
+ 'rounded-btn',
20
+ 'input',
21
+ 'placeholder:placeholder-base-placeholder',
22
+ 'leading-normal',
23
+ ], {
15
24
  variants: {
16
25
  variant: {
17
- primary: ['input', 'input-primary'],
18
- secondary: ['input', 'input-secondary'],
19
- success: ['input', 'input-success'],
20
- error: ['input', 'input-error'],
21
- warning: ['input', 'input-warning'],
22
- icon: ['input', 'input-bordered', 'flex', 'items-center', 'gap-2'],
23
- 'icon-ghost': [
24
- 'input',
25
- 'focus:border-transparent',
26
- 'focus:outline-transparent',
27
- 'focus-within:border-transparent',
28
- 'focus-within:outline-transparent',
29
- 'flex',
30
- 'items-center',
31
- 'gap-2',
32
- ],
33
- },
34
- shape: {
35
- 'round-none': ['rounded-none'],
36
- 'round-sm': ['rounded-btn-sm'],
37
- 'round-md': ['rounded-btn-md'],
38
- 'round-lg': ['rounded-btn-lg'],
26
+ primary: ['input-primary'],
27
+ secondary: ['input-secondary'],
28
+ tertiary: ['input-tertiary'],
29
+ accent: ['input-accent'],
30
+ info: ['input-info'],
31
+ success: ['input-success'],
32
+ warning: ['input-warning'],
33
+ error: ['input-error'],
39
34
  },
40
35
  size: {
41
- sm: ['px-2', 'py-1'],
42
- md: ['px-3', 'py-2'],
43
- lg: ['px-4', 'py-3'],
36
+ xs: ['input-xs', 'text-xs'],
37
+ sm: ['input-sm', 'text-sm'],
38
+ md: ['input-md', 'text-base'],
39
+ lg: ['input-lg', 'text-lg'],
44
40
  },
45
41
  iconPosition: {
46
42
  left: ['flex-row'],
@@ -50,7 +46,6 @@ const inputComponent = cva(['min-h-[auto]', 'h-auto', 'font-body', 'text-base',
50
46
  compoundVariants: [],
51
47
  defaultVariants: {
52
48
  variant: 'secondary',
53
- shape: 'round-sm',
54
49
  size: 'md',
55
50
  iconPosition: 'left',
56
51
  },
@@ -58,9 +53,7 @@ const inputComponent = cva(['min-h-[auto]', 'h-auto', 'font-body', 'text-base',
58
53
  class InputComponent {
59
54
  // Base input properties
60
55
  variant = input('secondary');
61
- shape = input('round-sm');
62
56
  size = input('md');
63
- classes = input('');
64
57
  label = input('');
65
58
  type = input('text');
66
59
  name = input(null);
@@ -69,7 +62,9 @@ class InputComponent {
69
62
  iconPosition = input('left');
70
63
  iconClasses = input('');
71
64
  readonly = input(false);
72
- fallbackIcon = matSearchOutline;
65
+ iconClickable = input(false);
66
+ ghost = input(false);
67
+ onIconClick = output();
73
68
  // Input value model
74
69
  value = model('');
75
70
  // Form control properties
@@ -129,32 +124,41 @@ class InputComponent {
129
124
  this.onDebounceChange.emit(`${value}`);
130
125
  });
131
126
  }
127
+ handleIconClick() {
128
+ this.onIconClick.emit();
129
+ }
132
130
  get componentClass() {
133
131
  return cn(inputComponent({
134
132
  variant: this.variant(),
135
- shape: this.shape(),
136
133
  size: this.size(),
137
134
  iconPosition: this.iconPosition(),
138
- class: this.classes(),
139
- }));
135
+ }), {
136
+ 'flex items-center gap-2': this.icon(),
137
+ 'input-bordered': !this.ghost(),
138
+ 'focus:border-transparent focus:outline-transparent focus-within:border-transparent focus-within:outline-transparent': this.ghost(),
139
+ });
140
140
  }
141
141
  get errorClass() {
142
142
  return cn(inputComponent({
143
143
  variant: 'error',
144
- shape: this.shape(),
145
144
  size: this.size(),
146
145
  iconPosition: this.iconPosition(),
147
- class: this.classes(),
148
- }));
146
+ }), {
147
+ 'flex items-center gap-2': this.icon(),
148
+ 'input-bordered': !this.ghost(),
149
+ 'focus:border-transparent focus:outline-transparent focus-within:border-transparent focus-within:outline-transparent': this.ghost(),
150
+ });
149
151
  }
150
152
  get successClass() {
151
153
  return cn(inputComponent({
152
154
  variant: 'success',
153
- shape: this.shape(),
154
155
  size: this.size(),
155
156
  iconPosition: this.iconPosition(),
156
- class: this.classes(),
157
- }));
157
+ }), {
158
+ 'flex items-center gap-2': this.icon(),
159
+ 'input-bordered': !this.ghost(),
160
+ 'focus:border-transparent focus:outline-transparent focus-within:border-transparent focus-within:outline-transparent': this.ghost(),
161
+ });
158
162
  }
159
163
  get validationClass() {
160
164
  if (!this.formField)
@@ -170,16 +174,18 @@ class InputComponent {
170
174
  return this.componentClass;
171
175
  }
172
176
  get iconClass() {
173
- return cn({ 'text-primary': this.variant() === 'primary' }, { 'text-secondary': this.variant() === 'secondary' }, { 'text-secondary': this.variant() === 'icon' }, { 'text-secondary': this.variant() === 'icon-ghost' }, this.iconClasses());
177
+ return cn({
178
+ 'cursor-pointer hover:opacity-90 active:hover:scale-95 active:hover:[animation:_button-pop_0s_ease-out] active:focus:scale-95 active:focus:[animation:_button-pop_0s_ease-out]': this.iconClickable(),
179
+ });
174
180
  }
175
181
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
176
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: InputComponent, isStandalone: true, selector: "st-input", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, iconClasses: { classPropertyName: "iconClasses", publicName: "iconClasses", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", onEnter: "onEnter", onBlur: "onBlur", onDebounceChange: "onDebounceChange" }, providers: [
182
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: InputComponent, isStandalone: true, selector: "st-input", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, iconClasses: { classPropertyName: "iconClasses", publicName: "iconClasses", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, iconClickable: { classPropertyName: "iconClickable", publicName: "iconClickable", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onIconClick: "onIconClick", value: "valueChange", disabled: "disabledChange", onEnter: "onEnter", onBlur: "onBlur", onDebounceChange: "onDebounceChange" }, providers: [
177
183
  {
178
184
  provide: NG_VALUE_ACCESSOR,
179
185
  useExisting: InputComponent,
180
186
  multi: true,
181
187
  },
182
- ], ngImport: i0, template: "@let variantVar = this.variant();\n@let iconVar = this.icon();\n\n@if (variantVar === 'primary' || variantVar === 'secondary' || variantVar === 'success' || variantVar === 'error' || variantVar === 'warning') {\n\t<div class=\"flex flex-col gap-1\">\n\t\t@if (label()) {\n\t\t\t<label [for]=\"this.name()\">\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t</label>\n\t\t}\n\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\n\t\t<ng-content></ng-content>\n\t</div>\n} @else if (variantVar === 'icon' || variantVar === 'icon-ghost') {\n\t<label [class]=\"componentClass\">\n\t\t<st-icon [classes]=\"iconClass\" [icon]=\"iconVar ?? fallbackIcon\" size=\"md\"></st-icon>\n\t\t<input\n\t\t\tclass=\"grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t</label>\n} @else {\n\t<input\n\t\t[class]=\"componentClass\"\n\t\t[type]=\"type()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(keyup.enter)=\"handleEnter()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n}\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }] });
188
+ ], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n@let iconVar = this.icon();\n\n<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\">\n\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t</label>\n\t}\n\n\t@if (iconVar) {\n\t\t<div [class]=\"componentClass\">\n\t\t\t@if (iconVar) {\n\t\t\t\t<div [class]=\"iconClass\" (click)=\"handleIconClick()\" role=\"button\" tabindex=\"0\">\n\t\t\t\t\t<st-icon [icon]=\"iconVar\" size=\"md\"></st-icon>\n\t\t\t\t</div>\n\t\t\t}\n\t\t\t<input\n\t\t\t\tclass=\"grow placeholder:placeholder-base-placeholder\"\n\t\t\t\t[type]=\"type()\"\n\t\t\t\t[attr.name]=\"name()\"\n\t\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t\t[(ngModel)]=\"value\"\n\t\t\t\t[disabled]=\"disabled()\"\n\t\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t\t(blur)=\"handleBlur()\"\n\t\t\t/>\n\t\t</div>\n\t} @else {\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t}\n</div>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }] });
183
189
  }
184
190
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: InputComponent, decorators: [{
185
191
  type: Component,
@@ -189,7 +195,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
189
195
  useExisting: InputComponent,
190
196
  multi: true,
191
197
  },
192
- ], template: "@let variantVar = this.variant();\n@let iconVar = this.icon();\n\n@if (variantVar === 'primary' || variantVar === 'secondary' || variantVar === 'success' || variantVar === 'error' || variantVar === 'warning') {\n\t<div class=\"flex flex-col gap-1\">\n\t\t@if (label()) {\n\t\t\t<label [for]=\"this.name()\">\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t</label>\n\t\t}\n\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\n\t\t<ng-content></ng-content>\n\t</div>\n} @else if (variantVar === 'icon' || variantVar === 'icon-ghost') {\n\t<label [class]=\"componentClass\">\n\t\t<st-icon [classes]=\"iconClass\" [icon]=\"iconVar ?? fallbackIcon\" size=\"md\"></st-icon>\n\t\t<input\n\t\t\tclass=\"grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t</label>\n} @else {\n\t<input\n\t\t[class]=\"componentClass\"\n\t\t[type]=\"type()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(keyup.enter)=\"handleEnter()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n}\n" }]
198
+ ], template: "<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n@let iconVar = this.icon();\n\n<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\">\n\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t</label>\n\t}\n\n\t@if (iconVar) {\n\t\t<div [class]=\"componentClass\">\n\t\t\t@if (iconVar) {\n\t\t\t\t<div [class]=\"iconClass\" (click)=\"handleIconClick()\" role=\"button\" tabindex=\"0\">\n\t\t\t\t\t<st-icon [icon]=\"iconVar\" size=\"md\"></st-icon>\n\t\t\t\t</div>\n\t\t\t}\n\t\t\t<input\n\t\t\t\tclass=\"grow placeholder:placeholder-base-placeholder\"\n\t\t\t\t[type]=\"type()\"\n\t\t\t\t[attr.name]=\"name()\"\n\t\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t\t[(ngModel)]=\"value\"\n\t\t\t\t[disabled]=\"disabled()\"\n\t\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t\t(blur)=\"handleBlur()\"\n\t\t\t/>\n\t\t</div>\n\t} @else {\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t}\n</div>\n" }]
193
199
  }], ctorParameters: () => [] });
194
200
 
195
201
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-forms-input.mjs","sources":["../../../projects/sdk/components/forms/input/src/input.component.ts","../../../projects/sdk/components/forms/input/src/input.component.html","../../../projects/sdk/components/forms/input/sixbell-telco-sdk-components-forms-input.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Component, effect, input, model, output } from '@angular/core';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matSearchOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { Subject, debounceTime, distinctUntilChanged, skip, switchMap } from 'rxjs';\n\nconst inputComponent = cva(['min-h-[auto]', 'h-auto', 'font-body', 'text-base', 'transition', 'duration-300', 'ease-ease-out-back', 'w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['input', 'input-primary'],\n\t\t\tsecondary: ['input', 'input-secondary'],\n\t\t\tsuccess: ['input', 'input-success'],\n\t\t\terror: ['input', 'input-error'],\n\t\t\twarning: ['input', 'input-warning'],\n\t\t\ticon: ['input', 'input-bordered', 'flex', 'items-center', 'gap-2'],\n\t\t\t'icon-ghost': [\n\t\t\t\t'input',\n\t\t\t\t'focus:border-transparent',\n\t\t\t\t'focus:outline-transparent',\n\t\t\t\t'focus-within:border-transparent',\n\t\t\t\t'focus-within:outline-transparent',\n\t\t\t\t'flex',\n\t\t\t\t'items-center',\n\t\t\t\t'gap-2',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\tsm: ['px-2', 'py-1'],\n\t\t\tmd: ['px-3', 'py-2'],\n\t\t\tlg: ['px-4', 'py-3'],\n\t\t},\n\t\ticonPosition: {\n\t\t\tleft: ['flex-row'],\n\t\t\tright: ['flex-row-reverse'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tshape: 'round-sm',\n\t\tsize: 'md',\n\t\ticonPosition: 'left',\n\t},\n});\n\nexport type InputVariantProps = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'icon' | 'icon-ghost' | null | undefined;\nexport type InputShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type InputSizeProps = 'sm' | 'md' | 'lg' | null | undefined;\nexport type InputIconPositionProps = 'left' | 'right' | null | undefined;\n\nexport type InputProps = {\n\tvariant?: InputVariantProps;\n\tshape?: InputShapeProps;\n\tsize?: InputSizeProps;\n\ticonPosition?: InputIconPositionProps;\n};\n\ntype HTMLNativeInputType = 'text' | 'email' | 'number' | 'password' | 'file';\n\n@Component({\n\tselector: 'st-input',\n\tstandalone: true,\n\timports: [FormsModule, TypographyDirective, IconComponent],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: InputComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './input.component.html',\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputComponent implements ControlValueAccessor {\n\t// Base input properties\n\tvariant = input<InputVariantProps>('secondary');\n\tshape = input<InputShapeProps>('round-sm');\n\tsize = input<InputSizeProps>('md');\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\ttype = input<HTMLNativeInputType>('text');\n\tname = input<string | null>(null);\n\tplaceholder = input<string>('');\n\ticon = input<string | null>(null);\n\ticonPosition = input<InputIconPositionProps>('left');\n\ticonClasses = input<string>('');\n\treadonly = input<boolean>(false);\n\tfallbackIcon = matSearchOutline;\n\t// Input value model\n\tvalue = model<string>('');\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// Change handler\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Enter handler\n\tonEnter = output<string>();\n\thandleEnter() {\n\t\tthis.onEnter.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Blur handler\n\tonBlur = output<string>();\n\thandleBlur() {\n\t\tthis.onBlur.emit(this.value());\n\t\tthis.onControlTouch();\n\t}\n\n\t// Debounce\n\tonDebounceChange = output<string>();\n\tdebounceTime = input(500);\n\tdebounceAction$ = new Subject<number>();\n\n\tdebounceTimeEffect = effect(() => {\n\t\tthis.debounceAction$.next(this.debounceTime());\n\t});\n\n\tvalue$ = toObservable(this.value);\n\n\tconstructor() {\n\t\tthis.debounceAction$\n\t\t\t.pipe(\n\t\t\t\tswitchMap((time: number) =>\n\t\t\t\t\tthis.value$.pipe(\n\t\t\t\t\t\tskip(1), // skip 1 to avoid initial value being automatically emitted\n\t\t\t\t\t\tdebounceTime(time),\n\t\t\t\t\t\tdistinctUntilChanged(),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\ttakeUntilDestroyed(),\n\t\t\t)\n\t\t\t.subscribe((value) => {\n\t\t\t\tthis.onDebounceChange.emit(`${value}`);\n\t\t\t});\n\t}\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\ticonPosition: this.iconPosition(),\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\tinputComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\ticonPosition: this.iconPosition(),\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\tinputComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\ticonPosition: this.iconPosition(),\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\tget iconClass() {\n\t\treturn cn(\n\t\t\t{ 'text-primary': this.variant() === 'primary' },\n\t\t\t{ 'text-secondary': this.variant() === 'secondary' },\n\t\t\t{ 'text-secondary': this.variant() === 'icon' },\n\t\t\t{ 'text-secondary': this.variant() === 'icon-ghost' },\n\t\t\tthis.iconClasses(),\n\t\t);\n\t}\n}\n","@let variantVar = this.variant();\n@let iconVar = this.icon();\n\n@if (variantVar === 'primary' || variantVar === 'secondary' || variantVar === 'success' || variantVar === 'error' || variantVar === 'warning') {\n\t<div class=\"flex flex-col gap-1\">\n\t\t@if (label()) {\n\t\t\t<label [for]=\"this.name()\">\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t</label>\n\t\t}\n\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\n\t\t<ng-content></ng-content>\n\t</div>\n} @else if (variantVar === 'icon' || variantVar === 'icon-ghost') {\n\t<label [class]=\"componentClass\">\n\t\t<st-icon [classes]=\"iconClass\" [icon]=\"iconVar ?? fallbackIcon\" size=\"md\"></st-icon>\n\t\t<input\n\t\t\tclass=\"grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t</label>\n} @else {\n\t<input\n\t\t[class]=\"componentClass\"\n\t\t[type]=\"type()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(keyup.enter)=\"handleEnter()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA;AAWA,MAAM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MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAW7C,cAAc,EAAA,UAAA,EAAA,CAAA;kBAd1B,SAAS;+BACC,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,OAAA,EACP,CAAC,WAAW,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAC/C,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAgB,cAAA;AAC3B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,qsDAAA,EAAA,CAAA;;;AEhFF;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-forms-input.mjs","sources":["../../../projects/sdk/components/forms/input/src/input.component.ts","../../../projects/sdk/components/forms/input/src/input.component.html","../../../projects/sdk/components/forms/input/sixbell-telco-sdk-components-forms-input.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Component, effect, input, model, output } from '@angular/core';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { Subject, debounceTime, distinctUntilChanged, skip, switchMap } from 'rxjs';\n\nconst inputComponent = cva(\n\t[\n\t\t'font-body',\n\t\t'transition',\n\t\t'duration-300',\n\t\t'ease-ease-out-back',\n\t\t'w-full',\n\t\t'rounded-btn',\n\t\t'input',\n\t\t'placeholder:placeholder-base-placeholder',\n\t\t'leading-normal',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tprimary: ['input-primary'],\n\t\t\t\tsecondary: ['input-secondary'],\n\t\t\t\ttertiary: ['input-tertiary'],\n\t\t\t\taccent: ['input-accent'],\n\t\t\t\tinfo: ['input-info'],\n\t\t\t\tsuccess: ['input-success'],\n\t\t\t\twarning: ['input-warning'],\n\t\t\t\terror: ['input-error'],\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\txs: ['input-xs', 'text-xs'],\n\t\t\t\tsm: ['input-sm', 'text-sm'],\n\t\t\t\tmd: ['input-md', 'text-base'],\n\t\t\t\tlg: ['input-lg', 'text-lg'],\n\t\t\t},\n\t\t\ticonPosition: {\n\t\t\t\tleft: ['flex-row'],\n\t\t\t\tright: ['flex-row-reverse'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tvariant: 'secondary',\n\t\t\tsize: 'md',\n\t\t\ticonPosition: 'left',\n\t\t},\n\t},\n);\n\nexport type InputVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | null | undefined;\nexport type InputSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type InputIconPositionProps = 'left' | 'right' | null | undefined;\n\nexport type InputProps = {\n\tvariant?: InputVariantProps;\n\tsize?: InputSizeProps;\n\ticonPosition?: InputIconPositionProps;\n};\n\ntype HTMLNativeInputType = 'text' | 'email' | 'number' | 'password' | 'file';\n\n@Component({\n\tselector: 'st-input',\n\tstandalone: true,\n\timports: [FormsModule, TypographyDirective, IconComponent],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: InputComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './input.component.html',\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputComponent implements ControlValueAccessor {\n\t// Base input properties\n\tvariant = input<InputVariantProps>('secondary');\n\tsize = input<InputSizeProps>('md');\n\tlabel = input<string>('');\n\ttype = input<HTMLNativeInputType>('text');\n\tname = input<string | null>(null);\n\tplaceholder = input<string>('');\n\ticon = input<string | null>(null);\n\ticonPosition = input<InputIconPositionProps>('left');\n\ticonClasses = input<string>('');\n\treadonly = input<boolean>(false);\n\ticonClickable = input<boolean>(false);\n\tghost = input<boolean>(false);\n\tonIconClick = output<void>();\n\t// Input value model\n\tvalue = model<string>('');\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// Change handler\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Enter handler\n\tonEnter = output<string>();\n\thandleEnter() {\n\t\tthis.onEnter.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Blur handler\n\tonBlur = output<string>();\n\thandleBlur() {\n\t\tthis.onBlur.emit(this.value());\n\t\tthis.onControlTouch();\n\t}\n\n\t// Debounce\n\tonDebounceChange = output<string>();\n\tdebounceTime = input(500);\n\tdebounceAction$ = new Subject<number>();\n\n\tdebounceTimeEffect = effect(() => {\n\t\tthis.debounceAction$.next(this.debounceTime());\n\t});\n\n\tvalue$ = toObservable(this.value);\n\n\tconstructor() {\n\t\tthis.debounceAction$\n\t\t\t.pipe(\n\t\t\t\tswitchMap((time: number) =>\n\t\t\t\t\tthis.value$.pipe(\n\t\t\t\t\t\tskip(1), // skip 1 to avoid initial value being automatically emitted\n\t\t\t\t\t\tdebounceTime(time),\n\t\t\t\t\t\tdistinctUntilChanged(),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\ttakeUntilDestroyed(),\n\t\t\t)\n\t\t\t.subscribe((value) => {\n\t\t\t\tthis.onDebounceChange.emit(`${value}`);\n\t\t\t});\n\t}\n\n\thandleIconClick() {\n\t\tthis.onIconClick.emit();\n\t}\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'flex items-center gap-2': this.icon(),\n\t\t\t\t'input-bordered': !this.ghost(),\n\t\t\t\t'focus:border-transparent focus:outline-transparent focus-within:border-transparent focus-within:outline-transparent': this.ghost(),\n\t\t\t},\n\t\t);\n\t}\n\n\tget errorClass() {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tsize: this.size(),\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'flex items-center gap-2': this.icon(),\n\t\t\t\t'input-bordered': !this.ghost(),\n\t\t\t\t'focus:border-transparent focus:outline-transparent focus-within:border-transparent focus-within:outline-transparent': this.ghost(),\n\t\t\t},\n\t\t);\n\t}\n\n\tget successClass() {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tsize: this.size(),\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'flex items-center gap-2': this.icon(),\n\t\t\t\t'input-bordered': !this.ghost(),\n\t\t\t\t'focus:border-transparent focus:outline-transparent focus-within:border-transparent focus-within:outline-transparent': this.ghost(),\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\tget iconClass() {\n\t\treturn cn({\n\t\t\t'cursor-pointer hover:opacity-90 active:hover:scale-95 active:hover:[animation:_button-pop_0s_ease-out] active:focus:scale-95 active:focus:[animation:_button-pop_0s_ease-out]':\n\t\t\t\tthis.iconClickable(),\n\t\t});\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n@let iconVar = this.icon();\n\n<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\">\n\t\t\t<span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t</label>\n\t}\n\n\t@if (iconVar) {\n\t\t<div [class]=\"componentClass\">\n\t\t\t@if (iconVar) {\n\t\t\t\t<div [class]=\"iconClass\" (click)=\"handleIconClick()\" role=\"button\" tabindex=\"0\">\n\t\t\t\t\t<st-icon [icon]=\"iconVar\" size=\"md\"></st-icon>\n\t\t\t\t</div>\n\t\t\t}\n\t\t\t<input\n\t\t\t\tclass=\"grow placeholder:placeholder-base-placeholder\"\n\t\t\t\t[type]=\"type()\"\n\t\t\t\t[attr.name]=\"name()\"\n\t\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t\t[(ngModel)]=\"value\"\n\t\t\t\t[disabled]=\"disabled()\"\n\t\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t\t(blur)=\"handleBlur()\"\n\t\t\t/>\n\t\t</div>\n\t} @else {\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t}\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AAUA,MAAM,cAAc,GAAG,GAAG,CACzB;IACC,WAAW;IACX,YAAY;IACZ,cAAc;IACd,oBAAoB;IACpB,QAAQ;IACR,aAAa;IACb,OAAO;IACP,0CAA0C;IAC1C,gBAAgB;CAChB,EACD;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,eAAe,CAAC;YAC1B,SAAS,EAAE,CAAC,iBAAiB,CAAC;YAC9B,QAAQ,EAAE,CAAC,gBAAgB,CAAC;YAC5B,MAAM,EAAE,CAAC,cAAc,CAAC;YACxB,IAAI,EAAE,CAAC,YAAY,CAAC;YACpB,OAAO,EAAE,CAAC,eAAe,CAAC;YAC1B,OAAO,EAAE,CAAC,eAAe,CAAC;YAC1B,KAAK,EAAE,CAAC,aAAa,CAAC;AACtB,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;AAC3B,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;AAC3B,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC;AAC7B,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;AAC3B,SAAA;AACD,QAAA,YAAY,EAAE;YACb,IAAI,EAAE,CAAC,UAAU,CAAC;YAClB,KAAK,EAAE,CAAC,kBAAkB,CAAC;AAC3B,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE,EAAE;AACpB,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,WAAW;AACpB,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EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAW7C,cAAc,EAAA,UAAA,EAAA,CAAA;kBAd1B,SAAS;+BACC,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,OAAA,EACP,CAAC,WAAW,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAC/C,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAgB,cAAA;AAC3B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,u2CAAA,EAAA,CAAA;;;AE5EF;;AAEG;;;;"}
@@ -11,21 +11,13 @@ const radioComponent = cva(['radio'], {
11
11
  variant: {
12
12
  primary: ['radio-primary'],
13
13
  secondary: ['radio-secondary'],
14
+ tertiary: ['radio-tertiary'],
14
15
  accent: ['radio-accent'],
15
16
  success: ['radio-success'],
16
17
  warning: ['radio-warning'],
17
18
  info: ['radio-info'],
18
19
  error: ['radio-error'],
19
20
  },
20
- borderVariant: {
21
- primary: ['border-primary'],
22
- secondary: ['border-secondary'],
23
- accent: ['border-accent'],
24
- success: ['border-success'],
25
- warning: ['border-warning'],
26
- info: ['border-info'],
27
- error: ['border-error'],
28
- },
29
21
  size: {
30
22
  xs: ['radio-xs'],
31
23
  sm: ['radio-sm'],
@@ -36,16 +28,13 @@ const radioComponent = cva(['radio'], {
36
28
  compoundVariants: [],
37
29
  defaultVariants: {
38
30
  variant: 'primary',
39
- borderVariant: 'secondary',
40
31
  size: 'md',
41
32
  },
42
33
  });
43
34
  class RadioComponent {
44
35
  // Base radio properties
45
36
  variant = input();
46
- borderVariant = input();
47
37
  size = input();
48
- classes = input('');
49
38
  label = input('');
50
39
  name = input(null);
51
40
  // Radio value model
@@ -83,19 +72,17 @@ class RadioComponent {
83
72
  get componentClass() {
84
73
  return cn(radioComponent({
85
74
  variant: this.variant(),
86
- borderVariant: this.borderVariant(),
87
75
  size: this.size(),
88
- class: this.classes(),
89
76
  }));
90
77
  }
91
78
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
92
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: RadioComponent, isStandalone: true, selector: "st-radio", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, borderVariant: { classPropertyName: "borderVariant", publicName: "borderVariant", 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: true, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange", disabled: "disabledChange", onChange: "onChange" }, providers: [
79
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: RadioComponent, isStandalone: true, selector: "st-radio", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", 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: true, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange", disabled: "disabledChange", onChange: "onChange" }, providers: [
93
80
  {
94
81
  provide: NG_VALUE_ACCESSOR,
95
82
  useExisting: RadioComponent,
96
83
  multi: true,
97
84
  },
98
- ], ngImport: i0, template: "<label class=\"mb-2 flex cursor-pointer items-center justify-start gap-4\">\n\t<input\n\t\ttype=\"radio\"\n\t\t[class]=\"componentClass\"\n\t\t[value]=\"value()\"\n\t\t[checked]=\"selected() === 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", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
85
+ ], ngImport: i0, template: "<label class=\"mb-2 flex cursor-pointer items-center justify-start gap-4\">\n\t<input\n\t\ttype=\"radio\"\n\t\t[class]=\"componentClass\"\n\t\t[value]=\"value()\"\n\t\t[checked]=\"selected() === 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 [tyVariant]=\"'body'\" [tyColor]=\"'base'\">{{ label() }}</span>\n</label>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
99
86
  }
100
87
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: RadioComponent, decorators: [{
101
88
  type: Component,
@@ -105,7 +92,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
105
92
  useExisting: RadioComponent,
106
93
  multi: true,
107
94
  },
108
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"mb-2 flex cursor-pointer items-center justify-start gap-4\">\n\t<input\n\t\ttype=\"radio\"\n\t\t[class]=\"componentClass\"\n\t\t[value]=\"value()\"\n\t\t[checked]=\"selected() === 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" }]
95
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"mb-2 flex cursor-pointer items-center justify-start gap-4\">\n\t<input\n\t\ttype=\"radio\"\n\t\t[class]=\"componentClass\"\n\t\t[value]=\"value()\"\n\t\t[checked]=\"selected() === 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 [tyVariant]=\"'body'\" [tyColor]=\"'base'\">{{ label() }}</span>\n</label>\n" }]
109
96
  }] });
110
97
 
111
98
  /**