@cloudscape-design/components-themeable 3.0.1316 → 3.0.1318

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 (666) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  3. package/lib/internal/template/action-card/interfaces.d.ts +3 -3
  4. package/lib/internal/template/action-card/interfaces.d.ts.map +1 -1
  5. package/lib/internal/template/action-card/interfaces.js.map +1 -1
  6. package/lib/internal/template/alert/interfaces.d.ts +3 -3
  7. package/lib/internal/template/alert/interfaces.d.ts.map +1 -1
  8. package/lib/internal/template/alert/interfaces.js.map +1 -1
  9. package/lib/internal/template/anchor-navigation/interfaces.d.ts +2 -2
  10. package/lib/internal/template/anchor-navigation/interfaces.d.ts.map +1 -1
  11. package/lib/internal/template/anchor-navigation/interfaces.js.map +1 -1
  12. package/lib/internal/template/annotation-context/interfaces.d.ts +1 -1
  13. package/lib/internal/template/annotation-context/interfaces.d.ts.map +1 -1
  14. package/lib/internal/template/annotation-context/interfaces.js.map +1 -1
  15. package/lib/internal/template/app-layout/classic.d.ts +1 -1
  16. package/lib/internal/template/app-layout/drawer/overflow-menu.d.ts +1 -1
  17. package/lib/internal/template/app-layout/drawer/overflow-menu.d.ts.map +1 -1
  18. package/lib/internal/template/app-layout/drawer/overflow-menu.js.map +1 -1
  19. package/lib/internal/template/app-layout/index.js.map +1 -1
  20. package/lib/internal/template/app-layout/interfaces.d.ts +3 -3
  21. package/lib/internal/template/app-layout/interfaces.d.ts.map +1 -1
  22. package/lib/internal/template/app-layout/interfaces.js.map +1 -1
  23. package/lib/internal/template/app-layout/internal.d.ts +1 -1
  24. package/lib/internal/template/app-layout/runtime-drawer/index.d.ts +1 -1
  25. package/lib/internal/template/app-layout/runtime-drawer/index.d.ts.map +1 -1
  26. package/lib/internal/template/app-layout/runtime-drawer/index.js.map +1 -1
  27. package/lib/internal/template/app-layout/visual-refresh/index.d.ts +1 -1
  28. package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts +1 -1
  29. package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
  30. package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
  31. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-ai-drawer.d.ts +4 -4
  32. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-bottom-drawers.d.ts +4 -4
  33. package/lib/internal/template/app-layout-toolbar/index.js.map +1 -1
  34. package/lib/internal/template/area-chart/elements/use-highlight-details.d.ts +1 -1
  35. package/lib/internal/template/area-chart/elements/use-highlight-details.d.ts.map +1 -1
  36. package/lib/internal/template/area-chart/elements/use-highlight-details.js.map +1 -1
  37. package/lib/internal/template/area-chart/interfaces.d.ts +1 -1
  38. package/lib/internal/template/area-chart/interfaces.d.ts.map +1 -1
  39. package/lib/internal/template/area-chart/interfaces.js.map +1 -1
  40. package/lib/internal/template/area-chart/model/compute-chart-props.d.ts +2 -2
  41. package/lib/internal/template/area-chart/model/compute-chart-props.d.ts.map +1 -1
  42. package/lib/internal/template/area-chart/model/compute-chart-props.js +2 -0
  43. package/lib/internal/template/area-chart/model/compute-chart-props.js.map +1 -1
  44. package/lib/internal/template/area-chart/model/index.d.ts +1 -1
  45. package/lib/internal/template/area-chart/model/index.d.ts.map +1 -1
  46. package/lib/internal/template/area-chart/model/index.js.map +1 -1
  47. package/lib/internal/template/area-chart/model/use-chart-model.d.ts +1 -1
  48. package/lib/internal/template/area-chart/model/use-chart-model.d.ts.map +1 -1
  49. package/lib/internal/template/area-chart/model/use-chart-model.js.map +1 -1
  50. package/lib/internal/template/area-chart/model/use-filter-props.d.ts +1 -1
  51. package/lib/internal/template/area-chart/model/use-filter-props.d.ts.map +1 -1
  52. package/lib/internal/template/area-chart/model/use-filter-props.js.map +1 -1
  53. package/lib/internal/template/area-chart/model/use-highlight-props.d.ts +1 -1
  54. package/lib/internal/template/area-chart/model/use-highlight-props.d.ts.map +1 -1
  55. package/lib/internal/template/area-chart/model/use-highlight-props.js.map +1 -1
  56. package/lib/internal/template/area-chart/model/utils.d.ts +1 -1
  57. package/lib/internal/template/area-chart/model/utils.d.ts.map +1 -1
  58. package/lib/internal/template/area-chart/model/utils.js.map +1 -1
  59. package/lib/internal/template/attribute-editor/interfaces.d.ts +3 -3
  60. package/lib/internal/template/attribute-editor/interfaces.d.ts.map +1 -1
  61. package/lib/internal/template/attribute-editor/interfaces.js.map +1 -1
  62. package/lib/internal/template/attribute-editor/row.d.ts +2 -2
  63. package/lib/internal/template/attribute-editor/row.d.ts.map +1 -1
  64. package/lib/internal/template/attribute-editor/row.js.map +1 -1
  65. package/lib/internal/template/autosuggest/autosuggest-option.d.ts +1 -1
  66. package/lib/internal/template/autosuggest/autosuggest-option.d.ts.map +1 -1
  67. package/lib/internal/template/autosuggest/autosuggest-option.js.map +1 -1
  68. package/lib/internal/template/autosuggest/interfaces.d.ts +5 -5
  69. package/lib/internal/template/autosuggest/interfaces.d.ts.map +1 -1
  70. package/lib/internal/template/autosuggest/interfaces.js.map +1 -1
  71. package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
  72. package/lib/internal/template/autosuggest/internal.js +1 -1
  73. package/lib/internal/template/autosuggest/internal.js.map +1 -1
  74. package/lib/internal/template/autosuggest/load-more-controller.d.ts +1 -1
  75. package/lib/internal/template/autosuggest/load-more-controller.d.ts.map +1 -1
  76. package/lib/internal/template/autosuggest/load-more-controller.js.map +1 -1
  77. package/lib/internal/template/badge/interfaces.d.ts +2 -2
  78. package/lib/internal/template/badge/interfaces.d.ts.map +1 -1
  79. package/lib/internal/template/badge/interfaces.js.map +1 -1
  80. package/lib/internal/template/bar-chart/interfaces.d.ts +1 -1
  81. package/lib/internal/template/bar-chart/interfaces.d.ts.map +1 -1
  82. package/lib/internal/template/bar-chart/interfaces.js.map +1 -1
  83. package/lib/internal/template/box/interfaces.d.ts +2 -2
  84. package/lib/internal/template/box/interfaces.d.ts.map +1 -1
  85. package/lib/internal/template/box/interfaces.js.map +1 -1
  86. package/lib/internal/template/breadcrumb-group/all-items-dropdown.d.ts +1 -1
  87. package/lib/internal/template/breadcrumb-group/all-items-dropdown.d.ts.map +1 -1
  88. package/lib/internal/template/breadcrumb-group/all-items-dropdown.js.map +1 -1
  89. package/lib/internal/template/breadcrumb-group/interfaces.d.ts +2 -2
  90. package/lib/internal/template/breadcrumb-group/interfaces.d.ts.map +1 -1
  91. package/lib/internal/template/breadcrumb-group/interfaces.js.map +1 -1
  92. package/lib/internal/template/button/interfaces.d.ts +3 -3
  93. package/lib/internal/template/button/interfaces.d.ts.map +1 -1
  94. package/lib/internal/template/button/interfaces.js.map +1 -1
  95. package/lib/internal/template/button-dropdown/interfaces.d.ts +3 -3
  96. package/lib/internal/template/button-dropdown/interfaces.d.ts.map +1 -1
  97. package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
  98. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts +1 -1
  99. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
  100. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.js.map +1 -1
  101. package/lib/internal/template/button-group/file-input-item.d.ts +1 -1
  102. package/lib/internal/template/button-group/file-input-item.d.ts.map +1 -1
  103. package/lib/internal/template/button-group/file-input-item.js.map +1 -1
  104. package/lib/internal/template/button-group/icon-button-item.d.ts +1 -1
  105. package/lib/internal/template/button-group/icon-button-item.d.ts.map +1 -1
  106. package/lib/internal/template/button-group/icon-button-item.js +1 -1
  107. package/lib/internal/template/button-group/icon-button-item.js.map +1 -1
  108. package/lib/internal/template/button-group/icon-toggle-button-item.d.ts +1 -1
  109. package/lib/internal/template/button-group/icon-toggle-button-item.d.ts.map +1 -1
  110. package/lib/internal/template/button-group/icon-toggle-button-item.js.map +1 -1
  111. package/lib/internal/template/button-group/interfaces.d.ts +10 -2
  112. package/lib/internal/template/button-group/interfaces.d.ts.map +1 -1
  113. package/lib/internal/template/button-group/interfaces.js.map +1 -1
  114. package/lib/internal/template/button-group/item-element.d.ts +1 -1
  115. package/lib/internal/template/button-group/item-element.d.ts.map +1 -1
  116. package/lib/internal/template/button-group/item-element.js.map +1 -1
  117. package/lib/internal/template/button-group/menu-dropdown-item.d.ts +1 -1
  118. package/lib/internal/template/button-group/menu-dropdown-item.d.ts.map +1 -1
  119. package/lib/internal/template/button-group/menu-dropdown-item.js.map +1 -1
  120. package/lib/internal/template/calendar/interfaces.d.ts +3 -3
  121. package/lib/internal/template/calendar/interfaces.d.ts.map +1 -1
  122. package/lib/internal/template/calendar/interfaces.js.map +1 -1
  123. package/lib/internal/template/cards/interfaces.d.ts +2 -2
  124. package/lib/internal/template/cards/interfaces.d.ts.map +1 -1
  125. package/lib/internal/template/cards/interfaces.js.map +1 -1
  126. package/lib/internal/template/checkbox/base-checkbox.d.ts +3 -3
  127. package/lib/internal/template/checkbox/base-checkbox.d.ts.map +1 -1
  128. package/lib/internal/template/checkbox/base-checkbox.js.map +1 -1
  129. package/lib/internal/template/checkbox/interfaces.d.ts +2 -2
  130. package/lib/internal/template/checkbox/interfaces.d.ts.map +1 -1
  131. package/lib/internal/template/checkbox/interfaces.js.map +1 -1
  132. package/lib/internal/template/code-editor/error-screen.d.ts +1 -1
  133. package/lib/internal/template/code-editor/error-screen.d.ts.map +1 -1
  134. package/lib/internal/template/code-editor/error-screen.js.map +1 -1
  135. package/lib/internal/template/code-editor/interfaces.d.ts +3 -3
  136. package/lib/internal/template/code-editor/interfaces.d.ts.map +1 -1
  137. package/lib/internal/template/code-editor/interfaces.js.map +1 -1
  138. package/lib/internal/template/code-editor/listeners.d.ts +1 -1
  139. package/lib/internal/template/code-editor/listeners.d.ts.map +1 -1
  140. package/lib/internal/template/code-editor/listeners.js.map +1 -1
  141. package/lib/internal/template/code-editor/preferences-modal.js.map +1 -1
  142. package/lib/internal/template/collection-preferences/interfaces.d.ts +4 -4
  143. package/lib/internal/template/collection-preferences/interfaces.d.ts.map +1 -1
  144. package/lib/internal/template/collection-preferences/interfaces.js.map +1 -1
  145. package/lib/internal/template/column-layout/interfaces.d.ts +1 -1
  146. package/lib/internal/template/column-layout/interfaces.d.ts.map +1 -1
  147. package/lib/internal/template/column-layout/interfaces.js.map +1 -1
  148. package/lib/internal/template/container/interfaces.d.ts +1 -1
  149. package/lib/internal/template/container/interfaces.d.ts.map +1 -1
  150. package/lib/internal/template/container/interfaces.js.map +1 -1
  151. package/lib/internal/template/content-layout/interfaces.d.ts +1 -1
  152. package/lib/internal/template/content-layout/interfaces.d.ts.map +1 -1
  153. package/lib/internal/template/content-layout/interfaces.js.map +1 -1
  154. package/lib/internal/template/contexts/form-field.d.ts +2 -1
  155. package/lib/internal/template/contexts/form-field.d.ts.map +1 -1
  156. package/lib/internal/template/contexts/form-field.js +1 -1
  157. package/lib/internal/template/contexts/form-field.js.map +1 -1
  158. package/lib/internal/template/copy-to-clipboard/interfaces.d.ts +2 -2
  159. package/lib/internal/template/copy-to-clipboard/interfaces.d.ts.map +1 -1
  160. package/lib/internal/template/copy-to-clipboard/interfaces.js.map +1 -1
  161. package/lib/internal/template/date-input/interfaces.d.ts +3 -3
  162. package/lib/internal/template/date-input/interfaces.d.ts.map +1 -1
  163. package/lib/internal/template/date-input/interfaces.js.map +1 -1
  164. package/lib/internal/template/date-input/internal.d.ts.map +1 -1
  165. package/lib/internal/template/date-input/internal.js.map +1 -1
  166. package/lib/internal/template/date-picker/interfaces.d.ts +4 -4
  167. package/lib/internal/template/date-picker/interfaces.d.ts.map +1 -1
  168. package/lib/internal/template/date-picker/interfaces.js.map +1 -1
  169. package/lib/internal/template/date-range-picker/calendar/interfaces.d.ts +1 -1
  170. package/lib/internal/template/date-range-picker/calendar/interfaces.d.ts.map +1 -1
  171. package/lib/internal/template/date-range-picker/calendar/interfaces.js.map +1 -1
  172. package/lib/internal/template/date-range-picker/interfaces.d.ts +4 -4
  173. package/lib/internal/template/date-range-picker/interfaces.d.ts.map +1 -1
  174. package/lib/internal/template/date-range-picker/interfaces.js.map +1 -1
  175. package/lib/internal/template/divider/interfaces.d.ts +2 -2
  176. package/lib/internal/template/divider/interfaces.d.ts.map +1 -1
  177. package/lib/internal/template/divider/interfaces.js.map +1 -1
  178. package/lib/internal/template/drawer/interfaces.d.ts +2 -2
  179. package/lib/internal/template/drawer/interfaces.d.ts.map +1 -1
  180. package/lib/internal/template/drawer/interfaces.js.map +1 -1
  181. package/lib/internal/template/dropdown/interfaces.d.ts +1 -1
  182. package/lib/internal/template/dropdown/interfaces.d.ts.map +1 -1
  183. package/lib/internal/template/dropdown/interfaces.js.map +1 -1
  184. package/lib/internal/template/dropdown/internal.d.ts +1 -1
  185. package/lib/internal/template/dropdown/internal.d.ts.map +1 -1
  186. package/lib/internal/template/dropdown/internal.js.map +1 -1
  187. package/lib/internal/template/error-boundary/interfaces.d.ts +1 -1
  188. package/lib/internal/template/error-boundary/interfaces.d.ts.map +1 -1
  189. package/lib/internal/template/error-boundary/interfaces.js.map +1 -1
  190. package/lib/internal/template/expandable-section/interfaces.d.ts +2 -2
  191. package/lib/internal/template/expandable-section/interfaces.d.ts.map +1 -1
  192. package/lib/internal/template/expandable-section/interfaces.js.map +1 -1
  193. package/lib/internal/template/file-dropzone/interfaces.d.ts +2 -2
  194. package/lib/internal/template/file-dropzone/interfaces.d.ts.map +1 -1
  195. package/lib/internal/template/file-dropzone/interfaces.js.map +1 -1
  196. package/lib/internal/template/file-input/interfaces.d.ts +3 -3
  197. package/lib/internal/template/file-input/interfaces.d.ts.map +1 -1
  198. package/lib/internal/template/file-input/interfaces.js.map +1 -1
  199. package/lib/internal/template/file-token-group/file-token.d.ts +1 -1
  200. package/lib/internal/template/file-token-group/file-token.d.ts.map +1 -1
  201. package/lib/internal/template/file-token-group/file-token.js.map +1 -1
  202. package/lib/internal/template/file-token-group/interfaces.d.ts +2 -2
  203. package/lib/internal/template/file-token-group/interfaces.d.ts.map +1 -1
  204. package/lib/internal/template/file-token-group/interfaces.js.map +1 -1
  205. package/lib/internal/template/file-upload/interfaces.d.ts +3 -3
  206. package/lib/internal/template/file-upload/interfaces.d.ts.map +1 -1
  207. package/lib/internal/template/file-upload/interfaces.js.map +1 -1
  208. package/lib/internal/template/flashbar/common.d.ts +1 -1
  209. package/lib/internal/template/flashbar/interfaces.d.ts +2 -2
  210. package/lib/internal/template/flashbar/interfaces.d.ts.map +1 -1
  211. package/lib/internal/template/flashbar/interfaces.js.map +1 -1
  212. package/lib/internal/template/form/interfaces.d.ts +2 -2
  213. package/lib/internal/template/form/interfaces.d.ts.map +1 -1
  214. package/lib/internal/template/form/interfaces.js.map +1 -1
  215. package/lib/internal/template/form-field/interfaces.d.ts +2 -2
  216. package/lib/internal/template/form-field/interfaces.d.ts.map +1 -1
  217. package/lib/internal/template/form-field/interfaces.js.map +1 -1
  218. package/lib/internal/template/grid/interfaces.d.ts +2 -2
  219. package/lib/internal/template/grid/interfaces.d.ts.map +1 -1
  220. package/lib/internal/template/grid/interfaces.js.map +1 -1
  221. package/lib/internal/template/grid/internal.d.ts +1 -1
  222. package/lib/internal/template/grid/internal.d.ts.map +1 -1
  223. package/lib/internal/template/grid/internal.js.map +1 -1
  224. package/lib/internal/template/header/interfaces.d.ts +1 -1
  225. package/lib/internal/template/header/interfaces.d.ts.map +1 -1
  226. package/lib/internal/template/header/interfaces.js.map +1 -1
  227. package/lib/internal/template/help-panel/interfaces.d.ts +1 -1
  228. package/lib/internal/template/help-panel/interfaces.d.ts.map +1 -1
  229. package/lib/internal/template/help-panel/interfaces.js.map +1 -1
  230. package/lib/internal/template/hotspot/interfaces.d.ts +1 -1
  231. package/lib/internal/template/hotspot/interfaces.d.ts.map +1 -1
  232. package/lib/internal/template/hotspot/interfaces.js.map +1 -1
  233. package/lib/internal/template/icon/interfaces.d.ts +2 -2
  234. package/lib/internal/template/icon/interfaces.d.ts.map +1 -1
  235. package/lib/internal/template/icon/interfaces.js.map +1 -1
  236. package/lib/internal/template/icon-provider/interfaces.d.ts +1 -1
  237. package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
  238. package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
  239. package/lib/internal/template/input/interfaces.d.ts +4 -4
  240. package/lib/internal/template/input/interfaces.d.ts.map +1 -1
  241. package/lib/internal/template/input/interfaces.js.map +1 -1
  242. package/lib/internal/template/input/internal.d.ts +3 -3
  243. package/lib/internal/template/input/internal.d.ts.map +1 -1
  244. package/lib/internal/template/input/internal.js.map +1 -1
  245. package/lib/internal/template/interfaces.d.ts +1 -1
  246. package/lib/internal/template/interfaces.d.ts.map +1 -1
  247. package/lib/internal/template/interfaces.js.map +1 -1
  248. package/lib/internal/template/internal/analytics/components/analytics-funnel.d.ts +2 -1
  249. package/lib/internal/template/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
  250. package/lib/internal/template/internal/analytics/components/analytics-funnel.js.map +1 -1
  251. package/lib/internal/template/internal/analytics/context/analytics-context.d.ts +2 -1
  252. package/lib/internal/template/internal/analytics/context/analytics-context.d.ts.map +1 -1
  253. package/lib/internal/template/internal/analytics/context/analytics-context.js.map +1 -1
  254. package/lib/internal/template/internal/analytics/interfaces.d.ts +2 -15
  255. package/lib/internal/template/internal/analytics/interfaces.d.ts.map +1 -1
  256. package/lib/internal/template/internal/analytics/interfaces.js.map +1 -1
  257. package/lib/internal/template/internal/base-component/index.d.ts +3 -15
  258. package/lib/internal/template/internal/base-component/index.d.ts.map +1 -1
  259. package/lib/internal/template/internal/base-component/index.js.map +1 -1
  260. package/lib/internal/template/internal/base-component/styles.scoped.css +23 -17
  261. package/lib/internal/template/internal/breakpoints.d.ts +2 -1
  262. package/lib/internal/template/internal/breakpoints.d.ts.map +1 -1
  263. package/lib/internal/template/internal/breakpoints.js.map +1 -1
  264. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts +3 -3
  265. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
  266. package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
  267. package/lib/internal/template/internal/components/button-trigger/index.d.ts +2 -2
  268. package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
  269. package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
  270. package/lib/internal/template/internal/components/cartesian-chart/block-end-labels.d.ts +1 -1
  271. package/lib/internal/template/internal/components/cartesian-chart/block-end-labels.d.ts.map +1 -1
  272. package/lib/internal/template/internal/components/cartesian-chart/block-end-labels.js.map +1 -1
  273. package/lib/internal/template/internal/components/cartesian-chart/interfaces.d.ts +1 -209
  274. package/lib/internal/template/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
  275. package/lib/internal/template/internal/components/cartesian-chart/interfaces.js +2 -0
  276. package/lib/internal/template/internal/components/cartesian-chart/interfaces.js.map +1 -1
  277. package/lib/internal/template/internal/components/cartesian-chart/label-utils.d.ts +1 -1
  278. package/lib/internal/template/internal/components/cartesian-chart/label-utils.d.ts.map +1 -1
  279. package/lib/internal/template/internal/components/cartesian-chart/label-utils.js.map +1 -1
  280. package/lib/internal/template/internal/components/cartesian-chart/scales.d.ts +1 -1
  281. package/lib/internal/template/internal/components/cartesian-chart/scales.d.ts.map +1 -1
  282. package/lib/internal/template/internal/components/cartesian-chart/scales.js +0 -2
  283. package/lib/internal/template/internal/components/cartesian-chart/scales.js.map +1 -1
  284. package/lib/internal/template/internal/components/cartesian-chart/ticks.d.ts +1 -1
  285. package/lib/internal/template/internal/components/cartesian-chart/ticks.d.ts.map +1 -1
  286. package/lib/internal/template/internal/components/cartesian-chart/ticks.js.map +1 -1
  287. package/lib/internal/template/internal/components/chart-filter/index.d.ts +1 -1
  288. package/lib/internal/template/internal/components/chart-filter/index.d.ts.map +1 -1
  289. package/lib/internal/template/internal/components/chart-filter/index.js.map +1 -1
  290. package/lib/internal/template/internal/components/chart-series-details/index.d.ts +1 -1
  291. package/lib/internal/template/internal/components/chart-series-details/index.d.ts.map +1 -1
  292. package/lib/internal/template/internal/components/chart-series-details/index.js.map +1 -1
  293. package/lib/internal/template/internal/components/chart-series-marker/index.d.ts +1 -1
  294. package/lib/internal/template/internal/components/chart-series-marker/index.d.ts.map +1 -1
  295. package/lib/internal/template/internal/components/chart-series-marker/index.js.map +1 -1
  296. package/lib/internal/template/internal/components/chart-status-container/index.d.ts +2 -2
  297. package/lib/internal/template/internal/components/chart-status-container/index.d.ts.map +1 -1
  298. package/lib/internal/template/internal/components/chart-status-container/index.js.map +1 -1
  299. package/lib/internal/template/internal/components/chart-wrapper/index.d.ts +1 -1
  300. package/lib/internal/template/internal/components/chart-wrapper/index.d.ts.map +1 -1
  301. package/lib/internal/template/internal/components/chart-wrapper/index.js.map +1 -1
  302. package/lib/internal/template/internal/components/checkbox-icon/index.d.ts +1 -1
  303. package/lib/internal/template/internal/components/checkbox-icon/index.d.ts.map +1 -1
  304. package/lib/internal/template/internal/components/checkbox-icon/index.js.map +1 -1
  305. package/lib/internal/template/internal/components/dropdown-status/index.d.ts +3 -3
  306. package/lib/internal/template/internal/components/dropdown-status/index.d.ts.map +1 -1
  307. package/lib/internal/template/internal/components/dropdown-status/index.js.map +1 -1
  308. package/lib/internal/template/internal/components/masked-input/interfaces.d.ts +2 -2
  309. package/lib/internal/template/internal/components/masked-input/interfaces.d.ts.map +1 -1
  310. package/lib/internal/template/internal/components/masked-input/interfaces.js.map +1 -1
  311. package/lib/internal/template/internal/components/masked-input/use-mask.d.ts +1 -1
  312. package/lib/internal/template/internal/components/masked-input/use-mask.d.ts.map +1 -1
  313. package/lib/internal/template/internal/components/masked-input/use-mask.js.map +1 -1
  314. package/lib/internal/template/internal/components/option/interfaces.d.ts +3 -26
  315. package/lib/internal/template/internal/components/option/interfaces.d.ts.map +1 -1
  316. package/lib/internal/template/internal/components/option/interfaces.js.map +1 -1
  317. package/lib/internal/template/internal/components/option/option-announcer.d.ts +1 -1
  318. package/lib/internal/template/internal/components/option/option-announcer.d.ts.map +1 -1
  319. package/lib/internal/template/internal/components/option/option-announcer.js.map +1 -1
  320. package/lib/internal/template/internal/components/option/utils/filter-options.d.ts +2 -1
  321. package/lib/internal/template/internal/components/option/utils/filter-options.d.ts.map +1 -1
  322. package/lib/internal/template/internal/components/option/utils/filter-options.js.map +1 -1
  323. package/lib/internal/template/internal/components/option/utils/flatten-options.d.ts +2 -1
  324. package/lib/internal/template/internal/components/option/utils/flatten-options.d.ts.map +1 -1
  325. package/lib/internal/template/internal/components/option/utils/flatten-options.js.map +1 -1
  326. package/lib/internal/template/internal/components/options-list/index.d.ts +3 -3
  327. package/lib/internal/template/internal/components/options-list/index.d.ts.map +1 -1
  328. package/lib/internal/template/internal/components/options-list/index.js +1 -1
  329. package/lib/internal/template/internal/components/options-list/index.js.map +1 -1
  330. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.d.ts +1 -1
  331. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  332. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  333. package/lib/internal/template/internal/components/radio-button/index.d.ts +1 -1
  334. package/lib/internal/template/internal/components/radio-button/index.d.ts.map +1 -1
  335. package/lib/internal/template/internal/components/radio-button/index.js.map +1 -1
  336. package/lib/internal/template/internal/components/radio-button/interfaces.d.ts +1 -128
  337. package/lib/internal/template/internal/components/radio-button/interfaces.d.ts.map +1 -1
  338. package/lib/internal/template/internal/components/radio-button/interfaces.js +2 -0
  339. package/lib/internal/template/internal/components/radio-button/interfaces.js.map +1 -1
  340. package/lib/internal/template/internal/components/selectable-item/interfaces.d.ts +1 -1
  341. package/lib/internal/template/internal/components/selectable-item/interfaces.d.ts.map +1 -1
  342. package/lib/internal/template/internal/components/selectable-item/interfaces.js.map +1 -1
  343. package/lib/internal/template/internal/components/sortable-area/interfaces.d.ts +3 -9
  344. package/lib/internal/template/internal/components/sortable-area/interfaces.d.ts.map +1 -1
  345. package/lib/internal/template/internal/components/sortable-area/interfaces.js.map +1 -1
  346. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts +1 -1
  347. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
  348. package/lib/internal/template/internal/components/token-list/token-limit-toggle.js.map +1 -1
  349. package/lib/internal/template/internal/context/form-field-context.d.ts +2 -54
  350. package/lib/internal/template/internal/context/form-field-context.d.ts.map +1 -1
  351. package/lib/internal/template/internal/context/form-field-context.js.map +1 -1
  352. package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.d.ts +1 -1
  353. package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.d.ts.map +1 -1
  354. package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.js.map +1 -1
  355. package/lib/internal/template/internal/do-not-use/feature-prompt/internal.d.ts +1 -1
  356. package/lib/internal/template/internal/do-not-use/feature-prompt/internal.d.ts.map +1 -1
  357. package/lib/internal/template/internal/do-not-use/feature-prompt/internal.js.map +1 -1
  358. package/lib/internal/template/internal/environment.js +2 -2
  359. package/lib/internal/template/internal/environment.json +2 -2
  360. package/lib/internal/template/internal/events/index.d.ts +2 -24
  361. package/lib/internal/template/internal/events/index.d.ts.map +1 -1
  362. package/lib/internal/template/internal/events/index.js.map +1 -1
  363. package/lib/internal/template/internal/generated/styles/tokens.d.ts +1 -0
  364. package/lib/internal/template/internal/generated/styles/tokens.js +1 -0
  365. package/lib/internal/template/internal/generated/theming/index.cjs +60 -21
  366. package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +36 -0
  367. package/lib/internal/template/internal/generated/theming/index.d.ts +36 -0
  368. package/lib/internal/template/internal/generated/theming/index.js +60 -21
  369. package/lib/internal/template/internal/hooks/check-controlled/index.d.ts +1 -1
  370. package/lib/internal/template/internal/hooks/check-controlled/index.d.ts.map +1 -1
  371. package/lib/internal/template/internal/hooks/check-controlled/index.js.map +1 -1
  372. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts +1 -1
  373. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts.map +1 -1
  374. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
  375. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts +1 -1
  376. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts.map +1 -1
  377. package/lib/internal/template/internal/hooks/use-base-component/index.js.map +1 -1
  378. package/lib/internal/template/internal/hooks/use-focus-tracker.d.ts +1 -1
  379. package/lib/internal/template/internal/hooks/use-focus-tracker.d.ts.map +1 -1
  380. package/lib/internal/template/internal/hooks/use-focus-tracker.js.map +1 -1
  381. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts +1 -1
  382. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts.map +1 -1
  383. package/lib/internal/template/internal/plugins/controllers/drawers.js.map +1 -1
  384. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts +1 -1
  385. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts.map +1 -1
  386. package/lib/internal/template/internal/plugins/widget/interfaces.js.map +1 -1
  387. package/lib/internal/template/internal/utils/date-time/interfaces.d.ts +1 -16
  388. package/lib/internal/template/internal/utils/date-time/interfaces.d.ts.map +1 -1
  389. package/lib/internal/template/internal/utils/date-time/interfaces.js.map +1 -1
  390. package/lib/internal/template/internal/utils/with-native-attributes.d.ts +2 -1
  391. package/lib/internal/template/internal/utils/with-native-attributes.d.ts.map +1 -1
  392. package/lib/internal/template/internal/utils/with-native-attributes.js.map +1 -1
  393. package/lib/internal/template/item-card/interfaces.d.ts +2 -2
  394. package/lib/internal/template/item-card/interfaces.d.ts.map +1 -1
  395. package/lib/internal/template/item-card/interfaces.js.map +1 -1
  396. package/lib/internal/template/key-value-pairs/interfaces.d.ts +1 -1
  397. package/lib/internal/template/key-value-pairs/interfaces.d.ts.map +1 -1
  398. package/lib/internal/template/key-value-pairs/interfaces.js.map +1 -1
  399. package/lib/internal/template/link/interfaces.d.ts +3 -3
  400. package/lib/internal/template/link/interfaces.d.ts.map +1 -1
  401. package/lib/internal/template/link/interfaces.js.map +1 -1
  402. package/lib/internal/template/list/interfaces.d.ts +3 -3
  403. package/lib/internal/template/list/interfaces.d.ts.map +1 -1
  404. package/lib/internal/template/list/interfaces.js.map +1 -1
  405. package/lib/internal/template/live-region/interfaces.d.ts +1 -1
  406. package/lib/internal/template/live-region/interfaces.d.ts.map +1 -1
  407. package/lib/internal/template/live-region/interfaces.js.map +1 -1
  408. package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts +1 -1
  409. package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  410. package/lib/internal/template/mixed-line-bar-chart/chart-container.js.map +1 -1
  411. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts +1 -1
  412. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
  413. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.js.map +1 -1
  414. package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts +1 -1
  415. package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  416. package/lib/internal/template/mixed-line-bar-chart/interfaces.js.map +1 -1
  417. package/lib/internal/template/modal/interfaces.d.ts +3 -3
  418. package/lib/internal/template/modal/interfaces.d.ts.map +1 -1
  419. package/lib/internal/template/modal/interfaces.js.map +1 -1
  420. package/lib/internal/template/multiselect/embedded.d.ts +2 -2
  421. package/lib/internal/template/multiselect/interfaces.d.ts +2 -2
  422. package/lib/internal/template/multiselect/interfaces.d.ts.map +1 -1
  423. package/lib/internal/template/multiselect/interfaces.js.map +1 -1
  424. package/lib/internal/template/multiselect/internal.d.ts +1 -1
  425. package/lib/internal/template/multiselect/use-multiselect.d.ts +8 -8
  426. package/lib/internal/template/multiselect/use-multiselect.d.ts.map +1 -1
  427. package/lib/internal/template/multiselect/use-multiselect.js.map +1 -1
  428. package/lib/internal/template/navigable-group/interfaces.d.ts +1 -1
  429. package/lib/internal/template/navigable-group/interfaces.d.ts.map +1 -1
  430. package/lib/internal/template/navigable-group/interfaces.js.map +1 -1
  431. package/lib/internal/template/pagination/interfaces.d.ts +1 -1
  432. package/lib/internal/template/pagination/interfaces.d.ts.map +1 -1
  433. package/lib/internal/template/pagination/interfaces.js.map +1 -1
  434. package/lib/internal/template/pagination/internal.d.ts.map +1 -1
  435. package/lib/internal/template/pagination/internal.js.map +1 -1
  436. package/lib/internal/template/panel-layout/interfaces.d.ts +2 -2
  437. package/lib/internal/template/panel-layout/interfaces.d.ts.map +1 -1
  438. package/lib/internal/template/panel-layout/interfaces.js.map +1 -1
  439. package/lib/internal/template/pie-chart/interfaces.d.ts +2 -2
  440. package/lib/internal/template/pie-chart/interfaces.d.ts.map +1 -1
  441. package/lib/internal/template/pie-chart/interfaces.js.map +1 -1
  442. package/lib/internal/template/popover/interfaces.d.ts +1 -1
  443. package/lib/internal/template/popover/interfaces.d.ts.map +1 -1
  444. package/lib/internal/template/popover/interfaces.js.map +1 -1
  445. package/lib/internal/template/popover/internal.d.ts +1 -1
  446. package/lib/internal/template/popover/internal.d.ts.map +1 -1
  447. package/lib/internal/template/popover/internal.js.map +1 -1
  448. package/lib/internal/template/progress-bar/interfaces.d.ts +2 -2
  449. package/lib/internal/template/progress-bar/interfaces.d.ts.map +1 -1
  450. package/lib/internal/template/progress-bar/interfaces.js.map +1 -1
  451. package/lib/internal/template/prompt-input/core/menu-state.d.ts +2 -2
  452. package/lib/internal/template/prompt-input/core/menu-state.d.ts.map +1 -1
  453. package/lib/internal/template/prompt-input/core/menu-state.js.map +1 -1
  454. package/lib/internal/template/prompt-input/interfaces.d.ts +6 -6
  455. package/lib/internal/template/prompt-input/interfaces.d.ts.map +1 -1
  456. package/lib/internal/template/prompt-input/interfaces.js.map +1 -1
  457. package/lib/internal/template/property-filter/controller.d.ts +2 -2
  458. package/lib/internal/template/property-filter/controller.d.ts.map +1 -1
  459. package/lib/internal/template/property-filter/controller.js.map +1 -1
  460. package/lib/internal/template/property-filter/filter-options.js.map +1 -1
  461. package/lib/internal/template/property-filter/interfaces.d.ts +4 -4
  462. package/lib/internal/template/property-filter/interfaces.d.ts.map +1 -1
  463. package/lib/internal/template/property-filter/interfaces.js.map +1 -1
  464. package/lib/internal/template/property-filter/property-editor.d.ts +2 -2
  465. package/lib/internal/template/property-filter/property-editor.d.ts.map +1 -1
  466. package/lib/internal/template/property-filter/property-editor.js.map +1 -1
  467. package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts +1 -1
  468. package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  469. package/lib/internal/template/property-filter/property-filter-autosuggest.js +1 -1
  470. package/lib/internal/template/property-filter/property-filter-autosuggest.js.map +1 -1
  471. package/lib/internal/template/property-filter/token-editor-inputs.d.ts +2 -2
  472. package/lib/internal/template/property-filter/token-editor-inputs.d.ts.map +1 -1
  473. package/lib/internal/template/property-filter/token-editor-inputs.js.map +1 -1
  474. package/lib/internal/template/property-filter/token-editor.d.ts +2 -2
  475. package/lib/internal/template/property-filter/token-editor.d.ts.map +1 -1
  476. package/lib/internal/template/property-filter/token-editor.js.map +1 -1
  477. package/lib/internal/template/property-filter/token.d.ts +2 -2
  478. package/lib/internal/template/property-filter/token.d.ts.map +1 -1
  479. package/lib/internal/template/property-filter/token.js.map +1 -1
  480. package/lib/internal/template/property-filter/use-load-items.d.ts +1 -1
  481. package/lib/internal/template/property-filter/use-load-items.d.ts.map +1 -1
  482. package/lib/internal/template/property-filter/use-load-items.js.map +1 -1
  483. package/lib/internal/template/radio-button/interfaces.d.ts +128 -2
  484. package/lib/internal/template/radio-button/interfaces.d.ts.map +1 -1
  485. package/lib/internal/template/radio-button/interfaces.js.map +1 -1
  486. package/lib/internal/template/radio-group/interfaces.d.ts +4 -4
  487. package/lib/internal/template/radio-group/interfaces.d.ts.map +1 -1
  488. package/lib/internal/template/radio-group/interfaces.js.map +1 -1
  489. package/lib/internal/template/s3-resource-selector/interfaces.d.ts +2 -2
  490. package/lib/internal/template/s3-resource-selector/interfaces.d.ts.map +1 -1
  491. package/lib/internal/template/s3-resource-selector/interfaces.js.map +1 -1
  492. package/lib/internal/template/s3-resource-selector/s3-in-context/index.d.ts +1 -1
  493. package/lib/internal/template/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
  494. package/lib/internal/template/s3-resource-selector/s3-in-context/index.js.map +1 -1
  495. package/lib/internal/template/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts +1 -1
  496. package/lib/internal/template/segmented-control/interfaces.d.ts +2 -2
  497. package/lib/internal/template/segmented-control/interfaces.d.ts.map +1 -1
  498. package/lib/internal/template/segmented-control/interfaces.js.map +1 -1
  499. package/lib/internal/template/select/interfaces.d.ts +5 -5
  500. package/lib/internal/template/select/interfaces.d.ts.map +1 -1
  501. package/lib/internal/template/select/interfaces.js.map +1 -1
  502. package/lib/internal/template/select/internal.d.ts.map +1 -1
  503. package/lib/internal/template/select/internal.js.map +1 -1
  504. package/lib/internal/template/select/parts/item.d.ts.map +1 -1
  505. package/lib/internal/template/select/parts/item.js.map +1 -1
  506. package/lib/internal/template/select/parts/multiselect-item.d.ts.map +1 -1
  507. package/lib/internal/template/select/parts/multiselect-item.js.map +1 -1
  508. package/lib/internal/template/select/parts/trigger.d.ts +2 -2
  509. package/lib/internal/template/select/parts/trigger.d.ts.map +1 -1
  510. package/lib/internal/template/select/parts/trigger.js.map +1 -1
  511. package/lib/internal/template/select/utils/connect-options.d.ts +2 -1
  512. package/lib/internal/template/select/utils/connect-options.d.ts.map +1 -1
  513. package/lib/internal/template/select/utils/connect-options.js.map +1 -1
  514. package/lib/internal/template/select/utils/use-announcement.d.ts +1 -1
  515. package/lib/internal/template/select/utils/use-announcement.d.ts.map +1 -1
  516. package/lib/internal/template/select/utils/use-announcement.js.map +1 -1
  517. package/lib/internal/template/select/utils/use-load-items.d.ts +2 -2
  518. package/lib/internal/template/select/utils/use-load-items.d.ts.map +1 -1
  519. package/lib/internal/template/select/utils/use-load-items.js.map +1 -1
  520. package/lib/internal/template/select/utils/use-native-search.d.ts +2 -1
  521. package/lib/internal/template/select/utils/use-native-search.d.ts.map +1 -1
  522. package/lib/internal/template/select/utils/use-native-search.js.map +1 -1
  523. package/lib/internal/template/select/utils/use-select.d.ts +4 -3
  524. package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
  525. package/lib/internal/template/select/utils/use-select.js.map +1 -1
  526. package/lib/internal/template/side-navigation/interfaces.d.ts +2 -2
  527. package/lib/internal/template/side-navigation/interfaces.d.ts.map +1 -1
  528. package/lib/internal/template/side-navigation/interfaces.js.map +1 -1
  529. package/lib/internal/template/side-navigation/parts.d.ts.map +1 -1
  530. package/lib/internal/template/side-navigation/parts.js.map +1 -1
  531. package/lib/internal/template/skeleton/interfaces.d.ts +1 -1
  532. package/lib/internal/template/skeleton/interfaces.d.ts.map +1 -1
  533. package/lib/internal/template/skeleton/interfaces.js.map +1 -1
  534. package/lib/internal/template/slider/interfaces.d.ts +3 -3
  535. package/lib/internal/template/slider/interfaces.d.ts.map +1 -1
  536. package/lib/internal/template/slider/interfaces.js.map +1 -1
  537. package/lib/internal/template/space-between/interfaces.d.ts +2 -2
  538. package/lib/internal/template/space-between/interfaces.d.ts.map +1 -1
  539. package/lib/internal/template/space-between/interfaces.js.map +1 -1
  540. package/lib/internal/template/spinner/interfaces.d.ts +2 -2
  541. package/lib/internal/template/spinner/interfaces.d.ts.map +1 -1
  542. package/lib/internal/template/spinner/interfaces.js.map +1 -1
  543. package/lib/internal/template/split-panel/interfaces.d.ts +1 -1
  544. package/lib/internal/template/split-panel/interfaces.d.ts.map +1 -1
  545. package/lib/internal/template/split-panel/interfaces.js.map +1 -1
  546. package/lib/internal/template/status-indicator/interfaces.d.ts +2 -2
  547. package/lib/internal/template/status-indicator/interfaces.d.ts.map +1 -1
  548. package/lib/internal/template/status-indicator/interfaces.js.map +1 -1
  549. package/lib/internal/template/steps/interfaces.d.ts +1 -1
  550. package/lib/internal/template/steps/interfaces.d.ts.map +1 -1
  551. package/lib/internal/template/steps/interfaces.js.map +1 -1
  552. package/lib/internal/template/table/interfaces.d.ts +2 -2
  553. package/lib/internal/template/table/interfaces.d.ts.map +1 -1
  554. package/lib/internal/template/table/interfaces.js.map +1 -1
  555. package/lib/internal/template/table/thead.d.ts +1 -1
  556. package/lib/internal/template/table/thead.d.ts.map +1 -1
  557. package/lib/internal/template/table/thead.js.map +1 -1
  558. package/lib/internal/template/table/use-cell-editing.d.ts +1 -1
  559. package/lib/internal/template/table/use-cell-editing.d.ts.map +1 -1
  560. package/lib/internal/template/table/use-cell-editing.js.map +1 -1
  561. package/lib/internal/template/tabs/interfaces.d.ts +2 -2
  562. package/lib/internal/template/tabs/interfaces.d.ts.map +1 -1
  563. package/lib/internal/template/tabs/interfaces.js.map +1 -1
  564. package/lib/internal/template/tag-editor/index.d.ts.map +1 -1
  565. package/lib/internal/template/tag-editor/index.js.map +1 -1
  566. package/lib/internal/template/tag-editor/interfaces.d.ts +2 -2
  567. package/lib/internal/template/tag-editor/interfaces.d.ts.map +1 -1
  568. package/lib/internal/template/tag-editor/interfaces.js.map +1 -1
  569. package/lib/internal/template/tag-editor/internal.js.map +1 -1
  570. package/lib/internal/template/text-content/interfaces.d.ts +1 -1
  571. package/lib/internal/template/text-content/interfaces.d.ts.map +1 -1
  572. package/lib/internal/template/text-content/interfaces.js.map +1 -1
  573. package/lib/internal/template/text-filter/interfaces.d.ts +3 -3
  574. package/lib/internal/template/text-filter/interfaces.d.ts.map +1 -1
  575. package/lib/internal/template/text-filter/interfaces.js.map +1 -1
  576. package/lib/internal/template/textarea/interfaces.d.ts +4 -4
  577. package/lib/internal/template/textarea/interfaces.d.ts.map +1 -1
  578. package/lib/internal/template/textarea/interfaces.js.map +1 -1
  579. package/lib/internal/template/tiles/interfaces.d.ts +4 -4
  580. package/lib/internal/template/tiles/interfaces.d.ts.map +1 -1
  581. package/lib/internal/template/tiles/interfaces.js.map +1 -1
  582. package/lib/internal/template/time-input/interfaces.d.ts +2 -2
  583. package/lib/internal/template/time-input/interfaces.d.ts.map +1 -1
  584. package/lib/internal/template/time-input/interfaces.js.map +1 -1
  585. package/lib/internal/template/toggle/interfaces.d.ts +2 -2
  586. package/lib/internal/template/toggle/interfaces.d.ts.map +1 -1
  587. package/lib/internal/template/toggle/interfaces.js.map +1 -1
  588. package/lib/internal/template/toggle-button/interfaces.d.ts +2 -2
  589. package/lib/internal/template/toggle-button/interfaces.d.ts.map +1 -1
  590. package/lib/internal/template/toggle-button/interfaces.js.map +1 -1
  591. package/lib/internal/template/token/dismiss-button.d.ts +1 -1
  592. package/lib/internal/template/token/dismiss-button.d.ts.map +1 -1
  593. package/lib/internal/template/token/dismiss-button.js.map +1 -1
  594. package/lib/internal/template/token/interfaces.d.ts +2 -2
  595. package/lib/internal/template/token/interfaces.d.ts.map +1 -1
  596. package/lib/internal/template/token/interfaces.js.map +1 -1
  597. package/lib/internal/template/token-group/interfaces.d.ts +2 -2
  598. package/lib/internal/template/token-group/interfaces.d.ts.map +1 -1
  599. package/lib/internal/template/token-group/interfaces.js.map +1 -1
  600. package/lib/internal/template/tooltip/interfaces.d.ts +1 -1
  601. package/lib/internal/template/tooltip/interfaces.d.ts.map +1 -1
  602. package/lib/internal/template/tooltip/interfaces.js.map +1 -1
  603. package/lib/internal/template/top-navigation/interfaces.d.ts +2 -2
  604. package/lib/internal/template/top-navigation/interfaces.d.ts.map +1 -1
  605. package/lib/internal/template/top-navigation/interfaces.js.map +1 -1
  606. package/lib/internal/template/tree-view/interfaces.d.ts +2 -2
  607. package/lib/internal/template/tree-view/interfaces.d.ts.map +1 -1
  608. package/lib/internal/template/tree-view/interfaces.js.map +1 -1
  609. package/lib/internal/template/truncated-text/interfaces.d.ts +1 -1
  610. package/lib/internal/template/truncated-text/interfaces.d.ts.map +1 -1
  611. package/lib/internal/template/truncated-text/interfaces.js.map +1 -1
  612. package/lib/internal/template/tutorial-panel/index.js.map +1 -1
  613. package/lib/internal/template/tutorial-panel/interfaces.d.ts +2 -2
  614. package/lib/internal/template/tutorial-panel/interfaces.d.ts.map +1 -1
  615. package/lib/internal/template/tutorial-panel/interfaces.js.map +1 -1
  616. package/lib/internal/template/types/analytics.d.ts +16 -0
  617. package/lib/internal/template/types/analytics.d.ts.map +1 -0
  618. package/lib/internal/template/types/analytics.js +4 -0
  619. package/lib/internal/template/types/analytics.js.map +1 -0
  620. package/lib/internal/template/types/base-component.d.ts +15 -0
  621. package/lib/internal/template/types/base-component.d.ts.map +1 -0
  622. package/lib/internal/template/types/base-component.js +4 -0
  623. package/lib/internal/template/types/base-component.js.map +1 -0
  624. package/lib/internal/template/types/breakpoint.d.ts +2 -0
  625. package/lib/internal/template/types/breakpoint.d.ts.map +1 -0
  626. package/lib/internal/template/types/breakpoint.js +2 -0
  627. package/lib/internal/template/types/breakpoint.js.map +1 -0
  628. package/lib/internal/template/types/cartesian-chart.d.ts +210 -0
  629. package/lib/internal/template/types/cartesian-chart.d.ts.map +1 -0
  630. package/lib/internal/template/types/cartesian-chart.js +2 -0
  631. package/lib/internal/template/types/cartesian-chart.js.map +1 -0
  632. package/lib/internal/template/types/date-time.d.ts +17 -0
  633. package/lib/internal/template/types/date-time.d.ts.map +1 -0
  634. package/lib/internal/template/types/date-time.js +4 -0
  635. package/lib/internal/template/types/date-time.js.map +1 -0
  636. package/lib/internal/template/{internal/components/dropdown-status/interfaces.d.ts → types/dropdown-status.d.ts} +1 -1
  637. package/lib/internal/template/types/dropdown-status.d.ts.map +1 -0
  638. package/lib/internal/template/types/dropdown-status.js +2 -0
  639. package/lib/internal/template/types/dropdown-status.js.map +1 -0
  640. package/lib/internal/template/types/events.d.ts +25 -0
  641. package/lib/internal/template/types/events.d.ts.map +1 -0
  642. package/lib/internal/template/types/events.js +4 -0
  643. package/lib/internal/template/types/events.js.map +1 -0
  644. package/lib/internal/template/types/form-field.d.ts +55 -0
  645. package/lib/internal/template/types/form-field.d.ts.map +1 -0
  646. package/lib/internal/template/types/form-field.js +4 -0
  647. package/lib/internal/template/types/form-field.js.map +1 -0
  648. package/lib/internal/template/types/native-attributes.d.ts +3 -0
  649. package/lib/internal/template/types/native-attributes.d.ts.map +1 -0
  650. package/lib/internal/template/types/native-attributes.js +2 -0
  651. package/lib/internal/template/types/native-attributes.js.map +1 -0
  652. package/lib/internal/template/types/option.d.ts +27 -0
  653. package/lib/internal/template/types/option.d.ts.map +1 -0
  654. package/lib/internal/template/types/option.js +2 -0
  655. package/lib/internal/template/types/option.js.map +1 -0
  656. package/lib/internal/template/types/sortable-area.d.ts +9 -0
  657. package/lib/internal/template/types/sortable-area.d.ts.map +1 -0
  658. package/lib/internal/template/types/sortable-area.js +4 -0
  659. package/lib/internal/template/types/sortable-area.js.map +1 -0
  660. package/lib/internal/template/wizard/interfaces.d.ts +3 -3
  661. package/lib/internal/template/wizard/interfaces.d.ts.map +1 -1
  662. package/lib/internal/template/wizard/interfaces.js.map +1 -1
  663. package/package.json +1 -1
  664. package/lib/internal/template/internal/components/dropdown-status/interfaces.d.ts.map +0 -1
  665. package/lib/internal/template/internal/components/dropdown-status/interfaces.js +0 -2
  666. package/lib/internal/template/internal/components/dropdown-status/interfaces.js.map +0 -1
