@ids-group-ltd/ids-design-system 0.13.4 → 0.14.1

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 (247) hide show
  1. package/CHANGELOG.md +584 -0
  2. package/components.md +100 -52
  3. package/design-system.md +2 -0
  4. package/docs/agent/INDEX.md +3 -2
  5. package/docs/agent/charts/column-series-component.md +1 -1
  6. package/docs/agent/charts/ds-bar-chart.md +2 -1
  7. package/docs/agent/charts/ds-chart.md +3 -1
  8. package/docs/agent/charts/ds-config.md +3 -1
  9. package/docs/agent/charts/ds-line-chart.md +3 -3
  10. package/docs/agent/charts/ds-pie-chart.md +4 -3
  11. package/docs/agent/charts/line-series-component.md +1 -1
  12. package/docs/agent/feedback/ds-alert.md +1 -0
  13. package/docs/agent/feedback/ds-badge.md +1 -1
  14. package/docs/agent/feedback/ds-banner.md +1 -0
  15. package/docs/agent/feedback/ds-skeleton.md +2 -2
  16. package/docs/agent/feedback/ds-tag.md +1 -1
  17. package/docs/agent/forms/ds-autocomplete.md +2 -2
  18. package/docs/agent/forms/ds-button.md +1 -1
  19. package/docs/agent/forms/ds-color-picker.md +1 -1
  20. package/docs/agent/forms/ds-date-picker.md +2 -2
  21. package/docs/agent/forms/ds-filter-bar.md +1 -1
  22. package/docs/agent/forms/ds-icon-button.md +1 -1
  23. package/docs/agent/forms/ds-input.md +1 -1
  24. package/docs/agent/forms/ds-multi-select.md +2 -2
  25. package/docs/agent/forms/ds-otp-input.md +1 -1
  26. package/docs/agent/forms/ds-search.md +3 -3
  27. package/docs/agent/forms/ds-split-button.md +1 -1
  28. package/docs/agent/forms/ds-switch.md +4 -2
  29. package/docs/agent/forms/ds-textarea.md +2 -1
  30. package/docs/agent/foundations/tokens.md +1 -1
  31. package/docs/agent/navigation/ds-app-layout.md +2 -2
  32. package/docs/agent/navigation/ds-auth-layout.md +4 -4
  33. package/docs/agent/navigation/ds-page-header.md +1 -1
  34. package/docs/agent/navigation/ds-pagination.md +2 -2
  35. package/docs/agent/platform/ds-config.md +3 -3
  36. package/docs/agent/platform/ds-intl.md +33 -0
  37. package/docs/agent/surfaces/ds-accordion.md +2 -2
  38. package/docs/agent/tables/ds-cell-template.md +1 -1
  39. package/docs/agent/tables/ds-table.md +5 -4
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +9 -5
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +21 -10
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +9 -5
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +8 -8
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +13 -8
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +5 -3
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +5 -10
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +12 -8
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +21 -10
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +56 -32
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +7 -6
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +4 -3
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +4 -4
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +15 -3
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +5 -3
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +45 -39
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +414 -105
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +9 -5
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +22 -18
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +16 -9
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -2
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -4
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +12 -6
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +13 -7
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +40 -42
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +13 -9
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +3 -3
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +5 -4
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +27 -23
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +62 -13
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +15 -10
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -4
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +13 -7
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +22 -13
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +12 -11
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +55 -29
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +41 -12
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +13 -6
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +4 -3
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -2
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +5 -3
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +37 -4
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +8 -7
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +5 -3
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +9 -6
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +6 -4
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +20 -5
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +18 -15
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +9 -6
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +47 -38
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +5 -3
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +9 -5
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +26 -4
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +12 -10
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +8 -6
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +5 -3
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +14 -15
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  160. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +345 -66
  161. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  162. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +361 -6
  163. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  164. package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  166. package/migrations/0.10.0.json +1 -1
  167. package/migrations/0.10.1.json +1 -1
  168. package/migrations/0.12.2.json +4 -1
  169. package/migrations/0.13.3.json +32 -10
  170. package/migrations/0.13.4.json +1630 -132
  171. package/migrations/0.14.0.json +615 -0
  172. package/migrations/0.14.1.json +856 -0
  173. package/migrations/0.5.0.json +10 -4
  174. package/migrations/0.7.0.json +5 -2
  175. package/migrations/0.9.0.json +5 -2
  176. package/migrations/README.md +7 -2
  177. package/package.json +1 -1
  178. package/schematics/check-overrides/index.cjs +56 -0
  179. package/schematics/check-overrides/scan.cjs +74 -0
  180. package/schematics/check-overrides/schema.json +19 -0
  181. package/schematics/check-overrides/surface.json +2304 -0
  182. package/schematics/collection.json +5 -0
  183. package/styles/_chart-frame.scss +4 -4
  184. package/styles/_chart-interactive.scss +33 -0
  185. package/styles/_chart-motion.scss +17 -10
  186. package/styles/_field-box.scss +12 -0
  187. package/styles/_overlay-motion.scss +20 -10
  188. package/styles/_skeleton-shimmer.scss +4 -1
  189. package/styles/_tokens-charts.scss +1 -1
  190. package/styles/_tokens.scss +1 -1
  191. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +11 -2
  192. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +4 -0
  193. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +5 -2
  194. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +5 -5
  195. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +7 -4
  196. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +2 -0
  197. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +5 -3
  198. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +6 -2
  199. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -0
  200. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +20 -14
  201. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +2 -0
  202. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  203. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -0
  204. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +2 -0
  205. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +11 -6
  206. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +155 -36
  207. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +6 -2
  208. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +11 -8
  209. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -3
  210. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +2 -0
  211. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +2 -0
  212. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +3 -0
  213. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +9 -4
  214. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +13 -13
  215. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +7 -5
  216. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +2 -0
  217. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +17 -11
  218. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +6 -0
  219. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +11 -6
  220. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +2 -0
  221. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +6 -2
  222. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +17 -10
  223. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +2 -0
  224. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +25 -14
  225. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +15 -6
  226. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +9 -3
  227. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -2
  228. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +2 -0
  229. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +3 -1
  230. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +6 -1
  231. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +2 -0
  232. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +6 -4
  233. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +5 -2
  234. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +2 -0
  235. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +10 -1
  236. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +1 -0
  237. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +44 -28
  238. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +2 -0
  239. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +6 -2
  240. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +15 -0
  241. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -0
  242. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +3 -0
  243. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +2 -0
  244. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +7 -5
  245. package/types/ids-group-ltd-ids-design-system-components.d.ts +83 -17
  246. package/types/ids-group-ltd-ids-design-system-core.d.ts +420 -14
  247. package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
