@ids-group-ltd/ids-design-system 0.15.2 → 1.0.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 (339) hide show
  1. package/CHANGELOG.md +214 -20
  2. package/{docs/agent → agent}/charts/ds-bar-chart.md +1 -1
  3. package/agent/charts/ds-chart.md +10 -0
  4. package/{docs/agent → agent}/charts/ds-column-chart.md +1 -1
  5. package/{docs/agent → agent}/charts/ds-funnel-chart.md +1 -1
  6. package/{docs/agent → agent}/charts/ds-heatmap-chart.md +1 -1
  7. package/{docs/agent → agent}/charts/ds-line-chart.md +1 -1
  8. package/{docs/agent → agent}/charts/ds-pie-chart.md +1 -1
  9. package/{docs/agent → agent}/charts/ds-scatter-chart.md +1 -1
  10. package/{docs/agent → agent}/charts/ds-waterfall-chart.md +1 -1
  11. package/{docs/agent → agent}/feedback/ds-empty-state.md +1 -1
  12. package/agent/forms/ds-autocomplete.md +13 -0
  13. package/{docs/agent → agent}/forms/ds-button.md +1 -1
  14. package/{docs/agent → agent}/forms/ds-checkbox.md +1 -1
  15. package/agent/forms/ds-color-picker.md +8 -0
  16. package/{docs/agent → agent}/forms/ds-date-picker.md +1 -1
  17. package/{docs/agent → agent}/forms/ds-input.md +1 -1
  18. package/{docs/agent → agent}/forms/ds-multi-select.md +1 -1
  19. package/agent/forms/ds-otp-input.md +8 -0
  20. package/{docs/agent → agent}/forms/ds-radio-group.md +1 -1
  21. package/{docs/agent → agent}/forms/ds-radio.md +1 -1
  22. package/{docs/agent → agent}/forms/ds-search.md +1 -1
  23. package/{docs/agent → agent}/forms/ds-segmented.md +1 -1
  24. package/{docs/agent → agent}/forms/ds-select.md +1 -1
  25. package/{docs/agent → agent}/forms/ds-slider.md +1 -1
  26. package/{docs/agent → agent}/forms/ds-switch.md +1 -1
  27. package/{docs/agent → agent}/forms/ds-textarea.md +1 -1
  28. package/agent/forms/ds-time-picker.md +8 -0
  29. package/{docs/agent → agent}/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
  30. package/{docs/agent → agent}/overlays/ds-definition-term.md +1 -1
  31. package/agent/overlays/ds-tooltip.md +12 -0
  32. package/{docs/agent → agent}/platform/ds-config.md +2 -1
  33. package/{docs/agent → agent}/tables/ds-table.md +1 -1
  34. package/components.md +36 -35
  35. package/design-system.md +2 -2
  36. package/eslint/deprecated-api.json +224 -0
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +9 -6
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +2 -2
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +2 -2
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +12 -11
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +12 -12
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -4
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -4
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +2 -2
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +17 -22
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +3 -11
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +2 -2
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +7 -3
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +4 -4
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +2 -2
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +2 -2
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +2 -2
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +4 -4
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -4
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +6 -6
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +2 -2
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +4 -4
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +7 -3
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +6 -6
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +17 -8
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +9 -6
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -4
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +2 -2
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +2 -2
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +2 -2
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +4 -7
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +2 -2
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +5 -3
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -4
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +9 -6
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +6 -6
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +4 -2
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -4
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +2 -2
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +7 -4
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +2 -2
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs +52 -0
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs.map +1 -0
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -4
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +4 -4
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +71 -25
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -4
  188. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  189. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +276 -15
  190. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  192. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +9 -6
  194. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  196. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  197. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +84 -31
  198. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  199. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  200. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  201. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  202. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  203. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  204. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  205. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +4 -4
  206. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  207. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +76 -45
  208. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  209. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +27 -2
  210. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  211. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -2
  212. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  213. package/fesm2022/ids-group-ltd-ids-design-system.mjs +2 -1
  214. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  215. package/migrations/0.10.0.json +21 -23
  216. package/migrations/0.10.2.json +3 -5
  217. package/migrations/0.10.3.json +1 -3
  218. package/migrations/0.11.0.json +4 -6
  219. package/migrations/0.11.1.json +1 -3
  220. package/migrations/0.13.0.json +4 -4
  221. package/migrations/0.13.4.json +20 -4
  222. package/migrations/0.14.0.json +1 -2
  223. package/migrations/0.15.1.json +5 -5
  224. package/migrations/0.15.3.json +175 -0
  225. package/migrations/0.6.2.json +5 -3
  226. package/migrations/0.7.1.json +1 -2
  227. package/migrations/0.8.0.json +2 -2
  228. package/migrations/0.9.0.json +14 -19
  229. package/migrations/1.0.0.json +374 -0
  230. package/migrations/README.md +11 -11
  231. package/package.json +9 -1
  232. package/schematics/check-overrides/surface.json +12 -1
  233. package/styles/_component-base.scss +29 -39
  234. package/styles/_dropdown-overlay.scss +7 -3
  235. package/styles/_focus.scss +4 -4
  236. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  237. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +2 -0
  238. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +1 -1
  239. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +1 -2
  240. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +6 -2
  241. package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +1 -0
  242. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
  243. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -0
  244. package/types/ids-group-ltd-ids-design-system-components-submitted.d.ts +27 -0
  245. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +30 -9
  246. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +48 -3
  247. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +1 -0
  248. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +44 -12
  249. package/types/ids-group-ltd-ids-design-system-components.d.ts +36 -21
  250. package/types/ids-group-ltd-ids-design-system-core.d.ts +32 -7
  251. package/types/ids-group-ltd-ids-design-system.d.ts +5 -4
  252. package/docs/agent/charts/ds-chart.md +0 -10
  253. package/docs/agent/forms/ds-autocomplete.md +0 -13
  254. package/docs/agent/forms/ds-color-picker.md +0 -8
  255. package/docs/agent/forms/ds-otp-input.md +0 -8
  256. package/docs/agent/forms/ds-time-picker.md +0 -8
  257. package/docs/agent/overlays/ds-tooltip.md +0 -12
  258. /package/{docs/agent → agent}/INDEX.md +0 -0
  259. /package/{docs/agent → agent}/charts/chart-colour-which-palette-a-chart-takes.md +0 -0
  260. /package/{docs/agent → agent}/charts/chart-frame-the-box-a-chart-draws-around-itself.md +0 -0
  261. /package/{docs/agent → agent}/charts/column-series-component.md +0 -0
  262. /package/{docs/agent → agent}/charts/ds-chart-data-table.md +0 -0
  263. /package/{docs/agent → agent}/charts/ds-config.md +0 -0
  264. /package/{docs/agent → agent}/charts/line-series-component.md +0 -0
  265. /package/{docs/agent → agent}/charts/reference-label-component.md +0 -0
  266. /package/{docs/agent → agent}/charts/reference-line-component.md +0 -0
  267. /package/{docs/agent → agent}/charts/series-annotation-component.md +0 -0
  268. /package/{docs/agent → agent}/domain/ds-w3w.md +0 -0
  269. /package/{docs/agent → agent}/feedback/ds-alert.md +0 -0
  270. /package/{docs/agent → agent}/feedback/ds-avatar-group.md +0 -0
  271. /package/{docs/agent → agent}/feedback/ds-avatar.md +0 -0
  272. /package/{docs/agent → agent}/feedback/ds-badge.md +0 -0
  273. /package/{docs/agent → agent}/feedback/ds-banner.md +0 -0
  274. /package/{docs/agent → agent}/feedback/ds-bar.md +0 -0
  275. /package/{docs/agent → agent}/feedback/ds-description-item.md +0 -0
  276. /package/{docs/agent → agent}/feedback/ds-description-list.md +0 -0
  277. /package/{docs/agent → agent}/feedback/ds-list-item.md +0 -0
  278. /package/{docs/agent → agent}/feedback/ds-list.md +0 -0
  279. /package/{docs/agent → agent}/feedback/ds-loading-overlay.md +0 -0
  280. /package/{docs/agent → agent}/feedback/ds-skeleton.md +0 -0
  281. /package/{docs/agent → agent}/feedback/ds-spinner.md +0 -0
  282. /package/{docs/agent → agent}/feedback/ds-stat.md +0 -0
  283. /package/{docs/agent → agent}/feedback/ds-status-dot.md +0 -0
  284. /package/{docs/agent → agent}/feedback/ds-tag.md +0 -0
  285. /package/{docs/agent → agent}/feedback/ds-timeline-item.md +0 -0
  286. /package/{docs/agent → agent}/feedback/ds-toast-region.md +0 -0
  287. /package/{docs/agent → agent}/feedback/ds-toast.md +0 -0
  288. /package/{docs/agent → agent}/feedback/ds-tree.md +0 -0
  289. /package/{docs/agent → agent}/forms/ds-button-group.md +0 -0
  290. /package/{docs/agent → agent}/forms/ds-dropzone.md +0 -0
  291. /package/{docs/agent → agent}/forms/ds-field-group.md +0 -0
  292. /package/{docs/agent → agent}/forms/ds-filter-bar.md +0 -0
  293. /package/{docs/agent → agent}/forms/ds-icon-button.md +0 -0
  294. /package/{docs/agent → agent}/forms/ds-number-stepper.md +0 -0
  295. /package/{docs/agent → agent}/forms/ds-password-rules.md +0 -0
  296. /package/{docs/agent → agent}/forms/ds-split-button.md +0 -0
  297. /package/{docs/agent → agent}/forms/ds-toggle-button.md +0 -0
  298. /package/{docs/agent → agent}/forms/filter-item-directive.md +0 -0
  299. /package/{docs/agent → agent}/foundations/global-helper-classes.md +0 -0
  300. /package/{docs/agent → agent}/foundations/grid.md +0 -0
  301. /package/{docs/agent → agent}/foundations/tokens.md +0 -0
  302. /package/{docs/agent → agent}/navigation/ds-app-layout.md +0 -0
  303. /package/{docs/agent → agent}/navigation/ds-auth-layout.md +0 -0
  304. /package/{docs/agent → agent}/navigation/ds-breadcrumbs.md +0 -0
  305. /package/{docs/agent → agent}/navigation/ds-container.md +0 -0
  306. /package/{docs/agent → agent}/navigation/ds-divider.md +0 -0
  307. /package/{docs/agent → agent}/navigation/ds-inline.md +0 -0
  308. /package/{docs/agent → agent}/navigation/ds-page-footer.md +0 -0
  309. /package/{docs/agent → agent}/navigation/ds-page-header.md +0 -0
  310. /package/{docs/agent → agent}/navigation/ds-pagination.md +0 -0
  311. /package/{docs/agent → agent}/navigation/ds-sidenav-footer.md +0 -0
  312. /package/{docs/agent → agent}/navigation/ds-sidenav-group.md +0 -0
  313. /package/{docs/agent → agent}/navigation/ds-sidenav-item.md +0 -0
  314. /package/{docs/agent → agent}/navigation/ds-sidenav.md +0 -0
  315. /package/{docs/agent → agent}/navigation/ds-stack.md +0 -0
  316. /package/{docs/agent → agent}/navigation/ds-stepper.md +0 -0
  317. /package/{docs/agent → agent}/navigation/ds-tab.md +0 -0
  318. /package/{docs/agent → agent}/navigation/ds-tabs.md +0 -0
  319. /package/{docs/agent → agent}/navigation/ds-topbar.md +0 -0
  320. /package/{docs/agent → agent}/overlays/ds-bottom-sheet.md +0 -0
  321. /package/{docs/agent → agent}/overlays/ds-drawer.md +0 -0
  322. /package/{docs/agent → agent}/overlays/ds-info-hint.md +0 -0
  323. /package/{docs/agent → agent}/overlays/ds-menu.md +0 -0
  324. /package/{docs/agent → agent}/overlays/ds-modal-card.md +0 -0
  325. /package/{docs/agent → agent}/overlays/ds-modal.md +0 -0
  326. /package/{docs/agent → agent}/overlays/ds-popover.md +0 -0
  327. /package/{docs/agent → agent}/overlays/ds-tooltip-panel.md +0 -0
  328. /package/{docs/agent → agent}/platform/body-scroll-lock-service.md +0 -0
  329. /package/{docs/agent → agent}/platform/breadcrumbs-service.md +0 -0
  330. /package/{docs/agent → agent}/platform/ds-icon-registry.md +0 -0
  331. /package/{docs/agent → agent}/platform/ds-intl.md +0 -0
  332. /package/{docs/agent → agent}/platform/toast-service.md +0 -0
  333. /package/{docs/agent → agent}/surfaces/ds-accordion-item.md +0 -0
  334. /package/{docs/agent → agent}/surfaces/ds-accordion.md +0 -0
  335. /package/{docs/agent → agent}/surfaces/ds-card.md +0 -0
  336. /package/{docs/agent → agent}/tables/ds-cell-template.md +0 -0
  337. /package/{docs/agent → agent}/tables/ds-table-columns.md +0 -0
  338. /package/{docs/agent → agent}/tables/ds-table-export.md +0 -0
  339. /package/{docs/agent → agent}/tables/header-filter-directive.md +0 -0
@@ -1,5 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, ElementRef, ApplicationRef, createComponent, EnvironmentInjector, input, booleanAttribute, Directive } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, ElementRef, input, booleanAttribute, Directive } from '@angular/core';
3
+ import { retainStyles } from '@ids-group-ltd/ids-design-system/core';
3
4
  import * as i1 from '@ids-group-ltd/ids-design-system/components/tooltip';
4
5
  import { TOOLTIP_PIN_ON_CLICK, TOOLTIP_LEADS_WITH_OWN_TEXT, TooltipDirective } from '@ids-group-ltd/ids-design-system/components/tooltip';
5
6
 
@@ -13,7 +14,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
13
14
  args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".ds-definition-term{--_term-line-color: var(--text-tertiary);--_term-line-color-hover: var(--text-secondary);--_term-color-pressed: var(--text-primary);--_term-bg-pressed: var(--surface-muted);cursor:pointer;text-decoration:underline dotted var(--_term-line-color);text-underline-offset:3px;border-radius:var(--radius-sm);-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard),text-decoration-color var(--duration-fast) var(--ease-standard)}.ds-definition-term:where(button){appearance:none;margin:0;padding:0;border:0;background:none;font:inherit;letter-spacing:inherit;text-transform:inherit;text-align:inherit;color:inherit}.ds-definition-term:hover{text-decoration:underline solid var(--_term-line-color-hover)}.ds-definition-term:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.ds-definition-term:active,.ds-definition-term[data-ds-pressed]{color:var(--_term-color-pressed);background:var(--_term-bg-pressed);box-shadow:0 0 0 2px var(--_term-bg-pressed);text-decoration:underline solid var(--_term-color-pressed)}.ds-definition-term[data-ds-tooltip-pinned]{color:var(--accent-strong);text-decoration:underline solid var(--accent-strong);text-decoration-thickness:2px}.ds-definition-term[data-ds-tooltip-pinned]:hover{color:var(--accent-strong);text-decoration:underline solid var(--accent-strong);text-decoration-thickness:3px}.ds-definition-term[data-ds-tooltip-pinned]:active,.ds-definition-term[data-ds-tooltip-pinned][data-ds-pressed]{color:var(--accent-strong);text-decoration:underline solid var(--accent-strong);text-decoration-thickness:3px;background-color:var(--surface-muted);box-shadow:0 0 0 2px var(--surface-muted)}\n"] }]
14
15
  }] });
15
16
 