@@ -1,210 +1,2 @@
1
- import { BaseComponentProps } from '../../base-component';
2
- import { NonCancelableEventHandler } from '../../events';
3
- export interface CartesianChartProps<T extends ChartDataTypes, Series> extends BaseComponentProps {
4
- /**
5
- * Determines the type of scale for values on the x axis.
6
- */
7
- xScaleType?: ScaleType;
8
- /**
9
- * Determines the type of scale for values on the y axis.
10
- */
11
- yScaleType?: 'linear' | 'log';
12
- /**
13
- * Determines the domain of the x axis, i.e. the range of values that will be visible in the chart.
14
- * For numerical and time-based data this is represented as an array with two values: `[minimumValue, maximumValue]`.
15
- * For categorical data this is represented as an array of strings that determine the categories to display.
16
- *
17
- * It is recommended to set this explicitly. If not, the component will determine a domain that fits all data points.
18
- * When controlling this directly, make sure to update the value based on filtering changes.
19
- */
20
- xDomain?: ReadonlyArray<T>;
21
- /**
22
- * Determines the domain of the y axis, i.e. the range of values that will be visible in the chart.
23
- * The domain is defined by a tuple: `[minimumValue, maximumValue]`.
24
- *
25
- * It is recommended to set this explicitly. If not, the component will determine a domain that fits all data points.
26
- * When controlling this directly, make sure to update the value based on filtering changes.
27
- */
28
- yDomain?: ReadonlyArray<number>;
29
- /**
30
- * The title of the x axis.
31
- */
32
- xTitle?: string;
33
- /**
34
- * The title of the y axis.
35
- */
36
- yTitle?: string;
37
- /**
38
- * Optional title for the legend.
39
- */
40
- legendTitle?: string;
41
- /**
42
- * ARIA label that is assigned to the chart itself. It should match the visible label on the page, e.g. in the container header.
43
- * Do not use `ariaLabel` and `ariaLabelledby` at the same time.
44
- */
45
- ariaLabel?: string;
46
- /**
47
- * Sets `aria-labelledby` on the chart itself.
48
- * If there is a visible label for the chart on the page, e.g. in the container header, set this property to the ID of that header element.
49
- * Do not use `ariaLabel` and `ariaLabelledby` at the same time.
50
- */
51
- ariaLabelledby?: string;
52
- /**
53
- * A description of the chart that assistive technologies can use (through `aria-describedby`).
54
- * Provide a concise summary of the data visualized in the chart.
55
- */
56
- ariaDescription?: string;
57
- /**
58
- * An object containing all the necessary localized strings required by the component.
59
- * @i18n
60
- */
61
- i18nStrings?: CartesianChartProps.I18nStrings<T>;
62
- /**
63
- * Function to format the displayed label of an x axis tick.
64
- */
65
- xTickFormatter?: CartesianChartProps.TickFormatter<T>;
66
- /**
67
- * Function to format the displayed label of a y axis tick.
68
- */
69
- yTickFormatter?: CartesianChartProps.TickFormatter<number>;
70
- /**
71
- * An optional pixel value number that fixes the height of the chart area.
72
- * If not set explicitly, the component will use a default height that is defined internally.
73
- * When used with `fitHeight`, this property defines the minimum height of the chart area.
74
- */
75
- height?: number;
76
- /**
77
- * Determines the maximum width the detail popover will be limited to.
78
- */
79
- detailPopoverSize?: 'small' | 'medium' | 'large';
80
- /**
81
- * Additional content that is displayed at the bottom of the detail popover.
82
- */
83
- detailPopoverFooter?: CartesianChartProps.DetailPopoverFooter<T>;
84
- /**
85
- * When set to `true`, the legend beneath the chart is not displayed.
86
- * It is highly recommended to keep this set to `false`.
87
- */
88
- hideLegend?: boolean;
89
- /**
90
- * When set to `true`, the default filtering dropdown is not displayed.
91
- * It is still possible to render additional filters with the `additionalFilters` slot.
92
- */
93
- hideFilter?: boolean;
94
- /**
95
- * Additional filters that are added above the chart component.
96
- * Make sure to update the `data` property when any of your custom filters change the data to be displayed.
97
- */
98
- additionalFilters?: React.ReactNode;
99
- /**
100
- * The currently highlighted data series, usually through hovering over a series or the legend.
101
- * A value of `null` means no series is highlighted.
102
- *
103
- * - If you do not set this property, series are highlighted automatically when hovering over one of the triggers (uncontrolled behavior).
104
- * - If you explicitly set this property, you must set an `onHighlightChange` listener to update this property when a series should be highlighted (controlled behavior).
105
- */
106
- highlightedSeries?: Series | null;
107
- /**
108
- * An array of series objects that determines which of the data series are currently displayed, i.e. not filtered out.
109
- * - If you do not set this property, series are shown and hidden automatically when using the default filter component (uncontrolled behavior).
110
- * - If you explicitly set this property, you must set an `onFilterChange` listener to update this property when the visible series should change, or when one of your custom filters changes the number of visible series (controlled behavior).
111
- */
112
- visibleSeries?: ReadonlyArray<Series>;
113
- /**
114
- * Specifies the current status of loading data.
115
- * * `loading`: data fetching is in progress.
116
- * * `finished`: data has loaded successfully.
117
- * * `error`: an error occurred during fetch. You should provide user an option to recover.
118
- **/
119
- statusType?: 'loading' | 'finished' | 'error';
120
- /**
121
- * Content that is displayed when the data passed to the component is empty.
122
- */
123
- empty?: React.ReactNode;
124
- /**
125
- * Content that is displayed when there is no data to display due to the built-in filtering.
126
- */
127
- noMatch?: React.ReactNode;
128
- /**
129
- * Text that is displayed when the chart is loading, i.e. when `statusType` is set to `"loading"`.
130
- * @i18n
131
- */
132
- loadingText?: string;
133
- /**
134
- * Text that is displayed when the chart is in error state, i.e. when `statusType` is set to `"error"`.
135
- * @i18n
136
- */
137
- errorText?: string;
138
- /**
139
- * Text for the recovery button that is displayed next to the error text.
140
- * @i18n
141
- **/
142
- recoveryText?: string;
143
- /**
144
- * Called when the user clicks the recovery button that appears when there is an error state.
145
- * Use this to enable the user to retry a failed request or provide another option for the user
146
- * to recover from the error.
147
- */
148
- onRecoveryClick?: NonCancelableEventHandler;
149
- /**
150
- * Called when the values of the internal filter component changed.
151
- * This will **not** be called for any custom filter components you have defined in `additionalFilters`.
152
- */
153
- onFilterChange?: NonCancelableEventHandler<CartesianChartProps.FilterChangeDetail<Series>>;
154
- /**
155
- * Called when the highlighted series has changed because of user interaction.
156
- */
157
- onHighlightChange?: NonCancelableEventHandler<CartesianChartProps.HighlightChangeDetail<Series>>;
158
- /**
159
- * Enable this property to make the chart fit into the available height of the parent container.
160
- */
161
- fitHeight?: boolean;
162
- }
163
- export declare namespace CartesianChartProps {
164
- interface FilterChangeDetail<Series> {
165
- visibleSeries: ReadonlyArray<Series>;
166
- }
167
- interface HighlightChangeDetail<Series> {
168
- highlightedSeries: Series | null;
169
- }
170
- interface TickFormatter<T> {
171
- (value: T): string;
172
- }
173
- interface ValueFormatter<YType, XType = null> {
174
- (yValue: YType, xValue: XType): string;
175
- }
176
- interface DetailPopoverFooter<T> {
177
- (xValue: T): React.ReactNode;
178
- }
179
- interface I18nStrings<T> {
180
- /** Visible label of the default filter */
181
- filterLabel?: string;
182
- /** Placeholder text of the default filter */
183
- filterPlaceholder?: string;
184
- /** ARIA label for the default filter which is appended to any option that is selected */
185
- filterSelectedAriaLabel?: string;
186
- /** ARIA label that is associated with the legend in case there is no visible `legendTitle` defined */
187
- legendAriaLabel?: string;
188
- /** ARIA label for details popover dismiss button */
189
- detailPopoverDismissAriaLabel?: string;
190
- /** Name of the ARIA role description of the chart, e.g. "line chart" */
191
- chartAriaRoleDescription?: string;
192
- /** Name of the ARIA role description of the x axis, e.g. "x axis" */
193
- xAxisAriaRoleDescription?: string;
194
- /** Name of the ARIA role description of the y axis, e.g. "y axis" */
195
- yAxisAriaRoleDescription?: string;
196
- /** @deprecated Use `xTickFormatter` on the component instead. */
197
- xTickFormatter?: TickFormatter<T>;
198
- /** @deprecated Use `yTickFormatter` on the component instead. */
199
- yTickFormatter?: TickFormatter<number>;
200
- }
201
- }
202
- export type ChartDataTypes = number | string | Date;
203
- export type ScaleType = 'linear' | 'log' | 'time' | 'categorical';
204
- export type XScaleType = 'linear' | 'log' | 'time' | 'categorical';
205
- export type YScaleType = 'linear' | 'log';
206
- export type ScaleRange = [number, number];
207
- export type ChartDomain<T extends ChartDataTypes> = ReadonlyArray<T>;
208
- export type XDomain<T extends ChartDataTypes> = ChartDomain<T>;
209
- export type YDomain = ChartDomain<number>;
1
+ export { CartesianChartProps, ChartDataTypes, ChartDomain, ScaleRange, ScaleType, XDomain, XScaleType, YDomain, YScaleType, } from '../../../types/cartesian-chart';
210
2
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,cAAc,EAAE,MAAM,CAAE,SAAQ,kBAAkB;IAC/F;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAE9B;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAE3B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAEhC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;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,CAAC;QAElC,iEAAiE;QACjE,cAAc,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;KACxC;CACF;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,aAAa,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,aAAa,CAAC;AACnE,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC;AAC1C,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE1C,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,cAAc,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;AACrE,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,cAAc,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AAC/D,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/interfaces.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,UAAU,EACV,SAAS,EACT,OAAO,EACP,UAAU,EACV,OAAO,EACP,UAAU,GACX,MAAM,gCAAgC,CAAC"}
@@ -1,2 +1,4 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
1
3
  export {};