@@ -1,4 +1,4 @@
1
- import { InjectionToken, inject, computed, isDevMode, effect } from '@angular/core';
1
+ import { InjectionToken, inject, computed, isDevMode, effect, signal, LOCALE_ID } from '@angular/core';
2
2
 
3
3
  /**
4
4
  * Dismiss-on-backdrop for a backdrop that WRAPS its dialog.
@@ -62,8 +62,11 @@ function inheritDsConfig(config) {
62
62
  function mergeDsConfig(parent, own) {
63
63
  const merged = { ...parent };
64
64
  for (const section of Object.keys(own)) {
65
+ const value = own[section];
65
66
  Object.assign(merged, {
66
- [section]: { ...parent[section], ...own[section] },
67
+ [section]: typeof value === 'object' && value !== null
68
+ ? { ...parent[section], ...value }
69
+ : value,
67
70
  });
68
71
  }
69
72
  return merged;
@@ -98,9 +101,8 @@ function resolveWithConfig(value, pick, fallback) {
98
101
  * a minifier to fold it and drop the message with it, which `isDevMode()` — an opaque
99
102
  * call — can never allow. It cannot become a helper function for the same reason.
100
103
  *
101
- * It does work: `ds-stat` and `ds-split-button` compile to `constructor(){}` in the
102
- * shipped bundle. `ds-toast-region`'s strip is UNVERIFIED — the bundle came out
103
- * byte-identical after adding the guard, so re-check on a clean `.angular/cache`.
104
+ * It does work: `ds-stat`, `ds-split-button` and `ds-toast-region` keep no message text in the
105
+ * shipped bundle.
104
106
  * @internal
105
107
  */
106
108
  function devWarn(message) {
@@ -118,6 +120,359 @@ function devWarn(message) {
118
120
  });
119
121
  }
120
122
 