16
- const appsWithTermStyles = new WeakSet();
17
17
  /** Marks a term that carries its definition, on any element: `<span dsDefinitionTerm="…">term</span>`.
18
18
  * Brings its own `.ds-definition-term` styles; no stylesheet import is needed. A host other than `<button>` gets
19
19
  * `tabindex="0"` and `role="button"`, and `Enter` / `Space` act as a click on it. */
@@ -21,15 +21,7 @@ class DefinitionTermDirective {
21
21
  host = inject(ElementRef).nativeElement;
22
22
  isButton = this.host.tagName === 'BUTTON';
23
23
  constructor() {
24
- const app = inject(ApplicationRef);
25
- if (appsWithTermStyles.has(app)) {
26
- return;
27
- }
28
- appsWithTermStyles.add(app);
29
- const styles = createComponent(DefinitionTermStylesComponent, {
30
- environmentInjector: inject(EnvironmentInjector),
31
- });
32
- app.onDestroy(() => styles.destroy());
24
+ retainStyles(DefinitionTermStylesComponent);
33
25
  }
34
26
  /** Keeps the definition open after a click until a click outside, `Escape` or blur. Turn it off
35
27
  * where the click already does something, such as sorting a table column. */
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-definition-term.mjs","sources":["../../../src/lib/components/definition-term/definition-term-styles.component.ts","../../../src/lib/components/definition-term/definition-term.directive.ts","../../../src/lib/components/definition-term/ids-group-ltd-ids-design-system-components-definition-term.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n} from '@angular/core';\n\n/** @internal Never rendered: creating it once registers the `.ds-definition-term` rules globally. */\n@Component({\n standalone: true,\n template: '',\n styleUrl: './definition-term.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DefinitionTermStylesComponent {}\n","import {\n ApplicationRef,\n Directive,\n ElementRef,\n EnvironmentInjector,\n booleanAttribute,\n createComponent,\n inject,\n input,\n} from '@angular/core';\nimport {\n TOOLTIP_LEADS_WITH_OWN_TEXT,\n TOOLTIP_PIN_ON_CLICK,\n TooltipDirective,\n} from '@ids-group-ltd/ids-design-system/components/tooltip';\nimport { DefinitionTermStylesComponent } from './definition-term-styles.component';\n\nconst appsWithTermStyles = new WeakSet<ApplicationRef>();\n\n/** Marks a term that carries its definition, on any element: `<span dsDefinitionTerm=\"…\">term</span>`.\n * Brings its own `.ds-definition-term` styles; no stylesheet import is needed. A host other than `<button>` gets\n * `tabindex=\"0\"` and `role=\"button\"`, and `Enter` / `Space` act as a click on it. */\n@Directive({\n selector: '[dsDefinitionTerm]',\n standalone: true,\n hostDirectives: [\n {\n directive: TooltipDirective,\n inputs: ['dsTooltip: dsDefinitionTerm', 'dsTooltipPlacement'],\n },\n ],\n providers: [\n {\n provide: TOOLTIP_PIN_ON_CLICK,\n useFactory: () => inject(DefinitionTermDirective).pinOnClick,\n },\n { provide: TOOLTIP_LEADS_WITH_OWN_TEXT, useValue: true },\n ],\n host: {\n class: 'ds-definition-term',\n '[attr.type]': \"isButton ? 'button' : null\",\n '[attr.tabindex]': 'isButton ? null : 0',\n '[attr.role]': \"isButton ? null : 'button'\",\n '(keydown.enter)': 'pressFromKeyboard($event)',\n '(keyup.enter)': 'release()',\n '(keydown.space)': 'holdSpace($event)',\n '(keyup.space)': 'releaseFromSpace($event)',\n '(blur)': 'release()',\n },\n})\nexport class DefinitionTermDirective {\n private readonly host: HTMLElement = inject(ElementRef).nativeElement;\n\n protected readonly isButton = this.host.tagName === 'BUTTON';\n\n constructor() {\n const app = inject(ApplicationRef);\n if (appsWithTermStyles.has(app)) {\n return;\n }\n appsWithTermStyles.add(app);\n const styles = createComponent(DefinitionTermStylesComponent, {\n environmentInjector: inject(EnvironmentInjector),\n });\n app.onDestroy(() => styles.destroy());\n }\n\n /** Keeps the definition open after a click until a click outside, `Escape` or blur. Turn it off\n * where the click already does something, such as sorting a table column. */\n readonly pinOnClick = input(true, { transform: booleanAttribute });\n\n protected holdSpace(event: Event): void {\n if (!this.isButton) {\n event.preventDefault();\n this.host.toggleAttribute('data-ds-pressed', true);\n }\n }\n\n protected pressFromKeyboard(event: Event): void {\n if (this.isButton) {\n return;\n }\n event.preventDefault();\n this.host.toggleAttribute('data-ds-pressed', true);\n this.host.click();\n }\n\n protected releaseFromSpace(event: Event): void {\n this.release();\n if (!this.isButton) {\n event.preventDefault();\n this.host.click();\n }\n }\n\n protected release(): void {\n this.host.toggleAttribute('data-ds-pressed', false);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAMA;MAQa,6BAA6B,CAAA;wGAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA7B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,6BAA6B,wEAL9B,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,k6DAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;4FAKD,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAPzC,SAAS;iCACI,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,aAAA,EAEG,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,k6DAAA,CAAA,EAAA;;;ACKjD,MAAM,kBAAkB,GAAG,IAAI,OAAO,EAAkB;AAExD;;AAEsF;MA6BzE,uBAAuB,CAAA;AACjB,IAAA,IAAI,GAAgB,MAAM,CAAC,UAAU,CAAC,CAAC,aAAa;IAElD,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,KAA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,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,cAAc,EAAE;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,gBAAgB;AAC3B,4BAAA,MAAM,EAAE,CAAC,6BAA6B,EAAE,oBAAoB,CAAC;AAC9D,yBAAA;AACF,qBAAA;AACD,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,oBAAoB;AAC7B,4BAAA,UAAU,EAAE,MAAM,MAAM,CAAA,uBAAA,CAAyB,CAAC,UAAU;AAC7D,yBAAA;AACD,wBAAA,EAAE,OAAO,EAAE,2BAA2B,EAAE,QAAQ,EAAE,IAAI,EAAE;AACzD,qBAAA;AACD,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,oBAAoB;AAC3B,wBAAA,aAAa,EAAE,4BAA4B;AAC3C,wBAAA,iBAAiB,EAAE,qBAAqB;AACxC,wBAAA,aAAa,EAAE,4BAA4B;AAC3C,wBAAA,iBAAiB,EAAE,2BAA2B;AAC9C,wBAAA,eAAe,EAAE,WAAW;AAC5B,wBAAA,iBAAiB,EAAE,mBAAmB;AACtC,wBAAA,eAAe,EAAE,0BAA0B;AAC3C,wBAAA,QAAQ,EAAE,WAAW;AACtB,qBAAA;AACF,iBAAA;;;ACjDD;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-definition-term.mjs","sources":["../../../src/lib/components/definition-term/definition-term-styles.component.ts","../../../src/lib/components/definition-term/definition-term.directive.ts","../../../src/lib/components/definition-term/ids-group-ltd-ids-design-system-components-definition-term.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n} from '@angular/core';\n\n/** @internal Never rendered: creating it once registers the `.ds-definition-term` rules globally. */\n@Component({\n standalone: true,\n template: '',\n styleUrl: './definition-term.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DefinitionTermStylesComponent {}\n","import {\n Directive,\n ElementRef,\n booleanAttribute,\n inject,\n input,\n} from '@angular/core';\nimport { retainStyles } from '@ids-group-ltd/ids-design-system/core';\nimport {\n TOOLTIP_LEADS_WITH_OWN_TEXT,\n TOOLTIP_PIN_ON_CLICK,\n TooltipDirective,\n} from '@ids-group-ltd/ids-design-system/components/tooltip';\nimport { DefinitionTermStylesComponent } from './definition-term-styles.component';\n\n/** Marks a term that carries its definition, on any element: `<span dsDefinitionTerm=\"…\">term</span>`.\n * Brings its own `.ds-definition-term` styles; no stylesheet import is needed. A host other than `<button>` gets\n * `tabindex=\"0\"` and `role=\"button\"`, and `Enter` / `Space` act as a click on it. */\n@Directive({\n selector: '[dsDefinitionTerm]',\n standalone: true,\n hostDirectives: [\n {\n directive: TooltipDirective,\n inputs: ['dsTooltip: dsDefinitionTerm', 'dsTooltipPlacement'],\n },\n ],\n providers: [\n {\n provide: TOOLTIP_PIN_ON_CLICK,\n useFactory: () => inject(DefinitionTermDirective).pinOnClick,\n },\n { provide: TOOLTIP_LEADS_WITH_OWN_TEXT, useValue: true },\n ],\n host: {\n class: 'ds-definition-term',\n '[attr.type]': \"isButton ? 'button' : null\",\n '[attr.tabindex]': 'isButton ? null : 0',\n '[attr.role]': \"isButton ? null : 'button'\",\n '(keydown.enter)': 'pressFromKeyboard($event)',\n '(keyup.enter)': 'release()',\n '(keydown.space)': 'holdSpace($event)',\n '(keyup.space)': 'releaseFromSpace($event)',\n '(blur)': 'release()',\n },\n})\nexport class DefinitionTermDirective {\n private readonly host: HTMLElement = inject(ElementRef).nativeElement;\n\n protected readonly isButton = this.host.tagName === 'BUTTON';\n\n constructor() {\n retainStyles(DefinitionTermStylesComponent);\n }\n\n /** Keeps the definition open after a click until a click outside, `Escape` or blur. Turn it off\n * where the click already does something, such as sorting a table column. */\n readonly pinOnClick = input(true, { transform: booleanAttribute });\n\n protected holdSpace(event: Event): void {\n if (!this.isButton) {\n event.preventDefault();\n this.host.toggleAttribute('data-ds-pressed', true);\n }\n }\n\n protected pressFromKeyboard(event: Event): void {\n if (this.isButton) {\n return;\n }\n event.preventDefault();\n this.host.toggleAttribute('data-ds-pressed', true);\n this.host.click();\n }\n\n protected releaseFromSpace(event: Event): void {\n this.release();\n if (!this.isButton) {\n event.preventDefault();\n this.host.click();\n }\n }\n\n protected release(): void {\n this.host.toggleAttribute('data-ds-pressed', false);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA;MAQa,6BAA6B,CAAA;wGAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA7B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,6BAA6B,wEAL9B,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,k6DAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;4FAKD,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAPzC,SAAS;iCACI,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,aAAA,EAEG,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,k6DAAA,CAAA,EAAA;;;ACGjD;;AAEsF;MA6BzE,uBAAuB,CAAA;AACjB,IAAA,IAAI,GAAgB,MAAM,CAAC,UAAU,CAAC,CAAC,aAAa;IAElD,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,KAAK,QAAQ;AAE5D,IAAA,WAAA,GAAA;QACE,YAAY,CAAC,6BAA6B,CAAC;IAC7C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AE,OAAO,EAAE,2BAA2B,EAAE,QAAQ,EAAE,IAAI,EAAE;AACzD,qBAAA;AACD,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,oBAAoB;AAC3B,wBAAA,aAAa,EAAE,4BAA4B;AAC3C,wBAAA,iBAAiB,EAAE,qBAAqB;AACxC,wBAAA,aAAa,EAAE,4BAA4B;AAC3C,wBAAA,iBAAiB,EAAE,2BAA2B;AAC9C,wBAAA,eAAe,EAAE,WAAW;AAC5B,wBAAA,iBAAiB,EAAE,mBAAmB;AACtC,wBAAA,eAAe,EAAE,0BAA0B;AAC3C,wBAAA,QAAQ,EAAE,WAAW;AACtB,qBAAA;AACF,iBAAA;;;AC7CD;;AAEG;;;;"}
@@ -7,13 +7,13 @@ class DescriptionListComponent {
7
7
  /** `horizontal`: label column + value, each item stacking once its value would get less than --ds-description-list-value-min-width. `stacked`: label above value at every width. */
8
8
  orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
9
9
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DescriptionListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: DescriptionListComponent, isStandalone: true, selector: "ds-description-list", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.stacked": "orientation() === 'stacked'" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_description-list-label-width: var(--ds-description-list-label-width, var(--dl-spec-label-w));--_description-list-row-gap: var(--ds-description-list-row-gap, var(--space-3));--_description-list-column-gap: var(--ds-description-list-column-gap, var(--space-5));display:flex;flex-direction:column;row-gap:var(--_description-list-row-gap)}\n"] });
10
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: DescriptionListComponent, isStandalone: true, selector: "ds-description-list", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.stacked": "orientation() === 'stacked'" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_description-list-label-width: var(--ds-description-list-label-width, var(--dl-spec-label-w));--_description-list-row-gap: var(--ds-description-list-row-gap, var(--space-3));--_description-list-column-gap: var(--ds-description-list-column-gap, var(--space-5));display:flex;flex-direction:column;row-gap:var(--_description-list-row-gap)}\n"] });
11
11
  }
12
12
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DescriptionListComponent, decorators: [{
13
13
  type: Component,
14
14
  args: [{ selector: 'ds-description-list', standalone: true, encapsulation: ViewEncapsulation.Emulated, host: {
15
15
  '[class.stacked]': "orientation() === 'stacked'",
16
- }, template: "<ng-content></ng-content>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_description-list-label-width: var(--ds-description-list-label-width, var(--dl-spec-label-w));--_description-list-row-gap: var(--ds-description-list-row-gap, var(--space-3));--_description-list-column-gap: var(--ds-description-list-column-gap, var(--space-5));display:flex;flex-direction:column;row-gap:var(--_description-list-row-gap)}\n"] }]
16
+ }, template: "<ng-content></ng-content>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_description-list-label-width: var(--ds-description-list-label-width, var(--dl-spec-label-w));--_description-list-row-gap: var(--ds-description-list-row-gap, var(--space-3));--_description-list-column-gap: var(--ds-description-list-column-gap, var(--space-5));display:flex;flex-direction:column;row-gap:var(--_description-list-row-gap)}\n"] }]
17
17
  }], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }] } });
18
18
 