2
4
  //# sourceMappingURL=interfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../../base-component';\nimport { NonCancelableEventHandler } from '../../events';\n\nexport interface CartesianChartProps<T extends ChartDataTypes, Series> extends BaseComponentProps {\n /**\n * Determines the type of scale for values on the x axis.\n */\n xScaleType?: ScaleType;\n\n /**\n * Determines the type of scale for values on the y axis.\n */\n yScaleType?: 'linear' | 'log';\n\n /**\n * Determines the domain of the x axis, i.e. the range of values that will be visible in the chart.\n * For numerical and time-based data this is represented as an array with two values: `[minimumValue, maximumValue]`.\n * For categorical data this is represented as an array of strings that determine the categories to display.\n *\n * It is recommended to set this explicitly. If not, the component will determine a domain that fits all data points.\n * When controlling this directly, make sure to update the value based on filtering changes.\n */\n xDomain?: ReadonlyArray<T>;\n\n /**\n * Determines the domain of the y axis, i.e. the range of values that will be visible in the chart.\n * The domain is defined by a tuple: `[minimumValue, maximumValue]`.\n *\n * It is recommended to set this explicitly. If not, the component will determine a domain that fits all data points.\n * When controlling this directly, make sure to update the value based on filtering changes.\n */\n yDomain?: ReadonlyArray<number>;\n\n /**\n * The title of the x axis.\n */\n xTitle?: string;\n\n /**\n * The title of the y axis.\n */\n yTitle?: string;\n\n /**\n * Optional title for the legend.\n */\n legendTitle?: string;\n\n /**\n * ARIA label that is assigned to the chart itself. It should match the visible label on the page, e.g. in the container header.\n * Do not use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n\n /**\n * Sets `aria-labelledby` on the chart itself.\n * If there is a visible label for the chart on the page, e.g. in the container header, set this property to the ID of that header element.\n * Do not use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n\n /**\n * A description of the chart that assistive technologies can use (through `aria-describedby`).\n * Provide a concise summary of the data visualized in the chart.\n */\n ariaDescription?: string;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: CartesianChartProps.I18nStrings<T>;\n\n /**\n * Function to format the displayed label of an x axis tick.\n */\n xTickFormatter?: CartesianChartProps.TickFormatter<T>;\n\n /**\n * Function to format the displayed label of a y axis tick.\n */\n yTickFormatter?: CartesianChartProps.TickFormatter<number>;\n\n /**\n * An optional pixel value number that fixes the height of the chart area.\n * If not set explicitly, the component will use a default height that is defined internally.\n * When used with `fitHeight`, this property defines the minimum height of the chart area.\n */\n height?: number;\n\n /**\n * Determines the maximum width the detail popover will be limited to.\n */\n detailPopoverSize?: 'small' | 'medium' | 'large';\n\n /**\n * Additional content that is displayed at the bottom of the detail popover.\n */\n detailPopoverFooter?: CartesianChartProps.DetailPopoverFooter<T>;\n\n /**\n * When set to `true`, the legend beneath the chart is not displayed.\n * It is highly recommended to keep this set to `false`.\n */\n hideLegend?: boolean;\n\n /**\n * When set to `true`, the default filtering dropdown is not displayed.\n * It is still possible to render additional filters with the `additionalFilters` slot.\n */\n hideFilter?: boolean;\n\n /**\n * Additional filters that are added above the chart component.\n * Make sure to update the `data` property when any of your custom filters change the data to be displayed.\n */\n additionalFilters?: React.ReactNode;\n\n /**\n * The currently highlighted data series, usually through hovering over a series or the legend.\n * A value of `null` means no series is highlighted.\n *\n * - If you do not set this property, series are highlighted automatically when hovering over one of the triggers (uncontrolled behavior).\n * - If you explicitly set this property, you must set an `onHighlightChange` listener to update this property when a series should be highlighted (controlled behavior).\n */\n highlightedSeries?: Series | null;\n\n /**\n * An array of series objects that determines which of the data series are currently displayed, i.e. not filtered out.\n * - If you do not set this property, series are shown and hidden automatically when using the default filter component (uncontrolled behavior).\n * - If you explicitly set this property, you must set an `onFilterChange` listener to update this property when the visible series should change, or when one of your custom filters changes the number of visible series (controlled behavior).\n */\n visibleSeries?: ReadonlyArray<Series>;\n\n /**\n * Specifies the current status of loading data.\n * * `loading`: data fetching is in progress.\n * * `finished`: data has loaded successfully.\n * * `error`: an error occurred during fetch. You should provide user an option to recover.\n **/\n statusType?: 'loading' | 'finished' | 'error';\n\n /**\n * Content that is displayed when the data passed to the component is empty.\n */\n empty?: React.ReactNode;\n\n /**\n * Content that is displayed when there is no data to display due to the built-in filtering.\n */\n noMatch?: React.ReactNode;\n\n /**\n * Text that is displayed when the chart is loading, i.e. when `statusType` is set to `\"loading\"`.\n * @i18n\n */\n loadingText?: string;\n\n /**\n * Text that is displayed when the chart is in error state, i.e. when `statusType` is set to `\"error\"`.\n * @i18n\n */\n errorText?: string;\n\n /**\n * Text for the recovery button that is displayed next to the error text.\n * @i18n\n **/\n recoveryText?: string;\n\n /**\n * Called when the user clicks the recovery button that appears when there is an error state.\n * Use this to enable the user to retry a failed request or provide another option for the user\n * to recover from the error.\n */\n onRecoveryClick?: NonCancelableEventHandler;\n\n /**\n * Called when the values of the internal filter component changed.\n * This will **not** be called for any custom filter components you have defined in `additionalFilters`.\n */\n onFilterChange?: NonCancelableEventHandler<CartesianChartProps.FilterChangeDetail<Series>>;\n\n /**\n * Called when the highlighted series has changed because of user interaction.\n */\n onHighlightChange?: NonCancelableEventHandler<CartesianChartProps.HighlightChangeDetail<Series>>;\n\n /**\n * Enable this property to make the chart fit into the available height of the parent container.\n */\n fitHeight?: boolean;\n}\nexport namespace CartesianChartProps {\n export interface FilterChangeDetail<Series> {\n visibleSeries: ReadonlyArray<Series>;\n }\n\n export interface HighlightChangeDetail<Series> {\n highlightedSeries: Series | null;\n }\n\n export interface TickFormatter<T> {\n (value: T): string;\n }\n\n export interface ValueFormatter<YType, XType = null> {\n (yValue: YType, xValue: XType): string;\n }\n\n export interface DetailPopoverFooter<T> {\n (xValue: T): React.ReactNode;\n }\n\n export interface I18nStrings<T> {\n /** Visible label of the default filter */\n filterLabel?: string;\n\n /** Placeholder text of the default filter */\n filterPlaceholder?: string;\n\n /** ARIA label for the default filter which is appended to any option that is selected */\n filterSelectedAriaLabel?: string;\n\n /** ARIA label that is associated with the legend in case there is no visible `legendTitle` defined */\n legendAriaLabel?: string;\n\n /** ARIA label for details popover dismiss button */\n detailPopoverDismissAriaLabel?: string;\n\n /** Name of the ARIA role description of the chart, e.g. \"line chart\" */\n chartAriaRoleDescription?: string;\n\n /** Name of the ARIA role description of the x axis, e.g. \"x axis\" */\n xAxisAriaRoleDescription?: string;\n\n /** Name of the ARIA role description of the y axis, e.g. \"y axis\" */\n yAxisAriaRoleDescription?: string;\n\n /** @deprecated Use `xTickFormatter` on the component instead. */\n xTickFormatter?: TickFormatter<T>;\n\n /** @deprecated Use `yTickFormatter` on the component instead. */\n yTickFormatter?: TickFormatter<number>;\n }\n}\n\nexport type ChartDataTypes = number | string | Date;\n\nexport type ScaleType = 'linear' | 'log' | 'time' | 'categorical';\nexport type XScaleType = 'linear' | 'log' | 'time' | 'categorical';\nexport type YScaleType = 'linear' | 'log';\nexport type ScaleRange = [number, number];\n\nexport type ChartDomain<T extends ChartDataTypes> = ReadonlyArray<T>;\nexport type XDomain<T extends ChartDataTypes> = ChartDomain<T>;\nexport type YDomain = ChartDomain<number>;\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n// Backward-compatibility re-export for consumers importing this public type from the internal path.\nexport {\n CartesianChartProps,\n ChartDataTypes,\n ChartDomain,\n ScaleRange,\n ScaleType,\n XDomain,\n XScaleType,\n YDomain,\n YScaleType,\n} from '../../../types/cartesian-chart';\n"]}
