@ids-group-ltd/ids-design-system 0.11.3 → 0.12.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 (249) hide show
  1. package/CHANGELOG.md +253 -13
  2. package/components/README.md +86 -0
  3. package/components.md +12 -4
  4. package/docs/agent/INDEX.md +1 -0
  5. package/docs/agent/platform/body-scroll-lock-service.md +12 -0
  6. package/docs/agent/platform/toast-service.md +4 -6
  7. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +85 -0
  8. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -0
  9. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +70 -0
  10. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -0
  11. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +573 -0
  12. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -0
  13. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +86 -0
  14. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -0
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +615 -0
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -0
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +30 -0
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -0
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +188 -0
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -0
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +59 -0
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -0
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +92 -0
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -0
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +204 -0
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -0
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +100 -0
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -0
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +23 -0
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -0
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +180 -0
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -0
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +78 -0
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -0
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +49 -0
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -0
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +73 -0
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -0
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +397 -0
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -0
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +1231 -0
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -0
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +51 -0
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -0
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +35 -0
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -0
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +109 -0
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -0
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +111 -0
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -0
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +52 -0
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -0
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +92 -0
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -0
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +62 -0
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -0
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +164 -0
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -0
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +85 -0
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -0
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +223 -0
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -0
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +63 -0
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -0
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +53 -0
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -0
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +43 -0
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -0
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +286 -0
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -0
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +329 -0
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -0
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +612 -0
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -0
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +69 -0
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -0
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +191 -0
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -0
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +23 -0
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -0
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +43 -0
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -0
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +85 -0
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -0
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +95 -0
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -0
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +240 -0
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -0
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +41 -0
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +1 -0
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +235 -0
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -0
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +62 -0
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -0
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +173 -0
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -0
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +123 -0
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -0
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +461 -0
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -0
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +107 -0
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -0
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +185 -0
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -0
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +32 -0
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -0
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +204 -0
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -0
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +25 -0
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -0
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +53 -0
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -0
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +99 -0
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -0
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +26 -0
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -0
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +74 -0
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -0
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +76 -0
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -0
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +1802 -0
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -0
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +381 -0
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -0
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +44 -0
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -0
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +158 -0
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -0
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +671 -0
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -0
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +41 -0
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -0
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +547 -0
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -0
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +34 -0
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -0
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +218 -0
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -0
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +18 -0
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -0
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +153 -0
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -0
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +48 -0
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -0
  145. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +1338 -0
  146. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -0
  147. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +325 -0
  148. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -0
  149. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +101 -0
  150. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -0
  151. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +56 -0
  152. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -0
  153. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +37 -0
  154. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -0
  155. package/fesm2022/ids-group-ltd-ids-design-system.mjs +72 -14030
  156. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  157. package/migrations/0.11.0.json +0 -2
  158. package/migrations/0.11.1.json +2 -1
  159. package/migrations/0.11.2.json +2 -1
  160. package/migrations/0.11.3.json +3 -2
  161. package/migrations/0.11.4.json +247 -0
  162. package/migrations/0.12.0.json +22 -0
  163. package/migrations/0.4.0.json +2 -1
  164. package/migrations/0.7.1.json +2 -1
  165. package/migrations/0.8.0.json +6 -5
  166. package/package.json +573 -1
  167. package/styles/_control-label.scss +18 -0
  168. package/styles/_ds-color.scss +6 -0
  169. package/styles/_focus.scss +16 -0
  170. package/styles/_skeleton-shimmer.scss +10 -26
  171. package/themes/README.md +4 -4
  172. package/themes/_semantic.scss +11 -2
  173. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +48 -0
  174. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +32 -0
  175. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +260 -0
  176. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +75 -0
  177. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +226 -0
  178. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +13 -0
  179. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +99 -0
  180. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +25 -0
  181. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +41 -0
  182. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +61 -0
  183. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +66 -0
  184. package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +10 -0
  185. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +90 -0
  186. package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +41 -0
  187. package/types/ids-group-ltd-ids-design-system-components-card.d.ts +24 -0
  188. package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +41 -0
  189. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +79 -0
  190. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +251 -0
  191. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +25 -0
  192. package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +22 -0
  193. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +38 -0
  194. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +45 -0
  195. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +22 -0
  196. package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +73 -0
  197. package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +36 -0
  198. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +83 -0
  199. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +56 -0
  200. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +121 -0
  201. package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +39 -0
  202. package/types/ids-group-ltd-ids-design-system-components-list.d.ts +29 -0
  203. package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +31 -0
  204. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +82 -0
  205. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +124 -0
  206. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +213 -0
  207. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +31 -0
  208. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +52 -0
  209. package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +13 -0
  210. package/types/ids-group-ltd-ids-design-system-components-page-header.d.ts +21 -0
  211. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +32 -0
  212. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +80 -0
  213. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +48 -0
  214. package/types/ids-group-ltd-ids-design-system-components-progress.d.ts +22 -0
  215. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +106 -0
  216. package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +33 -0
  217. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +82 -0
  218. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +40 -0
  219. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +152 -0
  220. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +92 -0
  221. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +131 -0
  222. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +16 -0
  223. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +51 -0
  224. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +11 -0
  225. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +38 -0
  226. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +44 -0
  227. package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +12 -0
  228. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +32 -0
  229. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +40 -0
  230. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +791 -0
  231. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +118 -0
  232. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +26 -0
  233. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +85 -0
  234. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +188 -0
  235. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +24 -0
  236. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +167 -0
  237. package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +18 -0
  238. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +66 -0
  239. package/types/ids-group-ltd-ids-design-system-components-topbar.d.ts +8 -0
  240. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +46 -0
  241. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +18 -0
  242. package/types/ids-group-ltd-ids-design-system-components.d.ts +604 -0
  243. package/types/ids-group-ltd-ids-design-system-core.d.ts +428 -0
  244. package/types/ids-group-ltd-ids-design-system-icons.d.ts +52 -0
  245. package/types/ids-group-ltd-ids-design-system-overlay.d.ts +32 -0
  246. package/types/ids-group-ltd-ids-design-system-theme.d.ts +29 -0
  247. package/types/ids-group-ltd-ids-design-system.d.ts +72 -5544
  248. package/LICENSE +0 -21
  249. package/README.md +0 -73