19
19
  class DescriptionItemComponent {
@@ -35,14 +35,14 @@ class DescriptionItemComponent {
35
35
  setTimeout(() => this.copied.set(false), 1200);
36
36
  }
37
37
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DescriptionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
38
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: DescriptionItemComponent, isStandalone: true, selector: "ds-description-item", inputs: { term: { classPropertyName: "term", publicName: "term", isSignal: true, isRequired: false, transformFunction: null }, copyValue: { classPropertyName: "copyValue", publicName: "copyValue", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "class.stacked": "stacked()" } }, ngImport: i0, template: "<span\n class=\"term\"\n role=\"term\">\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\">\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"\n copied() ? intl().descriptionList.copied : intl().descriptionList.copy\n \"\n (click)=\"copy()\">\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\" />\n </button>\n }\n</div>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_description-item-term-color: var(--ds-description-item-term-color, var(--text-tertiary));--_description-item-term-font-size: var(--ds-description-item-term-font-size, var(--font-size-s));--_description-item-term-font-weight: var(--ds-description-item-term-font-weight, var(--font-weight-regular));--_description-item-term-letter-spacing: var(--ds-description-item-term-letter-spacing, normal);--_description-item-term-text-transform: var(--ds-description-item-term-text-transform, none);--_description-item-details-color: var(--ds-description-item-details-color, var(--text-primary));--_description-item-details-font-size: var(--ds-description-item-details-font-size, var(--font-size-s));--_description-item-details-font-weight: var(--ds-description-item-details-font-weight, var(--font-weight-regular));--_description-list-value-min-width: var(--ds-description-list-value-min-width, var(--dl-spec-value-min-w));display:flex;flex-wrap:wrap;gap:var(--space-0-5) var(--_description-list-column-gap, var(--space-5));align-items:baseline}.term{flex:0 0 var(--_description-list-label-width, var(--dl-spec-label-w));min-width:0;color:var(--_description-item-term-color);font:var(--_description-item-term-font-weight) var(--_description-item-term-font-size)/var(--line-height-base) var(--font-sans);letter-spacing:var(--_description-item-term-letter-spacing);text-transform:var(--_description-item-term-text-transform)}.details{flex:1 1 var(--_description-list-value-min-width);display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--_description-item-details-color);font:var(--_description-item-details-font-weight) var(--_description-item-details-font-size)/var(--line-height-base) var(--font-sans)}.value{min-width:0;overflow-wrap:anywhere}.copy{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--space-0-5);border:0;border-radius:var(--ds-radius-inner);background:transparent;color:var(--text-tertiary);cursor:pointer;opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.copy:hover{background:var(--surface-secondary);color:var(--text-primary)}.copy:active{background:var(--surface-muted)}.copy:focus-visible{opacity:1;outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:1px;animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.copy{position:relative}.copy:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.copy:focus-visible{outline-style:none}.copy:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host(.stacked) :is(.term,.details){flex-basis:100%}:host(:hover) .copy{opacity:1}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
38
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: DescriptionItemComponent, isStandalone: true, selector: "ds-description-item", inputs: { term: { classPropertyName: "term", publicName: "term", isSignal: true, isRequired: false, transformFunction: null }, copyValue: { classPropertyName: "copyValue", publicName: "copyValue", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "class.stacked": "stacked()" } }, ngImport: i0, template: "<span\n class=\"term\"\n role=\"term\">\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\">\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"\n copied() ? intl().descriptionList.copied : intl().descriptionList.copy\n \"\n (click)=\"copy()\">\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\" />\n </button>\n }\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_description-item-term-color: var(--ds-description-item-term-color, var(--text-tertiary));--_description-item-term-font-size: var(--ds-description-item-term-font-size, var(--font-size-s));--_description-item-term-font-weight: var(--ds-description-item-term-font-weight, var(--font-weight-regular));--_description-item-term-letter-spacing: var(--ds-description-item-term-letter-spacing, normal);--_description-item-term-text-transform: var(--ds-description-item-term-text-transform, none);--_description-item-details-color: var(--ds-description-item-details-color, var(--text-primary));--_description-item-details-font-size: var(--ds-description-item-details-font-size, var(--font-size-s));--_description-item-details-font-weight: var(--ds-description-item-details-font-weight, var(--font-weight-regular));--_description-list-value-min-width: var(--ds-description-list-value-min-width, var(--dl-spec-value-min-w));display:flex;flex-wrap:wrap;gap:var(--space-0-5) var(--_description-list-column-gap, var(--space-5));align-items:baseline}.term{flex:0 0 var(--_description-list-label-width, var(--dl-spec-label-w));min-width:0;color:var(--_description-item-term-color);font:var(--_description-item-term-font-weight) var(--_description-item-term-font-size)/var(--line-height-base) var(--font-sans);letter-spacing:var(--_description-item-term-letter-spacing);text-transform:var(--_description-item-term-text-transform)}.details{flex:1 1 var(--_description-list-value-min-width);display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--_description-item-details-color);font:var(--_description-item-details-font-weight) var(--_description-item-details-font-size)/var(--line-height-base) var(--font-sans)}.value{min-width:0;overflow-wrap:anywhere}.copy{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--space-0-5);border:0;border-radius:var(--ds-radius-inner);background:transparent;color:var(--text-tertiary);cursor:pointer;opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.copy:hover{background:var(--surface-secondary);color:var(--text-primary)}.copy:active{background:var(--surface-muted)}.copy:focus-visible{opacity:1;outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:1px;animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.copy{position:relative}.copy:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.copy:focus-visible{outline-style:none}.copy:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host(.stacked) :is(.term,.details){flex-basis:100%}:host(:hover) .copy{opacity:1}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
39
39
  }
40
40
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DescriptionItemComponent, decorators: [{
41
41
  type: Component,
42
42
  args: [{ selector: 'ds-description-item', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, host: {
43
43
  role: 'group',
44
44
  '[class.stacked]': 'stacked()',
45
- }, template: "<span\n class=\"term\"\n role=\"term\">\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\">\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"\n copied() ? intl().descriptionList.copied : intl().descriptionList.copy\n \"\n (click)=\"copy()\">\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\" />\n </button>\n }\n</div>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_description-item-term-color: var(--ds-description-item-term-color, var(--text-tertiary));--_description-item-term-font-size: var(--ds-description-item-term-font-size, var(--font-size-s));--_description-item-term-font-weight: var(--ds-description-item-term-font-weight, var(--font-weight-regular));--_description-item-term-letter-spacing: var(--ds-description-item-term-letter-spacing, normal);--_description-item-term-text-transform: var(--ds-description-item-term-text-transform, none);--_description-item-details-color: var(--ds-description-item-details-color, var(--text-primary));--_description-item-details-font-size: var(--ds-description-item-details-font-size, var(--font-size-s));--_description-item-details-font-weight: var(--ds-description-item-details-font-weight, var(--font-weight-regular));--_description-list-value-min-width: var(--ds-description-list-value-min-width, var(--dl-spec-value-min-w));display:flex;flex-wrap:wrap;gap:var(--space-0-5) var(--_description-list-column-gap, var(--space-5));align-items:baseline}.term{flex:0 0 var(--_description-list-label-width, var(--dl-spec-label-w));min-width:0;color:var(--_description-item-term-color);font:var(--_description-item-term-font-weight) var(--_description-item-term-font-size)/var(--line-height-base) var(--font-sans);letter-spacing:var(--_description-item-term-letter-spacing);text-transform:var(--_description-item-term-text-transform)}.details{flex:1 1 var(--_description-list-value-min-width);display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--_description-item-details-color);font:var(--_description-item-details-font-weight) var(--_description-item-details-font-size)/var(--line-height-base) var(--font-sans)}.value{min-width:0;overflow-wrap:anywhere}.copy{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--space-0-5);border:0;border-radius:var(--ds-radius-inner);background:transparent;color:var(--text-tertiary);cursor:pointer;opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.copy:hover{background:var(--surface-secondary);color:var(--text-primary)}.copy:active{background:var(--surface-muted)}.copy:focus-visible{opacity:1;outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:1px;animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.copy{position:relative}.copy:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.copy:focus-visible{outline-style:none}.copy:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host(.stacked) :is(.term,.details){flex-basis:100%}:host(:hover) .copy{opacity:1}\n"] }]
45
+ }, template: "<span\n class=\"term\"\n role=\"term\">\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\">\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"\n copied() ? intl().descriptionList.copied : intl().descriptionList.copy\n \"\n (click)=\"copy()\">\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\" />\n </button>\n }\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_description-item-term-color: var(--ds-description-item-term-color, var(--text-tertiary));--_description-item-term-font-size: var(--ds-description-item-term-font-size, var(--font-size-s));--_description-item-term-font-weight: var(--ds-description-item-term-font-weight, var(--font-weight-regular));--_description-item-term-letter-spacing: var(--ds-description-item-term-letter-spacing, normal);--_description-item-term-text-transform: var(--ds-description-item-term-text-transform, none);--_description-item-details-color: var(--ds-description-item-details-color, var(--text-primary));--_description-item-details-font-size: var(--ds-description-item-details-font-size, var(--font-size-s));--_description-item-details-font-weight: var(--ds-description-item-details-font-weight, var(--font-weight-regular));--_description-list-value-min-width: var(--ds-description-list-value-min-width, var(--dl-spec-value-min-w));display:flex;flex-wrap:wrap;gap:var(--space-0-5) var(--_description-list-column-gap, var(--space-5));align-items:baseline}.term{flex:0 0 var(--_description-list-label-width, var(--dl-spec-label-w));min-width:0;color:var(--_description-item-term-color);font:var(--_description-item-term-font-weight) var(--_description-item-term-font-size)/var(--line-height-base) var(--font-sans);letter-spacing:var(--_description-item-term-letter-spacing);text-transform:var(--_description-item-term-text-transform)}.details{flex:1 1 var(--_description-list-value-min-width);display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--_description-item-details-color);font:var(--_description-item-details-font-weight) var(--_description-item-details-font-size)/var(--line-height-base) var(--font-sans)}.value{min-width:0;overflow-wrap:anywhere}.copy{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--space-0-5);border:0;border-radius:var(--ds-radius-inner);background:transparent;color:var(--text-tertiary);cursor:pointer;opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.copy:hover{background:var(--surface-secondary);color:var(--text-primary)}.copy:active{background:var(--surface-muted)}.copy:focus-visible{opacity:1;outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:1px;animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.copy{position:relative}.copy:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.copy:focus-visible{outline-style:none}.copy:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host(.stacked) :is(.term,.details){flex-basis:100%}:host(:hover) .copy{opacity:1}\n"] }]
46
46
  }], propDecorators: { term: [{ type: i0.Input, args: [{ isSignal: true, alias: "term", required: false }] }], copyValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "copyValue", required: false }] }] } });
47
47
 
48
48
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-description-list.mjs","sources":["../../../src/lib/components/description-list/description-list.component.ts","../../../src/lib/components/description-list/description-list.component.html","../../../src/lib/components/description-list/description-item.component.ts","../../../src/lib/components/description-list/description-item.component.html","../../../src/lib/components/description-list/ids-group-ltd-ids-design-system-components-description-list.ts"],"sourcesContent":["import { Component, ViewEncapsulation, input } from '@angular/core';\n\nexport type DescriptionListOrientation = 'horizontal' | 'stacked';\n\n@Component({\n selector: 'ds-description-list',\n standalone: true,\n templateUrl: './description-list.component.html',\n styleUrl: './description-list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.stacked]': \"orientation() === 'stacked'\",\n },\n})\nexport class DescriptionListComponent {\n /** `horizontal`: label column + value, each item stacking once its value would get less than --ds-description-list-value-min-width. `stacked`: label above value at every width. */\n readonly orientation = input<DescriptionListOrientation>('horizontal');\n}\n","<ng-content></ng-content>\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { DescriptionListComponent } from './description-list.component';\n\n@Component({\n selector: 'ds-description-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './description-item.component.html',\n styleUrl: './description-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'group',\n '[class.stacked]': 'stacked()',\n },\n})\nexport class DescriptionItemComponent {\n private readonly list = inject(DescriptionListComponent, { optional: true });\n protected readonly intl = inject(DS_INTL);\n\n /** The label, plain text. Rich values go in the projected content. */\n readonly term = input<string>('');\n /** When set, a copy button copies this string to the clipboard. */\n readonly copyValue = input<string | null>(null);\n\n protected readonly stacked = computed(\n () => this.list?.orientation() === 'stacked',\n );\n protected readonly copied = signal(false);\n\n protected async copy(): Promise<void> {\n const value = this.copyValue();\n if (!value) {\n return;\n }\n await navigator.clipboard?.writeText(value);\n this.copied.set(true);\n setTimeout(() => this.copied.set(false), 1200);\n }\n}\n","<span\n class=\"term\"\n role=\"term\">\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\">\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"\n copied() ? intl().descriptionList.copied : intl().descriptionList.copy\n \"\n (click)=\"copy()\">\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\" />\n </button>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAca,wBAAwB,CAAA;;AAE1B,IAAA,WAAW,GAAG,KAAK,CAA6B,YAAY,kFAAC;wGAF3D,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAxB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,wBAAwB,+SCdrC,6BACA,EAAA,MAAA,EAAA,CAAA,09BAAA,CAAA,EAAA,CAAA;;4FDaa,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAVpC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,qBAAqB,cACnB,IAAI,EAAA,aAAA,EAGD,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,iBAAiB,EAAE,6BAA6B;AACjD,qBAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,MAAA,EAAA,CAAA,09BAAA,CAAA,EAAA;;;MEYU,wBAAwB,CAAA;IAClB,IAAI,GAAG,MAAM,CAAC,wBAAwB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACzD,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;;AAGhC,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;;AAExB,IAAA,SAAS,GAAG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AAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDZY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FASZ,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAZpC,SAAS;+BACE,qBAAqB,EAAA,UAAA,EACnB,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,aAAA,EAGT,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,IAAI,EAAE,OAAO;AACb,wBAAA,iBAAiB,EAAE,WAAW;AAC/B,qBAAA,EAAA,QAAA,EAAA,yhBAAA,EAAA,MAAA,EAAA,CAAA,wjHAAA,CAAA,EAAA;;;AEtBH;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-description-list.mjs","sources":["../../../src/lib/components/description-list/description-list.component.ts","../../../src/lib/components/description-list/description-list.component.html","../../../src/lib/components/description-list/description-item.component.ts","../../../src/lib/components/description-list/description-item.component.html","../../../src/lib/components/description-list/ids-group-ltd-ids-design-system-components-description-list.ts"],"sourcesContent":["import { Component, ViewEncapsulation, input } from '@angular/core';\n\nexport type DescriptionListOrientation = 'horizontal' | 'stacked';\n\n@Component({\n selector: 'ds-description-list',\n standalone: true,\n templateUrl: './description-list.component.html',\n styleUrl: './description-list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.stacked]': \"orientation() === 'stacked'\",\n },\n})\nexport class DescriptionListComponent {\n /** `horizontal`: label column + value, each item stacking once its value would get less than --ds-description-list-value-min-width. `stacked`: label above value at every width. */\n readonly orientation = input<DescriptionListOrientation>('horizontal');\n}\n","<ng-content></ng-content>\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { DescriptionListComponent } from './description-list.component';\n\n@Component({\n selector: 'ds-description-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './description-item.component.html',\n styleUrl: './description-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'group',\n '[class.stacked]': 'stacked()',\n },\n})\nexport class DescriptionItemComponent {\n private readonly list = inject(DescriptionListComponent, { optional: true });\n protected readonly intl = inject(DS_INTL);\n\n /** The label, plain text. Rich values go in the projected content. */\n readonly term = input<string>('');\n /** When set, a copy button copies this string to the clipboard. */\n readonly copyValue = input<string | null>(null);\n\n protected readonly stacked = computed(\n () => this.list?.orientation() === 'stacked',\n );\n protected readonly copied = signal(false);\n\n protected async copy(): Promise<void> {\n const value = this.copyValue();\n if (!value) {\n return;\n }\n await navigator.clipboard?.writeText(value);\n this.copied.set(true);\n setTimeout(() => this.copied.set(false), 1200);\n }\n}\n","<span\n class=\"term\"\n role=\"term\">\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\">\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"\n copied() ? intl().descriptionList.copied : intl().descriptionList.copy\n \"\n (click)=\"copy()\">\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\" />\n </button>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAca,wBAAwB,CAAA;;AAE1B,IAAA,WAAW,GAAG,KAAK,CAA6B,YAAY,kFAAC;wGAF3D,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAxB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EA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gap. */
9
9
  spacing = input('md', ...(ngDevMode ? [{ debugName: "spacing" }] : /* istanbul ignore next */ []));
10
10
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
11
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: DividerComponent, isStandalone: true, selector: "ds-divider", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "separator" }, properties: { "class.strong": "variant() === 'strong'", "class.vertical": "variant() === 'vertical'", "class.label": "variant() === 'label'", "class.spacing-none": "spacing() === 'none'", "class.spacing-sm": "spacing() === 'sm'", "class.spacing-md": "spacing() === 'md'", "class.spacing-lg": "spacing() === 'lg'", "attr.aria-orientation": "variant() === 'vertical' ? 'vertical' : null" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_divider-color: var(--ds-divider-color, var(--border-divider));--_divider-label-color: var(--ds-divider-label-color, var(--text-tertiary));--_divider-thickness: var(--ds-divider-thickness, var(--border-width-default));--_divider-strong-color: var(--ds-divider-strong-color, var(--border-default));display:block;height:var(--_divider-thickness);background:var(--_divider-color);margin:var(--space-2) 0;border:0}:host(.spacing-none){margin:0}:host(.spacing-sm){margin:var(--space-1) 0}:host(.spacing-md){margin:var(--space-2) 0}:host(.spacing-lg){margin:var(--space-4) 0}:host(.strong){background:var(--_divider-strong-color)}:host(.vertical){width:var(--_divider-thickness);height:auto;align-self:stretch;margin:0 var(--space-3)}:host(.label){display:flex;align-items:center;gap:var(--space-3);background:transparent;height:auto;font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-base) var(--font-sans);letter-spacing:var(--letter-spacing-wider);text-transform:uppercase;color:var(--_divider-label-color)}:host(.label):before,:host(.label):after{content:\"\";flex:1;height:var(--_divider-thickness);background:var(--_divider-color)}\n"] });
11
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: DividerComponent, isStandalone: true, selector: "ds-divider", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "separator" }, properties: { "class.strong": "variant() === 'strong'", "class.vertical": "variant() === 'vertical'", "class.label": "variant() === 'label'", "class.spacing-none": "spacing() === 'none'", "class.spacing-sm": "spacing() === 'sm'", "class.spacing-md": "spacing() === 'md'", "class.spacing-lg": "spacing() === 'lg'", "attr.aria-orientation": "variant() === 'vertical' ? 'vertical' : null" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_divider-color: var(--ds-divider-color, var(--border-divider));--_divider-label-color: var(--ds-divider-label-color, var(--text-tertiary));--_divider-thickness: var(--ds-divider-thickness, var(--border-width-default));--_divider-strong-color: var(--ds-divider-strong-color, var(--border-default));display:block;height:var(--_divider-thickness);background:var(--_divider-color);margin:var(--space-2) 0;border:0}:host(.spacing-none){margin:0}:host(.spacing-sm){margin:var(--space-1) 0}:host(.spacing-md){margin:var(--space-2) 0}:host(.spacing-lg){margin:var(--space-4) 0}:host(.strong){background:var(--_divider-strong-color)}:host(.vertical){width:var(--_divider-thickness);height:auto;align-self:stretch;margin:0 var(--space-3)}:host(.label){display:flex;align-items:center;gap:var(--space-3);background:transparent;height:auto;font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-base) var(--font-sans);letter-spacing:var(--letter-spacing-wider);text-transform:uppercase;color:var(--_divider-label-color)}:host(.label):before,:host(.label):after{content:\"\";flex:1;height:var(--_divider-thickness);background:var(--_divider-color)}\n"] });
12
12
  }