@@ -1,4 +1,4 @@
1
- import { ChartDataTypes } from './interfaces';
1
+ import { ChartDataTypes } from '../../../types/cartesian-chart';
2
2
  import { ChartScale, NumericChartScale } from './scales';
3
3
  export interface FormattedTick {
4
4
  position: number;
@@ -1 +1 @@
1
- {"version":3,"file":"label-utils.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/label-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIzD,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,KAAK,EACL,aAAa,EACb,aAAa,GACd,EAAE;IACD,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;IACjC,KAAK,EAAE,UAAU,GAAG,iBAAiB,CAAC;IACtC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAC;CACxC,GAAG,aAAa,EAAE,CAOlB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,UAAQ,4BAGjH;AAkDD,wBAAgB,cAAc,CAAC,OAAO,EAAE,IAAI,GAAG,cAAc,GAAG,SAAS,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAK5G"}
1
+ {"version":3,"file":"label-utils.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/label-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIzD,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,KAAK,EACL,aAAa,EACb,aAAa,GACd,EAAE;IACD,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;IACjC,KAAK,EAAE,UAAU,GAAG,iBAAiB,CAAC;IACtC,aAAa,EAAE,CA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n// SPDX-License-Identifier: Apache-2.0\nimport { ChartDataTypes } from './interfaces';\nimport { ChartScale, NumericChartScale } from './scales';\n\nconst SPACE_BETWEEN = 4;\n\nexport interface FormattedTick {\n position: number;\n space: number;\n lines: string[];\n}\n\nexport function formatTicks({\n ticks,\n scale,\n getLabelSpace,\n tickFormatter,\n}: {\n ticks: readonly ChartDataTypes[];\n scale: ChartScale | NumericChartScale;\n getLabelSpace: (label: string) => number;\n tickFormatter?: (value: any) => string;\n}): FormattedTick[] {\n return ticks.map(tick => {\n const position = scale.d3Scale(tick as any) ?? NaN;\n const label = tickFormatter ? tickFormatter(tick as any) : tick.toString();\n const lines = (label + '').split('\\n');\n return { position, lines, space: Math.max(...lines.map(getLabelSpace)) };\n });\n}\n\nexport function getVisibleTicks(ticks: readonly FormattedTick[], from: number, until: number, balanceTicks = false) {\n ticks = getTicksInRange(ticks, from, until);\n return balanceTicks ? getReducedTicks(ticks) : removeIntersections(ticks);\n}\n\nfunction getTicksInRange(ticks: readonly FormattedTick[], from: number, until: number) {\n return ticks.filter(tick => from <= tick.position - tick.space / 2 && tick.position + tick.space / 2 <= until);\n}\n\nfunction getReducedTicks(ticks: readonly FormattedTick[]): readonly FormattedTick[] {\n const reduceLabelRatio = findReduceLabelRatio(ticks);\n\n const reducedTicks = [];\n for (let index = 0; index < ticks.length; index += reduceLabelRatio) {\n reducedTicks.push(ticks[index]);\n }\n return reducedTicks;\n}\n\n// Returns a ratio such that all elements can be displayed with no intersections.\nfunction findReduceLabelRatio(ticks: readonly FormattedTick[], ratio = 1): number {\n if (ratio >= ticks.length) {\n return ratio;\n }\n for (let i = ratio; i < ticks.length; i += ratio) {\n if (hasIntersection(ticks[i - ratio], ticks[i])) {\n return findReduceLabelRatio(ticks, ratio + 1);\n }\n }\n return ratio;\n}\n\nfunction removeIntersections(ticks: readonly FormattedTick[]) {\n const visibleTicks = [];\n let prevTick = null;\n for (const tick of ticks) {\n if (!prevTick || !hasIntersection(prevTick, tick)) {\n visibleTicks.push(tick);\n prevTick = tick;\n }\n }\n return visibleTicks;\n}\n\nfunction hasIntersection(a: FormattedTick, b: FormattedTick) {\n const [left, right] = a.position < b.position ? [a, b] : [b, a];\n const leftEdge = left.position + left.space / 2 + SPACE_BETWEEN;\n const rightEdge = right.position - right.space / 2;\n return leftEdge > rightEdge;\n}\n\n// Ignoring as unsupported in JSDom.\n/* istanbul ignore next */\nexport function getSVGTextSize(element: null | SVGTextElement): undefined | { width: number; height: number } {\n if (element && element.getBBox) {\n return element.getBBox();\n }\n return undefined;\n}\n"]}
1
+ {"version":3,"file":"label-utils.js","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/label-utils.ts"],"names":[],"mappings":"AAKA,MAAM,aAAa,GAAG,CAAC,CAAC;AAQxB,MAAM,UAAU,WAAW,CAAC,EAC1B,KAAK,EACL,KAAK,EACL,aAAa,EACb,aAAa,GAMd;IACC,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;;QACtB,MAAM,QAAQ,GAAG,MAAA,KAAK,CAAC,OAAO,CAAC,IAAW,CAAC,mCAAI,GAAG,CAAC;QACnD,MAAM,KAAK,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,IAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC3E,MAAM,KAAK,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACvC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC;IAC3E,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAA+B,EAAE,IAAY,EAAE,KAAa,EAAE,YAAY,GAAG,KAAK;IAChH,KAAK,GAAG,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC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,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,mBAAmB,CAAC,KAA+B;IAC1D,MAAM,YAAY,GAAG,EAAE,CAAC;IACxB,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC,QAAQ,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC;YAClD,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxB,QAAQ,GAAG,IAAI,CAAC;QAClB,CAAC;IACH,CAAC;IACD,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,eAAe,CAAC,CAAgB,EAAE,CAAgB;IACzD,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAChE,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,GAAG,aAAa,CAAC;IAChE,MAAM,SAAS,GAAG,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC;IACnD,OAAO,QAAQ,GAAG,SAAS,CAAC;AAC9B,CAAC;AAED,oCAAoC;AACpC,0BAA0B;AAC1B,MAAM,UAAU,cAAc,CAAC,OAA8B;IAC3D,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;QAC/B,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ChartDataTypes } from '../../../types/cartesian-chart';\nimport { ChartScale, NumericChartScale } from './scales';\n\nconst SPACE_BETWEEN = 4;\n\nexport interface FormattedTick {\n position: number;\n space: number;\n lines: string[];\n}\n\nexport function formatTicks({\n ticks,\n scale,\n getLabelSpace,\n tickFormatter,\n}: {\n ticks: readonly ChartDataTypes[];\n scale: ChartScale | NumericChartScale;\n getLabelSpace: (label: string) => number;\n tickFormatter?: (value: any) => string;\n}): FormattedTick[] {\n return ticks.map(tick => {\n const position = scale.d3Scale(tick as any) ?? NaN;\n const label = tickFormatter ? tickFormatter(tick as any) : tick.toString();\n const lines = (label + '').split('\\n');\n return { position, lines, space: Math.max(...lines.map(getLabelSpace)) };\n });\n}\n\nexport function getVisibleTicks(ticks: readonly FormattedTick[], from: number, until: number, balanceTicks = false) {\n ticks = getTicksInRange(ticks, from, until);\n return balanceTicks ? getReducedTicks(ticks) : removeIntersections(ticks);\n}\n\nfunction getTicksInRange(ticks: readonly FormattedTick[], from: number, until: number) {\n return ticks.filter(tick => from <= tick.position - tick.space / 2 && tick.position + tick.space / 2 <= until);\n}\n\nfunction getReducedTicks(ticks: readonly FormattedTick[]): readonly FormattedTick[] {\n const reduceLabelRatio = findReduceLabelRatio(ticks);\n\n const reducedTicks = [];\n for (let index = 0; index < ticks.length; index += reduceLabelRatio) {\n reducedTicks.push(ticks[index]);\n }\n return reducedTicks;\n}\n\n// Returns a ratio such that all elements can be displayed with no intersections.\nfunction findReduceLabelRatio(ticks: readonly FormattedTick[], ratio = 1): number {\n if (ratio >= ticks.length) {\n return ratio;\n }\n for (let i = ratio; i < ticks.length; i += ratio) {\n if (hasIntersection(ticks[i - ratio], ticks[i])) {\n return findReduceLabelRatio(ticks, ratio + 1);\n }\n }\n return ratio;\n}\n\nfunction removeIntersections(ticks: readonly FormattedTick[]) {\n const visibleTicks = [];\n let prevTick = null;\n for (const tick of ticks) {\n if (!prevTick || !hasIntersection(prevTick, tick)) {\n visibleTicks.push(tick);\n prevTick = tick;\n }\n }\n return visibleTicks;\n}\n\nfunction hasIntersection(a: FormattedTick, b: FormattedTick) {\n const [left, right] = a.position < b.position ? [a, b] : [b, a];\n const leftEdge = left.position + left.space / 2 + SPACE_BETWEEN;\n const rightEdge = right.position - right.space / 2;\n return leftEdge > rightEdge;\n}\n\n// Ignoring as unsupported in JSDom.\n/* istanbul ignore next */\nexport function getSVGTextSize(element: null | SVGTextElement): undefined | { width: number; height: number } {\n if (element && element.getBBox) {\n return element.getBBox();\n }\n return undefined;\n}\n"]}
@@ -1,5 +1,5 @@
1
+ import { ChartDataTypes, ChartDomain, ScaleRange, ScaleType } from '../../../types/cartesian-chart';
1
2
  import { ScaleBand, ScaleContinuousNumeric, ScaleTime } from '../../vendor/d3-scale';
