@seniorsistemas/scala-ng 2.4.0 → 2.5.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 (485) hide show
  1. package/README.md +9 -6
  2. package/autocomplete/README.md +5 -1
  3. package/autocomplete/public-api.d.ts +2 -2
  4. package/autocomplete/src/autocomplete/autocomplete.component.d.ts +6 -6
  5. package/autocomplete/src/autocomplete/autocomplete.models.d.ts +2 -2
  6. package/autocomplete/src/autocomplete/panel/autocomplete-panel.component.d.ts +1 -1
  7. package/avatar-summary/README.md +1 -1
  8. package/avatar-summary/public-api.d.ts +2 -2
  9. package/avatar-summary/src/avatar-summary/avatar-summary.component.d.ts +1 -1
  10. package/avatar-summary/src/avatar-summary/avatar-summary.models.d.ts +3 -3
  11. package/avatar-summary/src/avatar-summary/avatar-summary.tokens.d.ts +1 -1
  12. package/avatar-summary/src/avatar-summary/avatar-summary.utils.d.ts +1 -1
  13. package/badge/README.md +1 -1
  14. package/badge/public-api.d.ts +1 -1
  15. package/badge/src/badge/badge.component.d.ts +1 -1
  16. package/banner/README.md +1 -1
  17. package/banner/public-api.d.ts +3 -3
  18. package/banner/src/banner/banner.component.d.ts +2 -2
  19. package/banner/src/banner/banner.models.d.ts +1 -1
  20. package/banner/src/banner-trigger/banner-trigger.directive.d.ts +2 -2
  21. package/breadcrumb/README.md +7 -7
  22. package/breadcrumb/public-api.d.ts +5 -5
  23. package/breadcrumb/src/breadcrumb/breadcrumb.component.d.ts +2 -2
  24. package/breadcrumb/src/breadcrumb-router/breadcrumb-router.component.d.ts +2 -2
  25. package/breadcrumb/src/breadcrumb-truncator/breadcrumb-truncator.component.d.ts +3 -3
  26. package/button/README.md +5 -1
  27. package/button/public-api.d.ts +1 -1
  28. package/button/src/button/button.component.d.ts +1 -1
  29. package/card/README.md +1 -1
  30. package/card/public-api.d.ts +1 -1
  31. package/card/src/card/card.component.d.ts +4 -4
  32. package/checkbox/README.md +5 -5
  33. package/checkbox/public-api.d.ts +1 -1
  34. package/checkbox/src/checkbox/checkbox.component.d.ts +1 -1
  35. package/content-lifecycle/README.md +2 -2
  36. package/content-lifecycle/public-api.d.ts +2 -2
  37. package/content-lifecycle/src/content-lifecycle/content-lifecycle.component.d.ts +2 -2
  38. package/content-lifecycle/src/content-lifecycle/content-lifecycle.models.d.ts +2 -2
  39. package/date-picker/README.md +6 -6
  40. package/date-picker/public-api.d.ts +3 -3
  41. package/date-picker/src/date-picker/date-format.utils.d.ts +2 -2
  42. package/date-picker/src/date-picker/datepicker.component.d.ts +7 -7
  43. package/display-tag/README.md +2 -2
  44. package/display-tag/public-api.d.ts +2 -2
  45. package/display-tag/src/display-tag/display-tag.component.d.ts +5 -5
  46. package/drawer/README.md +9 -9
  47. package/drawer/public-api.d.ts +1 -1
  48. package/drawer/src/drawer/drawer.component.d.ts +4 -4
  49. package/empty-state/README.md +1 -1
  50. package/empty-state/public-api.d.ts +2 -2
  51. package/empty-state/src/empty-state/empty-state.component.d.ts +1 -1
  52. package/empty-state/src/empty-state/empty-state.models.d.ts +2 -2
  53. package/esm2022/autocomplete/public-api.mjs +2 -2
  54. package/esm2022/autocomplete/src/autocomplete/autocomplete.component.mjs +55 -55
  55. package/esm2022/autocomplete/src/autocomplete/autocomplete.models.mjs +1 -1
  56. package/esm2022/autocomplete/src/autocomplete/panel/autocomplete-panel.component.mjs +12 -12
  57. package/esm2022/avatar-summary/public-api.mjs +2 -2
  58. package/esm2022/avatar-summary/src/avatar-summary/avatar-summary.component.mjs +24 -24
  59. package/esm2022/avatar-summary/src/avatar-summary/avatar-summary.models.mjs +1 -1
  60. package/esm2022/avatar-summary/src/avatar-summary/avatar-summary.tokens.mjs +46 -46
  61. package/esm2022/avatar-summary/src/avatar-summary/avatar-summary.utils.mjs +4 -4
  62. package/esm2022/badge/public-api.mjs +2 -2
  63. package/esm2022/badge/src/badge/badge.component.mjs +25 -25
  64. package/esm2022/banner/public-api.mjs +3 -3
  65. package/esm2022/banner/src/banner/banner.component.mjs +33 -33
  66. package/esm2022/banner/src/banner/banner.models.mjs +1 -1
  67. package/esm2022/banner/src/banner-trigger/banner-trigger.directive.mjs +11 -11
  68. package/esm2022/breadcrumb/public-api.mjs +3 -3
  69. package/esm2022/breadcrumb/src/breadcrumb/breadcrumb.component.mjs +13 -13
  70. package/esm2022/breadcrumb/src/breadcrumb-item/breadcrumb-item.component.mjs +13 -13
  71. package/esm2022/breadcrumb/src/breadcrumb-router/breadcrumb-router.component.mjs +11 -11
  72. package/esm2022/breadcrumb/src/breadcrumb-truncator/breadcrumb-truncator.component.mjs +24 -24
  73. package/esm2022/button/public-api.mjs +2 -2
  74. package/esm2022/button/src/button/button.component.mjs +23 -23
  75. package/esm2022/card/public-api.mjs +2 -2
  76. package/esm2022/card/src/card/card.component.mjs +37 -37
  77. package/esm2022/checkbox/public-api.mjs +2 -2
  78. package/esm2022/checkbox/src/checkbox/checkbox.component.mjs +5 -5
  79. package/esm2022/content-lifecycle/public-api.mjs +2 -2
  80. package/esm2022/content-lifecycle/src/content-lifecycle/content-lifecycle.component.mjs +15 -15
  81. package/esm2022/content-lifecycle/src/content-lifecycle/content-lifecycle.models.mjs +1 -1
  82. package/esm2022/date-picker/public-api.mjs +3 -3
  83. package/esm2022/date-picker/src/date-picker/date-format.utils.mjs +39 -39
  84. package/esm2022/date-picker/src/date-picker/date.utils.mjs +15 -15
  85. package/esm2022/date-picker/src/date-picker/datepicker.component.mjs +122 -122
  86. package/esm2022/display-tag/public-api.mjs +2 -2
  87. package/esm2022/display-tag/src/display-tag/display-tag.component.mjs +36 -36
  88. package/esm2022/drawer/public-api.mjs +2 -2
  89. package/esm2022/drawer/src/drawer/drawer.component.mjs +37 -37
  90. package/esm2022/empty-state/public-api.mjs +2 -2
  91. package/esm2022/empty-state/src/empty-state/empty-state.component.mjs +26 -26
  92. package/esm2022/empty-state/src/empty-state/empty-state.models.mjs +1 -1
  93. package/esm2022/filter-tag/public-api.mjs +2 -2
  94. package/esm2022/filter-tag/src/filter-tag/filter-tag.component.mjs +12 -12
  95. package/esm2022/form-field/public-api.mjs +2 -2
  96. package/esm2022/form-field/src/form-field/form-field.component.mjs +26 -26
  97. package/esm2022/input/public-api.mjs +2 -2
  98. package/esm2022/input/src/input/input.component.mjs +55 -44
  99. package/esm2022/input-feedback/public-api.mjs +2 -2
  100. package/esm2022/input-feedback/src/input-feedback/input-feedback.component.mjs +12 -12
  101. package/esm2022/item-strip/public-api.mjs +2 -2
  102. package/esm2022/item-strip/src/item-strip/item-strip.component.mjs +14 -14
  103. package/esm2022/item-strip/src/item-strip-item/item-strip-item.component.mjs +37 -37
  104. package/esm2022/item-strip/src/item-strip-item/item-strip-item.mjs +1 -1
  105. package/esm2022/lib/a11y/focusable-item.utils.mjs +2 -2
  106. package/esm2022/lib/chip/chip.utils.mjs +15 -15
  107. package/esm2022/lib/combobox/combobox.utils.mjs +8 -8
  108. package/esm2022/lib/forms/control-state.utils.mjs +4 -4
  109. package/esm2022/lib/overlay/aria-hide.utils.mjs +10 -10
  110. package/esm2022/lib/overlay/exclusive-dialog.utils.mjs +22 -0
  111. package/esm2022/lib/overlay/scroll-lock.utils.mjs +5 -5
  112. package/esm2022/lib/overlay/scrollable-region.utils.mjs +34 -0
  113. package/esm2022/lib/theme/create-theme.mjs +7 -7
  114. package/esm2022/lib/theme/semantic-tokens.mjs +1 -1
  115. package/esm2022/lib/theme/theme.service.mjs +15 -15
  116. package/esm2022/list/public-api.mjs +2 -2
  117. package/esm2022/list/src/list/list-id-generator.mjs +4 -4
  118. package/esm2022/list/src/list/list.component.mjs +16 -16
  119. package/esm2022/list/src/list/list.models.mjs +2 -2
  120. package/esm2022/list/src/list/list.tokens.mjs +30 -30
  121. package/esm2022/list/src/list-group/list-group.component.mjs +7 -7
  122. package/esm2022/list/src/list-item/list-item-title.utils.mjs +3 -3
  123. package/esm2022/list/src/list-item/list-item.component.mjs +47 -47
  124. package/esm2022/loading-state/public-api.mjs +4 -0
  125. package/esm2022/loading-state/seniorsistemas-scala-ng-loading-state.mjs +5 -0
  126. package/esm2022/loading-state/src/loading-state/loading-state.directive.mjs +203 -0
  127. package/esm2022/loading-state/src/loading-state/loading-state.types.mjs +2 -0
  128. package/esm2022/loading-state/src/loading-state/loading-visibility.utils.mjs +60 -0
  129. package/esm2022/loading-state/src/pulse/pulse.component.mjs +71 -0
  130. package/esm2022/loading-state/src/pulse/senior-isotype.component.mjs +11 -0
  131. package/esm2022/loading-state/src/spinner/loading-spinner.component.mjs +13 -0
  132. package/esm2022/locale/fallback.mjs +135 -129
  133. package/esm2022/locale/public-api.mjs +2 -2
  134. package/esm2022/mask/public-api.mjs +5 -5
  135. package/esm2022/mask/src/mask/mask.directive.mjs +67 -67
  136. package/esm2022/mask/src/mask/mask.pipe.mjs +10 -10
  137. package/esm2022/mask/src/mask/mask.tokens.mjs +16 -16
  138. package/esm2022/mask/src/mask/mask.utils.mjs +25 -25
  139. package/esm2022/modal/public-api.mjs +4 -0
  140. package/esm2022/modal/seniorsistemas-scala-ng-modal.mjs +5 -0
  141. package/esm2022/modal/src/modal/modal-ref.mjs +84 -0
  142. package/esm2022/modal/src/modal/modal.component.mjs +262 -0
  143. package/esm2022/modal/src/modal/modal.service.mjs +119 -0
  144. package/esm2022/page-header/public-api.mjs +2 -2
  145. package/esm2022/page-header/src/page-header/page-header.component.mjs +14 -14
  146. package/esm2022/paginator/public-api.mjs +2 -2
  147. package/esm2022/paginator/src/paginator/paginator.component.mjs +29 -29
  148. package/esm2022/panel/public-api.mjs +2 -2
  149. package/esm2022/panel/src/panel/panel.component.mjs +21 -21
  150. package/esm2022/progress-bar/public-api.mjs +3 -3
  151. package/esm2022/progress-bar/src/progress-bar/progress-bar.component.mjs +33 -33
  152. package/esm2022/progress-bar/src/progress-bar/progress-bar.utils.mjs +5 -5
  153. package/esm2022/public-api.mjs +11 -9
  154. package/esm2022/radio-button/public-api.mjs +3 -3
  155. package/esm2022/radio-button/src/radio-button/radio-button.component.mjs +7 -7
  156. package/esm2022/radio-button/src/radio-button-group/radio-button-group-error.token.mjs +3 -3
  157. package/esm2022/radio-button/src/radio-button-group/radio-button-group.component.mjs +7 -7
  158. package/esm2022/radio-button/src/services/radio-button-registry.service.mjs +4 -4
  159. package/esm2022/select/public-api.mjs +2 -2
  160. package/esm2022/select/src/select/select.component.mjs +89 -89
  161. package/esm2022/select-button/public-api.mjs +2 -2
  162. package/esm2022/select-button/src/select-button/select-button.component.mjs +131 -131
  163. package/esm2022/selection-chip/public-api.mjs +2 -2
  164. package/esm2022/selection-chip/src/selection-chip/selection-chip.component.mjs +24 -24
  165. package/esm2022/slider/public-api.mjs +2 -2
  166. package/esm2022/slider/src/slider/slider.component.mjs +82 -82
  167. package/esm2022/slider/src/slider/slider.types.mjs +1 -1
  168. package/esm2022/spinner/public-api.mjs +2 -2
  169. package/esm2022/spinner/src/spinner/spinner.component.mjs +6 -3
  170. package/esm2022/split-button/public-api.mjs +2 -0
  171. package/esm2022/split-button/seniorsistemas-scala-ng-split-button.mjs +5 -0
  172. package/esm2022/split-button/src/split-button/split-button.component.mjs +71 -0
  173. package/esm2022/stats-card/public-api.mjs +2 -2
  174. package/esm2022/stats-card/src/stats-card/stats-card.component.mjs +63 -63
  175. package/esm2022/stats-card/src/stats-card/stats-card.models.mjs +1 -1
  176. package/esm2022/switch/public-api.mjs +2 -2
  177. package/esm2022/switch/src/switch/switch.component.mjs +8 -8
  178. package/esm2022/table/public-api.mjs +3 -3
  179. package/esm2022/table/src/components/actions-cell/table-actions-cell.component.mjs +7 -7
  180. package/esm2022/table/src/components/expand-cell/table-expand-cell.component.mjs +4 -4
  181. package/esm2022/table/src/components/fields/avatar-summary-field-table/avatar-summary-field-table.component.mjs +4 -4
  182. package/esm2022/table/src/components/fields/base-table-field-config.mjs +1 -1
  183. package/esm2022/table/src/components/fields/date-field-table/date-field-table.component.mjs +11 -11
  184. package/esm2022/table/src/components/fields/number-field-table/number-field-table.component.mjs +3 -3
  185. package/esm2022/table/src/components/fields/rich-field-table/rich-field-table.component.mjs +9 -9
  186. package/esm2022/table/src/components/fields/string-field-table/string-field-table.component.mjs +3 -3
  187. package/esm2022/table/src/components/filter-row/table-filter-row.component.mjs +10 -10
  188. package/esm2022/table/src/components/row-group-header/table-row-group-header.component.mjs +6 -6
  189. package/esm2022/table/src/components/selection-cell/table-selection-cell.component.mjs +10 -10
  190. package/esm2022/table/src/components/toolbar/table-toolbar.component.mjs +18 -18
  191. package/esm2022/table/src/directives/table-actions-column.directive.mjs +4 -4
  192. package/esm2022/table/src/directives/table-body.directive.mjs +3 -3
  193. package/esm2022/table/src/directives/table-cell.directive.mjs +9 -9
  194. package/esm2022/table/src/directives/table-container.directive.mjs +5 -5
  195. package/esm2022/table/src/directives/table-field.directive.mjs +10 -10
  196. package/esm2022/table/src/directives/table-grid.directive.mjs +4 -4
  197. package/esm2022/table/src/directives/table-header-cell.directive.mjs +17 -17
  198. package/esm2022/table/src/directives/table-header-row.directive.mjs +4 -4
  199. package/esm2022/table/src/directives/table-paginator-container.directive.mjs +4 -4
  200. package/esm2022/table/src/directives/table-row-detail-cell.directive.mjs +4 -4
  201. package/esm2022/table/src/directives/table-row.directive.mjs +10 -10
  202. package/esm2022/table/src/fields/avatar-summary-table-header.mjs +1 -1
  203. package/esm2022/table/src/fields/date-table-header.mjs +1 -1
  204. package/esm2022/table/src/fields/date-utc.utils.mjs +6 -6
  205. package/esm2022/table/src/fields/number-table-header.mjs +1 -1
  206. package/esm2022/table/src/fields/rich-table-header.mjs +1 -1
  207. package/esm2022/table/src/fields/string-table-header.mjs +1 -1
  208. package/esm2022/table/src/fields/table-header.mjs +1 -1
  209. package/esm2022/table/src/registry/built-in-field-types.mjs +11 -11
  210. package/esm2022/table/src/registry/table-field-registry.mjs +7 -7
  211. package/esm2022/table/src/table/table-toolbar.models.mjs +1 -1
  212. package/esm2022/table/src/table/table.component.mjs +58 -58
  213. package/esm2022/table/src/table/table.models.mjs +1 -1
  214. package/esm2022/table/src/utils/table-filter.utils.mjs +7 -7
  215. package/esm2022/table/src/utils/table-group.utils.mjs +6 -6
  216. package/esm2022/table/src/utils/table-lazy-event.utils.mjs +2 -2
  217. package/esm2022/table/src/utils/table-selection.utils.mjs +4 -4
  218. package/esm2022/table/src/utils/table-sort.utils.mjs +9 -9
  219. package/esm2022/tiered-menu/public-api.mjs +2 -2
  220. package/esm2022/tiered-menu/src/tiered-menu-item-row/tiered-menu-item-row.directive.mjs +8 -8
  221. package/esm2022/tiered-menu/src/tiered-menu-panel/tiered-menu-panel.component.mjs +16 -16
  222. package/esm2022/tiered-menu/src/tiered-menu-panel-host/tiered-menu-panel-host.component.mjs +10 -10
  223. package/esm2022/tiered-menu/src/tiered-menu-trigger/tiered-menu-trigger.directive.mjs +18 -18
  224. package/esm2022/toast/public-api.mjs +3 -3
  225. package/esm2022/toast/src/toast/toast.component.mjs +16 -16
  226. package/esm2022/toast/src/toast/toast.models.mjs +1 -1
  227. package/esm2022/toast/src/toast-container/toast-container.component.mjs +20 -20
  228. package/esm2022/toast/src/toast.service.mjs +31 -31
  229. package/esm2022/tooltip/public-api.mjs +2 -2
  230. package/esm2022/tooltip/src/tooltip/tooltip-collision-registry.service.mjs +4 -4
  231. package/esm2022/tooltip/src/tooltip/tooltip-focus-origin.service.mjs +5 -5
  232. package/esm2022/tooltip/src/tooltip/tooltip.types.mjs +1 -1
  233. package/esm2022/tooltip/src/tooltip-panel/tooltip-panel.component.mjs +23 -23
  234. package/esm2022/tooltip/src/tooltip-trigger/tooltip-trigger.directive.mjs +93 -93
  235. package/fesm2022/seniorsistemas-scala-ng-autocomplete.mjs +51 -51
  236. package/fesm2022/seniorsistemas-scala-ng-autocomplete.mjs.map +1 -1
  237. package/fesm2022/seniorsistemas-scala-ng-avatar-summary.mjs +64 -64
  238. package/fesm2022/seniorsistemas-scala-ng-avatar-summary.mjs.map +1 -1
  239. package/fesm2022/seniorsistemas-scala-ng-badge.mjs +22 -22
  240. package/fesm2022/seniorsistemas-scala-ng-badge.mjs.map +1 -1
  241. package/fesm2022/seniorsistemas-scala-ng-banner.mjs +32 -32
  242. package/fesm2022/seniorsistemas-scala-ng-banner.mjs.map +1 -1
  243. package/fesm2022/seniorsistemas-scala-ng-breadcrumb.mjs +33 -33
  244. package/fesm2022/seniorsistemas-scala-ng-breadcrumb.mjs.map +1 -1
  245. package/fesm2022/seniorsistemas-scala-ng-button.mjs +21 -21
  246. package/fesm2022/seniorsistemas-scala-ng-button.mjs.map +1 -1
  247. package/fesm2022/seniorsistemas-scala-ng-card.mjs +30 -30
  248. package/fesm2022/seniorsistemas-scala-ng-card.mjs.map +1 -1
  249. package/fesm2022/seniorsistemas-scala-ng-checkbox.mjs +1 -1
  250. package/fesm2022/seniorsistemas-scala-ng-checkbox.mjs.map +1 -1
  251. package/fesm2022/seniorsistemas-scala-ng-content-lifecycle.mjs +12 -12
  252. package/fesm2022/seniorsistemas-scala-ng-content-lifecycle.mjs.map +1 -1
  253. package/fesm2022/seniorsistemas-scala-ng-date-picker.mjs +159 -159
  254. package/fesm2022/seniorsistemas-scala-ng-date-picker.mjs.map +1 -1
  255. package/fesm2022/seniorsistemas-scala-ng-display-tag.mjs +33 -33
  256. package/fesm2022/seniorsistemas-scala-ng-display-tag.mjs.map +1 -1
  257. package/fesm2022/seniorsistemas-scala-ng-drawer.mjs +29 -29
  258. package/fesm2022/seniorsistemas-scala-ng-drawer.mjs.map +1 -1
  259. package/fesm2022/seniorsistemas-scala-ng-empty-state.mjs +23 -23
  260. package/fesm2022/seniorsistemas-scala-ng-empty-state.mjs.map +1 -1
  261. package/fesm2022/seniorsistemas-scala-ng-filter-tag.mjs +7 -7
  262. package/fesm2022/seniorsistemas-scala-ng-filter-tag.mjs.map +1 -1
  263. package/fesm2022/seniorsistemas-scala-ng-form-field.mjs +22 -22
  264. package/fesm2022/seniorsistemas-scala-ng-form-field.mjs.map +1 -1
  265. package/fesm2022/seniorsistemas-scala-ng-input-feedback.mjs +10 -10
  266. package/fesm2022/seniorsistemas-scala-ng-input-feedback.mjs.map +1 -1
  267. package/fesm2022/seniorsistemas-scala-ng-input.mjs +49 -38
  268. package/fesm2022/seniorsistemas-scala-ng-input.mjs.map +1 -1
  269. package/fesm2022/seniorsistemas-scala-ng-item-strip.mjs +39 -39
  270. package/fesm2022/seniorsistemas-scala-ng-item-strip.mjs.map +1 -1
  271. package/fesm2022/seniorsistemas-scala-ng-list.mjs +84 -84
  272. package/fesm2022/seniorsistemas-scala-ng-list.mjs.map +1 -1
  273. package/fesm2022/seniorsistemas-scala-ng-loading-state.mjs +354 -0
  274. package/fesm2022/seniorsistemas-scala-ng-loading-state.mjs.map +1 -0
  275. package/fesm2022/seniorsistemas-scala-ng-locale.mjs +134 -128
  276. package/fesm2022/seniorsistemas-scala-ng-locale.mjs.map +1 -1
  277. package/fesm2022/seniorsistemas-scala-ng-mask.mjs +106 -106
  278. package/fesm2022/seniorsistemas-scala-ng-mask.mjs.map +1 -1
  279. package/fesm2022/seniorsistemas-scala-ng-modal.mjs +466 -0
  280. package/fesm2022/seniorsistemas-scala-ng-modal.mjs.map +1 -0
  281. package/fesm2022/seniorsistemas-scala-ng-page-header.mjs +9 -9
  282. package/fesm2022/seniorsistemas-scala-ng-page-header.mjs.map +1 -1
  283. package/fesm2022/seniorsistemas-scala-ng-paginator.mjs +20 -20
  284. package/fesm2022/seniorsistemas-scala-ng-paginator.mjs.map +1 -1
  285. package/fesm2022/seniorsistemas-scala-ng-panel.mjs +14 -14
  286. package/fesm2022/seniorsistemas-scala-ng-panel.mjs.map +1 -1
  287. package/fesm2022/seniorsistemas-scala-ng-progress-bar.mjs +31 -31
  288. package/fesm2022/seniorsistemas-scala-ng-progress-bar.mjs.map +1 -1
  289. package/fesm2022/seniorsistemas-scala-ng-radio-button.mjs +6 -6
  290. package/fesm2022/seniorsistemas-scala-ng-radio-button.mjs.map +1 -1
  291. package/fesm2022/seniorsistemas-scala-ng-select-button.mjs +122 -122
  292. package/fesm2022/seniorsistemas-scala-ng-select-button.mjs.map +1 -1
  293. package/fesm2022/seniorsistemas-scala-ng-select.mjs +76 -76
  294. package/fesm2022/seniorsistemas-scala-ng-select.mjs.map +1 -1
  295. package/fesm2022/seniorsistemas-scala-ng-selection-chip.mjs +19 -19
  296. package/fesm2022/seniorsistemas-scala-ng-selection-chip.mjs.map +1 -1
  297. package/fesm2022/seniorsistemas-scala-ng-slider.mjs +72 -72
  298. package/fesm2022/seniorsistemas-scala-ng-slider.mjs.map +1 -1
  299. package/fesm2022/seniorsistemas-scala-ng-spinner.mjs +4 -1
  300. package/fesm2022/seniorsistemas-scala-ng-spinner.mjs.map +1 -1
  301. package/fesm2022/seniorsistemas-scala-ng-split-button.mjs +78 -0
  302. package/fesm2022/seniorsistemas-scala-ng-split-button.mjs.map +1 -0
  303. package/fesm2022/seniorsistemas-scala-ng-stats-card.mjs +58 -58
  304. package/fesm2022/seniorsistemas-scala-ng-stats-card.mjs.map +1 -1
  305. package/fesm2022/seniorsistemas-scala-ng-switch.mjs +4 -4
  306. package/fesm2022/seniorsistemas-scala-ng-switch.mjs.map +1 -1
  307. package/fesm2022/{seniorsistemas-scala-ng-table-table-actions-cell.component-DTzDhrMk.mjs → seniorsistemas-scala-ng-table-table-actions-cell.component-D_eZKncd.mjs} +2 -2
  308. package/fesm2022/seniorsistemas-scala-ng-table-table-actions-cell.component-D_eZKncd.mjs.map +1 -0
  309. package/fesm2022/seniorsistemas-scala-ng-table-table-filter-row.component-C0Y1KaWD.mjs +27 -0
  310. package/fesm2022/seniorsistemas-scala-ng-table-table-filter-row.component-C0Y1KaWD.mjs.map +1 -0
  311. package/fesm2022/seniorsistemas-scala-ng-table-table-toolbar.component-C9s1ObGb.mjs +68 -0
  312. package/fesm2022/seniorsistemas-scala-ng-table-table-toolbar.component-C9s1ObGb.mjs.map +1 -0
  313. package/fesm2022/seniorsistemas-scala-ng-table.mjs +138 -138
  314. package/fesm2022/seniorsistemas-scala-ng-table.mjs.map +1 -1
  315. package/fesm2022/seniorsistemas-scala-ng-tiered-menu.mjs +35 -35
  316. package/fesm2022/seniorsistemas-scala-ng-tiered-menu.mjs.map +1 -1
  317. package/fesm2022/seniorsistemas-scala-ng-toast.mjs +54 -54
  318. package/fesm2022/seniorsistemas-scala-ng-toast.mjs.map +1 -1
  319. package/fesm2022/seniorsistemas-scala-ng-tooltip.mjs +110 -110
  320. package/fesm2022/seniorsistemas-scala-ng-tooltip.mjs.map +1 -1
  321. package/fesm2022/seniorsistemas-scala-ng.mjs +110 -54
  322. package/fesm2022/seniorsistemas-scala-ng.mjs.map +1 -1
  323. package/filter-tag/README.md +1 -1
  324. package/filter-tag/public-api.d.ts +1 -1
  325. package/filter-tag/src/filter-tag/filter-tag.component.d.ts +1 -1
  326. package/form-field/public-api.d.ts +2 -2
  327. package/form-field/src/form-field/form-field.component.d.ts +14 -14
  328. package/input/README.md +13 -10
  329. package/input/public-api.d.ts +1 -1
  330. package/input/src/input/input.component.d.ts +8 -5
  331. package/input-feedback/README.md +7 -7
  332. package/input-feedback/public-api.d.ts +1 -1
  333. package/input-feedback/src/input-feedback/input-feedback.component.d.ts +2 -2
  334. package/item-strip/README.md +1 -1
  335. package/item-strip/public-api.d.ts +2 -2
  336. package/item-strip/src/item-strip/item-strip.component.d.ts +1 -1
  337. package/item-strip/src/item-strip-item/item-strip-item.component.d.ts +27 -27
  338. package/item-strip/src/item-strip-item/item-strip-item.d.ts +1 -1
  339. package/lib/a11y/focusable-item.utils.d.ts +1 -1
  340. package/lib/chip/chip.utils.d.ts +3 -3
  341. package/lib/combobox/combobox.utils.d.ts +2 -2
  342. package/lib/forms/control-state.utils.d.ts +2 -2
  343. package/lib/overlay/exclusive-dialog.utils.d.ts +7 -0
  344. package/lib/overlay/scrollable-region.utils.d.ts +5 -0
  345. package/lib/theme/create-theme.d.ts +2 -2
  346. package/lib/theme/semantic-tokens.d.ts +1 -1
  347. package/lib/theme/theme.service.d.ts +1 -1
  348. package/list/README.md +1 -1
  349. package/list/public-api.d.ts +2 -2
  350. package/list/src/list/list.component.d.ts +1 -1
  351. package/list/src/list/list.models.d.ts +5 -5
  352. package/list/src/list/list.tokens.d.ts +1 -1
  353. package/list/src/list-group/list-group.component.d.ts +1 -1
  354. package/list/src/list-item/list-item.component.d.ts +11 -11
  355. package/loading-state/README.md +60 -0
  356. package/loading-state/index.d.ts +5 -0
  357. package/loading-state/package.json +3 -0
  358. package/loading-state/public-api.d.ts +5 -0
  359. package/loading-state/src/loading-state/loading-state.directive.d.ts +37 -0
  360. package/loading-state/src/loading-state/loading-state.types.d.ts +3 -0
  361. package/loading-state/src/loading-state/loading-visibility.utils.d.ts +11 -0
  362. package/loading-state/src/pulse/pulse.component.d.ts +27 -0
  363. package/loading-state/src/pulse/senior-isotype.component.d.ts +5 -0
  364. package/loading-state/src/spinner/loading-spinner.component.d.ts +8 -0
  365. package/locale/public-api.d.ts +1 -1
  366. package/mask/README.md +1 -1
  367. package/mask/public-api.d.ts +4 -4
  368. package/mask/src/mask/mask.directive.d.ts +2 -2
  369. package/mask/src/mask/mask.pipe.d.ts +2 -2
  370. package/mask/src/mask/mask.utils.d.ts +1 -1
  371. package/modal/README.md +435 -0
  372. package/modal/index.d.ts +5 -0
  373. package/modal/package.json +3 -0
  374. package/modal/public-api.d.ts +3 -0
  375. package/modal/src/modal/modal-ref.d.ts +51 -0
  376. package/modal/src/modal/modal.component.d.ts +82 -0
  377. package/modal/src/modal/modal.service.d.ts +62 -0
  378. package/package.json +22 -1
  379. package/page-header/README.md +1 -1
  380. package/page-header/public-api.d.ts +1 -1
  381. package/page-header/src/page-header/page-header.component.d.ts +2 -2
  382. package/paginator/public-api.d.ts +2 -2
  383. package/paginator/src/paginator/paginator.component.d.ts +3 -3
  384. package/panel/README.md +1 -1
  385. package/panel/public-api.d.ts +1 -1
  386. package/panel/src/panel/panel.component.d.ts +3 -3
  387. package/progress-bar/README.md +4 -4
  388. package/progress-bar/public-api.d.ts +4 -4
  389. package/progress-bar/src/progress-bar/progress-bar.component.d.ts +3 -3
  390. package/progress-bar/src/progress-bar/progress-bar.utils.d.ts +1 -1
  391. package/public-api.d.ts +11 -9
  392. package/radio-button/README.md +1 -1
  393. package/radio-button/public-api.d.ts +3 -3
  394. package/radio-button/src/radio-button/radio-button.component.d.ts +2 -2
  395. package/radio-button/src/radio-button-group/radio-button-group-error.token.d.ts +1 -1
  396. package/radio-button/src/radio-button-group/radio-button-group.component.d.ts +3 -3
  397. package/radio-button/src/services/radio-button-registry.service.d.ts +1 -1
  398. package/schematics/migrate-spinner-to-loading-state/index.js +75 -0
  399. package/schematics/migrate-spinner-to-loading-state/index.js.map +1 -0
  400. package/schematics/migrations.json +10 -0
  401. package/schematics/ng-add/index.js +29 -29
  402. package/select/README.md +19 -15
  403. package/select/public-api.d.ts +2 -2
  404. package/select/src/select/select.component.d.ts +11 -11
  405. package/select-button/README.md +1 -1
  406. package/select-button/public-api.d.ts +2 -2
  407. package/select-button/src/select-button/select-button.component.d.ts +7 -7
  408. package/selection-chip/README.md +1 -1
  409. package/selection-chip/public-api.d.ts +1 -1
  410. package/selection-chip/src/selection-chip/selection-chip.component.d.ts +3 -3
  411. package/slider/README.md +6 -6
  412. package/slider/public-api.d.ts +2 -2
  413. package/slider/src/slider/slider.component.d.ts +3 -3
  414. package/slider/src/slider/slider.types.d.ts +3 -3
  415. package/spinner/README.md +9 -1
  416. package/spinner/public-api.d.ts +1 -1
  417. package/spinner/src/spinner/spinner.component.d.ts +3 -0
  418. package/split-button/README.md +208 -0
  419. package/split-button/index.d.ts +5 -0
  420. package/split-button/package.json +3 -0
  421. package/split-button/public-api.d.ts +1 -0
  422. package/split-button/src/split-button/split-button.component.d.ts +29 -0
  423. package/stats-card/README.md +1 -1
  424. package/stats-card/public-api.d.ts +2 -2
  425. package/stats-card/src/stats-card/stats-card.component.d.ts +415 -415
  426. package/stats-card/src/stats-card/stats-card.models.d.ts +3 -3
  427. package/styles/tailwind-preset.js +30 -13
  428. package/styles/tailwind-tokens.js +286 -286
  429. package/styles/tokens/index.scss +7 -7
  430. package/styles/tokens/semantic-colors.scss +4 -2
  431. package/styles.scss +7 -7
  432. package/switch/README.md +5 -5
  433. package/switch/public-api.d.ts +1 -1
  434. package/switch/src/switch/switch.component.d.ts +1 -1
  435. package/table/README.md +21 -21
  436. package/table/public-api.d.ts +12 -12
  437. package/table/src/components/actions-cell/table-actions-cell.component.d.ts +2 -2
  438. package/table/src/components/fields/avatar-summary-field-table/avatar-summary-field-table.component.d.ts +2 -2
  439. package/table/src/components/fields/base-table-field-config.d.ts +2 -2
  440. package/table/src/components/fields/date-field-table/date-field-table.component.d.ts +2 -2
  441. package/table/src/components/fields/number-field-table/number-field-table.component.d.ts +2 -2
  442. package/table/src/components/fields/rich-field-table/rich-field-table.component.d.ts +2 -2
  443. package/table/src/components/fields/string-field-table/string-field-table.component.d.ts +2 -2
  444. package/table/src/components/filter-row/table-filter-row.component.d.ts +1 -1
  445. package/table/src/components/selection-cell/table-selection-cell.component.d.ts +2 -2
  446. package/table/src/components/toolbar/table-toolbar.component.d.ts +3 -3
  447. package/table/src/directives/table-field.directive.d.ts +1 -1
  448. package/table/src/fields/avatar-summary-table-header.d.ts +4 -4
  449. package/table/src/fields/date-table-header.d.ts +3 -3
  450. package/table/src/fields/number-table-header.d.ts +3 -3
  451. package/table/src/fields/rich-table-header.d.ts +4 -4
  452. package/table/src/fields/string-table-header.d.ts +4 -4
  453. package/table/src/fields/table-header.d.ts +2 -2
  454. package/table/src/registry/built-in-field-types.d.ts +1 -1
  455. package/table/src/registry/table-field-registry.d.ts +4 -4
  456. package/table/src/table/table-toolbar.models.d.ts +1 -1
  457. package/table/src/table/table.component.d.ts +11 -11
  458. package/table/src/table/table.models.d.ts +2 -2
  459. package/table/src/utils/table-filter.utils.d.ts +1 -1
  460. package/table/src/utils/table-group.utils.d.ts +4 -4
  461. package/table/src/utils/table-lazy-event.utils.d.ts +3 -3
  462. package/table/src/utils/table-selection.utils.d.ts +2 -2
  463. package/table/src/utils/table-sort.utils.d.ts +2 -2
  464. package/tiered-menu/README.md +2 -2
  465. package/tiered-menu/public-api.d.ts +2 -2
  466. package/tiered-menu/src/tiered-menu-panel/tiered-menu-panel.component.d.ts +2 -2
  467. package/tiered-menu/src/tiered-menu-panel-host/tiered-menu-panel-host.component.d.ts +2 -2
  468. package/tiered-menu/src/tiered-menu-trigger/tiered-menu-trigger.directive.d.ts +2 -2
  469. package/toast/README.md +17 -17
  470. package/toast/public-api.d.ts +3 -3
  471. package/toast/src/toast/toast.component.d.ts +1 -1
  472. package/toast/src/toast/toast.models.d.ts +3 -3
  473. package/toast/src/toast-container/toast-container.component.d.ts +1 -1
  474. package/toast/src/toast.service.d.ts +5 -5
  475. package/tooltip/README.md +1 -1
  476. package/tooltip/public-api.d.ts +2 -2
  477. package/tooltip/src/tooltip/tooltip-focus-origin.service.d.ts +2 -2
  478. package/tooltip/src/tooltip/tooltip.types.d.ts +3 -3
  479. package/tooltip/src/tooltip-panel/tooltip-panel.component.d.ts +4 -4
  480. package/tooltip/src/tooltip-trigger/tooltip-trigger.directive.d.ts +2 -2
  481. package/fesm2022/seniorsistemas-scala-ng-table-table-actions-cell.component-DTzDhrMk.mjs.map +0 -1
  482. package/fesm2022/seniorsistemas-scala-ng-table-table-filter-row.component-BgdQk6tM.mjs +0 -27
  483. package/fesm2022/seniorsistemas-scala-ng-table-table-filter-row.component-BgdQk6tM.mjs.map +0 -1
  484. package/fesm2022/seniorsistemas-scala-ng-table-table-toolbar.component-2YcqyPlh.mjs +0 -68
  485. package/fesm2022/seniorsistemas-scala-ng-table-table-toolbar.component-2YcqyPlh.mjs.map +0 -1