13
13
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DividerComponent, decorators: [{
14
14
  type: Component,
@@ -22,7 +22,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
22
22
  '[class.spacing-md]': "spacing() === 'md'",
23
23
  '[class.spacing-lg]': "spacing() === 'lg'",
24
24
  '[attr.aria-orientation]': "variant() === 'vertical' ? 'vertical' : null",
25
- }, encapsulation: ViewEncapsulation.Emulated, styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_divider-color: var(--ds-divider-color, var(--border-divider));--_divider-label-color: var(--ds-divider-label-color, var(--text-tertiary));--_divider-thickness: var(--ds-divider-thickness, var(--border-width-default));--_divider-strong-color: var(--ds-divider-strong-color, var(--border-default));display:block;height:var(--_divider-thickness);background:var(--_divider-color);margin:var(--space-2) 0;border:0}:host(.spacing-none){margin:0}:host(.spacing-sm){margin:var(--space-1) 0}:host(.spacing-md){margin:var(--space-2) 0}:host(.spacing-lg){margin:var(--space-4) 0}:host(.strong){background:var(--_divider-strong-color)}:host(.vertical){width:var(--_divider-thickness);height:auto;align-self:stretch;margin:0 var(--space-3)}:host(.label){display:flex;align-items:center;gap:var(--space-3);background:transparent;height:auto;font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-base) var(--font-sans);letter-spacing:var(--letter-spacing-wider);text-transform:uppercase;color:var(--_divider-label-color)}:host(.label):before,:host(.label):after{content:\"\";flex:1;height:var(--_divider-thickness);background:var(--_divider-color)}\n"] }]
25
+ }, encapsulation: ViewEncapsulation.Emulated, styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_divider-color: var(--ds-divider-color, var(--border-divider));--_divider-label-color: var(--ds-divider-label-color, var(--text-tertiary));--_divider-thickness: var(--ds-divider-thickness, var(--border-width-default));--_divider-strong-color: var(--ds-divider-strong-color, var(--border-default));display:block;height:var(--_divider-thickness);background:var(--_divider-color);margin:var(--space-2) 0;border:0}:host(.spacing-none){margin:0}:host(.spacing-sm){margin:var(--space-1) 0}:host(.spacing-md){margin:var(--space-2) 0}:host(.spacing-lg){margin:var(--space-4) 0}:host(.strong){background:var(--_divider-strong-color)}:host(.vertical){width:var(--_divider-thickness);height:auto;align-self:stretch;margin:0 var(--space-3)}:host(.label){display:flex;align-items:center;gap:var(--space-3);background:transparent;height:auto;font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-base) var(--font-sans);letter-spacing:var(--letter-spacing-wider);text-transform:uppercase;color:var(--_divider-label-color)}:host(.label):before,:host(.label):after{content:\"\";flex:1;height:var(--_divider-thickness);background:var(--_divider-color)}\n"] }]
26
26
  }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }] } });
27
27
 