2
- import { ChartDataTypes, ChartDomain, ScaleRange, ScaleType } from './interfaces';
3
3
  interface NumericD3Scale {
4
4
  type: 'numeric';
5
5
  scale: ScaleContinuousNumeric<number, number>;
@@ -1 +1 @@
1
- {"version":3,"file":"scales.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/scales.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EAET,sBAAsB,EAGtB,SAAS,EAEV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAElF,UAAU,cAAc;IACtB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,sBAAsB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C;AAED,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,UAAU,kBAAkB;IAC1B,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CAClC;AAED,KAAK,OAAO,GAAG,cAAc,GAAG,WAAW,GAAG,kBAAkB,CAAC;AAEjE,KAAK,aAAa,GAAG,sBAAsB,CAAC,MAAM,E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,EAAE,WAAW,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,EAAE,UAAU;IAInG,SAAS,IAAI,IAAI,IAAI;QAAE,OAAO,EAAE,sBAAsB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;KAAE;IAIrG,MAAM,IAAI,IAAI,IAAI;QAAE,OAAO,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,MAAM,EAAE,WAAW,CAAC,IAAI,CAAC,CAAA;KAAE;IAInF,aAAa,IAAI,IAAI,IAAI;QAAE,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;QAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;KAAE;CAG7F;AAED,qBAAa,iBAAiB;aAKV,SAAS,EAAE,QAAQ,GAAG,KAAK;IAJ7C,SAAgB,KAAK,EAAE,cAAc,CAAC;IACtC,SAAgB,OAAO,EAAE,sBAAsB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBAG9C,SAAS,EAAE,QAAQ,GAAG,KAAK,EAC3C,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,EAC3B,KAAK,EAAE,UAAU,EACjB,YAAY,EAAE,IAAI,GAAG,MAAM;IAU7B,aAAa,IAAI,IAAI,IAAI,KAAK;CAG/B"}
@@ -1,5 +1,3 @@
1
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- // SPDX-License-Identifier: Apache-2.0
3
1
  import { scaleBand, scaleLinear, scaleLog, scaleTime, } from '../../vendor/d3-scale';
4
2
  function isNumericDomain(domain) {
5
3
  return domain.length > 0 && typeof domain[0] === 'number';
@@ -1 +1 @@
1
- {"version":3,"file":"scales.js","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/scales.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAEL,SAAS,EAET,WAAW,EACX,QAAQ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B,EAAE,SAAuC,EAAE,QAAqB;QACjG,OAAO,IAAI,UAAU,CAAC,YAAY,IAAI,IAAI,CAAC,SAAS,EAAE,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1G,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC;IACvC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC;IACpC,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,aAAa,CAAC;IAC3C,CAAC;CACF;AAED,MAAM,OAAO,iBAAiB;IAI5B,YACkB,SAA2B,EAC3C,MAA2B,EAC3B,KAAiB,EACjB,YAA2B;QAHX,cAAS,GAAT,SAAS,CAAkB;QAK3C,MAAM,KAAK,GAAG,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACjE,IAAI,YAAY,KAAK,IAAI,EAAE,CAAC;YAC1B,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3B,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAClC,CAAC;IAED,aAAa;QACX,OAAO,KAAK,CAAC;IACf,CAAC;CACF","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport {\n ScaleBand,\n scaleBand,\n ScaleContinuousNumeric,\n scaleLinear,\n scaleLog,\n ScaleTime,\n scaleTime,\n} from '../../vendor/d3-scale';\nimport { ChartDataTypes, ChartDomain, ScaleRange, ScaleType } from './interfaces';\n\ninterface NumericD3Scale {\n type: 'numeric';\n scale: ScaleContinuousNumeric<number, number>;\n}\n\ninterface TimeD3Scale {\n type: 'time';\n scale: ScaleTime<number, number>;\n}\n\ninterface CategoricalD3Scale {\n type: 'categorical';\n scale: ScaleBand<ChartDataTypes>;\n}\n\ntype D3Scale = NumericD3Scale | TimeD3Scale | CategoricalD3Scale;\n\ntype InternalScale = ScaleContinuousNumeric<number, number> | ScaleBand<ChartDataTypes> | ScaleTime<number, number>;\n\nfunction isNumericDomain(domain: ChartDomain<ChartDataTypes>): domain is number[] {\n return domain.length > 0 && typeof domain[0] === 'number';\n}\n\nfunction isDateDomain(domain: ChartDomain<ChartDataTypes>): domain is Date[] {\n return domain.length > 0 && domain[0] instanceof Date;\n}\n\nfunction createNumericScale(type: ScaleType, domain: ChartDomain<ChartDataTypes>) {\n let scale: ScaleContinuousNumeric<number, number>;\n switch (type) {\n case 'log':\n scale = scaleLog();\n break;\n default:\n scale = scaleLinear();\n }\n\n if (isNumericDomain(domain)) {\n scale.domain(domain);\n }\n\n return scale;\n}\n\nfunction createTimeScale(domain: ChartDomain<ChartDataTypes>) {\n const scale = scaleTime();\n if (isDateDomain(domain)) {\n scale.domain(domain);\n }\n return scale;\n}\n\nfunction createBandScale(domain: ChartDomain<ChartDataTypes>) {\n const scale = scaleBand<ChartDataTypes>().padding(0.1);\n scale.domain(domain);\n return scale;\n}\n\nfunction createScale(type: ScaleType, domain: ChartDomain<ChartDataTypes>, range: ScaleRange): D3Scale {\n switch (type) {\n case 'linear':\n case 'log':\n return { type: 'numeric', scale: createNumericScale(type, domain).range(range) };\n\n case 'time':\n return { type: 'time', scale: createTimeScale(domain).range(range) };\n\n case 'categorical':\n return { type: 'categorical', scale: createBandScale(domain).range(range) };\n }\n}\n\nexport class ChartScale {\n public readonly scale: D3Scale;\n public readonly d3Scale: InternalScale;\n\n constructor(\n public readonly scaleType: ScaleType,\n public readonly domain: ChartDomain<ChartDataTypes>,\n public readonly range: ScaleRange,\n noCategoricalOuterPadding = false\n ) {\n this.scale = createScale(this.scaleType, this.domain, this.range);\n this.d3Scale = this.scale.scale;\n\n if (this.isCategorical()) {\n if (noCategoricalOuterPadding) {\n // Categorical charts with only line (or threshold) series don't need as much out padding\n // compared to a bar series. Increasing the inner padding to push more data points to the outside.\n this.d3Scale.paddingInner(0.7);\n this.d3Scale.paddingOuter(0);\n } else {\n this.d3Scale.paddingInner(0.2);\n this.d3Scale.paddingOuter(0.05);\n }\n }\n }\n\n cloneScale(newScaleType?: ScaleType, newDomain?: ChartDomain<ChartDataTypes>, newRange?: ScaleRange) {\n return new ChartScale(newScaleType || this.scaleType, newDomain || this.domain, newRange || this.range);\n }\n\n isNumeric(): this is { d3Scale: ScaleContinuousNumeric<number, number>; domain: ChartDomain<number> } {\n return this.scale.type === 'numeric';\n }\n\n isTime(): this is { d3Scale: ScaleTime<number, number>; domain: ChartDomain<Date> } {\n return this.scale.type === 'time';\n }\n\n isCategorical(): this is { d3Scale: ScaleBand<ChartDataTypes>; domain: ChartDomain<string> } {\n return this.scale.type === 'categorical';\n }\n}\n\nexport class NumericChartScale {\n public readonly scale: NumericD3Scale;\n public readonly d3Scale: ScaleContinuousNumeric<number, number>;\n\n constructor(\n public readonly scaleType: 'linear' | 'log',\n domain: ChartDomain<number>,\n range: ScaleRange,\n adjustDomain: null | number\n ) {\n const scale = createNumericScale(scaleType, domain).range(range);\n if (adjustDomain !== null) {\n scale.nice(adjustDomain);\n }\n this.scale = { type: 'numeric', scale };\n this.d3Scale = this.scale.scale;\n }\n\n isCategorical(): this is never {\n return false;\n }\n}\n"]}
1
+ {"version":3,"file":"scales.js","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/scales.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,SAAS,EAET,WAAW,EACX,QAAQ,EAER,SAAS,GACV,MAAM,uBAAuB,CAAC;AAqB/B,SAAS,eAAe,CAAC,MAAmC;IAC1D,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,MAAM,CAAC,CAAC,CA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AI,CAAC,KAAK,CAAC,CAAC;IAC1G,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC;IACvC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC;IACpC,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,aAAa,CAAC;IAC3C,CAAC;CACF;AAED,MAAM,OAAO,iBAAiB;IAI5B,YACkB,SAA2B,EAC3C,MAA2B,EAC3B,KAAiB,EACjB,YAA2B;QAHX,cAAS,GAAT,SAAS,CAAkB;QAK3C,MAAM,KAAK,GAAG,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACjE,IAAI,YAAY,KAAK,IAAI,EAAE,CAAC;YAC1B,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3B,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAClC,CAAC;IAED,aAAa;QACX,OAAO,KAAK,CAAC;IACf,CAAC;CACF","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ChartDataTypes, ChartDomain, ScaleRange, ScaleType } from '../../../types/cartesian-chart';\nimport {\n ScaleBand,\n scaleBand,\n ScaleContinuousNumeric,\n scaleLinear,\n scaleLog,\n ScaleTime,\n scaleTime,\n} from '../../vendor/d3-scale';\n\ninterface NumericD3Scale {\n type: 'numeric';\n scale: ScaleContinuousNumeric<number, number>;\n}\n\ninterface TimeD3Scale {\n type: 'time';\n scale: ScaleTime<number, number>;\n}\n\ninterface CategoricalD3Scale {\n type: 'categorical';\n scale: ScaleBand<ChartDataTypes>;\n}\n\ntype D3Scale = NumericD3Scale | TimeD3Scale | CategoricalD3Scale;\n\ntype InternalScale = ScaleContinuousNumeric<number, number> | ScaleBand<ChartDataTypes> | ScaleTime<number, number>;\n\nfunction isNumericDomain(domain: ChartDomain<ChartDataTypes>): domain is number[] {\n return domain.length > 0 && typeof domain[0] === 'number';\n}\n\nfunction isDateDomain(domain: ChartDomain<ChartDataTypes>): domain is Date[] {\n return domain.length > 0 && domain[0] instanceof Date;\n}\n\nfunction createNumericScale(type: ScaleType, domain: ChartDomain<ChartDataTypes>) {\n let scale: ScaleContinuousNumeric<number, number>;\n switch (type) {\n case 'log':\n scale = scaleLog();\n break;\n default:\n scale = scaleLinear();\n }\n\n if (isNumericDomain(domain)) {\n scale.domain(domain);\n }\n\n return scale;\n}\n\nfunction createTimeScale(domain: ChartDomain<ChartDataTypes>) {\n const scale = scaleTime();\n if (isDateDomain(domain)) {\n scale.domain(domain);\n }\n return scale;\n}\n\nfunction createBandScale(domain: ChartDomain<ChartDataTypes>) {\n const scale = scaleBand<ChartDataTypes>().padding(0.1);\n scale.domain(domain);\n return scale;\n}\n\nfunction createScale(type: ScaleType, domain: ChartDomain<ChartDataTypes>, range: ScaleRange): D3Scale {\n switch (type) {\n case 'linear':\n case 'log':\n return { type: 'numeric', scale: createNumericScale(type, domain).range(range) };\n\n case 'time':\n return { type: 'time', scale: createTimeScale(domain).range(range) };\n\n case 'categorical':\n return { type: 'categorical', scale: createBandScale(domain).range(range) };\n }\n}\n\nexport class ChartScale {\n public readonly scale: D3Scale;\n public readonly d3Scale: InternalScale;\n\n constructor(\n public readonly scaleType: ScaleType,\n public readonly domain: ChartDomain<ChartDataTypes>,\n public readonly range: ScaleRange,\n noCategoricalOuterPadding = false\n ) {\n this.scale = createScale(this.scaleType, this.domain, this.range);\n this.d3Scale = this.scale.scale;\n\n if (this.isCategorical()) {\n if (noCategoricalOuterPadding) {\n // Categorical charts with only line (or threshold) series don't need as much out padding\n // compared to a bar series. Increasing the inner padding to push more data points to the outside.\n this.d3Scale.paddingInner(0.7);\n this.d3Scale.paddingOuter(0);\n } else {\n this.d3Scale.paddingInner(0.2);\n this.d3Scale.paddingOuter(0.05);\n }\n }\n }\n\n cloneScale(newScaleType?: ScaleType, newDomain?: ChartDomain<ChartDataTypes>, newRange?: ScaleRange) {\n return new ChartScale(newScaleType || this.scaleType, newDomain || this.domain, newRange || this.range);\n }\n\n isNumeric(): this is { d3Scale: ScaleContinuousNumeric<number, number>; domain: ChartDomain<number> } {\n return this.scale.type === 'numeric';\n }\n\n isTime(): this is { d3Scale: ScaleTime<number, number>; domain: ChartDomain<Date> } {\n return this.scale.type === 'time';\n }\n\n isCategorical(): this is { d3Scale: ScaleBand<ChartDataTypes>; domain: ChartDomain<string> } {\n return this.scale.type === 'categorical';\n }\n}\n\nexport class NumericChartScale {\n public readonly scale: NumericD3Scale;\n public readonly d3Scale: ScaleContinuousNumeric<number, number>;\n\n constructor(\n public readonly scaleType: 'linear' | 'log',\n domain: ChartDomain<number>,\n range: ScaleRange,\n adjustDomain: null | number\n ) {\n const scale = createNumericScale(scaleType, domain).range(range);\n if (adjustDomain !== null) {\n scale.nice(adjustDomain);\n }\n this.scale = { type: 'numeric', scale };\n this.d3Scale = this.scale.scale;\n }\n\n isCategorical(): this is never {\n return false;\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
+ import { ChartDataTypes } from '../../../types/cartesian-chart';
1
2
  import { ChartScale, NumericChartScale } from '../../components/cartesian-chart/scales';
2
- import { ChartDataTypes } from './interfaces';
3
3
  export declare function getXTickCount(width: number): number;
4
4
  export declare function getYTickCount(height: number): number;
5
5
  export declare function createXTicks(scale: ChartScale, values: number): ChartDataTypes[];
@@ -1 +1 @@
1
- {"version":3,"file":"ticks.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/ticks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAExF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAM9C,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,UAE1C;AACD,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,UAE3C;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,EAAE,CAUhF;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAU/E"}
1
+ {"version":3,"file":"ticks.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/ticks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAOxF,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,UAE1C;AACD,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,UAE3C;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,EAAE,CAUhF;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAU/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"ticks.js","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/ticks.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGjD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGrE,uEAAuE;AACvE,6EAA6E;AAC7E,yFAAyF;AACzF,uFAAuF;AACvF,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,kB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-2.0\nimport { add, differenceInDays } from 'date-fns';\n\nimport { ChartScale, NumericChartScale } from '../../components/cartesian-chart/scales';\nimport { X_TICK_COUNT_RATIO, Y_TICK_COUNT_RATIO } from './constants';\nimport { ChartDataTypes } from './interfaces';\n\n// The number of ticks is currently defined by the length of the scale.\n// The x scale tends to have longer labels, so we're using less ticks for it.\n// These numbers are currently based on first impressions and might change in the future.\n// We might also open up an API in the future to control the amount of ticks displayed.\nexport function getXTickCount(width: number) {\n return Math.ceil(width / X_TICK_COUNT_RATIO);\n}\nexport function getYTickCount(height: number) {\n return Math.ceil(height / Y_TICK_COUNT_RATIO);\n}\n\nexport function createXTicks(scale: ChartScale, values: number): ChartDataTypes[] {\n if (scale.isNumeric()) {\n return scale.d3Scale.ticks(values);\n } else if (scale.isTime()) {\n const rawTicks = scale.d3Scale.ticks(values) as Date[];\n const domain = scale.d3Scale.domain() as Date[];\n return uniform(rawTicks, domain[domain.length - 1]);\n } else {\n return scale.d3Scale.domain();\n }\n}\n\nexport function createYTicks(scale: NumericChartScale, values: number): number[] {\n const ticks = scale.d3Scale.ticks(values);\n\n // The logarithmic scale sometimes produces a very large amount of (major and minor) ticks,\n // at which point we need to reduce them significantly for space.\n if (scale.scaleType === 'log' && ticks.length > 10) {\n return scale.d3Scale.ticks(3);\n }\n\n return ticks;\n}\n\n/**\n * Ensure uniformly-spaced ticks for 2-day intervals. d3-scale generates\n * ticks for even or odd numbers, which causes varying interval lengths\n * between months.\n */\nfunction uniform(ticks: Date[], max: Date): Date[] {\n if (ticks.length < 3 || !isMixedDayInterval(ticks)) {\n return ticks;\n }\n\n return createTwoDayInterval(ticks[0], max);\n}\n\nfunction isMixedDayInterval(ticks: Date[]) {\n let oneDayInterval = false;\n let twoDayInterval = false;\n\n for (let i = 1; i < ticks.length; i++) {\n oneDayInterval = oneDayInterval || isDayInterval(ticks[i - 1], ticks[i], 1);\n twoDayInterval = twoDayInterval || isDayInterval(ticks[i - 1], ticks[i], 2);\n }\n return oneDayInterval && twoDayInterval;\n}\n\nfunction isDayInterval(a: Date, b: Date, difference = 1) {\n return Math.abs(differenceInDays(a, b)) === difference;\n}\n\nfunction createTwoDayInterval(start: Date, max: Date) {\n const result: Date[] = [];\n let curr = start;\n while (curr < max) {\n result.push(curr);\n curr = add(curr, { days: 2 });\n }\n return result;\n}\n"]}
1
+ {"version":3,"file":"ticks.js","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/ticks.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAIjD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAErE,uEAAuE;AACvE,6EAA6E;AAC7E,yFAAyF;AACzF,uFAAuF;AACvF,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,kBAAkB,CAAC,CAAC;AAC/C,CAAC;AACD,MAAM,UAAU,aAAa,CAAC,MAAc;IAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAiB,EAAE,MAAc;IAC5D,IAAI,KAAK,CAAC,SAAS,EAAE,EAAE,CAAC;QACtB,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;SAAM,IAAI,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC;QAC1B,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAW,CAAC;QACvD,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,EAAY,CAAC;QAChD,OAAO,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;IACtD,CAAC;SAAM,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;AAC1C,CAAC;AAED,SAAS,aAAa,CAAC,CAAO,EAAE,CAAO,EAAE,UAAU,GAAG,CAAC;IACrD,OAAO,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC;AACzD,CAAC;AAED,SAAS,oBAAoB,CAAC,KAAW,EAAE,GAAS;IAClD,MAAM,MAAM,GAAW,EAAE,CAAC;IAC1B,IAAI,IAAI,GAAG,KAAK,CAAC;IACjB,OAAO,IAAI,GAAG,GAAG,EAAE,CAAC;QAClB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClB,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { add, differenceInDays } from 'date-fns';\n\nimport { ChartDataTypes } from '../../../types/cartesian-chart';\nimport { ChartScale, NumericChartScale } from '../../components/cartesian-chart/scales';\nimport { X_TICK_COUNT_RATIO, Y_TICK_COUNT_RATIO } from './constants';\n\n// The number of ticks is currently defined by the length of the scale.\n// The x scale tends to have longer labels, so we're using less ticks for it.\n// These numbers are currently based on first impressions and might change in the future.\n// We might also open up an API in the future to control the amount of ticks displayed.\nexport function getXTickCount(width: number) {\n return Math.ceil(width / X_TICK_COUNT_RATIO);\n}\nexport function getYTickCount(height: number) {\n return Math.ceil(height / Y_TICK_COUNT_RATIO);\n}\n\nexport function createXTicks(scale: ChartScale, values: number): ChartDataTypes[] {\n if (scale.isNumeric()) {\n return scale.d3Scale.ticks(values);\n } else if (scale.isTime()) {\n const rawTicks = scale.d3Scale.ticks(values) as Date[];\n const domain = scale.d3Scale.domain() as Date[];\n return uniform(rawTicks, domain[domain.length - 1]);\n } else {\n return scale.d3Scale.domain();\n }\n}\n\nexport function createYTicks(scale: NumericChartScale, values: number): number[] {\n const ticks = scale.d3Scale.ticks(values);\n\n // The logarithmic scale sometimes produces a very large amount of (major and minor) ticks,\n // at which point we need to reduce them significantly for space.\n if (scale.scaleType === 'log' && ticks.length > 10) {\n return scale.d3Scale.ticks(3);\n }\n\n return ticks;\n}\n\n/**\n * Ensure uniformly-spaced ticks for 2-day intervals. d3-scale generates\n * ticks for even or odd numbers, which causes varying interval lengths\n * between months.\n */\nfunction uniform(ticks: Date[], max: Date): Date[] {\n if (ticks.length < 3 || !isMixedDayInterval(ticks)) {\n return ticks;\n }\n\n return createTwoDayInterval(ticks[0], max);\n}\n\nfunction isMixedDayInterval(ticks: Date[]) {\n let oneDayInterval = false;\n let twoDayInterval = false;\n\n for (let i = 1; i < ticks.length; i++) {\n oneDayInterval = oneDayInterval || isDayInterval(ticks[i - 1], ticks[i], 1);\n twoDayInterval = twoDayInterval || isDayInterval(ticks[i - 1], ticks[i], 2);\n }\n return oneDayInterval && twoDayInterval;\n}\n\nfunction isDayInterval(a: Date, b: Date, difference = 1) {\n return Math.abs(differenceInDays(a, b)) === difference;\n}\n\nfunction createTwoDayInterval(start: Date, max: Date) {\n const result: Date[] = [];\n let curr = start;\n while (curr < max) {\n result.push(curr);\n curr = add(curr, { days: 2 });\n }\n return result;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BaseComponentProps } from '../../base-component';
2
+ import { BaseComponentProps } from '../../../types/base-component';
3
3
  interface I18nStrings {
4
4
  filterLabel?: string;
5
5
  filterPlaceholder?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/chart-filter/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAOjD,OAAO,EAAE,kBAAkB,EAAgB,MAAM,sBAAsB,CAAC;AAKxE,UAAU,WAAW;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAA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AAE,eAAe,EACzB,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,EACjC,iBAAiB,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,uBAAuB,EACvD,aAAa,EAAC,MAAM,EACpB,UAAU,EAAC,UAAU,EACrB,QAAQ,EAAE,IAAI,EACd,UAAU,EAAE,IAAI,GAChB,CACgB,CACrB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { memo, useCallback } from 'react';\nimport clsx from 'clsx';\n\nimport InternalFormField from '../../../form-field/internal';\nimport { useInternalI18n } from '../../../i18n/context';\nimport { MultiselectProps } from '../../../multiselect/interfaces';\nimport InternalMultiselect from '../../../multiselect/internal';\nimport { BaseComponentProps, getBaseProps } from '../../base-component';\nimport { NonCancelableEventHandler } from '../../events';\n\nimport styles from './styles.css.js';\n\ninterface I18nStrings {\n filterLabel?: string;\n filterPlaceholder?: string;\n filterSelectedAriaLabel?: string;\n}\n\ninterface ChartFilterItem<T> {\n label: string;\n marker: React.ReactNode;\n datum: T;\n}\n\nexport interface ChartFilterProps<T> extends BaseComponentProps {\n series: ReadonlyArray<ChartFilterItem<T>>;\n selectedSeries?: ReadonlyArray<T>;\n onChange: (selectedSeries: ReadonlyArray<T>) => void;\n i18nStrings?: I18nStrings;\n}\n\nexport default memo(ChartFilter) as typeof ChartFilter;\n\nfunction ChartFilter<T>({ series, i18nStrings, selectedSeries, onChange, ...restProps }: ChartFilterProps<T>) {\n const baseProps = getBaseProps(restProps);\n const className = clsx(baseProps.className, styles.root);\n const i18n = useInternalI18n('[charts]');\n\n const defaultOptions = series.map((d, i) => ({\n label: d.label,\n value: '' + i,\n datum: d.datum,\n __customIcon: <span className={styles['custom-icon-wrapper']}>{d.marker}</span>,\n }));\n\n const selectedOptions = defaultOptions.filter(option => selectedSeries?.indexOf(option.datum) !== -1);\n\n const updateSelection = useCallback<NonCancelableEventHandler<MultiselectProps.MultiselectChangeDetail>>(\n ({ detail: { selectedOptions } }) => {\n const selectedSeries = defaultOptions\n .filter(option => selectedOptions.indexOf(option) !== -1)\n .map(option => option.datum);\n onChange(selectedSeries);\n },\n [onChange, defaultOptions]\n );\n\n return (\n <InternalFormField\n {...baseProps}\n label={i18n('i18nStrings.filterLabel', i18nStrings?.filterLabel)}\n className={className}\n >\n <InternalMultiselect\n placeholder={i18n('i18nStrings.filterPlaceholder', i18nStrings?.filterPlaceholder)}\n options={defaultOptions}\n selectedOptions={selectedOptions}\n onChange={updateSelection}\n className={styles['chart-filter']}\n selectedAriaLabel={i18nStrings?.filterSelectedAriaLabel}\n filteringType=\"none\"\n statusType=\"finished\"\n keepOpen={true}\n hideTokens={true}\n />\n </InternalFormField>\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/chart-filter/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,iBAAiB,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,mBAAmB,MAAM,+BAA+B,CAAC;AAGhE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAqBrC,eAAe,IAAI,CAAC,WAAW,CAAuB,CAAC;AAEvD,SAAS,WAAW,CAAI,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAuB;IAC1G,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;IAC1C,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IACzD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CAAC,EAClF,OAAO,EAAE,cAAc,EACvB,eAAe,EAAE,eAAe,EAChC,QAAQ,EAAE,eAAe,EACzB,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,EACjC,iBAAiB,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,uBAAuB,EACvD,aAAa,EAAC,MAAM,EACpB,UAAU,EAAC,UAAU,EACrB,QAAQ,EAAE,IAAI,EACd,UAAU,EAAE,IAAI,GAChB,CACgB,CACrB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { memo, useCallback } from 'react';\nimport clsx from 'clsx';\n\nimport InternalFormField from '../../../form-field/internal';\nimport { useInternalI18n } from '../../../i18n/context';\nimport { MultiselectProps } from '../../../multiselect/interfaces';\nimport InternalMultiselect from '../../../multiselect/internal';\nimport { BaseComponentProps } from '../../../types/base-component';\nimport { NonCancelableEventHandler } from '../../../types/events';\nimport { getBaseProps } from '../../base-component';\n\nimport styles from './styles.css.js';\n\ninterface I18nStrings {\n filterLabel?: string;\n filterPlaceholder?: string;\n filterSelectedAriaLabel?: string;\n}\n\ninterface ChartFilterItem<T> {\n label: string;\n marker: React.ReactNode;\n datum: T;\n}\n\nexport interface ChartFilterProps<T> extends BaseComponentProps {\n series: ReadonlyArray<ChartFilterItem<T>>;\n selectedSeries?: ReadonlyArray<T>;\n onChange: (selectedSeries: ReadonlyArray<T>) => void;\n i18nStrings?: I18nStrings;\n}\n\nexport default memo(ChartFilter) as typeof ChartFilter;\n\nfunction ChartFilter<T>({ series, i18nStrings, selectedSeries, onChange, ...restProps }: ChartFilterProps<T>) {\n const baseProps = getBaseProps(restProps);\n const className = clsx(baseProps.className, styles.root);\n const i18n = useInternalI18n('[charts]');\n\n const defaultOptions = series.map((d, i) => ({\n label: d.label,\n value: '' + i,\n datum: d.datum,\n __customIcon: <span className={styles['custom-icon-wrapper']}>{d.marker}</span>,\n }));\n\n const selectedOptions = defaultOptions.filter(option => selectedSeries?.indexOf(option.datum) !== -1);\n\n const updateSelection = useCallback<NonCancelableEventHandler<MultiselectProps.MultiselectChangeDetail>>(\n ({ detail: { selectedOptions } }) => {\n const selectedSeries = defaultOptions\n .filter(option => selectedOptions.indexOf(option) !== -1)\n .map(option => option.datum);\n onChange(selectedSeries);\n },\n [onChange, defaultOptions]\n );\n\n return (\n <InternalFormField\n {...baseProps}\n label={i18n('i18nStrings.filterLabel', i18nStrings?.filterLabel)}\n className={className}\n >\n <InternalMultiselect\n placeholder={i18n('i18nStrings.filterPlaceholder', i18nStrings?.filterPlaceholder)}\n options={defaultOptions}\n selectedOptions={selectedOptions}\n onChange={updateSelection}\n className={styles['chart-filter']}\n selectedAriaLabel={i18nStrings?.filterSelectedAriaLabel}\n filteringType=\"none\"\n statusType=\"finished\"\n keepOpen={true}\n hideTokens={true}\n />\n </InternalFormField>\n );\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { BaseComponentProps } from '../../base-component';
2
+ import { BaseComponentProps } from '../../../types/base-component';
3
3
  import { ChartSeriesMarkerType } from '../chart-series-marker';
4
4
  interface ChartDetailPair {
5
5
  key: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/chart-series-details/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAoB,SAAS,EAAqB,MAAM,OAAO,CAAC;AAM9E,OAAO,EAAE,kBAAkB,EAAgB,MAAM,sBAAsB,CAAC;AACxE,OAA0B,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAKlF,UAAU,eAAe;IACvB,GAAG,EAAE,SAAS,CAAC;IACf,KAAK,EAAE,SAAS,CAAC;CAClB;AAUD,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAA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1D,OAAO,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAC9C,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACjE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;;AAED,wBAAoD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/chart-series-details/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAa,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAE7E,OAAO,yBAAyB,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAsB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,iBAA4C,MAAM,wBAAwB,CAAC;AAClF,OAAO,oBAAoB,EAAE,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEpF,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAgCrC,eAAe,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAEpD,SAAS,kBAAkB,CACzB,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,SAAS,EAA2B,EACjH,GAA8B;IAE9B,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;IAC1C,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IACzD,MAAM,UAAU,GAAG,MAAM,CAAwB,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CAAQ,CACzC;QACL,QAAQ,IAAI,oBAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,GAAI,CACzC,CACJ,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { forwardRef, memo, ReactNode, useEffect, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\n\nimport InternalExpandableSection from '../../../expandable-section/internal';\nimport { BaseComponentProps, getBaseProps } from '../../base-component';\nimport ChartSeriesMarker, { ChartSeriesMarkerType } from '../chart-series-marker';\nimport getSeriesDetailsText, { screenReaderTextClass } from './series-details-text';\n\nimport styles from './styles.css.js';\n\ninterface ChartDetailPair {\n key: ReactNode;\n value: ReactNode;\n}\n\ninterface ListItemProps {\n itemKey: ReactNode;\n value: ReactNode;\n subItems?: ReadonlyArray<ChartDetailPair>;\n markerType?: ChartSeriesMarkerType;\n color?: string;\n}\n\nexport interface ChartSeriesDetailItem extends ChartDetailPair {\n markerType?: ChartSeriesMarkerType;\n color?: string;\n isDimmed?: boolean;\n subItems?: ReadonlyArray<ChartDetailPair>;\n expandableId?: string;\n}\nexport type ExpandedSeries = Set<string>;\n\ninterface ChartSeriesDetailsProps extends BaseComponentProps {\n details: ReadonlyArray<ChartSeriesDetailItem>;\n expandedSeries?: ExpandedSeries;\n setPopoverText?: (s: string) => void;\n setExpandedState?: (seriesTitle: string, state: boolean) => void;\n compactList?: boolean;\n}\n\nexport default memo(forwardRef(ChartSeriesDetails));\n\nfunction ChartSeriesDetails(\n { details, expandedSeries, setPopoverText, setExpandedState, compactList, ...restProps }: ChartSeriesDetailsProps,\n ref: React.Ref<HTMLDivElement>\n) {\n const baseProps = getBaseProps(restProps);\n const className = clsx(baseProps.className, styles.root);\n const detailsRef = useRef<HTMLDivElement | null>(null);\n const mergedRef = useMergeRefs(ref, detailsRef);\n\n // Once the component has rendered, pass its content in plain text\n // so that it can be used by screen readers.\n useEffect(() => {\n if (setPopoverText) {\n if (detailsRef.current) {\n setPopoverText(getSeriesDetailsText(detailsRef.current));\n }\n return () => {\n setPopoverText('');\n };\n }\n }, [details, setPopoverText]);\n\n const isExpanded = (seriesTitle: string) => !!expandedSeries && expandedSeries.has(seriesTitle);\n\n return (\n <div {...baseProps} className={className} ref={mergedRef}>\n <ul className={clsx(styles.list, compactList && styles.compact)}>\n {details.map(({ key, value, markerType, color, isDimmed, subItems, expandableId }, index) => (\n <li\n key={index}\n className={clsx({\n [styles.dimmed]: isDimmed,\n [styles['list-item']]: true,\n [styles['with-sub-items']]: subItems?.length,\n [styles.expandable]: !!expandableId,\n })}\n >\n {subItems?.length && !!expandableId ? (\n <ExpandableSeries\n itemKey={key}\n value={value}\n markerType={markerType}\n color={color}\n subItems={subItems}\n expanded={isExpanded(expandableId)}\n setExpandedState={state => setExpandedState && setExpandedState(expandableId, state)}\n />\n ) : (\n <NonExpandableSeries\n itemKey={key}\n value={value}\n markerType={markerType}\n color={color}\n subItems={subItems}\n />\n )}\n </li>\n ))}\n </ul>\n </div>\n );\n}\n\nfunction SubItems({\n items,\n expandable,\n expanded,\n}: {\n items: ReadonlyArray<ChartDetailPair>;\n expandable?: boolean;\n expanded?: boolean;\n}) {\n return (\n <ul className={clsx(styles['sub-items'], expandable && styles.expandable)}>\n {items.map(({ key, value }, index) => (\n <li\n key={index}\n className={clsx(\n styles['inner-list-item'],\n styles['key-value-pair'],\n (expanded || !expandable) && screenReaderTextClass\n )}\n >\n <span className={styles.key}>{key}</span>\n <span className={styles.value}>{value}</span>\n </li>\n ))}\n </ul>\n );\n}\n\nfunction ExpandableSeries({\n itemKey,\n value,\n subItems,\n markerType,\n color,\n expanded,\n setExpandedState,\n}: ListItemProps &\n Required<Pick<ListItemProps, 'subItems'>> & {\n expanded: boolean;\n setExpandedState: (state: boolean) => void;\n }) {\n return (\n <div className={styles['expandable-section']}>\n {markerType && color && <ChartSeriesMarker type={markerType} color={color} />}\n <div className={styles['full-width']}>\n <InternalExpandableSection\n variant=\"compact\"\n headerText={itemKey}\n headerActions={<span className={clsx(styles.value, styles.expandable)}>{value}</span>}\n expanded={expanded}\n onChange={({ detail }) => setExpandedState(detail.expanded)}\n >\n <SubItems items={subItems} expandable={true} expanded={expanded} />\n </InternalExpandableSection>\n </div>\n </div>\n );\n}\n\nfunction NonExpandableSeries({ itemKey, value, subItems, markerType, color }: ListItemProps) {\n return (\n <>\n <div className={clsx(styles['key-value-pair'], screenReaderTextClass)}>\n <div className={styles.key}>\n {markerType && color && <ChartSeriesMarker type={markerType} color={color} />}\n <span>{itemKey}</span>\n </div>\n <span className={styles.value}>{value}</span>\n </div>\n {subItems && <SubItems items={subItems} />}\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/chart-series-details/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAa,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAE7E,OAAO,yBAAyB,MAAM,sCAAsC,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,iBAA4C,MAAM,wBAAwB,CAAC;AAClF,OAAO,oBAAoB,EAAE,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEpF,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAgCrC,eAAe,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAEpD,SAAS,kBAAkB,CACzB,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,SAAS,EAA2B,EACjH,GAA8B;IAE9B,MAAM,SAAS,GAAG,YAAY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C,iBAAiB,IAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,GAAI;gBAC7E,kCAAO,OAAO,CAAQ,CAClB;YACN,8BAAM,SAAS,EAAE,MAAM,CAAC,KAAK,IAAG,KAAK,CAAQ,CACzC;QACL,QAAQ,IAAI,oBAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,GAAI,CACzC,CACJ,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { forwardRef, memo, ReactNode, useEffect, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\n\nimport InternalExpandableSection from '../../../expandable-section/internal';\nimport { BaseComponentProps } from '../../../types/base-component';\nimport { getBaseProps } from '../../base-component';\nimport ChartSeriesMarker, { ChartSeriesMarkerType } from '../chart-series-marker';\nimport getSeriesDetailsText, { screenReaderTextClass } from './series-details-text';\n\nimport styles from './styles.css.js';\n\ninterface ChartDetailPair {\n key: ReactNode;\n value: ReactNode;\n}\n\ninterface ListItemProps {\n itemKey: ReactNode;\n value: ReactNode;\n subItems?: ReadonlyArray<ChartDetailPair>;\n markerType?: ChartSeriesMarkerType;\n color?: string;\n}\n\nexport interface ChartSeriesDetailItem extends ChartDetailPair {\n markerType?: ChartSeriesMarkerType;\n color?: string;\n isDimmed?: boolean;\n subItems?: ReadonlyArray<ChartDetailPair>;\n expandableId?: string;\n}\nexport type ExpandedSeries = Set<string>;\n\ninterface ChartSeriesDetailsProps extends BaseComponentProps {\n details: ReadonlyArray<ChartSeriesDetailItem>;\n expandedSeries?: ExpandedSeries;\n setPopoverText?: (s: string) => void;\n setExpandedState?: (seriesTitle: string, state: boolean) => void;\n compactList?: boolean;\n}\n\nexport default memo(forwardRef(ChartSeriesDetails));\n\nfunction ChartSeriesDetails(\n { details, expandedSeries, setPopoverText, setExpandedState, compactList, ...restProps }: ChartSeriesDetailsProps,\n ref: React.Ref<HTMLDivElement>\n) {\n const baseProps = getBaseProps(restProps);\n const className = clsx(baseProps.className, styles.root);\n const detailsRef = useRef<HTMLDivElement | null>(null);\n const mergedRef = useMergeRefs(ref, detailsRef);\n\n // Once the component has rendered, pass its content in plain text\n // so that it can be used by screen readers.\n useEffect(() => {\n if (setPopoverText) {\n if (detailsRef.current) {\n setPopoverText(getSeriesDetailsText(detailsRef.current));\n }\n return () => {\n setPopoverText('');\n };\n }\n }, [details, setPopoverText]);\n\n const isExpanded = (seriesTitle: string) => !!expandedSeries && expandedSeries.has(seriesTitle);\n\n return (\n <div {...baseProps} className={className} ref={mergedRef}>\n <ul className={clsx(styles.list, compactList && styles.compact)}>\n {details.map(({ key, value, markerType, color, isDimmed, subItems, expandableId }, index) => (\n <li\n key={index}\n className={clsx({\n [styles.dimmed]: isDimmed,\n [styles['list-item']]: true,\n [styles['with-sub-items']]: subItems?.length,\n [styles.expandable]: !!expandableId,\n })}\n >\n {subItems?.length && !!expandableId ? (\n <ExpandableSeries\n itemKey={key}\n value={value}\n markerType={markerType}\n color={color}\n subItems={subItems}\n expanded={isExpanded(expandableId)}\n setExpandedState={state => setExpandedState && setExpandedState(expandableId, state)}\n />\n ) : (\n <NonExpandableSeries\n itemKey={key}\n value={value}\n markerType={markerType}\n color={color}\n subItems={subItems}\n />\n )}\n </li>\n ))}\n </ul>\n </div>\n );\n}\n\nfunction SubItems({\n items,\n expandable,\n expanded,\n}: {\n items: ReadonlyArray<ChartDetailPair>;\n expandable?: boolean;\n expanded?: boolean;\n}) {\n return (\n <ul className={clsx(styles['sub-items'], expandable && styles.expandable)}>\n {items.map(({ key, value }, index) => (\n <li\n key={index}\n className={clsx(\n styles['inner-list-item'],\n styles['key-value-pair'],\n (expanded || !expandable) && screenReaderTextClass\n )}\n >\n <span className={styles.key}>{key}</span>\n <span className={styles.value}>{value}</span>\n </li>\n ))}\n </ul>\n );\n}\n\nfunction ExpandableSeries({\n itemKey,\n value,\n subItems,\n markerType,\n color,\n expanded,\n setExpandedState,\n}: ListItemProps &\n Required<Pick<ListItemProps, 'subItems'>> & {\n expanded: boolean;\n setExpandedState: (state: boolean) => void;\n }) {\n return (\n <div className={styles['expandable-section']}>\n {markerType && color && <ChartSeriesMarker type={markerType} color={color} />}\n <div className={styles['full-width']}>\n <InternalExpandableSection\n variant=\"compact\"\n headerText={itemKey}\n headerActions={<span className={clsx(styles.value, styles.expandable)}>{value}</span>}\n expanded={expanded}\n onChange={({ detail }) => setExpandedState(detail.expanded)}\n >\n <SubItems items={subItems} expandable={true} expanded={expanded} />\n </InternalExpandableSection>\n </div>\n </div>\n );\n}\n\nfunction NonExpandableSeries({ itemKey, value, subItems, markerType, color }: ListItemProps) {\n return (\n <>\n <div className={clsx(styles['key-value-pair'], screenReaderTextClass)}>\n <div className={styles.key}>\n {markerType && color && <ChartSeriesMarker type={markerType} color={color} />}\n <span>{itemKey}</span>\n </div>\n <span className={styles.value}>{value}</span>\n </div>\n {subItems && <SubItems items={subItems} />}\n </>\n );\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BaseComponentProps } from '../../base-component';
2
+ import { BaseComponentProps } from '../../../types/base-component';
3
3
  export type ChartSeriesMarkerType = 'line' | 'rectangle' | 'dashed' | 'hollow-rectangle';
4
4
  interface ChartSeriesMarkerProps extends BaseComponentProps {
5
5
  type: ChartSeriesMarkerType;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/chart-series-marker/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,kBAAkB,CAAC;AAEzF,UAAU,sBAAuB,SAAQ,kBAAkB;IACzD,IAAI,EAAE,qBAAqB,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf;;AAED,wBAAuC;AAEvC,iBAAS,iBAAiB,CAAC,EAAE,IAAa,EAAE,KAAK,EAAE,EAAE,sBAAsB,eAQ1E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/chart-series-marker/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAInE,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,kBAAkB,CAAC;AAEzF,UAAU,sBAAuB,SAAQ,kBAAkB;IACzD,IAAI,EAAE,qBAAqB,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf;;AAED,wBAAuC;AAEvC,iBAAS,iBAAiB,CAAC,EAAE,IAAa,EAAE,KAAK,EAAE,EAAE,sBAAsB,eAQ1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/chart-series-marker/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AASrC,eAAe,IAAI,CAAC,iBAAiB,CAAC,CAAC;AAEvC,SAAS,iBAAiB,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,KAAK,EAA0B;IACzE,OAAO,CACL,8BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,EACzD,KAAK,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,iBACrB,MAAM,GACZ,CACT,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { memo } from 'react';\nimport clsx from 'clsx';\n\nimport { BaseComponentProps } from '../../base-component';\n\nimport styles from './styles.css.js';\n\nexport type ChartSeriesMarkerType = 'line' | 'rectangle' | 'dashed' | 'hollow-rectangle';\n\ninterface ChartSeriesMarkerProps extends BaseComponentProps {\n type: ChartSeriesMarkerType;\n color: string;\n}\n\nexport default memo(ChartSeriesMarker);\n\nfunction ChartSeriesMarker({ type = 'line', color }: ChartSeriesMarkerProps) {\n return (\n <span\n className={clsx(styles.marker, styles[`marker--${type}`])}\n style={{ backgroundColor: color }}\n aria-hidden=\"true\"\n ></span>\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/chart-series-marker/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AASrC,eAAe,IAAI,CAAC,iBAAiB,CAAC,CAAC;AAEvC,SAAS,iBAAiB,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,KAAK,EAA0B;IACzE,OAAO,CACL,8BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,EACzD,KAAK,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,iBACrB,MAAM,GACZ,CACT,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { memo } from 'react';\nimport clsx from 'clsx';\n\nimport { BaseComponentProps } from '../../../types/base-component';\n\nimport styles from './styles.css.js';\n\nexport type ChartSeriesMarkerType = 'line' | 'rectangle' | 'dashed' | 'hollow-rectangle';\n\ninterface ChartSeriesMarkerProps extends BaseComponentProps {\n type: ChartSeriesMarkerType;\n color: string;\n}\n\nexport default memo(ChartSeriesMarker);\n\nfunction ChartSeriesMarker({ type = 'line', color }: ChartSeriesMarkerProps) {\n return (\n <span\n className={clsx(styles.marker, styles[`marker--${type}`])}\n style={{ backgroundColor: color }}\n aria-hidden=\"true\"\n ></span>\n );\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { BaseComponentProps } from '../../base-component';
3
- import { NonCancelableEventHandler } from '../../events';
2
+ import { BaseComponentProps } from '../../../types/base-component';
3
+ import { NonCancelableEventHandler } from '../../../types/events';
4
4
  interface ChartStatusContainerProps extends BaseComponentProps {
5
5
  statusType: 'loading' | 'finished' | 'error';
6
6
  empty?: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/chart-status-container/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAA0B,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAIjF,UAAU,yBAA0B,SAAQ,kBAAkB;IAC5D,UAAU,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAE7C,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,eAAe,CAAC,EAAE,yBAAyB,CAAC;IAG5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,EACnC,YAAY,EACZ,WAAW,EACX,UAAU,GACX,EAAE;IACD,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAC/B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAC9B,UAAU,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;CAC9C;;;;EAKA;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,UAAU,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,SAAS,GACV,EAAE,yBAAyB,eAwC3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/chart-status-container/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAKlE,UAAU,yBAA0B,SAAQ,kBAAkB;IAC5D,UAAU,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAE7C,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,eAAe,CAAC,EAAE,yBAAyB,CAAC;IAG5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,EACnC,YAAY,EACZ,WAAW,EACX,UAAU,GACX,EAAE;IACD,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAC/B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAC9B,UAAU,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;CAC9C;;;;EAKA;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,UAAU,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,SAAS,GACV,EAAE,yBAAyB,eAwC3B"}