@@ -0,0 +1,461 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, ViewContainerRef, ElementRef, model, input, booleanAttribute, output, computed, contentChild, TemplateRef, viewChild, signal, effect, forwardRef, ViewEncapsulation, Component } from '@angular/core';
3
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
+ import { Overlay } from '@angular/cdk/overlay';
5
+ import { TemplatePortal } from '@angular/cdk/portal';
6
+ import * as i1 from '@ids-group-ltd/ids-design-system/components';
7
+ import { DsControlValueAccessor, DsStaticPreview, trimmedText, DsOptionTemplateDirective, DsPickerTriggerDirective, DsPanelHeaderTemplateDirective, DsPanelFooterTemplateDirective, DsGroupLabelTemplateDirective, DsEmptyTemplateDirective, nextControlId, resolveFieldMessage, scrollActiveOptionIntoView, announceOptionCount, dropdownOverlay, prepareOverlayEnter, forwardOverlayTokens, closeOnOutsidePointer, closeOnScroll, disposeWithLeave, createTypeAhead } from '@ids-group-ltd/ids-design-system/components';
8
+ import { NgTemplateOutlet } from '@angular/common';
9
+ import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
10
+ import { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';
11
+ import { inFieldGroup } from '@ids-group-ltd/ids-design-system/components/field-group';
12
+ import { isDsOptionGroup, resolveWithConfig, nextEnabledIndex, lastEnabledIndex, firstEnabledIndex } from '@ids-group-ltd/ids-design-system/core';
13
+ import { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';
14
+
15
+ function isSelectOptionGroup(item) {
16
+ return isDsOptionGroup(item);
17
+ }
18
+
19
+ class SelectComponent extends DsControlValueAccessor {
20
+ overlay = inject(Overlay);
21
+ /** Segment of a ds-field-group: the group owns the border, radius and focus
22
+ * ring, so .in-group strips this control back to its bare contents. */
23
+ inGroup = inFieldGroup();
24
+ vcr = inject(ViewContainerRef);
25
+ host = inject((ElementRef));
26
+ preview = inject(DsStaticPreview);
27
+ /** Selected option's value, two-way bound. */
28
+ value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
29
+ /** Flat options or option groups rendered in the dropdown panel. */
30
+ options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
31
+ /** Public panel tokens forwarded onto the portaled overlay pane on open, so a
32
+ * consumer's `ds-select { --ds-dropdown-panel-*: … }` reaches it. */
33
+ panelTokens = [
34
+ '--ds-dropdown-panel-bg-color',
35
+ '--ds-dropdown-panel-minw',
36
+ '--ds-dropdown-panel-maxw',
37
+ '--ds-option-selected-bg-color',
38
+ '--ds-option-selected-label-color',
39
+ '--ds-option-selected-bg-color-hover',
40
+ '--ds-option-check-color',
41
+ ];
42
+ /** Trigger width — `fill` stretches to the container and pins the panel to the
43
+ * trigger's width; `content` hugs the trigger's own content and takes that width
44
+ * as the panel's FLOOR, so the panel can still grow to its options. */
45
+ width = input('fill', ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
46
+ /** Shown in the trigger when nothing is selected. */
47
+ placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
48
+ /** Trigger height — sm/md/lg.
49
+ * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
50
+ size = input(null, ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
51
+ sizeResolved = resolveWithConfig(this.size, (config) => config.control?.size, 'md');
52
+ /** Label shown above the trigger. */
53
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
54
+ /** Disables the trigger and blocks all interaction. */
55
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
56
+ /** Options are still being fetched. The panel shows a spinner instead of the
57
+ * empty row — which would otherwise claim there are no matches — and the list
58
+ * reports `aria-busy`. */
59
+ loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
60
+ /** The panel opened. The moment to fetch options for a picker whose list is
61
+ * loaded on demand. */
62
+ opened = output();
63
+ /** The panel closed, for any reason — a pick, Escape, an outside click, a scroll. */
64
+ closed = output();
65
+ /** Scrolls the keyboard cursor's row into view. On by default: a list longer
66
+ * than the panel otherwise walks the cursor out of sight. Set `false` only if
67
+ * you are driving the scroll position yourself. */
68
+ scrollActiveIntoView = input(true, { ...(ngDevMode ? { debugName: "scrollActiveIntoView" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
69
+ /** Prevents opening the dropdown while still allowing focus. */
70
+ readOnly = input(false, { ...(ngDevMode ? { debugName: "readOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
71
+ /**
72
+ * The contract spelling of `readOnly`, a second input because signal forms binds
73
+ * by NAME — a `readonly()` rule was reaching nothing before this existed.
74
+ */
75
+ readonlyBinding = input(false, { ...(ngDevMode ? { debugName: "readonlyBinding" } : /* istanbul ignore next */ {}),
76
+ // eslint-disable-next-line @angular-eslint/no-input-rename
77
+ alias: 'readonly',
78
+ transform: booleanAttribute });
79
+ isReadOnly = computed(() => this.readOnly() || this.readonlyBinding(), ...(ngDevMode ? [{ debugName: "isReadOnly" }] : /* istanbul ignore next */ []));
80
+ /** Confirmation text, shown when there is no error or warning — and it paints
81
+ * the field's success border. A string like `warning`: the text IS the state. */
82
+ success = input('', { ...(ngDevMode ? { debugName: "success" } : /* istanbul ignore next */ {}), transform: trimmedText });
83
+ /** Marks the field required — shows an asterisk and sets `aria-required`. */
84
+ required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
85
+ /** Shows an "(optional)" marker next to the label (ignored when `required`). */
86
+ optional = input(false, { ...(ngDevMode ? { debugName: "optional" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
87
+ /** Native `name` attribute forwarded to the trigger. */
88
+ name = input(null, ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
89
+ /** Accessible name when no visible `label` is provided. */
90
+ ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
91
+ /** Shows an inline clear (×) button when a value is selected. */
92
+ clearable = input(false, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
93
+ optionTemplate = contentChild(DsOptionTemplateDirective, { ...(ngDevMode ? { debugName: "optionTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
94
+ pickerTrigger = contentChild(DsPickerTriggerDirective, { ...(ngDevMode ? { debugName: "pickerTrigger" } : /* istanbul ignore next */ {}), read: TemplateRef });
95
+ panelHeaderTemplate = contentChild(DsPanelHeaderTemplateDirective, { ...(ngDevMode ? { debugName: "panelHeaderTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
96
+ panelFooterTemplate = contentChild(DsPanelFooterTemplateDirective, { ...(ngDevMode ? { debugName: "panelFooterTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
97
+ groupLabelTemplate = contentChild(DsGroupLabelTemplateDirective, { ...(ngDevMode ? { debugName: "groupLabelTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
98
+ emptyTemplate = contentChild(DsEmptyTemplateDirective, { ...(ngDevMode ? { debugName: "emptyTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
99
+ uid = nextControlId('ds-select');
100
+ labelId = `${this.uid}-label`;
101
+ listboxId = `${this.uid}-listbox`;
102
+ hintId = computed(() => this.message().text ? `${this.uid}-hint` : null, ...(ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []));
103
+ fieldMessage = resolveFieldMessage({
104
+ hint: this.hint,
105
+ warning: this.warning,
106
+ error: this.error,
107
+ errors: this.errors,
108
+ invalid: this.invalid,
109
+ success: this.success,
110
+ touchedSelf: this.touchedSelf,
111
+ touched: this.touched,
112
+ });
113
+ message = this.fieldMessage.message;
114
+ controlState = this.fieldMessage.controlState;
115
+ invalidResolved = this.fieldMessage.invalid;
116
+ optionId(flatIndex) {
117
+ return `${this.uid}-opt-${flatIndex}`;
118
+ }
119
+ /** Active option for `aria-activedescendant` (combobox keeps DOM focus). */
120
+ activeDescendant = computed(() => {
121
+ const index = this.activeIndex();
122
+ return this.open() && index >= 0 ? this.optionId(index) : null;
123
+ }, ...(ngDevMode ? [{ debugName: "activeDescendant" }] : /* istanbul ignore next */ []));
124
+ resolvedAriaLabel = computed(() => this.label() ? null : this.ariaLabel() || this.placeholder() || null, ...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []));
125
+ isDisabled = computed(() => this.disabled() || this.formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
126
+ trigger = viewChild.required('trigger');
127
+ panelTpl = viewChild.required('panel');
128
+ panelContentTpl = viewChild.required('panelContent');
129
+ open = signal(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
130
+ activeIndex = signal(-1, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
131
+ overlayRef = null;
132
+ // An entry's index here IS `activeIndex` — group headers are not entries, so
133
+ // keyboard nav never lands on one.
134
+ flatOptions = computed(() => {
135
+ const out = [];
136
+ for (const item of this.options()) {
137
+ if (isSelectOptionGroup(item)) {
138
+ const groupDisabled = !!item.disabled;
139
+ for (const opt of item.options) {
140
+ out.push({ option: opt, groupDisabled });
141
+ }
142
+ }
143
+ else {
144
+ out.push({ option: item, groupDisabled: false });
145
+ }
146
+ }
147
+ return out;
148
+ }, ...(ngDevMode ? [{ debugName: "flatOptions" }] : /* istanbul ignore next */ []));
149
+ selectedOption = computed(() => {
150
+ const current = this.value();
151
+ const found = this.flatOptions().find(({ option }) => option.value === current);
152
+ return found?.option ?? null;
153
+ }, ...(ngDevMode ? [{ debugName: "selectedOption" }] : /* istanbul ignore next */ []));
154
+ displayLabel = computed(() => {
155
+ return this.selectedOption()?.label ?? this.placeholder();
156
+ }, ...(ngDevMode ? [{ debugName: "displayLabel" }] : /* istanbul ignore next */ []));
157
+ hasValue = computed(() => !!this.selectedOption(), ...(ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []));
158
+ triggerClasses = computed(() => {
159
+ const parts = ['dropdown'];
160
+ if (this.sizeResolved() === 'sm') {
161
+ parts.push('sm');
162
+ }
163
+ if (this.sizeResolved() === 'lg') {
164
+ parts.push('lg');
165
+ }
166
+ if (this.isDisabled()) {
167
+ parts.push('disabled');
168
+ }
169
+ if (this.isReadOnly()) {
170
+ parts.push('readonly');
171
+ }
172
+ if (this.invalidResolved()) {
173
+ parts.push('error');
174
+ }
175
+ if (this.open() || this.preview.staticPreview()) {
176
+ parts.push('open');
177
+ }
178
+ return parts.join(' ');
179
+ }, ...(ngDevMode ? [{ debugName: "triggerClasses" }] : /* istanbul ignore next */ []));
180
+ constructor() {
181
+ super();
182
+ scrollActiveOptionIntoView(this.activeDescendant, this.scrollActiveIntoView, this.cursorFromKeyboard);
183
+ announceOptionCount(computed(() => this.flatOptions().length), this.open);
184
+ effect(() => {
185
+ if (!this.open()) {
186
+ return;
187
+ }
188
+ const index = this.flatOptions().findIndex(({ option }) => option.value === this.value());
189
+ this.activeIndex.set(index >= 0 ? index : this.firstEnabledIndex());
190
+ });
191
+ }
192
+ isOptionGroup(item) {
193
+ return isSelectOptionGroup(item);
194
+ }
195
+ flatIndexOf(opt) {
196
+ return this.flatOptions().findIndex(({ option }) => option === opt);
197
+ }
198
+ toggle() {
199
+ if (this.isDisabled() ||
200
+ this.isReadOnly() ||
201
+ this.preview.staticPreview()) {
202
+ return;
203
+ }
204
+ if (this.open()) {
205
+ this.close();
206
+ }
207
+ else {
208
+ this.openPanel();
209
+ }
210
+ }
211
+ openPanel() {
212
+ if (this.overlayRef) {
213
+ return;
214
+ }
215
+ const triggerElement = this.trigger().nativeElement;
216
+ const triggerWidth = triggerElement.getBoundingClientRect().width;
217
+ const { positionStrategy, config } = dropdownOverlay(this.overlay, triggerElement);
218
+ if (this.width() === 'content') {
219
+ config.minWidth = triggerWidth;
220
+ }
221
+ else {
222
+ config.width = triggerWidth;
223
+ }
224
+ this.overlayRef = this.overlay.create(config);
225
+ prepareOverlayEnter(this.overlayRef, this.host.nativeElement, positionStrategy);
226
+ forwardOverlayTokens(this.overlayRef, this.host.nativeElement, this.panelTokens);
227
+ closeOnOutsidePointer(this.overlayRef, (target) => this.trigger().nativeElement.contains(target), () => this.close('dismiss'));
228
+ const removeScrollClose = closeOnScroll(this.overlayRef, () => this.close('dismiss'));
229
+ const detaching = this.overlayRef;
230
+ this.overlayRef.detachments().subscribe(() => {
231
+ removeScrollClose();
232
+ // A deferred dispose can outlive a re-open, and then this fires for the
233
+ // PREVIOUS panel: clearing state here would strand the live one.
234
+ if (this.overlayRef !== detaching) {
235
+ return;
236
+ }
237
+ this.overlayRef = null;
238
+ this.setOpen(false);
239
+ });
240
+ const portal = new TemplatePortal(this.panelTpl(), this.vcr);
241
+ this.overlayRef.attach(portal);
242
+ this.setOpen(true);
243
+ }
244
+ close(cause = 'select') {
245
+ disposeWithLeave(this.overlayRef, cause);
246
+ this.overlayRef = null;
247
+ this.setOpen(false);
248
+ this.activeIndex.set(-1);
249
+ this.markTouched();
250
+ }
251
+ ngOnDestroy() {
252
+ this.overlayRef?.dispose();
253
+ this.overlayRef = null;
254
+ }
255
+ pick(option, groupDisabled = false) {
256
+ if (option.disabled || groupDisabled) {
257
+ return;
258
+ }
259
+ this.value.set(option.value);
260
+ this.close();
261
+ this.trigger().nativeElement.focus();
262
+ }
263
+ clearValue(event) {
264
+ event.stopPropagation();
265
+ this.clear();
266
+ this.markTouched();
267
+ }
268
+ /**
269
+ * Empties the selection from outside — a "reset filters" button, a form the app
270
+ * clears itself.
271
+ *
272
+ * Deliberately does NOT move focus: the caller may be navigating away, and
273
+ * stealing focus back into a field they just left is worse than leaving it.
274
+ */
275
+ clear() {
276
+ this.value.set('');
277
+ if (this.open()) {
278
+ this.close('dismiss');
279
+ }
280
+ }
281
+ isSelected(option) {
282
+ return option.value === this.value();
283
+ }
284
+ isOptionDisabled(option, groupDisabled = false) {
285
+ return !!option.disabled || groupDisabled;
286
+ }
287
+ onTriggerKeydown(event) {
288
+ this.cursorFromKeyboard.set(true);
289
+ if (this.isDisabled() ||
290
+ this.isReadOnly() ||
291
+ this.preview.staticPreview()) {
292
+ return;
293
+ }
294
+ // Only handle keys aimed at the trigger itself — a keydown bubbling up from
295
+ // the nested clear <button> must reach its own activation (Enter/Space to
296
+ // clear), not be hijacked here into reopening the panel.
297
+ if (event.target !== event.currentTarget) {
298
+ return;
299
+ }
300
+ const key = event.key;
301
+ if (!this.open()) {
302
+ if (key === 'ArrowDown' ||
303
+ key === 'ArrowUp' ||
304
+ key === 'Enter' ||
305
+ key === ' ') {
306
+ event.preventDefault();
307
+ this.openPanel();
308
+ return;
309
+ }
310
+ // A native <select> commits as you type without opening, so the value changes under
311
+ // the closed trigger.
312
+ if (this.handleTypeAhead(key)) {
313
+ event.preventDefault();
314
+ this.pickActive();
315
+ }
316
+ return;
317
+ }
318
+ if (key === 'Tab') {
319
+ // Close the panel but let Tab move focus naturally (no preventDefault),
320
+ // else the open overlay panel lingers behind the moved focus.
321
+ this.close();
322
+ return;
323
+ }
324
+ if (key === 'Escape') {
325
+ event.preventDefault();
326
+ this.close('dismiss');
327
+ return;
328
+ }
329
+ if (key === 'ArrowDown') {
330
+ event.preventDefault();
331
+ this.moveActive(1);
332
+ return;
333
+ }
334
+ if (key === 'ArrowUp') {
335
+ event.preventDefault();
336
+ this.moveActive(-1);
337
+ return;
338
+ }
339
+ if (key === 'Enter' || key === ' ') {
340
+ event.preventDefault();
341
+ const index = this.activeIndex();
342
+ const entry = this.flatOptions()[index];
343
+ if (entry) {
344
+ this.pick(entry.option, entry.groupDisabled);
345
+ }
346
+ return;
347
+ }
348
+ if (key === 'PageDown') {
349
+ event.preventDefault();
350
+ this.moveActive(SelectComponent.pageStep);
351
+ return;
352
+ }
353
+ if (key === 'PageUp') {
354
+ event.preventDefault();
355
+ this.moveActive(-SelectComponent.pageStep);
356
+ return;
357
+ }
358
+ if (key === 'Home') {
359
+ event.preventDefault();
360
+ this.activeIndex.set(this.firstEnabledIndex());
361
+ return;
362
+ }
363
+ if (key === 'End') {
364
+ event.preventDefault();
365
+ this.activeIndex.set(this.lastEnabledIndex());
366
+ return;
367
+ }
368
+ if (this.handleTypeAhead(key)) {
369
+ event.preventDefault();
370
+ }
371
+ }
372
+ pickActive() {
373
+ const entry = this.flatOptions()[this.activeIndex()];
374
+ if (entry) {
375
+ this.pick(entry.option, entry.groupDisabled);
376
+ }
377
+ }
378
+ isActive(index) {
379
+ return this.activeIndex() === index;
380
+ }
381
+ typeAhead = createTypeAhead();
382
+ handleTypeAhead(key) {
383
+ const index = this.typeAhead.match(key, this.flatOptions().map((entry) => entry.option.label), this.activeIndex());
384
+ if (index < 0) {
385
+ return false;
386
+ }
387
+ this.activeIndex.set(index);
388
+ return true;
389
+ }
390
+ cursorFromKeyboard = signal(false, ...(ngDevMode ? [{ debugName: "cursorFromKeyboard" }] : /* istanbul ignore next */ []));
391
+ cursorList() {
392
+ const opts = this.flatOptions();
393
+ return {
394
+ length: opts.length,
395
+ isEnabled: (index) => !opts[index].option.disabled && !opts[index].groupDisabled,
396
+ };
397
+ }
398
+ /** How far PageUp and PageDown move. Ten rows is the native `<select>` step and
399
+ * the APG listbox example's — a fixed number rather than a measured screenful,
400
+ * so the jump is the same wherever the panel happens to be clipped. */
401
+ static pageStep = 10;
402
+ moveActive(delta) {
403
+ const next = nextEnabledIndex(this.cursorList(), this.activeIndex(), delta);
404
+ if (next >= 0) {
405
+ this.activeIndex.set(next);
406
+ }
407
+ }
408
+ setOpen(next) {
409
+ if (this.open() === next) {
410
+ return;
411
+ }
412
+ this.open.set(next);
413
+ (next ? this.opened : this.closed).emit();
414
+ }
415
+ lastEnabledIndex() {
416
+ return lastEnabledIndex(this.cursorList());
417
+ }
418
+ firstEnabledIndex() {
419
+ return firstEnabledIndex(this.cursorList());
420
+ }
421
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
422
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SelectComponent, isStandalone: true, selector: "ds-select", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, scrollActiveIntoView: { classPropertyName: "scrollActiveIntoView", publicName: "scrollActiveIntoView", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, readonlyBinding: { classPropertyName: "readonlyBinding", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, success: { classPropertyName: "success", publicName: "success", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", opened: "opened", closed: "closed" }, host: { properties: { "attr.data-field-state": "controlState()", "class.in-group": "inGroup", "class.content-width": "width() === 'content'" } }, providers: [
423
+ {
424
+ provide: NG_VALUE_ACCESSOR,
425
+ useExisting: forwardRef(() => SelectComponent),
426
+ multi: true,
427
+ },
428
+ ], queries: [{ propertyName: "optionTemplate", first: true, predicate: DsOptionTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "pickerTrigger", first: true, predicate: DsPickerTriggerDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "panelHeaderTemplate", first: true, predicate: DsPanelHeaderTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "panelFooterTemplate", first: true, predicate: DsPanelFooterTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "groupLabelTemplate", first: true, predicate: DsGroupLabelTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: DsEmptyTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "panelContentTpl", first: true, predicate: ["panelContent"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\"\n >\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\"\n >\n (optional)\n </span>\n }\n </span>\n}\n\n<div\n #trigger\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [class]=\"triggerClasses()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-expanded]=\"open() || preview.staticPreview()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n (click)=\"toggle()\"\n (keydown)=\"onTriggerKeydown($event)\"\n>\n @if (selectedOption()?.icon) {\n <ds-icon\n class=\"trigger-icon\"\n [name]=\"selectedOption()!.icon!\"\n [size]=\"16\"\n />\n }\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption(),\n selected: selectedOption(),\n count: hasValue() ? 1 : 0,\n open: open(),\n disabled: isDisabled(),\n }\"\n />\n } @else {\n <span\n class=\"trigger-text\"\n [class.is-placeholder]=\"!hasValue()\"\n >\n {{ displayLabel() }}\n </span>\n }\n\n @if (\n clearable() &&\n hasValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear selection\"\n (click)=\"clearValue($event)\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"14\"\n />\n </button>\n }\n\n <span class=\"chevron\">\n <ds-icon\n name=\"chevronDown\"\n [size]=\"14\"\n />\n </span>\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n\n@if (preview.staticPreview()) {\n <div class=\"ds-dropdown-panel\">\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n </div>\n}\n\n<ng-template #panel>\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n</ng-template>\n\n<ng-template #panelContent>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\"\n />\n </div>\n }\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n >\n @for (item of options(); track $index; let groupIdx = $index) {\n @if (isOptionGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\"\n >\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"groupIdx === 0\"\n >\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\"\n />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <ul\n class=\"optgroup-list\"\n role=\"presentation\"\n >\n @for (opt of item.options; track opt.value) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(opt))\"\n [attr.aria-selected]=\"isSelected(opt)\"\n [attr.aria-disabled]=\"\n isOptionDisabled(opt, item.disabled) ? 'true' : null\n \"\n [attr.aria-describedby]=\"\n opt.disabled && opt.disabledReason\n ? optionId(flatIndexOf(opt)) + '-reason'\n : null\n \"\n [class.is-selected]=\"isSelected(opt)\"\n [class.is-active]=\"isActive(flatIndexOf(opt))\"\n [class.is-disabled]=\"isOptionDisabled(opt, item.disabled)\"\n [disabled]=\"isOptionDisabled(opt, item.disabled)\"\n (click)=\"pick(opt, item.disabled)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(opt))\n \"\n >\n @if (opt.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"opt.icon\"\n [size]=\"16\"\n />\n }\n\n @if (opt.disabled && opt.disabledReason) {\n <span\n class=\"option-reason\"\n [id]=\"optionId(flatIndexOf(opt)) + '-reason'\"\n >\n {{ opt.disabledReason }}\n </span>\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: opt,\n option: opt,\n }\"\n />\n } @else {\n {{ opt.label }}\n }\n </span>\n\n @if (isSelected(opt)) {\n <ds-icon\n class=\"option-check\"\n name=\"check\"\n [size]=\"14\"\n />\n }\n </button>\n </li>\n }\n </ul>\n </li>\n } @else {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(item))\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [class.is-selected]=\"isSelected(item)\"\n [class.is-active]=\"isActive(flatIndexOf(item))\"\n [class.is-disabled]=\"item.disabled\"\n [disabled]=\"item.disabled\"\n (click)=\"pick(item)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(item))\n \"\n >\n @if (item.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"item.icon\"\n [size]=\"16\"\n />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n option: item,\n }\"\n />\n } @else {\n {{ item.label }}\n }\n </span>\n\n @if (isSelected(item)) {\n <ds-icon\n class=\"option-check\"\n name=\"check\"\n [size]=\"14\"\n />\n }\n </button>\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\"\n >\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (options().length === 0) {\n <li\n class=\"empty t-s\"\n role=\"presentation\"\n >\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n No options\n }\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\"\n />\n </div>\n }\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{--_select-focus-shadow: var(--ds-select-focus-shadow, var(--ds-field-focus-shadow));--_select-focus-shadow-error: var(--ds-select-focus-shadow-error, var(--ds-field-focus-shadow-error));--_select-bg-color: var(--ds-select-bg-color, var(--surface-default));--_select-border-color: var(--ds-select-border-color, var(--border-default));--_select-text-color: var(--ds-select-text-color, var(--text-primary));--_select-radius: var(--ds-select-radius, var(--ds-radius-control));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}:host(.content-width){width:fit-content}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-weight: var(--ds-field-label-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-transform: var(--ds-field-label-transform, none);--_field-label-tracking: var(--ds-field-label-tracking, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-transform);letter-spacing:var(--_field-label-tracking)}.label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.dropdown{display:flex;align-items:center;gap:var(--space-2);width:100%;background:var(--_select-bg-color);border:var(--border-width-default) solid var(--_select-border-color);border-radius:var(--_select-radius);padding:var(--field-pad-y) var(--field-pad-x);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_select-text-color);text-align:left;cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.dropdown .trigger-text{flex:1;min-width:0;overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.dropdown .trigger-text.is-placeholder{color:var(--text-tertiary)}.dropdown .trigger-icon{color:var(--icon-default);flex:0 0 auto}.dropdown .clear-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);border-radius:var(--ds-radius-inner);padding:var(--space-0-5);cursor:pointer;flex:0 0 auto}.dropdown .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.dropdown .clear-btn:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropdown .chevron{display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);transition:transform var(--duration-fast) var(--ease-standard)}.dropdown:hover:not(:disabled){border-color:var(--border-strong)}.dropdown:focus-visible{outline:none;border-color:var(--accent);box-shadow:var(--_select-focus-shadow)}.dropdown.open{border-color:var(--accent);box-shadow:var(--_select-focus-shadow)}.dropdown.open .chevron{transform:rotate(180deg)}.dropdown.readonly{background:var(--surface-secondary);border-color:var(--border-divider);color:var(--text-secondary);cursor:default}.dropdown.readonly:hover{border-color:var(--border-divider)}.dropdown.readonly .chevron{display:none}.dropdown.disabled,.dropdown:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.dropdown.disabled .chevron,.dropdown:disabled .chevron{color:var(--icon-muted)}.dropdown.sm{--_field-box-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-box-height);padding:0 var(--space-2)}.dropdown.lg{--_field-box-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-box-height)}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .dropdown{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .dropdown:hover,:host(.in-group) .dropdown:focus,:host(.in-group) .dropdown:focus-visible,:host(.in-group) .dropdown:focus-within{border:0;box-shadow:none;outline:0}:host([data-field-state=error]:not(.in-group)) .dropdown{border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .dropdown:focus-within,:host([data-field-state=error]:not(.in-group)) .dropdown:focus-visible{box-shadow:var(--_select-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .dropdown{border-color:var(--warning-text)}:host([data-field-state=success]:not(.in-group)) .dropdown{border-color:var(--success)}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve"] }] });
429
+ }
430
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SelectComponent, decorators: [{
431
+ type: Component,
432
+ args: [{ selector: 'ds-select', standalone: true, imports: [
433
+ SpinnerComponent,
434
+ IconComponent,
435
+ NgTemplateOutlet,
436
+ FieldMessageComponent,
437
+ ], host: {
438
+ '[attr.data-field-state]': 'controlState()',
439
+ '[class.in-group]': 'inGroup',
440
+ '[class.content-width]': "width() === 'content'",
441
+ }, encapsulation: ViewEncapsulation.Emulated, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], providers: [
442
+ {
443
+ provide: NG_VALUE_ACCESSOR,
444
+ useExisting: forwardRef(() => SelectComponent),
445
+ multi: true,
446
+ },
447
+ ], template: "@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\"\n >\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\"\n >\n (optional)\n </span>\n }\n </span>\n}\n\n<div\n #trigger\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [class]=\"triggerClasses()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-expanded]=\"open() || preview.staticPreview()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n (click)=\"toggle()\"\n (keydown)=\"onTriggerKeydown($event)\"\n>\n @if (selectedOption()?.icon) {\n <ds-icon\n class=\"trigger-icon\"\n [name]=\"selectedOption()!.icon!\"\n [size]=\"16\"\n />\n }\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption(),\n selected: selectedOption(),\n count: hasValue() ? 1 : 0,\n open: open(),\n disabled: isDisabled(),\n }\"\n />\n } @else {\n <span\n class=\"trigger-text\"\n [class.is-placeholder]=\"!hasValue()\"\n >\n {{ displayLabel() }}\n </span>\n }\n\n @if (\n clearable() &&\n hasValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear selection\"\n (click)=\"clearValue($event)\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"14\"\n />\n </button>\n }\n\n <span class=\"chevron\">\n <ds-icon\n name=\"chevronDown\"\n [size]=\"14\"\n />\n </span>\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n\n@if (preview.staticPreview()) {\n <div class=\"ds-dropdown-panel\">\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n </div>\n}\n\n<ng-template #panel>\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n</ng-template>\n\n<ng-template #panelContent>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\"\n />\n </div>\n }\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n >\n @for (item of options(); track $index; let groupIdx = $index) {\n @if (isOptionGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\"\n >\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"groupIdx === 0\"\n >\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\"\n />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <ul\n class=\"optgroup-list\"\n role=\"presentation\"\n >\n @for (opt of item.options; track opt.value) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(opt))\"\n [attr.aria-selected]=\"isSelected(opt)\"\n [attr.aria-disabled]=\"\n isOptionDisabled(opt, item.disabled) ? 'true' : null\n \"\n [attr.aria-describedby]=\"\n opt.disabled && opt.disabledReason\n ? optionId(flatIndexOf(opt)) + '-reason'\n : null\n \"\n [class.is-selected]=\"isSelected(opt)\"\n [class.is-active]=\"isActive(flatIndexOf(opt))\"\n [class.is-disabled]=\"isOptionDisabled(opt, item.disabled)\"\n [disabled]=\"isOptionDisabled(opt, item.disabled)\"\n (click)=\"pick(opt, item.disabled)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(opt))\n \"\n >\n @if (opt.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"opt.icon\"\n [size]=\"16\"\n />\n }\n\n @if (opt.disabled && opt.disabledReason) {\n <span\n class=\"option-reason\"\n [id]=\"optionId(flatIndexOf(opt)) + '-reason'\"\n >\n {{ opt.disabledReason }}\n </span>\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: opt,\n option: opt,\n }\"\n />\n } @else {\n {{ opt.label }}\n }\n </span>\n\n @if (isSelected(opt)) {\n <ds-icon\n class=\"option-check\"\n name=\"check\"\n [size]=\"14\"\n />\n }\n </button>\n </li>\n }\n </ul>\n </li>\n } @else {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(item))\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [class.is-selected]=\"isSelected(item)\"\n [class.is-active]=\"isActive(flatIndexOf(item))\"\n [class.is-disabled]=\"item.disabled\"\n [disabled]=\"item.disabled\"\n (click)=\"pick(item)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(item))\n \"\n >\n @if (item.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"item.icon\"\n [size]=\"16\"\n />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n option: item,\n }\"\n />\n } @else {\n {{ item.label }}\n }\n </span>\n\n @if (isSelected(item)) {\n <ds-icon\n class=\"option-check\"\n name=\"check\"\n [size]=\"14\"\n />\n }\n </button>\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\"\n >\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (options().length === 0) {\n <li\n class=\"empty t-s\"\n role=\"presentation\"\n >\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n No options\n }\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\"\n />\n </div>\n }\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{--_select-focus-shadow: var(--ds-select-focus-shadow, var(--ds-field-focus-shadow));--_select-focus-shadow-error: var(--ds-select-focus-shadow-error, var(--ds-field-focus-shadow-error));--_select-bg-color: var(--ds-select-bg-color, var(--surface-default));--_select-border-color: var(--ds-select-border-color, var(--border-default));--_select-text-color: var(--ds-select-text-color, var(--text-primary));--_select-radius: var(--ds-select-radius, var(--ds-radius-control));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}:host(.content-width){width:fit-content}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-weight: var(--ds-field-label-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-transform: var(--ds-field-label-transform, none);--_field-label-tracking: var(--ds-field-label-tracking, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-transform);letter-spacing:var(--_field-label-tracking)}.label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.dropdown{display:flex;align-items:center;gap:var(--space-2);width:100%;background:var(--_select-bg-color);border:var(--border-width-default) solid var(--_select-border-color);border-radius:var(--_select-radius);padding:var(--field-pad-y) var(--field-pad-x);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_select-text-color);text-align:left;cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.dropdown .trigger-text{flex:1;min-width:0;overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.dropdown .trigger-text.is-placeholder{color:var(--text-tertiary)}.dropdown .trigger-icon{color:var(--icon-default);flex:0 0 auto}.dropdown .clear-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);border-radius:var(--ds-radius-inner);padding:var(--space-0-5);cursor:pointer;flex:0 0 auto}.dropdown .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.dropdown .clear-btn:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropdown .chevron{display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);transition:transform var(--duration-fast) var(--ease-standard)}.dropdown:hover:not(:disabled){border-color:var(--border-strong)}.dropdown:focus-visible{outline:none;border-color:var(--accent);box-shadow:var(--_select-focus-shadow)}.dropdown.open{border-color:var(--accent);box-shadow:var(--_select-focus-shadow)}.dropdown.open .chevron{transform:rotate(180deg)}.dropdown.readonly{background:var(--surface-secondary);border-color:var(--border-divider);color:var(--text-secondary);cursor:default}.dropdown.readonly:hover{border-color:var(--border-divider)}.dropdown.readonly .chevron{display:none}.dropdown.disabled,.dropdown:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.dropdown.disabled .chevron,.dropdown:disabled .chevron{color:var(--icon-muted)}.dropdown.sm{--_field-box-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-box-height);padding:0 var(--space-2)}.dropdown.lg{--_field-box-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-box-height)}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .dropdown{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .dropdown:hover,:host(.in-group) .dropdown:focus,:host(.in-group) .dropdown:focus-visible,:host(.in-group) .dropdown:focus-within{border:0;box-shadow:none;outline:0}:host([data-field-state=error]:not(.in-group)) .dropdown{border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .dropdown:focus-within,:host([data-field-state=error]:not(.in-group)) .dropdown:focus-visible{box-shadow:var(--_select-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .dropdown{border-color:var(--warning-text)}:host([data-field-state=success]:not(.in-group)) .dropdown{border-color:var(--success)}\n"] }]
448
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], scrollActiveIntoView: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollActiveIntoView", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], readonlyBinding: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], success: [{ type: i0.Input, args: [{ isSignal: true, alias: "success", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], optionTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsOptionTemplateDirective), { ...{
449
+ read: TemplateRef,
450
+ }, isSignal: true }] }], pickerTrigger: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsPickerTriggerDirective), { ...{
451
+ read: TemplateRef,
452
+ }, isSignal: true }] }], panelHeaderTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsPanelHeaderTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], panelFooterTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsPanelFooterTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], groupLabelTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsGroupLabelTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsEmptyTemplateDirective), { ...{
453
+ read: TemplateRef,
454
+ }, isSignal: true }] }], trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], panelTpl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], panelContentTpl: [{ type: i0.ViewChild, args: ['panelContent', { isSignal: true }] }] } });
455
+
456
+ /**
457
+ * Generated bundle index. Do not edit.
458
+ */
459
+
460
+ export { SelectComponent, isSelectOptionGroup };
461
+ //# sourceMappingURL=ids-group-ltd-ids-design-system-components-select.mjs.map