@@ -10,7 +10,7 @@ import { TranslatePipe } from '@ngx-translate/core';
10
10
  import { filterComboboxOptions, buildDisplayRows, syncControlState, getComboboxOptionEl } from '@seniorsistemas/scala-ng';
11
11
  import { SdsInputComponent } from '@seniorsistemas/scala-ng/input';
12
12
  import { SdsInputFeedbackComponent } from '@seniorsistemas/scala-ng/input-feedback';
13
- import { SdsSpinnerComponent } from '@seniorsistemas/scala-ng/spinner';
13
+ import { SdsLoadingSpinnerComponent } from '@seniorsistemas/scala-ng/loading-state';
14
14
 
15
15
  class SdsAutocompletePanelComponent {
16
16
  /** ID of the panel root element; the trigger uses it to detect focus inside the panel. */
@@ -20,11 +20,11 @@ class SdsAutocompletePanelComponent {
20
20
  /** Prefix for option IDs, in the form `{prefix}-option-{index}`. */
21
21
  optionIdPrefix = input.required();
22
22
  /** Listbox `aria-label`, usually the parent field label. */
23
- label = input("");
23
+ label = input('');
24
24
  /** Shows a spinner instead of the listbox. */
25
25
  loading = input(false);
26
26
  /** Empty-state message. Overrides the default i18n text. */
27
- emptyMessage = input("");
27
+ emptyMessage = input('');
28
28
  /** Rows to render: group headers and already-filtered options. */
29
29
  displayRows = input.required();
30
30
  /** Index of the option highlighted by keyboard or hover; `-1` for none. */
@@ -37,18 +37,18 @@ class SdsAutocompletePanelComponent {
37
37
  optionSelect = output();
38
38
  /** Emits the hovered option index, or `-1` when the pointer leaves the listbox. */
39
39
  focusChange = output();
40
- hasOptions = computed(() => this.displayRows().some((r) => r.type === "option"));
40
+ hasOptions = computed(() => this.displayRows().some((r) => r.type === 'option'));
41
41
  groupedRows = computed(() => {
42
42
  const groups = [];
43
43
  let current = null;
44
44
  for (const row of this.displayRows()) {
45
- if (row.type === "header") {
45
+ if (row.type === 'header') {
46
46
  current = { id: row.trackId, label: row.label, options: [] };
47
47
  groups.push(current);
48
48
  }
49
49
  else {
50
50
  if (!current) {
51
- current = { id: "ungrouped", options: [] };
51
+ current = { id: 'ungrouped', options: [] };
52
52
  groups.push(current);
53
53
  }
54
54
  current.options.push(row);
@@ -61,11 +61,11 @@ class SdsAutocompletePanelComponent {
61
61
  return internal !== null && this.compareWith()(optionValue, internal);
62
62
  }
63
63
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsAutocompletePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
64
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SdsAutocompletePanelComponent, isStandalone: true, selector: "sds-autocomplete-panel", inputs: { panelId: { classPropertyName: "panelId", publicName: "panelId", isSignal: true, isRequired: true, transformFunction: null }, listboxId: { classPropertyName: "listboxId", publicName: "listboxId", isSignal: true, isRequired: true, transformFunction: null }, optionIdPrefix: { classPropertyName: "optionIdPrefix", publicName: "optionIdPrefix", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, displayRows: { classPropertyName: "displayRows", publicName: "displayRows", isSignal: true, isRequired: true, transformFunction: null }, focusedIndex: { classPropertyName: "focusedIndex", publicName: "focusedIndex", isSignal: true, isRequired: false, transformFunction: null }, selectedValue: { classPropertyName: "selectedValue", publicName: "selectedValue", isSignal: true, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { optionSelect: "optionSelect", focusChange: "focusChange" }, ngImport: i0, template: "<div\n [id]=\"panelId()\"\n class=\"w-full overflow-hidden rounded-radius-xlarge border border-solid border-color-border-interactive-secondary bg-surface-default shadow-shadow-popover\"\n>\n @if (loading()) {\n <output\n aria-live=\"polite\"\n class=\"flex w-full items-center justify-center px-space-2 py-space-2\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_loading_label' | translate\"\n >\n <sds-spinner class=\"text-color-text-neutral-secondary\" />\n </output>\n } @else if (!hasOptions()) {\n <output\n aria-live=\"polite\"\n class=\"flex items-center justify-center p-4\"\n [attr.aria-label]=\"\n emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate)\n \"\n >\n <span\n class=\"text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n aria-hidden=\"true\"\n >{{ emptyMessage() || (\"platform.scala-ng.autocomplete_empty_label\" | translate) }}</span\n >\n </output>\n } @else {\n <ul\n [id]=\"listboxId()\"\n role=\"listbox\"\n class=\"max-h-[320px] overflow-y-auto py-1\"\n [attr.aria-label]=\"label() || ('platform.scala-ng.autocomplete_options_label' | translate)\"\n (mouseleave)=\"focusChange.emit(-1)\"\n >\n @for (group of groupedRows(); track group.id) {\n @if (group.label !== undefined) {\n <li\n role=\"group\"\n [attr.aria-label]=\"group.label\"\n >\n <div\n aria-hidden=\"true\"\n class=\"flex h-[28px] items-center px-3 pb-1 pt-2\"\n >\n <span\n class=\"min-w-0 flex-1 text-[12px] font-medium uppercase tracking-[0.96px] text-color-text-neutral-secondary\"\n >{{ group.label }}</span\n >\n </div>\n <ul role=\"presentation\">\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n </ul>\n </li>\n } @else {\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n }\n }\n </ul>\n }\n</div>\n\n<ng-template\n #optionItem\n let-row=\"row\"\n>\n <li\n [id]=\"optionIdPrefix() + '-option-' + row.optionIndex\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"flex items-center gap-2 px-3 py-2 outline-none\"\n [ngClass]=\"{\n 'cursor-not-allowed': row.option.disabled,\n 'bg-color-background-disable': row.option.disabled,\n 'cursor-pointer': !row.option.disabled,\n 'bg-color-background-interactive-secondary-hovered':\n !row.option.disabled && focusedIndex() === row.optionIndex,\n }\"\n [attr.aria-selected]=\"isOptionSelected(row.option.value) ? 'true' : 'false'\"\n [attr.aria-disabled]=\"row.option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"optionSelect.emit(row.option)\"\n (keydown.enter)=\"optionSelect.emit(row.option)\"\n (mouseenter)=\"focusChange.emit(row.option.disabled ? -1 : row.optionIndex)\"\n >\n <div\n class=\"flex min-w-0 flex-1 flex-col gap-[2px] overflow-hidden\"\n [ngClass]=\"{\n 'text-color-text-disable': row.option.disabled,\n 'text-color-text-neutral-primary': !row.option.disabled,\n }\"\n >\n <span class=\"truncate text-[14px] font-normal leading-[1.5]\">{{ row.option.label }}</span>\n @if (row.option.description) {\n <span\n class=\"truncate text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n >{{ row.option.description }}</span\n >\n }\n </div>\n @if (isOptionSelected(row.option.value)) {\n <i\n class=\"fa-solid fa-check shrink-0 text-[12px] text-color-text-neutral-primary\"\n aria-hidden=\"true\"\n ></i>\n }\n </li>\n</ng-template>\n", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: SdsSpinnerComponent, selector: "sds-spinner", inputs: ["size"] }] });
64
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SdsAutocompletePanelComponent, isStandalone: true, selector: "sds-autocomplete-panel", inputs: { panelId: { classPropertyName: "panelId", publicName: "panelId", isSignal: true, isRequired: true, transformFunction: null }, listboxId: { classPropertyName: "listboxId", publicName: "listboxId", isSignal: true, isRequired: true, transformFunction: null }, optionIdPrefix: { classPropertyName: "optionIdPrefix", publicName: "optionIdPrefix", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, displayRows: { classPropertyName: "displayRows", publicName: "displayRows", isSignal: true, isRequired: true, transformFunction: null }, focusedIndex: { classPropertyName: "focusedIndex", publicName: "focusedIndex", isSignal: true, isRequired: false, transformFunction: null }, selectedValue: { classPropertyName: "selectedValue", publicName: "selectedValue", isSignal: true, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { optionSelect: "optionSelect", focusChange: "focusChange" }, ngImport: i0, template: "<div\n [id]=\"panelId()\"\n class=\"w-full overflow-hidden rounded-radius-xlarge border border-solid border-color-border-interactive-secondary bg-surface-default shadow-shadow-popover\"\n>\n @if (loading()) {\n <output\n aria-live=\"polite\"\n class=\"flex w-full items-center justify-center px-space-2 py-space-2\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_loading_label' | translate\"\n >\n <sds-loading-spinner [size]=\"20\" />\n </output>\n } @else if (!hasOptions()) {\n <output\n aria-live=\"polite\"\n class=\"flex items-center justify-center p-4\"\n [attr.aria-label]=\"\n emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate)\n \"\n >\n <span\n class=\"text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n aria-hidden=\"true\"\n >{{ emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate) }}</span\n >\n </output>\n } @else {\n <ul\n [id]=\"listboxId()\"\n role=\"listbox\"\n class=\"max-h-[320px] overflow-y-auto py-1\"\n [attr.aria-label]=\"label() || ('platform.scala-ng.autocomplete_options_label' | translate)\"\n (mouseleave)=\"focusChange.emit(-1)\"\n >\n @for (group of groupedRows(); track group.id) {\n @if (group.label !== undefined) {\n <li\n role=\"group\"\n [attr.aria-label]=\"group.label\"\n >\n <div\n aria-hidden=\"true\"\n class=\"flex h-[28px] items-center px-3 pb-1 pt-2\"\n >\n <span\n class=\"min-w-0 flex-1 text-[12px] font-medium uppercase tracking-[0.96px] text-color-text-neutral-secondary\"\n >{{ group.label }}</span\n >\n </div>\n <ul role=\"presentation\">\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n </ul>\n </li>\n } @else {\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n }\n }\n </ul>\n }\n</div>\n\n<ng-template\n #optionItem\n let-row=\"row\"\n>\n <li\n [id]=\"optionIdPrefix() + '-option-' + row.optionIndex\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"flex items-center gap-2 px-3 py-2 outline-none\"\n [ngClass]=\"{\n 'cursor-not-allowed': row.option.disabled,\n 'bg-color-background-disable': row.option.disabled,\n 'cursor-pointer': !row.option.disabled,\n 'bg-color-background-interactive-secondary-hovered':\n !row.option.disabled && focusedIndex() === row.optionIndex,\n }\"\n [attr.aria-selected]=\"isOptionSelected(row.option.value) ? 'true' : 'false'\"\n [attr.aria-disabled]=\"row.option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"optionSelect.emit(row.option)\"\n (keydown.enter)=\"optionSelect.emit(row.option)\"\n (mouseenter)=\"focusChange.emit(row.option.disabled ? -1 : row.optionIndex)\"\n >\n <div\n class=\"flex min-w-0 flex-1 flex-col gap-[2px] overflow-hidden\"\n [ngClass]=\"{\n 'text-color-text-disable': row.option.disabled,\n 'text-color-text-neutral-primary': !row.option.disabled,\n }\"\n >\n <span class=\"truncate text-[14px] font-normal leading-[1.5]\">{{ row.option.label }}</span>\n @if (row.option.description) {\n <span\n class=\"truncate text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n >{{ row.option.description }}</span\n >\n }\n </div>\n @if (isOptionSelected(row.option.value)) {\n <i\n class=\"fa-solid fa-check shrink-0 text-[12px] text-color-text-neutral-primary\"\n aria-hidden=\"true\"\n ></i>\n }\n </li>\n</ng-template>\n", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: SdsLoadingSpinnerComponent, selector: "sds-loading-spinner", inputs: ["size"] }] });
65
65
  }
66
66
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsAutocompletePanelComponent, decorators: [{
67
67
  type: Component,
68
- args: [{ selector: "sds-autocomplete-panel", standalone: true, imports: [NgClass, NgTemplateOutlet, TranslatePipe, SdsSpinnerComponent], template: "<div\n [id]=\"panelId()\"\n class=\"w-full overflow-hidden rounded-radius-xlarge border border-solid border-color-border-interactive-secondary bg-surface-default shadow-shadow-popover\"\n>\n @if (loading()) {\n <output\n aria-live=\"polite\"\n class=\"flex w-full items-center justify-center px-space-2 py-space-2\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_loading_label' | translate\"\n >\n <sds-spinner class=\"text-color-text-neutral-secondary\" />\n </output>\n } @else if (!hasOptions()) {\n <output\n aria-live=\"polite\"\n class=\"flex items-center justify-center p-4\"\n [attr.aria-label]=\"\n emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate)\n \"\n >\n <span\n class=\"text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n aria-hidden=\"true\"\n >{{ emptyMessage() || (\"platform.scala-ng.autocomplete_empty_label\" | translate) }}</span\n >\n </output>\n } @else {\n <ul\n [id]=\"listboxId()\"\n role=\"listbox\"\n class=\"max-h-[320px] overflow-y-auto py-1\"\n [attr.aria-label]=\"label() || ('platform.scala-ng.autocomplete_options_label' | translate)\"\n (mouseleave)=\"focusChange.emit(-1)\"\n >\n @for (group of groupedRows(); track group.id) {\n @if (group.label !== undefined) {\n <li\n role=\"group\"\n [attr.aria-label]=\"group.label\"\n >\n <div\n aria-hidden=\"true\"\n class=\"flex h-[28px] items-center px-3 pb-1 pt-2\"\n >\n <span\n class=\"min-w-0 flex-1 text-[12px] font-medium uppercase tracking-[0.96px] text-color-text-neutral-secondary\"\n >{{ group.label }}</span\n >\n </div>\n <ul role=\"presentation\">\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n </ul>\n </li>\n } @else {\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n }\n }\n </ul>\n }\n</div>\n\n<ng-template\n #optionItem\n let-row=\"row\"\n>\n <li\n [id]=\"optionIdPrefix() + '-option-' + row.optionIndex\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"flex items-center gap-2 px-3 py-2 outline-none\"\n [ngClass]=\"{\n 'cursor-not-allowed': row.option.disabled,\n 'bg-color-background-disable': row.option.disabled,\n 'cursor-pointer': !row.option.disabled,\n 'bg-color-background-interactive-secondary-hovered':\n !row.option.disabled && focusedIndex() === row.optionIndex,\n }\"\n [attr.aria-selected]=\"isOptionSelected(row.option.value) ? 'true' : 'false'\"\n [attr.aria-disabled]=\"row.option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"optionSelect.emit(row.option)\"\n (keydown.enter)=\"optionSelect.emit(row.option)\"\n (mouseenter)=\"focusChange.emit(row.option.disabled ? -1 : row.optionIndex)\"\n >\n <div\n class=\"flex min-w-0 flex-1 flex-col gap-[2px] overflow-hidden\"\n [ngClass]=\"{\n 'text-color-text-disable': row.option.disabled,\n 'text-color-text-neutral-primary': !row.option.disabled,\n }\"\n >\n <span class=\"truncate text-[14px] font-normal leading-[1.5]\">{{ row.option.label }}</span>\n @if (row.option.description) {\n <span\n class=\"truncate text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n >{{ row.option.description }}</span\n >\n }\n </div>\n @if (isOptionSelected(row.option.value)) {\n <i\n class=\"fa-solid fa-check shrink-0 text-[12px] text-color-text-neutral-primary\"\n aria-hidden=\"true\"\n ></i>\n }\n </li>\n</ng-template>\n", styles: [":host{display:block;width:100%}\n"] }]
68
+ args: [{ selector: 'sds-autocomplete-panel', standalone: true, imports: [NgClass, NgTemplateOutlet, TranslatePipe, SdsLoadingSpinnerComponent], template: "<div\n [id]=\"panelId()\"\n class=\"w-full overflow-hidden rounded-radius-xlarge border border-solid border-color-border-interactive-secondary bg-surface-default shadow-shadow-popover\"\n>\n @if (loading()) {\n <output\n aria-live=\"polite\"\n class=\"flex w-full items-center justify-center px-space-2 py-space-2\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_loading_label' | translate\"\n >\n <sds-loading-spinner [size]=\"20\" />\n </output>\n } @else if (!hasOptions()) {\n <output\n aria-live=\"polite\"\n class=\"flex items-center justify-center p-4\"\n [attr.aria-label]=\"\n emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate)\n \"\n >\n <span\n class=\"text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n aria-hidden=\"true\"\n >{{ emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate) }}</span\n >\n </output>\n } @else {\n <ul\n [id]=\"listboxId()\"\n role=\"listbox\"\n class=\"max-h-[320px] overflow-y-auto py-1\"\n [attr.aria-label]=\"label() || ('platform.scala-ng.autocomplete_options_label' | translate)\"\n (mouseleave)=\"focusChange.emit(-1)\"\n >\n @for (group of groupedRows(); track group.id) {\n @if (group.label !== undefined) {\n <li\n role=\"group\"\n [attr.aria-label]=\"group.label\"\n >\n <div\n aria-hidden=\"true\"\n class=\"flex h-[28px] items-center px-3 pb-1 pt-2\"\n >\n <span\n class=\"min-w-0 flex-1 text-[12px] font-medium uppercase tracking-[0.96px] text-color-text-neutral-secondary\"\n >{{ group.label }}</span\n >\n </div>\n <ul role=\"presentation\">\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n </ul>\n </li>\n } @else {\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n }\n }\n </ul>\n }\n</div>\n\n<ng-template\n #optionItem\n let-row=\"row\"\n>\n <li\n [id]=\"optionIdPrefix() + '-option-' + row.optionIndex\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"flex items-center gap-2 px-3 py-2 outline-none\"\n [ngClass]=\"{\n 'cursor-not-allowed': row.option.disabled,\n 'bg-color-background-disable': row.option.disabled,\n 'cursor-pointer': !row.option.disabled,\n 'bg-color-background-interactive-secondary-hovered':\n !row.option.disabled && focusedIndex() === row.optionIndex,\n }\"\n [attr.aria-selected]=\"isOptionSelected(row.option.value) ? 'true' : 'false'\"\n [attr.aria-disabled]=\"row.option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"optionSelect.emit(row.option)\"\n (keydown.enter)=\"optionSelect.emit(row.option)\"\n (mouseenter)=\"focusChange.emit(row.option.disabled ? -1 : row.optionIndex)\"\n >\n <div\n class=\"flex min-w-0 flex-1 flex-col gap-[2px] overflow-hidden\"\n [ngClass]=\"{\n 'text-color-text-disable': row.option.disabled,\n 'text-color-text-neutral-primary': !row.option.disabled,\n }\"\n >\n <span class=\"truncate text-[14px] font-normal leading-[1.5]\">{{ row.option.label }}</span>\n @if (row.option.description) {\n <span\n class=\"truncate text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n >{{ row.option.description }}</span\n >\n }\n </div>\n @if (isOptionSelected(row.option.value)) {\n <i\n class=\"fa-solid fa-check shrink-0 text-[12px] text-color-text-neutral-primary\"\n aria-hidden=\"true\"\n ></i>\n }\n </li>\n</ng-template>\n", styles: [":host{display:block;width:100%}\n"] }]
69
69
  }] });
70
70
 
71
71
  /**
@@ -98,12 +98,12 @@ class SdsAutocompleteComponent {
98
98
  sso = inject(ScrollStrategyOptions);
99
99
  destroyRef = inject(DestroyRef);
100
100
  sdsInputRef = viewChild.required(SdsInputComponent);
101
- triggerElRef = viewChild.required("triggerEl");
101
+ triggerElRef = viewChild.required('triggerEl');
102
102
  _id;
103
103
  _listboxId;
104
104
  _panelId;
105
105
  ngControl = inject(NgControl, { self: true, optional: true });
106
- internalTextControl = new FormControl("", { nonNullable: true });
106
+ internalTextControl = new FormControl('', { nonNullable: true });
107
107
  _formInvalid = signal(false);
108
108
  isControlInvalid = computed(() => this.ngControl ? this._formInvalid() : this.required() && this.internalValue() === null);
109
109
  isControlTouched = signal(false);
@@ -111,29 +111,29 @@ class SdsAutocompleteComponent {
111
111
  formDisabled = signal(false);
112
112
  focusedIndex = signal(-1);
113
113
  internalValue = signal(null);
114
- inputText = signal("");
114
+ inputText = signal('');
115
115
  triggerWidth = signal(0);
116
116
  scrollStrategy = this.sso.reposition();
117
117
  overlayPositions = this.buildOverlayPositions();
118
118
  /** Options shown in the panel, as plain strings or `AutocompleteOption<T>` objects. */
119
119
  options = input.required({
120
120
  transform: (value) => value.map((option) => {
121
- const base = typeof option === "string" ? { label: option, value: option } : option;
121
+ const base = typeof option === 'string' ? { label: option, value: option } : option;
122
122
  return { ...base, _trackId: crypto.randomUUID() };
123
123
  }),
124
124
  });
125
125
  /** Field label; also used as `aria-label` when `showLabel` is false. */
126
- label = input("");
126
+ label = input('');
127
127
  /** Field height: `"default"` = 40px, `"small"` = 32px. */
128
- size = input("default");
128
+ size = input('default');
129
129
  /** Text shown in parentheses next to the label to mark the field as optional. */
130
- optionalText = input("");
130
+ optionalText = input('');
131
131
  /** Marks the field as required, adding the `*` indicator and `aria-required`. */
132
132
  required = input(false);
133
133
  /** Text shown when there is no selected value or typed text. */
134
- placeholder = input("");
134
+ placeholder = input('');
135
135
  /** Helper text shown below the field when there is no error or success message. */
136
- helperText = input("");
136
+ helperText = input('');
137
137
  /** Disables the field and its options panel. */
138
138
  disabled = input(false);
139
139
  /** Shows the value but blocks editing and selection. */
@@ -145,7 +145,7 @@ class SdsAutocompleteComponent {
145
145
  /** Shows a loading spinner in the panel instead of the options. */
146
146
  loading = input(false);
147
147
  /** Message shown when there are no options. Overrides the default i18n text. */
148
- emptyMessage = input("");
148
+ emptyMessage = input('');
149
149
  /** Property or predicate for filtering by typed text. Defaults to matching `option.label`. */
150
150
  filterBy = input();
151
151
  /** Equality function used to find the selected option. */
@@ -159,12 +159,12 @@ class SdsAutocompleteComponent {
159
159
  isDisabled = computed(() => this.disabled() || this.formDisabled());
160
160
  fieldState = computed(() => {
161
161
  if (this.isDisabled()) {
162
- return "disabled";
162
+ return 'disabled';
163
163
  }
164
164
  if (!this.isControlTouched()) {
165
- return "default";
165
+ return 'default';
166
166
  }
167
- return this.isControlInvalid() ? "invalid" : "valid";
167
+ return this.isControlInvalid() ? 'invalid' : 'valid';
168
168
  });
169
169
  selectedOption = computed(() => {
170
170
  const value = this.internalValue();
@@ -179,16 +179,16 @@ class SdsAutocompleteComponent {
179
179
  navigableOptions = computed(() => this.filteredOptions().map((option) => new AutocompleteOptionAdapter(option)));
180
180
  keyManager;
181
181
  ariaAttrs = computed(() => ({
182
- role: "combobox",
183
- autocomplete: "off",
184
- "aria-expanded": this.isOpen() ? "true" : "false",
185
- "aria-haspopup": "listbox",
186
- "aria-controls": this.isOpen() ? this._listboxId : null,
187
- "aria-autocomplete": "list",
188
- "aria-required": this.required() ? "true" : null,
189
- "aria-invalid": this.isControlTouched() && this.isControlInvalid() ? "true" : null,
190
- "aria-label": !this.showLabel() && this.label() ? this.label() : null,
191
- "aria-activedescendant": this.isOpen() && this.focusedIndex() >= 0
182
+ role: 'combobox',
183
+ autocomplete: 'off',
184
+ 'aria-expanded': this.isOpen() ? 'true' : 'false',
185
+ 'aria-haspopup': 'listbox',
186
+ 'aria-controls': this.isOpen() ? this._listboxId : null,
187
+ 'aria-autocomplete': 'list',
188
+ 'aria-required': this.required() ? 'true' : null,
189
+ 'aria-invalid': this.isControlTouched() && this.isControlInvalid() ? 'true' : null,
190
+ 'aria-label': !this.showLabel() && this.label() ? this.label() : null,
191
+ 'aria-activedescendant': this.isOpen() && this.focusedIndex() >= 0
192
192
  ? `${this._id}-option-${this.focusedIndex()}`
193
193
  : null,
194
194
  }));
@@ -230,8 +230,8 @@ class SdsAutocompleteComponent {
230
230
  writeValue(value) {
231
231
  this.internalValue.set(value ?? null);
232
232
  const label = value !== null && value !== undefined
233
- ? (this.options().find((o) => this.compareWith()(o.value, value))?.label ?? "")
234
- : "";
233
+ ? (this.options().find((o) => this.compareWith()(o.value, value))?.label ?? '')
234
+ : '';
235
235
  this.inputText.set(label);
236
236
  this.internalTextControl.setValue(label, { emitEvent: false });
237
237
  }
@@ -250,7 +250,7 @@ class SdsAutocompleteComponent {
250
250
  get control() {
251
251
  const ctrl = this.ngControl?.control;
252
252
  if (!ctrl) {
253
- throw new Error("control accessed outside NgControl context");
253
+ throw new Error('control accessed outside NgControl context');
254
254
  }
255
255
  return ctrl;
256
256
  }
@@ -275,7 +275,7 @@ class SdsAutocompleteComponent {
275
275
  }
276
276
  this.isOpen.set(false);
277
277
  this.keyManager.setActiveItem(-1);
278
- const label = this.selectedOption()?.label ?? "";
278
+ const label = this.selectedOption()?.label ?? '';
279
279
  this.inputText.set(label);
280
280
  this.internalTextControl.setValue(label, { emitEvent: false });
281
281
  }
@@ -298,8 +298,8 @@ class SdsAutocompleteComponent {
298
298
  }
299
299
  clearSelection() {
300
300
  this.internalValue.set(null);
301
- this.inputText.set("");
302
- this.internalTextControl.setValue("", { emitEvent: false });
301
+ this.inputText.set('');
302
+ this.internalTextControl.setValue('', { emitEvent: false });
303
303
  this.onChange(null);
304
304
  this.isControlTouched.set(true);
305
305
  this.onTouched();
@@ -309,16 +309,16 @@ class SdsAutocompleteComponent {
309
309
  }
310
310
  handleInputKeydown(event) {
311
311
  switch (event.key) {
312
- case "Enter": {
312
+ case 'Enter': {
313
313
  this.handleEnter(event);
314
314
  break;
315
315
  }
316
- case "Escape": {
316
+ case 'Escape': {
317
317
  this.handleEscape(event);
318
318
  break;
319
319
  }
320
- case "ArrowDown":
321
- case "ArrowUp": {
320
+ case 'ArrowDown':
321
+ case 'ArrowUp': {
322
322
  if (!this.isOpen()) {
323
323
  event.preventDefault();
324
324
  this.openPanel();
@@ -327,10 +327,10 @@ class SdsAutocompleteComponent {
327
327
  this.handleListNavigationKey(event);
328
328
  break;
329
329
  }
330
- case "Home":
331
- case "End":
332
- case "PageDown":
333
- case "PageUp": {
330
+ case 'Home':
331
+ case 'End':
332
+ case 'PageDown':
333
+ case 'PageUp': {
334
334
  if (!this.isOpen()) {
335
335
  break;
336
336
  }
@@ -401,12 +401,12 @@ class SdsAutocompleteComponent {
401
401
  buildOverlayPositions() {
402
402
  const DEFAULT_OFFSET = 12;
403
403
  const offsetStr = getComputedStyle(this.document.documentElement)
404
- .getPropertyValue("--sds-space-1-5")
404
+ .getPropertyValue('--sds-space-1-5')
405
405
  .trim();
406
406
  const offset = offsetStr ? parseInt(offsetStr, 10) : DEFAULT_OFFSET;
407
407
  return [
408
- { originX: "start", originY: "bottom", overlayX: "start", overlayY: "top", offsetY: offset },
409
- { originX: "start", originY: "top", overlayX: "start", overlayY: "bottom", offsetY: -offset },
408
+ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: offset },
409
+ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -offset },
410
410
  ];
411
411
  }
412
412
  setupTextControlSubscription() {
@@ -426,16 +426,16 @@ class SdsAutocompleteComponent {
426
426
  });
427
427
  }
428
428
  scrollOptionIntoView(index) {
429
- getComboboxOptionEl(this.elementRef.nativeElement.ownerDocument, this._id, index)?.scrollIntoView({ block: "nearest" });
429
+ getComboboxOptionEl(this.elementRef.nativeElement.ownerDocument, this._id, index)?.scrollIntoView({ block: 'nearest' });
430
430
  }
431
431
  onChange = () => { };
432
432
  onTouched = () => { };
433
433
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsAutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
434
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SdsAutocompleteComponent, isStandalone: true, selector: "sds-autocomplete", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, optionalText: { classPropertyName: "optionalText", publicName: "optionalText", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, showHelper: { classPropertyName: "showHelper", publicName: "showHelper", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null }, errorMessages: { classPropertyName: "errorMessages", publicName: "errorMessages", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { search: "search" }, viewQueries: [{ propertyName: "sdsInputRef", first: true, predicate: SdsInputComponent, descendants: true, isSignal: true }, { propertyName: "triggerElRef", first: true, predicate: ["triggerEl"], descendants: true, isSignal: true }], ngImport: i0, template: "@let open = isOpen();\n@let disabled = isDisabled();\n@let isReadonly = readonly();\n@let isInteractive = !disabled && !isReadonly;\n@let hasSelection = internalValue() !== null;\n\n<div\n #triggerEl\n class=\"flex flex-col gap-[6px]\"\n>\n @if (showLabel() && label()) {\n <div class=\"flex items-center gap-[2px]\">\n <label\n [for]=\"_id\"\n class=\"flex items-center gap-1 text-[14px] font-medium leading-[1.25]\"\n >\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-primary'\">{{\n label()\n }}</span>\n @if (optionalText()) {\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >({{ optionalText() }})</span\n >\n }\n </label>\n @if (required()) {\n <span\n class=\"shrink-0 text-[14px] font-medium leading-[1.25]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-destructive'\"\n aria-hidden=\"true\"\n >*</span\n >\n }\n </div>\n }\n\n <sds-input\n #triggerOrigin=\"cdkOverlayOrigin\"\n cdkOverlayOrigin\n [label]=\"label()\"\n [showLabel]=\"false\"\n [showHelper]=\"false\"\n [size]=\"size()\"\n [inputId]=\"_id\"\n [placeholder]=\"placeholder()\"\n [icon]=\"'fa-solid fa-magnifying-glass'\"\n [readonly]=\"isReadonly\"\n [formControl]=\"internalTextControl\"\n [nativeInputAttrs]=\"ariaAttrs()\"\n [state]=\"fieldState()\"\n (inputKeydown)=\"handleInputKeydown($event)\"\n (focusOut)=\"handleInputBlur($event.event)\"\n >\n @if (hasSelection && isInteractive) {\n <button\n type=\"button\"\n sdsInputTrailing\n class=\"shrink-0 cursor-pointer rounded-radius-small p-0 text-[14px] text-color-text-neutral-secondary outline-none hover:text-color-text-neutral-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-color-border-focused\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_clear_label' | translate\"\n (mousedown)=\"$event.preventDefault()\"\n (focusout)=\"handleClearButtonBlur($event)\"\n (click)=\"clearSelection()\"\n >\n <i\n class=\"fa-solid fa-xmark\"\n aria-hidden=\"true\"\n ></i>\n </button>\n }\n </sds-input>\n\n @if (showHelper()) {\n @if (errorMessages() && ngControl?.control) {\n <sds-input-feedback\n [control]=\"control\"\n [errorMessages]=\"errorMessages()!\"\n [validMessage]=\"validMessage()\"\n [adviceMessage]=\"helperText()\"\n />\n } @else if (helperText()) {\n <span\n class=\"text-[14px] font-normal leading-[1.5]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >{{ helperText() }}</span\n >\n }\n }\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"triggerOrigin\"\n [cdkConnectedOverlayOpen]=\"open\"\n [cdkConnectedOverlayWidth]=\"triggerWidth()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n (overlayOutsideClick)=\"handleOutsideClick($event)\"\n (detach)=\"closePanel()\"\n>\n <sds-autocomplete-panel\n [panelId]=\"_panelId\"\n [listboxId]=\"_listboxId\"\n [optionIdPrefix]=\"_id\"\n [label]=\"label()\"\n [loading]=\"loading()\"\n [emptyMessage]=\"emptyMessage()\"\n [displayRows]=\"displayRows()\"\n [focusedIndex]=\"focusedIndex()\"\n [selectedValue]=\"internalValue()\"\n [compareWith]=\"compareWith()\"\n (optionSelect)=\"selectOption($event)\"\n (focusChange)=\"handleOptionHover($event)\"\n />\n</ng-template>\n", dependencies: [{ kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: SdsInputComponent, selector: "sds-input", inputs: ["label", "subtitle", "icon", "type", "placeholder", "size", "readonly", "showDefaultIcon", "showNativeDropdown", "errorMessages", "validMessage", "adviceMessage", "inputClassName", "containerClassName", "showLabel", "showHelper", "required", "state", "nativeInputAttrs", "inputId", "mask", "unmask", "maskPatterns", "showMaskTyped", "placeHolderCharacter", "prefix", "suffix", "clearIfNotMatch", "leadZeroDateTime", "hiddenInput", "inputMode", "maskHint", "separator", "thousandSeparator", "decimalDigits"], outputs: ["focusIn", "focusOut", "inputClick", "inputKeydown", "maskFilled"] }, { kind: "component", type: SdsInputFeedbackComponent, selector: "sds-input-feedback", inputs: ["control", "errorMessages", "validMessage", "adviceMessage"] }, { kind: "component", type: SdsAutocompletePanelComponent, selector: "sds-autocomplete-panel", inputs: ["panelId", "listboxId", "optionIdPrefix", "label", "loading", "emptyMessage", "displayRows", "focusedIndex", "selectedValue", "compareWith"], outputs: ["optionSelect", "focusChange"] }, { kind: "directive", type: CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }] });
434
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SdsAutocompleteComponent, isStandalone: true, selector: "sds-autocomplete", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, optionalText: { classPropertyName: "optionalText", publicName: "optionalText", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, showHelper: { classPropertyName: "showHelper", publicName: "showHelper", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null }, errorMessages: { classPropertyName: "errorMessages", publicName: "errorMessages", isSignal: true, isRequired: false, transformFunction: null }, validMessage: { classPropertyName: "validMessage", publicName: "validMessage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { search: "search" }, viewQueries: [{ propertyName: "sdsInputRef", first: true, predicate: SdsInputComponent, descendants: true, isSignal: true }, { propertyName: "triggerElRef", first: true, predicate: ["triggerEl"], descendants: true, isSignal: true }], ngImport: i0, template: "@let open = isOpen();\n@let disabled = isDisabled();\n@let isReadonly = readonly();\n@let isInteractive = !disabled && !isReadonly;\n@let hasSelection = internalValue() !== null;\n\n<div\n #triggerEl\n class=\"flex flex-col gap-[6px]\"\n>\n @if (showLabel() && label()) {\n <div class=\"flex items-center gap-[2px]\">\n <label\n [for]=\"_id\"\n class=\"flex items-center gap-1 text-[14px] font-medium leading-[1.25]\"\n >\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-primary'\">{{\n label()\n }}</span>\n @if (optionalText()) {\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >({{ optionalText() }})</span\n >\n }\n </label>\n @if (required()) {\n <span\n class=\"shrink-0 text-[14px] font-medium leading-[1.25]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-destructive'\"\n aria-hidden=\"true\"\n >*</span\n >\n }\n </div>\n }\n\n <sds-input\n #triggerOrigin=\"cdkOverlayOrigin\"\n cdkOverlayOrigin\n [label]=\"label()\"\n [showLabel]=\"false\"\n [showHelper]=\"false\"\n [size]=\"size()\"\n [inputId]=\"_id\"\n [placeholder]=\"placeholder()\"\n [icon]=\"'fa-solid fa-magnifying-glass'\"\n [readonly]=\"isReadonly\"\n [formControl]=\"internalTextControl\"\n [nativeInputAttrs]=\"ariaAttrs()\"\n [state]=\"fieldState()\"\n (inputKeydown)=\"handleInputKeydown($event)\"\n (focusOut)=\"handleInputBlur($event.event)\"\n >\n @if (hasSelection && isInteractive) {\n <button\n type=\"button\"\n sdsInputTrailing\n class=\"shrink-0 cursor-pointer rounded-radius-small p-0 text-[14px] text-color-text-neutral-secondary outline-none hover:text-color-text-neutral-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-color-border-focused\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_clear_label' | translate\"\n (mousedown)=\"$event.preventDefault()\"\n (focusout)=\"handleClearButtonBlur($event)\"\n (click)=\"clearSelection()\"\n >\n <i\n class=\"fa-solid fa-xmark\"\n aria-hidden=\"true\"\n ></i>\n </button>\n }\n </sds-input>\n\n @if (showHelper()) {\n @if (errorMessages() && ngControl?.control) {\n <sds-input-feedback\n [control]=\"control\"\n [errorMessages]=\"errorMessages()!\"\n [validMessage]=\"validMessage()\"\n [adviceMessage]=\"helperText()\"\n />\n } @else if (helperText()) {\n <span\n class=\"text-[14px] font-normal leading-[1.5]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >{{ helperText() }}</span\n >\n }\n }\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"triggerOrigin\"\n [cdkConnectedOverlayOpen]=\"open\"\n [cdkConnectedOverlayWidth]=\"triggerWidth()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n (overlayOutsideClick)=\"handleOutsideClick($event)\"\n (detach)=\"closePanel()\"\n>\n <sds-autocomplete-panel\n [panelId]=\"_panelId\"\n [listboxId]=\"_listboxId\"\n [optionIdPrefix]=\"_id\"\n [label]=\"label()\"\n [loading]=\"loading()\"\n [emptyMessage]=\"emptyMessage()\"\n [displayRows]=\"displayRows()\"\n [focusedIndex]=\"focusedIndex()\"\n [selectedValue]=\"internalValue()\"\n [compareWith]=\"compareWith()\"\n (optionSelect)=\"selectOption($event)\"\n (focusChange)=\"handleOptionHover($event)\"\n />\n</ng-template>\n", dependencies: [{ kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: SdsInputComponent, selector: "sds-input", inputs: ["label", "subtitle", "icon", "type", "placeholder", "size", "readonly", "showDefaultIcon", "showNativeDropdown", "errorMessages", "validMessage", "adviceMessage", "inputClassName", "containerClassName", "showLabel", "showHelper", "required", "loading", "state", "nativeInputAttrs", "inputId", "mask", "unmask", "maskPatterns", "showMaskTyped", "placeHolderCharacter", "prefix", "suffix", "clearIfNotMatch", "leadZeroDateTime", "hiddenInput", "inputMode", "maskHint", "separator", "thousandSeparator", "decimalDigits"], outputs: ["focusIn", "focusOut", "inputClick", "inputKeydown", "maskFilled"] }, { kind: "component", type: SdsInputFeedbackComponent, selector: "sds-input-feedback", inputs: ["control", "errorMessages", "validMessage", "adviceMessage"] }, { kind: "component", type: SdsAutocompletePanelComponent, selector: "sds-autocomplete-panel", inputs: ["panelId", "listboxId", "optionIdPrefix", "label", "loading", "emptyMessage", "displayRows", "focusedIndex", "selectedValue", "compareWith"], outputs: ["optionSelect", "focusChange"] }, { kind: "directive", type: CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }] });
435
435
  }
436
436
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsAutocompleteComponent, decorators: [{
437
437
  type: Component,
438
- args: [{ selector: "sds-autocomplete", standalone: true, imports: [
438
+ args: [{ selector: 'sds-autocomplete', standalone: true, imports: [
439
439
  TranslatePipe,
440
440
  ReactiveFormsModule,
441
441
  SdsInputComponent,
@@ -1 +1 @@
1
- {"version":3,"file":"seniorsistemas-scala-ng-autocomplete.mjs","sources":["../../projects/scala-ng/autocomplete/src/autocomplete/panel/autocomplete-panel.component.ts","../../projects/scala-ng/autocomplete/src/autocomplete/panel/autocomplete-panel.component.html","../../projects/scala-ng/autocomplete/src/autocomplete/autocomplete.component.ts","../../projects/scala-ng/autocomplete/src/autocomplete/autocomplete.component.html","../../projects/scala-ng/autocomplete/seniorsistemas-scala-ng-autocomplete.ts"],"sourcesContent":["import { NgClass, NgTemplateOutlet } from \"@angular/common\";\nimport { Component, computed, input, output } from \"@angular/core\";\n\nimport { TranslatePipe } from \"@ngx-translate/core\";\nimport { SdsSpinnerComponent } from \"@seniorsistemas/scala-ng/spinner\";\n\nimport type { AutocompleteOption, DisplayRow } from \"../autocomplete.models\";\n\n@Component({\n selector: \"sds-autocomplete-panel\",\n standalone: true,\n imports: [NgClass, NgTemplateOutlet, TranslatePipe, SdsSpinnerComponent],\n templateUrl: \"./autocomplete-panel.component.html\",\n styles: [\":host { display: block; width: 100%; }\"],\n})\nexport class SdsAutocompletePanelComponent<T = unknown> {\n /** ID of the panel root element; the trigger uses it to detect focus inside the panel. */\n readonly panelId = input.required<string>();\n\n /** ID of the `role=\"listbox\"` element, referenced by the combobox `aria-controls`. */\n readonly listboxId = input.required<string>();\n\n /** Prefix for option IDs, in the form `{prefix}-option-{index}`. */\n readonly optionIdPrefix = input.required<string>();\n\n /** Listbox `aria-label`, usually the parent field label. */\n readonly label = input<string>(\"\");\n\n /** Shows a spinner instead of the listbox. */\n readonly loading = input<boolean>(false);\n\n /** Empty-state message. Overrides the default i18n text. */\n readonly emptyMessage = input<string>(\"\");\n\n /** Rows to render: group headers and already-filtered options. */\n readonly displayRows = input.required<DisplayRow<T>[]>();\n\n /** Index of the option highlighted by keyboard or hover; `-1` for none. */\n readonly focusedIndex = input<number>(-1);\n\n /** Currently selected value, matched via `compareWith` to set `aria-selected`. */\n readonly selectedValue = input<T | null>(null);\n\n /** Equality function used to find the selected option. */\n readonly compareWith = input<(a: T, b: T) => boolean>((a, b) => a === b);\n\n /** Emits the option the user clicks or presses Enter on. */\n readonly optionSelect = output<AutocompleteOption<T>>();\n\n /** Emits the hovered option index, or `-1` when the pointer leaves the listbox. */\n readonly focusChange = output<number>();\n\n protected readonly hasOptions = computed(() =>\n this.displayRows().some((r) => r.type === \"option\"),\n );\n\n protected readonly groupedRows = computed(() => {\n type OptionRow = Extract<DisplayRow<T>, { type: \"option\" }>;\n const groups: { id: string; label?: string; options: OptionRow[] }[] = [];\n let current: (typeof groups)[number] | null = null;\n\n for (const row of this.displayRows()) {\n if (row.type === \"header\") {\n current = { id: row.trackId, label: row.label, options: [] };\n groups.push(current);\n } else {\n if (!current) {\n current = { id: \"ungrouped\", options: [] };\n groups.push(current);\n }\n current.options.push(row as OptionRow);\n }\n }\n\n return groups;\n });\n\n protected isOptionSelected(optionValue: T): boolean {\n const internal = this.selectedValue();\n return internal !== null && this.compareWith()(optionValue, internal);\n }\n}\n","<div\n [id]=\"panelId()\"\n class=\"w-full overflow-hidden rounded-radius-xlarge border border-solid border-color-border-interactive-secondary bg-surface-default shadow-shadow-popover\"\n>\n @if (loading()) {\n <output\n aria-live=\"polite\"\n class=\"flex w-full items-center justify-center px-space-2 py-space-2\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_loading_label' | translate\"\n >\n <sds-spinner class=\"text-color-text-neutral-secondary\" />\n </output>\n } @else if (!hasOptions()) {\n <output\n aria-live=\"polite\"\n class=\"flex items-center justify-center p-4\"\n [attr.aria-label]=\"\n emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate)\n \"\n >\n <span\n class=\"text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n aria-hidden=\"true\"\n >{{ emptyMessage() || (\"platform.scala-ng.autocomplete_empty_label\" | translate) }}</span\n >\n </output>\n } @else {\n <ul\n [id]=\"listboxId()\"\n role=\"listbox\"\n class=\"max-h-[320px] overflow-y-auto py-1\"\n [attr.aria-label]=\"label() || ('platform.scala-ng.autocomplete_options_label' | translate)\"\n (mouseleave)=\"focusChange.emit(-1)\"\n >\n @for (group of groupedRows(); track group.id) {\n @if (group.label !== undefined) {\n <li\n role=\"group\"\n [attr.aria-label]=\"group.label\"\n >\n <div\n aria-hidden=\"true\"\n class=\"flex h-[28px] items-center px-3 pb-1 pt-2\"\n >\n <span\n class=\"min-w-0 flex-1 text-[12px] font-medium uppercase tracking-[0.96px] text-color-text-neutral-secondary\"\n >{{ group.label }}</span\n >\n </div>\n <ul role=\"presentation\">\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n </ul>\n </li>\n } @else {\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n }\n }\n </ul>\n }\n</div>\n\n<ng-template\n #optionItem\n let-row=\"row\"\n>\n <li\n [id]=\"optionIdPrefix() + '-option-' + row.optionIndex\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"flex items-center gap-2 px-3 py-2 outline-none\"\n [ngClass]=\"{\n 'cursor-not-allowed': row.option.disabled,\n 'bg-color-background-disable': row.option.disabled,\n 'cursor-pointer': !row.option.disabled,\n 'bg-color-background-interactive-secondary-hovered':\n !row.option.disabled && focusedIndex() === row.optionIndex,\n }\"\n [attr.aria-selected]=\"isOptionSelected(row.option.value) ? 'true' : 'false'\"\n [attr.aria-disabled]=\"row.option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"optionSelect.emit(row.option)\"\n (keydown.enter)=\"optionSelect.emit(row.option)\"\n (mouseenter)=\"focusChange.emit(row.option.disabled ? -1 : row.optionIndex)\"\n >\n <div\n class=\"flex min-w-0 flex-1 flex-col gap-[2px] overflow-hidden\"\n [ngClass]=\"{\n 'text-color-text-disable': row.option.disabled,\n 'text-color-text-neutral-primary': !row.option.disabled,\n }\"\n >\n <span class=\"truncate text-[14px] font-normal leading-[1.5]\">{{ row.option.label }}</span>\n @if (row.option.description) {\n <span\n class=\"truncate text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n >{{ row.option.description }}</span\n >\n }\n </div>\n @if (isOptionSelected(row.option.value)) {\n <i\n class=\"fa-solid fa-check shrink-0 text-[12px] text-color-text-neutral-primary\"\n aria-hidden=\"true\"\n ></i>\n }\n </li>\n</ng-template>\n","import { ActiveDescendantKeyManager, Highlightable } from \"@angular/cdk/a11y\";\nimport {\n CdkConnectedOverlay,\n CdkOverlayOrigin,\n ConnectedPosition,\n ScrollStrategyOptions,\n} from \"@angular/cdk/overlay\";\nimport { DOCUMENT } from \"@angular/common\";\nimport {\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n NgZone,\n OnInit,\n output,\n signal,\n viewChild,\n} from \"@angular/core\";\nimport { takeUntilDestroyed } from \"@angular/core/rxjs-interop\";\nimport {\n AbstractControl,\n ControlValueAccessor,\n FormControl,\n NgControl,\n ReactiveFormsModule,\n} from \"@angular/forms\";\n\nimport { TranslatePipe } from \"@ngx-translate/core\";\nimport {\n buildDisplayRows,\n filterComboboxOptions,\n getComboboxOptionEl,\n syncControlState,\n} from \"@seniorsistemas/scala-ng\";\nimport { type FieldState } from \"@seniorsistemas/scala-ng/form-field\";\nimport { SdsInputComponent } from \"@seniorsistemas/scala-ng/input\";\nimport { SdsInputFeedbackComponent } from \"@seniorsistemas/scala-ng/input-feedback\";\n\nimport type { AutocompleteOption, DisplayRow, TaggedOption } from \"./autocomplete.models\";\nimport { SdsAutocompletePanelComponent } from \"./panel/autocomplete-panel.component\";\n\n/**\n * Adapts a `TaggedOption<T>` to CDK's `Highlightable` for `ActiveDescendantKeyManager`.\n * Highlight is driven by the `focusedIndex` signal, so the style hooks are no-ops.\n */\nclass AutocompleteOptionAdapter<T> implements Highlightable {\n readonly disabled: boolean;\n\n constructor(readonly option: TaggedOption<T>) {\n this.disabled = !!option.disabled;\n }\n\n getLabel(): string {\n return this.option.label;\n }\n\n setActiveStyles(): void {\n // No-op: see class comment.\n }\n\n setInactiveStyles(): void {\n // No-op: see class comment.\n }\n}\n\n@Component({\n selector: \"sds-autocomplete\",\n standalone: true,\n imports: [\n TranslatePipe,\n ReactiveFormsModule,\n SdsInputComponent,\n SdsInputFeedbackComponent,\n SdsAutocompletePanelComponent,\n CdkConnectedOverlay,\n CdkOverlayOrigin,\n ],\n templateUrl: \"./autocomplete.component.html\",\n})\nexport class SdsAutocompleteComponent<T = unknown> implements ControlValueAccessor, OnInit {\n private static idCounter = 0;\n\n private readonly document = inject(DOCUMENT);\n private readonly elementRef = inject(ElementRef);\n private readonly injector = inject(Injector);\n private readonly ngZone = inject(NgZone);\n private readonly sso = inject(ScrollStrategyOptions);\n private readonly destroyRef = inject(DestroyRef);\n private readonly sdsInputRef = viewChild.required(SdsInputComponent);\n private readonly triggerElRef = viewChild.required<ElementRef<HTMLElement>>(\"triggerEl\");\n\n protected readonly _id: string;\n protected readonly _listboxId: string;\n protected readonly _panelId: string;\n protected readonly ngControl = inject(NgControl, { self: true, optional: true });\n\n protected readonly internalTextControl = new FormControl<string>(\"\", { nonNullable: true });\n\n private readonly _formInvalid = signal(false);\n protected readonly isControlInvalid = computed<boolean>(() =>\n this.ngControl ? this._formInvalid() : this.required() && this.internalValue() === null,\n );\n protected readonly isControlTouched = signal(false);\n protected readonly isOpen = signal(false);\n protected readonly formDisabled = signal(false);\n protected readonly focusedIndex = signal(-1);\n protected readonly internalValue = signal<T | null>(null);\n protected readonly inputText = signal(\"\");\n protected readonly triggerWidth = signal(0);\n\n protected readonly scrollStrategy = this.sso.reposition();\n protected readonly overlayPositions: ConnectedPosition[] = this.buildOverlayPositions();\n\n /** Options shown in the panel, as plain strings or `AutocompleteOption<T>` objects. */\n readonly options = input.required<TaggedOption<T>[], (AutocompleteOption<T> | string)[]>({\n transform: (value: (AutocompleteOption<T> | string)[]): TaggedOption<T>[] =>\n value.map((option) => {\n const base =\n typeof option === \"string\" ? { label: option, value: option as unknown as T } : option;\n return { ...base, _trackId: crypto.randomUUID() };\n }),\n });\n\n /** Field label; also used as `aria-label` when `showLabel` is false. */\n readonly label = input<string>(\"\");\n\n /** Field height: `\"default\"` = 40px, `\"small\"` = 32px. */\n readonly size = input<\"default\" | \"small\">(\"default\");\n\n /** Text shown in parentheses next to the label to mark the field as optional. */\n readonly optionalText = input<string>(\"\");\n\n /** Marks the field as required, adding the `*` indicator and `aria-required`. */\n readonly required = input<boolean>(false);\n\n /** Text shown when there is no selected value or typed text. */\n readonly placeholder = input<string>(\"\");\n\n /** Helper text shown below the field when there is no error or success message. */\n readonly helperText = input<string>(\"\");\n\n /** Disables the field and its options panel. */\n readonly disabled = input<boolean>(false);\n\n /** Shows the value but blocks editing and selection. */\n readonly readonly = input<boolean>(false);\n\n /** Shows the label above the field. */\n readonly showLabel = input<boolean>(true);\n\n /** Shows the feedback area below the field (errors, success and helper text). */\n readonly showHelper = input<boolean>(true);\n\n /** Shows a loading spinner in the panel instead of the options. */\n readonly loading = input<boolean>(false);\n\n /** Message shown when there are no options. Overrides the default i18n text. */\n readonly emptyMessage = input<string>(\"\");\n\n /** Property or predicate for filtering by typed text. Defaults to matching `option.label`. */\n readonly filterBy = input<keyof T | ((item: T, search: string) => boolean)>();\n\n /** Equality function used to find the selected option. */\n readonly compareWith = input<(a: T, b: T) => boolean>((a, b) => a === b);\n\n /** Maps validation error keys to the messages shown in the feedback area. */\n readonly errorMessages = input<Record<string, string>>();\n\n /** Message shown when the field is valid and touched. */\n readonly validMessage = input<string>();\n\n /** Emits the typed text on every change, for async search. */\n readonly search = output<string>();\n\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n\n protected readonly fieldState = computed<FieldState>(() => {\n if (this.isDisabled()) {\n return \"disabled\";\n }\n if (!this.isControlTouched()) {\n return \"default\";\n }\n return this.isControlInvalid() ? \"invalid\" : \"valid\";\n });\n\n protected readonly selectedOption = computed(() => {\n const value = this.internalValue();\n\n if (value === null) {\n return null;\n }\n\n const compare = this.compareWith();\n return this.options().find((o) => compare(o.value, value)) ?? null;\n });\n\n protected readonly filteredOptions = computed(() =>\n filterComboboxOptions(this.options(), this.inputText(), this.filterBy()),\n );\n\n protected readonly displayRows = computed<DisplayRow<T>[]>(() =>\n buildDisplayRows(this.filteredOptions()),\n );\n\n private readonly navigableOptions = computed(() =>\n this.filteredOptions().map((option) => new AutocompleteOptionAdapter(option)),\n );\n\n protected readonly keyManager: ActiveDescendantKeyManager<AutocompleteOptionAdapter<T>>;\n\n protected readonly ariaAttrs = computed<Record<string, string | null>>(() => ({\n role: \"combobox\",\n autocomplete: \"off\",\n \"aria-expanded\": this.isOpen() ? \"true\" : \"false\",\n \"aria-haspopup\": \"listbox\",\n \"aria-controls\": this.isOpen() ? this._listboxId : null,\n \"aria-autocomplete\": \"list\",\n \"aria-required\": this.required() ? \"true\" : null,\n \"aria-invalid\": this.isControlTouched() && this.isControlInvalid() ? \"true\" : null,\n \"aria-label\": !this.showLabel() && this.label() ? this.label() : null,\n \"aria-activedescendant\":\n this.isOpen() && this.focusedIndex() >= 0\n ? `${this._id}-option-${this.focusedIndex()}`\n : null,\n }));\n\n constructor() {\n SdsAutocompleteComponent.idCounter++;\n this._id = `sds-autocomplete-${SdsAutocompleteComponent.idCounter}`;\n this._listboxId = `${this._id}-listbox`;\n this._panelId = `${this._id}-panel`;\n if (this.ngControl) {\n this.ngControl.valueAccessor = this;\n }\n\n this.setupTextControlSubscription();\n syncControlState(this.ngControl, this.destroyRef, this._formInvalid, this.isControlTouched);\n effect(\n () => {\n if (this.isDisabled()) {\n this.internalTextControl.disable({ emitEvent: false });\n } else {\n this.internalTextControl.enable({ emitEvent: false });\n }\n },\n { allowSignalWrites: true },\n );\n\n this.keyManager = new ActiveDescendantKeyManager(this.navigableOptions, this.injector)\n .withWrap()\n .withHomeAndEnd()\n .withPageUpDown(true, 10)\n .skipPredicate((item) => item.disabled);\n\n this.keyManager.change.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((index) => {\n // The overlay content and CDK typeahead can fire outside Angular's zone;\n // re-enter it so the signal write triggers change detection.\n this.ngZone.run(() => this.focusedIndex.set(index));\n });\n\n this.destroyRef.onDestroy(() => this.keyManager.destroy());\n }\n\n ngOnInit(): void {\n // `.withTypeAhead()` reads the items synchronously; required inputs are only\n // available from `ngOnInit` (the constructor would throw NG0950).\n this.keyManager.withTypeAhead();\n }\n\n writeValue(value: T | null): void {\n this.internalValue.set(value ?? null);\n const label =\n value !== null && value !== undefined\n ? (this.options().find((o) => this.compareWith()(o.value, value))?.label ?? \"\")\n : \"\";\n this.inputText.set(label);\n this.internalTextControl.setValue(label, { emitEvent: false });\n }\n\n registerOnChange(callback: (value: T | null) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = () => {\n callback();\n this.isControlTouched.set(true);\n };\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n\n protected get control(): AbstractControl {\n const ctrl = this.ngControl?.control;\n\n if (!ctrl) {\n throw new Error(\"control accessed outside NgControl context\");\n }\n\n return ctrl;\n }\n\n protected openPanel(): void {\n if (this.isDisabled() || this.readonly() || this.isOpen()) {\n return;\n }\n\n this.triggerWidth.set(this.triggerElRef().nativeElement.offsetWidth);\n this.isOpen.set(true);\n const opts = this.filteredOptions();\n const internal = this.internalValue();\n const compare = this.compareWith();\n const selectedIdx = internal !== null ? opts.findIndex((o) => compare(o.value, internal)) : -1;\n this.keyManager.setActiveItem(selectedIdx >= 0 ? selectedIdx : -1);\n\n if (selectedIdx >= 0) {\n setTimeout(() => this.scrollOptionIntoView(selectedIdx), 0);\n }\n }\n\n protected closePanel(): void {\n if (!this.isOpen()) {\n return;\n }\n\n this.isOpen.set(false);\n this.keyManager.setActiveItem(-1);\n const label = this.selectedOption()?.label ?? \"\";\n this.inputText.set(label);\n this.internalTextControl.setValue(label, { emitEvent: false });\n }\n\n protected selectOption(option: AutocompleteOption<T>): void {\n if (option.disabled) {\n return;\n }\n\n this.internalValue.set(option.value);\n this.inputText.set(option.label);\n this.internalTextControl.setValue(option.label, { emitEvent: false });\n this.onChange(option.value);\n this.isControlTouched.set(true);\n this.onTouched();\n this.isOpen.set(false);\n this.keyManager.setActiveItem(-1);\n setTimeout(() => this.sdsInputRef().focus(), 0);\n }\n\n protected handleOptionHover(index: number): void {\n this.keyManager.setActiveItem(index);\n }\n\n protected clearSelection(): void {\n this.internalValue.set(null);\n this.inputText.set(\"\");\n this.internalTextControl.setValue(\"\", { emitEvent: false });\n this.onChange(null);\n this.isControlTouched.set(true);\n this.onTouched();\n this.isOpen.set(false);\n this.keyManager.setActiveItem(-1);\n setTimeout(() => this.sdsInputRef().focus(), 0);\n }\n\n protected handleInputKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case \"Enter\": {\n this.handleEnter(event);\n break;\n }\n case \"Escape\": {\n this.handleEscape(event);\n break;\n }\n case \"ArrowDown\":\n case \"ArrowUp\": {\n if (!this.isOpen()) {\n event.preventDefault();\n this.openPanel();\n break;\n }\n\n this.handleListNavigationKey(event);\n break;\n }\n case \"Home\":\n case \"End\":\n case \"PageDown\":\n case \"PageUp\": {\n if (!this.isOpen()) {\n break;\n }\n\n this.handleListNavigationKey(event);\n break;\n }\n default: {\n // No preventDefault: typed characters must reach the input to filter the list,\n // while typeahead also moves the active item.\n if (this.isOpen()) {\n this.trackActiveItemChange(() => this.keyManager.onKeydown(event));\n }\n break;\n }\n }\n }\n\n private handleListNavigationKey(event: KeyboardEvent): void {\n event.preventDefault();\n this.trackActiveItemChange(() => this.keyManager.onKeydown(event));\n }\n\n private trackActiveItemChange(runKeyManagerAction: () => void): void {\n const previousActiveIndex = this.keyManager.activeItemIndex;\n runKeyManagerAction();\n\n if (this.keyManager.activeItemIndex !== previousActiveIndex) {\n this.scrollOptionIntoView(this.keyManager.activeItemIndex ?? -1);\n }\n }\n\n protected handleClearButtonBlur(event: FocusEvent): void {\n this.handleFocusLeave(event);\n }\n\n protected handleInputBlur(event: FocusEvent): void {\n this.handleFocusLeave(event);\n }\n\n private handleFocusLeave(event: FocusEvent): void {\n const related = event.relatedTarget as HTMLElement | null;\n const isInsideComponent = related !== null && this.elementRef.nativeElement.contains(related);\n const isInsidePanel = related !== null && !!related.closest(`#${this._panelId}`);\n\n if (!isInsideComponent && !isInsidePanel) {\n this.isControlTouched.set(true);\n this.onTouched();\n this.closePanel();\n }\n }\n\n protected handleOutsideClick(event: MouseEvent): void {\n if (this.elementRef.nativeElement.contains(event.target as HTMLElement)) {\n return;\n }\n\n this.isControlTouched.set(true);\n this.onTouched();\n this.closePanel();\n }\n\n private handleEnter(event: KeyboardEvent): void {\n if (!this.isOpen()) {\n return;\n }\n\n event.preventDefault();\n const target = this.keyManager.activeItem;\n\n if (target && !target.disabled) {\n this.selectOption(target.option);\n }\n }\n\n private handleEscape(event: KeyboardEvent): void {\n event.preventDefault();\n this.isControlTouched.set(true);\n this.onTouched();\n this.closePanel();\n }\n\n private buildOverlayPositions(): ConnectedPosition[] {\n const DEFAULT_OFFSET = 12;\n const offsetStr = getComputedStyle(this.document.documentElement)\n .getPropertyValue(\"--sds-space-1-5\")\n .trim();\n const offset = offsetStr ? parseInt(offsetStr, 10) : DEFAULT_OFFSET;\n return [\n { originX: \"start\", originY: \"bottom\", overlayX: \"start\", overlayY: \"top\", offsetY: offset },\n { originX: \"start\", originY: \"top\", overlayX: \"start\", overlayY: \"bottom\", offsetY: -offset },\n ];\n }\n\n private setupTextControlSubscription(): void {\n this.internalTextControl.valueChanges\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((text) => {\n this.inputText.set(text);\n this.internalValue.set(null);\n this.onChange(null);\n this.search.emit(text);\n\n if (!this.isOpen()) {\n this.openPanel();\n } else {\n this.keyManager.setActiveItem(-1);\n }\n });\n }\n\n private scrollOptionIntoView(index: number): void {\n getComboboxOptionEl(\n this.elementRef.nativeElement.ownerDocument,\n this._id,\n index,\n )?.scrollIntoView({ block: \"nearest\" });\n }\n\n private onChange: (value: T | null) => void = () => {};\n private onTouched: () => void = () => {};\n}\n","@let open = isOpen();\n@let disabled = isDisabled();\n@let isReadonly = readonly();\n@let isInteractive = !disabled && !isReadonly;\n@let hasSelection = internalValue() !== null;\n\n<div\n #triggerEl\n class=\"flex flex-col gap-[6px]\"\n>\n @if (showLabel() && label()) {\n <div class=\"flex items-center gap-[2px]\">\n <label\n [for]=\"_id\"\n class=\"flex items-center gap-1 text-[14px] font-medium leading-[1.25]\"\n >\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-primary'\">{{\n label()\n }}</span>\n @if (optionalText()) {\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >({{ optionalText() }})</span\n >\n }\n </label>\n @if (required()) {\n <span\n class=\"shrink-0 text-[14px] font-medium leading-[1.25]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-destructive'\"\n aria-hidden=\"true\"\n >*</span\n >\n }\n </div>\n }\n\n <sds-input\n #triggerOrigin=\"cdkOverlayOrigin\"\n cdkOverlayOrigin\n [label]=\"label()\"\n [showLabel]=\"false\"\n [showHelper]=\"false\"\n [size]=\"size()\"\n [inputId]=\"_id\"\n [placeholder]=\"placeholder()\"\n [icon]=\"'fa-solid fa-magnifying-glass'\"\n [readonly]=\"isReadonly\"\n [formControl]=\"internalTextControl\"\n [nativeInputAttrs]=\"ariaAttrs()\"\n [state]=\"fieldState()\"\n (inputKeydown)=\"handleInputKeydown($event)\"\n (focusOut)=\"handleInputBlur($event.event)\"\n >\n @if (hasSelection && isInteractive) {\n <button\n type=\"button\"\n sdsInputTrailing\n class=\"shrink-0 cursor-pointer rounded-radius-small p-0 text-[14px] text-color-text-neutral-secondary outline-none hover:text-color-text-neutral-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-color-border-focused\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_clear_label' | translate\"\n (mousedown)=\"$event.preventDefault()\"\n (focusout)=\"handleClearButtonBlur($event)\"\n (click)=\"clearSelection()\"\n >\n <i\n class=\"fa-solid fa-xmark\"\n aria-hidden=\"true\"\n ></i>\n </button>\n }\n </sds-input>\n\n @if (showHelper()) {\n @if (errorMessages() && ngControl?.control) {\n <sds-input-feedback\n [control]=\"control\"\n [errorMessages]=\"errorMessages()!\"\n [validMessage]=\"validMessage()\"\n [adviceMessage]=\"helperText()\"\n />\n } @else if (helperText()) {\n <span\n class=\"text-[14px] font-normal leading-[1.5]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >{{ helperText() }}</span\n >\n }\n }\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"triggerOrigin\"\n [cdkConnectedOverlayOpen]=\"open\"\n [cdkConnectedOverlayWidth]=\"triggerWidth()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n (overlayOutsideClick)=\"handleOutsideClick($event)\"\n (detach)=\"closePanel()\"\n>\n <sds-autocomplete-panel\n [panelId]=\"_panelId\"\n [listboxId]=\"_listboxId\"\n [optionIdPrefix]=\"_id\"\n [label]=\"label()\"\n [loading]=\"loading()\"\n [emptyMessage]=\"emptyMessage()\"\n [displayRows]=\"displayRows()\"\n [focusedIndex]=\"focusedIndex()\"\n [selectedValue]=\"internalValue()\"\n [compareWith]=\"compareWith()\"\n (optionSelect)=\"selectOption($event)\"\n (focusChange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EAAA,kuHAAA,EAAA,CAAA;;;AEjFH;;AAEG;;;;"}
1
+ {"version":3,"file":"seniorsistemas-scala-ng-autocomplete.mjs","sources":["../../projects/scala-ng/autocomplete/src/autocomplete/panel/autocomplete-panel.component.ts","../../projects/scala-ng/autocomplete/src/autocomplete/panel/autocomplete-panel.component.html","../../projects/scala-ng/autocomplete/src/autocomplete/autocomplete.component.ts","../../projects/scala-ng/autocomplete/src/autocomplete/autocomplete.component.html","../../projects/scala-ng/autocomplete/seniorsistemas-scala-ng-autocomplete.ts"],"sourcesContent":["import { NgClass, NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, input, output } from '@angular/core';\n\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { SdsLoadingSpinnerComponent } from '@seniorsistemas/scala-ng/loading-state';\n\nimport type { AutocompleteOption, DisplayRow } from '../autocomplete.models';\n\n@Component({\n selector: 'sds-autocomplete-panel',\n standalone: true,\n imports: [NgClass, NgTemplateOutlet, TranslatePipe, SdsLoadingSpinnerComponent],\n templateUrl: './autocomplete-panel.component.html',\n styles: [':host { display: block; width: 100%; }'],\n})\nexport class SdsAutocompletePanelComponent<T = unknown> {\n /** ID of the panel root element; the trigger uses it to detect focus inside the panel. */\n readonly panelId = input.required<string>();\n\n /** ID of the `role=\"listbox\"` element, referenced by the combobox `aria-controls`. */\n readonly listboxId = input.required<string>();\n\n /** Prefix for option IDs, in the form `{prefix}-option-{index}`. */\n readonly optionIdPrefix = input.required<string>();\n\n /** Listbox `aria-label`, usually the parent field label. */\n readonly label = input<string>('');\n\n /** Shows a spinner instead of the listbox. */\n readonly loading = input<boolean>(false);\n\n /** Empty-state message. Overrides the default i18n text. */\n readonly emptyMessage = input<string>('');\n\n /** Rows to render: group headers and already-filtered options. */\n readonly displayRows = input.required<DisplayRow<T>[]>();\n\n /** Index of the option highlighted by keyboard or hover; `-1` for none. */\n readonly focusedIndex = input<number>(-1);\n\n /** Currently selected value, matched via `compareWith` to set `aria-selected`. */\n readonly selectedValue = input<T | null>(null);\n\n /** Equality function used to find the selected option. */\n readonly compareWith = input<(a: T, b: T) => boolean>((a, b) => a === b);\n\n /** Emits the option the user clicks or presses Enter on. */\n readonly optionSelect = output<AutocompleteOption<T>>();\n\n /** Emits the hovered option index, or `-1` when the pointer leaves the listbox. */\n readonly focusChange = output<number>();\n\n protected readonly hasOptions = computed(() =>\n this.displayRows().some((r) => r.type === 'option'),\n );\n\n protected readonly groupedRows = computed(() => {\n type OptionRow = Extract<DisplayRow<T>, { type: 'option' }>;\n const groups: { id: string; label?: string; options: OptionRow[] }[] = [];\n let current: (typeof groups)[number] | null = null;\n\n for (const row of this.displayRows()) {\n if (row.type === 'header') {\n current = { id: row.trackId, label: row.label, options: [] };\n groups.push(current);\n } else {\n if (!current) {\n current = { id: 'ungrouped', options: [] };\n groups.push(current);\n }\n current.options.push(row as OptionRow);\n }\n }\n\n return groups;\n });\n\n protected isOptionSelected(optionValue: T): boolean {\n const internal = this.selectedValue();\n return internal !== null && this.compareWith()(optionValue, internal);\n }\n}\n","<div\n [id]=\"panelId()\"\n class=\"w-full overflow-hidden rounded-radius-xlarge border border-solid border-color-border-interactive-secondary bg-surface-default shadow-shadow-popover\"\n>\n @if (loading()) {\n <output\n aria-live=\"polite\"\n class=\"flex w-full items-center justify-center px-space-2 py-space-2\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_loading_label' | translate\"\n >\n <sds-loading-spinner [size]=\"20\" />\n </output>\n } @else if (!hasOptions()) {\n <output\n aria-live=\"polite\"\n class=\"flex items-center justify-center p-4\"\n [attr.aria-label]=\"\n emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate)\n \"\n >\n <span\n class=\"text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n aria-hidden=\"true\"\n >{{ emptyMessage() || ('platform.scala-ng.autocomplete_empty_label' | translate) }}</span\n >\n </output>\n } @else {\n <ul\n [id]=\"listboxId()\"\n role=\"listbox\"\n class=\"max-h-[320px] overflow-y-auto py-1\"\n [attr.aria-label]=\"label() || ('platform.scala-ng.autocomplete_options_label' | translate)\"\n (mouseleave)=\"focusChange.emit(-1)\"\n >\n @for (group of groupedRows(); track group.id) {\n @if (group.label !== undefined) {\n <li\n role=\"group\"\n [attr.aria-label]=\"group.label\"\n >\n <div\n aria-hidden=\"true\"\n class=\"flex h-[28px] items-center px-3 pb-1 pt-2\"\n >\n <span\n class=\"min-w-0 flex-1 text-[12px] font-medium uppercase tracking-[0.96px] text-color-text-neutral-secondary\"\n >{{ group.label }}</span\n >\n </div>\n <ul role=\"presentation\">\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n </ul>\n </li>\n } @else {\n @for (row of group.options; track row.trackId) {\n <ng-container *ngTemplateOutlet=\"optionItem; context: { row: row }\"></ng-container>\n }\n }\n }\n </ul>\n }\n</div>\n\n<ng-template\n #optionItem\n let-row=\"row\"\n>\n <li\n [id]=\"optionIdPrefix() + '-option-' + row.optionIndex\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"flex items-center gap-2 px-3 py-2 outline-none\"\n [ngClass]=\"{\n 'cursor-not-allowed': row.option.disabled,\n 'bg-color-background-disable': row.option.disabled,\n 'cursor-pointer': !row.option.disabled,\n 'bg-color-background-interactive-secondary-hovered':\n !row.option.disabled && focusedIndex() === row.optionIndex,\n }\"\n [attr.aria-selected]=\"isOptionSelected(row.option.value) ? 'true' : 'false'\"\n [attr.aria-disabled]=\"row.option.disabled ? 'true' : null\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"optionSelect.emit(row.option)\"\n (keydown.enter)=\"optionSelect.emit(row.option)\"\n (mouseenter)=\"focusChange.emit(row.option.disabled ? -1 : row.optionIndex)\"\n >\n <div\n class=\"flex min-w-0 flex-1 flex-col gap-[2px] overflow-hidden\"\n [ngClass]=\"{\n 'text-color-text-disable': row.option.disabled,\n 'text-color-text-neutral-primary': !row.option.disabled,\n }\"\n >\n <span class=\"truncate text-[14px] font-normal leading-[1.5]\">{{ row.option.label }}</span>\n @if (row.option.description) {\n <span\n class=\"truncate text-[14px] font-normal leading-[1.5] text-color-text-neutral-secondary\"\n >{{ row.option.description }}</span\n >\n }\n </div>\n @if (isOptionSelected(row.option.value)) {\n <i\n class=\"fa-solid fa-check shrink-0 text-[12px] text-color-text-neutral-primary\"\n aria-hidden=\"true\"\n ></i>\n }\n </li>\n</ng-template>\n","import { ActiveDescendantKeyManager, Highlightable } from '@angular/cdk/a11y';\nimport {\n CdkConnectedOverlay,\n CdkOverlayOrigin,\n ConnectedPosition,\n ScrollStrategyOptions,\n} from '@angular/cdk/overlay';\nimport { DOCUMENT } from '@angular/common';\nimport {\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n NgZone,\n OnInit,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport {\n AbstractControl,\n ControlValueAccessor,\n FormControl,\n NgControl,\n ReactiveFormsModule,\n} from '@angular/forms';\n\nimport { TranslatePipe } from '@ngx-translate/core';\nimport {\n buildDisplayRows,\n filterComboboxOptions,\n getComboboxOptionEl,\n syncControlState,\n} from '@seniorsistemas/scala-ng';\nimport { type FieldState } from '@seniorsistemas/scala-ng/form-field';\nimport { SdsInputComponent } from '@seniorsistemas/scala-ng/input';\nimport { SdsInputFeedbackComponent } from '@seniorsistemas/scala-ng/input-feedback';\n\nimport type { AutocompleteOption, DisplayRow, TaggedOption } from './autocomplete.models';\nimport { SdsAutocompletePanelComponent } from './panel/autocomplete-panel.component';\n\n/**\n * Adapts a `TaggedOption<T>` to CDK's `Highlightable` for `ActiveDescendantKeyManager`.\n * Highlight is driven by the `focusedIndex` signal, so the style hooks are no-ops.\n */\nclass AutocompleteOptionAdapter<T> implements Highlightable {\n readonly disabled: boolean;\n\n constructor(readonly option: TaggedOption<T>) {\n this.disabled = !!option.disabled;\n }\n\n getLabel(): string {\n return this.option.label;\n }\n\n setActiveStyles(): void {\n // No-op: see class comment.\n }\n\n setInactiveStyles(): void {\n // No-op: see class comment.\n }\n}\n\n@Component({\n selector: 'sds-autocomplete',\n standalone: true,\n imports: [\n TranslatePipe,\n ReactiveFormsModule,\n SdsInputComponent,\n SdsInputFeedbackComponent,\n SdsAutocompletePanelComponent,\n CdkConnectedOverlay,\n CdkOverlayOrigin,\n ],\n templateUrl: './autocomplete.component.html',\n})\nexport class SdsAutocompleteComponent<T = unknown> implements ControlValueAccessor, OnInit {\n private static idCounter = 0;\n\n private readonly document = inject(DOCUMENT);\n private readonly elementRef = inject(ElementRef);\n private readonly injector = inject(Injector);\n private readonly ngZone = inject(NgZone);\n private readonly sso = inject(ScrollStrategyOptions);\n private readonly destroyRef = inject(DestroyRef);\n private readonly sdsInputRef = viewChild.required(SdsInputComponent);\n private readonly triggerElRef = viewChild.required<ElementRef<HTMLElement>>('triggerEl');\n\n protected readonly _id: string;\n protected readonly _listboxId: string;\n protected readonly _panelId: string;\n protected readonly ngControl = inject(NgControl, { self: true, optional: true });\n\n protected readonly internalTextControl = new FormControl<string>('', { nonNullable: true });\n\n private readonly _formInvalid = signal(false);\n protected readonly isControlInvalid = computed<boolean>(() =>\n this.ngControl ? this._formInvalid() : this.required() && this.internalValue() === null,\n );\n protected readonly isControlTouched = signal(false);\n protected readonly isOpen = signal(false);\n protected readonly formDisabled = signal(false);\n protected readonly focusedIndex = signal(-1);\n protected readonly internalValue = signal<T | null>(null);\n protected readonly inputText = signal('');\n protected readonly triggerWidth = signal(0);\n\n protected readonly scrollStrategy = this.sso.reposition();\n protected readonly overlayPositions: ConnectedPosition[] = this.buildOverlayPositions();\n\n /** Options shown in the panel, as plain strings or `AutocompleteOption<T>` objects. */\n readonly options = input.required<TaggedOption<T>[], (AutocompleteOption<T> | string)[]>({\n transform: (value: (AutocompleteOption<T> | string)[]): TaggedOption<T>[] =>\n value.map((option) => {\n const base =\n typeof option === 'string' ? { label: option, value: option as unknown as T } : option;\n return { ...base, _trackId: crypto.randomUUID() };\n }),\n });\n\n /** Field label; also used as `aria-label` when `showLabel` is false. */\n readonly label = input<string>('');\n\n /** Field height: `\"default\"` = 40px, `\"small\"` = 32px. */\n readonly size = input<'default' | 'small'>('default');\n\n /** Text shown in parentheses next to the label to mark the field as optional. */\n readonly optionalText = input<string>('');\n\n /** Marks the field as required, adding the `*` indicator and `aria-required`. */\n readonly required = input<boolean>(false);\n\n /** Text shown when there is no selected value or typed text. */\n readonly placeholder = input<string>('');\n\n /** Helper text shown below the field when there is no error or success message. */\n readonly helperText = input<string>('');\n\n /** Disables the field and its options panel. */\n readonly disabled = input<boolean>(false);\n\n /** Shows the value but blocks editing and selection. */\n readonly readonly = input<boolean>(false);\n\n /** Shows the label above the field. */\n readonly showLabel = input<boolean>(true);\n\n /** Shows the feedback area below the field (errors, success and helper text). */\n readonly showHelper = input<boolean>(true);\n\n /** Shows a loading spinner in the panel instead of the options. */\n readonly loading = input<boolean>(false);\n\n /** Message shown when there are no options. Overrides the default i18n text. */\n readonly emptyMessage = input<string>('');\n\n /** Property or predicate for filtering by typed text. Defaults to matching `option.label`. */\n readonly filterBy = input<keyof T | ((item: T, search: string) => boolean)>();\n\n /** Equality function used to find the selected option. */\n readonly compareWith = input<(a: T, b: T) => boolean>((a, b) => a === b);\n\n /** Maps validation error keys to the messages shown in the feedback area. */\n readonly errorMessages = input<Record<string, string>>();\n\n /** Message shown when the field is valid and touched. */\n readonly validMessage = input<string>();\n\n /** Emits the typed text on every change, for async search. */\n readonly search = output<string>();\n\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n\n protected readonly fieldState = computed<FieldState>(() => {\n if (this.isDisabled()) {\n return 'disabled';\n }\n if (!this.isControlTouched()) {\n return 'default';\n }\n return this.isControlInvalid() ? 'invalid' : 'valid';\n });\n\n protected readonly selectedOption = computed(() => {\n const value = this.internalValue();\n\n if (value === null) {\n return null;\n }\n\n const compare = this.compareWith();\n return this.options().find((o) => compare(o.value, value)) ?? null;\n });\n\n protected readonly filteredOptions = computed(() =>\n filterComboboxOptions(this.options(), this.inputText(), this.filterBy()),\n );\n\n protected readonly displayRows = computed<DisplayRow<T>[]>(() =>\n buildDisplayRows(this.filteredOptions()),\n );\n\n private readonly navigableOptions = computed(() =>\n this.filteredOptions().map((option) => new AutocompleteOptionAdapter(option)),\n );\n\n protected readonly keyManager: ActiveDescendantKeyManager<AutocompleteOptionAdapter<T>>;\n\n protected readonly ariaAttrs = computed<Record<string, string | null>>(() => ({\n role: 'combobox',\n autocomplete: 'off',\n 'aria-expanded': this.isOpen() ? 'true' : 'false',\n 'aria-haspopup': 'listbox',\n 'aria-controls': this.isOpen() ? this._listboxId : null,\n 'aria-autocomplete': 'list',\n 'aria-required': this.required() ? 'true' : null,\n 'aria-invalid': this.isControlTouched() && this.isControlInvalid() ? 'true' : null,\n 'aria-label': !this.showLabel() && this.label() ? this.label() : null,\n 'aria-activedescendant':\n this.isOpen() && this.focusedIndex() >= 0\n ? `${this._id}-option-${this.focusedIndex()}`\n : null,\n }));\n\n constructor() {\n SdsAutocompleteComponent.idCounter++;\n this._id = `sds-autocomplete-${SdsAutocompleteComponent.idCounter}`;\n this._listboxId = `${this._id}-listbox`;\n this._panelId = `${this._id}-panel`;\n if (this.ngControl) {\n this.ngControl.valueAccessor = this;\n }\n\n this.setupTextControlSubscription();\n syncControlState(this.ngControl, this.destroyRef, this._formInvalid, this.isControlTouched);\n effect(\n () => {\n if (this.isDisabled()) {\n this.internalTextControl.disable({ emitEvent: false });\n } else {\n this.internalTextControl.enable({ emitEvent: false });\n }\n },\n { allowSignalWrites: true },\n );\n\n this.keyManager = new ActiveDescendantKeyManager(this.navigableOptions, this.injector)\n .withWrap()\n .withHomeAndEnd()\n .withPageUpDown(true, 10)\n .skipPredicate((item) => item.disabled);\n\n this.keyManager.change.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((index) => {\n // The overlay content and CDK typeahead can fire outside Angular's zone;\n // re-enter it so the signal write triggers change detection.\n this.ngZone.run(() => this.focusedIndex.set(index));\n });\n\n this.destroyRef.onDestroy(() => this.keyManager.destroy());\n }\n\n ngOnInit(): void {\n // `.withTypeAhead()` reads the items synchronously; required inputs are only\n // available from `ngOnInit` (the constructor would throw NG0950).\n this.keyManager.withTypeAhead();\n }\n\n writeValue(value: T | null): void {\n this.internalValue.set(value ?? null);\n const label =\n value !== null && value !== undefined\n ? (this.options().find((o) => this.compareWith()(o.value, value))?.label ?? '')\n : '';\n this.inputText.set(label);\n this.internalTextControl.setValue(label, { emitEvent: false });\n }\n\n registerOnChange(callback: (value: T | null) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = () => {\n callback();\n this.isControlTouched.set(true);\n };\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n\n protected get control(): AbstractControl {\n const ctrl = this.ngControl?.control;\n\n if (!ctrl) {\n throw new Error('control accessed outside NgControl context');\n }\n\n return ctrl;\n }\n\n protected openPanel(): void {\n if (this.isDisabled() || this.readonly() || this.isOpen()) {\n return;\n }\n\n this.triggerWidth.set(this.triggerElRef().nativeElement.offsetWidth);\n this.isOpen.set(true);\n const opts = this.filteredOptions();\n const internal = this.internalValue();\n const compare = this.compareWith();\n const selectedIdx = internal !== null ? opts.findIndex((o) => compare(o.value, internal)) : -1;\n this.keyManager.setActiveItem(selectedIdx >= 0 ? selectedIdx : -1);\n\n if (selectedIdx >= 0) {\n setTimeout(() => this.scrollOptionIntoView(selectedIdx), 0);\n }\n }\n\n protected closePanel(): void {\n if (!this.isOpen()) {\n return;\n }\n\n this.isOpen.set(false);\n this.keyManager.setActiveItem(-1);\n const label = this.selectedOption()?.label ?? '';\n this.inputText.set(label);\n this.internalTextControl.setValue(label, { emitEvent: false });\n }\n\n protected selectOption(option: AutocompleteOption<T>): void {\n if (option.disabled) {\n return;\n }\n\n this.internalValue.set(option.value);\n this.inputText.set(option.label);\n this.internalTextControl.setValue(option.label, { emitEvent: false });\n this.onChange(option.value);\n this.isControlTouched.set(true);\n this.onTouched();\n this.isOpen.set(false);\n this.keyManager.setActiveItem(-1);\n setTimeout(() => this.sdsInputRef().focus(), 0);\n }\n\n protected handleOptionHover(index: number): void {\n this.keyManager.setActiveItem(index);\n }\n\n protected clearSelection(): void {\n this.internalValue.set(null);\n this.inputText.set('');\n this.internalTextControl.setValue('', { emitEvent: false });\n this.onChange(null);\n this.isControlTouched.set(true);\n this.onTouched();\n this.isOpen.set(false);\n this.keyManager.setActiveItem(-1);\n setTimeout(() => this.sdsInputRef().focus(), 0);\n }\n\n protected handleInputKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'Enter': {\n this.handleEnter(event);\n break;\n }\n case 'Escape': {\n this.handleEscape(event);\n break;\n }\n case 'ArrowDown':\n case 'ArrowUp': {\n if (!this.isOpen()) {\n event.preventDefault();\n this.openPanel();\n break;\n }\n\n this.handleListNavigationKey(event);\n break;\n }\n case 'Home':\n case 'End':\n case 'PageDown':\n case 'PageUp': {\n if (!this.isOpen()) {\n break;\n }\n\n this.handleListNavigationKey(event);\n break;\n }\n default: {\n // No preventDefault: typed characters must reach the input to filter the list,\n // while typeahead also moves the active item.\n if (this.isOpen()) {\n this.trackActiveItemChange(() => this.keyManager.onKeydown(event));\n }\n break;\n }\n }\n }\n\n private handleListNavigationKey(event: KeyboardEvent): void {\n event.preventDefault();\n this.trackActiveItemChange(() => this.keyManager.onKeydown(event));\n }\n\n private trackActiveItemChange(runKeyManagerAction: () => void): void {\n const previousActiveIndex = this.keyManager.activeItemIndex;\n runKeyManagerAction();\n\n if (this.keyManager.activeItemIndex !== previousActiveIndex) {\n this.scrollOptionIntoView(this.keyManager.activeItemIndex ?? -1);\n }\n }\n\n protected handleClearButtonBlur(event: FocusEvent): void {\n this.handleFocusLeave(event);\n }\n\n protected handleInputBlur(event: FocusEvent): void {\n this.handleFocusLeave(event);\n }\n\n private handleFocusLeave(event: FocusEvent): void {\n const related = event.relatedTarget as HTMLElement | null;\n const isInsideComponent = related !== null && this.elementRef.nativeElement.contains(related);\n const isInsidePanel = related !== null && !!related.closest(`#${this._panelId}`);\n\n if (!isInsideComponent && !isInsidePanel) {\n this.isControlTouched.set(true);\n this.onTouched();\n this.closePanel();\n }\n }\n\n protected handleOutsideClick(event: MouseEvent): void {\n if (this.elementRef.nativeElement.contains(event.target as HTMLElement)) {\n return;\n }\n\n this.isControlTouched.set(true);\n this.onTouched();\n this.closePanel();\n }\n\n private handleEnter(event: KeyboardEvent): void {\n if (!this.isOpen()) {\n return;\n }\n\n event.preventDefault();\n const target = this.keyManager.activeItem;\n\n if (target && !target.disabled) {\n this.selectOption(target.option);\n }\n }\n\n private handleEscape(event: KeyboardEvent): void {\n event.preventDefault();\n this.isControlTouched.set(true);\n this.onTouched();\n this.closePanel();\n }\n\n private buildOverlayPositions(): ConnectedPosition[] {\n const DEFAULT_OFFSET = 12;\n const offsetStr = getComputedStyle(this.document.documentElement)\n .getPropertyValue('--sds-space-1-5')\n .trim();\n const offset = offsetStr ? parseInt(offsetStr, 10) : DEFAULT_OFFSET;\n return [\n { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: offset },\n { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -offset },\n ];\n }\n\n private setupTextControlSubscription(): void {\n this.internalTextControl.valueChanges\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((text) => {\n this.inputText.set(text);\n this.internalValue.set(null);\n this.onChange(null);\n this.search.emit(text);\n\n if (!this.isOpen()) {\n this.openPanel();\n } else {\n this.keyManager.setActiveItem(-1);\n }\n });\n }\n\n private scrollOptionIntoView(index: number): void {\n getComboboxOptionEl(\n this.elementRef.nativeElement.ownerDocument,\n this._id,\n index,\n )?.scrollIntoView({ block: 'nearest' });\n }\n\n private onChange: (value: T | null) => void = () => {};\n private onTouched: () => void = () => {};\n}\n","@let open = isOpen();\n@let disabled = isDisabled();\n@let isReadonly = readonly();\n@let isInteractive = !disabled && !isReadonly;\n@let hasSelection = internalValue() !== null;\n\n<div\n #triggerEl\n class=\"flex flex-col gap-[6px]\"\n>\n @if (showLabel() && label()) {\n <div class=\"flex items-center gap-[2px]\">\n <label\n [for]=\"_id\"\n class=\"flex items-center gap-1 text-[14px] font-medium leading-[1.25]\"\n >\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-primary'\">{{\n label()\n }}</span>\n @if (optionalText()) {\n <span [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >({{ optionalText() }})</span\n >\n }\n </label>\n @if (required()) {\n <span\n class=\"shrink-0 text-[14px] font-medium leading-[1.25]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-destructive'\"\n aria-hidden=\"true\"\n >*</span\n >\n }\n </div>\n }\n\n <sds-input\n #triggerOrigin=\"cdkOverlayOrigin\"\n cdkOverlayOrigin\n [label]=\"label()\"\n [showLabel]=\"false\"\n [showHelper]=\"false\"\n [size]=\"size()\"\n [inputId]=\"_id\"\n [placeholder]=\"placeholder()\"\n [icon]=\"'fa-solid fa-magnifying-glass'\"\n [readonly]=\"isReadonly\"\n [formControl]=\"internalTextControl\"\n [nativeInputAttrs]=\"ariaAttrs()\"\n [state]=\"fieldState()\"\n (inputKeydown)=\"handleInputKeydown($event)\"\n (focusOut)=\"handleInputBlur($event.event)\"\n >\n @if (hasSelection && isInteractive) {\n <button\n type=\"button\"\n sdsInputTrailing\n class=\"shrink-0 cursor-pointer rounded-radius-small p-0 text-[14px] text-color-text-neutral-secondary outline-none hover:text-color-text-neutral-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-color-border-focused\"\n [attr.aria-label]=\"'platform.scala-ng.autocomplete_clear_label' | translate\"\n (mousedown)=\"$event.preventDefault()\"\n (focusout)=\"handleClearButtonBlur($event)\"\n (click)=\"clearSelection()\"\n >\n <i\n class=\"fa-solid fa-xmark\"\n aria-hidden=\"true\"\n ></i>\n </button>\n }\n </sds-input>\n\n @if (showHelper()) {\n @if (errorMessages() && ngControl?.control) {\n <sds-input-feedback\n [control]=\"control\"\n [errorMessages]=\"errorMessages()!\"\n [validMessage]=\"validMessage()\"\n [adviceMessage]=\"helperText()\"\n />\n } @else if (helperText()) {\n <span\n class=\"text-[14px] font-normal leading-[1.5]\"\n [class]=\"disabled ? 'text-color-text-disable' : 'text-color-text-neutral-secondary'\"\n >{{ helperText() }}</span\n >\n }\n }\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"triggerOrigin\"\n [cdkConnectedOverlayOpen]=\"open\"\n [cdkConnectedOverlayWidth]=\"triggerWidth()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n (overlayOutsideClick)=\"handleOutsideClick($event)\"\n (detach)=\"closePanel()\"\n>\n <sds-autocomplete-panel\n [panelId]=\"_panelId\"\n [listboxId]=\"_listboxId\"\n [optionIdPrefix]=\"_id\"\n [label]=\"label()\"\n [loading]=\"loading()\"\n [emptyMessage]=\"emptyMessage()\"\n [displayRows]=\"displayRows()\"\n [focusedIndex]=\"focusedIndex()\"\n [selectedValue]=\"internalValue()\"\n [compareWith]=\"compareWith()\"\n (optionSelect)=\"selectOption($event)\"\n (focusChange)=\"handleOptionHover($event)\"\n />\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAea,6BAA6B,CAAA;;AAE/B,IAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;;AAGnC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;;AAGrC,IAAA,cAAc,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;;AAG1C,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;;AAG1B,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;;AAGhC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