28
28
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-divider.mjs","sources":["../../../src/lib/components/divider/divider.component.ts","../../../src/lib/components/divider/ids-group-ltd-ids-design-system-components-divider.ts"],"sourcesContent":["import { Component, ViewEncapsulation, input } from '@angular/core';\nimport type { DividerSpacing, DividerVariant } from './divider.types';\n\n@Component({\n selector: 'ds-divider',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './divider.component.scss',\n host: {\n role: 'separator',\n '[class.strong]': \"variant() === 'strong'\",\n '[class.vertical]': \"variant() === 'vertical'\",\n '[class.label]': \"variant() === 'label'\",\n '[class.spacing-none]': \"spacing() === 'none'\",\n '[class.spacing-sm]': \"spacing() === 'sm'\",\n '[class.spacing-md]': \"spacing() === 'md'\",\n '[class.spacing-lg]': \"spacing() === 'lg'\",\n '[attr.aria-orientation]': \"variant() === 'vertical' ? 'vertical' : null\",\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class DividerComponent {\n /** `default` hairline, `strong` heavier rule, `vertical` for a row, `label` carries projected\n * text in the middle of the line. */\n readonly variant = input<DividerVariant>('default');\n /** Vertical breathing room around the rule. `none` when the parent layout already owns the gap. */\n readonly spacing = input<DividerSpacing>('md');\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAqBa,gBAAgB,CAAA;AAC3B;AACsC;AAC7B,IAAA,OAAO,GAAG,KAAK,CAAiB,SAAS,8EAAC;;AAE1C,IAAA,OAAO,GAAG,KAAK,CAAiB,IAAI,8EAAC;wGALnC,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,kwBAfjB,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,swDAAA,CAAA,EAAA,CAAA;;4FAe1B,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAlB5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EAAA,UAAA,EACV,IAAI,EAAA,QAAA,EACN,2BAA2B,EAAA,IAAA,EAE/B;AACJ,wBAAA,IAAI,EAAE,WAAW;AACjB,wBAAA,gBAAgB,EAAE,wBAAwB;AAC1C,wBAAA,kBAAkB,EAAE,0BAA0B;AAC9C,wBAAA,eAAe,EAAE,uBAAuB;AACxC,wBAAA,sBAAsB,EAAE,sBAAsB;AAC9C,wBAAA,oBAAoB,EAAE,oBAAoB;AAC1C,wBAAA,oBAAoB,EAAE,oBAAoB;AAC1C,wBAAA,oBAAoB,EAAE,oBAAoB;AAC1C,wBAAA,yBAAyB,EAAE,8CAA8C;qBAC1E,EAAA,aAAA,EACc,iBAAiB,CAAC,QAAQ,EAAA,MAAA,EAAA,CAAA,swDAAA,CAAA,EAAA;;;ACnB3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-divider.mjs","sources":["../../../src/lib/components/divider/divider.component.ts","../../../src/lib/components/divider/ids-group-ltd-ids-design-system-components-divider.ts"],"sourcesContent":["import { Component, ViewEncapsulation, input } from '@angular/core';\nimport type { DividerSpacing, DividerVariant } from './divider.types';\n\n@Component({\n selector: 'ds-divider',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './divider.component.scss',\n host: {\n role: 'separator',\n '[class.strong]': \"variant() === 'strong'\",\n '[class.vertical]': \"variant() === 'vertical'\",\n '[class.label]': \"variant() === 'label'\",\n '[class.spacing-none]': \"spacing() === 'none'\",\n '[class.spacing-sm]': \"spacing() === 'sm'\",\n '[class.spacing-md]': \"spacing() === 'md'\",\n '[class.spacing-lg]': \"spacing() === 'lg'\",\n '[attr.aria-orientation]': \"variant() === 'vertical' ? 'vertical' : null\",\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class DividerComponent {\n /** `default` hairline, `strong` heavier rule, `vertical` for a row, `label` carries projected\n * text in the middle of the line. */\n readonly variant = input<DividerVariant>('default');\n /** Vertical breathing room around the rule. `none` when the parent layout already owns the gap. */\n readonly spacing = input<DividerSpacing>('md');\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAqBa,gBAAgB,CAAA;AAC3B;AACsC;AAC7B,IAAA,OAAO,GAAG,KAAK,CAAiB,SAAS,8EAAC;;AAE1C,IAAA,OAAO,GAAG,KAAK,CAAiB,IAAI,8EAAC;wGALnC,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,kwBAfjB,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,2uDAAA,CAAA,EAAA,CAAA;;4FAe1B,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAlB5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EAAA,UAAA,EACV,IAAI,EAAA,QAAA,EACN,2BAA2B,EAAA,IAAA,EAE/B;AACJ,wBAAA,IAAI,EAAE,WAAW;AACjB,wBAAA,gBAAgB,EAAE,wBAAwB;AAC1C,wBAAA,kBAAkB,EAAE,0BAA0B;AAC9C,wBAAA,eAAe,EAAE,uBAAuB;AACxC,wBAAA,sBAAsB,EAAE,sBAAsB;AAC9C,wBAAA,oBAAoB,EAAE,oBAAoB;AAC1C,wBAAA,oBAAoB,EAAE,oBAAoB;AAC1C,wBAAA,oBAAoB,EAAE,oBAAoB;AAC1C,wBAAA,yBAAyB,EAAE,8CAA8C;qBAC1E,EAAA,aAAA,EACc,iBAAiB,CAAC,QAAQ,EAAA,MAAA,EAAA,CAAA,2uDAAA,CAAA,EAAA;;;ACnB3C;;AAEG;;;;"}
@@ -95,14 +95,14 @@ class DrawerComponent {
95
95
  }
96
96
  }
97
97
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
98
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: DrawerComponent, isStandalone: true, selector: "ds-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, host: { listeners: { "document:keydown.escape": "onEscape()" }, properties: { "attr.title": "null" } }, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (rendered() || preview.staticPreview()) {\n <div\n [class]=\"preview.staticPreview() ? 'drawer-static' : 'drawer-root'\"\n [class.closing]=\"closing()\">\n @if (!preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n <div\n class=\"drawer-scrim\"\n [class.closing]=\"closing()\"\n (click)=\"onClose()\">\n </div>\n }\n\n <div\n role=\"dialog\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [class]=\"classes()\"\n [class.closing]=\"closing()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (keydown.escape)=\"onClose()\"\n (animationend)=\"onLeaveEnd($event)\">\n <header class=\"header\">\n <h4\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h4>\n\n <button\n type=\"button\"\n class=\"close\"\n [attr.aria-label]=\"intl().dialog.close\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\" />\n </button>\n </header>\n\n <div class=\"body\">\n <ng-content select=\"[drawer-body], [body]\"></ng-content>\n\n <ng-content></ng-content>\n </div>\n\n <div class=\"footer\">\n <ng-content select=\"[drawer-footer], [actions]\"></ng-content>\n </div>\n </div>\n </div>\n}\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_drawer-bg-color: var(--ds-drawer-bg-color, var(--surface-overlay));--_drawer-scrim-color: var(--ds-drawer-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));--_drawer-shadow: var(--ds-drawer-shadow, var(--ds-elevation-modal));--_drawer-divider: var(--ds-drawer-divider, var(--border-divider));--_drawer-close-icon-color: var(--ds-drawer-close-icon-color, var(--icon-default));--_drawer-close-icon-color-hover: var(--ds-drawer-close-icon-color-hover, var(--icon-strong));--_drawer-radius: var(--ds-drawer-radius, 0);--_drawer-title-color: var(--ds-drawer-title-color, inherit);--_drawer-width-sm: var(--ds-drawer-width, var(--drawer-w-sm));--_drawer-width-md: var(--ds-drawer-width, var(--drawer-w-md));--_drawer-width-lg: var(--ds-drawer-width, var(--drawer-w-lg));--_drawer-enter-keyframes: var(--ds-drawer-enter-keyframes, ds-slide-edge-in);--_drawer-leave-keyframes: var(--ds-drawer-leave-keyframes, ds-slide-edge-out);--_drawer-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-large-duration));--_drawer-enter-easing: var(--ds-drawer-enter-easing, var(--ds-motion-enter-large-easing));--_drawer-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-large-duration));--_drawer-leave-easing: var(--ds-drawer-leave-easing, var(--ds-motion-exit-large-easing));--_drawer-scrim-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-panel-duration));--_drawer-scrim-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-drawer-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_drawer-enter-duration: 0ms;--_drawer-leave-duration: 0ms;--_drawer-scrim-enter-duration: 0ms;--_drawer-scrim-leave-duration: 0ms}}.drawer-root{position:fixed;inset:0;z-index:var(--layer-modal);overflow:clip}.drawer-root.closing{pointer-events:none}.drawer-static{display:contents}.drawer-static .drawer{position:relative;max-width:100%;animation:none}.drawer-scrim{position:absolute;inset:0;background:var(--_drawer-scrim-color);animation-name:ds-fade-in;animation-duration:var(--_drawer-scrim-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer-scrim.closing{animation-name:ds-fade-out;animation-duration:var(--_drawer-scrim-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer{position:absolute;background:var(--_drawer-bg-color);box-shadow:var(--_drawer-shadow);border-radius:var(--_drawer-radius);display:flex;flex-direction:column;isolation:isolate;animation-name:var(--_drawer-enter-keyframes);animation-duration:var(--_drawer-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer.closing{animation-duration:var(--_drawer-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer.sm{width:var(--_drawer-width-sm)}.drawer.md{width:var(--_drawer-width-md)}.drawer.lg{width:var(--_drawer-width-lg)}.drawer.right{--_ds-enter-x: 100%;top:0;right:0;bottom:0;max-width:100vw}.drawer.right.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.left{--_ds-enter-x: -100%;top:0;left:0;bottom:0;max-width:100vw}.drawer.left.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.top{--_ds-enter-y: -100%;top:0;left:0;right:0;width:auto;max-height:80vh}.drawer.top.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.bottom{--_ds-enter-y: 100%;bottom:0;left:0;right:0;width:auto;max-height:80vh}.drawer.bottom.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer .header{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-5) var(--space-6);border-bottom:var(--border-width-default) solid var(--_drawer-divider)}.drawer .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_drawer-title-color);margin:0;flex:1}.drawer .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.drawer .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.drawer .close{width:var(--modal-close-size);height:var(--modal-close-size);color:var(--_drawer-close-icon-color)}.drawer .close:hover{color:var(--_drawer-close-icon-color-hover)}.drawer .body{flex:1;padding:var(--space-6);overflow-y:auto}.drawer .footer{padding:var(--space-4) var(--space-6);border-top:var(--border-width-default) solid var(--_drawer-divider);display:flex;gap:var(--space-2);justify-content:flex-end}:where(.footer)>::ng-deep :where(div[actions],div[drawer-footer]){display:contents}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
98
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: DrawerComponent, isStandalone: true, selector: "ds-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, host: { listeners: { "document:keydown.escape": "onEscape()" }, properties: { "attr.title": "null" } }, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (rendered() || preview.staticPreview()) {\n <div\n [class]=\"preview.staticPreview() ? 'drawer-static' : 'drawer-root'\"\n [class.closing]=\"closing()\">\n @if (!preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n <div\n class=\"drawer-scrim\"\n [class.closing]=\"closing()\"\n (click)=\"onClose()\">\n </div>\n }\n\n <div\n role=\"dialog\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [class]=\"classes()\"\n [class.closing]=\"closing()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (keydown.escape)=\"onClose()\"\n (animationend)=\"onLeaveEnd($event)\">\n <header class=\"header\">\n <h4\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h4>\n\n <button\n type=\"button\"\n class=\"close\"\n [attr.aria-label]=\"intl().dialog.close\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\" />\n </button>\n </header>\n\n <div class=\"body\">\n <ng-content select=\"[drawer-body], [body]\"></ng-content>\n\n <ng-content></ng-content>\n </div>\n\n <div class=\"footer\">\n <ng-content select=\"[drawer-footer], [actions]\"></ng-content>\n </div>\n </div>\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_drawer-bg-color: var(--ds-drawer-bg-color, var(--surface-overlay));--_drawer-scrim-color: var(--ds-drawer-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));--_drawer-shadow: var(--ds-drawer-shadow, var(--ds-elevation-modal));--_drawer-divider: var(--ds-drawer-divider, var(--border-divider));--_drawer-close-icon-color: var(--ds-drawer-close-icon-color, var(--icon-default));--_drawer-close-icon-color-hover: var(--ds-drawer-close-icon-color-hover, var(--icon-strong));--_drawer-radius: var(--ds-drawer-radius, 0);--_drawer-title-color: var(--ds-drawer-title-color, inherit);--_drawer-width-sm: var(--ds-drawer-width, var(--drawer-w-sm));--_drawer-width-md: var(--ds-drawer-width, var(--drawer-w-md));--_drawer-width-lg: var(--ds-drawer-width, var(--drawer-w-lg));--_drawer-enter-keyframes: var(--ds-drawer-enter-keyframes, ds-slide-edge-in);--_drawer-leave-keyframes: var(--ds-drawer-leave-keyframes, ds-slide-edge-out);--_drawer-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-large-duration));--_drawer-enter-easing: var(--ds-drawer-enter-easing, var(--ds-motion-enter-large-easing));--_drawer-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-large-duration));--_drawer-leave-easing: var(--ds-drawer-leave-easing, var(--ds-motion-exit-large-easing));--_drawer-scrim-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-panel-duration));--_drawer-scrim-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-drawer-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_drawer-enter-duration: 0ms;--_drawer-leave-duration: 0ms;--_drawer-scrim-enter-duration: 0ms;--_drawer-scrim-leave-duration: 0ms}}.drawer-root{position:fixed;inset:0;z-index:var(--layer-modal);overflow:clip}.drawer-root.closing{pointer-events:none}.drawer-static{display:contents}.drawer-static .drawer{position:relative;max-width:100%;animation:none}.drawer-scrim{position:absolute;inset:0;background:var(--_drawer-scrim-color);animation-name:ds-fade-in;animation-duration:var(--_drawer-scrim-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer-scrim.closing{animation-name:ds-fade-out;animation-duration:var(--_drawer-scrim-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer{position:absolute;background:var(--_drawer-bg-color);box-shadow:var(--_drawer-shadow);border-radius:var(--_drawer-radius);display:flex;flex-direction:column;isolation:isolate;animation-name:var(--_drawer-enter-keyframes);animation-duration:var(--_drawer-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer.closing{animation-duration:var(--_drawer-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer.sm{width:var(--_drawer-width-sm)}.drawer.md{width:var(--_drawer-width-md)}.drawer.lg{width:var(--_drawer-width-lg)}.drawer.right{--_ds-enter-x: 100%;top:0;right:0;bottom:0;max-width:100vw}.drawer.right.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.left{--_ds-enter-x: -100%;top:0;left:0;bottom:0;max-width:100vw}.drawer.left.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.top{--_ds-enter-y: -100%;top:0;left:0;right:0;width:auto;max-height:80vh}.drawer.top.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.bottom{--_ds-enter-y: 100%;bottom:0;left:0;right:0;width:auto;max-height:80vh}.drawer.bottom.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer .header{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-5) var(--space-6);border-bottom:var(--border-width-default) solid var(--_drawer-divider)}.drawer .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_drawer-title-color);margin:0;flex:1}.drawer .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.drawer .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.drawer .close{width:var(--modal-close-size);height:var(--modal-close-size);color:var(--_drawer-close-icon-color)}.drawer .close:hover{color:var(--_drawer-close-icon-color-hover)}.drawer .body{flex:1;padding:var(--space-6);overflow-y:auto}.drawer .footer{padding:var(--space-4) var(--space-6);border-top:var(--border-width-default) solid var(--_drawer-divider);display:flex;gap:var(--space-2);justify-content:flex-end}:where(.footer)>::ng-deep :where(div[actions],div[drawer-footer]){display:contents}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
99
99
  }
100
100
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DrawerComponent, decorators: [{
101
101
  type: Component,
102
102
  args: [{ selector: 'ds-drawer', standalone: true, imports: [IconComponent, A11yModule], encapsulation: ViewEncapsulation.Emulated, host: {
103
103
  '[attr.title]': 'null',
104
104
  '(document:keydown.escape)': 'onEscape()',
105
- }, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@if (rendered() || preview.staticPreview()) {\n <div\n [class]=\"preview.staticPreview() ? 'drawer-static' : 'drawer-root'\"\n [class.closing]=\"closing()\">\n @if (!preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n <div\n class=\"drawer-scrim\"\n [class.closing]=\"closing()\"\n (click)=\"onClose()\">\n </div>\n }\n\n <div\n role=\"dialog\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [class]=\"classes()\"\n [class.closing]=\"closing()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (keydown.escape)=\"onClose()\"\n (animationend)=\"onLeaveEnd($event)\">\n <header class=\"header\">\n <h4\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h4>\n\n <button\n type=\"button\"\n class=\"close\"\n [attr.aria-label]=\"intl().dialog.close\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\" />\n </button>\n </header>\n\n <div class=\"body\">\n <ng-content select=\"[drawer-body], [body]\"></ng-content>\n\n <ng-content></ng-content>\n </div>\n\n <div class=\"footer\">\n <ng-content select=\"[drawer-footer], [actions]\"></ng-content>\n </div>\n </div>\n </div>\n}\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_drawer-bg-color: var(--ds-drawer-bg-color, var(--surface-overlay));--_drawer-scrim-color: var(--ds-drawer-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));--_drawer-shadow: var(--ds-drawer-shadow, var(--ds-elevation-modal));--_drawer-divider: var(--ds-drawer-divider, var(--border-divider));--_drawer-close-icon-color: var(--ds-drawer-close-icon-color, var(--icon-default));--_drawer-close-icon-color-hover: var(--ds-drawer-close-icon-color-hover, var(--icon-strong));--_drawer-radius: var(--ds-drawer-radius, 0);--_drawer-title-color: var(--ds-drawer-title-color, inherit);--_drawer-width-sm: var(--ds-drawer-width, var(--drawer-w-sm));--_drawer-width-md: var(--ds-drawer-width, var(--drawer-w-md));--_drawer-width-lg: var(--ds-drawer-width, var(--drawer-w-lg));--_drawer-enter-keyframes: var(--ds-drawer-enter-keyframes, ds-slide-edge-in);--_drawer-leave-keyframes: var(--ds-drawer-leave-keyframes, ds-slide-edge-out);--_drawer-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-large-duration));--_drawer-enter-easing: var(--ds-drawer-enter-easing, var(--ds-motion-enter-large-easing));--_drawer-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-large-duration));--_drawer-leave-easing: var(--ds-drawer-leave-easing, var(--ds-motion-exit-large-easing));--_drawer-scrim-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-panel-duration));--_drawer-scrim-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-drawer-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_drawer-enter-duration: 0ms;--_drawer-leave-duration: 0ms;--_drawer-scrim-enter-duration: 0ms;--_drawer-scrim-leave-duration: 0ms}}.drawer-root{position:fixed;inset:0;z-index:var(--layer-modal);overflow:clip}.drawer-root.closing{pointer-events:none}.drawer-static{display:contents}.drawer-static .drawer{position:relative;max-width:100%;animation:none}.drawer-scrim{position:absolute;inset:0;background:var(--_drawer-scrim-color);animation-name:ds-fade-in;animation-duration:var(--_drawer-scrim-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer-scrim.closing{animation-name:ds-fade-out;animation-duration:var(--_drawer-scrim-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer{position:absolute;background:var(--_drawer-bg-color);box-shadow:var(--_drawer-shadow);border-radius:var(--_drawer-radius);display:flex;flex-direction:column;isolation:isolate;animation-name:var(--_drawer-enter-keyframes);animation-duration:var(--_drawer-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer.closing{animation-duration:var(--_drawer-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer.sm{width:var(--_drawer-width-sm)}.drawer.md{width:var(--_drawer-width-md)}.drawer.lg{width:var(--_drawer-width-lg)}.drawer.right{--_ds-enter-x: 100%;top:0;right:0;bottom:0;max-width:100vw}.drawer.right.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.left{--_ds-enter-x: -100%;top:0;left:0;bottom:0;max-width:100vw}.drawer.left.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.top{--_ds-enter-y: -100%;top:0;left:0;right:0;width:auto;max-height:80vh}.drawer.top.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.bottom{--_ds-enter-y: 100%;bottom:0;left:0;right:0;width:auto;max-height:80vh}.drawer.bottom.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer .header{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-5) var(--space-6);border-bottom:var(--border-width-default) solid var(--_drawer-divider)}.drawer .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_drawer-title-color);margin:0;flex:1}.drawer .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.drawer .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.drawer .close{width:var(--modal-close-size);height:var(--modal-close-size);color:var(--_drawer-close-icon-color)}.drawer .close:hover{color:var(--_drawer-close-icon-color-hover)}.drawer .body{flex:1;padding:var(--space-6);overflow-y:auto}.drawer .footer{padding:var(--space-4) var(--space-6);border-top:var(--border-width-default) solid var(--_drawer-divider);display:flex;gap:var(--space-2);justify-content:flex-end}:where(.footer)>::ng-deep :where(div[actions],div[drawer-footer]){display:contents}\n"] }]
105
+ }, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@if (rendered() || preview.staticPreview()) {\n <div\n [class]=\"preview.staticPreview() ? 'drawer-static' : 'drawer-root'\"\n [class.closing]=\"closing()\">\n @if (!preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n <div\n class=\"drawer-scrim\"\n [class.closing]=\"closing()\"\n (click)=\"onClose()\">\n </div>\n }\n\n <div\n role=\"dialog\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [class]=\"classes()\"\n [class.closing]=\"closing()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (keydown.escape)=\"onClose()\"\n (animationend)=\"onLeaveEnd($event)\">\n <header class=\"header\">\n <h4\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h4>\n\n <button\n type=\"button\"\n class=\"close\"\n [attr.aria-label]=\"intl().dialog.close\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\" />\n </button>\n </header>\n\n <div class=\"body\">\n <ng-content select=\"[drawer-body], [body]\"></ng-content>\n\n <ng-content></ng-content>\n </div>\n\n <div class=\"footer\">\n <ng-content select=\"[drawer-footer], [actions]\"></ng-content>\n </div>\n </div>\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_drawer-bg-color: var(--ds-drawer-bg-color, var(--surface-overlay));--_drawer-scrim-color: var(--ds-drawer-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));--_drawer-shadow: var(--ds-drawer-shadow, var(--ds-elevation-modal));--_drawer-divider: var(--ds-drawer-divider, var(--border-divider));--_drawer-close-icon-color: var(--ds-drawer-close-icon-color, var(--icon-default));--_drawer-close-icon-color-hover: var(--ds-drawer-close-icon-color-hover, var(--icon-strong));--_drawer-radius: var(--ds-drawer-radius, 0);--_drawer-title-color: var(--ds-drawer-title-color, inherit);--_drawer-width-sm: var(--ds-drawer-width, var(--drawer-w-sm));--_drawer-width-md: var(--ds-drawer-width, var(--drawer-w-md));--_drawer-width-lg: var(--ds-drawer-width, var(--drawer-w-lg));--_drawer-enter-keyframes: var(--ds-drawer-enter-keyframes, ds-slide-edge-in);--_drawer-leave-keyframes: var(--ds-drawer-leave-keyframes, ds-slide-edge-out);--_drawer-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-large-duration));--_drawer-enter-easing: var(--ds-drawer-enter-easing, var(--ds-motion-enter-large-easing));--_drawer-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-large-duration));--_drawer-leave-easing: var(--ds-drawer-leave-easing, var(--ds-motion-exit-large-easing));--_drawer-scrim-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-panel-duration));--_drawer-scrim-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-drawer-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_drawer-enter-duration: 0ms;--_drawer-leave-duration: 0ms;--_drawer-scrim-enter-duration: 0ms;--_drawer-scrim-leave-duration: 0ms}}.drawer-root{position:fixed;inset:0;z-index:var(--layer-modal);overflow:clip}.drawer-root.closing{pointer-events:none}.drawer-static{display:contents}.drawer-static .drawer{position:relative;max-width:100%;animation:none}.drawer-scrim{position:absolute;inset:0;background:var(--_drawer-scrim-color);animation-name:ds-fade-in;animation-duration:var(--_drawer-scrim-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer-scrim.closing{animation-name:ds-fade-out;animation-duration:var(--_drawer-scrim-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer{position:absolute;background:var(--_drawer-bg-color);box-shadow:var(--_drawer-shadow);border-radius:var(--_drawer-radius);display:flex;flex-direction:column;isolation:isolate;animation-name:var(--_drawer-enter-keyframes);animation-duration:var(--_drawer-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer.closing{animation-duration:var(--_drawer-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer.sm{width:var(--_drawer-width-sm)}.drawer.md{width:var(--_drawer-width-md)}.drawer.lg{width:var(--_drawer-width-lg)}.drawer.right{--_ds-enter-x: 100%;top:0;right:0;bottom:0;max-width:100vw}.drawer.right.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.left{--_ds-enter-x: -100%;top:0;left:0;bottom:0;max-width:100vw}.drawer.left.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.top{--_ds-enter-y: -100%;top:0;left:0;right:0;width:auto;max-height:80vh}.drawer.top.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.bottom{--_ds-enter-y: 100%;bottom:0;left:0;right:0;width:auto;max-height:80vh}.drawer.bottom.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer .header{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-5) var(--space-6);border-bottom:var(--border-width-default) solid var(--_drawer-divider)}.drawer .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_drawer-title-color);margin:0;flex:1}.drawer .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.drawer .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.drawer .close{width:var(--modal-close-size);height:var(--modal-close-size);color:var(--_drawer-close-icon-color)}.drawer .close:hover{color:var(--_drawer-close-icon-color-hover)}.drawer .body{flex:1;padding:var(--space-6);overflow-y:auto}.drawer .footer{padding:var(--space-4) var(--space-6);border-top:var(--border-width-default) solid var(--_drawer-divider);display:flex;gap:var(--space-2);justify-content:flex-end}:where(.footer)>::ng-deep :where(div[actions],div[drawer-footer]){display:contents}\n"] }]
106
106
  }], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