123
+ /**
124
+ * The two ways `announce` on `ds-banner` / `ds-alert` goes wrong without anyone deciding it. An
125
+ * assertive element left unbound while the app has not set `DS_CONFIG.<section>.announce` is one a
126
+ * screen reader will not hear; a polite one that announces only because that key is `true` is
127
+ * nearly always page furniture written after the key was adopted. Each warns once per instance,
128
+ * in dev mode only; the caller wraps the call in the `typeof ngDevMode` guard (see `devWarn`).
129
+ * Must be called from an injection context.
130
+ * @internal
131
+ */
132
+ function warnAnnounceOversight(tag, section, state) {
133
+ const configured = inject(DS_CONFIG)[section]?.announce;
134
+ devWarn(() => {
135
+ const { variant, title, assertive, announce } = state();
136
+ if (announce !== null) {
137
+ return null;
138
+ }
139
+ const element = `[${tag}] variant="${variant}"${title ? ` title="${title}"` : ''}`;
140
+ if (assertive && configured === undefined) {
141
+ return `${element} is not announced, so a screen reader will not hear it. Decide once for the app with provideDsConfig({ ${section}: { announce: true } }) and bind [announce]="false" on page furniture; this warning ends once the key is set, true or false.`;
142
+ }
143
+ if (!assertive && configured === true) {
144
+ return `${element} announces because DS_CONFIG.${section}.announce is true, not because this element asked to. Bind [announce]="false" if it is page furniture, or [announce]="true" to keep it announced on purpose.`;
145
+ }
146
+ return null;
147
+ });
148
+ }
149
+
150
+ /** English wording for every string the library invents. Used unless `provideDsIntl` overrides
151
+ * a section. */
152
+ const DS_INTL_DEFAULTS = {
153
+ field: {
154
+ optional: '(optional)',
155
+ clearInput: 'Clear input',
156
+ showPassword: 'Show password',
157
+ hidePassword: 'Hide password',
158
+ },
159
+ picker: {
160
+ placeholder: 'Select…',
161
+ filterPlaceholder: 'Filter…',
162
+ clearSelection: 'Clear selection',
163
+ noMatches: 'No matches',
164
+ noOptions: 'No options',
165
+ selectAll: 'Select all',
166
+ selectAllInGroup: (group) => `All of ${group}`,
167
+ create: (query) => `Create «${query}»`,
168
+ moreChips: (count) => `+${count} more`,
169
+ removeChip: (label) => `Remove ${label}`,
170
+ selectedNoun: 'selected',
171
+ resultCount: (count) => count === 0
172
+ ? 'No results'
173
+ : count === 1
174
+ ? '1 result'
175
+ : `${count} results`,
176
+ },
177
+ datePicker: {
178
+ placeholder: 'Select date',
179
+ openCalendar: 'Choose date',
180
+ selectMonth: 'Select month',
181
+ selectYear: 'Select year',
182
+ previousYears: 'Previous years',
183
+ nextYears: 'Next years',
184
+ invalidDate: (mask) => `Enter a valid date (${mask})`,
185
+ },
186
+ timePicker: {
187
+ selectTime: 'Select time',
188
+ rangeStart: (label) => `${label} (from)`,
189
+ rangeEnd: (label) => `${label} (to)`,
190
+ clear: 'Clear',
191
+ now: 'Now',
192
+ done: 'Done',
193
+ time: 'Time',
194
+ hours: 'Hours',
195
+ minutes: 'Minutes',
196
+ period: 'AM/PM',
197
+ },
198
+ colorPicker: {
199
+ label: 'Choose colour',
200
+ saturationBrightness: 'Saturation and brightness — use arrow keys to adjust',
201
+ hue: 'Hue',
202
+ hexValue: 'Hex colour value',
203
+ presets: 'Preset colours',
204
+ },
205
+ otpInput: {
206
+ label: 'Verification code',
207
+ digit: (position) => `Digit ${position}`,
208
+ character: (position) => `Character ${position}`,
209
+ },
210
+ slider: {
211
+ rangeStart: (label) => (label ? `${label} minimum` : 'Minimum'),
212
+ rangeEnd: (label) => (label ? `${label} maximum` : 'Maximum'),
213
+ },
214
+ numberStepper: {
215
+ decrease: 'Decrease',
216
+ increase: 'Increase',
217
+ },
218
+ search: {
219
+ placeholder: 'Search',
220
+ clear: 'Clear search',
221
+ },
222
+ dropzone: {
223
+ label: 'Upload files',
224
+ title: 'Drop files here',
225
+ hint: 'or click to browse',
226
+ remove: (fileName) => `Remove ${fileName}`,
227
+ uploading: 'uploading',
228
+ success: 'success',
229
+ error: 'error',
230
+ },
231
+ passwordRules: {
232
+ pending: 'not yet met',
233
+ met: 'met',
234
+ failed: 'not met',
235
+ },
236
+ tag: {
237
+ remove: 'Remove',
238
+ },
239
+ badge: {
240
+ noun: 'notifications',
241
+ count: (count, noun) => `${count} ${noun}`,
242
+ overMax: (max, noun) => `More than ${max} ${noun}`,
243
+ },
244
+ avatar: {
245
+ online: 'Online',
246
+ offline: 'Offline',
247
+ away: 'Away',
248
+ busy: 'Busy',
249
+ },
250
+ avatarGroup: {
251
+ more: (count) => `${count} more`,
252
+ },
253
+ descriptionList: {
254
+ copy: 'Copy value',
255
+ copied: 'Copied',
256
+ },
257
+ what3words: {
258
+ copy: (address) => `Copy what3words address ${address}`,
259
+ },
260
+ dialog: {
261
+ close: 'Close',
262
+ closeDialog: 'Close dialog',
263
+ dismiss: 'Dismiss',
264
+ confirm: 'Confirm',
265
+ cancel: 'Cancel',
266
+ typeToConfirmBefore: 'Type',
267
+ typeToConfirmAfter: 'to confirm',
268
+ },
269
+ toast: {
270
+ region: 'Notifications',
271
+ },
272
+ spinner: {
273
+ label: 'Loading',
274
+ },
275
+ breadcrumbs: {
276
+ label: 'Breadcrumb',
277
+ },
278
+ appLayout: {
279
+ railLabel: 'Navigation',
280
+ },
281
+ sidenav: {
282
+ expandGroup: (label) => `Expand ${label}`,
283
+ collapseGroup: (label) => `Collapse ${label}`,
284
+ },
285
+ sidenavFooter: {
286
+ search: 'Search',
287
+ searchPlaceholder: 'Search…',
288
+ clear: 'Clear',
289
+ noMatches: (query) => `No matches for “${query}”.`,
290
+ typeToSearch: 'Type to search.',
291
+ alerts: 'Alerts',
292
+ allCaughtUp: 'You’re all caught up.',
293
+ accountMenu: 'Account menu',
294
+ account: 'Account',
295
+ signedInAs: (name) => `Signed in as ${name}`,
296
+ profile: 'Your profile',
297
+ settings: 'Account settings',
298
+ help: 'Help & support',
299
+ signOut: 'Sign out',
300
+ expand: 'Expand',
301
+ collapse: 'Collapse',
302
+ },
303
+ stepper: {
304
+ label: 'Progress',
305
+ step: (position, label, state) => `Step ${position}: ${label} (${state})`,
306
+ },
307
+ tabs: {
308
+ close: (label) => `Close ${label}`,
309
+ },
310
+ splitButton: {
311
+ menuLabel: 'More actions',
312
+ },
313
+ filterBar: {
314
+ more: 'more',
315
+ panelLabel: 'More filters',
316
+ },
317
+ pagination: {
318
+ label: 'Pagination',
319
+ previous: 'Previous page',
320
+ next: 'Next page',
321
+ page: (page) => `Page ${page}`,
322
+ range: (first, last, total) => `Showing ${first}–${last} of ${total}`,
323
+ perPage: (size) => `${size} per page`,
324
+ rowsPerPage: 'Rows per page',
325
+ },
326
+ table: {
327
+ actions: 'Actions',
328
+ actionsFor: (row) => `Actions for ${row}`,
329
+ filterColumn: (column) => `Filter ${column}`,
330
+ resizeColumn: (column) => `Resize ${column}`,
331
+ narrowColumn: (column) => `Narrow ${column}`,
332
+ widenColumn: (column) => `Widen ${column}`,
333
+ fitColumn: (column) => `Fit ${column} to its content`,
334
+ fit: 'Fit',
335
+ selectRow: (row) => `Select ${row}`,
336
+ expandRow: 'Expand row',
337
+ collapseRow: 'Collapse row',
338
+ filterValues: 'Filter values',
339
+ filterSearch: 'Search…',
340
+ emptyValue: '(empty)',
341
+ noMatches: 'No matches',
342
+ selectedCount: (count) => `${count} selected`,
343
+ clear: 'Clear',
344
+ loading: 'Loading…',
345
+ sorted: (label, direction) => direction
346
+ ? `Sorted by ${label}, ${direction === 'asc' ? 'ascending' : 'descending'}`
347
+ : 'Sorting cleared',
348
+ rowsExpanded: (count) => `${count} rows expanded`,
349
+ selectAllRows: (onThisPage) => onThisPage ? 'Select all rows on this page' : 'Select all rows',
350
+ expandAllRows: (onThisPage) => `Expand all rows${onThisPage ? ' on this page' : ''}`,
351
+ collapseAllRows: (onThisPage) => `Collapse all rows${onThisPage ? ' on this page' : ''}`,
352
+ },
353
+ tableColumns: {
354
+ title: 'Columns',
355
+ panelLabel: 'Column visibility',
356
+ moveUp: 'Move up',
357
+ moveDown: 'Move down',
358
+ reset: 'Reset to default',
359
+ trigger: 'Choose columns',
360
+ },
361
+ tableExport: {
362
+ button: 'Export CSV',
363
+ buttonBusy: 'Preparing…',
364
+ preparing: 'Preparing export…',
365
+ ready: 'Export ready',
366
+ failed: 'Export failed',
367
+ },
368
+ chart: {
369
+ empty: 'No data',
370
+ error: 'Could not load the data',
371
+ title: 'Chart',
372
+ unpin: 'Unpin',
373
+ dataTable: 'Data table',
374
+ dataTableCaption: 'Chart data',
375
+ legendAll: 'All',
376
+ legendNone: 'None',
377
+ labelColumn: 'Label',
378
+ valueColumn: 'Value',
379
+ shareColumn: 'Share of total',
380
+ seriesColumn: 'Series',
381
+ categoryColumn: 'Category',
382
+ shareOfTotal: (share) => `${share} of total`,
383
+ other: 'Other',
384
+ noVisibleSeries: 'All series are hidden',
385
+ target: (value) => `Target ${value}`,
386
+ noted: (notes) => `Noted: ${notes.join('; ')}.`,
387
+ noData: (label) => `${label}. No data.`,
388
+ onePoint: (label, value, at) => `${label}, one point: ${value} at ${at}.`,
389
+ range: (label, count, lowest, highest) => `${label}, ${count} points, ${lowest} to ${highest}.`,
390
+ trendRisingThroughout: 'Rising throughout',
391
+ trendFallingThroughout: 'Falling throughout',
392
+ trendRisingOverall: 'Rising overall',
393
+ trendFallingOverall: 'Falling overall',
394
+ trendFlat: 'Ending where it started',
395
+ extremes: (highestLabel, highest, lowestLabel, lowest) => `Highest in ${highestLabel} at ${highest}, lowest in ${lowestLabel} at ${lowest}.`,
396
+ tableFollows: 'Full values in the table below.',
397
+ threshold: 'Threshold',
398
+ thresholdAbove: (name, value, count, total) => `${name} at ${value}, ${count} of ${total} ${total === 1 ? 'point' : 'points'} above.`,
399
+ thresholdInside: (name, low, high, count, total) => `${name} from ${low} to ${high}, ${count} of ${total} ${total === 1 ? 'point' : 'points'} inside.`,
400
+ funnelCaption: 'Each stage as a percentage of the first, and the drop from the stage above it.',
401
+ stageColumn: 'Stage',
402
+ percentColumn: 'Percent',
403
+ dropColumn: 'Drop',
404
+ fellAway: (drop) => `${drop} fell away since the stage above`,
405
+ noReading: 'No reading',
406
+ heatmapTitle: 'Heat map',
407
+ heatmapSummary: (title, rows, columns, lowest, highest) => `${title}, ${rows} rows by ${columns} columns, readings from ${lowest} to ${highest}.`,
408
+ scatterTitle: 'Scatter chart',
409
+ scatterAxis: (axis, from, to) => `${axis} from ${from} to ${to}`,
410
+ scatterSummary: (title, count, axes, dropped) => `${title}: ${count} readings drawn, ${axes}.${dropped > 0
411
+ ? ` ${dropped} further readings were thinned out to keep the plot drawable; the data table lists every one.`
412
+ : ''}`,
413
+ scatterThinned: (count) => `${count} readings thinned out to keep the plot drawable - every one is in the data table.`,
414
+ waterfallTitle: 'Waterfall chart',
415
+ waterfallCaption: 'Waterfall',
416
+ increase: 'increase',
417
+ decrease: 'decrease',
418
+ total: 'total',
419
+ stepColumn: 'Step',
420
+ directionColumn: 'Direction',
421
+ runningTotalColumn: 'Running total',
422
+ endsAt: (value) => `Ends at ${value}.`,
423
+ },
424
+ };
425
+
426
+ const DEFAULTS = signal(DS_INTL_DEFAULTS).asReadonly();
427
+ /** Every string the library invents, as a signal so a language switch re-renders in place.
428
+ * Unprovided, it holds the English defaults. */
429
+ const DS_INTL = new InjectionToken('DS_INTL', {
430
+ factory: () => DEFAULTS,
431
+ });
432
+ /** Provide the library's wording.
433
+ *
434
+ * providers: [provideDsIntl({ picker: { selectAll: 'Выбрать все' } })]
435
+ *
436
+ * Pass an object for a fixed language, or a factory returning a signal for a language that
437
+ * changes at runtime; the factory runs in an injection context, so it can inject the app's own
438
+ * language service:
439
+ *
440
+ * provideDsIntl(() => { const language = inject(LanguageService); return computed(() => language.dictionary().ds); })
441
+ *
442
+ * Works at the root, on a `Route` or on a component. A nested call MERGES with the one above it
443
+ * section by section, for the reason given on `provideDsConfig`. Numbers and dates do not come
444
+ * from here: they follow `DsConfig.locale`, then `LOCALE_ID`. */
445
+ function provideDsIntl(overrides) {
446
+ return {
447
+ provide: DS_INTL,
448
+ useFactory: () => {
449
+ const parent = inject(DS_INTL, { skipSelf: true, optional: true }) ?? DEFAULTS;
450
+ const own = typeof overrides === 'function'
451
+ ? overrides()
452
+ : signal(overrides).asReadonly();
453
+ return computed(() => mergeDsIntl(parent(), own()));
454
+ },
455
+ };
456
+ }
457
+ function mergeDsIntl(parent, own) {
458
+ const merged = { ...parent };
459
+ for (const section of Object.keys(own)) {
460
+ Object.assign(merged, {
461
+ [section]: { ...parent[section], ...own[section] },
462
+ });
463
+ }
464
+ return merged;
465
+ }
466
+
467
+ /**
468
+ * The BCP-47 tag the library formats numbers and dates in: `DsConfig.locale`, then Angular's
469
+ * `LOCALE_ID`. Call from an injection context.
470
+ * @internal
471
+ */
472
+ function injectDsLocale() {
473
+ return inject(DS_CONFIG).locale ?? inject(LOCALE_ID);
474
+ }
475
+
121
476
  /**
122
477
  * Signal forms binds `min`, `max`, `minLength` and `maxLength` BY NAME and sends
123
478
  * `undefined` when the schema sets no bound. The DS spells an absent bound as
@@ -345,5 +700,5 @@ function flattenDsOptions(items) {
345
700
  * Generated bundle index. Do not edit.
346
701
  */
347
702
 
348
- export { DS_CONFIG, ICONS, backdropDismiss, boundOr, devWarn, firstEnabledIndex, flattenDsOptions, inheritDsConfig, isDsOptionGroup, isTextClipped, isTextEntryTarget, lastEnabledIndex, nextEnabledIndex, optionalBound, provideDsConfig, resolveWithConfig };
703
+ export { DS_CONFIG, DS_INTL, DS_INTL_DEFAULTS, ICONS, backdropDismiss, boundOr, devWarn, firstEnabledIndex, flattenDsOptions, inheritDsConfig, injectDsLocale, isDsOptionGroup, isTextClipped, isTextEntryTarget, lastEnabledIndex, nextEnabledIndex, optionalBound, provideDsConfig, provideDsIntl, resolveWithConfig, warnAnnounceOversight };
349
704
  //# sourceMappingURL=ids-group-ltd-ids-design-system-core.mjs.map