@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,80 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { IconName } from '@ids-group-ltd/ids-design-system/core';
3
+
4
+ /**
5
+ * One password requirement. The consumer owns the POLICY — `test` must mirror
6
+ * whatever their server enforces — and the DS owns only how the row reads.
7
+ */
8
+ interface DsPasswordRule {
9
+ /** Row text, e.g. "At least 8 characters". */
10
+ readonly label: string;
11
+ /** Whether the current value satisfies this rule. */
12
+ readonly test: (value: string) => boolean;
13
+ }
14
+ /** Per-row state, exposed so a consumer can style or test against it. */
15
+ type DsPasswordRuleState = 'pending' | 'met' | 'failed';
16
+
17
+ interface RuleRow {
18
+ readonly label: string;
19
+ readonly state: DsPasswordRuleState;
20
+ readonly icon: IconName;
21
+ readonly announced: string;
22
+ }
23
+ /**
24
+ * Passes when every rule does. Exported separately so a form can gate its submit
25
+ * from a validator without reaching for the component instance.
26
+ */
27
+ declare function passwordRulesMet(value: string, rules: readonly DsPasswordRule[]): boolean;
28
+ /**
29
+ * Live checklist under a "new password" field.
30
+ *
31
+ * The consumer keeps the POLICY — each rule carries its own `test`, which has to
32
+ * mirror the server, or the checklist is a lie — and this owns the rendering: the
33
+ * tri-state glyph, the met and failed colours, the type scale. One consumer had
34
+ * written it twice and the copies had already drifted (different labels for the
35
+ * same rule, a different order, different state classes), which is why it is here.
36
+ *
37
+ * ```html
38
+ * <ds-input
39
+ * type="password"
40
+ * [attr.aria-describedby]="rules.listId"
41
+ * [(value)]="password"
42
+ * />
43
+ * <ds-password-rules
44
+ * #rules
45
+ * [value]="password()"
46
+ * [rules]="passwordRules"
47
+ * [showUnmet]="submitted()"
48
+ * />
49
+ * ```
50
+ */
51
+ declare class PasswordRulesComponent {
52
+ /** The password being typed. */
53
+ readonly value: _angular_core.InputSignal<string>;
54
+ /** The rule set, in the order it should read. */
55
+ readonly rules: _angular_core.InputSignal<readonly DsPasswordRule[]>;
56
+ /**
57
+ * Whether an unmet rule may read as FAILED. Bind it to "the user has tried to
58
+ * submit": before that an unmet rule is merely pending, because marking a
59
+ * half-typed password with errors scolds someone who is still typing.
60
+ */
61
+ readonly showUnmet: _angular_core.InputSignalWithTransform<boolean, unknown>;
62
+ /** Lay the rows out in two columns — for a checklist beside a wide form. */
63
+ readonly columns: _angular_core.InputSignal<1 | 2>;
64
+ /**
65
+ * Id put on the rule list, for the field's `aria-describedby`. Defaults to a
66
+ * generated one; set it explicitly and both sides can name the same string,
67
+ * which avoids threading a template ref between two siblings.
68
+ */
69
+ readonly listId: _angular_core.InputSignal<string>;
70
+ protected readonly rows: _angular_core.Signal<readonly RuleRow[]>;
71
+ /** How many rules pass — for a host that wants to gate its own submit. */
72
+ readonly metCount: _angular_core.Signal<number>;
73
+ /** True when every rule passes. */
74
+ readonly allMet: _angular_core.Signal<boolean>;
75
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PasswordRulesComponent, never>;
76
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PasswordRulesComponent, "ds-password-rules", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "rules": { "alias": "rules"; "required": false; "isSignal": true; }; "showUnmet": { "alias": "showUnmet"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "listId": { "alias": "listId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
77
+ }
78
+
79
+ export { PasswordRulesComponent, passwordRulesMet };
80
+ export type { DsPasswordRule, DsPasswordRuleState };
@@ -0,0 +1,48 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { OnDestroy, TemplateRef } from '@angular/core';
3
+ import * as i1 from '@ids-group-ltd/ids-design-system/components';
4
+ import { DsStaticPreview, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
5
+ import { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';
6
+
7
+ type PopoverAlign = 'start' | 'end';
8
+ type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right';
9
+ declare class PopoverComponent implements OnDestroy, DsOverlayCloseRef {
10
+ private readonly overlay;
11
+ private readonly vcr;
12
+ private readonly host;
13
+ protected readonly preview: DsStaticPreview;
14
+ protected readonly panelTpl: _angular_core.Signal<TemplateRef<unknown> | undefined>;
15
+ private readonly panelTrap;
16
+ private ref;
17
+ private triggerElement;
18
+ private focusTimer;
19
+ /** Public panel tokens forwarded onto the portaled overlay pane on open so
20
+ * a consumer's `ds-popover { --ds-popover-panel-*: … }` reaches it. */
21
+ private readonly panelTokens;
22
+ /** Cross-axis alignment of the panel against the trigger. */
23
+ readonly align: _angular_core.InputSignal<PopoverAlign>;
24
+ /** Which side of the trigger the panel prefers to appear on. */
25
+ readonly placement: _angular_core.InputSignal<PopoverPlacement>;
26
+ /** Render a small caret pointing at the trigger. */
27
+ readonly arrow: _angular_core.InputSignalWithTransform<boolean, unknown>;
28
+ /** ARIA role for the panel (e.g. 'dialog' for interactive popovers). When set,
29
+ * the panel traps focus and captures it on open; a keyboard (Escape) or
30
+ * in-panel close returns focus to the trigger, while an outside click or
31
+ * scroll leaves focus where it lands (non-modal). Leave null for plain,
32
+ * non-interactive text popovers. */
33
+ readonly panelRole: _angular_core.InputSignal<string | null>;
34
+ /** Accessible name for the panel; pair with `panelRole`. */
35
+ readonly panelLabel: _angular_core.InputSignal<string | null>;
36
+ /** Open/closed state — for callers binding `aria-expanded` on the trigger. */
37
+ readonly opened: _angular_core.WritableSignal<boolean>;
38
+ /** Resolved placement after the overlay positions — drives the arrow direction. */
39
+ readonly resolvedPlacement: _angular_core.WritableSignal<PopoverPlacement>;
40
+ toggle(trigger: HTMLElement): void;
41
+ close(cause?: DsOverlayCloseCause): void;
42
+ ngOnDestroy(): void;
43
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopoverComponent, never>;
44
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopoverComponent, "ds-popover", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "arrow": { "alias": "arrow"; "required": false; "isSignal": true; }; "panelRole": { "alias": "panelRole"; "required": false; "isSignal": true; }; "panelLabel": { "alias": "panelLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
45
+ }
46
+
47
+ export { PopoverComponent };
48
+ export type { PopoverAlign, PopoverPlacement };
@@ -0,0 +1,22 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { DsStatus } from '@ids-group-ltd/ids-design-system/core';
3
+
4
+ type ProgressVariant = 'default' | Exclude<DsStatus, 'info'>;
5
+
6
+ declare class ProgressComponent {
7
+ /** Progress 0–100; clamped, and ignored while `indeterminate`. */
8
+ readonly value: _angular_core.InputSignal<number>;
9
+ /** Colour variant — drives the success/warning/error styling. */
10
+ readonly variant: _angular_core.InputSignal<ProgressVariant>;
11
+ /** Indeterminate (unknown-duration) animation instead of a fixed `value`. */
12
+ readonly indeterminate: _angular_core.InputSignalWithTransform<boolean, unknown>;
13
+ /** Accessible name for the progress bar (e.g. "Upload progress"). */
14
+ readonly ariaLabel: _angular_core.InputSignal<string | null>;
15
+ protected readonly clampedValue: _angular_core.Signal<number>;
16
+ protected readonly isIndet: _angular_core.Signal<boolean>;
17
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressComponent, never>;
18
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressComponent, "ds-progress", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
19
+ }
20
+
21
+ export { ProgressComponent };
22
+ export type { ProgressVariant };
@@ -0,0 +1,106 @@
1
+ import * as _ids_group_ltd_ids_design_system_components_field_message from '@ids-group-ltd/ids-design-system/components/field-message';
2
+ import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
3
+ import { DsControlValueAccessor, DsFieldBase } from '@ids-group-ltd/ids-design-system/components';
4
+ import * as _angular_core from '@angular/core';
5
+ import { InjectionToken, ElementRef } from '@angular/core';
6
+ import * as _ids_group_ltd_ids_design_system_components_radio_group from '@ids-group-ltd/ids-design-system/components/radio-group';
7
+ import { DsSize } from '@ids-group-ltd/ids-design-system/core';
8
+
9
+ /** Contract that ds-radio reads from its parent ds-radio-group, injected via
10
+ * token to avoid a circular import (radio-group → RadioComponent for
11
+ * contentChildren; radio → RadioGroupComponent for group injection). */
12
+ interface RadioGroupContract {
13
+ readonly value: () => unknown;
14
+ readonly groupName: () => string;
15
+ readonly isDisabled: () => boolean;
16
+ isTabbable(radio: RadioGroupChild): boolean;
17
+ select(value: unknown): void;
18
+ }
19
+ /** Contract the radio-group reads back from each projected radio. */
20
+ interface RadioGroupChild {
21
+ readonly value: () => unknown;
22
+ readonly effectiveDisabled: () => boolean;
23
+ focus(): void;
24
+ }
25
+ declare const RADIO_GROUP: InjectionToken<RadioGroupContract>;
26
+
27
+ declare class RadioGroupComponent extends DsControlValueAccessor<unknown> implements RadioGroupContract {
28
+ /** Selected radio value; two-way bound. */
29
+ readonly value: _angular_core.ModelSignal<unknown>;
30
+ /** Native `name` shared by every radio in the group. */
31
+ readonly name: _angular_core.InputSignal<string | null>;
32
+ /** Disables the whole group. */
33
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
34
+ /** Accessible name for the group when no visible label is provided. */
35
+ readonly ariaLabel: _angular_core.InputSignal<string | null>;
36
+ /** Visible group label; omit to supply your own. */
37
+ readonly label: _angular_core.InputSignal<string>;
38
+ readonly isDisabled: _angular_core.Signal<boolean>;
39
+ protected readonly uid: string;
40
+ readonly groupName: _angular_core.Signal<string>;
41
+ protected readonly hintId: _angular_core.Signal<string | null>;
42
+ private readonly fieldMessage;
43
+ protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
44
+ protected readonly invalidResolved: _angular_core.Signal<boolean>;
45
+ protected readonly controlState: _angular_core.Signal<_ids_group_ltd_ids_design_system_components_field_message.FieldMessageState | null>;
46
+ private readonly radios;
47
+ private get enabledRadios();
48
+ isTabbable(radio: RadioGroupChild): boolean;
49
+ select(value: unknown): void;
50
+ protected onKeydown(event: KeyboardEvent): void;
51
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioGroupComponent, never>;
52
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<RadioGroupComponent, "ds-radio-group", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["radios"], ["*"], true, never>;
53
+ }
54
+
55
+ declare class RadioComponent extends DsFieldBase {
56
+ /** Standalone two-way binding, and the ONLY way to drive a lone radio: this
57
+ * component is deliberately not a `ControlValueAccessor`, so `[formControl]` and
58
+ * `ngModel` do not bind to it. Inside `ds-radio-group` the GROUP is the form
59
+ * control — a radio is one option of a choice, not a value of its own — and a
60
+ * second accessor on the option would fight it. A lone radio in a form binds
61
+ * through `[(checked)]`, or becomes a one-option `ds-radio-group`.
62
+ *
63
+ * When inside `ds-radio-group`, `isChecked()` derives from the group value and
64
+ * this input is not read. */
65
+ readonly checked: _angular_core.ModelSignal<boolean>;
66
+ /** Disables the radio; a disabled parent `ds-radio-group` also disables it. */
67
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
68
+ /** Native `name` attribute — overridden by the group's name when inside `ds-radio-group`. */
69
+ readonly name: _angular_core.InputSignal<string>;
70
+ /** Value compared against the group's selection when inside `ds-radio-group`. */
71
+ readonly value: _angular_core.InputSignal<unknown>;
72
+ /** Overrides the auto-generated id used for the input and its label's `for`. */
73
+ readonly inputId: _angular_core.InputSignal<string | null>;
74
+ /** Control size — sm/md/lg.
75
+ * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
76
+ readonly size: _angular_core.InputSignal<DsSize | null>;
77
+ readonly sizeResolved: _angular_core.Signal<DsSize>;
78
+ /** Marks the radio required — shows an asterisk on the label and sets `aria-required`. */
79
+ readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
80
+ /** Inline label rendered beside the dot and wired via for/id. Omit to bring
81
+ * your own <label>. */
82
+ readonly label: _angular_core.InputSignal<string>;
83
+ protected readonly uid: string;
84
+ protected readonly controlId: _angular_core.Signal<string>;
85
+ protected readonly hintId: _angular_core.Signal<string | null>;
86
+ private readonly fieldMessage;
87
+ protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
88
+ protected readonly invalidResolved: _angular_core.Signal<boolean>;
89
+ /** Injected via token to avoid circular import with RadioGroupComponent. */
90
+ protected readonly group: _ids_group_ltd_ids_design_system_components_radio_group.RadioGroupContract | null;
91
+ readonly effectiveDisabled: _angular_core.Signal<boolean>;
92
+ protected readonly effectiveName: _angular_core.Signal<string>;
93
+ protected readonly isChecked: _angular_core.Signal<boolean>;
94
+ protected readonly fieldClass: _angular_core.Signal<string>;
95
+ /** Exposed so the group can implement roving tabindex. */
96
+ readonly inputElement: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
97
+ protected get tabIndexAttr(): 0 | -1;
98
+ /** Called by the group's keyboard handler to focus this radio's input. */
99
+ focus(): void;
100
+ protected onSelect(): void;
101
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioComponent, never>;
102
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<RadioComponent, "ds-radio", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, never>;
103
+ }
104
+
105
+ export { RADIO_GROUP, RadioComponent, RadioGroupComponent };
106
+ export type { RadioGroupChild, RadioGroupContract };
@@ -0,0 +1,33 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ /**
4
+ * Turns on `reserveMessage` for every DS field declared inside the host
5
+ * element, so a validated form holds its message rows without repeating the
6
+ * input on each control:
7
+ *
8
+ * ```html
9
+ * <form dsReserveMessages>
10
+ * <ds-input label="Email" />
11
+ * <ds-input label="Password" />
12
+ * </form>
13
+ * ```
14
+ *
15
+ * It provides `DS_CONFIG`, which merges with the config above it — scoping this
16
+ * one flag cannot drop unrelated app-level settings. A field's own
17
+ * `[reserveMessage]` still wins, so a single control can opt back out.
18
+ *
19
+ * The switch is the directive's PRESENCE, not an input: providers are resolved
20
+ * at construction, before inputs are set, so a bound value could not drive
21
+ * them. To turn it off for a subtree, provide the config directly:
22
+ * `provideDsConfig({ field: { reserveMessage: false } })`.
23
+ *
24
+ * Applies to fields DECLARED inside the host — projected content keeps the
25
+ * injector of the template it was written in, so wrapping `<ng-content>` in
26
+ * this directive does not reach the projected fields.
27
+ */
28
+ declare class ReserveMessagesDirective {
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReserveMessagesDirective, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ReserveMessagesDirective, "[dsReserveMessages]", never, {}, {}, never, never, true, never>;
31
+ }
32
+
33
+ export { ReserveMessagesDirective };
@@ -0,0 +1,82 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { DsSize } from '@ids-group-ltd/ids-design-system/core';
4
+
5
+ declare class SearchComponent implements ControlValueAccessor {
6
+ /** Segment of a ds-field-group: the group owns the border, radius and focus
7
+ * ring, so .in-group strips this control back to its bare contents. */
8
+ protected readonly inGroup: boolean;
9
+ private readonly bridge;
10
+ /** Hides the control, as every other DS control does. Inline `display`, not the
11
+ * attribute: the host sets its own, which the weaker UA rule would lose to. */
12
+ readonly hidden: _angular_core.InputSignalWithTransform<boolean, unknown>;
13
+ /** Driven by the forms API — OR'd into `isDisabled` like every other control. */
14
+ protected readonly formDisabled: _angular_core.WritableSignal<boolean>;
15
+ /** Search text, two-way bound. */
16
+ readonly value: _angular_core.ModelSignal<string>;
17
+ /** Placeholder shown when empty. */
18
+ readonly placeholder: _angular_core.InputSignal<string>;
19
+ /** Keyboard shortcut hint rendered in a trailing `<kbd>` badge. */
20
+ readonly shortcut: _angular_core.InputSignal<string>;
21
+ /** Shows the leading search icon. */
22
+ readonly showIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
23
+ /** Show an inline clear (×) button on the right when there's a value. */
24
+ readonly clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
25
+ /** Accessible name for the input (placeholder is not a reliable label). */
26
+ readonly ariaLabel: _angular_core.InputSignal<string>;
27
+ /** Disables the input and the clear button. */
28
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
29
+ readonly isDisabled: _angular_core.Signal<boolean>;
30
+ /** Control height. `md` (default) keeps the 36px search-row height; `sm` (32px)
31
+ * aligns search with dense toolbars beside `sm` inputs/buttons; `lg` is touch.
32
+ * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
33
+ readonly size: _angular_core.InputSignal<DsSize | null>;
34
+ readonly sizeResolved: _angular_core.Signal<DsSize>;
35
+ /** Fires with the current value on Enter. */
36
+ readonly submitted: _angular_core.OutputEmitterRef<string>;
37
+ /** Milliseconds to hold each keystroke back before `value` updates — 0 (default)
38
+ * writes on every keystroke, exactly as this control always has.
39
+ *
40
+ * Clearing the field BYPASSES the delay, which is the part a plain
41
+ * `debounceTime` gets wrong: emptying a search is a deliberate act, and making
42
+ * the user wait 200ms to see the full list back reads as a hang. Enter flushes
43
+ * for the same reason. What the input SHOWS is never delayed. */
44
+ readonly debounce: _angular_core.InputSignalWithTransform<number, unknown>;
45
+ private readonly inputEl;
46
+ /** What the input shows. Separate from `value` only so typing never waits on
47
+ * the timer; with `debounce` at 0 the two move together. */
48
+ protected readonly text: _angular_core.WritableSignal<string>;
49
+ private pending;
50
+ /** The last text this component pushed into `value`, so an update arriving from
51
+ * the HOST can be told apart from its own echo — a host resetting the field
52
+ * mid-typing has to win, and cancel the keystroke still in flight. */
53
+ private pushed;
54
+ constructor();
55
+ /** Move keyboard focus to the search input. Public so a host can hand focus
56
+ * over deliberately — e.g. a Clear button that disables itself on activation
57
+ * would otherwise blur into `<body>` and restart Tab order at the top. */
58
+ focus(options?: FocusOptions): void;
59
+ protected onText(next: string): void;
60
+ protected onSubmit(): void;
61
+ /** Empties the field, DROPS any armed keystroke, and publishes '' immediately.
62
+ * Public for the same reason `focus()` is: a host-owned Clear button outside the
63
+ * control needs it. Writing `''` into `value` is not equivalent — the effect
64
+ * that watches `value` only cancels the timer when the incoming text DIFFERS
65
+ * from what this control last pushed, so clearing an already-empty-looking field
66
+ * mid-debounce left the keystroke armed. */
67
+ clear(): void;
68
+ /** So Enter searches what the reader can see, not what the timer last let past. */
69
+ private flush;
70
+ private push;
71
+ writeValue(next: string): void;
72
+ registerOnChange(fn: (next: string) => void): void;
73
+ registerOnTouched(fn: () => void): void;
74
+ setDisabledState(isDisabled: boolean): void;
75
+ /** Reported to the forms API on blur, so a search inside a form goes `ng-touched`. */
76
+ protected markTouched(): void;
77
+ private cancel;
78
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SearchComponent, never>;
79
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SearchComponent, "ds-search", never, { "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "shortcut": { "alias": "shortcut"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "debounce": { "alias": "debounce"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "submitted": "submitted"; }, never, never, true, never>;
80
+ }
81
+
82
+ export { SearchComponent };
@@ -0,0 +1,40 @@
1
+ import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
2
+ import { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';
3
+ import * as _angular_core from '@angular/core';
4
+ import { IconName } from '@ids-group-ltd/ids-design-system/core';
5
+
6
+ interface SegmentedOption {
7
+ label: string;
8
+ value: string;
9
+ icon?: IconName;
10
+ disabled?: boolean;
11
+ }
12
+
13
+ declare class SegmentedComponent extends DsControlValueAccessor<string> {
14
+ /** Segments to render — each needs a `label` and `value`, optional `icon`/`disabled`. */
15
+ readonly options: _angular_core.InputSignal<readonly SegmentedOption[]>;
16
+ /** Selected segment's `value`, two-way bound. */
17
+ readonly value: _angular_core.ModelSignal<string>;
18
+ /** Accessible name for the segmented control (radiogroup role). */
19
+ readonly ariaLabel: _angular_core.InputSignal<string | null>;
20
+ /** Visible label above the track; omit to supply your own. */
21
+ readonly label: _angular_core.InputSignal<string>;
22
+ /** Disables every segment. */
23
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
24
+ readonly isDisabled: _angular_core.Signal<boolean>;
25
+ protected readonly uid: string;
26
+ protected readonly hintId: _angular_core.Signal<string | null>;
27
+ private readonly fieldMessage;
28
+ protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
29
+ protected readonly invalidResolved: _angular_core.Signal<boolean>;
30
+ private readonly buttons;
31
+ protected readonly focusableValue: _angular_core.Signal<string | null>;
32
+ protected select(option: SegmentedOption): void;
33
+ protected onKeydown(event: KeyboardEvent, index: number): void;
34
+ private nextEnabled;
35
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedComponent, never>;
36
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedComponent, "ds-segmented", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
37
+ }
38
+
39
+ export { SegmentedComponent };
40
+ export type { SegmentedOption };
@@ -0,0 +1,152 @@
1
+ import * as _ids_group_ltd_ids_design_system_components_field_message from '@ids-group-ltd/ids-design-system/components/field-message';
2
+ import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
3
+ import { DsControlValueAccessor, DsStaticPreview, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
4
+ import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
5
+ import { DsOptionItem, DsOption, DsOptionGroup, DsControlWidth, DsSize } from '@ids-group-ltd/ids-design-system/core';
6
+ import * as _angular_core from '@angular/core';
7
+ import { OnDestroy, TemplateRef, ElementRef } from '@angular/core';
8
+
9
+ interface SelectOption extends DsOption<string> {
10
+ }
11
+ type SelectWidth = DsControlWidth;
12
+ interface SelectOptionGroup extends DsOptionGroup<string> {
13
+ }
14
+ type SelectItem = DsOptionItem<string>;
15
+ declare function isSelectOptionGroup(item: SelectItem): item is SelectOptionGroup;
16
+
17
+ declare class SelectComponent extends DsControlValueAccessor<string> implements OnDestroy {
18
+ private readonly overlay;
19
+ /** Segment of a ds-field-group: the group owns the border, radius and focus
20
+ * ring, so .in-group strips this control back to its bare contents. */
21
+ protected readonly inGroup: boolean;
22
+ private readonly vcr;
23
+ private readonly host;
24
+ protected readonly preview: DsStaticPreview;
25
+ /** Selected option's value, two-way bound. */
26
+ readonly value: _angular_core.ModelSignal<string>;
27
+ /** Flat options or option groups rendered in the dropdown panel. */
28
+ readonly options: _angular_core.InputSignal<readonly SelectItem[]>;
29
+ /** Public panel tokens forwarded onto the portaled overlay pane on open, so a
30
+ * consumer's `ds-select { --ds-dropdown-panel-*: … }` reaches it. */
31
+ private readonly panelTokens;
32
+ /** Trigger width — `fill` stretches to the container and pins the panel to the
33
+ * trigger's width; `content` hugs the trigger's own content and takes that width
34
+ * as the panel's FLOOR, so the panel can still grow to its options. */
35
+ readonly width: _angular_core.InputSignal<_ids_group_ltd_ids_design_system_core.DsControlWidth>;
36
+ /** Shown in the trigger when nothing is selected. */
37
+ readonly placeholder: _angular_core.InputSignal<string>;
38
+ /** Trigger height — sm/md/lg.
39
+ * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
40
+ readonly size: _angular_core.InputSignal<DsSize | null>;
41
+ readonly sizeResolved: _angular_core.Signal<DsSize>;
42
+ /** Label shown above the trigger. */
43
+ readonly label: _angular_core.InputSignal<string>;
44
+ /** Disables the trigger and blocks all interaction. */
45
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
46
+ /** Options are still being fetched. The panel shows a spinner instead of the
47
+ * empty row — which would otherwise claim there are no matches — and the list
48
+ * reports `aria-busy`. */
49
+ readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
50
+ /** The panel opened. The moment to fetch options for a picker whose list is
51
+ * loaded on demand. */
52
+ readonly opened: _angular_core.OutputEmitterRef<void>;
53
+ /** The panel closed, for any reason — a pick, Escape, an outside click, a scroll. */
54
+ readonly closed: _angular_core.OutputEmitterRef<void>;
55
+ /** Scrolls the keyboard cursor's row into view. On by default: a list longer
56
+ * than the panel otherwise walks the cursor out of sight. Set `false` only if
57
+ * you are driving the scroll position yourself. */
58
+ readonly scrollActiveIntoView: _angular_core.InputSignalWithTransform<boolean, unknown>;
59
+ /** Prevents opening the dropdown while still allowing focus. */
60
+ readonly readOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
61
+ /**
62
+ * The contract spelling of `readOnly`, a second input because signal forms binds
63
+ * by NAME — a `readonly()` rule was reaching nothing before this existed.
64
+ */
65
+ readonly readonlyBinding: _angular_core.InputSignalWithTransform<boolean, unknown>;
66
+ protected readonly isReadOnly: _angular_core.Signal<boolean>;
67
+ /** Confirmation text, shown when there is no error or warning — and it paints
68
+ * the field's success border. A string like `warning`: the text IS the state. */
69
+ readonly success: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
70
+ /** Marks the field required — shows an asterisk and sets `aria-required`. */
71
+ readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
72
+ /** Shows an "(optional)" marker next to the label (ignored when `required`). */
73
+ readonly optional: _angular_core.InputSignalWithTransform<boolean, unknown>;
74
+ /** Native `name` attribute forwarded to the trigger. */
75
+ readonly name: _angular_core.InputSignal<string | null>;
76
+ /** Accessible name when no visible `label` is provided. */
77
+ readonly ariaLabel: _angular_core.InputSignal<string | null>;
78
+ /** Shows an inline clear (×) button when a value is selected. */
79
+ readonly clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
80
+ protected readonly optionTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
81
+ protected readonly pickerTrigger: _angular_core.Signal<TemplateRef<any> | undefined>;
82
+ protected readonly panelHeaderTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
83
+ protected readonly panelFooterTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
84
+ protected readonly groupLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
85
+ protected readonly emptyTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
86
+ protected readonly uid: string;
87
+ protected readonly labelId: string;
88
+ protected readonly listboxId: string;
89
+ protected readonly hintId: _angular_core.Signal<string | null>;
90
+ private readonly fieldMessage;
91
+ protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
92
+ protected readonly controlState: _angular_core.Signal<_ids_group_ltd_ids_design_system_components_field_message.FieldMessageState | null>;
93
+ protected readonly invalidResolved: _angular_core.Signal<boolean>;
94
+ protected optionId(flatIndex: number): string;
95
+ /** Active option for `aria-activedescendant` (combobox keeps DOM focus). */
96
+ protected readonly activeDescendant: _angular_core.Signal<string | null>;
97
+ protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
98
+ protected readonly isDisabled: _angular_core.Signal<boolean>;
99
+ protected readonly trigger: _angular_core.Signal<ElementRef<HTMLElement>>;
100
+ protected readonly panelTpl: _angular_core.Signal<TemplateRef<unknown>>;
101
+ protected readonly panelContentTpl: _angular_core.Signal<TemplateRef<unknown>>;
102
+ protected readonly open: _angular_core.WritableSignal<boolean>;
103
+ protected readonly activeIndex: _angular_core.WritableSignal<number>;
104
+ private overlayRef;
105
+ protected readonly flatOptions: _angular_core.Signal<{
106
+ option: SelectOption;
107
+ groupDisabled: boolean;
108
+ }[]>;
109
+ protected readonly selectedOption: _angular_core.Signal<SelectOption | null>;
110
+ protected readonly displayLabel: _angular_core.Signal<string>;
111
+ protected readonly hasValue: _angular_core.Signal<boolean>;
112
+ protected readonly triggerClasses: _angular_core.Signal<string>;
113
+ constructor();
114
+ protected isOptionGroup(item: SelectItem): item is SelectOptionGroup;
115
+ protected flatIndexOf(opt: SelectOption): number;
116
+ protected toggle(): void;
117
+ protected openPanel(): void;
118
+ protected close(cause?: DsOverlayCloseCause): void;
119
+ ngOnDestroy(): void;
120
+ protected pick(option: SelectOption, groupDisabled?: boolean): void;
121
+ protected clearValue(event: MouseEvent): void;
122
+ /**
123
+ * Empties the selection from outside — a "reset filters" button, a form the app
124
+ * clears itself.
125
+ *
126
+ * Deliberately does NOT move focus: the caller may be navigating away, and
127
+ * stealing focus back into a field they just left is worse than leaving it.
128
+ */
129
+ clear(): void;
130
+ protected isSelected(option: SelectOption): boolean;
131
+ protected isOptionDisabled(option: SelectOption, groupDisabled?: boolean): boolean;
132
+ protected onTriggerKeydown(event: KeyboardEvent): void;
133
+ private pickActive;
134
+ protected isActive(index: number): boolean;
135
+ private readonly typeAhead;
136
+ private handleTypeAhead;
137
+ protected readonly cursorFromKeyboard: _angular_core.WritableSignal<boolean>;
138
+ private cursorList;
139
+ /** How far PageUp and PageDown move. Ten rows is the native `<select>` step and
140
+ * the APG listbox example's — a fixed number rather than a measured screenful,
141
+ * so the jump is the same wherever the panel happens to be clipped. */
142
+ private static readonly pageStep;
143
+ private moveActive;
144
+ private setOpen;
145
+ private lastEnabledIndex;
146
+ private firstEnabledIndex;
147
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectComponent, never>;
148
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectComponent, "ds-select", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "scrollActiveIntoView": { "alias": "scrollActiveIntoView"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "readonlyBinding": { "alias": "readonly"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "opened": "opened"; "closed": "closed"; }, ["optionTemplate", "pickerTrigger", "panelHeaderTemplate", "panelFooterTemplate", "groupLabelTemplate", "emptyTemplate"], never, true, [{ directive: typeof _ids_group_ltd_ids_design_system_components.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
149
+ }
150
+
151
+ export { SelectComponent, isSelectOptionGroup };
152
+ export type { SelectItem, SelectOption, SelectOptionGroup, SelectWidth };