107
107
 
108
108
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-drawer.mjs","sources":["../../../src/lib/components/drawer/drawer.component.ts","../../../src/lib/components/drawer/drawer.component.html","../../../src/lib/components/drawer/ids-group-ltd-ids-design-system-components-drawer.ts"],"sourcesContent":["import {\n Component,\n type OnDestroy,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\nimport type { DrawerPlacement } from './drawer.types';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-drawer',\n standalone: true,\n imports: [IconComponent, A11yModule],\n templateUrl: './drawer.component.html',\n styleUrl: './drawer.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // Keeps a static `title` attribute from becoming a native tooltip on the host.\n host: {\n '[attr.title]': 'null',\n '(document:keydown.escape)': 'onEscape()',\n },\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n})\nexport class DrawerComponent implements OnDestroy {\n private readonly scrollLock = inject(BodyScrollLockService);\n protected readonly intl = inject(DS_INTL);\n protected readonly preview = inject(DsStaticPreview);\n\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Panel size. */\n readonly size = input<DsSize>('md');\n /** Edge the panel slides in from. */\n readonly placement = input<DrawerPlacement>('right');\n /** Drawer title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Fires once the close (slide-out) animation finishes. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-drawer-title-${++nextId}`;\n protected readonly rendered = signal(false);\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n protected readonly classes = computed(() => {\n const parts = ['drawer', this.placement(), this.size()];\n\n return parts.join(' ');\n });\n\n constructor() {\n effect(() => {\n if (this.preview.staticPreview()) {\n return;\n }\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n } else if (this.wasOpen) {\n this.closing.set(true);\n // animationend is never delivered on a backgrounded tab (Chrome freezes CSS\n // animations) or for a 0s reduced-motion leave; this timer is the teardown.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted, so stacked overlays don't unlock each other.\n effect((onCleanup) => {\n if (this.preview.staticPreview() || !this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected onClose(): void {\n if (this.preview.staticPreview()) {\n return;\n }\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // Panel's OWN animationend only; matching the keyframes name would make the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected onEscape(): void {\n if (this.open()) {\n this.onClose();\n }\n }\n}\n","@if (rendered() || preview.staticPreview()) {\n <div\n [class]=\"preview.staticPreview() ? 'drawer-static' : 'drawer-root'\"\n [class.closing]=\"closing()\">\n @if (!preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n <div\n class=\"drawer-scrim\"\n [class.closing]=\"closing()\"\n (click)=\"onClose()\">\n </div>\n }\n\n <div\n role=\"dialog\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [class]=\"classes()\"\n [class.closing]=\"closing()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (keydown.escape)=\"onClose()\"\n (animationend)=\"onLeaveEnd($event)\">\n <header class=\"header\">\n <h4\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h4>\n\n <button\n type=\"button\"\n class=\"close\"\n [attr.aria-label]=\"intl().dialog.close\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\" />\n </button>\n </header>\n\n <div class=\"body\">\n <ng-content select=\"[drawer-body], [body]\"></ng-content>\n\n <ng-content></ng-content>\n </div>\n\n <div class=\"footer\">\n <ng-content select=\"[drawer-footer], [actions]\"></ng-content>\n </div>\n </div>\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAoBA,IAAI,MAAM,GAAG,CAAC;MAgBD,eAAe,CAAA;AACT,IAAA,UAAU,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACxC,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;AACtB,IAAA,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC;;AAG3C,IAAA,IAAI,GAAG,K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AA,MAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,eAAA,EAAA,MAAA,EAAA,CAAA,eAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECpC5B,6qDAqDA,EAAA,MAAA,EAAA,CAAA,ivKAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED5BY,aAAa,oGAAE,UAAU,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,cAAA,EAAA,yBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAWxB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAd3B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,UAAA,EACT,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,EAAE,UAAU,CAAC,EAAA,aAAA,EAGrB,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EAEnC;AACJ,wBAAA,cAAc,EAAE,MAAM;AACtB,wBAAA,2BAA2B,EAAE,YAAY;AAC1C,qBAAA,EAAA,cAAA,EACe,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC,EAAA,QAAA,EAAA,6qDAAA,EAAA,MAAA,EAAA,CAAA,ivKAAA,CAAA,EAAA;;;AElC7E;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-drawer.mjs","sources":["../../../src/lib/components/drawer/drawer.component.ts","../../../src/lib/components/drawer/drawer.component.html","../../../src/lib/components/drawer/ids-group-ltd-ids-design-system-components-drawer.ts"],"sourcesContent":["import {\n Component,\n type OnDestroy,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\nimport type { DrawerPlacement } from './drawer.types';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-drawer',\n standalone: true,\n imports: [IconComponent, A11yModule],\n templateUrl: './drawer.component.html',\n styleUrl: './drawer.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // Keeps a static `title` attribute from becoming a native tooltip on the host.\n host: {\n '[attr.title]': 'null',\n '(document:keydown.escape)': 'onEscape()',\n },\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n})\nexport class DrawerComponent implements OnDestroy {\n private readonly scrollLock = inject(BodyScrollLockService);\n protected readonly intl = inject(DS_INTL);\n protected readonly preview = inject(DsStaticPreview);\n\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Panel size. */\n readonly size = input<DsSize>('md');\n /** Edge the panel slides in from. */\n readonly placement = input<DrawerPlacement>('right');\n /** Drawer title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Fires once the close (slide-out) animation finishes. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-drawer-title-${++nextId}`;\n protected readonly rendered = signal(false);\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n protected readonly classes = computed(() => {\n const parts = ['drawer', this.placement(), this.size()];\n\n return parts.join(' ');\n });\n\n constructor() {\n effect(() => {\n if (this.preview.staticPreview()) {\n return;\n }\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n } else if (this.wasOpen) {\n this.closing.set(true);\n // animationend is never delivered on a backgrounded tab (Chrome freezes CSS\n // animations) or for a 0s reduced-motion leave; this timer is the teardown.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted, so stacked overlays don't unlock each other.\n effect((onCleanup) => {\n if (this.preview.staticPreview() || !this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected onClose(): void {\n if (this.preview.staticPreview()) {\n return;\n }\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // Panel's OWN animationend only; matching the keyframes name would make the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected onEscape(): void {\n if (this.open()) {\n this.onClose();\n }\n }\n}\n","@if (rendered() || preview.staticPreview()) {\n <div\n [class]=\"preview.staticPreview() ? 'drawer-static' : 'drawer-root'\"\n [class.closing]=\"closing()\">\n @if (!preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n <div\n class=\"drawer-scrim\"\n [class.closing]=\"closing()\"\n (click)=\"onClose()\">\n </div>\n }\n\n <div\n role=\"dialog\"\n [attr.aria-modal]=\"preview.staticPreview() ? null : 'true'\"\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [class]=\"classes()\"\n [class.closing]=\"closing()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (keydown.escape)=\"onClose()\"\n (animationend)=\"onLeaveEnd($event)\">\n <header class=\"header\">\n <h4\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h4>\n\n <button\n type=\"button\"\n class=\"close\"\n [attr.aria-label]=\"intl().dialog.close\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\" />\n </button>\n </header>\n\n <div class=\"body\">\n <ng-content select=\"[drawer-body], [body]\"></ng-content>\n\n <ng-content></ng-content>\n </div>\n\n <div class=\"footer\">\n <ng-content select=\"[drawer-footer], [actions]\"></ng-content>\n </div>\n </div>\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAoBA,IAAI,MAAM,GAAG,CAAC;MAgBD,eAAe,CAAA;AACT,IAAA,UAAU,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACxC,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;AACtB,IAAA,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC;;AAG3C,IAAA,IAAI,GAAG,KAAK,CAAU,KAAK,2EAAC;;AAE5B,IAAA,IAAI,GAAG,KAAK,CAAS,IAAI,2EAAC;;AAE1B,IAAA,SAAS,GAAG,KAAK,CAAkB,OAAO,gFAAC;;AAE3C,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;;IAEhC,MAAM,GAAG,MAAM,EAAQ;AAEb,IAAA,OAAO,GAAG,CAAA,gBAAA,EAAmB,EAAE,MAAM,EAAE;AACvC,IAAA,QAAQ,GAAG,MAAM,CAAC,KAAK,+EAAC;AACxB,IAAA,OAAO,GAAG,MAAM,CAAC,KAAK,8EAAC;IAClC,OAAO,GAAG,KAAK;IACf,kBAAkB,GAAyC,IAAI;AAEpD,IAAA,OAAO,GAAG,QAAQ,CAAC,MA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AA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAWxB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAd3B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,UAAA,EACT,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,EAAE,UAAU,CAAC,EAAA,aAAA,EAGrB,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EAEnC;AACJ,wBAAA,cAAc,EAAE,MAAM;AACtB,wBAAA,2BAA2B,EAAE,YAAY;AAC1C,qBAAA,EAAA,cAAA,EACe,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC,EAAA,QAAA,EAAA,6qDAAA,EAAA,MAAA,EAAA,CAAA,stKAAA,CAAA,EAAA;;;AElC7E;;AAEG;;;;"}
@@ -110,11 +110,11 @@ class DropzoneComponent {
110
110
  return 'file';
111
111
  }
112
112
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DropzoneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
113
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: DropzoneComponent, isStandalone: true, selector: "ds-dropzone", inputs: { accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { files: "filesChange", filesAdded: "filesAdded", fileRemoved: "fileRemoved" }, ngImport: i0, template: "<label\n [class]=\"classes()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\">\n <input\n type=\"file\"\n class=\"dz-input\"\n [attr.aria-label]=\"intl().dropzone.label\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n (change)=\"onPickerChange($event)\" />\n\n @if (files().length === 0) {\n <ds-icon\n name=\"upload\"\n [size]=\"24\">\n </ds-icon>\n\n <div class=\"title\">\n {{ intl().dropzone.title }}\n </div>\n\n <div class=\"hint\">\n {{ intl().dropzone.hint }}\n </div>\n\n <ng-content select=\"[hint]\"></ng-content>\n } @else {\n <div class=\"file-list\">\n @for (file of files(); track file.id) {\n <div [class]=\"'file ' + file.state\">\n <ds-icon\n class=\"icon\"\n [name]=\"fileIcon(file.state)\"\n [size]=\"20\">\n </ds-icon>\n\n <div class=\"main\">\n <div class=\"name\">\n {{ file.name }}\n </div>\n\n <div class=\"meta\">\n {{ fileMeta(file) }}\n </div>\n\n @if (file.state === 'uploading') {\n <div class=\"progress\">\n <div\n class=\"progress-fill\"\n [style.width.%]=\"file.progress\">\n </div>\n </div>\n }\n </div>\n\n <button\n class=\"remove\"\n type=\"button\"\n [attr.aria-label]=\"intl().dropzone.remove(file.name)\"\n (click)=\"\n onRemove(file); $event.preventDefault(); $event.stopPropagation()\n \">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n </div>\n }\n </div>\n }\n</label>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_dropzone-bg-color: var(--ds-dropzone-bg-color, var(--surface-default));--_dropzone-bg-color-hover: var(--ds-dropzone-bg-color-hover, var(--accent-subtitle));--_dropzone-bg-color-active: var(--ds-dropzone-bg-color-active, var(--accent-subtitle));--_dropzone-border: var(--ds-dropzone-border, var(--border-default));--_dropzone-border-hover: var(--ds-dropzone-border-hover, var(--accent));--_dropzone-border-active: var(--ds-dropzone-border-active, var(--accent));--_dropzone-text-color: var(--ds-dropzone-text-color, var(--text-secondary));--_dropzone-text-color-active: var(--ds-dropzone-text-color-active, var(--accent-strong));--_dropzone-radius: var(--ds-dropzone-radius, var(--ds-radius-panel));--_dropzone-max-width: var(--ds-dropzone-max-width, none);--_dropzone-file-progress: var(--ds-dropzone-file-progress, var(--accent));--_dropzone-file-success: var(--ds-dropzone-file-success, var(--success));--_dropzone-file-error: var(--ds-dropzone-file-error, var(--error));--_dropzone-file-border: var(--ds-dropzone-file-border, var(--border-default));--_dropzone-file-name-color: var(--ds-dropzone-file-name-color, var(--text-primary));--_dropzone-icon-color: var(--ds-dropzone-icon-color, var(--icon-default));display:flex;flex-direction:column;min-width:0}.dz-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.dropzone:has(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@media not (forced-colors:active){.dropzone .dz-input:where(:focus-visible){outline:none}}.dropzone{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);border:var(--border-width-strong) dashed var(--_dropzone-border);border-radius:var(--_dropzone-radius);padding:var(--space-6);text-align:center;background-color:var(--_dropzone-bg-color);cursor:pointer;min-height:160px;transition:border-color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.dropzone:hover{border-color:var(--_dropzone-border-hover);background-color:var(--_dropzone-bg-color-hover)}.dropzone.active{border-color:var(--_dropzone-border-active);background-color:var(--_dropzone-bg-color-active)}.dropzone.has-files{align-items:stretch;text-align:left;min-height:0}.dropzone.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed;pointer-events:none}.dropzone{max-width:var(--_dropzone-max-width)}.dropzone .title{font:var(--font-weight-bold) var(--font-size-m)/var(--line-height-snug) var(--font-heading);margin:0 0 var(--space-1)}.dropzone .hint{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-text-color)}.dropzone [hint]{margin:var(--space-3) calc(var(--space-6) * -1) 0;padding:var(--space-3) var(--space-6) 0;border-top:var(--border-width-default) solid var(--border-subtitle);align-self:stretch;text-align:center;font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary);letter-spacing:var(--letter-spacing-wide)}.dropzone .file-list{width:100%;margin-top:var(--space-4);display:grid;gap:var(--space-2)}.dropzone .file{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3);border:var(--border-width-default) solid var(--_dropzone-file-border);border-radius:var(--radius-md);background:var(--surface-default)}.dropzone .file .icon{flex-shrink:0;color:var(--_dropzone-icon-color)}.dropzone .file .main{flex:1;min-width:0}.dropzone .file .name{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-file-name-color)}.dropzone .file .meta{font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary)}.dropzone .file .progress{height:var(--border-width-strong);background:var(--surface-secondary);border-radius:var(--radius-pill);margin-top:var(--space-1)}.dropzone .file .progress-fill{height:100%;background:var(--_dropzone-file-progress);border-radius:var(--radius-pill);transition:width var(--duration-base) var(--ease-standard)}.dropzone .file .remove{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.dropzone .file .remove:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropzone .file .remove{position:relative}.dropzone .file .remove:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.dropzone .file .remove:focus-visible{outline-style:none}.dropzone .file .remove:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.dropzone .file .remove{color:var(--icon-default);transition:color var(--duration-fast) var(--ease-standard)}.dropzone .file .remove:hover{color:var(--icon-strong)}.dropzone .file.uploading .icon{color:var(--_dropzone-file-progress)}.dropzone .file.success{border-color:var(--_dropzone-file-success)}.dropzone .file.success .icon{color:var(--_dropzone-file-success)}.dropzone .file.error{border-color:var(--_dropzone-file-error)}.dropzone .file.error .icon{color:var(--_dropzone-file-error)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
113
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: DropzoneComponent, isStandalone: true, selector: "ds-dropzone", inputs: { accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { files: "filesChange", filesAdded: "filesAdded", fileRemoved: "fileRemoved" }, ngImport: i0, template: "<label\n [class]=\"classes()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\">\n <input\n type=\"file\"\n class=\"dz-input\"\n [attr.aria-label]=\"intl().dropzone.label\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n (change)=\"onPickerChange($event)\" />\n\n @if (files().length === 0) {\n <ds-icon\n name=\"upload\"\n [size]=\"24\">\n </ds-icon>\n\n <div class=\"title\">\n {{ intl().dropzone.title }}\n </div>\n\n <div class=\"hint\">\n {{ intl().dropzone.hint }}\n </div>\n\n <ng-content select=\"[hint]\"></ng-content>\n } @else {\n <div class=\"file-list\">\n @for (file of files(); track file.id) {\n <div [class]=\"'file ' + file.state\">\n <ds-icon\n class=\"icon\"\n [name]=\"fileIcon(file.state)\"\n [size]=\"20\">\n </ds-icon>\n\n <div class=\"main\">\n <div class=\"name\">\n {{ file.name }}\n </div>\n\n <div class=\"meta\">\n {{ fileMeta(file) }}\n </div>\n\n @if (file.state === 'uploading') {\n <div class=\"progress\">\n <div\n class=\"progress-fill\"\n [style.width.%]=\"file.progress\">\n </div>\n </div>\n }\n </div>\n\n <button\n class=\"remove\"\n type=\"button\"\n [attr.aria-label]=\"intl().dropzone.remove(file.name)\"\n (click)=\"\n onRemove(file); $event.preventDefault(); $event.stopPropagation()\n \">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n </div>\n }\n </div>\n }\n</label>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_dropzone-bg-color: var(--ds-dropzone-bg-color, var(--surface-default));--_dropzone-bg-color-hover: var(--ds-dropzone-bg-color-hover, var(--accent-subtitle));--_dropzone-bg-color-active: var(--ds-dropzone-bg-color-active, var(--accent-subtitle));--_dropzone-border: var(--ds-dropzone-border, var(--border-default));--_dropzone-border-hover: var(--ds-dropzone-border-hover, var(--accent));--_dropzone-border-active: var(--ds-dropzone-border-active, var(--accent));--_dropzone-text-color: var(--ds-dropzone-text-color, var(--text-secondary));--_dropzone-text-color-active: var(--ds-dropzone-text-color-active, var(--accent-strong));--_dropzone-radius: var(--ds-dropzone-radius, var(--ds-radius-panel));--_dropzone-max-width: var(--ds-dropzone-max-width, none);--_dropzone-file-progress: var(--ds-dropzone-file-progress, var(--accent));--_dropzone-file-success: var(--ds-dropzone-file-success, var(--success));--_dropzone-file-error: var(--ds-dropzone-file-error, var(--error));--_dropzone-file-border: var(--ds-dropzone-file-border, var(--border-default));--_dropzone-file-name-color: var(--ds-dropzone-file-name-color, var(--text-primary));--_dropzone-icon-color: var(--ds-dropzone-icon-color, var(--icon-default));display:flex;flex-direction:column;min-width:0}.dz-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.dropzone:has(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@media not (forced-colors:active){.dropzone .dz-input:where(:focus-visible){outline:none}}.dropzone{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);border:var(--border-width-strong) dashed var(--_dropzone-border);border-radius:var(--_dropzone-radius);padding:var(--space-6);text-align:center;background-color:var(--_dropzone-bg-color);cursor:pointer;min-height:160px;transition:border-color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.dropzone:hover{border-color:var(--_dropzone-border-hover);background-color:var(--_dropzone-bg-color-hover)}.dropzone.active{border-color:var(--_dropzone-border-active);background-color:var(--_dropzone-bg-color-active)}.dropzone.has-files{align-items:stretch;text-align:left;min-height:0}.dropzone.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed;pointer-events:none}.dropzone{max-width:var(--_dropzone-max-width)}.dropzone .title{font:var(--font-weight-bold) var(--font-size-m)/var(--line-height-snug) var(--font-heading);margin:0 0 var(--space-1)}.dropzone .hint{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-text-color)}.dropzone [hint]{margin:var(--space-3) calc(var(--space-6) * -1) 0;padding:var(--space-3) var(--space-6) 0;border-top:var(--border-width-default) solid var(--border-subtitle);align-self:stretch;text-align:center;font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary);letter-spacing:var(--letter-spacing-wide)}.dropzone .file-list{width:100%;margin-top:var(--space-4);display:grid;gap:var(--space-2)}.dropzone .file{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3);border:var(--border-width-default) solid var(--_dropzone-file-border);border-radius:var(--radius-md);background:var(--surface-default)}.dropzone .file .icon{flex-shrink:0;color:var(--_dropzone-icon-color)}.dropzone .file .main{flex:1;min-width:0}.dropzone .file .name{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-file-name-color)}.dropzone .file .meta{font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary)}.dropzone .file .progress{height:var(--border-width-strong);background:var(--surface-secondary);border-radius:var(--radius-pill);margin-top:var(--space-1)}.dropzone .file .progress-fill{height:100%;background:var(--_dropzone-file-progress);border-radius:var(--radius-pill);transition:width var(--duration-base) var(--ease-standard)}.dropzone .file .remove{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.dropzone .file .remove:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropzone .file .remove{position:relative}.dropzone .file .remove:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.dropzone .file .remove:focus-visible{outline-style:none}.dropzone .file .remove:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.dropzone .file .remove{color:var(--icon-default);transition:color var(--duration-fast) var(--ease-standard)}.dropzone .file .remove:hover{color:var(--icon-strong)}.dropzone .file.uploading .icon{color:var(--_dropzone-file-progress)}.dropzone .file.success{border-color:var(--_dropzone-file-success)}.dropzone .file.success .icon{color:var(--_dropzone-file-success)}.dropzone .file.error{border-color:var(--_dropzone-file-error)}.dropzone .file.error .icon{color:var(--_dropzone-file-error)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
114
114
  }
115
115
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DropzoneComponent, decorators: [{
116
116
  type: Component,
117
- args: [{ selector: 'ds-dropzone', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<label\n [class]=\"classes()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\">\n <input\n type=\"file\"\n class=\"dz-input\"\n [attr.aria-label]=\"intl().dropzone.label\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n (change)=\"onPickerChange($event)\" />\n\n @if (files().length === 0) {\n <ds-icon\n name=\"upload\"\n [size]=\"24\">\n </ds-icon>\n\n <div class=\"title\">\n {{ intl().dropzone.title }}\n </div>\n\n <div class=\"hint\">\n {{ intl().dropzone.hint }}\n </div>\n\n <ng-content select=\"[hint]\"></ng-content>\n } @else {\n <div class=\"file-list\">\n @for (file of files(); track file.id) {\n <div [class]=\"'file ' + file.state\">\n <ds-icon\n class=\"icon\"\n [name]=\"fileIcon(file.state)\"\n [size]=\"20\">\n </ds-icon>\n\n <div class=\"main\">\n <div class=\"name\">\n {{ file.name }}\n </div>\n\n <div class=\"meta\">\n {{ fileMeta(file) }}\n </div>\n\n @if (file.state === 'uploading') {\n <div class=\"progress\">\n <div\n class=\"progress-fill\"\n [style.width.%]=\"file.progress\">\n </div>\n </div>\n }\n </div>\n\n <button\n class=\"remove\"\n type=\"button\"\n [attr.aria-label]=\"intl().dropzone.remove(file.name)\"\n (click)=\"\n onRemove(file); $event.preventDefault(); $event.stopPropagation()\n \">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n </div>\n }\n </div>\n }\n</label>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_dropzone-bg-color: var(--ds-dropzone-bg-color, var(--surface-default));--_dropzone-bg-color-hover: var(--ds-dropzone-bg-color-hover, var(--accent-subtitle));--_dropzone-bg-color-active: var(--ds-dropzone-bg-color-active, var(--accent-subtitle));--_dropzone-border: var(--ds-dropzone-border, var(--border-default));--_dropzone-border-hover: var(--ds-dropzone-border-hover, var(--accent));--_dropzone-border-active: var(--ds-dropzone-border-active, var(--accent));--_dropzone-text-color: var(--ds-dropzone-text-color, var(--text-secondary));--_dropzone-text-color-active: var(--ds-dropzone-text-color-active, var(--accent-strong));--_dropzone-radius: var(--ds-dropzone-radius, var(--ds-radius-panel));--_dropzone-max-width: var(--ds-dropzone-max-width, none);--_dropzone-file-progress: var(--ds-dropzone-file-progress, var(--accent));--_dropzone-file-success: var(--ds-dropzone-file-success, var(--success));--_dropzone-file-error: var(--ds-dropzone-file-error, var(--error));--_dropzone-file-border: var(--ds-dropzone-file-border, var(--border-default));--_dropzone-file-name-color: var(--ds-dropzone-file-name-color, var(--text-primary));--_dropzone-icon-color: var(--ds-dropzone-icon-color, var(--icon-default));display:flex;flex-direction:column;min-width:0}.dz-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.dropzone:has(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@media not (forced-colors:active){.dropzone .dz-input:where(:focus-visible){outline:none}}.dropzone{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);border:var(--border-width-strong) dashed var(--_dropzone-border);border-radius:var(--_dropzone-radius);padding:var(--space-6);text-align:center;background-color:var(--_dropzone-bg-color);cursor:pointer;min-height:160px;transition:border-color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.dropzone:hover{border-color:var(--_dropzone-border-hover);background-color:var(--_dropzone-bg-color-hover)}.dropzone.active{border-color:var(--_dropzone-border-active);background-color:var(--_dropzone-bg-color-active)}.dropzone.has-files{align-items:stretch;text-align:left;min-height:0}.dropzone.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed;pointer-events:none}.dropzone{max-width:var(--_dropzone-max-width)}.dropzone .title{font:var(--font-weight-bold) var(--font-size-m)/var(--line-height-snug) var(--font-heading);margin:0 0 var(--space-1)}.dropzone .hint{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-text-color)}.dropzone [hint]{margin:var(--space-3) calc(var(--space-6) * -1) 0;padding:var(--space-3) var(--space-6) 0;border-top:var(--border-width-default) solid var(--border-subtitle);align-self:stretch;text-align:center;font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary);letter-spacing:var(--letter-spacing-wide)}.dropzone .file-list{width:100%;margin-top:var(--space-4);display:grid;gap:var(--space-2)}.dropzone .file{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3);border:var(--border-width-default) solid var(--_dropzone-file-border);border-radius:var(--radius-md);background:var(--surface-default)}.dropzone .file .icon{flex-shrink:0;color:var(--_dropzone-icon-color)}.dropzone .file .main{flex:1;min-width:0}.dropzone .file .name{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-file-name-color)}.dropzone .file .meta{font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary)}.dropzone .file .progress{height:var(--border-width-strong);background:var(--surface-secondary);border-radius:var(--radius-pill);margin-top:var(--space-1)}.dropzone .file .progress-fill{height:100%;background:var(--_dropzone-file-progress);border-radius:var(--radius-pill);transition:width var(--duration-base) var(--ease-standard)}.dropzone .file .remove{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.dropzone .file .remove:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropzone .file .remove{position:relative}.dropzone .file .remove:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.dropzone .file .remove:focus-visible{outline-style:none}.dropzone .file .remove:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.dropzone .file .remove{color:var(--icon-default);transition:color var(--duration-fast) var(--ease-standard)}.dropzone .file .remove:hover{color:var(--icon-strong)}.dropzone .file.uploading .icon{color:var(--_dropzone-file-progress)}.dropzone .file.success{border-color:var(--_dropzone-file-success)}.dropzone .file.success .icon{color:var(--_dropzone-file-success)}.dropzone .file.error{border-color:var(--_dropzone-file-error)}.dropzone .file.error .icon{color:var(--_dropzone-file-error)}\n"] }]
117
+ args: [{ selector: 'ds-dropzone', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<label\n [class]=\"classes()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\">\n <input\n type=\"file\"\n class=\"dz-input\"\n [attr.aria-label]=\"intl().dropzone.label\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n (change)=\"onPickerChange($event)\" />\n\n @if (files().length === 0) {\n <ds-icon\n name=\"upload\"\n [size]=\"24\">\n </ds-icon>\n\n <div class=\"title\">\n {{ intl().dropzone.title }}\n </div>\n\n <div class=\"hint\">\n {{ intl().dropzone.hint }}\n </div>\n\n <ng-content select=\"[hint]\"></ng-content>\n } @else {\n <div class=\"file-list\">\n @for (file of files(); track file.id) {\n <div [class]=\"'file ' + file.state\">\n <ds-icon\n class=\"icon\"\n [name]=\"fileIcon(file.state)\"\n [size]=\"20\">\n </ds-icon>\n\n <div class=\"main\">\n <div class=\"name\">\n {{ file.name }}\n </div>\n\n <div class=\"meta\">\n {{ fileMeta(file) }}\n </div>\n\n @if (file.state === 'uploading') {\n <div class=\"progress\">\n <div\n class=\"progress-fill\"\n [style.width.%]=\"file.progress\">\n </div>\n </div>\n }\n </div>\n\n <button\n class=\"remove\"\n type=\"button\"\n [attr.aria-label]=\"intl().dropzone.remove(file.name)\"\n (click)=\"\n onRemove(file); $event.preventDefault(); $event.stopPropagation()\n \">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n </div>\n }\n </div>\n }\n</label>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_dropzone-bg-color: var(--ds-dropzone-bg-color, var(--surface-default));--_dropzone-bg-color-hover: var(--ds-dropzone-bg-color-hover, var(--accent-subtitle));--_dropzone-bg-color-active: var(--ds-dropzone-bg-color-active, var(--accent-subtitle));--_dropzone-border: var(--ds-dropzone-border, var(--border-default));--_dropzone-border-hover: var(--ds-dropzone-border-hover, var(--accent));--_dropzone-border-active: var(--ds-dropzone-border-active, var(--accent));--_dropzone-text-color: var(--ds-dropzone-text-color, var(--text-secondary));--_dropzone-text-color-active: var(--ds-dropzone-text-color-active, var(--accent-strong));--_dropzone-radius: var(--ds-dropzone-radius, var(--ds-radius-panel));--_dropzone-max-width: var(--ds-dropzone-max-width, none);--_dropzone-file-progress: var(--ds-dropzone-file-progress, var(--accent));--_dropzone-file-success: var(--ds-dropzone-file-success, var(--success));--_dropzone-file-error: var(--ds-dropzone-file-error, var(--error));--_dropzone-file-border: var(--ds-dropzone-file-border, var(--border-default));--_dropzone-file-name-color: var(--ds-dropzone-file-name-color, var(--text-primary));--_dropzone-icon-color: var(--ds-dropzone-icon-color, var(--icon-default));display:flex;flex-direction:column;min-width:0}.dz-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.dropzone:has(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@media not (forced-colors:active){.dropzone .dz-input:where(:focus-visible){outline:none}}.dropzone{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);border:var(--border-width-strong) dashed var(--_dropzone-border);border-radius:var(--_dropzone-radius);padding:var(--space-6);text-align:center;background-color:var(--_dropzone-bg-color);cursor:pointer;min-height:160px;transition:border-color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.dropzone:hover{border-color:var(--_dropzone-border-hover);background-color:var(--_dropzone-bg-color-hover)}.dropzone.active{border-color:var(--_dropzone-border-active);background-color:var(--_dropzone-bg-color-active)}.dropzone.has-files{align-items:stretch;text-align:left;min-height:0}.dropzone.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed;pointer-events:none}.dropzone{max-width:var(--_dropzone-max-width)}.dropzone .title{font:var(--font-weight-bold) var(--font-size-m)/var(--line-height-snug) var(--font-heading);margin:0 0 var(--space-1)}.dropzone .hint{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-text-color)}.dropzone [hint]{margin:var(--space-3) calc(var(--space-6) * -1) 0;padding:var(--space-3) var(--space-6) 0;border-top:var(--border-width-default) solid var(--border-subtitle);align-self:stretch;text-align:center;font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary);letter-spacing:var(--letter-spacing-wide)}.dropzone .file-list{width:100%;margin-top:var(--space-4);display:grid;gap:var(--space-2)}.dropzone .file{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3);border:var(--border-width-default) solid var(--_dropzone-file-border);border-radius:var(--radius-md);background:var(--surface-default)}.dropzone .file .icon{flex-shrink:0;color:var(--_dropzone-icon-color)}.dropzone .file .main{flex:1;min-width:0}.dropzone .file .name{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-file-name-color)}.dropzone .file .meta{font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary)}.dropzone .file .progress{height:var(--border-width-strong);background:var(--surface-secondary);border-radius:var(--radius-pill);margin-top:var(--space-1)}.dropzone .file .progress-fill{height:100%;background:var(--_dropzone-file-progress);border-radius:var(--radius-pill);transition:width var(--duration-base) var(--ease-standard)}.dropzone .file .remove{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.dropzone .file .remove:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropzone .file .remove{position:relative}.dropzone .file .remove:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.dropzone .file .remove:focus-visible{outline-style:none}.dropzone .file .remove:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.dropzone .file .remove{color:var(--icon-default);transition:color var(--duration-fast) var(--ease-standard)}.dropzone .file .remove:hover{color:var(--icon-strong)}.dropzone .file.uploading .icon{color:var(--_dropzone-file-progress)}.dropzone .file.success{border-color:var(--_dropzone-file-success)}.dropzone .file.success .icon{color:var(--_dropzone-file-success)}.dropzone .file.error{border-color:var(--_dropzone-file-error)}.dropzone .file.error .icon{color:var(--_dropzone-file-error)}\n"] }]
118
118
  }], propDecorators: { accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], files: [{ type: i0.Input, args: [{ isSignal: true, alias: "files", required: false }] }, { type: i0.Output, args: ["filesChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], filesAdded: [{ type: i0.Output, args: ["filesAdded"] }], fileRemoved: [{ type: i0.Output, args: ["fileRemoved"] }] } });
119
119
 
120
120
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-dropzone.mjs","sources":["../../../src/lib/components/dropzone/dropzone.files.ts","../../../src/lib/components/dropzone/dropzone.component.ts","../../../src/lib/components/dropzone/dropzone.component.html","../../../src/lib/components/dropzone/ids-group-ltd-ids-design-system-components-dropzone.ts"],"sourcesContent":["/** The native `multiple` attribute constrains the PICKER and nothing else: a drag of several\n * files reaches the element whatever it is set to, so the count is enforced here instead.\n *\n * @internal */\nexport function filesToAdd(\n list: readonly File[],\n multiple: boolean,\n): readonly File[] {\n if (!list.length) {\n return [];\n }\n\n return multiple ? [...list] : list.slice(0, 1);\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL, injectDsLocale } from '@ids-group-ltd/ids-design-system/core';\nimport type { DropzoneFile } from './dropzone.types';\nimport { filesToAdd } from './dropzone.files';\n\n@Component({\n selector: 'ds-dropzone',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './dropzone.component.html',\n styleUrl: './dropzone.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class DropzoneComponent {\n protected readonly intl = inject(DS_INTL);\n private readonly sizeFormat = new Intl.NumberFormat(injectDsLocale(), {\n minimumFractionDigits: 1,\n maximumFractionDigits: 1,\n });\n /** Native `accept`: comma-separated MIME types or extensions. */\n readonly accept = input<string>('');\n /** Allows picking more than one file at once. */\n readonly multiple = input(false, { transform: booleanAttribute });\n /** Files shown in the list; the consumer owns upload state and progress. */\n readonly files = model<DropzoneFile[]>([]);\n /** Blocks all file picking. */\n readonly disabled = input(false, { transform: booleanAttribute });\n protected readonly dragOver = signal<boolean>(false);\n\n /** Fires with the raw files picked or dropped; the consumer adds them to `files`. */\n readonly filesAdded = output<File[]>();\n /** Fires when the user removes a file; the consumer removes the matching entry from `files`. */\n readonly fileRemoved = output<DropzoneFile>();\n\n protected readonly classes = computed(() => {\n const parts = ['dropzone'];\n if (this.dragOver()) {\n parts.push('active');\n }\n if (this.files().length > 0) {\n parts.push('has-files');\n }\n if (this.disabled()) {\n parts.push('disabled');\n }\n\n return parts.join(' ');\n });\n\n protected onDragOver(event: DragEvent): void {\n if (this.disabled()) {\n return;\n }\n event.preventDefault();\n this.dragOver.set(true);\n }\n\n protected onDragLeave(): void {\n this.dragOver.set(false);\n }\n\n protected onDrop(event: DragEvent): void {\n event.preventDefault();\n this.dragOver.set(false);\n if (this.disabled()) {\n return;\n }\n this.emitPicked(event.dataTransfer?.files);\n }\n\n protected onPickerChange(event: Event): void {\n if (this.disabled()) {\n return;\n }\n const picker = event.target as HTMLInputElement;\n this.emitPicked(picker.files);\n picker.value = '';\n }\n\n private emitPicked(list: FileList | null | undefined): void {\n const picked = filesToAdd(list ? Array.from(list) : [], this.multiple());\n if (picked.length) {\n this.filesAdded.emit([...picked]);\n }\n }\n\n protected onRemove(file: DropzoneFile): void {\n this.fileRemoved.emit(file);\n }\n\n protected fileMeta(file: DropzoneFile): string {\n const size = this.formatSize(file.size);\n if (file.message) {\n return `${size} · ${file.message}`;\n }\n if (file.state === 'queued') {\n return size;\n }\n\n return `${size} · ${this.intl().dropzone[file.state]}`;\n }\n\n protected formatSize(bytes: number): string {\n if (bytes < 1024) {\n return `${bytes} B`;\n }\n if (bytes < 1024 * 1024) {\n return `${this.sizeFormat.format(bytes / 1024)} KB`;\n }\n\n return `${this.sizeFormat.format(bytes / 1024 / 1024)} MB`;\n }\n\n protected fileIcon(state: DropzoneFile['state']): 'file' | 'check' | 'error' {\n if (state === 'success') {\n return 'check';\n }\n if (state === 'error') {\n return 'error';\n }\n\n return 'file';\n }\n}\n","<label\n [class]=\"classes()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\">\n <input\n type=\"file\"\n class=\"dz-input\"\n [attr.aria-label]=\"intl().dropzone.label\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n (change)=\"onPickerChange($event)\" />\n\n @if (files().length === 0) {\n <ds-icon\n name=\"upload\"\n [size]=\"24\">\n </ds-icon>\n\n <div class=\"title\">\n {{ intl().dropzone.title }}\n </div>\n\n <div class=\"hint\">\n {{ intl().dropzone.hint }}\n </div>\n\n <ng-content select=\"[hint]\"></ng-content>\n } @else {\n <div class=\"file-list\">\n @for (file of files(); track file.id) {\n <div [class]=\"'file ' + file.state\">\n <ds-icon\n class=\"icon\"\n [name]=\"fileIcon(file.state)\"\n [size]=\"20\">\n </ds-icon>\n\n <div class=\"main\">\n <div class=\"name\">\n {{ file.name }}\n </div>\n\n <div class=\"meta\">\n {{ fileMeta(file) }}\n </div>\n\n @if (file.state === 'uploading') {\n <div class=\"progress\">\n <div\n class=\"progress-fill\"\n [style.width.%]=\"file.progress\">\n </div>\n </div>\n }\n </div>\n\n <button\n class=\"remove\"\n type=\"button\"\n [attr.aria-label]=\"intl().dropzone.remove(file.name)\"\n (click)=\"\n onRemove(file); $event.preventDefault(); $event.stopPropagation()\n \">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n </div>\n }\n </div>\n }\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;;;AAGgB;AACV,SAAU,UAAU,CACxB,IAAqB,EACrB,QAAiB,EAAA;AAEjB,IAAA,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;AAChB,QAAA,OAAO,EAAE;IACX;AAEA,IAAA,OAAO,QAAQ,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;AAChD;;MCWa,iBAAiB,CAAA;AACT,IAAA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A,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,KAAA,EAAA,aAAA,EAAA,UAAA,EAAA,YAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECxB9B,u7DA4EA,EAAA,MAAA,EAAA,CAAA,utMAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDzDY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAKZ,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAR7B,SAAS;+BACE,aAAa,EAAA,UAAA,EACX,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,aAAA,EAGT,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,u7DAAA,EAAA,MAAA,EAAA,CAAA,utMAAA,CAAA,EAAA;;;AEtB3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-dropzone.mjs","sources":["../../../src/lib/components/dropzone/dropzone.files.ts","../../../src/lib/components/dropzone/dropzone.component.ts","../../../src/lib/components/dropzone/dropzone.component.html","../../../src/lib/components/dropzone/ids-group-ltd-ids-design-system-components-dropzone.ts"],"sourcesContent":["/** The native `multiple` attribute constrains the PICKER and nothing else: a drag of several\n * files reaches the element whatever it is set to, so the count is enforced here instead.\n *\n * @internal */\nexport function filesToAdd(\n list: readonly File[],\n multiple: boolean,\n): readonly File[] {\n if (!list.length) {\n return [];\n }\n\n return multiple ? [...list] : list.slice(0, 1);\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL, injectDsLocale } from '@ids-group-ltd/ids-design-system/core';\nimport type { DropzoneFile } from './dropzone.types';\nimport { filesToAdd } from './dropzone.files';\n\n@Component({\n selector: 'ds-dropzone',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './dropzone.component.html',\n styleUrl: './dropzone.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class DropzoneComponent {\n protected readonly intl = inject(DS_INTL);\n private readonly sizeFormat = new Intl.NumberFormat(injectDsLocale(), {\n minimumFractionDigits: 1,\n maximumFractionDigits: 1,\n });\n /** Native `accept`: comma-separated MIME types or extensions. */\n readonly accept = input<string>('');\n /** Allows picking more than one file at once. */\n readonly multiple = input(false, { transform: booleanAttribute });\n /** Files shown in the list; the consumer owns upload state and progress. */\n readonly files = model<DropzoneFile[]>([]);\n /** Blocks all file picking. */\n readonly disabled = input(false, { transform: booleanAttribute });\n protected readonly dragOver = signal<boolean>(false);\n\n /** Fires with the raw files picked or dropped; the consumer adds them to `files`. */\n readonly filesAdded = output<File[]>();\n /** Fires when the user removes a file; the consumer removes the matching entry from `files`. */\n readonly fileRemoved = output<DropzoneFile>();\n\n protected readonly classes = computed(() => {\n const parts = ['dropzone'];\n if (this.dragOver()) {\n parts.push('active');\n }\n if (this.files().length > 0) {\n parts.push('has-files');\n }\n if (this.disabled()) {\n parts.push('disabled');\n }\n\n return parts.join(' ');\n });\n\n protected onDragOver(event: DragEvent): void {\n if (this.disabled()) {\n return;\n }\n event.preventDefault();\n this.dragOver.set(true);\n }\n\n protected onDragLeave(): void {\n this.dragOver.set(false);\n }\n\n protected onDrop(event: DragEvent): void {\n event.preventDefault();\n this.dragOver.set(false);\n if (this.disabled()) {\n return;\n }\n this.emitPicked(event.dataTransfer?.files);\n }\n\n protected onPickerChange(event: Event): void {\n if (this.disabled()) {\n return;\n }\n const picker = event.target as HTMLInputElement;\n this.emitPicked(picker.files);\n picker.value = '';\n }\n\n private emitPicked(list: FileList | null | undefined): void {\n const picked = filesToAdd(list ? Array.from(list) : [], this.multiple());\n if (picked.length) {\n this.filesAdded.emit([...picked]);\n }\n }\n\n protected onRemove(file: DropzoneFile): void {\n this.fileRemoved.emit(file);\n }\n\n protected fileMeta(file: DropzoneFile): string {\n const size = this.formatSize(file.size);\n if (file.message) {\n return `${size} · ${file.message}`;\n }\n if (file.state === 'queued') {\n return size;\n }\n\n return `${size} · ${this.intl().dropzone[file.state]}`;\n }\n\n protected formatSize(bytes: number): string {\n if (bytes < 1024) {\n return `${bytes} B`;\n }\n if (bytes < 1024 * 1024) {\n return `${this.sizeFormat.format(bytes / 1024)} KB`;\n }\n\n return `${this.sizeFormat.format(bytes / 1024 / 1024)} MB`;\n }\n\n protected fileIcon(state: DropzoneFile['state']): 'file' | 'check' | 'error' {\n if (state === 'success') {\n return 'check';\n }\n if (state === 'error') {\n return 'error';\n }\n\n return 'file';\n }\n}\n","<label\n [class]=\"classes()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\">\n <input\n type=\"file\"\n class=\"dz-input\"\n [attr.aria-label]=\"intl().dropzone.label\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n (change)=\"onPickerChange($event)\" />\n\n @if (files().length === 0) {\n <ds-icon\n name=\"upload\"\n [size]=\"24\">\n </ds-icon>\n\n <div class=\"title\">\n {{ intl().dropzone.title }}\n </div>\n\n <div class=\"hint\">\n {{ intl().dropzone.hint }}\n </div>\n\n <ng-content select=\"[hint]\"></ng-content>\n } @else {\n <div class=\"file-list\">\n @for (file of files(); track file.id) {\n <div [class]=\"'file ' + file.state\">\n <ds-icon\n class=\"icon\"\n [name]=\"fileIcon(file.state)\"\n [size]=\"20\">\n </ds-icon>\n\n <div class=\"main\">\n <div class=\"name\">\n {{ file.name }}\n </div>\n\n <div class=\"meta\">\n {{ fileMeta(file) }}\n </div>\n\n @if (file.state === 'uploading') {\n <div class=\"progress\">\n <div\n class=\"progress-fill\"\n [style.width.%]=\"file.progress\">\n </div>\n </div>\n }\n </div>\n\n <button\n class=\"remove\"\n type=\"button\"\n [attr.aria-label]=\"intl().dropzone.remove(file.name)\"\n (click)=\"\n onRemove(file); $event.preventDefault(); $event.stopPropagation()\n \">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n </div>\n }\n </div>\n }\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;;;AAGgB;AACV,SAAU,UAAU,CACxB,IAAqB,EACrB,QAAiB,EAAA;AAEjB,IAAA,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;AAChB,QAAA,OAAO,EAAE;IACX;AAEA,IAAA,OAAO,QAAQ,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;AAChD;;MCWa,iBAAiB,CAAA;AACT,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;IACxB,UAAU,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,EAAE;AACpE,QAAA,qBAAqB,EAAE,CAAC;AACxB,QAAA,qBAAqB,EAAE,CAAC;AACzB,KAAA,CAAC;;AAEO,IAAA,MAAM,GAAG,KAAK,CAAS,EAAE,6EAAC;;IAE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