@cloudscape-design/components-themeable 3.0.575 → 3.0.577

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 (1385) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/template/alert/actions-wrapper/index.d.ts.map +1 -1
  3. package/lib/internal/template/alert/actions-wrapper/index.js.map +1 -1
  4. package/lib/internal/template/alert/index.d.ts.map +1 -1
  5. package/lib/internal/template/alert/index.js.map +1 -1
  6. package/lib/internal/template/alert/interfaces.d.ts.map +1 -1
  7. package/lib/internal/template/alert/interfaces.js.map +1 -1
  8. package/lib/internal/template/alert/internal.d.ts.map +1 -1
  9. package/lib/internal/template/alert/internal.js.map +1 -1
  10. package/lib/internal/template/anchor-navigation/index.d.ts.map +1 -1
  11. package/lib/internal/template/anchor-navigation/index.js.map +1 -1
  12. package/lib/internal/template/anchor-navigation/interfaces.d.ts.map +1 -1
  13. package/lib/internal/template/anchor-navigation/interfaces.js.map +1 -1
  14. package/lib/internal/template/anchor-navigation/internal.d.ts.map +1 -1
  15. package/lib/internal/template/anchor-navigation/internal.js.map +1 -1
  16. package/lib/internal/template/anchor-navigation/use-scroll-spy.d.ts.map +1 -1
  17. package/lib/internal/template/anchor-navigation/use-scroll-spy.js.map +1 -1
  18. package/lib/internal/template/annotation-context/annotation/annotation-icon.d.ts.map +1 -1
  19. package/lib/internal/template/annotation-context/annotation/annotation-icon.js.map +1 -1
  20. package/lib/internal/template/annotation-context/annotation/annotation-popover.d.ts.map +1 -1
  21. package/lib/internal/template/annotation-context/annotation/annotation-popover.js.map +1 -1
  22. package/lib/internal/template/annotation-context/annotation/annotation-trigger.d.ts.map +1 -1
  23. package/lib/internal/template/annotation-context/annotation/annotation-trigger.js.map +1 -1
  24. package/lib/internal/template/annotation-context/annotation/closed-annotation.d.ts.map +1 -1
  25. package/lib/internal/template/annotation-context/annotation/closed-annotation.js.map +1 -1
  26. package/lib/internal/template/annotation-context/annotation/open-annotation.d.ts.map +1 -1
  27. package/lib/internal/template/annotation-context/annotation/open-annotation.js.map +1 -1
  28. package/lib/internal/template/annotation-context/context.d.ts.map +1 -1
  29. package/lib/internal/template/annotation-context/context.js.map +1 -1
  30. package/lib/internal/template/annotation-context/index.d.ts.map +1 -1
  31. package/lib/internal/template/annotation-context/index.js.map +1 -1
  32. package/lib/internal/template/annotation-context/interfaces.d.ts.map +1 -1
  33. package/lib/internal/template/annotation-context/interfaces.js.map +1 -1
  34. package/lib/internal/template/annotation-context/utils.d.ts.map +1 -1
  35. package/lib/internal/template/annotation-context/utils.js.map +1 -1
  36. package/lib/internal/template/app-layout/content-wrapper/index.d.ts.map +1 -1
  37. package/lib/internal/template/app-layout/content-wrapper/index.js.map +1 -1
  38. package/lib/internal/template/app-layout/defaults.d.ts.map +1 -1
  39. package/lib/internal/template/app-layout/defaults.js.map +1 -1
  40. package/lib/internal/template/app-layout/drawer/drawers-helpers.d.ts.map +1 -1
  41. package/lib/internal/template/app-layout/drawer/drawers-helpers.js.map +1 -1
  42. package/lib/internal/template/app-layout/drawer/index.d.ts.map +1 -1
  43. package/lib/internal/template/app-layout/drawer/index.js.map +1 -1
  44. package/lib/internal/template/app-layout/drawer/interfaces.d.ts.map +1 -1
  45. package/lib/internal/template/app-layout/drawer/interfaces.js.map +1 -1
  46. package/lib/internal/template/app-layout/drawer/overflow-menu.d.ts.map +1 -1
  47. package/lib/internal/template/app-layout/drawer/overflow-menu.js.map +1 -1
  48. package/lib/internal/template/app-layout/drawer/resizable-drawer.d.ts.map +1 -1
  49. package/lib/internal/template/app-layout/drawer/resizable-drawer.js.map +1 -1
  50. package/lib/internal/template/app-layout/index.d.ts.map +1 -1
  51. package/lib/internal/template/app-layout/index.js.map +1 -1
  52. package/lib/internal/template/app-layout/interfaces.d.ts.map +1 -1
  53. package/lib/internal/template/app-layout/interfaces.js.map +1 -1
  54. package/lib/internal/template/app-layout/mobile-toolbar/index.d.ts.map +1 -1
  55. package/lib/internal/template/app-layout/mobile-toolbar/index.js.map +1 -1
  56. package/lib/internal/template/app-layout/notifications/index.d.ts.map +1 -1
  57. package/lib/internal/template/app-layout/notifications/index.js.map +1 -1
  58. package/lib/internal/template/app-layout/runtime-api.d.ts.map +1 -1
  59. package/lib/internal/template/app-layout/runtime-api.js.map +1 -1
  60. package/lib/internal/template/app-layout/split-panel/constants.d.ts.map +1 -1
  61. package/lib/internal/template/app-layout/split-panel/constants.js.map +1 -1
  62. package/lib/internal/template/app-layout/split-panel/drawer.d.ts.map +1 -1
  63. package/lib/internal/template/app-layout/split-panel/drawer.js.map +1 -1
  64. package/lib/internal/template/app-layout/split-panel/index.d.ts.map +1 -1
  65. package/lib/internal/template/app-layout/split-panel/index.js.map +1 -1
  66. package/lib/internal/template/app-layout/split-panel/provider.d.ts.map +1 -1
  67. package/lib/internal/template/app-layout/split-panel/provider.js.map +1 -1
  68. package/lib/internal/template/app-layout/toggles/index.d.ts.map +1 -1
  69. package/lib/internal/template/app-layout/toggles/index.js.map +1 -1
  70. package/lib/internal/template/app-layout/toggles/interfaces.d.ts.map +1 -1
  71. package/lib/internal/template/app-layout/toggles/interfaces.js.map +1 -1
  72. package/lib/internal/template/app-layout/utils/interfaces.d.ts.map +1 -1
  73. package/lib/internal/template/app-layout/utils/interfaces.js.map +1 -1
  74. package/lib/internal/template/app-layout/utils/use-app-layout-rect.d.ts.map +1 -1
  75. package/lib/internal/template/app-layout/utils/use-app-layout-rect.js.map +1 -1
  76. package/lib/internal/template/app-layout/utils/use-content-height.d.ts.map +1 -1
  77. package/lib/internal/template/app-layout/utils/use-content-height.js.map +1 -1
  78. package/lib/internal/template/app-layout/utils/use-drawers.d.ts.map +1 -1
  79. package/lib/internal/template/app-layout/utils/use-drawers.js.map +1 -1
  80. package/lib/internal/template/app-layout/utils/use-focus-control.d.ts.map +1 -1
  81. package/lib/internal/template/app-layout/utils/use-focus-control.js.map +1 -1
  82. package/lib/internal/template/app-layout/utils/use-keyboard-events.d.ts.map +1 -1
  83. package/lib/internal/template/app-layout/utils/use-keyboard-events.js.map +1 -1
  84. package/lib/internal/template/app-layout/utils/use-observed-element.d.ts.map +1 -1
  85. package/lib/internal/template/app-layout/utils/use-observed-element.js.map +1 -1
  86. package/lib/internal/template/app-layout/utils/use-pointer-events.d.ts.map +1 -1
  87. package/lib/internal/template/app-layout/utils/use-pointer-events.js.map +1 -1
  88. package/lib/internal/template/app-layout/utils/use-resize.d.ts.map +1 -1
  89. package/lib/internal/template/app-layout/utils/use-resize.js.map +1 -1
  90. package/lib/internal/template/app-layout/utils/use-split-panel-focus-control.d.ts.map +1 -1
  91. package/lib/internal/template/app-layout/utils/use-split-panel-focus-control.js.map +1 -1
  92. package/lib/internal/template/app-layout/visual-refresh/background.d.ts.map +1 -1
  93. package/lib/internal/template/app-layout/visual-refresh/background.js.map +1 -1
  94. package/lib/internal/template/app-layout/visual-refresh/breadcrumbs.d.ts.map +1 -1
  95. package/lib/internal/template/app-layout/visual-refresh/breadcrumbs.js.map +1 -1
  96. package/lib/internal/template/app-layout/visual-refresh/context.d.ts.map +1 -1
  97. package/lib/internal/template/app-layout/visual-refresh/context.js.map +1 -1
  98. package/lib/internal/template/app-layout/visual-refresh/drawers.d.ts.map +1 -1
  99. package/lib/internal/template/app-layout/visual-refresh/drawers.js.map +1 -1
  100. package/lib/internal/template/app-layout/visual-refresh/header.d.ts.map +1 -1
  101. package/lib/internal/template/app-layout/visual-refresh/header.js.map +1 -1
  102. package/lib/internal/template/app-layout/visual-refresh/index.d.ts.map +1 -1
  103. package/lib/internal/template/app-layout/visual-refresh/index.js.map +1 -1
  104. package/lib/internal/template/app-layout/visual-refresh/layout.d.ts.map +1 -1
  105. package/lib/internal/template/app-layout/visual-refresh/layout.js.map +1 -1
  106. package/lib/internal/template/app-layout/visual-refresh/main.d.ts.map +1 -1
  107. package/lib/internal/template/app-layout/visual-refresh/main.js.map +1 -1
  108. package/lib/internal/template/app-layout/visual-refresh/mobile-toolbar.d.ts.map +1 -1
  109. package/lib/internal/template/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
  110. package/lib/internal/template/app-layout/visual-refresh/navigation.d.ts.map +1 -1
  111. package/lib/internal/template/app-layout/visual-refresh/navigation.js.map +1 -1
  112. package/lib/internal/template/app-layout/visual-refresh/notifications.d.ts.map +1 -1
  113. package/lib/internal/template/app-layout/visual-refresh/notifications.js.map +1 -1
  114. package/lib/internal/template/app-layout/visual-refresh/split-panel.d.ts.map +1 -1
  115. package/lib/internal/template/app-layout/visual-refresh/split-panel.js.map +1 -1
  116. package/lib/internal/template/app-layout/visual-refresh/tools.d.ts.map +1 -1
  117. package/lib/internal/template/app-layout/visual-refresh/tools.js.map +1 -1
  118. package/lib/internal/template/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
  119. package/lib/internal/template/app-layout/visual-refresh/trigger-button.js.map +1 -1
  120. package/lib/internal/template/app-layout/visual-refresh/use-background-overlap.d.ts.map +1 -1
  121. package/lib/internal/template/app-layout/visual-refresh/use-background-overlap.js.map +1 -1
  122. package/lib/internal/template/area-chart/async-store/index.d.ts.map +1 -1
  123. package/lib/internal/template/area-chart/async-store/index.js.map +1 -1
  124. package/lib/internal/template/area-chart/chart-container.d.ts.map +1 -1
  125. package/lib/internal/template/area-chart/chart-container.js.map +1 -1
  126. package/lib/internal/template/area-chart/elements/area-chart-filter.d.ts.map +1 -1
  127. package/lib/internal/template/area-chart/elements/area-chart-filter.js.map +1 -1
  128. package/lib/internal/template/area-chart/elements/area-chart-legend.d.ts.map +1 -1
  129. package/lib/internal/template/area-chart/elements/area-chart-legend.js.map +1 -1
  130. package/lib/internal/template/area-chart/elements/area-series.d.ts.map +1 -1
  131. package/lib/internal/template/area-chart/elements/area-series.js.map +1 -1
  132. package/lib/internal/template/area-chart/elements/chart-popover.d.ts.map +1 -1
  133. package/lib/internal/template/area-chart/elements/chart-popover.js.map +1 -1
  134. package/lib/internal/template/area-chart/elements/data-series.d.ts.map +1 -1
  135. package/lib/internal/template/area-chart/elements/data-series.js.map +1 -1
  136. package/lib/internal/template/area-chart/elements/highlighted-point.d.ts.map +1 -1
  137. package/lib/internal/template/area-chart/elements/highlighted-point.js.map +1 -1
  138. package/lib/internal/template/area-chart/elements/threshold-series.d.ts.map +1 -1
  139. package/lib/internal/template/area-chart/elements/threshold-series.js.map +1 -1
  140. package/lib/internal/template/area-chart/elements/use-highlight-details.d.ts.map +1 -1
  141. package/lib/internal/template/area-chart/elements/use-highlight-details.js.map +1 -1
  142. package/lib/internal/template/area-chart/elements/vertical-marker.d.ts.map +1 -1
  143. package/lib/internal/template/area-chart/elements/vertical-marker.js.map +1 -1
  144. package/lib/internal/template/area-chart/index.d.ts.map +1 -1
  145. package/lib/internal/template/area-chart/index.js.map +1 -1
  146. package/lib/internal/template/area-chart/interfaces.d.ts.map +1 -1
  147. package/lib/internal/template/area-chart/interfaces.js.map +1 -1
  148. package/lib/internal/template/area-chart/internal.d.ts.map +1 -1
  149. package/lib/internal/template/area-chart/internal.js.map +1 -1
  150. package/lib/internal/template/area-chart/model/compute-chart-props.d.ts.map +1 -1
  151. package/lib/internal/template/area-chart/model/compute-chart-props.js.map +1 -1
  152. package/lib/internal/template/area-chart/model/create-series-decorator.d.ts.map +1 -1
  153. package/lib/internal/template/area-chart/model/create-series-decorator.js.map +1 -1
  154. package/lib/internal/template/area-chart/model/index.d.ts.map +1 -1
  155. package/lib/internal/template/area-chart/model/index.js.map +1 -1
  156. package/lib/internal/template/area-chart/model/interactions-store.d.ts.map +1 -1
  157. package/lib/internal/template/area-chart/model/interactions-store.js.map +1 -1
  158. package/lib/internal/template/area-chart/model/use-chart-model.d.ts.map +1 -1
  159. package/lib/internal/template/area-chart/model/use-chart-model.js.map +1 -1
  160. package/lib/internal/template/area-chart/model/use-filter-props.d.ts.map +1 -1
  161. package/lib/internal/template/area-chart/model/use-filter-props.js.map +1 -1
  162. package/lib/internal/template/area-chart/model/use-highlight-props.d.ts.map +1 -1
  163. package/lib/internal/template/area-chart/model/use-highlight-props.js.map +1 -1
  164. package/lib/internal/template/area-chart/model/utils.d.ts.map +1 -1
  165. package/lib/internal/template/area-chart/model/utils.js.map +1 -1
  166. package/lib/internal/template/attribute-editor/additional-info.d.ts.map +1 -1
  167. package/lib/internal/template/attribute-editor/additional-info.js.map +1 -1
  168. package/lib/internal/template/attribute-editor/index.d.ts.map +1 -1
  169. package/lib/internal/template/attribute-editor/index.js.map +1 -1
  170. package/lib/internal/template/attribute-editor/interfaces.d.ts.map +1 -1
  171. package/lib/internal/template/attribute-editor/interfaces.js.map +1 -1
  172. package/lib/internal/template/attribute-editor/internal.d.ts.map +1 -1
  173. package/lib/internal/template/attribute-editor/internal.js.map +1 -1
  174. package/lib/internal/template/attribute-editor/row.d.ts.map +1 -1
  175. package/lib/internal/template/attribute-editor/row.js.map +1 -1
  176. package/lib/internal/template/autosuggest/autosuggest-option.d.ts.map +1 -1
  177. package/lib/internal/template/autosuggest/autosuggest-option.js.map +1 -1
  178. package/lib/internal/template/autosuggest/index.d.ts.map +1 -1
  179. package/lib/internal/template/autosuggest/index.js.map +1 -1
  180. package/lib/internal/template/autosuggest/interfaces.d.ts.map +1 -1
  181. package/lib/internal/template/autosuggest/interfaces.js.map +1 -1
  182. package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
  183. package/lib/internal/template/autosuggest/internal.js.map +1 -1
  184. package/lib/internal/template/autosuggest/load-more-controller.d.ts.map +1 -1
  185. package/lib/internal/template/autosuggest/load-more-controller.js.map +1 -1
  186. package/lib/internal/template/autosuggest/options-controller.d.ts.map +1 -1
  187. package/lib/internal/template/autosuggest/options-controller.js.map +1 -1
  188. package/lib/internal/template/autosuggest/options-list.d.ts.map +1 -1
  189. package/lib/internal/template/autosuggest/options-list.js.map +1 -1
  190. package/lib/internal/template/autosuggest/plain-list.d.ts.map +1 -1
  191. package/lib/internal/template/autosuggest/plain-list.js.map +1 -1
  192. package/lib/internal/template/autosuggest/utils/utils.d.ts.map +1 -1
  193. package/lib/internal/template/autosuggest/utils/utils.js.map +1 -1
  194. package/lib/internal/template/autosuggest/virtual-list.d.ts.map +1 -1
  195. package/lib/internal/template/autosuggest/virtual-list.js.map +1 -1
  196. package/lib/internal/template/badge/index.d.ts.map +1 -1
  197. package/lib/internal/template/badge/index.js.map +1 -1
  198. package/lib/internal/template/badge/interfaces.d.ts.map +1 -1
  199. package/lib/internal/template/badge/interfaces.js.map +1 -1
  200. package/lib/internal/template/bar-chart/index.d.ts.map +1 -1
  201. package/lib/internal/template/bar-chart/index.js.map +1 -1
  202. package/lib/internal/template/bar-chart/interfaces.d.ts.map +1 -1
  203. package/lib/internal/template/bar-chart/interfaces.js.map +1 -1
  204. package/lib/internal/template/box/index.d.ts.map +1 -1
  205. package/lib/internal/template/box/index.js.map +1 -1
  206. package/lib/internal/template/box/interfaces.d.ts.map +1 -1
  207. package/lib/internal/template/box/interfaces.js.map +1 -1
  208. package/lib/internal/template/box/internal.d.ts.map +1 -1
  209. package/lib/internal/template/box/internal.js.map +1 -1
  210. package/lib/internal/template/breadcrumb-group/index.d.ts.map +1 -1
  211. package/lib/internal/template/breadcrumb-group/index.js.map +1 -1
  212. package/lib/internal/template/breadcrumb-group/interfaces.d.ts.map +1 -1
  213. package/lib/internal/template/breadcrumb-group/interfaces.js.map +1 -1
  214. package/lib/internal/template/breadcrumb-group/internal.d.ts.map +1 -1
  215. package/lib/internal/template/breadcrumb-group/internal.js.map +1 -1
  216. package/lib/internal/template/breadcrumb-group/item/item.d.ts.map +1 -1
  217. package/lib/internal/template/breadcrumb-group/item/item.js.map +1 -1
  218. package/lib/internal/template/button/icon-helper.d.ts.map +1 -1
  219. package/lib/internal/template/button/icon-helper.js.map +1 -1
  220. package/lib/internal/template/button/index.d.ts.map +1 -1
  221. package/lib/internal/template/button/index.js.map +1 -1
  222. package/lib/internal/template/button/interfaces.d.ts.map +1 -1
  223. package/lib/internal/template/button/interfaces.js.map +1 -1
  224. package/lib/internal/template/button/internal.d.ts.map +1 -1
  225. package/lib/internal/template/button/internal.js.map +1 -1
  226. package/lib/internal/template/button-dropdown/category-elements/category-element.d.ts.map +1 -1
  227. package/lib/internal/template/button-dropdown/category-elements/category-element.js.map +1 -1
  228. package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
  229. package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  230. package/lib/internal/template/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
  231. package/lib/internal/template/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
  232. package/lib/internal/template/button-dropdown/index.d.ts.map +1 -1
  233. package/lib/internal/template/button-dropdown/index.js.map +1 -1
  234. package/lib/internal/template/button-dropdown/interfaces.d.ts.map +1 -1
  235. package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
  236. package/lib/internal/template/button-dropdown/internal.d.ts.map +1 -1
  237. package/lib/internal/template/button-dropdown/internal.js.map +1 -1
  238. package/lib/internal/template/button-dropdown/item-element/index.d.ts.map +1 -1
  239. package/lib/internal/template/button-dropdown/item-element/index.js.map +1 -1
  240. package/lib/internal/template/button-dropdown/items-list.d.ts.map +1 -1
  241. package/lib/internal/template/button-dropdown/items-list.js.map +1 -1
  242. package/lib/internal/template/button-dropdown/mobile-expandable-group/mobile-expandable-group.d.ts.map +1 -1
  243. package/lib/internal/template/button-dropdown/mobile-expandable-group/mobile-expandable-group.js.map +1 -1
  244. package/lib/internal/template/button-dropdown/tooltip.d.ts.map +1 -1
  245. package/lib/internal/template/button-dropdown/tooltip.js.map +1 -1
  246. package/lib/internal/template/button-dropdown/utils/create-items-tree.d.ts.map +1 -1
  247. package/lib/internal/template/button-dropdown/utils/create-items-tree.js.map +1 -1
  248. package/lib/internal/template/button-dropdown/utils/menu-item.d.ts.map +1 -1
  249. package/lib/internal/template/button-dropdown/utils/menu-item.js.map +1 -1
  250. package/lib/internal/template/button-dropdown/utils/move-highlight.d.ts.map +1 -1
  251. package/lib/internal/template/button-dropdown/utils/move-highlight.js.map +1 -1
  252. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
  253. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.js.map +1 -1
  254. package/lib/internal/template/button-dropdown/utils/use-hidden-description.d.ts.map +1 -1
  255. package/lib/internal/template/button-dropdown/utils/use-hidden-description.js.map +1 -1
  256. package/lib/internal/template/button-dropdown/utils/use-highlighted-menu.d.ts.map +1 -1
  257. package/lib/internal/template/button-dropdown/utils/use-highlighted-menu.js.map +1 -1
  258. package/lib/internal/template/button-dropdown/utils/utils.d.ts.map +1 -1
  259. package/lib/internal/template/button-dropdown/utils/utils.js.map +1 -1
  260. package/lib/internal/template/calendar/grid/calendar-grid-header.d.ts.map +1 -1
  261. package/lib/internal/template/calendar/grid/calendar-grid-header.js.map +1 -1
  262. package/lib/internal/template/calendar/grid/index.d.ts.map +1 -1
  263. package/lib/internal/template/calendar/grid/index.js.map +1 -1
  264. package/lib/internal/template/calendar/grid/use-calendar-grid-keyboard-navigation.d.ts.map +1 -1
  265. package/lib/internal/template/calendar/grid/use-calendar-grid-keyboard-navigation.js.map +1 -1
  266. package/lib/internal/template/calendar/grid/use-calendar-grid-rows.d.ts.map +1 -1
  267. package/lib/internal/template/calendar/grid/use-calendar-grid-rows.js.map +1 -1
  268. package/lib/internal/template/calendar/header/header-button.d.ts.map +1 -1
  269. package/lib/internal/template/calendar/header/header-button.js.map +1 -1
  270. package/lib/internal/template/calendar/header/index.d.ts.map +1 -1
  271. package/lib/internal/template/calendar/header/index.js.map +1 -1
  272. package/lib/internal/template/calendar/index.d.ts.map +1 -1
  273. package/lib/internal/template/calendar/index.js.map +1 -1
  274. package/lib/internal/template/calendar/interfaces.d.ts.map +1 -1
  275. package/lib/internal/template/calendar/interfaces.js.map +1 -1
  276. package/lib/internal/template/calendar/internal.d.ts.map +1 -1
  277. package/lib/internal/template/calendar/internal.js.map +1 -1
  278. package/lib/internal/template/calendar/use-calendar-labels.d.ts.map +1 -1
  279. package/lib/internal/template/calendar/use-calendar-labels.js.map +1 -1
  280. package/lib/internal/template/calendar/utils/intl.d.ts.map +1 -1
  281. package/lib/internal/template/calendar/utils/intl.js.map +1 -1
  282. package/lib/internal/template/calendar/utils/navigation.d.ts.map +1 -1
  283. package/lib/internal/template/calendar/utils/navigation.js.map +1 -1
  284. package/lib/internal/template/cards/cards-layout-helper.d.ts.map +1 -1
  285. package/lib/internal/template/cards/cards-layout-helper.js.map +1 -1
  286. package/lib/internal/template/cards/index.d.ts.map +1 -1
  287. package/lib/internal/template/cards/index.js.map +1 -1
  288. package/lib/internal/template/cards/interfaces.d.ts.map +1 -1
  289. package/lib/internal/template/cards/interfaces.js.map +1 -1
  290. package/lib/internal/template/checkbox/base-checkbox.d.ts.map +1 -1
  291. package/lib/internal/template/checkbox/base-checkbox.js.map +1 -1
  292. package/lib/internal/template/checkbox/index.d.ts.map +1 -1
  293. package/lib/internal/template/checkbox/index.js.map +1 -1
  294. package/lib/internal/template/checkbox/interfaces.d.ts.map +1 -1
  295. package/lib/internal/template/checkbox/interfaces.js.map +1 -1
  296. package/lib/internal/template/checkbox/internal.d.ts.map +1 -1
  297. package/lib/internal/template/checkbox/internal.js.map +1 -1
  298. package/lib/internal/template/code-editor/ace-modes.d.ts.map +1 -1
  299. package/lib/internal/template/code-editor/ace-modes.js.map +1 -1
  300. package/lib/internal/template/code-editor/ace-themes.d.ts.map +1 -1
  301. package/lib/internal/template/code-editor/ace-themes.js.map +1 -1
  302. package/lib/internal/template/code-editor/error-screen.d.ts.map +1 -1
  303. package/lib/internal/template/code-editor/error-screen.js.map +1 -1
  304. package/lib/internal/template/code-editor/index.d.ts.map +1 -1
  305. package/lib/internal/template/code-editor/index.js.map +1 -1
  306. package/lib/internal/template/code-editor/interfaces.d.ts.map +1 -1
  307. package/lib/internal/template/code-editor/interfaces.js.map +1 -1
  308. package/lib/internal/template/code-editor/listeners.d.ts.map +1 -1
  309. package/lib/internal/template/code-editor/listeners.js.map +1 -1
  310. package/lib/internal/template/code-editor/loading-screen.d.ts.map +1 -1
  311. package/lib/internal/template/code-editor/loading-screen.js.map +1 -1
  312. package/lib/internal/template/code-editor/pane.d.ts.map +1 -1
  313. package/lib/internal/template/code-editor/pane.js.map +1 -1
  314. package/lib/internal/template/code-editor/preferences-modal.d.ts.map +1 -1
  315. package/lib/internal/template/code-editor/preferences-modal.js.map +1 -1
  316. package/lib/internal/template/code-editor/resizable-box/index.d.ts.map +1 -1
  317. package/lib/internal/template/code-editor/resizable-box/index.js.map +1 -1
  318. package/lib/internal/template/code-editor/setup-editor.d.ts.map +1 -1
  319. package/lib/internal/template/code-editor/setup-editor.js.map +1 -1
  320. package/lib/internal/template/code-editor/status-bar.d.ts.map +1 -1
  321. package/lib/internal/template/code-editor/status-bar.js.map +1 -1
  322. package/lib/internal/template/code-editor/tab-button.d.ts.map +1 -1
  323. package/lib/internal/template/code-editor/tab-button.js.map +1 -1
  324. package/lib/internal/template/code-editor/use-editor.d.ts.map +1 -1
  325. package/lib/internal/template/code-editor/use-editor.js.map +1 -1
  326. package/lib/internal/template/code-editor/util.d.ts.map +1 -1
  327. package/lib/internal/template/code-editor/util.js.map +1 -1
  328. package/lib/internal/template/collection-preferences/content-display/content-display-option.d.ts.map +1 -1
  329. package/lib/internal/template/collection-preferences/content-display/content-display-option.js.map +1 -1
  330. package/lib/internal/template/collection-preferences/content-display/draggable-option.d.ts.map +1 -1
  331. package/lib/internal/template/collection-preferences/content-display/draggable-option.js.map +1 -1
  332. package/lib/internal/template/collection-preferences/content-display/index.d.ts.map +1 -1
  333. package/lib/internal/template/collection-preferences/content-display/index.js.map +1 -1
  334. package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/defaults.d.ts.map +1 -1
  335. package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/defaults.js.map +1 -1
  336. package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/index.d.ts.map +1 -1
  337. package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/index.js.map +1 -1
  338. package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/events.d.ts.map +1 -1
  339. package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/events.js.map +1 -1
  340. package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/listeners.d.ts.map +1 -1
  341. package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/listeners.js.map +1 -1
  342. package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/scroll.d.ts.map +1 -1
  343. package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/scroll.js.map +1 -1
  344. package/lib/internal/template/collection-preferences/content-display/use-drag-and-drop-reorder.d.ts.map +1 -1
  345. package/lib/internal/template/collection-preferences/content-display/use-drag-and-drop-reorder.js.map +1 -1
  346. package/lib/internal/template/collection-preferences/content-display/use-live-announcements.d.ts.map +1 -1
  347. package/lib/internal/template/collection-preferences/content-display/use-live-announcements.js.map +1 -1
  348. package/lib/internal/template/collection-preferences/content-display/utils.d.ts.map +1 -1
  349. package/lib/internal/template/collection-preferences/content-display/utils.js.map +1 -1
  350. package/lib/internal/template/collection-preferences/index.d.ts.map +1 -1
  351. package/lib/internal/template/collection-preferences/index.js.map +1 -1
  352. package/lib/internal/template/collection-preferences/interfaces.d.ts.map +1 -1
  353. package/lib/internal/template/collection-preferences/interfaces.js.map +1 -1
  354. package/lib/internal/template/collection-preferences/utils.d.ts.map +1 -1
  355. package/lib/internal/template/collection-preferences/utils.js.map +1 -1
  356. package/lib/internal/template/collection-preferences/visible-content.d.ts.map +1 -1
  357. package/lib/internal/template/collection-preferences/visible-content.js.map +1 -1
  358. package/lib/internal/template/column-layout/flexible-column-layout/index.d.ts.map +1 -1
  359. package/lib/internal/template/column-layout/flexible-column-layout/index.js.map +1 -1
  360. package/lib/internal/template/column-layout/grid-column-layout.d.ts.map +1 -1
  361. package/lib/internal/template/column-layout/grid-column-layout.js.map +1 -1
  362. package/lib/internal/template/column-layout/index.d.ts.map +1 -1
  363. package/lib/internal/template/column-layout/index.js.map +1 -1
  364. package/lib/internal/template/column-layout/interfaces.d.ts.map +1 -1
  365. package/lib/internal/template/column-layout/interfaces.js.map +1 -1
  366. package/lib/internal/template/column-layout/internal.d.ts.map +1 -1
  367. package/lib/internal/template/column-layout/internal.js.map +1 -1
  368. package/lib/internal/template/column-layout/util.d.ts.map +1 -1
  369. package/lib/internal/template/column-layout/util.js.map +1 -1
  370. package/lib/internal/template/container/index.d.ts.map +1 -1
  371. package/lib/internal/template/container/index.js.map +1 -1
  372. package/lib/internal/template/container/interfaces.d.ts.map +1 -1
  373. package/lib/internal/template/container/interfaces.js.map +1 -1
  374. package/lib/internal/template/container/internal.d.ts.map +1 -1
  375. package/lib/internal/template/container/internal.js.map +1 -1
  376. package/lib/internal/template/container/use-sticky-header.d.ts.map +1 -1
  377. package/lib/internal/template/container/use-sticky-header.js.map +1 -1
  378. package/lib/internal/template/content-layout/index.d.ts.map +1 -1
  379. package/lib/internal/template/content-layout/index.js.map +1 -1
  380. package/lib/internal/template/content-layout/interfaces.d.ts.map +1 -1
  381. package/lib/internal/template/content-layout/interfaces.js.map +1 -1
  382. package/lib/internal/template/content-layout/internal.d.ts.map +1 -1
  383. package/lib/internal/template/content-layout/internal.js.map +1 -1
  384. package/lib/internal/template/contexts/form-field.d.ts.map +1 -1
  385. package/lib/internal/template/contexts/form-field.js.map +1 -1
  386. package/lib/internal/template/copy-to-clipboard/index.d.ts.map +1 -1
  387. package/lib/internal/template/copy-to-clipboard/index.js.map +1 -1
  388. package/lib/internal/template/copy-to-clipboard/interfaces.d.ts.map +1 -1
  389. package/lib/internal/template/copy-to-clipboard/interfaces.js.map +1 -1
  390. package/lib/internal/template/date-input/index.d.ts.map +1 -1
  391. package/lib/internal/template/date-input/index.js.map +1 -1
  392. package/lib/internal/template/date-input/interfaces.d.ts.map +1 -1
  393. package/lib/internal/template/date-input/interfaces.js.map +1 -1
  394. package/lib/internal/template/date-input/internal.d.ts.map +1 -1
  395. package/lib/internal/template/date-input/internal.js.map +1 -1
  396. package/lib/internal/template/date-picker/index.d.ts.map +1 -1
  397. package/lib/internal/template/date-picker/index.js.map +1 -1
  398. package/lib/internal/template/date-picker/interfaces.d.ts.map +1 -1
  399. package/lib/internal/template/date-picker/interfaces.js.map +1 -1
  400. package/lib/internal/template/date-picker/utils.d.ts.map +1 -1
  401. package/lib/internal/template/date-picker/utils.js.map +1 -1
  402. package/lib/internal/template/date-range-picker/calendar/grids/grid.d.ts.map +1 -1
  403. package/lib/internal/template/date-range-picker/calendar/grids/grid.js.map +1 -1
  404. package/lib/internal/template/date-range-picker/calendar/grids/index.d.ts.map +1 -1
  405. package/lib/internal/template/date-range-picker/calendar/grids/index.js.map +1 -1
  406. package/lib/internal/template/date-range-picker/calendar/header/header-button.d.ts.map +1 -1
  407. package/lib/internal/template/date-range-picker/calendar/header/header-button.js.map +1 -1
  408. package/lib/internal/template/date-range-picker/calendar/header/index.d.ts.map +1 -1
  409. package/lib/internal/template/date-range-picker/calendar/header/index.js.map +1 -1
  410. package/lib/internal/template/date-range-picker/calendar/index.d.ts.map +1 -1
  411. package/lib/internal/template/date-range-picker/calendar/index.js.map +1 -1
  412. package/lib/internal/template/date-range-picker/calendar/range-inputs.d.ts.map +1 -1
  413. package/lib/internal/template/date-range-picker/calendar/range-inputs.js.map +1 -1
  414. package/lib/internal/template/date-range-picker/calendar/utils.d.ts.map +1 -1
  415. package/lib/internal/template/date-range-picker/calendar/utils.js.map +1 -1
  416. package/lib/internal/template/date-range-picker/dropdown.d.ts.map +1 -1
  417. package/lib/internal/template/date-range-picker/dropdown.js.map +1 -1
  418. package/lib/internal/template/date-range-picker/index.d.ts.map +1 -1
  419. package/lib/internal/template/date-range-picker/index.js.map +1 -1
  420. package/lib/internal/template/date-range-picker/interfaces.d.ts.map +1 -1
  421. package/lib/internal/template/date-range-picker/interfaces.js.map +1 -1
  422. package/lib/internal/template/date-range-picker/mode-switcher.d.ts.map +1 -1
  423. package/lib/internal/template/date-range-picker/mode-switcher.js.map +1 -1
  424. package/lib/internal/template/date-range-picker/relative-range/index.d.ts.map +1 -1
  425. package/lib/internal/template/date-range-picker/relative-range/index.js.map +1 -1
  426. package/lib/internal/template/date-range-picker/time-offset.d.ts.map +1 -1
  427. package/lib/internal/template/date-range-picker/time-offset.js.map +1 -1
  428. package/lib/internal/template/date-range-picker/utils.d.ts.map +1 -1
  429. package/lib/internal/template/date-range-picker/utils.js.map +1 -1
  430. package/lib/internal/template/drawer/index.d.ts.map +1 -1
  431. package/lib/internal/template/drawer/index.js.map +1 -1
  432. package/lib/internal/template/drawer/interfaces.d.ts.map +1 -1
  433. package/lib/internal/template/drawer/interfaces.js.map +1 -1
  434. package/lib/internal/template/expandable-section/expandable-section-container.d.ts.map +1 -1
  435. package/lib/internal/template/expandable-section/expandable-section-container.js.map +1 -1
  436. package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
  437. package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
  438. package/lib/internal/template/expandable-section/index.d.ts.map +1 -1
  439. package/lib/internal/template/expandable-section/index.js.map +1 -1
  440. package/lib/internal/template/expandable-section/interfaces.d.ts.map +1 -1
  441. package/lib/internal/template/expandable-section/interfaces.js.map +1 -1
  442. package/lib/internal/template/expandable-section/internal.d.ts.map +1 -1
  443. package/lib/internal/template/expandable-section/internal.js.map +1 -1
  444. package/lib/internal/template/expandable-section/utils.d.ts.map +1 -1
  445. package/lib/internal/template/expandable-section/utils.js.map +1 -1
  446. package/lib/internal/template/file-upload/default-formatters.d.ts.map +1 -1
  447. package/lib/internal/template/file-upload/default-formatters.js.map +1 -1
  448. package/lib/internal/template/file-upload/dropzone/index.d.ts.map +1 -1
  449. package/lib/internal/template/file-upload/dropzone/index.js.map +1 -1
  450. package/lib/internal/template/file-upload/file-input/index.d.ts.map +1 -1
  451. package/lib/internal/template/file-upload/file-input/index.js.map +1 -1
  452. package/lib/internal/template/file-upload/file-option/index.d.ts.map +1 -1
  453. package/lib/internal/template/file-upload/file-option/index.js.map +1 -1
  454. package/lib/internal/template/file-upload/file-option/thumbnail.d.ts.map +1 -1
  455. package/lib/internal/template/file-upload/file-option/thumbnail.js.map +1 -1
  456. package/lib/internal/template/file-upload/index.d.ts.map +1 -1
  457. package/lib/internal/template/file-upload/index.js.map +1 -1
  458. package/lib/internal/template/file-upload/interfaces.d.ts.map +1 -1
  459. package/lib/internal/template/file-upload/interfaces.js.map +1 -1
  460. package/lib/internal/template/file-upload/internal.d.ts.map +1 -1
  461. package/lib/internal/template/file-upload/internal.js.map +1 -1
  462. package/lib/internal/template/flashbar/collapsible-flashbar.d.ts.map +1 -1
  463. package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -1
  464. package/lib/internal/template/flashbar/common.d.ts.map +1 -1
  465. package/lib/internal/template/flashbar/common.js.map +1 -1
  466. package/lib/internal/template/flashbar/constant.d.ts.map +1 -1
  467. package/lib/internal/template/flashbar/constant.js.map +1 -1
  468. package/lib/internal/template/flashbar/flash.d.ts.map +1 -1
  469. package/lib/internal/template/flashbar/flash.js.map +1 -1
  470. package/lib/internal/template/flashbar/index.d.ts.map +1 -1
  471. package/lib/internal/template/flashbar/index.js.map +1 -1
  472. package/lib/internal/template/flashbar/interfaces.d.ts.map +1 -1
  473. package/lib/internal/template/flashbar/interfaces.js.map +1 -1
  474. package/lib/internal/template/flashbar/internal/analytics.d.ts.map +1 -1
  475. package/lib/internal/template/flashbar/internal/analytics.js.map +1 -1
  476. package/lib/internal/template/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
  477. package/lib/internal/template/flashbar/non-collapsible-flashbar.js.map +1 -1
  478. package/lib/internal/template/flashbar/utils.d.ts.map +1 -1
  479. package/lib/internal/template/flashbar/utils.js.map +1 -1
  480. package/lib/internal/template/form/index.d.ts.map +1 -1
  481. package/lib/internal/template/form/index.js.map +1 -1
  482. package/lib/internal/template/form/interfaces.d.ts.map +1 -1
  483. package/lib/internal/template/form/interfaces.js.map +1 -1
  484. package/lib/internal/template/form/internal.d.ts.map +1 -1
  485. package/lib/internal/template/form/internal.js.map +1 -1
  486. package/lib/internal/template/form-field/index.d.ts.map +1 -1
  487. package/lib/internal/template/form-field/index.js.map +1 -1
  488. package/lib/internal/template/form-field/interfaces.d.ts.map +1 -1
  489. package/lib/internal/template/form-field/interfaces.js.map +1 -1
  490. package/lib/internal/template/form-field/internal.d.ts.map +1 -1
  491. package/lib/internal/template/form-field/internal.js.map +1 -1
  492. package/lib/internal/template/form-field/util.d.ts.map +1 -1
  493. package/lib/internal/template/form-field/util.js.map +1 -1
  494. package/lib/internal/template/grid/index.d.ts.map +1 -1
  495. package/lib/internal/template/grid/index.js.map +1 -1
  496. package/lib/internal/template/grid/interfaces.d.ts.map +1 -1
  497. package/lib/internal/template/grid/interfaces.js.map +1 -1
  498. package/lib/internal/template/grid/internal.d.ts.map +1 -1
  499. package/lib/internal/template/grid/internal.js.map +1 -1
  500. package/lib/internal/template/header/index.d.ts.map +1 -1
  501. package/lib/internal/template/header/index.js.map +1 -1
  502. package/lib/internal/template/header/interfaces.d.ts.map +1 -1
  503. package/lib/internal/template/header/interfaces.js.map +1 -1
  504. package/lib/internal/template/header/internal.d.ts.map +1 -1
  505. package/lib/internal/template/header/internal.js.map +1 -1
  506. package/lib/internal/template/help-panel/index.d.ts.map +1 -1
  507. package/lib/internal/template/help-panel/index.js.map +1 -1
  508. package/lib/internal/template/help-panel/interfaces.d.ts.map +1 -1
  509. package/lib/internal/template/help-panel/interfaces.js.map +1 -1
  510. package/lib/internal/template/hotspot/index.d.ts.map +1 -1
  511. package/lib/internal/template/hotspot/index.js.map +1 -1
  512. package/lib/internal/template/hotspot/interfaces.d.ts.map +1 -1
  513. package/lib/internal/template/hotspot/interfaces.js.map +1 -1
  514. package/lib/internal/template/i18n/context.d.ts.map +1 -1
  515. package/lib/internal/template/i18n/context.js.map +1 -1
  516. package/lib/internal/template/i18n/get-matchable-locales.d.ts.map +1 -1
  517. package/lib/internal/template/i18n/get-matchable-locales.js.map +1 -1
  518. package/lib/internal/template/i18n/index.d.ts.map +1 -1
  519. package/lib/internal/template/i18n/index.js.map +1 -1
  520. package/lib/internal/template/i18n/messages-types.d.ts.map +1 -1
  521. package/lib/internal/template/i18n/messages-types.js.map +1 -1
  522. package/lib/internal/template/i18n/provider.d.ts.map +1 -1
  523. package/lib/internal/template/i18n/provider.js.map +1 -1
  524. package/lib/internal/template/i18n/testing.d.ts.map +1 -1
  525. package/lib/internal/template/i18n/testing.js.map +1 -1
  526. package/lib/internal/template/icon/index.d.ts.map +1 -1
  527. package/lib/internal/template/icon/index.js.map +1 -1
  528. package/lib/internal/template/icon/interfaces.d.ts.map +1 -1
  529. package/lib/internal/template/icon/interfaces.js.map +1 -1
  530. package/lib/internal/template/icon/internal.d.ts.map +1 -1
  531. package/lib/internal/template/icon/internal.js.map +1 -1
  532. package/lib/internal/template/index.d.ts.map +1 -1
  533. package/lib/internal/template/index.js.map +1 -1
  534. package/lib/internal/template/input/index.d.ts.map +1 -1
  535. package/lib/internal/template/input/index.js.map +1 -1
  536. package/lib/internal/template/input/interfaces.d.ts.map +1 -1
  537. package/lib/internal/template/input/interfaces.js.map +1 -1
  538. package/lib/internal/template/input/internal.d.ts.map +1 -1
  539. package/lib/internal/template/input/internal.js.map +1 -1
  540. package/lib/internal/template/input/utils.d.ts.map +1 -1
  541. package/lib/internal/template/input/utils.js.map +1 -1
  542. package/lib/internal/template/interfaces.d.ts.map +1 -1
  543. package/lib/internal/template/interfaces.js.map +1 -1
  544. package/lib/internal/template/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
  545. package/lib/internal/template/internal/analytics/components/analytics-funnel.js.map +1 -1
  546. package/lib/internal/template/internal/analytics/context/analytics-context.d.ts.map +1 -1
  547. package/lib/internal/template/internal/analytics/context/analytics-context.js.map +1 -1
  548. package/lib/internal/template/internal/analytics/hooks/use-funnel.d.ts.map +1 -1
  549. package/lib/internal/template/internal/analytics/hooks/use-funnel.js.map +1 -1
  550. package/lib/internal/template/internal/analytics/index.d.ts.map +1 -1
  551. package/lib/internal/template/internal/analytics/index.js.map +1 -1
  552. package/lib/internal/template/internal/analytics/interfaces.d.ts.map +1 -1
  553. package/lib/internal/template/internal/analytics/interfaces.js.map +1 -1
  554. package/lib/internal/template/internal/analytics/selectors.d.ts.map +1 -1
  555. package/lib/internal/template/internal/analytics/selectors.js.map +1 -1
  556. package/lib/internal/template/internal/animate.d.ts.map +1 -1
  557. package/lib/internal/template/internal/animate.js.map +1 -1
  558. package/lib/internal/template/internal/base-component/index.d.ts.map +1 -1
  559. package/lib/internal/template/internal/base-component/index.js.map +1 -1
  560. package/lib/internal/template/internal/breakpoints.d.ts.map +1 -1
  561. package/lib/internal/template/internal/breakpoints.js.map +1 -1
  562. package/lib/internal/template/internal/components/abstract-switch/index.d.ts.map +1 -1
  563. package/lib/internal/template/internal/components/abstract-switch/index.js.map +1 -1
  564. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
  565. package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
  566. package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
  567. package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
  568. package/lib/internal/template/internal/components/cartesian-chart/axis-label.d.ts.map +1 -1
  569. package/lib/internal/template/internal/components/cartesian-chart/axis-label.js.map +1 -1
  570. package/lib/internal/template/internal/components/cartesian-chart/bottom-labels.d.ts.map +1 -1
  571. package/lib/internal/template/internal/components/cartesian-chart/bottom-labels.js.map +1 -1
  572. package/lib/internal/template/internal/components/cartesian-chart/chart-container.d.ts.map +1 -1
  573. package/lib/internal/template/internal/components/cartesian-chart/chart-container.js.map +1 -1
  574. package/lib/internal/template/internal/components/cartesian-chart/constants.d.ts.map +1 -1
  575. package/lib/internal/template/internal/components/cartesian-chart/constants.js.map +1 -1
  576. package/lib/internal/template/internal/components/cartesian-chart/emphasized-baseline.d.ts.map +1 -1
  577. package/lib/internal/template/internal/components/cartesian-chart/emphasized-baseline.js.map +1 -1
  578. package/lib/internal/template/internal/components/cartesian-chart/highlighted-point.d.ts.map +1 -1
  579. package/lib/internal/template/internal/components/cartesian-chart/highlighted-point.js.map +1 -1
  580. package/lib/internal/template/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
  581. package/lib/internal/template/internal/components/cartesian-chart/interfaces.js.map +1 -1
  582. package/lib/internal/template/internal/components/cartesian-chart/label-utils.d.ts.map +1 -1
  583. package/lib/internal/template/internal/components/cartesian-chart/label-utils.js.map +1 -1
  584. package/lib/internal/template/internal/components/cartesian-chart/labels-measure.d.ts.map +1 -1
  585. package/lib/internal/template/internal/components/cartesian-chart/labels-measure.js.map +1 -1
  586. package/lib/internal/template/internal/components/cartesian-chart/left-labels.d.ts.map +1 -1
  587. package/lib/internal/template/internal/components/cartesian-chart/left-labels.js.map +1 -1
  588. package/lib/internal/template/internal/components/cartesian-chart/scales.d.ts.map +1 -1
  589. package/lib/internal/template/internal/components/cartesian-chart/scales.js.map +1 -1
  590. package/lib/internal/template/internal/components/cartesian-chart/ticks.d.ts.map +1 -1
  591. package/lib/internal/template/internal/components/cartesian-chart/ticks.js.map +1 -1
  592. package/lib/internal/template/internal/components/cartesian-chart/vertical-grid-lines.d.ts.map +1 -1
  593. package/lib/internal/template/internal/components/cartesian-chart/vertical-grid-lines.js.map +1 -1
  594. package/lib/internal/template/internal/components/cartesian-chart/vertical-marker.d.ts.map +1 -1
  595. package/lib/internal/template/internal/components/cartesian-chart/vertical-marker.js.map +1 -1
  596. package/lib/internal/template/internal/components/chart-filter/index.d.ts.map +1 -1
  597. package/lib/internal/template/internal/components/chart-filter/index.js.map +1 -1
  598. package/lib/internal/template/internal/components/chart-legend/index.d.ts.map +1 -1
  599. package/lib/internal/template/internal/components/chart-legend/index.js.map +1 -1
  600. package/lib/internal/template/internal/components/chart-plot/application-controller.d.ts.map +1 -1
  601. package/lib/internal/template/internal/components/chart-plot/application-controller.js.map +1 -1
  602. package/lib/internal/template/internal/components/chart-plot/focus-outline.d.ts.map +1 -1
  603. package/lib/internal/template/internal/components/chart-plot/focus-outline.js.map +1 -1
  604. package/lib/internal/template/internal/components/chart-plot/index.d.ts.map +1 -1
  605. package/lib/internal/template/internal/components/chart-plot/index.js.map +1 -1
  606. package/lib/internal/template/internal/components/chart-plot/interfaces.d.ts.map +1 -1
  607. package/lib/internal/template/internal/components/chart-plot/interfaces.js.map +1 -1
  608. package/lib/internal/template/internal/components/chart-popover/index.d.ts.map +1 -1
  609. package/lib/internal/template/internal/components/chart-popover/index.js.map +1 -1
  610. package/lib/internal/template/internal/components/chart-popover-footer/index.d.ts.map +1 -1
  611. package/lib/internal/template/internal/components/chart-popover-footer/index.js.map +1 -1
  612. package/lib/internal/template/internal/components/chart-series-details/index.d.ts.map +1 -1
  613. package/lib/internal/template/internal/components/chart-series-details/index.js.map +1 -1
  614. package/lib/internal/template/internal/components/chart-series-details/series-details-text.d.ts.map +1 -1
  615. package/lib/internal/template/internal/components/chart-series-details/series-details-text.js.map +1 -1
  616. package/lib/internal/template/internal/components/chart-series-marker/index.d.ts.map +1 -1
  617. package/lib/internal/template/internal/components/chart-series-marker/index.js.map +1 -1
  618. package/lib/internal/template/internal/components/chart-status-container/index.d.ts.map +1 -1
  619. package/lib/internal/template/internal/components/chart-status-container/index.js.map +1 -1
  620. package/lib/internal/template/internal/components/chart-wrapper/index.d.ts.map +1 -1
  621. package/lib/internal/template/internal/components/chart-wrapper/index.js.map +1 -1
  622. package/lib/internal/template/internal/components/checkbox-icon/index.d.ts.map +1 -1
  623. package/lib/internal/template/internal/components/checkbox-icon/index.js.map +1 -1
  624. package/lib/internal/template/internal/components/dark-ribbon/index.d.ts.map +1 -1
  625. package/lib/internal/template/internal/components/dark-ribbon/index.js.map +1 -1
  626. package/lib/internal/template/internal/components/drag-handle/index.d.ts.map +1 -1
  627. package/lib/internal/template/internal/components/drag-handle/index.js.map +1 -1
  628. package/lib/internal/template/internal/components/dropdown/context.d.ts.map +1 -1
  629. package/lib/internal/template/internal/components/dropdown/context.js.map +1 -1
  630. package/lib/internal/template/internal/components/dropdown/dropdown-fit-handler.d.ts.map +1 -1
  631. package/lib/internal/template/internal/components/dropdown/dropdown-fit-handler.js.map +1 -1
  632. package/lib/internal/template/internal/components/dropdown/index.d.ts.map +1 -1
  633. package/lib/internal/template/internal/components/dropdown/index.js.map +1 -1
  634. package/lib/internal/template/internal/components/dropdown/interfaces.d.ts.map +1 -1
  635. package/lib/internal/template/internal/components/dropdown/interfaces.js.map +1 -1
  636. package/lib/internal/template/internal/components/dropdown-footer/index.d.ts.map +1 -1
  637. package/lib/internal/template/internal/components/dropdown-footer/index.js.map +1 -1
  638. package/lib/internal/template/internal/components/dropdown-status/index.d.ts.map +1 -1
  639. package/lib/internal/template/internal/components/dropdown-status/index.js.map +1 -1
  640. package/lib/internal/template/internal/components/dropdown-status/interfaces.d.ts.map +1 -1
  641. package/lib/internal/template/internal/components/dropdown-status/interfaces.js.map +1 -1
  642. package/lib/internal/template/internal/components/filtering-token/index.d.ts.map +1 -1
  643. package/lib/internal/template/internal/components/filtering-token/index.js.map +1 -1
  644. package/lib/internal/template/internal/components/focus-lock/index.d.ts.map +1 -1
  645. package/lib/internal/template/internal/components/focus-lock/index.js.map +1 -1
  646. package/lib/internal/template/internal/components/focus-lock/utils.d.ts.map +1 -1
  647. package/lib/internal/template/internal/components/focus-lock/utils.js.map +1 -1
  648. package/lib/internal/template/internal/components/handle/index.d.ts.map +1 -1
  649. package/lib/internal/template/internal/components/handle/index.js.map +1 -1
  650. package/lib/internal/template/internal/components/interfaces.d.ts.map +1 -1
  651. package/lib/internal/template/internal/components/interfaces.js.map +1 -1
  652. package/lib/internal/template/internal/components/live-region/index.d.ts.map +1 -1
  653. package/lib/internal/template/internal/components/live-region/index.js.map +1 -1
  654. package/lib/internal/template/internal/components/masked-input/index.d.ts.map +1 -1
  655. package/lib/internal/template/internal/components/masked-input/index.js.map +1 -1
  656. package/lib/internal/template/internal/components/masked-input/interfaces.d.ts.map +1 -1
  657. package/lib/internal/template/internal/components/masked-input/interfaces.js.map +1 -1
  658. package/lib/internal/template/internal/components/masked-input/keyboard-handler.d.ts.map +1 -1
  659. package/lib/internal/template/internal/components/masked-input/keyboard-handler.js.map +1 -1
  660. package/lib/internal/template/internal/components/masked-input/use-mask.d.ts.map +1 -1
  661. package/lib/internal/template/internal/components/masked-input/use-mask.js.map +1 -1
  662. package/lib/internal/template/internal/components/masked-input/utils/keys.d.ts.map +1 -1
  663. package/lib/internal/template/internal/components/masked-input/utils/keys.js.map +1 -1
  664. package/lib/internal/template/internal/components/masked-input/utils/mask-format.d.ts.map +1 -1
  665. package/lib/internal/template/internal/components/masked-input/utils/mask-format.js.map +1 -1
  666. package/lib/internal/template/internal/components/masked-input/utils/strings.d.ts.map +1 -1
  667. package/lib/internal/template/internal/components/masked-input/utils/strings.js.map +1 -1
  668. package/lib/internal/template/internal/components/menu-dropdown/index.d.ts.map +1 -1
  669. package/lib/internal/template/internal/components/menu-dropdown/index.js.map +1 -1
  670. package/lib/internal/template/internal/components/menu-dropdown/interfaces.d.ts.map +1 -1
  671. package/lib/internal/template/internal/components/menu-dropdown/interfaces.js.map +1 -1
  672. package/lib/internal/template/internal/components/option/highlight-match.d.ts.map +1 -1
  673. package/lib/internal/template/internal/components/option/highlight-match.js.map +1 -1
  674. package/lib/internal/template/internal/components/option/index.d.ts.map +1 -1
  675. package/lib/internal/template/internal/components/option/index.js.map +1 -1
  676. package/lib/internal/template/internal/components/option/interfaces.d.ts.map +1 -1
  677. package/lib/internal/template/internal/components/option/interfaces.js.map +1 -1
  678. package/lib/internal/template/internal/components/option/option-announcer.d.ts.map +1 -1
  679. package/lib/internal/template/internal/components/option/option-announcer.js.map +1 -1
  680. package/lib/internal/template/internal/components/option/option-parts.d.ts.map +1 -1
  681. package/lib/internal/template/internal/components/option/option-parts.js.map +1 -1
  682. package/lib/internal/template/internal/components/option/utils/filter-options.d.ts.map +1 -1
  683. package/lib/internal/template/internal/components/option/utils/filter-options.js.map +1 -1
  684. package/lib/internal/template/internal/components/option/utils/flatten-options.d.ts.map +1 -1
  685. package/lib/internal/template/internal/components/option/utils/flatten-options.js.map +1 -1
  686. package/lib/internal/template/internal/components/option/utils/prepare-options.d.ts.map +1 -1
  687. package/lib/internal/template/internal/components/option/utils/prepare-options.js.map +1 -1
  688. package/lib/internal/template/internal/components/options-list/index.d.ts.map +1 -1
  689. package/lib/internal/template/internal/components/options-list/index.js.map +1 -1
  690. package/lib/internal/template/internal/components/options-list/utils/test-indexes.d.ts.map +1 -1
  691. package/lib/internal/template/internal/components/options-list/utils/test-indexes.js.map +1 -1
  692. package/lib/internal/template/internal/components/options-list/utils/use-highlight-option.d.ts.map +1 -1
  693. package/lib/internal/template/internal/components/options-list/utils/use-highlight-option.js.map +1 -1
  694. package/lib/internal/template/internal/components/options-list/utils/use-ids.d.ts.map +1 -1
  695. package/lib/internal/template/internal/components/options-list/utils/use-ids.js.map +1 -1
  696. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  697. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  698. package/lib/internal/template/internal/components/options-list/utils/use-open-state.d.ts.map +1 -1
  699. package/lib/internal/template/internal/components/options-list/utils/use-open-state.js.map +1 -1
  700. package/lib/internal/template/internal/components/portal/index.d.ts.map +1 -1
  701. package/lib/internal/template/internal/components/portal/index.js.map +1 -1
  702. package/lib/internal/template/internal/components/responsive-text/index.d.ts.map +1 -1
  703. package/lib/internal/template/internal/components/responsive-text/index.js.map +1 -1
  704. package/lib/internal/template/internal/components/responsive-text/responsive-text-utils.d.ts.map +1 -1
  705. package/lib/internal/template/internal/components/responsive-text/responsive-text-utils.js.map +1 -1
  706. package/lib/internal/template/internal/components/screenreader-only/index.d.ts.map +1 -1
  707. package/lib/internal/template/internal/components/screenreader-only/index.js.map +1 -1
  708. package/lib/internal/template/internal/components/selectable-item/index.d.ts.map +1 -1
  709. package/lib/internal/template/internal/components/selectable-item/index.js.map +1 -1
  710. package/lib/internal/template/internal/components/tab-trap/index.d.ts.map +1 -1
  711. package/lib/internal/template/internal/components/tab-trap/index.js.map +1 -1
  712. package/lib/internal/template/internal/components/token-list/index.d.ts.map +1 -1
  713. package/lib/internal/template/internal/components/token-list/index.js.map +1 -1
  714. package/lib/internal/template/internal/components/token-list/interfaces.d.ts.map +1 -1
  715. package/lib/internal/template/internal/components/token-list/interfaces.js.map +1 -1
  716. package/lib/internal/template/internal/components/token-list/token-focus-controller.d.ts.map +1 -1
  717. package/lib/internal/template/internal/components/token-list/token-focus-controller.js.map +1 -1
  718. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
  719. package/lib/internal/template/internal/components/token-list/token-limit-toggle.js.map +1 -1
  720. package/lib/internal/template/internal/components/transition/index.d.ts.map +1 -1
  721. package/lib/internal/template/internal/components/transition/index.js.map +1 -1
  722. package/lib/internal/template/internal/components/visual-context/index.d.ts.map +1 -1
  723. package/lib/internal/template/internal/components/visual-context/index.js.map +1 -1
  724. package/lib/internal/template/internal/context/app-layout-context.d.ts.map +1 -1
  725. package/lib/internal/template/internal/context/app-layout-context.js.map +1 -1
  726. package/lib/internal/template/internal/context/button-context.d.ts.map +1 -1
  727. package/lib/internal/template/internal/context/button-context.js.map +1 -1
  728. package/lib/internal/template/internal/context/collection-label-context.d.ts.map +1 -1
  729. package/lib/internal/template/internal/context/collection-label-context.js.map +1 -1
  730. package/lib/internal/template/internal/context/dynamic-overlap-context.d.ts.map +1 -1
  731. package/lib/internal/template/internal/context/dynamic-overlap-context.js.map +1 -1
  732. package/lib/internal/template/internal/context/form-field-context.d.ts.map +1 -1
  733. package/lib/internal/template/internal/context/form-field-context.js.map +1 -1
  734. package/lib/internal/template/internal/context/info-link-label-context.d.ts.map +1 -1
  735. package/lib/internal/template/internal/context/info-link-label-context.js.map +1 -1
  736. package/lib/internal/template/internal/context/link-default-variant-context.d.ts.map +1 -1
  737. package/lib/internal/template/internal/context/link-default-variant-context.js.map +1 -1
  738. package/lib/internal/template/internal/context/modal-context.d.ts.map +1 -1
  739. package/lib/internal/template/internal/context/modal-context.js.map +1 -1
  740. package/lib/internal/template/internal/context/reset-contexts-for-modal.d.ts.map +1 -1
  741. package/lib/internal/template/internal/context/reset-contexts-for-modal.js.map +1 -1
  742. package/lib/internal/template/internal/context/single-tab-stop-navigation-context.d.ts.map +1 -1
  743. package/lib/internal/template/internal/context/single-tab-stop-navigation-context.js.map +1 -1
  744. package/lib/internal/template/internal/context/split-panel-context.d.ts.map +1 -1
  745. package/lib/internal/template/internal/context/split-panel-context.js.map +1 -1
  746. package/lib/internal/template/internal/debounce.d.ts.map +1 -1
  747. package/lib/internal/template/internal/debounce.js.map +1 -1
  748. package/lib/internal/template/internal/environment.js +1 -1
  749. package/lib/internal/template/internal/environment.json +1 -1
  750. package/lib/internal/template/internal/events/index.d.ts.map +1 -1
  751. package/lib/internal/template/internal/events/index.js.map +1 -1
  752. package/lib/internal/template/internal/focus-tracker.d.ts.map +1 -1
  753. package/lib/internal/template/internal/focus-tracker.js.map +1 -1
  754. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  755. package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
  756. package/lib/internal/template/internal/hooks/check-controlled/index.d.ts.map +1 -1
  757. package/lib/internal/template/internal/hooks/check-controlled/index.js.map +1 -1
  758. package/lib/internal/template/internal/hooks/container-queries/index.d.ts.map +1 -1
  759. package/lib/internal/template/internal/hooks/container-queries/index.js.map +1 -1
  760. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts.map +1 -1
  761. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
  762. package/lib/internal/template/internal/hooks/container-queries/use-height-measure.d.ts.map +1 -1
  763. package/lib/internal/template/internal/hooks/container-queries/use-height-measure.js.map +1 -1
  764. package/lib/internal/template/internal/hooks/focus-visible/index.d.ts.map +1 -1
  765. package/lib/internal/template/internal/hooks/focus-visible/index.js.map +1 -1
  766. package/lib/internal/template/internal/hooks/forward-focus/index.d.ts.map +1 -1
  767. package/lib/internal/template/internal/hooks/forward-focus/index.js.map +1 -1
  768. package/lib/internal/template/internal/hooks/forward-focus/radio-group.d.ts.map +1 -1
  769. package/lib/internal/template/internal/hooks/forward-focus/radio-group.js.map +1 -1
  770. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts.map +1 -1
  771. package/lib/internal/template/internal/hooks/use-base-component/index.js.map +1 -1
  772. package/lib/internal/template/internal/hooks/use-controllable/index.d.ts.map +1 -1
  773. package/lib/internal/template/internal/hooks/use-controllable/index.js.map +1 -1
  774. package/lib/internal/template/internal/hooks/use-date-cache/index.d.ts.map +1 -1
  775. package/lib/internal/template/internal/hooks/use-date-cache/index.js.map +1 -1
  776. package/lib/internal/template/internal/hooks/use-debounce-callback/index.d.ts.map +1 -1
  777. package/lib/internal/template/internal/hooks/use-debounce-callback/index.js.map +1 -1
  778. package/lib/internal/template/internal/hooks/use-dynamic-overlap/index.d.ts.map +1 -1
  779. package/lib/internal/template/internal/hooks/use-dynamic-overlap/index.js.map +1 -1
  780. package/lib/internal/template/internal/hooks/use-effect-on-update.d.ts.map +1 -1
  781. package/lib/internal/template/internal/hooks/use-effect-on-update.js.map +1 -1
  782. package/lib/internal/template/internal/hooks/use-focus-tracker.d.ts.map +1 -1
  783. package/lib/internal/template/internal/hooks/use-focus-tracker.js.map +1 -1
  784. package/lib/internal/template/internal/hooks/use-has-rendered/index.d.ts.map +1 -1
  785. package/lib/internal/template/internal/hooks/use-has-rendered/index.js.map +1 -1
  786. package/lib/internal/template/internal/hooks/use-intersection-observer/index.d.ts.map +1 -1
  787. package/lib/internal/template/internal/hooks/use-intersection-observer/index.js.map +1 -1
  788. package/lib/internal/template/internal/hooks/use-merge-refs/index.d.ts.map +1 -1
  789. package/lib/internal/template/internal/hooks/use-merge-refs/index.js.map +1 -1
  790. package/lib/internal/template/internal/hooks/use-mobile/index.d.ts.map +1 -1
  791. package/lib/internal/template/internal/hooks/use-mobile/index.js.map +1 -1
  792. package/lib/internal/template/internal/hooks/use-mouse-down-target.d.ts.map +1 -1
  793. package/lib/internal/template/internal/hooks/use-mouse-down-target.js.map +1 -1
  794. package/lib/internal/template/internal/hooks/use-mutation-observer/index.d.ts.map +1 -1
  795. package/lib/internal/template/internal/hooks/use-mutation-observer/index.js.map +1 -1
  796. package/lib/internal/template/internal/hooks/use-performance-marks.d.ts.map +1 -1
  797. package/lib/internal/template/internal/hooks/use-performance-marks.js.map +1 -1
  798. package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.d.ts.map +1 -1
  799. package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.js.map +1 -1
  800. package/lib/internal/template/internal/hooks/use-previous/index.d.ts.map +1 -1
  801. package/lib/internal/template/internal/hooks/use-previous/index.js.map +1 -1
  802. package/lib/internal/template/internal/hooks/use-scroll-sync/index.d.ts.map +1 -1
  803. package/lib/internal/template/internal/hooks/use-scroll-sync/index.js.map +1 -1
  804. package/lib/internal/template/internal/hooks/use-telemetry/index.d.ts.map +1 -1
  805. package/lib/internal/template/internal/hooks/use-telemetry/index.js.map +1 -1
  806. package/lib/internal/template/internal/hooks/use-unique-id/index.d.ts.map +1 -1
  807. package/lib/internal/template/internal/hooks/use-unique-id/index.js.map +1 -1
  808. package/lib/internal/template/internal/hooks/use-virtual/index.d.ts.map +1 -1
  809. package/lib/internal/template/internal/hooks/use-virtual/index.js.map +1 -1
  810. package/lib/internal/template/internal/hooks/use-visual-mode/index.d.ts.map +1 -1
  811. package/lib/internal/template/internal/hooks/use-visual-mode/index.js.map +1 -1
  812. package/lib/internal/template/internal/is-development.d.ts.map +1 -1
  813. package/lib/internal/template/internal/is-development.js.map +1 -1
  814. package/lib/internal/template/internal/keycode.d.ts.map +1 -1
  815. package/lib/internal/template/internal/keycode.js.map +1 -1
  816. package/lib/internal/template/internal/plugins/api.d.ts.map +1 -1
  817. package/lib/internal/template/internal/plugins/api.js.map +1 -1
  818. package/lib/internal/template/internal/plugins/controllers/action-buttons.d.ts.map +1 -1
  819. package/lib/internal/template/internal/plugins/controllers/action-buttons.js.map +1 -1
  820. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts.map +1 -1
  821. package/lib/internal/template/internal/plugins/controllers/drawers.js.map +1 -1
  822. package/lib/internal/template/internal/plugins/helpers/index.d.ts.map +1 -1
  823. package/lib/internal/template/internal/plugins/helpers/index.js.map +1 -1
  824. package/lib/internal/template/internal/plugins/helpers/runtime-content-wrapper.d.ts.map +1 -1
  825. package/lib/internal/template/internal/plugins/helpers/runtime-content-wrapper.js.map +1 -1
  826. package/lib/internal/template/internal/plugins/helpers/use-discovered-action.d.ts.map +1 -1
  827. package/lib/internal/template/internal/plugins/helpers/use-discovered-action.js.map +1 -1
  828. package/lib/internal/template/internal/plugins/helpers/utils.d.ts.map +1 -1
  829. package/lib/internal/template/internal/plugins/helpers/utils.js.map +1 -1
  830. package/lib/internal/template/internal/plugins/index.d.ts.map +1 -1
  831. package/lib/internal/template/internal/plugins/index.js.map +1 -1
  832. package/lib/internal/template/internal/styles/colors.d.ts.map +1 -1
  833. package/lib/internal/template/internal/styles/colors.js.map +1 -1
  834. package/lib/internal/template/internal/types.d.ts.map +1 -1
  835. package/lib/internal/template/internal/types.js.map +1 -1
  836. package/lib/internal/template/internal/utils/apply-display-name.d.ts.map +1 -1
  837. package/lib/internal/template/internal/utils/apply-display-name.js.map +1 -1
  838. package/lib/internal/template/internal/utils/browser-scrollbar-size.d.ts.map +1 -1
  839. package/lib/internal/template/internal/utils/browser-scrollbar-size.js.map +1 -1
  840. package/lib/internal/template/internal/utils/calculate-once.d.ts.map +1 -1
  841. package/lib/internal/template/internal/utils/calculate-once.js.map +1 -1
  842. package/lib/internal/template/internal/utils/check-safe-url.d.ts.map +1 -1
  843. package/lib/internal/template/internal/utils/check-safe-url.js.map +1 -1
  844. package/lib/internal/template/internal/utils/content-header-utils.d.ts.map +1 -1
  845. package/lib/internal/template/internal/utils/content-header-utils.js.map +1 -1
  846. package/lib/internal/template/internal/utils/create-category-color-scale.d.ts.map +1 -1
  847. package/lib/internal/template/internal/utils/create-category-color-scale.js.map +1 -1
  848. package/lib/internal/template/internal/utils/date-time/display-format.d.ts.map +1 -1
  849. package/lib/internal/template/internal/utils/date-time/display-format.js.map +1 -1
  850. package/lib/internal/template/internal/utils/date-time/format-date-iso.d.ts.map +1 -1
  851. package/lib/internal/template/internal/utils/date-time/format-date-iso.js.map +1 -1
  852. package/lib/internal/template/internal/utils/date-time/format-date-localized.d.ts.map +1 -1
  853. package/lib/internal/template/internal/utils/date-time/format-date-localized.js.map +1 -1
  854. package/lib/internal/template/internal/utils/date-time/format-date-range.d.ts.map +1 -1
  855. package/lib/internal/template/internal/utils/date-time/format-date-range.js.map +1 -1
  856. package/lib/internal/template/internal/utils/date-time/format-date-time.d.ts.map +1 -1
  857. package/lib/internal/template/internal/utils/date-time/format-date-time.js.map +1 -1
  858. package/lib/internal/template/internal/utils/date-time/format-date.d.ts.map +1 -1
  859. package/lib/internal/template/internal/utils/date-time/format-date.js.map +1 -1
  860. package/lib/internal/template/internal/utils/date-time/format-time-offset.d.ts.map +1 -1
  861. package/lib/internal/template/internal/utils/date-time/format-time-offset.js.map +1 -1
  862. package/lib/internal/template/internal/utils/date-time/format-time.d.ts.map +1 -1
  863. package/lib/internal/template/internal/utils/date-time/format-time.js.map +1 -1
  864. package/lib/internal/template/internal/utils/date-time/index.d.ts.map +1 -1
  865. package/lib/internal/template/internal/utils/date-time/index.js.map +1 -1
  866. package/lib/internal/template/internal/utils/date-time/is-iso-date-only.d.ts.map +1 -1
  867. package/lib/internal/template/internal/utils/date-time/is-iso-date-only.js.map +1 -1
  868. package/lib/internal/template/internal/utils/date-time/join-date-time.d.ts.map +1 -1
  869. package/lib/internal/template/internal/utils/date-time/join-date-time.js.map +1 -1
  870. package/lib/internal/template/internal/utils/date-time/parse-date.d.ts.map +1 -1
  871. package/lib/internal/template/internal/utils/date-time/parse-date.js.map +1 -1
  872. package/lib/internal/template/internal/utils/date-time/parse-timezone-offset.d.ts.map +1 -1
  873. package/lib/internal/template/internal/utils/date-time/parse-timezone-offset.js.map +1 -1
  874. package/lib/internal/template/internal/utils/date-time/shift-timezone-offset.d.ts.map +1 -1
  875. package/lib/internal/template/internal/utils/date-time/shift-timezone-offset.js.map +1 -1
  876. package/lib/internal/template/internal/utils/dom.d.ts.map +1 -1
  877. package/lib/internal/template/internal/utils/dom.js.map +1 -1
  878. package/lib/internal/template/internal/utils/external-props.d.ts.map +1 -1
  879. package/lib/internal/template/internal/utils/external-props.js.map +1 -1
  880. package/lib/internal/template/internal/utils/global-flags.d.ts.map +1 -1
  881. package/lib/internal/template/internal/utils/global-flags.js.map +1 -1
  882. package/lib/internal/template/internal/utils/has-value.d.ts.map +1 -1
  883. package/lib/internal/template/internal/utils/has-value.js.map +1 -1
  884. package/lib/internal/template/internal/utils/locale/index.d.ts.map +1 -1
  885. package/lib/internal/template/internal/utils/locale/index.js.map +1 -1
  886. package/lib/internal/template/internal/utils/locale/merge-locales.d.ts.map +1 -1
  887. package/lib/internal/template/internal/utils/locale/merge-locales.js.map +1 -1
  888. package/lib/internal/template/internal/utils/locale/normalize-locale.d.ts.map +1 -1
  889. package/lib/internal/template/internal/utils/locale/normalize-locale.js.map +1 -1
  890. package/lib/internal/template/internal/utils/locale/normalize-start-of-week.d.ts.map +1 -1
  891. package/lib/internal/template/internal/utils/locale/normalize-start-of-week.js.map +1 -1
  892. package/lib/internal/template/internal/utils/node-belongs.d.ts.map +1 -1
  893. package/lib/internal/template/internal/utils/node-belongs.js.map +1 -1
  894. package/lib/internal/template/internal/utils/promises.d.ts.map +1 -1
  895. package/lib/internal/template/internal/utils/promises.js.map +1 -1
  896. package/lib/internal/template/internal/utils/scrollable-containers.d.ts.map +1 -1
  897. package/lib/internal/template/internal/utils/scrollable-containers.js.map +1 -1
  898. package/lib/internal/template/internal/utils/strings/index.d.ts.map +1 -1
  899. package/lib/internal/template/internal/utils/strings/index.js.map +1 -1
  900. package/lib/internal/template/internal/utils/strings/join-strings.d.ts.map +1 -1
  901. package/lib/internal/template/internal/utils/strings/join-strings.js.map +1 -1
  902. package/lib/internal/template/internal/utils/strings/pad-left-zeros.d.ts.map +1 -1
  903. package/lib/internal/template/internal/utils/strings/pad-left-zeros.js.map +1 -1
  904. package/lib/internal/template/internal/utils/throttle.d.ts.map +1 -1
  905. package/lib/internal/template/internal/utils/throttle.js.map +1 -1
  906. package/lib/internal/template/internal/utils/use-container-width.d.ts.map +1 -1
  907. package/lib/internal/template/internal/utils/use-container-width.js.map +1 -1
  908. package/lib/internal/template/line-chart/index.d.ts.map +1 -1
  909. package/lib/internal/template/line-chart/index.js.map +1 -1
  910. package/lib/internal/template/line-chart/interfaces.d.ts.map +1 -1
  911. package/lib/internal/template/line-chart/interfaces.js.map +1 -1
  912. package/lib/internal/template/link/index.d.ts.map +1 -1
  913. package/lib/internal/template/link/index.js.map +1 -1
  914. package/lib/internal/template/link/interfaces.d.ts.map +1 -1
  915. package/lib/internal/template/link/interfaces.js.map +1 -1
  916. package/lib/internal/template/link/internal.d.ts.map +1 -1
  917. package/lib/internal/template/link/internal.js.map +1 -1
  918. package/lib/internal/template/mixed-line-bar-chart/bar-groups.d.ts.map +1 -1
  919. package/lib/internal/template/mixed-line-bar-chart/bar-groups.js.map +1 -1
  920. package/lib/internal/template/mixed-line-bar-chart/bar-series.d.ts.map +1 -1
  921. package/lib/internal/template/mixed-line-bar-chart/bar-series.js.map +1 -1
  922. package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  923. package/lib/internal/template/mixed-line-bar-chart/chart-container.js.map +1 -1
  924. package/lib/internal/template/mixed-line-bar-chart/chart-legend.d.ts.map +1 -1
  925. package/lib/internal/template/mixed-line-bar-chart/chart-legend.js.map +1 -1
  926. package/lib/internal/template/mixed-line-bar-chart/chart-popover.d.ts.map +1 -1
  927. package/lib/internal/template/mixed-line-bar-chart/chart-popover.js.map +1 -1
  928. package/lib/internal/template/mixed-line-bar-chart/data-series.d.ts.map +1 -1
  929. package/lib/internal/template/mixed-line-bar-chart/data-series.js.map +1 -1
  930. package/lib/internal/template/mixed-line-bar-chart/domain.d.ts.map +1 -1
  931. package/lib/internal/template/mixed-line-bar-chart/domain.js.map +1 -1
  932. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
  933. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.js.map +1 -1
  934. package/lib/internal/template/mixed-line-bar-chart/hooks/use-mouse-hover.d.ts.map +1 -1
  935. package/lib/internal/template/mixed-line-bar-chart/hooks/use-mouse-hover.js.map +1 -1
  936. package/lib/internal/template/mixed-line-bar-chart/hooks/use-navigation.d.ts.map +1 -1
  937. package/lib/internal/template/mixed-line-bar-chart/hooks/use-navigation.js.map +1 -1
  938. package/lib/internal/template/mixed-line-bar-chart/hooks/use-popover.d.ts.map +1 -1
  939. package/lib/internal/template/mixed-line-bar-chart/hooks/use-popover.js.map +1 -1
  940. package/lib/internal/template/mixed-line-bar-chart/index.d.ts.map +1 -1
  941. package/lib/internal/template/mixed-line-bar-chart/index.js.map +1 -1
  942. package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  943. package/lib/internal/template/mixed-line-bar-chart/interfaces.js.map +1 -1
  944. package/lib/internal/template/mixed-line-bar-chart/internal.d.ts.map +1 -1
  945. package/lib/internal/template/mixed-line-bar-chart/internal.js.map +1 -1
  946. package/lib/internal/template/mixed-line-bar-chart/line-series.d.ts.map +1 -1
  947. package/lib/internal/template/mixed-line-bar-chart/line-series.js.map +1 -1
  948. package/lib/internal/template/mixed-line-bar-chart/make-scaled-bar-groups.d.ts.map +1 -1
  949. package/lib/internal/template/mixed-line-bar-chart/make-scaled-bar-groups.js.map +1 -1
  950. package/lib/internal/template/mixed-line-bar-chart/make-scaled-series.d.ts.map +1 -1
  951. package/lib/internal/template/mixed-line-bar-chart/make-scaled-series.js.map +1 -1
  952. package/lib/internal/template/mixed-line-bar-chart/utils.d.ts.map +1 -1
  953. package/lib/internal/template/mixed-line-bar-chart/utils.js.map +1 -1
  954. package/lib/internal/template/modal/body-scroll.d.ts.map +1 -1
  955. package/lib/internal/template/modal/body-scroll.js.map +1 -1
  956. package/lib/internal/template/modal/index.d.ts.map +1 -1
  957. package/lib/internal/template/modal/index.js.map +1 -1
  958. package/lib/internal/template/modal/interfaces.d.ts.map +1 -1
  959. package/lib/internal/template/modal/interfaces.js.map +1 -1
  960. package/lib/internal/template/modal/internal.d.ts.map +1 -1
  961. package/lib/internal/template/modal/internal.js.map +1 -1
  962. package/lib/internal/template/multiselect/index.d.ts.map +1 -1
  963. package/lib/internal/template/multiselect/index.js.map +1 -1
  964. package/lib/internal/template/multiselect/interfaces.d.ts.map +1 -1
  965. package/lib/internal/template/multiselect/interfaces.js.map +1 -1
  966. package/lib/internal/template/multiselect/internal.d.ts.map +1 -1
  967. package/lib/internal/template/multiselect/internal.js.map +1 -1
  968. package/lib/internal/template/pagination/index.d.ts.map +1 -1
  969. package/lib/internal/template/pagination/index.js.map +1 -1
  970. package/lib/internal/template/pagination/interfaces.d.ts.map +1 -1
  971. package/lib/internal/template/pagination/interfaces.js.map +1 -1
  972. package/lib/internal/template/pagination/internal.d.ts.map +1 -1
  973. package/lib/internal/template/pagination/internal.js.map +1 -1
  974. package/lib/internal/template/pagination/utils.d.ts.map +1 -1
  975. package/lib/internal/template/pagination/utils.js.map +1 -1
  976. package/lib/internal/template/pie-chart/index.d.ts.map +1 -1
  977. package/lib/internal/template/pie-chart/index.js.map +1 -1
  978. package/lib/internal/template/pie-chart/interfaces.d.ts.map +1 -1
  979. package/lib/internal/template/pie-chart/interfaces.js.map +1 -1
  980. package/lib/internal/template/pie-chart/labels.d.ts.map +1 -1
  981. package/lib/internal/template/pie-chart/labels.js.map +1 -1
  982. package/lib/internal/template/pie-chart/pie-chart.d.ts.map +1 -1
  983. package/lib/internal/template/pie-chart/pie-chart.js.map +1 -1
  984. package/lib/internal/template/pie-chart/responsive-text.d.ts.map +1 -1
  985. package/lib/internal/template/pie-chart/responsive-text.js.map +1 -1
  986. package/lib/internal/template/pie-chart/segments.d.ts.map +1 -1
  987. package/lib/internal/template/pie-chart/segments.js.map +1 -1
  988. package/lib/internal/template/pie-chart/utils.d.ts.map +1 -1
  989. package/lib/internal/template/pie-chart/utils.js.map +1 -1
  990. package/lib/internal/template/popover/arrow.d.ts.map +1 -1
  991. package/lib/internal/template/popover/arrow.js.map +1 -1
  992. package/lib/internal/template/popover/body.d.ts.map +1 -1
  993. package/lib/internal/template/popover/body.js.map +1 -1
  994. package/lib/internal/template/popover/container.d.ts.map +1 -1
  995. package/lib/internal/template/popover/container.js.map +1 -1
  996. package/lib/internal/template/popover/index.d.ts.map +1 -1
  997. package/lib/internal/template/popover/index.js.map +1 -1
  998. package/lib/internal/template/popover/interfaces.d.ts.map +1 -1
  999. package/lib/internal/template/popover/interfaces.js.map +1 -1
  1000. package/lib/internal/template/popover/internal.d.ts.map +1 -1
  1001. package/lib/internal/template/popover/internal.js.map +1 -1
  1002. package/lib/internal/template/popover/use-popover-position.d.ts.map +1 -1
  1003. package/lib/internal/template/popover/use-popover-position.js.map +1 -1
  1004. package/lib/internal/template/popover/utils/positions.d.ts.map +1 -1
  1005. package/lib/internal/template/popover/utils/positions.js.map +1 -1
  1006. package/lib/internal/template/progress-bar/index.d.ts.map +1 -1
  1007. package/lib/internal/template/progress-bar/index.js.map +1 -1
  1008. package/lib/internal/template/progress-bar/interfaces.d.ts.map +1 -1
  1009. package/lib/internal/template/progress-bar/interfaces.js.map +1 -1
  1010. package/lib/internal/template/progress-bar/internal.d.ts.map +1 -1
  1011. package/lib/internal/template/progress-bar/internal.js.map +1 -1
  1012. package/lib/internal/template/property-filter/controller.d.ts.map +1 -1
  1013. package/lib/internal/template/property-filter/controller.js.map +1 -1
  1014. package/lib/internal/template/property-filter/filter-options.d.ts.map +1 -1
  1015. package/lib/internal/template/property-filter/filter-options.js.map +1 -1
  1016. package/lib/internal/template/property-filter/index.d.ts.map +1 -1
  1017. package/lib/internal/template/property-filter/index.js.map +1 -1
  1018. package/lib/internal/template/property-filter/interfaces.d.ts.map +1 -1
  1019. package/lib/internal/template/property-filter/interfaces.js.map +1 -1
  1020. package/lib/internal/template/property-filter/property-editor.d.ts.map +1 -1
  1021. package/lib/internal/template/property-filter/property-editor.js.map +1 -1
  1022. package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  1023. package/lib/internal/template/property-filter/property-filter-autosuggest.js.map +1 -1
  1024. package/lib/internal/template/property-filter/token-editor.d.ts.map +1 -1
  1025. package/lib/internal/template/property-filter/token-editor.js.map +1 -1
  1026. package/lib/internal/template/property-filter/token.d.ts.map +1 -1
  1027. package/lib/internal/template/property-filter/token.js.map +1 -1
  1028. package/lib/internal/template/property-filter/use-load-items.d.ts.map +1 -1
  1029. package/lib/internal/template/property-filter/use-load-items.js.map +1 -1
  1030. package/lib/internal/template/property-filter/utils.d.ts.map +1 -1
  1031. package/lib/internal/template/property-filter/utils.js.map +1 -1
  1032. package/lib/internal/template/radio-group/index.d.ts.map +1 -1
  1033. package/lib/internal/template/radio-group/index.js.map +1 -1
  1034. package/lib/internal/template/radio-group/interfaces.d.ts.map +1 -1
  1035. package/lib/internal/template/radio-group/interfaces.js.map +1 -1
  1036. package/lib/internal/template/radio-group/internal.d.ts.map +1 -1
  1037. package/lib/internal/template/radio-group/internal.js.map +1 -1
  1038. package/lib/internal/template/radio-group/radio-button.d.ts.map +1 -1
  1039. package/lib/internal/template/radio-group/radio-button.js.map +1 -1
  1040. package/lib/internal/template/s3-resource-selector/index.d.ts.map +1 -1
  1041. package/lib/internal/template/s3-resource-selector/index.js.map +1 -1
  1042. package/lib/internal/template/s3-resource-selector/interfaces.d.ts.map +1 -1
  1043. package/lib/internal/template/s3-resource-selector/interfaces.js.map +1 -1
  1044. package/lib/internal/template/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
  1045. package/lib/internal/template/s3-resource-selector/s3-in-context/index.js.map +1 -1
  1046. package/lib/internal/template/s3-resource-selector/s3-in-context/search-input.d.ts.map +1 -1
  1047. package/lib/internal/template/s3-resource-selector/s3-in-context/search-input.js.map +1 -1
  1048. package/lib/internal/template/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts.map +1 -1
  1049. package/lib/internal/template/s3-resource-selector/s3-in-context/use-versions-fetch.js.map +1 -1
  1050. package/lib/internal/template/s3-resource-selector/s3-in-context/validation.d.ts.map +1 -1
  1051. package/lib/internal/template/s3-resource-selector/s3-in-context/validation.js.map +1 -1
  1052. package/lib/internal/template/s3-resource-selector/s3-modal/basic-table.d.ts.map +1 -1
  1053. package/lib/internal/template/s3-resource-selector/s3-modal/basic-table.js +1 -1
  1054. package/lib/internal/template/s3-resource-selector/s3-modal/basic-table.js.map +1 -1
  1055. package/lib/internal/template/s3-resource-selector/s3-modal/buckets-table.d.ts.map +1 -1
  1056. package/lib/internal/template/s3-resource-selector/s3-modal/buckets-table.js.map +1 -1
  1057. package/lib/internal/template/s3-resource-selector/s3-modal/column-formats.d.ts.map +1 -1
  1058. package/lib/internal/template/s3-resource-selector/s3-modal/column-formats.js.map +1 -1
  1059. package/lib/internal/template/s3-resource-selector/s3-modal/empty-state.d.ts.map +1 -1
  1060. package/lib/internal/template/s3-resource-selector/s3-modal/empty-state.js.map +1 -1
  1061. package/lib/internal/template/s3-resource-selector/s3-modal/index.d.ts.map +1 -1
  1062. package/lib/internal/template/s3-resource-selector/s3-modal/index.js.map +1 -1
  1063. package/lib/internal/template/s3-resource-selector/s3-modal/objects-table.d.ts.map +1 -1
  1064. package/lib/internal/template/s3-resource-selector/s3-modal/objects-table.js.map +1 -1
  1065. package/lib/internal/template/s3-resource-selector/s3-modal/table-utils.d.ts.map +1 -1
  1066. package/lib/internal/template/s3-resource-selector/s3-modal/table-utils.js.map +1 -1
  1067. package/lib/internal/template/s3-resource-selector/s3-modal/versions-table.d.ts.map +1 -1
  1068. package/lib/internal/template/s3-resource-selector/s3-modal/versions-table.js.map +1 -1
  1069. package/lib/internal/template/s3-resource-selector/utils.d.ts.map +1 -1
  1070. package/lib/internal/template/s3-resource-selector/utils.js.map +1 -1
  1071. package/lib/internal/template/segmented-control/index.d.ts.map +1 -1
  1072. package/lib/internal/template/segmented-control/index.js.map +1 -1
  1073. package/lib/internal/template/segmented-control/interfaces.d.ts.map +1 -1
  1074. package/lib/internal/template/segmented-control/interfaces.js.map +1 -1
  1075. package/lib/internal/template/segmented-control/internal-segmented-control.d.ts.map +1 -1
  1076. package/lib/internal/template/segmented-control/internal-segmented-control.js.map +1 -1
  1077. package/lib/internal/template/segmented-control/internal.d.ts.map +1 -1
  1078. package/lib/internal/template/segmented-control/internal.js.map +1 -1
  1079. package/lib/internal/template/segmented-control/segment.d.ts.map +1 -1
  1080. package/lib/internal/template/segmented-control/segment.js.map +1 -1
  1081. package/lib/internal/template/select/index.d.ts.map +1 -1
  1082. package/lib/internal/template/select/index.js.map +1 -1
  1083. package/lib/internal/template/select/interfaces.d.ts.map +1 -1
  1084. package/lib/internal/template/select/interfaces.js.map +1 -1
  1085. package/lib/internal/template/select/internal.d.ts.map +1 -1
  1086. package/lib/internal/template/select/internal.js.map +1 -1
  1087. package/lib/internal/template/select/parts/filter.d.ts.map +1 -1
  1088. package/lib/internal/template/select/parts/filter.js.map +1 -1
  1089. package/lib/internal/template/select/parts/item.d.ts.map +1 -1
  1090. package/lib/internal/template/select/parts/item.js.map +1 -1
  1091. package/lib/internal/template/select/parts/multiselect-item.d.ts.map +1 -1
  1092. package/lib/internal/template/select/parts/multiselect-item.js.map +1 -1
  1093. package/lib/internal/template/select/parts/plain-list.d.ts.map +1 -1
  1094. package/lib/internal/template/select/parts/plain-list.js.map +1 -1
  1095. package/lib/internal/template/select/parts/trigger.d.ts.map +1 -1
  1096. package/lib/internal/template/select/parts/trigger.js.map +1 -1
  1097. package/lib/internal/template/select/parts/virtual-list.d.ts.map +1 -1
  1098. package/lib/internal/template/select/parts/virtual-list.js.map +1 -1
  1099. package/lib/internal/template/select/utils/check-option-value-field.d.ts.map +1 -1
  1100. package/lib/internal/template/select/utils/check-option-value-field.js.map +1 -1
  1101. package/lib/internal/template/select/utils/connect-options.d.ts.map +1 -1
  1102. package/lib/internal/template/select/utils/connect-options.js.map +1 -1
  1103. package/lib/internal/template/select/utils/get-item-props.d.ts.map +1 -1
  1104. package/lib/internal/template/select/utils/get-item-props.js.map +1 -1
  1105. package/lib/internal/template/select/utils/render-options.d.ts.map +1 -1
  1106. package/lib/internal/template/select/utils/render-options.js.map +1 -1
  1107. package/lib/internal/template/select/utils/use-announcement.d.ts.map +1 -1
  1108. package/lib/internal/template/select/utils/use-announcement.js.map +1 -1
  1109. package/lib/internal/template/select/utils/use-load-items.d.ts.map +1 -1
  1110. package/lib/internal/template/select/utils/use-load-items.js.map +1 -1
  1111. package/lib/internal/template/select/utils/use-native-search.d.ts.map +1 -1
  1112. package/lib/internal/template/select/utils/use-native-search.js.map +1 -1
  1113. package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
  1114. package/lib/internal/template/select/utils/use-select.js.map +1 -1
  1115. package/lib/internal/template/side-navigation/index.d.ts.map +1 -1
  1116. package/lib/internal/template/side-navigation/index.js.map +1 -1
  1117. package/lib/internal/template/side-navigation/interfaces.d.ts.map +1 -1
  1118. package/lib/internal/template/side-navigation/interfaces.js.map +1 -1
  1119. package/lib/internal/template/side-navigation/internal.d.ts.map +1 -1
  1120. package/lib/internal/template/side-navigation/internal.js.map +1 -1
  1121. package/lib/internal/template/side-navigation/util.d.ts.map +1 -1
  1122. package/lib/internal/template/side-navigation/util.js.map +1 -1
  1123. package/lib/internal/template/space-between/index.d.ts.map +1 -1
  1124. package/lib/internal/template/space-between/index.js.map +1 -1
  1125. package/lib/internal/template/space-between/interfaces.d.ts.map +1 -1
  1126. package/lib/internal/template/space-between/interfaces.js.map +1 -1
  1127. package/lib/internal/template/space-between/internal.d.ts.map +1 -1
  1128. package/lib/internal/template/space-between/internal.js.map +1 -1
  1129. package/lib/internal/template/spinner/index.d.ts.map +1 -1
  1130. package/lib/internal/template/spinner/index.js.map +1 -1
  1131. package/lib/internal/template/spinner/interfaces.d.ts.map +1 -1
  1132. package/lib/internal/template/spinner/interfaces.js.map +1 -1
  1133. package/lib/internal/template/spinner/internal.d.ts.map +1 -1
  1134. package/lib/internal/template/spinner/internal.js.map +1 -1
  1135. package/lib/internal/template/split-panel/bottom.d.ts.map +1 -1
  1136. package/lib/internal/template/split-panel/bottom.js.map +1 -1
  1137. package/lib/internal/template/split-panel/icons/bottom-icon-refresh.d.ts.map +1 -1
  1138. package/lib/internal/template/split-panel/icons/bottom-icon-refresh.js.map +1 -1
  1139. package/lib/internal/template/split-panel/icons/bottom-icon.d.ts.map +1 -1
  1140. package/lib/internal/template/split-panel/icons/bottom-icon.js.map +1 -1
  1141. package/lib/internal/template/split-panel/icons/resize-handler.d.ts.map +1 -1
  1142. package/lib/internal/template/split-panel/icons/resize-handler.js.map +1 -1
  1143. package/lib/internal/template/split-panel/icons/side-position-refresh.d.ts.map +1 -1
  1144. package/lib/internal/template/split-panel/icons/side-position-refresh.js.map +1 -1
  1145. package/lib/internal/template/split-panel/icons/side-position.d.ts.map +1 -1
  1146. package/lib/internal/template/split-panel/icons/side-position.js.map +1 -1
  1147. package/lib/internal/template/split-panel/index.d.ts.map +1 -1
  1148. package/lib/internal/template/split-panel/index.js.map +1 -1
  1149. package/lib/internal/template/split-panel/interfaces.d.ts.map +1 -1
  1150. package/lib/internal/template/split-panel/interfaces.js.map +1 -1
  1151. package/lib/internal/template/split-panel/preferences-modal.d.ts.map +1 -1
  1152. package/lib/internal/template/split-panel/preferences-modal.js.map +1 -1
  1153. package/lib/internal/template/split-panel/side.d.ts.map +1 -1
  1154. package/lib/internal/template/split-panel/side.js.map +1 -1
  1155. package/lib/internal/template/split-panel/utils/size-utils.d.ts.map +1 -1
  1156. package/lib/internal/template/split-panel/utils/size-utils.js.map +1 -1
  1157. package/lib/internal/template/status-indicator/index.d.ts.map +1 -1
  1158. package/lib/internal/template/status-indicator/index.js.map +1 -1
  1159. package/lib/internal/template/status-indicator/internal.d.ts.map +1 -1
  1160. package/lib/internal/template/status-indicator/internal.js.map +1 -1
  1161. package/lib/internal/template/table/body-cell/click-away.d.ts.map +1 -1
  1162. package/lib/internal/template/table/body-cell/click-away.js.map +1 -1
  1163. package/lib/internal/template/table/body-cell/disabled-inline-editor.d.ts.map +1 -1
  1164. package/lib/internal/template/table/body-cell/disabled-inline-editor.js.map +1 -1
  1165. package/lib/internal/template/table/body-cell/index.d.ts.map +1 -1
  1166. package/lib/internal/template/table/body-cell/index.js.map +1 -1
  1167. package/lib/internal/template/table/body-cell/inline-editor.d.ts.map +1 -1
  1168. package/lib/internal/template/table/body-cell/inline-editor.js.map +1 -1
  1169. package/lib/internal/template/table/body-cell/td-element.d.ts.map +1 -1
  1170. package/lib/internal/template/table/body-cell/td-element.js.map +1 -1
  1171. package/lib/internal/template/table/column-widths-utils.d.ts.map +1 -1
  1172. package/lib/internal/template/table/column-widths-utils.js.map +1 -1
  1173. package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
  1174. package/lib/internal/template/table/header-cell/index.js.map +1 -1
  1175. package/lib/internal/template/table/header-cell/th-element.d.ts.map +1 -1
  1176. package/lib/internal/template/table/header-cell/th-element.js.map +1 -1
  1177. package/lib/internal/template/table/header-cell/utils.d.ts.map +1 -1
  1178. package/lib/internal/template/table/header-cell/utils.js.map +1 -1
  1179. package/lib/internal/template/table/index.d.ts.map +1 -1
  1180. package/lib/internal/template/table/index.js.map +1 -1
  1181. package/lib/internal/template/table/interfaces.d.ts.map +1 -1
  1182. package/lib/internal/template/table/interfaces.js.map +1 -1
  1183. package/lib/internal/template/table/internal.d.ts.map +1 -1
  1184. package/lib/internal/template/table/internal.js.map +1 -1
  1185. package/lib/internal/template/table/no-data-cell.d.ts.map +1 -1
  1186. package/lib/internal/template/table/no-data-cell.js.map +1 -1
  1187. package/lib/internal/template/table/resizer/index.d.ts.map +1 -1
  1188. package/lib/internal/template/table/resizer/index.js.map +1 -1
  1189. package/lib/internal/template/table/resizer/resizer-lookup.d.ts.map +1 -1
  1190. package/lib/internal/template/table/resizer/resizer-lookup.js.map +1 -1
  1191. package/lib/internal/template/table/selection/index.d.ts.map +1 -1
  1192. package/lib/internal/template/table/selection/index.js.map +1 -1
  1193. package/lib/internal/template/table/selection/interfaces.d.ts.map +1 -1
  1194. package/lib/internal/template/table/selection/interfaces.js.map +1 -1
  1195. package/lib/internal/template/table/selection/selection-control.d.ts.map +1 -1
  1196. package/lib/internal/template/table/selection/selection-control.js.map +1 -1
  1197. package/lib/internal/template/table/selection/use-selection-focus-move.d.ts.map +1 -1
  1198. package/lib/internal/template/table/selection/use-selection-focus-move.js.map +1 -1
  1199. package/lib/internal/template/table/selection/use-selection.d.ts.map +1 -1
  1200. package/lib/internal/template/table/selection/use-selection.js.map +1 -1
  1201. package/lib/internal/template/table/selection/utils.d.ts.map +1 -1
  1202. package/lib/internal/template/table/selection/utils.js.map +1 -1
  1203. package/lib/internal/template/table/sticky-columns/index.d.ts.map +1 -1
  1204. package/lib/internal/template/table/sticky-columns/index.js.map +1 -1
  1205. package/lib/internal/template/table/sticky-columns/interfaces.d.ts.map +1 -1
  1206. package/lib/internal/template/table/sticky-columns/interfaces.js.map +1 -1
  1207. package/lib/internal/template/table/sticky-columns/use-sticky-columns.d.ts.map +1 -1
  1208. package/lib/internal/template/table/sticky-columns/use-sticky-columns.js.map +1 -1
  1209. package/lib/internal/template/table/sticky-columns/utils.d.ts.map +1 -1
  1210. package/lib/internal/template/table/sticky-columns/utils.js.map +1 -1
  1211. package/lib/internal/template/table/sticky-header.d.ts.map +1 -1
  1212. package/lib/internal/template/table/sticky-header.js.map +1 -1
  1213. package/lib/internal/template/table/sticky-scrollbar/index.d.ts.map +1 -1
  1214. package/lib/internal/template/table/sticky-scrollbar/index.js.map +1 -1
  1215. package/lib/internal/template/table/sticky-scrollbar/sticky-scrollbar.d.ts.map +1 -1
  1216. package/lib/internal/template/table/sticky-scrollbar/sticky-scrollbar.js.map +1 -1
  1217. package/lib/internal/template/table/sticky-scrollbar/use-sticky-scrollbar.d.ts.map +1 -1
  1218. package/lib/internal/template/table/sticky-scrollbar/use-sticky-scrollbar.js.map +1 -1
  1219. package/lib/internal/template/table/sticky-scrolling.d.ts.map +1 -1
  1220. package/lib/internal/template/table/sticky-scrolling.js.map +1 -1
  1221. package/lib/internal/template/table/table-role/grid-navigation.d.ts.map +1 -1
  1222. package/lib/internal/template/table/table-role/grid-navigation.js.map +1 -1
  1223. package/lib/internal/template/table/table-role/index.d.ts.map +1 -1
  1224. package/lib/internal/template/table/table-role/index.js.map +1 -1
  1225. package/lib/internal/template/table/table-role/interfaces.d.ts.map +1 -1
  1226. package/lib/internal/template/table/table-role/interfaces.js.map +1 -1
  1227. package/lib/internal/template/table/table-role/table-role-helper.d.ts.map +1 -1
  1228. package/lib/internal/template/table/table-role/table-role-helper.js.map +1 -1
  1229. package/lib/internal/template/table/table-role/utils.d.ts.map +1 -1
  1230. package/lib/internal/template/table/table-role/utils.js.map +1 -1
  1231. package/lib/internal/template/table/thead.d.ts.map +1 -1
  1232. package/lib/internal/template/table/thead.js.map +1 -1
  1233. package/lib/internal/template/table/tools-header.d.ts.map +1 -1
  1234. package/lib/internal/template/table/tools-header.js.map +1 -1
  1235. package/lib/internal/template/table/use-cell-editing.d.ts.map +1 -1
  1236. package/lib/internal/template/table/use-cell-editing.js.map +1 -1
  1237. package/lib/internal/template/table/use-column-widths.d.ts.map +1 -1
  1238. package/lib/internal/template/table/use-column-widths.js.map +1 -1
  1239. package/lib/internal/template/table/use-row-events.d.ts.map +1 -1
  1240. package/lib/internal/template/table/use-row-events.js.map +1 -1
  1241. package/lib/internal/template/table/use-sticky-header.d.ts.map +1 -1
  1242. package/lib/internal/template/table/use-sticky-header.js.map +1 -1
  1243. package/lib/internal/template/table/use-table-focus-navigation.d.ts.map +1 -1
  1244. package/lib/internal/template/table/use-table-focus-navigation.js.map +1 -1
  1245. package/lib/internal/template/table/utils.d.ts.map +1 -1
  1246. package/lib/internal/template/table/utils.js.map +1 -1
  1247. package/lib/internal/template/tabs/index.d.ts.map +1 -1
  1248. package/lib/internal/template/tabs/index.js.map +1 -1
  1249. package/lib/internal/template/tabs/interfaces.d.ts.map +1 -1
  1250. package/lib/internal/template/tabs/interfaces.js.map +1 -1
  1251. package/lib/internal/template/tabs/native-smooth-scroll-supported.d.ts.map +1 -1
  1252. package/lib/internal/template/tabs/native-smooth-scroll-supported.js.map +1 -1
  1253. package/lib/internal/template/tabs/scroll-utils.d.ts.map +1 -1
  1254. package/lib/internal/template/tabs/scroll-utils.js.map +1 -1
  1255. package/lib/internal/template/tabs/smooth-scroll.d.ts.map +1 -1
  1256. package/lib/internal/template/tabs/smooth-scroll.js.map +1 -1
  1257. package/lib/internal/template/tabs/tab-header-bar.d.ts.map +1 -1
  1258. package/lib/internal/template/tabs/tab-header-bar.js.map +1 -1
  1259. package/lib/internal/template/tag-editor/index.d.ts.map +1 -1
  1260. package/lib/internal/template/tag-editor/index.js.map +1 -1
  1261. package/lib/internal/template/tag-editor/interfaces.d.ts.map +1 -1
  1262. package/lib/internal/template/tag-editor/interfaces.js.map +1 -1
  1263. package/lib/internal/template/tag-editor/internal.d.ts.map +1 -1
  1264. package/lib/internal/template/tag-editor/internal.js.map +1 -1
  1265. package/lib/internal/template/tag-editor/utils.d.ts.map +1 -1
  1266. package/lib/internal/template/tag-editor/utils.js.map +1 -1
  1267. package/lib/internal/template/tag-editor/validation.d.ts.map +1 -1
  1268. package/lib/internal/template/tag-editor/validation.js.map +1 -1
  1269. package/lib/internal/template/text-content/index.d.ts.map +1 -1
  1270. package/lib/internal/template/text-content/index.js.map +1 -1
  1271. package/lib/internal/template/text-content/interfaces.d.ts.map +1 -1
  1272. package/lib/internal/template/text-content/interfaces.js.map +1 -1
  1273. package/lib/internal/template/text-filter/index.d.ts.map +1 -1
  1274. package/lib/internal/template/text-filter/index.js.map +1 -1
  1275. package/lib/internal/template/text-filter/interfaces.d.ts.map +1 -1
  1276. package/lib/internal/template/text-filter/interfaces.js.map +1 -1
  1277. package/lib/internal/template/text-filter/internal.d.ts.map +1 -1
  1278. package/lib/internal/template/text-filter/internal.js.map +1 -1
  1279. package/lib/internal/template/text-filter/search-results.d.ts.map +1 -1
  1280. package/lib/internal/template/text-filter/search-results.js.map +1 -1
  1281. package/lib/internal/template/textarea/index.d.ts.map +1 -1
  1282. package/lib/internal/template/textarea/index.js.map +1 -1
  1283. package/lib/internal/template/textarea/interfaces.d.ts.map +1 -1
  1284. package/lib/internal/template/textarea/interfaces.js.map +1 -1
  1285. package/lib/internal/template/theming/index.d.ts.map +1 -1
  1286. package/lib/internal/template/theming/index.js.map +1 -1
  1287. package/lib/internal/template/tiles/index.d.ts.map +1 -1
  1288. package/lib/internal/template/tiles/index.js.map +1 -1
  1289. package/lib/internal/template/tiles/interfaces.d.ts.map +1 -1
  1290. package/lib/internal/template/tiles/interfaces.js.map +1 -1
  1291. package/lib/internal/template/tiles/internal.d.ts.map +1 -1
  1292. package/lib/internal/template/tiles/internal.js.map +1 -1
  1293. package/lib/internal/template/tiles/tile.d.ts.map +1 -1
  1294. package/lib/internal/template/tiles/tile.js.map +1 -1
  1295. package/lib/internal/template/time-input/index.d.ts.map +1 -1
  1296. package/lib/internal/template/time-input/index.js.map +1 -1
  1297. package/lib/internal/template/time-input/interfaces.d.ts.map +1 -1
  1298. package/lib/internal/template/time-input/interfaces.js.map +1 -1
  1299. package/lib/internal/template/time-input/internal.d.ts.map +1 -1
  1300. package/lib/internal/template/time-input/internal.js.map +1 -1
  1301. package/lib/internal/template/toggle/index.d.ts.map +1 -1
  1302. package/lib/internal/template/toggle/index.js.map +1 -1
  1303. package/lib/internal/template/toggle/interfaces.d.ts.map +1 -1
  1304. package/lib/internal/template/toggle/interfaces.js.map +1 -1
  1305. package/lib/internal/template/toggle/internal.d.ts.map +1 -1
  1306. package/lib/internal/template/toggle/internal.js.map +1 -1
  1307. package/lib/internal/template/token-group/dismiss-button.d.ts.map +1 -1
  1308. package/lib/internal/template/token-group/dismiss-button.js.map +1 -1
  1309. package/lib/internal/template/token-group/index.d.ts.map +1 -1
  1310. package/lib/internal/template/token-group/index.js.map +1 -1
  1311. package/lib/internal/template/token-group/interfaces.d.ts.map +1 -1
  1312. package/lib/internal/template/token-group/interfaces.js.map +1 -1
  1313. package/lib/internal/template/token-group/internal.d.ts.map +1 -1
  1314. package/lib/internal/template/token-group/internal.js.map +1 -1
  1315. package/lib/internal/template/token-group/token.d.ts.map +1 -1
  1316. package/lib/internal/template/token-group/token.js.map +1 -1
  1317. package/lib/internal/template/top-navigation/1.0-beta/index.d.ts.map +1 -1
  1318. package/lib/internal/template/top-navigation/1.0-beta/index.js.map +1 -1
  1319. package/lib/internal/template/top-navigation/1.0-beta/interfaces.d.ts.map +1 -1
  1320. package/lib/internal/template/top-navigation/1.0-beta/interfaces.js.map +1 -1
  1321. package/lib/internal/template/top-navigation/1.0-beta/internal.d.ts.map +1 -1
  1322. package/lib/internal/template/top-navigation/1.0-beta/internal.js.map +1 -1
  1323. package/lib/internal/template/top-navigation/1.0-beta/parts/overflow-menu.d.ts.map +1 -1
  1324. package/lib/internal/template/top-navigation/1.0-beta/parts/overflow-menu.js.map +1 -1
  1325. package/lib/internal/template/top-navigation/1.0-beta/parts/utility.d.ts.map +1 -1
  1326. package/lib/internal/template/top-navigation/1.0-beta/parts/utility.js.map +1 -1
  1327. package/lib/internal/template/top-navigation/1.0-beta/use-top-navigation.d.ts.map +1 -1
  1328. package/lib/internal/template/top-navigation/1.0-beta/use-top-navigation.js.map +1 -1
  1329. package/lib/internal/template/top-navigation/index.d.ts.map +1 -1
  1330. package/lib/internal/template/top-navigation/index.js.map +1 -1
  1331. package/lib/internal/template/top-navigation/interfaces.d.ts.map +1 -1
  1332. package/lib/internal/template/top-navigation/interfaces.js.map +1 -1
  1333. package/lib/internal/template/top-navigation/internal.d.ts.map +1 -1
  1334. package/lib/internal/template/top-navigation/internal.js.map +1 -1
  1335. package/lib/internal/template/top-navigation/parts/overflow-menu/header.d.ts.map +1 -1
  1336. package/lib/internal/template/top-navigation/parts/overflow-menu/header.js.map +1 -1
  1337. package/lib/internal/template/top-navigation/parts/overflow-menu/index.d.ts.map +1 -1
  1338. package/lib/internal/template/top-navigation/parts/overflow-menu/index.js.map +1 -1
  1339. package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
  1340. package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
  1341. package/lib/internal/template/top-navigation/parts/overflow-menu/router.d.ts.map +1 -1
  1342. package/lib/internal/template/top-navigation/parts/overflow-menu/router.js.map +1 -1
  1343. package/lib/internal/template/top-navigation/parts/overflow-menu/views/submenu.d.ts.map +1 -1
  1344. package/lib/internal/template/top-navigation/parts/overflow-menu/views/submenu.js.map +1 -1
  1345. package/lib/internal/template/top-navigation/parts/overflow-menu/views/utilities.d.ts.map +1 -1
  1346. package/lib/internal/template/top-navigation/parts/overflow-menu/views/utilities.js.map +1 -1
  1347. package/lib/internal/template/top-navigation/parts/utility.d.ts.map +1 -1
  1348. package/lib/internal/template/top-navigation/parts/utility.js.map +1 -1
  1349. package/lib/internal/template/top-navigation/use-top-navigation.d.ts.map +1 -1
  1350. package/lib/internal/template/top-navigation/use-top-navigation.js.map +1 -1
  1351. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/congratulation-screen.d.ts.map +1 -1
  1352. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/congratulation-screen.js.map +1 -1
  1353. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/index.d.ts.map +1 -1
  1354. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/index.js.map +1 -1
  1355. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/task-list.d.ts.map +1 -1
  1356. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/task-list.js.map +1 -1
  1357. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/task.d.ts.map +1 -1
  1358. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/task.js.map +1 -1
  1359. package/lib/internal/template/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
  1360. package/lib/internal/template/tutorial-panel/components/tutorial-list/index.js.map +1 -1
  1361. package/lib/internal/template/tutorial-panel/index.d.ts.map +1 -1
  1362. package/lib/internal/template/tutorial-panel/index.js.map +1 -1
  1363. package/lib/internal/template/tutorial-panel/interfaces.d.ts.map +1 -1
  1364. package/lib/internal/template/tutorial-panel/interfaces.js.map +1 -1
  1365. package/lib/internal/template/wizard/analytics.d.ts.map +1 -1
  1366. package/lib/internal/template/wizard/analytics.js.map +1 -1
  1367. package/lib/internal/template/wizard/index.d.ts.map +1 -1
  1368. package/lib/internal/template/wizard/index.js.map +1 -1
  1369. package/lib/internal/template/wizard/interfaces.d.ts.map +1 -1
  1370. package/lib/internal/template/wizard/interfaces.js.map +1 -1
  1371. package/lib/internal/template/wizard/internal.d.ts.map +1 -1
  1372. package/lib/internal/template/wizard/internal.js.map +1 -1
  1373. package/lib/internal/template/wizard/unmount.d.ts.map +1 -1
  1374. package/lib/internal/template/wizard/unmount.js.map +1 -1
  1375. package/lib/internal/template/wizard/wizard-actions.d.ts.map +1 -1
  1376. package/lib/internal/template/wizard/wizard-actions.js.map +1 -1
  1377. package/lib/internal/template/wizard/wizard-form-header.d.ts.map +1 -1
  1378. package/lib/internal/template/wizard/wizard-form-header.js.map +1 -1
  1379. package/lib/internal/template/wizard/wizard-form.d.ts.map +1 -1
  1380. package/lib/internal/template/wizard/wizard-form.js.map +1 -1
  1381. package/lib/internal/template/wizard/wizard-navigation.d.ts.map +1 -1
  1382. package/lib/internal/template/wizard/wizard-navigation.js.map +1 -1
  1383. package/lib/theming.d.ts.map +1 -1
  1384. package/lib/theming.js.map +1 -1
  1385. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["collection-preferences/content-display/keyboard-sensor/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,IA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W,EAAE,CAAC,CAAC;gBAE7C,OAAO,IAAI,CAAC;aACb;YAED,OAAO,KAAK,CAAC;QACf,CAAC;KACF;CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport {\n subtract as getCoordinatesDelta,\n getOwnerDocument,\n getWindow,\n isKeyboardEvent,\n Coordinates,\n} from '@dnd-kit/utilities';\n\nimport { defaultCoordinates } from '@dnd-kit/core';\nimport { applyScroll } from './utilities/scroll';\nimport { EventName } from './utilities/events';\nimport { Listeners } from './utilities/listeners';\nimport type { Activators, SensorInstance } from '@dnd-kit/core';\nimport { KeyboardSensorOptions, KeyboardSensorProps } from '@dnd-kit/core';\n\nimport { defaultKeyboardCodes } from './defaults';\nimport { scrollElementIntoView } from '../../../internal/utils/scrollable-containers';\n\n// Slightly modified version of @dnd-kit's KeyboardSensor:\n// https://github.com/clauderic/dnd-kit/blob/master/packages/core/src/sensors/keyboard/KeyboardSensor.ts\n\n// The only difference is that here, reordering is deactivated on blur, as in\n// this PR: https://github.com/clauderic/dnd-kit/pull/1087.\n// If it is merged, then @dnd-kit's KeyboardSensor can be used instead\n// and all files under this directory (`keyboard-sensor`) can be removed.\n\n// Changes from mainstream are marked below as \"Customization\"\n\nexport class KeyboardSensor implements SensorInstance {\n public autoScrollEnabled = false;\n private referenceCoordinates: Coordinates | undefined;\n private listeners: Listeners;\n private windowListeners: Listeners;\n\n constructor(private props: KeyboardSensorProps) {\n const {\n event: { target },\n } = props;\n\n this.props = props;\n this.listeners = new Listeners(getOwnerDocument(target));\n this.windowListeners = new Listeners(getWindow(target));\n this.handleKeyDown = this.handleKeyDown.bind(this);\n this.handleCancel = this.handleCancel.bind(this);\n\n this.attach();\n }\n\n private attach() {\n this.handleStart();\n\n this.windowListeners.add(EventName.Resize, this.handleCancel);\n this.windowListeners.add(EventName.VisibilityChange, this.handleCancel);\n\n // Customization: deactivate reordering on blur event\n this.props.event.target?.addEventListener(EventName.Blur, this.handleCancel);\n\n setTimeout(() => this.listeners.add(EventName.Keydown, this.handleKeyDown));\n }\n\n private handleStart() {\n const { activeNode, onStart } = this.props;\n const node = activeNode.node.current;\n\n if (node) {\n scrollElementIntoView(node);\n }\n\n onStart(defaultCoordinates);\n }\n\n private handleKeyDown(event: Event) {\n if (isKeyboardEvent(event)) {\n const { active, context, options } = this.props;\n const { keyboardCodes = defaultKeyboardCodes, coordinateGetter } = options;\n const { code } = event;\n\n if (keyboardCodes.end.indexOf(code) !== -1) {\n this.handleEnd(event);\n return;\n }\n\n if (keyboardCodes.cancel.indexOf(code) !== -1) {\n this.handleCancel(event);\n return;\n }\n\n const { collisionRect } = context.current;\n const currentCoordinates = collisionRect ? { x: collisionRect.left, y: collisionRect.top } : defaultCoordinates;\n\n if (!this.referenceCoordinates) {\n this.referenceCoordinates = currentCoordinates;\n }\n\n if (!coordinateGetter) {\n return;\n }\n\n const newCoordinates = coordinateGetter(event, {\n active,\n context: context.current,\n currentCoordinates,\n });\n\n if (newCoordinates) {\n const { scrollableAncestors } = context.current;\n const direction = event.code;\n\n const scrolled = applyScroll({ currentCoordinates, direction, newCoordinates, scrollableAncestors });\n\n if (!scrolled) {\n this.handleMove(event, getCoordinatesDelta(newCoordinates, this.referenceCoordinates));\n }\n }\n }\n }\n\n private handleMove(event: Event, coordinates: Coordinates) {\n const { onMove } = this.props;\n\n event.preventDefault();\n onMove(coordinates);\n }\n\n private handleEnd(event: Event) {\n const { onEnd } = this.props;\n\n event.preventDefault();\n this.detach();\n onEnd();\n }\n\n private handleCancel(event: Event) {\n const { onCancel } = this.props;\n\n // Customization: do not prevent browser from managing native focus\n if (event.type !== EventName.Blur) {\n event.preventDefault();\n }\n this.detach();\n onCancel();\n }\n\n private detach() {\n // Customization: clean up listener for blur event\n this.props.event.target?.removeEventListener(EventName.Blur, this.handleCancel);\n\n this.listeners.removeAll();\n this.windowListeners.removeAll();\n }\n\n static activators: Activators<KeyboardSensorOptions> = [\n {\n eventName: 'onKeyDown' as const,\n handler: (event: React.KeyboardEvent, { keyboardCodes = defaultKeyboardCodes, onActivation }, { active }) => {\n const { code } = event.nativeEvent;\n\n if (keyboardCodes.start.indexOf(code) !== -1) {\n const activator = active.activatorNode.current;\n\n if (activator && event.target !== activator) {\n return false;\n }\n\n event.preventDefault();\n\n onActivation?.({ event: event.nativeEvent });\n\n return true;\n }\n\n return false;\n },\n },\n ];\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/collection-preferences/content-display/keyboard-sensor/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,IAAI,mBAAmB,EAC/B,gBAAgB,EAChB,SAAS,EACT,eAAe,GAEhB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAIlD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,0DAA0D;AAC1D,wGAAwG;AAExG,6EAA6E;AAC7E,2DAA2D;AAC3D,sEAAsE;AACtE,yEAAyE;AAEzE,8DAA8D;AAE9D,MAAM,OAAO,cAAc;IAMzB,YAAoB,KAA0B;QAA1B,UAAK,GAAL,KAAK,CAAqB;QALvC,sBAAiB,GAAG,KAAK,CAAC;QAM/B,MAAM,EACJ,KAAK,EAAE,EAAE,MAAM,EAAE,GAClB,GAAG,KAAK,CAAC;QAEV,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC;QACzD,IAAI,CAAC,eAAe,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I,EAAE,GAAG,KAAK,CAAC,WAAW,CAAC;YAEnC,IAAI,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE;gBAC5C,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC;gBAE/C,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,EAAE;oBAC3C,OAAO,KAAK,CAAC;iBACd;gBAED,KAAK,CAAC,cAAc,EAAE,CAAC;gBAEvB,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAG,EAAE,KAAK,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;gBAE7C,OAAO,IAAI,CAAC;aACb;YAED,OAAO,KAAK,CAAC;QACf,CAAC;KACF;CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport {\n subtract as getCoordinatesDelta,\n getOwnerDocument,\n getWindow,\n isKeyboardEvent,\n Coordinates,\n} from '@dnd-kit/utilities';\n\nimport { defaultCoordinates } from '@dnd-kit/core';\nimport { applyScroll } from './utilities/scroll';\nimport { EventName } from './utilities/events';\nimport { Listeners } from './utilities/listeners';\nimport type { Activators, SensorInstance } from '@dnd-kit/core';\nimport { KeyboardSensorOptions, KeyboardSensorProps } from '@dnd-kit/core';\n\nimport { defaultKeyboardCodes } from './defaults';\nimport { scrollElementIntoView } from '../../../internal/utils/scrollable-containers';\n\n// Slightly modified version of @dnd-kit's KeyboardSensor:\n// https://github.com/clauderic/dnd-kit/blob/master/packages/core/src/sensors/keyboard/KeyboardSensor.ts\n\n// The only difference is that here, reordering is deactivated on blur, as in\n// this PR: https://github.com/clauderic/dnd-kit/pull/1087.\n// If it is merged, then @dnd-kit's KeyboardSensor can be used instead\n// and all files under this directory (`keyboard-sensor`) can be removed.\n\n// Changes from mainstream are marked below as \"Customization\"\n\nexport class KeyboardSensor implements SensorInstance {\n public autoScrollEnabled = false;\n private referenceCoordinates: Coordinates | undefined;\n private listeners: Listeners;\n private windowListeners: Listeners;\n\n constructor(private props: KeyboardSensorProps) {\n const {\n event: { target },\n } = props;\n\n this.props = props;\n this.listeners = new Listeners(getOwnerDocument(target));\n this.windowListeners = new Listeners(getWindow(target));\n this.handleKeyDown = this.handleKeyDown.bind(this);\n this.handleCancel = this.handleCancel.bind(this);\n\n this.attach();\n }\n\n private attach() {\n this.handleStart();\n\n this.windowListeners.add(EventName.Resize, this.handleCancel);\n this.windowListeners.add(EventName.VisibilityChange, this.handleCancel);\n\n // Customization: deactivate reordering on blur event\n this.props.event.target?.addEventListener(EventName.Blur, this.handleCancel);\n\n setTimeout(() => this.listeners.add(EventName.Keydown, this.handleKeyDown));\n }\n\n private handleStart() {\n const { activeNode, onStart } = this.props;\n const node = activeNode.node.current;\n\n if (node) {\n scrollElementIntoView(node);\n }\n\n onStart(defaultCoordinates);\n }\n\n private handleKeyDown(event: Event) {\n if (isKeyboardEvent(event)) {\n const { active, context, options } = this.props;\n const { keyboardCodes = defaultKeyboardCodes, coordinateGetter } = options;\n const { code } = event;\n\n if (keyboardCodes.end.indexOf(code) !== -1) {\n this.handleEnd(event);\n return;\n }\n\n if (keyboardCodes.cancel.indexOf(code) !== -1) {\n this.handleCancel(event);\n return;\n }\n\n const { collisionRect } = context.current;\n const currentCoordinates = collisionRect ? { x: collisionRect.left, y: collisionRect.top } : defaultCoordinates;\n\n if (!this.referenceCoordinates) {\n this.referenceCoordinates = currentCoordinates;\n }\n\n if (!coordinateGetter) {\n return;\n }\n\n const newCoordinates = coordinateGetter(event, {\n active,\n context: context.current,\n currentCoordinates,\n });\n\n if (newCoordinates) {\n const { scrollableAncestors } = context.current;\n const direction = event.code;\n\n const scrolled = applyScroll({ currentCoordinates, direction, newCoordinates, scrollableAncestors });\n\n if (!scrolled) {\n this.handleMove(event, getCoordinatesDelta(newCoordinates, this.referenceCoordinates));\n }\n }\n }\n }\n\n private handleMove(event: Event, coordinates: Coordinates) {\n const { onMove } = this.props;\n\n event.preventDefault();\n onMove(coordinates);\n }\n\n private handleEnd(event: Event) {\n const { onEnd } = this.props;\n\n event.preventDefault();\n this.detach();\n onEnd();\n }\n\n private handleCancel(event: Event) {\n const { onCancel } = this.props;\n\n // Customization: do not prevent browser from managing native focus\n if (event.type !== EventName.Blur) {\n event.preventDefault();\n }\n this.detach();\n onCancel();\n }\n\n private detach() {\n // Customization: clean up listener for blur event\n this.props.event.target?.removeEventListener(EventName.Blur, this.handleCancel);\n\n this.listeners.removeAll();\n this.windowListeners.removeAll();\n }\n\n static activators: Activators<KeyboardSensorOptions> = [\n {\n eventName: 'onKeyDown' as const,\n handler: (event: React.KeyboardEvent, { keyboardCodes = defaultKeyboardCodes, onActivation }, { active }) => {\n const { code } = event.nativeEvent;\n\n if (keyboardCodes.start.indexOf(code) !== -1) {\n const activator = active.activatorNode.current;\n\n if (activator && event.target !== activator) {\n return false;\n }\n\n event.preventDefault();\n\n onActivation?.({ event: event.nativeEvent });\n\n return true;\n }\n\n return false;\n },\n },\n ];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/content-display/keyboard-sensor/utilities/events.ts"],"names":[],"mappings":"AAEA,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;CACtC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../../../src/collection-preferences/content-display/keyboard-sensor/utilities/events.ts"],"names":[],"mappings":"AAEA,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;CACtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"lib/default/","sources":["collection-preferences/content-display/keyboard-sensor/utilities/events.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,MAAM,CAAN,IAAY,SASX;AATD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,oCAAuB,CAAA;IACvB,gCAAmB,CAAA;IACnB,wCAA2B,CAAA;IAC3B,8BAAiB,CAAA;IACjB,gDAAmC,CAAA;IACnC,kDAAqC,CAAA;AACvC,CAAC,EATW,SAAS,KAAT,SAAS,QASpB","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport enum EventName {\n Blur = 'blur',\n Click = 'click',\n DragStart = 'dragstart',\n Keydown = 'keydown',\n ContextMenu = 'contextmenu',\n Resize = 'resize',\n SelectionChange = 'selectionchange',\n VisibilityChange = 'visibilitychange',\n}\n"]}
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../../../src/collection-preferences/content-display/keyboard-sensor/utilities/events.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,MAAM,CAAN,IAAY,SASX;AATD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,oCAAuB,CAAA;IACvB,gCAAmB,CAAA;IACnB,wCAA2B,CAAA;IAC3B,8BAAiB,CAAA;IACjB,gDAAmC,CAAA;IACnC,kDAAqC,CAAA;AACvC,CAAC,EATW,SAAS,KAAT,SAAS,QASpB","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport enum EventName {\n Blur = 'blur',\n Click = 'click',\n DragStart = 'dragstart',\n Keydown = 'keydown',\n ContextMenu = 'contextmenu',\n Resize = 'resize',\n SelectionChange = 'selectionchange',\n VisibilityChange = 'visibilitychange',\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"listeners.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/content-display/keyboard-sensor/utilities/listeners.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAGR,OAAO,CAAC,MAAM;IAF1B,OAAO,CAAC,SAAS,CAAqG;gBAElG,MAAM,EAAE,WAAW,GAAG,IAAI;IAEvC,GAAG,CAAC,CAAC,SAAS,KAAK,EACxB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAC3B,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO;IAMtC,SAAS,aAEd;CACH"}
1
+ {"version":3,"file":"listeners.d.ts","sourceRoot":"","sources":["../../../../../../src/collection-preferences/content-display/keyboard-sensor/utilities/listeners.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAGR,OAAO,CAAC,MAAM;IAF1B,OAAO,CAAC,SAAS,CAAqG;gBAElG,MAAM,EAAE,WAAW,GAAG,IAAI;IAEvC,GAAG,CAAC,CAAC,SAAS,KAAK,EACxB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAC3B,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO;IAMtC,SAAS,aAEd;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"listeners.js","sourceRoot":"lib/default/","sources":["collection-preferences/content-display/keyboard-sensor/utilities/listeners.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,MAAM,OAAO,SAAS;IAGpB,YAAoB,MAA0B;QAA1B,WAAM,GAAN,MAAM,CAAoB;QAFtC,cAAS,GAAkG,EAAE,CAAC;QAa/G,cAAS,GAAG,GAAG,EAAE;YACtB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,CAAA,EAAA,CAAC,CAAC;QACpF,CAAC,CAAC;IAb+C,CAAC;IAE3C,GAAG,CACR,SAAiB,EACjB,OAA2B,EAC3B,OAA2C;;QAE3C,MAAA,IAAI,CAAC,MAAM,0CAAE,gBAAgB,CAAC,SAAS,EAAE,OAAwB,EAAE,OAAO,CAAC,CAAC;QAC5E,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAwB,EAAE,OAAO,CAAC,CAAC,CAAC;IACtE,CAAC;CAKF","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport class Listeners {\n private listeners: [string, EventListenerOrEventListenerObject, AddEventListenerOptions | boolean | undefined][] = [];\n\n constructor(private target: EventTarget | null) {}\n\n public add<T extends Event>(\n eventName: string,\n handler: (event: T) => void,\n options?: AddEventListenerOptions | boolean\n ) {\n this.target?.addEventListener(eventName, handler as EventListener, options);\n this.listeners.push([eventName, handler as EventListener, options]);\n }\n\n public removeAll = () => {\n this.listeners.forEach(listener => this.target?.removeEventListener(...listener));\n };\n}\n"]}
1
+ {"version":3,"file":"listeners.js","sourceRoot":"","sources":["../../../../../../src/collection-preferences/content-display/keyboard-sensor/utilities/listeners.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,MAAM,OAAO,SAAS;IAGpB,YAAoB,MAA0B;QAA1B,WAAM,GAAN,MAAM,CAAoB;QAFtC,cAAS,GAAkG,EAAE,CAAC;QAa/G,cAAS,GAAG,GAAG,EAAE;YACtB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,CAAA,EAAA,CAAC,CAAC;QACpF,CAAC,CAAC;IAb+C,CAAC;IAE3C,GAAG,CACR,SAAiB,EACjB,OAA2B,EAC3B,OAA2C;;QAE3C,MAAA,IAAI,CAAC,MAAM,0CAAE,gBAAgB,CAAC,SAAS,EAAE,OAAwB,EAAE,OAAO,CAAC,CAAC;QAC5E,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAwB,EAAE,OAAO,CAAC,CAAC,CAAC;IACtE,CAAC;CAKF","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport class Listeners {\n private listeners: [string, EventListenerOrEventListenerObject, AddEventListenerOptions | boolean | undefined][] = [];\n\n constructor(private target: EventTarget | null) {}\n\n public add<T extends Event>(\n eventName: string,\n handler: (event: T) => void,\n options?: AddEventListenerOptions | boolean\n ) {\n this.target?.addEventListener(eventName, handler as EventListener, options);\n this.listeners.push([eventName, handler as EventListener, options]);\n }\n\n public removeAll = () => {\n this.listeners.forEach(listener => this.target?.removeEventListener(...listener));\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"scroll.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/content-display/keyboard-sensor/utilities/scroll.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,WAAW,EAAmC,MAAM,oBAAoB,CAAC;AAW7F,wBAAgB,iBAAiB,CAAC,kBAAkB,EAAE,OAAO;;;;;;;;;;;;;EAgC5D;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO;;;;;;;EAwBpD;AAED,wBAAgB,WAAW,CAAC,EAC1B,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,mBAAmB,GACpB,EAAE;IACD,kBAAkB,EAAE,WAAW,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,WAAW,CAAC;IAC5B,mBAAmB,EAAE,OAAO,EAAE,CAAC;CAChC,WA0CA"}
1
+ {"version":3,"file":"scroll.d.ts","sourceRoot":"","sources":["../../../../../../src/collection-preferences/content-display/keyboard-sensor/utilities/scroll.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,WAAW,EAAmC,MAAM,oBAAoB,CAAC;AAW7F,wBAAgB,iBAAiB,CAAC,kBAAkB,EAAE,OAAO;;;;;;;;;;;;;EAgC5D;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO;;;;;;;EAwBpD;AAED,wBAAgB,WAAW,CAAC,EAC1B,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,mBAAmB,GACpB,EAAE;IACD,kBAAkB,EAAE,WAAW,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,WAAW,CAAC;IAC5B,mBAAmB,EAAE,OAAO,EAAE,CAAC;CAChC,WA0CA"}
@@ -1 +1 @@
1
- {"version":3,"file":"scroll.js","sourceRoot":"lib/default/","sources":["collection-preferences/content-display/keyboard-sensor/utilities/scroll.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAe,QAAQ,IAAI,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,SAAS,0BAA0B,CAAC,OAAuB;IACzD,IAAI,CAAC,SAAS,IAAI,CAAC,OAAO,EAAE;QAC1B,OAAO,KAAK,CAAC;KACd;IAED,OAAO,OAAO,KAAK,QAAQ,CAAC,gBAAgB,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,kBAA2B;IAC3D,MAAM,SAAS,GAAG;QAChB,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;KACL,CAAC;IACF,MAAM,UAAU,GAAG,0BAA0B,CAAC,kBAAkB,CAAC;QAC/D,CAAC,CAAC;YACE,MAAM,EAAE,MAAM,CAAC,WAAW;YAC1B,KAAK,EAAE,MAAM,CAAC,UAAU;SACzB;QACH,CAAC,CAAC;YACE,MAAM,EAAE,kBAAkB,CAAC,YAAY;YACvC,KAAK,EAAE,kBAAkB,CAAC,WAAW;SACtC,C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CAAC,CAAC;YAEzE,IAAI,yBAAyB,EAAE;gBAC7B,gFAAgF;gBAChF,qDAAqD;gBACrD,eAAe,CAAC,QAAQ,CAAC;oBACvB,GAAG,EAAE,oBAAoB;oBACzB,QAAQ,EAAE,QAAQ;iBACnB,CAAC,CAAC;gBACH,OAAO,IAAI,CAAC;aACb;YAED,MAAM;SACP;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { canUseDOM, Coordinates, subtract as getCoordinatesDelta } from '@dnd-kit/utilities';\nimport { KeyboardCode } from '@dnd-kit/core';\n\nfunction isDocumentScrollingElement(element: Element | null) {\n if (!canUseDOM || !element) {\n return false;\n }\n\n return element === document.scrollingElement;\n}\n\nexport function getScrollPosition(scrollingContainer: Element) {\n const minScroll = {\n x: 0,\n y: 0,\n };\n const dimensions = isDocumentScrollingElement(scrollingContainer)\n ? {\n height: window.innerHeight,\n width: window.innerWidth,\n }\n : {\n height: scrollingContainer.clientHeight,\n width: scrollingContainer.clientWidth,\n };\n const maxScroll = {\n x: scrollingContainer.scrollWidth - dimensions.width,\n y: scrollingContainer.scrollHeight - dimensions.height,\n };\n\n const isTop = scrollingContainer.scrollTop <= minScroll.y;\n const isLeft = scrollingContainer.scrollLeft <= minScroll.x;\n const isBottom = scrollingContainer.scrollTop >= maxScroll.y;\n const isRight = scrollingContainer.scrollLeft >= maxScroll.x;\n\n return {\n isTop,\n isLeft,\n isBottom,\n isRight,\n maxScroll,\n minScroll,\n };\n}\n\nexport function getScrollElementRect(element: Element) {\n if (element === document.scrollingElement) {\n const { innerWidth, innerHeight } = window;\n\n return {\n top: 0,\n left: 0,\n right: innerWidth,\n bottom: innerHeight,\n width: innerWidth,\n height: innerHeight,\n };\n }\n\n const { top, left, right, bottom } = element.getBoundingClientRect();\n\n return {\n top,\n left,\n right,\n bottom,\n width: element.clientWidth,\n height: element.clientHeight,\n };\n}\n\nexport function applyScroll({\n currentCoordinates,\n direction,\n newCoordinates,\n scrollableAncestors,\n}: {\n currentCoordinates: Coordinates;\n direction: string;\n newCoordinates: Coordinates;\n scrollableAncestors: Element[];\n}) {\n for (const scrollContainer of scrollableAncestors) {\n const coordinatesDelta = getCoordinatesDelta(newCoordinates, currentCoordinates);\n const { isTop, isBottom, maxScroll, minScroll } = getScrollPosition(scrollContainer);\n const scrollElementRect = getScrollElementRect(scrollContainer);\n\n const clampedCoordinates = {\n y: Math.min(\n direction === KeyboardCode.Down\n ? scrollElementRect.bottom - scrollElementRect.height / 2\n : scrollElementRect.bottom,\n Math.max(\n direction === KeyboardCode.Down\n ? scrollElementRect.top\n : scrollElementRect.top + scrollElementRect.height / 2,\n newCoordinates.y\n )\n ),\n };\n\n const canScrollY = (direction === KeyboardCode.Down && !isBottom) || (direction === KeyboardCode.Up && !isTop);\n\n if (canScrollY && clampedCoordinates.y !== newCoordinates.y) {\n const newScrollCoordinates = scrollContainer.scrollTop + coordinatesDelta.y;\n const canScrollToNewCoordinates =\n (direction === KeyboardCode.Down && newScrollCoordinates <= maxScroll.y) ||\n (direction === KeyboardCode.Up && newScrollCoordinates >= minScroll.y);\n\n if (canScrollToNewCoordinates) {\n // We don't need to update coordinates, the scroll adjustment alone will trigger\n // logic to auto-detect the new container we are over\n scrollContainer.scrollTo({\n top: newScrollCoordinates,\n behavior: 'smooth',\n });\n return true;\n }\n\n break;\n }\n }\n return false;\n}\n"]}
1
+ {"version":3,"file":"scroll.js","sourceRoot":"","sources":["../../../../../../src/collection-preferences/content-display/keyboard-sensor/utilities/scroll.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAe,QAAQ,IAAI,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,SAAS,0BAA0B,CAAC,OAAuB;IACzD,IAAI,CAAC,SAAS,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UAAU,GAAG,CAAC,SAAS,KAAK,YAAY,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,KAAK,YAAY,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAE/G,IAAI,UAAU,IAAI,kBAAkB,CAAC,CAAC,KAAK,cAAc,CAAC,CAAC,EAAE;YAC3D,MAAM,oBAAoB,GAAG,eAAe,CAAC,SAAS,GAAG,gBAAgB,CAAC,CAAC,CAAC;YAC5E,MAAM,yBAAyB,GAC7B,CAAC,SAAS,KAAK,YAAY,CAAC,IAAI,IAAI,oBAAoB,IAAI,SAAS,CAAC,CAAC,CAAC;gBACxE,CAAC,SAAS,KAAK,YAAY,CAAC,EAAE,IAAI,oBAAoB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;YAEzE,IAAI,yBAAyB,EAAE;gBAC7B,gFAAgF;gBAChF,qDAAqD;gBACrD,eAAe,CAAC,QAAQ,CAAC;oBACvB,GAAG,EAAE,oBAAoB;oBACzB,QAAQ,EAAE,QAAQ;iBACnB,CAAC,CAAC;gBACH,OAAO,IAAI,CAAC;aACb;YAED,MAAM;SACP;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { canUseDOM, Coordinates, subtract as getCoordinatesDelta } from '@dnd-kit/utilities';\nimport { KeyboardCode } from '@dnd-kit/core';\n\nfunction isDocumentScrollingElement(element: Element | null) {\n if (!canUseDOM || !element) {\n return false;\n }\n\n return element === document.scrollingElement;\n}\n\nexport function getScrollPosition(scrollingContainer: Element) {\n const minScroll = {\n x: 0,\n y: 0,\n };\n const dimensions = isDocumentScrollingElement(scrollingContainer)\n ? {\n height: window.innerHeight,\n width: window.innerWidth,\n }\n : {\n height: scrollingContainer.clientHeight,\n width: scrollingContainer.clientWidth,\n };\n const maxScroll = {\n x: scrollingContainer.scrollWidth - dimensions.width,\n y: scrollingContainer.scrollHeight - dimensions.height,\n };\n\n const isTop = scrollingContainer.scrollTop <= minScroll.y;\n const isLeft = scrollingContainer.scrollLeft <= minScroll.x;\n const isBottom = scrollingContainer.scrollTop >= maxScroll.y;\n const isRight = scrollingContainer.scrollLeft >= maxScroll.x;\n\n return {\n isTop,\n isLeft,\n isBottom,\n isRight,\n maxScroll,\n minScroll,\n };\n}\n\nexport function getScrollElementRect(element: Element) {\n if (element === document.scrollingElement) {\n const { innerWidth, innerHeight } = window;\n\n return {\n top: 0,\n left: 0,\n right: innerWidth,\n bottom: innerHeight,\n width: innerWidth,\n height: innerHeight,\n };\n }\n\n const { top, left, right, bottom } = element.getBoundingClientRect();\n\n return {\n top,\n left,\n right,\n bottom,\n width: element.clientWidth,\n height: element.clientHeight,\n };\n}\n\nexport function applyScroll({\n currentCoordinates,\n direction,\n newCoordinates,\n scrollableAncestors,\n}: {\n currentCoordinates: Coordinates;\n direction: string;\n newCoordinates: Coordinates;\n scrollableAncestors: Element[];\n}) {\n for (const scrollContainer of scrollableAncestors) {\n const coordinatesDelta = getCoordinatesDelta(newCoordinates, currentCoordinates);\n const { isTop, isBottom, maxScroll, minScroll } = getScrollPosition(scrollContainer);\n const scrollElementRect = getScrollElementRect(scrollContainer);\n\n const clampedCoordinates = {\n y: Math.min(\n direction === KeyboardCode.Down\n ? scrollElementRect.bottom - scrollElementRect.height / 2\n : scrollElementRect.bottom,\n Math.max(\n direction === KeyboardCode.Down\n ? scrollElementRect.top\n : scrollElementRect.top + scrollElementRect.height / 2,\n newCoordinates.y\n )\n ),\n };\n\n const canScrollY = (direction === KeyboardCode.Down && !isBottom) || (direction === KeyboardCode.Up && !isTop);\n\n if (canScrollY && clampedCoordinates.y !== newCoordinates.y) {\n const newScrollCoordinates = scrollContainer.scrollTop + coordinatesDelta.y;\n const canScrollToNewCoordinates =\n (direction === KeyboardCode.Down && newScrollCoordinates <= maxScroll.y) ||\n (direction === KeyboardCode.Up && newScrollCoordinates >= minScroll.y);\n\n if (canScrollToNewCoordinates) {\n // We don't need to update coordinates, the scroll adjustment alone will trigger\n // logic to auto-detect the new container we are over\n scrollContainer.scrollTo({\n top: newScrollCoordinates,\n behavior: 'smooth',\n });\n return true;\n }\n\n break;\n }\n }\n return false;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"use-drag-and-drop-reorder.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/content-display/use-drag-and-drop-reorder.ts"],"names":[],"mappings":"AAEA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,EAGL,kBAAkB,EAElB,wBAAwB,EAExB,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AA+B3D,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,aAAa,GACd,EAAE;IACD,aAAa,EAAE,aAAa,CAAC,0BAA0B,CAAC,oBAAoB,CAAC,CAAC;CAC/E;;;;2BAa+B,mBAAmB;;wBARtB,gBAAgB,GAAG,IAAI;EA+GnD"}
1
+ {"version":3,"file":"use-drag-and-drop-reorder.d.ts","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/use-drag-and-drop-reorder.ts"],"names":[],"mappings":"AAEA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,EAGL,kBAAkB,EAElB,wBAAwB,EAExB,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AA+B3D,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,aAAa,GACd,EAAE;IACD,aAAa,EAAE,aAAa,CAAC,0BAA0B,CAAC,oBAAoB,CAAC,CAAC;CAC/E;;;;2BAa+B,mBAAmB;;wBARtB,gBAAgB,GAAG,IAAI;EA+GnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-drag-and-drop-reorder.js","sourceRoot":"lib/default/","sources":["collection-preferences/content-display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AC,OAAO,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC;AACnH,CAAC;AAED,SAAS,qBAAqB,CAAC,EAC7B,QAAQ,EACR,SAAS,EACT,mBAAmB,GAKpB;IACC,IAAI,SAAS,KAAK,QAAQ,EAAE;QAC1B,OAAO;KACR;IACD,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC;IAClF,IAAI,kBAAkB,EAAE;QACtB,OAAO;YACL,EAAE,EAAE,kBAAkB,CAAC,EAAE;YACzB,IAAI,EAAE;gBACJ,kBAAkB,EAAE,kBAAkB;gBACtC,KAAK,EAAE,CAAC;aACT;SACF,CAAC;KACH;AACH,CAAC;AAED,MAAM,QAAQ,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,KAAK,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef, useState } from 'react';\nimport {\n Active,\n closestCenter,\n CollisionDetection,\n DroppableContainer,\n KeyboardCoordinateGetter,\n PointerSensor,\n UniqueIdentifier,\n useSensor,\n useSensors,\n} from '@dnd-kit/core';\nimport { CollectionPreferencesProps } from '../interfaces';\nimport { hasSortableData } from '@dnd-kit/sortable';\nimport { KeyboardSensor } from './keyboard-sensor';\n\nenum KeyboardCode {\n Space = 'Space',\n Down = 'ArrowDown',\n Right = 'ArrowRight',\n Left = 'ArrowLeft',\n Up = 'ArrowUp',\n Esc = 'Escape',\n Enter = 'Enter',\n}\n\n// A custom collision detection algorithm is used when using a keyboard to\n// work around an unexpected behavior when reordering items of variable height\n// with the keyboard.\n\n// Neither closestCenter nor closestCorners work really well for this case,\n// because the center (or corners) of a tall rectangle might be so low that it\n// is detected as being closest to the rectangle below of the one it should\n// actually swap with.\n\n// Instead of relying on coordinates, the expected results are achieved by\n// moving X positions up or down in the initially sorted array, depending on\n// the desired direction.\n\n// We let our collisionDetection and customCoordinateGetter use the same\n// getClosestId function which takes its value from the current component\n// state, to make sure they are always in sync.\n\nexport default function useDragAndDropReorder({\n sortedOptions,\n}: {\n sortedOptions: ReadonlyArray<CollectionPreferencesProps.VisibleContentOption>;\n}) {\n const isKeyboard = useRef(false);\n const positionDelta = useRef(0);\n const [activeItemId, setActiveItemId] = useState<UniqueIdentifier | null>(null);\n\n const setActiveItem = (id: UniqueIdentifier | null) => {\n setActiveItemId(id);\n if (!id) {\n isKeyboard.current = false;\n positionDelta.current = 0;\n }\n };\n\n const handleKeyDown = (event: React.KeyboardEvent) => {\n if (isKeyboard.current && activeItemId) {\n const currentTargetIndex = sortedOptions.findIndex(({ id }) => id === activeItemId) + positionDelta.current;\n if (event.key === 'ArrowDown' && currentTargetIndex < sortedOptions.length - 1) {\n positionDelta.current += 1;\n } else if (event.key === 'ArrowUp' && currentTargetIndex > 0) {\n positionDelta.current -= 1;\n }\n }\n if (activeItemId && isEscape(event.key)) {\n // Prevent modal from closing when pressing Esc to cancel the dragging action\n event.stopPropagation();\n }\n };\n\n const getClosestId = (active: Active) => {\n if (positionDelta.current === 0) {\n return active.id;\n }\n const currentIndex = sortedOptions.findIndex(({ id }) => id === active.id);\n const newIndex = Math.max(0, Math.min(sortedOptions.length - 1, currentIndex + positionDelta.current));\n return sortedOptions[newIndex].id;\n };\n\n const collisionDetection: CollisionDetection = ({\n active,\n collisionRect,\n droppableContainers,\n droppableRects,\n pointerCoordinates,\n }) => {\n if (isKeyboard.current) {\n // For keyboard interaction, determine the colliding container based on the movements made by the arrow keys,\n // via getClosestId\n const collidingContainer = getCollidingContainer({\n activeId: active.id,\n closestId: getClosestId(active),\n droppableContainers,\n });\n return collidingContainer ? [collidingContainer] : [];\n } else {\n // For mouse interaction, use the closest center algorithm\n return closestCenter({ active, collisionRect, droppableRects, droppableContainers, pointerCoordinates });\n }\n };\n\n const coordinateGetter: KeyboardCoordinateGetter = (\n event,\n { context: { active, collisionRect, droppableRects, droppableContainers } }\n ) => {\n if (event.code === KeyboardCode.Up || event.code === KeyboardCode.Down) {\n event.preventDefault();\n\n if (!active || !collisionRect) {\n return;\n }\n\n const closestId = getClosestId(active);\n\n if (closestId !== null) {\n const activeDroppable = droppableContainers.get(active.id);\n const newDroppable = droppableContainers.get(closestId);\n const newRect = newDroppable ? droppableRects.get(newDroppable.id) : null;\n const newNode = newDroppable?.node.current;\n\n if (newNode && newRect && activeDroppable && newDroppable) {\n const isAfterActive = isAfter(activeDroppable, newDroppable);\n const offset = {\n x: isAfterActive ? collisionRect.width - newRect.width : 0,\n y: isAfterActive ? collisionRect.height - newRect.height : 0,\n };\n const rectCoordinates = {\n x: newRect.left,\n y: newRect.top,\n };\n\n return {\n x: rectCoordinates.x - offset.x,\n y: rectCoordinates.y - offset.y,\n };\n }\n }\n }\n };\n\n const sensors = useSensors(\n useSensor(PointerSensor),\n useSensor(KeyboardSensor, {\n coordinateGetter,\n onActivation: () => {\n isKeyboard.current = true;\n },\n })\n );\n\n return {\n activeItem: activeItemId,\n collisionDetection,\n coordinateGetter,\n handleKeyDown,\n sensors,\n setActiveItem,\n };\n}\n\nfunction isAfter(a: DroppableContainer, b: DroppableContainer) {\n return hasSortableData(a) && hasSortableData(b) && a.data.current.sortable.index < b.data.current.sortable.index;\n}\n\nfunction getCollidingContainer({\n activeId,\n closestId,\n droppableContainers,\n}: {\n activeId: UniqueIdentifier;\n closestId: UniqueIdentifier;\n droppableContainers: DroppableContainer[];\n}) {\n if (closestId === activeId) {\n return;\n }\n const collidingContainer = droppableContainers.find(({ id }) => id === closestId);\n if (collidingContainer) {\n return {\n id: collidingContainer.id,\n data: {\n droppableContainer: collidingContainer,\n value: 0,\n },\n };\n }\n}\n\nconst isEscape = (key: string) => key === 'Escape' || key === 'Esc';\n"]}
1
+ {"version":3,"file":"use-drag-and-drop-reorder.js","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/use-drag-and-drop-reorder.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAEL,aAAa,EAIb,aAAa,EAEb,SAAS,EACT,UAAU,GACX,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,IAAK,YAQJ;AARD,WAAK,YAAY;IACf,+BAAe,CAAA;IACf,kCAAkB,CAAA;IAClB,oCAAoB,CAAA;IACpB,kCAAkB,CAAA;IAClB,8BAAc,CAAA;IACd,8BAAc,CAAA;IACd,+BAAe,CAAA;AACjB,CAAC,EARI,YAAY,KAAZ,YAAY,QAQhB;AAED,0EAA0E;AAC1E,8EAA8E;AAC9E,qBAAqB;AAErB,2EAA2E;AAC3E,8EAA8E;AAC9E,2EAA2E;AAC3E,sBAAsB;AAEtB,0EAA0E;AAC1E,4EAA4E;AAC5E,yBAAyB;AAEzB,wEAAwE;AACxE,yEAAyE;AACzE,+CAA+C;AAE/C,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,aAAa,GAGd;IACC,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IACjC,MAAM,aAAa,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IAChC,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAA0B,IAAI,CAAC,CAAC;IAEhF,MAAM,aAAa,GAAG,CAAC,EAA2B,EAAE,EAAE;QACpD,eAAe,CAAC,EAAE,CAAC,CAAC;QACpB,IAAI,CAAC,EAAE,EAAE;YACP,UAAU,CAAC,OAAO,GAAG,KAAK,CAAC;YAC3B,aAAa,CAAC,OAAO,GAAG,CAAC,CAAC;SAC3B;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AAe,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC;AACnH,CAAC;AAED,SAAS,qBAAqB,CAAC,EAC7B,QAAQ,EACR,SAAS,EACT,mBAAmB,GAKpB;IACC,IAAI,SAAS,KAAK,QAAQ,EAAE;QAC1B,OAAO;KACR;IACD,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC;IAClF,IAAI,kBAAkB,EAAE;QACtB,OAAO;YACL,EAAE,EAAE,kBAAkB,CAAC,EAAE;YACzB,IAAI,EAAE;gBACJ,kBAAkB,EAAE,kBAAkB;gBACtC,KAAK,EAAE,CAAC;aACT;SACF,CAAC;KACH;AACH,CAAC;AAED,MAAM,QAAQ,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,KAAK,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef, useState } from 'react';\nimport {\n Active,\n closestCenter,\n CollisionDetection,\n DroppableContainer,\n KeyboardCoordinateGetter,\n PointerSensor,\n UniqueIdentifier,\n useSensor,\n useSensors,\n} from '@dnd-kit/core';\nimport { CollectionPreferencesProps } from '../interfaces';\nimport { hasSortableData } from '@dnd-kit/sortable';\nimport { KeyboardSensor } from './keyboard-sensor';\n\nenum KeyboardCode {\n Space = 'Space',\n Down = 'ArrowDown',\n Right = 'ArrowRight',\n Left = 'ArrowLeft',\n Up = 'ArrowUp',\n Esc = 'Escape',\n Enter = 'Enter',\n}\n\n// A custom collision detection algorithm is used when using a keyboard to\n// work around an unexpected behavior when reordering items of variable height\n// with the keyboard.\n\n// Neither closestCenter nor closestCorners work really well for this case,\n// because the center (or corners) of a tall rectangle might be so low that it\n// is detected as being closest to the rectangle below of the one it should\n// actually swap with.\n\n// Instead of relying on coordinates, the expected results are achieved by\n// moving X positions up or down in the initially sorted array, depending on\n// the desired direction.\n\n// We let our collisionDetection and customCoordinateGetter use the same\n// getClosestId function which takes its value from the current component\n// state, to make sure they are always in sync.\n\nexport default function useDragAndDropReorder({\n sortedOptions,\n}: {\n sortedOptions: ReadonlyArray<CollectionPreferencesProps.VisibleContentOption>;\n}) {\n const isKeyboard = useRef(false);\n const positionDelta = useRef(0);\n const [activeItemId, setActiveItemId] = useState<UniqueIdentifier | null>(null);\n\n const setActiveItem = (id: UniqueIdentifier | null) => {\n setActiveItemId(id);\n if (!id) {\n isKeyboard.current = false;\n positionDelta.current = 0;\n }\n };\n\n const handleKeyDown = (event: React.KeyboardEvent) => {\n if (isKeyboard.current && activeItemId) {\n const currentTargetIndex = sortedOptions.findIndex(({ id }) => id === activeItemId) + positionDelta.current;\n if (event.key === 'ArrowDown' && currentTargetIndex < sortedOptions.length - 1) {\n positionDelta.current += 1;\n } else if (event.key === 'ArrowUp' && currentTargetIndex > 0) {\n positionDelta.current -= 1;\n }\n }\n if (activeItemId && isEscape(event.key)) {\n // Prevent modal from closing when pressing Esc to cancel the dragging action\n event.stopPropagation();\n }\n };\n\n const getClosestId = (active: Active) => {\n if (positionDelta.current === 0) {\n return active.id;\n }\n const currentIndex = sortedOptions.findIndex(({ id }) => id === active.id);\n const newIndex = Math.max(0, Math.min(sortedOptions.length - 1, currentIndex + positionDelta.current));\n return sortedOptions[newIndex].id;\n };\n\n const collisionDetection: CollisionDetection = ({\n active,\n collisionRect,\n droppableContainers,\n droppableRects,\n pointerCoordinates,\n }) => {\n if (isKeyboard.current) {\n // For keyboard interaction, determine the colliding container based on the movements made by the arrow keys,\n // via getClosestId\n const collidingContainer = getCollidingContainer({\n activeId: active.id,\n closestId: getClosestId(active),\n droppableContainers,\n });\n return collidingContainer ? [collidingContainer] : [];\n } else {\n // For mouse interaction, use the closest center algorithm\n return closestCenter({ active, collisionRect, droppableRects, droppableContainers, pointerCoordinates });\n }\n };\n\n const coordinateGetter: KeyboardCoordinateGetter = (\n event,\n { context: { active, collisionRect, droppableRects, droppableContainers } }\n ) => {\n if (event.code === KeyboardCode.Up || event.code === KeyboardCode.Down) {\n event.preventDefault();\n\n if (!active || !collisionRect) {\n return;\n }\n\n const closestId = getClosestId(active);\n\n if (closestId !== null) {\n const activeDroppable = droppableContainers.get(active.id);\n const newDroppable = droppableContainers.get(closestId);\n const newRect = newDroppable ? droppableRects.get(newDroppable.id) : null;\n const newNode = newDroppable?.node.current;\n\n if (newNode && newRect && activeDroppable && newDroppable) {\n const isAfterActive = isAfter(activeDroppable, newDroppable);\n const offset = {\n x: isAfterActive ? collisionRect.width - newRect.width : 0,\n y: isAfterActive ? collisionRect.height - newRect.height : 0,\n };\n const rectCoordinates = {\n x: newRect.left,\n y: newRect.top,\n };\n\n return {\n x: rectCoordinates.x - offset.x,\n y: rectCoordinates.y - offset.y,\n };\n }\n }\n }\n };\n\n const sensors = useSensors(\n useSensor(PointerSensor),\n useSensor(KeyboardSensor, {\n coordinateGetter,\n onActivation: () => {\n isKeyboard.current = true;\n },\n })\n );\n\n return {\n activeItem: activeItemId,\n collisionDetection,\n coordinateGetter,\n handleKeyDown,\n sensors,\n setActiveItem,\n };\n}\n\nfunction isAfter(a: DroppableContainer, b: DroppableContainer) {\n return hasSortableData(a) && hasSortableData(b) && a.data.current.sortable.index < b.data.current.sortable.index;\n}\n\nfunction getCollidingContainer({\n activeId,\n closestId,\n droppableContainers,\n}: {\n activeId: UniqueIdentifier;\n closestId: UniqueIdentifier;\n droppableContainers: DroppableContainer[];\n}) {\n if (closestId === activeId) {\n return;\n }\n const collidingContainer = droppableContainers.find(({ id }) => id === closestId);\n if (collidingContainer) {\n return {\n id: collidingContainer.id,\n data: {\n droppableContainer: collidingContainer,\n value: 0,\n },\n };\n }\n}\n\nconst isEscape = (key: string) => key === 'Escape' || key === 'Esc';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"use-live-announcements.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/content-display/use-live-announcements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG5E,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,UAAU,EACV,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,4BAA4B,EAC5B,aAAa,GACd,EAAE,OAAO,CAAC,0BAA0B,CAAC,wBAAwB,CAAC,GAAG;IAChE,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;CAC7E;4BAO2B,cAAc;iCAMT,aAAa;gCAcd,YAAY;;EAW3C"}
1
+ {"version":3,"file":"use-live-announcements.d.ts","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/use-live-announcements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG5E,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,UAAU,EACV,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,4BAA4B,EAC5B,aAAa,GACd,EAAE,OAAO,CAAC,0BAA0B,CAAC,wBAAwB,CAAC,GAAG;IAChE,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;CAC7E;4BAO2B,cAAc;iCAMT,aAAa;gCAcd,YAAY;;EAW3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-live-announcements.js","sourceRoot":"lib/default/","sources":["collection-pre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AAC,YAAY,CAAC;gBACnG,OAAO,gCAAgC,CAAC,YAAY,GAAG,CAAC,EAAE,WAAW,GAAG,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;aAClG;QACH,CAAC;QACD,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,EAAgB;YACtC,IAAI,gCAAgC,EAAE;gBACpC,MAAM,YAAY,GAAG,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC;gBAChF,MAAM,UAAU,GAAG,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;gBAClG,OAAO,gCAAgC,CAAC,YAAY,GAAG,CAAC,EAAE,UAAU,GAAG,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;aACjG;QACH,CAAC;QACD,YAAY;YACV,OAAO,4BAA4B,CAAC;QACtC,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { CollectionPreferencesProps } from '../interfaces';\nimport { DragEndEvent, DragOverEvent, DragStartEvent } from '@dnd-kit/core';\nimport { useRef } from 'react';\n\nexport default function useLiveAnnouncements({\n isDragging,\n liveAnnouncementDndStarted,\n liveAnnouncementDndItemReordered,\n liveAnnouncementDndItemCommitted,\n liveAnnouncementDndDiscarded,\n sortedOptions,\n}: Partial<CollectionPreferencesProps.ContentDisplayPreference> & {\n isDragging: boolean;\n sortedOptions: ReadonlyArray<CollectionPreferencesProps.ContentDisplayItem>;\n}) {\n const isFirstAnnouncement = useRef(true);\n if (!isDragging) {\n isFirstAnnouncement.current = true;\n }\n\n return {\n onDragStart({ active }: DragStartEvent) {\n if (active && liveAnnouncementDndStarted) {\n const index = sortedOptions.findIndex(option => option.id === active.id);\n return liveAnnouncementDndStarted(index + 1, sortedOptions.length);\n }\n },\n onDragOver({ active, over }: DragOverEvent) {\n if (liveAnnouncementDndItemReordered) {\n // Don't announce on the first dragOver because it's redundant with onDragStart.\n if (isFirstAnnouncement.current) {\n isFirstAnnouncement.current = false;\n if (!over || over.id === active.id) {\n return;\n }\n }\n const initialIndex = sortedOptions.findIndex(option => option.id === active.id);\n const currentIdex = over ? sortedOptions.findIndex(option => option.id === over.id) : initialIndex;\n return liveAnnouncementDndItemReordered(initialIndex + 1, currentIdex + 1, sortedOptions.length);\n }\n },\n onDragEnd({ active, over }: DragEndEvent) {\n if (liveAnnouncementDndItemCommitted) {\n const initialIndex = sortedOptions.findIndex(option => option.id === active.id);\n const finalIndex = over ? sortedOptions.findIndex(option => option.id === over.id) : initialIndex;\n return liveAnnouncementDndItemCommitted(initialIndex + 1, finalIndex + 1, sortedOptions.length);\n }\n },\n onDragCancel() {\n return liveAnnouncementDndDiscarded;\n },\n };\n}\n"]}
1
+ {"version":3,"file":"use-live-announcements.js","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/use-live-announcements.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,UAAU,EACV,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,4BAA4B,EAC5B,aAAa,GAId;IACC,MAAM,mBAAmB,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IACzC,IAAI,CAAC,UAAU,EAAE;QACf,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC;KACpC;IAED,OAAO;QACL,WAAW,CAAC,EAAE,MAAM,EAAkB;YACpC,IAAI,MAAM,IAAI,0BAA0B,EAAE;gBACxC,MAAM,KAAK,GAAG,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,E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AAO,gCAAgC,CAAC,YAAY,GAAG,CAAC,EAAE,UAAU,GAAG,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;aACjG;QACH,CAAC;QACD,YAAY;YACV,OAAO,4BAA4B,CAAC;QACtC,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { CollectionPreferencesProps } from '../interfaces';\nimport { DragEndEvent, DragOverEvent, DragStartEvent } from '@dnd-kit/core';\nimport { useRef } from 'react';\n\nexport default function useLiveAnnouncements({\n isDragging,\n liveAnnouncementDndStarted,\n liveAnnouncementDndItemReordered,\n liveAnnouncementDndItemCommitted,\n liveAnnouncementDndDiscarded,\n sortedOptions,\n}: Partial<CollectionPreferencesProps.ContentDisplayPreference> & {\n isDragging: boolean;\n sortedOptions: ReadonlyArray<CollectionPreferencesProps.ContentDisplayItem>;\n}) {\n const isFirstAnnouncement = useRef(true);\n if (!isDragging) {\n isFirstAnnouncement.current = true;\n }\n\n return {\n onDragStart({ active }: DragStartEvent) {\n if (active && liveAnnouncementDndStarted) {\n const index = sortedOptions.findIndex(option => option.id === active.id);\n return liveAnnouncementDndStarted(index + 1, sortedOptions.length);\n }\n },\n onDragOver({ active, over }: DragOverEvent) {\n if (liveAnnouncementDndItemReordered) {\n // Don't announce on the first dragOver because it's redundant with onDragStart.\n if (isFirstAnnouncement.current) {\n isFirstAnnouncement.current = false;\n if (!over || over.id === active.id) {\n return;\n }\n }\n const initialIndex = sortedOptions.findIndex(option => option.id === active.id);\n const currentIdex = over ? sortedOptions.findIndex(option => option.id === over.id) : initialIndex;\n return liveAnnouncementDndItemReordered(initialIndex + 1, currentIdex + 1, sortedOptions.length);\n }\n },\n onDragEnd({ active, over }: DragEndEvent) {\n if (liveAnnouncementDndItemCommitted) {\n const initialIndex = sortedOptions.findIndex(option => option.id === active.id);\n const finalIndex = over ? sortedOptions.findIndex(option => option.id === over.id) : initialIndex;\n return liveAnnouncementDndItemCommitted(initialIndex + 1, finalIndex + 1, sortedOptions.length);\n }\n },\n onDragCancel() {\n return liveAnnouncementDndDiscarded;\n },\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/content-display/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAE3D,MAAM,WAAW,oBAAqB,SAAQ,0BAA0B,CAAC,oBAAoB;IAC3F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,cAAc,GACf,EAAE;IACD,OAAO,EAAE,aAAa,CAAC,0BAA0B,CAAC,oBAAoB,CAAC,CAAC;IACxE,cAAc,EAAE,aAAa,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;CAC9E,GAAG,aAAa,CAAC,oBAAoB,CAAC,CAWtC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAE3D,MAAM,WAAW,oBAAqB,SAAQ,0BAA0B,CAAC,oBAAoB;IAC3F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,cAAc,GACf,EAAE;IACD,OAAO,EAAE,aAAa,CAAC,0BAA0B,CAAC,oBAAoB,CAAC,CAAC;IACxE,cAAc,EAAE,aAAa,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;CAC9E,GAAG,aAAa,CAAC,oBAAoB,CAAC,CAWtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"lib/default/","sources":["collection-preferences/content-display/utils.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,gBAAgB,CAAC,EAC/B,OAAO,EACP,cAAc,GAIf;IACC,MAAM,WAAW,GAAoE,OAAO,CAAC,MAAM,CACjG,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,CAAC,iCAAM,YAAY,KAAE,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,IAAG,EACpE,EAAE,CACH,CAAC;IACF,OAAO,cAAc;SAClB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,EAAiD,EAAE,EAAE,CAAC,iCACpE,WAAW,CAAC,EAAE,CAAC,KAClB,OAAO,IACP,CAAC;SACF,MAAM,CAAC,OAAO,CAAC,CAAC;AACrB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { CollectionPreferencesProps } from '../interfaces';\n\nexport interface OptionWithVisibility extends CollectionPreferencesProps.ContentDisplayOption {\n visible?: boolean;\n}\n\nexport function getSortedOptions({\n options,\n contentDisplay,\n}: {\n options: ReadonlyArray<CollectionPreferencesProps.ContentDisplayOption>;\n contentDisplay: ReadonlyArray<CollectionPreferencesProps.ContentDisplayItem>;\n}): ReadonlyArray<OptionWithVisibility> {\n const optionsById: Record<string, CollectionPreferencesProps.ContentDisplayOption> = options.reduce(\n (currentValue, option) => ({ ...currentValue, [option.id]: option }),\n {}\n );\n return contentDisplay\n .map(({ id, visible }: CollectionPreferencesProps.ContentDisplayItem) => ({\n ...optionsById[id],\n visible,\n }))\n .filter(Boolean);\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/utils.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,gBAAgB,CAAC,EAC/B,OAAO,EACP,cAAc,GAIf;IACC,MAAM,WAAW,GAAoE,OAAO,CAAC,MAAM,CACjG,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,CAAC,iCAAM,YAAY,KAAE,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,IAAG,EACpE,EAAE,CACH,CAAC;IACF,OAAO,cAAc;SAClB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,EAAiD,EAAE,EAAE,CAAC,iCACpE,WAAW,CAAC,EAAE,CAAC,KAClB,OAAO,IACP,CAAC;SACF,MAAM,CAAC,OAAO,CAAC,CAAC;AACrB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { CollectionPreferencesProps } from '../interfaces';\n\nexport interface OptionWithVisibility extends CollectionPreferencesProps.ContentDisplayOption {\n visible?: boolean;\n}\n\nexport function getSortedOptions({\n options,\n contentDisplay,\n}: {\n options: ReadonlyArray<CollectionPreferencesProps.ContentDisplayOption>;\n contentDisplay: ReadonlyArray<CollectionPreferencesProps.ContentDisplayItem>;\n}): ReadonlyArray<OptionWithVisibility> {\n const optionsById: Record<string, CollectionPreferencesProps.ContentDisplayOption> = options.reduce(\n (currentValue, option) => ({ ...currentValue, [option.id]: option }),\n {}\n );\n return contentDisplay\n .map(({ id, visible }: CollectionPreferencesProps.ContentDisplayItem) => ({\n ...optionsById[id],\n visible,\n }))\n .filter(Boolean);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/index.tsx"],"names":[],"mappings":";AAwBA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAQ1D,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAItC,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,KAAK,EACL,YAAY,EACZ,WAAW,EACX,QAAgB,EAChB,SAAS,EACT,QAAQ,EACR,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EAEvB,WAAW,EACX,gBAAgB,EAChB,GAAG,IAAI,EACR,EAAE,0BAA0B,eAuK5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/collection-preferences/index.tsx"],"names":[],"mappings":";AAwBA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAQ1D,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAItC,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,KAAK,EACL,YAAY,EACZ,WAAW,EACX,QAAgB,EAChB,SAAS,EACT,QAAQ,EACR,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EAEvB,WAAW,EACX,gBAAgB,EAChB,GAAG,IAAI,EACR,EAAE,0BAA0B,eAuK5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["collection-preferences/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,wBAAwB,MAAM,mBAAmB,CAAC;AACzD,OAAO,eAAe,MAAM,oCAAoC,CAAC;AAEjE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC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nB,wBAAwB,IAC5B,KAAK,EAAE,oBAAoB,CAAC,cAAc,EAC1C,QAAQ,EAAE,cAAc,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC,IACxD,CACH,CAAC,CAAC,CAAC,CACF,wBAAwB,IAAI,CAC1B,oBAAC,wBAAwB,kBACvB,KAAK,EAAE,oBAAoB,CAAC,cAAc,IACtC,wBAAwB,IAC5B,QAAQ,EAAE,YAAY,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,IACpE,CACH,CACF,GAEH,CACY,CACjB,CACG,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { getBaseProps } from '../internal/base-component';\nimport InternalBox from '../box/internal';\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\nimport InternalModal from '../modal/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport {\n copyPreferences,\n mergePreferences,\n ModalContentLayout,\n PageSizePreference,\n WrapLinesPreference,\n StripedRowsPreference,\n ContentDensityPreference,\n StickyColumnsPreference,\n CustomPreference,\n} from './utils';\nimport VisibleContentPreference from './visible-content';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport ContentDisplayPreference from './content-display';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport { useInternalI18n } from '../i18n/context';\n\nexport { CollectionPreferencesProps };\n\nconst componentName = 'CollectionPreferences';\n\nexport default function CollectionPreferences({\n title,\n confirmLabel,\n cancelLabel,\n disabled = false,\n onConfirm,\n onCancel,\n visibleContentPreference,\n contentDisplayPreference,\n pageSizePreference,\n wrapLinesPreference,\n stripedRowsPreference,\n contentDensityPreference,\n stickyColumnsPreference,\n\n preferences,\n customPreference,\n ...rest\n}: CollectionPreferencesProps) {\n const { __internalRootRef } = useBaseComponent('CollectionPreferences');\n checkControlled('CollectionPreferences', 'preferences', preferences, 'onConfirm', onConfirm);\n\n const i18n = useInternalI18n('collection-preferences');\n const baseProps = getBaseProps(rest);\n const [modalVisible, setModalVisible] = useState(false);\n const [temporaryPreferences, setTemporaryPreferences] = useState(copyPreferences(preferences || {}));\n const triggerRef = useRef<ButtonProps.Ref>(null);\n const dialogPreviouslyOpen = useRef(false);\n\n useEffect(() => {\n if (!modalVisible) {\n dialogPreviouslyOpen.current && triggerRef.current && triggerRef.current.focus();\n } else {\n dialogPreviouslyOpen.current = true;\n }\n }, [modalVisible]);\n\n const onConfirmListener = () => {\n setModalVisible(false);\n fireNonCancelableEvent(onConfirm, temporaryPreferences);\n };\n\n const onCancelListener = () => {\n fireNonCancelableEvent(onCancel, {});\n setModalVisible(false);\n setTemporaryPreferences(copyPreferences(preferences || {}));\n };\n\n const hasContentOnTheLeft = !!(\n pageSizePreference ||\n wrapLinesPreference ||\n stripedRowsPreference ||\n contentDensityPreference ||\n stickyColumnsPreference ||\n customPreference\n );\n const hasContentOnTheRight = !!(visibleContentPreference || contentDisplayPreference);\n\n const onChange = (changedPreferences: CollectionPreferencesProps.Preferences) =>\n setTemporaryPreferences(mergePreferences(changedPreferences, temporaryPreferences));\n\n if (visibleContentPreference && contentDisplayPreference) {\n warnOnce(\n componentName,\n 'You provided both `visibleContentPreference` and `contentDisplayPreference` props. `visibleContentPreference` will be ignored and only `contentDisplayPreference` will be rendered.'\n );\n }\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={__internalRootRef}>\n <InternalButton\n ref={triggerRef}\n className={styles['trigger-button']}\n disabled={disabled}\n ariaLabel={i18n('title', title)}\n onClick={() => {\n setTemporaryPreferences(copyPreferences(preferences || {}));\n setModalVisible(true);\n }}\n variant=\"icon\"\n iconName=\"settings\"\n formAction=\"none\"\n />\n {!disabled && modalVisible && (\n <InternalModal\n className={styles['modal-root']}\n visible={true}\n header={i18n('title', title)}\n footer={\n <InternalBox float=\"right\">\n <InternalSpaceBetween direction=\"horizontal\" size=\"xs\">\n <InternalButton\n className={styles['cancel-button']}\n variant=\"link\"\n formAction=\"none\"\n onClick={onCancelListener}\n >\n {i18n('cancelLabel', cancelLabel)}\n </InternalButton>\n <InternalButton\n className={styles['confirm-button']}\n variant=\"primary\"\n formAction=\"none\"\n onClick={onConfirmListener}\n >\n {i18n('confirmLabel', confirmLabel)}\n </InternalButton>\n </InternalSpaceBetween>\n </InternalBox>\n }\n closeAriaLabel={cancelLabel}\n size={hasContentOnTheLeft && hasContentOnTheRight ? 'large' : 'medium'}\n onDismiss={onCancelListener}\n >\n <ModalContentLayout\n left={\n hasContentOnTheLeft && (\n <InternalSpaceBetween size=\"l\">\n {pageSizePreference && (\n <PageSizePreference\n value={temporaryPreferences.pageSize}\n {...pageSizePreference}\n onChange={pageSize => onChange({ pageSize })}\n />\n )}\n {wrapLinesPreference && (\n <WrapLinesPreference\n value={temporaryPreferences.wrapLines}\n {...wrapLinesPreference}\n onChange={wrapLines => onChange({ wrapLines })}\n />\n )}\n {stripedRowsPreference && (\n <StripedRowsPreference\n value={temporaryPreferences.stripedRows}\n {...stripedRowsPreference}\n onChange={stripedRows => onChange({ stripedRows })}\n />\n )}\n {contentDensityPreference && (\n <ContentDensityPreference\n value={temporaryPreferences.contentDensity}\n {...contentDensityPreference}\n onChange={contentDensity => onChange({ contentDensity })}\n />\n )}\n {stickyColumnsPreference && (\n <StickyColumnsPreference\n value={temporaryPreferences.stickyColumns}\n {...stickyColumnsPreference}\n onChange={stickyColumns => onChange({ stickyColumns })}\n />\n )}\n {customPreference && (\n <CustomPreference\n value={temporaryPreferences.custom}\n customPreference={customPreference}\n onChange={custom => onChange({ custom })}\n />\n )}\n </InternalSpaceBetween>\n )\n }\n right={\n contentDisplayPreference ? (\n <ContentDisplayPreference\n {...contentDisplayPreference}\n value={temporaryPreferences.contentDisplay}\n onChange={contentDisplay => onChange({ contentDisplay })}\n />\n ) : (\n visibleContentPreference && (\n <VisibleContentPreference\n value={temporaryPreferences.visibleContent}\n {...visibleContentPreference}\n onChange={visibleItems => onChange({ visibleContent: visibleItems })}\n />\n )\n )\n }\n />\n </InternalModal>\n )}\n </div>\n );\n}\n\napplyDisplayName(CollectionPreferences, componentName);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/collection-preferences/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,wBAAwB,MAAM,mBAAmB,CAAC;AACzD,OAAO,eAAe,MAAM,oCAAoC,CAAC;AAEjE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,gBAAgB,M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E,cAAc,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC,IACxD,CACH,CAAC,CAAC,CAAC,CACF,wBAAwB,IAAI,CAC1B,oBAAC,wBAAwB,kBACvB,KAAK,EAAE,oBAAoB,CAAC,cAAc,IACtC,wBAAwB,IAC5B,QAAQ,EAAE,YAAY,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,IACpE,CACH,CACF,GAEH,CACY,CACjB,CACG,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { getBaseProps } from '../internal/base-component';\nimport InternalBox from '../box/internal';\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\nimport InternalModal from '../modal/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport {\n copyPreferences,\n mergePreferences,\n ModalContentLayout,\n PageSizePreference,\n WrapLinesPreference,\n StripedRowsPreference,\n ContentDensityPreference,\n StickyColumnsPreference,\n CustomPreference,\n} from './utils';\nimport VisibleContentPreference from './visible-content';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport ContentDisplayPreference from './content-display';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport { useInternalI18n } from '../i18n/context';\n\nexport { CollectionPreferencesProps };\n\nconst componentName = 'CollectionPreferences';\n\nexport default function CollectionPreferences({\n title,\n confirmLabel,\n cancelLabel,\n disabled = false,\n onConfirm,\n onCancel,\n visibleContentPreference,\n contentDisplayPreference,\n pageSizePreference,\n wrapLinesPreference,\n stripedRowsPreference,\n contentDensityPreference,\n stickyColumnsPreference,\n\n preferences,\n customPreference,\n ...rest\n}: CollectionPreferencesProps) {\n const { __internalRootRef } = useBaseComponent('CollectionPreferences');\n checkControlled('CollectionPreferences', 'preferences', preferences, 'onConfirm', onConfirm);\n\n const i18n = useInternalI18n('collection-preferences');\n const baseProps = getBaseProps(rest);\n const [modalVisible, setModalVisible] = useState(false);\n const [temporaryPreferences, setTemporaryPreferences] = useState(copyPreferences(preferences || {}));\n const triggerRef = useRef<ButtonProps.Ref>(null);\n const dialogPreviouslyOpen = useRef(false);\n\n useEffect(() => {\n if (!modalVisible) {\n dialogPreviouslyOpen.current && triggerRef.current && triggerRef.current.focus();\n } else {\n dialogPreviouslyOpen.current = true;\n }\n }, [modalVisible]);\n\n const onConfirmListener = () => {\n setModalVisible(false);\n fireNonCancelableEvent(onConfirm, temporaryPreferences);\n };\n\n const onCancelListener = () => {\n fireNonCancelableEvent(onCancel, {});\n setModalVisible(false);\n setTemporaryPreferences(copyPreferences(preferences || {}));\n };\n\n const hasContentOnTheLeft = !!(\n pageSizePreference ||\n wrapLinesPreference ||\n stripedRowsPreference ||\n contentDensityPreference ||\n stickyColumnsPreference ||\n customPreference\n );\n const hasContentOnTheRight = !!(visibleContentPreference || contentDisplayPreference);\n\n const onChange = (changedPreferences: CollectionPreferencesProps.Preferences) =>\n setTemporaryPreferences(mergePreferences(changedPreferences, temporaryPreferences));\n\n if (visibleContentPreference && contentDisplayPreference) {\n warnOnce(\n componentName,\n 'You provided both `visibleContentPreference` and `contentDisplayPreference` props. `visibleContentPreference` will be ignored and only `contentDisplayPreference` will be rendered.'\n );\n }\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={__internalRootRef}>\n <InternalButton\n ref={triggerRef}\n className={styles['trigger-button']}\n disabled={disabled}\n ariaLabel={i18n('title', title)}\n onClick={() => {\n setTemporaryPreferences(copyPreferences(preferences || {}));\n setModalVisible(true);\n }}\n variant=\"icon\"\n iconName=\"settings\"\n formAction=\"none\"\n />\n {!disabled && modalVisible && (\n <InternalModal\n className={styles['modal-root']}\n visible={true}\n header={i18n('title', title)}\n footer={\n <InternalBox float=\"right\">\n <InternalSpaceBetween direction=\"horizontal\" size=\"xs\">\n <InternalButton\n className={styles['cancel-button']}\n variant=\"link\"\n formAction=\"none\"\n onClick={onCancelListener}\n >\n {i18n('cancelLabel', cancelLabel)}\n </InternalButton>\n <InternalButton\n className={styles['confirm-button']}\n variant=\"primary\"\n formAction=\"none\"\n onClick={onConfirmListener}\n >\n {i18n('confirmLabel', confirmLabel)}\n </InternalButton>\n </InternalSpaceBetween>\n </InternalBox>\n }\n closeAriaLabel={cancelLabel}\n size={hasContentOnTheLeft && hasContentOnTheRight ? 'large' : 'medium'}\n onDismiss={onCancelListener}\n >\n <ModalContentLayout\n left={\n hasContentOnTheLeft && (\n <InternalSpaceBetween size=\"l\">\n {pageSizePreference && (\n <PageSizePreference\n value={temporaryPreferences.pageSize}\n {...pageSizePreference}\n onChange={pageSize => onChange({ pageSize })}\n />\n )}\n {wrapLinesPreference && (\n <WrapLinesPreference\n value={temporaryPreferences.wrapLines}\n {...wrapLinesPreference}\n onChange={wrapLines => onChange({ wrapLines })}\n />\n )}\n {stripedRowsPreference && (\n <StripedRowsPreference\n value={temporaryPreferences.stripedRows}\n {...stripedRowsPreference}\n onChange={stripedRows => onChange({ stripedRows })}\n />\n )}\n {contentDensityPreference && (\n <ContentDensityPreference\n value={temporaryPreferences.contentDensity}\n {...contentDensityPreference}\n onChange={contentDensity => onChange({ contentDensity })}\n />\n )}\n {stickyColumnsPreference && (\n <StickyColumnsPreference\n value={temporaryPreferences.stickyColumns}\n {...stickyColumnsPreference}\n onChange={stickyColumns => onChange({ stickyColumns })}\n />\n )}\n {customPreference && (\n <CustomPreference\n value={temporaryPreferences.custom}\n customPreference={customPreference}\n onChange={custom => onChange({ custom })}\n />\n )}\n </InternalSpaceBetween>\n )\n }\n right={\n contentDisplayPreference ? (\n <ContentDisplayPreference\n {...contentDisplayPreference}\n value={temporaryPreferences.contentDisplay}\n onChange={contentDisplay => onChange({ contentDisplay })}\n />\n ) : (\n visibleContentPreference && (\n <VisibleContentPreference\n value={temporaryPreferences.visibleContent}\n {...visibleContentPreference}\n onChange={visibleItems => onChange({ visibleContent: visibleItems })}\n />\n )\n )\n }\n />\n </InternalModal>\n )}\n </div>\n );\n}\n\napplyDisplayName(CollectionPreferences, componentName);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,0BAA0B,CAAC,oBAAoB,GAAG,GAAG,CAAE,SAAQ,kBAAkB;IAChG;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;;;;;;;OAaG;IACH,kBAAkB,CAAC,EAAE,0BAA0B,CAAC,kBAAkB,CAAC;IACnE;;;;;;;;;;;OAWG;IACH,mBAAmB,CAAC,EAAE,0BAA0B,CAAC,mBAAmB,CAAC;IACrE;;;;;;;;;;;OAWG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAC,qBAAqB,CAAC;IACzE;;;;;;;;;;;OAWG;IACH,wBAAwB,CAAC,EAAE,0BAA0B,CAAC,wBAAwB,CAAC;IAC/E;;;;;;;;;;;OAWG;IACH,uBAAuB,CAAC,EAAE,0BAA0B,CAAC,uBAAuB,CAAC;IAC7E;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,wBAAwB,CAA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EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,MAAM,WAAW,qBAAqB;QACpC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,MAAM,WAAW,wBAAwB;QACvC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,UAAU,aAAa;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IAED,UAAU,sBAAsB;QAC9B,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,aAAa,CAAC;YACrB,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;SACf,CAAC,CAAC;KACJ;IACD,MAAM,WAAW,uBAAuB;QACtC,YAAY,CAAC,EAAE,sBAAsB,CAAC;QACtC,WAAW,CAAC,EAAE,sBAAsB,CAAC;KACtC;;CACF"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/collection-preferences/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,0BAA0B,CAAC,oBAAoB,GAAG,GAAG,CAAE,SAAQ,kBAAkB;IAChG;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;;;;;;;OAaG;IACH,kBAAkB,CAAC,EAAE,0BAA0B,CAAC,kBAAkB,CAAC;IACnE;;;;;;;;;;;OAWG;IAC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AAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB;IAED,MAAM,WAAW,kBAAkB;QACjC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;KACxC;IAED,MAAM,WAAW,cAAc;QAC7B,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;IAED,MAAM,WAAW,mBAAmB;QAClC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,MAAM,WAAW,qBAAqB;QACpC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,MAAM,WAAW,wBAAwB;QACvC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,UAAU,aAAa;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IAED,UAAU,sBAAsB;QAC9B,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,aAAa,CAAC;YACrB,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;SACf,CAAC,CAAC;KACJ;IACD,MAAM,WAAW,uBAAuB;QACtC,YAAY,CAAC,EAAE,sBAAsB,CAAC;QACtC,WAAW,CAAC,EAAE,sBAAsB,CAAC;KACtC;;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["collection-preferences/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 '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface CollectionPreferencesProps<CustomPreferenceType = any> extends BaseComponentProps {\n /**\n * Specifies the title of the preferences modal dialog. It is also used as an `aria-label` for the trigger button.\n * @i18n\n */\n title?: string;\n /**\n * Label of the confirm button in the modal footer.\n * @i18n\n */\n confirmLabel?: string;\n /**\n * Label of the cancel button in the modal footer.\n * @i18n\n */\n cancelLabel?: string;\n /**\n * Determines whether the preferences trigger button is disabled.\n */\n disabled?: boolean;\n /**\n * Configures the built-in \"page size selection\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of options for page size selection. Each entry contains:\n * - `value` (number) - The value for the radio button (that is, the number of items per page).\n * - `label` (string) - A label for the radio button (for example, \"10 resources\").\n *\n * You must set the current value in the `preferences.pageSize` property.\n * @i18n\n */\n pageSizePreference?: CollectionPreferencesProps.PageSizePreference;\n /**\n * Configures the built-in \"wrap lines\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.wrapLines` property.\n * @i18n\n */\n wrapLinesPreference?: CollectionPreferencesProps.WrapLinesPreference;\n /**\n * Configures the built-in \"striped rows\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.stripedRows` property.\n * @i18n\n */\n stripedRowsPreference?: CollectionPreferencesProps.StripedRowsPreference;\n /**\n * Configures the content density preference (Comfortable / Compact).\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.contentDensity` property.\n * @i18n\n */\n contentDensityPreference?: CollectionPreferencesProps.ContentDensityPreference;\n /**\n * Configures the sticky columns preference.\n *\n * You can set it for both left and right columns.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for each radio group.\n * - `description` (string) - Specifies the text displayed below each radio group label.\n *\n * You must set the current value in the `preferences.stickyColumns` property.\n * @i18n\n */\n stickyColumnsPreference?: CollectionPreferencesProps.StickyColumnsPreference;\n /**\n * Configures the built-in content display preference for order and visibility of columns in a table.\n *\n * Once set, the component displays this preference in the modal.\n * Cannot be used together with `visibleContentPreference`.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `description` (string) - Specifies the description displayed below the title.\n * - `liveAnnouncementDndStarted` ((position: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an option is picked.\n * - `liveAnnouncementDndDiscarded` (string) - (Optional) Adds a message to be announced by screen readers when a reordering action is canceled.\n * - `liveAnnouncementDndItemReordered` ((initialPosition: number, currentPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is being moved.\n * - `liveAnnouncementDndItemCommitted` ((initialPosition: number, finalPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when a reordering action is committed.\n * - `dragHandleAriaDescription` (string) - (Optional) Adds an ARIA description for the drag handle.\n * - `dragHandleAriaLabel` (string) - (Optional) Adds an ARIA label for the drag handle.\n * - `options` - Specifies an array of options for reordering and visible content selection.\n *\n * Each option contains the following:\n * - `id` (string) - Corresponds to a table column `id`.\n * - `label` (string) - Specifies a short description of the content.\n * - `alwaysVisible` (boolean) - (Optional) Determines whether the visibility is always on and therefore cannot be toggled. This is set to `false` by default.\n *\n * You must provide an ordered list of the items to display in the `preferences.contentDisplay` property.\n * @i18n\n */\n contentDisplayPreference?: CollectionPreferencesProps.ContentDisplayPreference;\n /**\n * Configures the built-in \"visible content selection\" preference (for example, visible sections in cards).\n *\n * If you set it, the component displays this preference in the modal.\n * Cannot be used together with `contentDisplayPreference`.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of groups of options for visible content selection.\n *\n * Each group of options contains the following:\n * - `label` (string) - The text to display as a title for the options group.\n * - `options` - Specifies an aray of options in the group. Each option contains the following:\n * - `id` (string) - Corresponds to a column `id` for tables or to a section `id` for cards.\n * - `label` (string) - Specifies a short description of the content.\n * - `editable` (boolean) - (Optional) Determines whether the user is able to toggle its visibility. This is `true` by default.\n *\n * You must set the current list of visible content `id`s in the `preferences.visibleContent` property.\n *\n * **Deprecated** in table, replaced by `contentDisplayPreference`.\n */\n visibleContentPreference?: CollectionPreferencesProps.VisibleContentPreference;\n /**\n * Specifies the current preference values. This includes both built-in and custom preferences.\n *\n * It contains the following:\n * - `pageSize` (number) - (Optional)\n * - `wrapLines` (boolean) - (Optional)\n * - `contentDisplay` (ReadonlyArray<ContentDisplayItem>) - (Optional) Specifies the list of content and their visibility. The order of the elements influences the display.\n * - `visibleContent` (ReadonlyArray<string>) - Specifies the list of visible content `id`s. The order of the `id`s does not influence the display. If the `contentDisplay` property is set, this property is ignored.\n * - `custom` (CustomPreferenceType) - Specifies the value for your custom preference.\n */\n preferences?: CollectionPreferencesProps.Preferences<CustomPreferenceType>;\n /**\n * Configures custom preferences. The function receives two parameters:\n *\n * - `customValue` (CustomPreferenceType) - Current value for your custom preference. It is initialized using the value you provide in `preferences.custom`.\n * - `setCustomValue` - A function that is called to notify a state update.\n *\n * It should return the content of your custom preference, for example:\n * ```\n * (customValue, setCustomValue) => (\n * <Checkbox checked={customValue} onChange={({ detail }) => setCustomValue(detail.checked)} />\n * )\n * ```\n *\n * When the user confirms the changes, the new value is passed in the `detail.custom` property of the `onConfirm` listener.\n * When the user cancels the changes, the `customValue` is reset to the one present in `preferences.custom` property.\n *\n * **Display**\n * - If any of the built-in preferences (`pageSizePreference`, `wrapLinesPreference`, or `visibleContentPreference`) are displayed,\n * the custom content is displayed at the bottom of the left column within the modal.\n * - If no built-in preference is displayed, the custom content occupies the whole modal.\n */\n customPreference?: (\n customValue: CustomPreferenceType,\n setCustomValue: React.Dispatch<CustomPreferenceType>\n ) => React.ReactNode;\n /**\n * Called when the user cancels a preference change using the cancel button in the modal footer or by dismissing the modal.\n */\n onCancel?: NonCancelableEventHandler;\n /**\n * Called when the user confirms a preference change using the confirm button in the modal footer.\n *\n * The event `detail` contains the following:\n * - `contentDensity` (boolean) - (Optional) The current content density preference value. Available only if you specify the `contentDensityPreference` property.\n * - `contentDisplay` (ReadonlyArray<ContentDisplayItem>) - (Optional) The ordered list of table columns and their visibility. Available only if you specify the `contentDisplayPreference` property.\n * - `custom` (CustomPreferenceType) - (Optional) The selected value for your custom preference.\n * - `pageSize` (number) - (Optional) The selected page size value. Available only if you specify the `pageSizePreference` property.\n * - `stickyColumns` (CollectionPreferencesProps.StickyColumns) - (Optional) The current sticky columns preference value. Available only if you specify the `stickyColumnsPreference` property.\n * - `stripedRows` (boolean) - (Optional) The current striped rows preference value. Available only if you specify the `stripedRowsPreference` property.\n * - `visibleContent` (ReadonlyArray<string>) - (Optional) The list of selected content `id`s. Available only if you specify the `visibleContentPreference` property.\n * - `wrapLines` (boolean) - (Optional) The current line wrapping preference value. Available only if you specify the `wrapLinesPreference` property.\n *\n * The values for all configured preferences are present even if the user didn't change their values.\n */\n onConfirm?: NonCancelableEventHandler<CollectionPreferencesProps.Preferences<CustomPreferenceType>>;\n}\n\nexport namespace CollectionPreferencesProps {\n export interface Preferences<CustomPreferenceType = any> {\n pageSize?: number;\n wrapLines?: boolean;\n stripedRows?: boolean;\n contentDensity?: 'comfortable' | 'compact';\n visibleContent?: ReadonlyArray<string>;\n stickyColumns?: StickyColumns;\n contentDisplay?: ReadonlyArray<ContentDisplayItem>;\n custom?: CustomPreferenceType;\n }\n\n export interface ContentDisplayPreference {\n title?: string;\n description?: string;\n options: ReadonlyArray<CollectionPreferencesProps.ContentDisplayOption>;\n liveAnnouncementDndStarted?: (position: number, total: number) => string;\n liveAnnouncementDndItemReordered?: (initialPosition: number, currentPosition: number, total: number) => string;\n liveAnnouncementDndItemCommitted?: (initialPosition: number, finalPosition: number, total: number) => string;\n liveAnnouncementDndDiscarded?: string;\n dragHandleAriaLabel?: string;\n dragHandleAriaDescription?: string;\n }\n\n export interface ContentDisplayOption {\n id: string;\n label: string;\n alwaysVisible?: boolean;\n }\n\n export interface ContentDisplayItem {\n id: string;\n visible: boolean;\n }\n\n export interface VisibleContentPreference {\n title: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOptionsGroup>;\n }\n\n export interface VisibleContentOptionsGroup {\n label: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOption>;\n }\n\n export interface VisibleContentOption {\n id: string;\n label: string;\n editable?: boolean;\n }\n\n export interface PageSizePreference {\n title?: string;\n options: ReadonlyArray<PageSizeOption>;\n }\n\n export interface PageSizeOption {\n value: number;\n label?: string;\n }\n\n export interface WrapLinesPreference {\n label?: string;\n description?: string;\n }\n\n export interface StripedRowsPreference {\n label?: string;\n description?: string;\n }\n\n export interface ContentDensityPreference {\n label?: string;\n description?: string;\n }\n\n interface StickyColumns {\n first?: number;\n last?: number;\n }\n\n interface StickyColumnPreference {\n title: string;\n description: string;\n options: ReadonlyArray<{\n label: string;\n value: number;\n }>;\n }\n export interface StickyColumnsPreference {\n firstColumns?: StickyColumnPreference;\n lastColumns?: StickyColumnPreference;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/collection-preferences/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 '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface CollectionPreferencesProps<CustomPreferenceType = any> extends BaseComponentProps {\n /**\n * Specifies the title of the preferences modal dialog. It is also used as an `aria-label` for the trigger button.\n * @i18n\n */\n title?: string;\n /**\n * Label of the confirm button in the modal footer.\n * @i18n\n */\n confirmLabel?: string;\n /**\n * Label of the cancel button in the modal footer.\n * @i18n\n */\n cancelLabel?: string;\n /**\n * Determines whether the preferences trigger button is disabled.\n */\n disabled?: boolean;\n /**\n * Configures the built-in \"page size selection\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of options for page size selection. Each entry contains:\n * - `value` (number) - The value for the radio button (that is, the number of items per page).\n * - `label` (string) - A label for the radio button (for example, \"10 resources\").\n *\n * You must set the current value in the `preferences.pageSize` property.\n * @i18n\n */\n pageSizePreference?: CollectionPreferencesProps.PageSizePreference;\n /**\n * Configures the built-in \"wrap lines\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.wrapLines` property.\n * @i18n\n */\n wrapLinesPreference?: CollectionPreferencesProps.WrapLinesPreference;\n /**\n * Configures the built-in \"striped rows\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.stripedRows` property.\n * @i18n\n */\n stripedRowsPreference?: CollectionPreferencesProps.StripedRowsPreference;\n /**\n * Configures the content density preference (Comfortable / Compact).\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.contentDensity` property.\n * @i18n\n */\n contentDensityPreference?: CollectionPreferencesProps.ContentDensityPreference;\n /**\n * Configures the sticky columns preference.\n *\n * You can set it for both left and right columns.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for each radio group.\n * - `description` (string) - Specifies the text displayed below each radio group label.\n *\n * You must set the current value in the `preferences.stickyColumns` property.\n * @i18n\n */\n stickyColumnsPreference?: CollectionPreferencesProps.StickyColumnsPreference;\n /**\n * Configures the built-in content display preference for order and visibility of columns in a table.\n *\n * Once set, the component displays this preference in the modal.\n * Cannot be used together with `visibleContentPreference`.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `description` (string) - Specifies the description displayed below the title.\n * - `liveAnnouncementDndStarted` ((position: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an option is picked.\n * - `liveAnnouncementDndDiscarded` (string) - (Optional) Adds a message to be announced by screen readers when a reordering action is canceled.\n * - `liveAnnouncementDndItemReordered` ((initialPosition: number, currentPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is being moved.\n * - `liveAnnouncementDndItemCommitted` ((initialPosition: number, finalPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when a reordering action is committed.\n * - `dragHandleAriaDescription` (string) - (Optional) Adds an ARIA description for the drag handle.\n * - `dragHandleAriaLabel` (string) - (Optional) Adds an ARIA label for the drag handle.\n * - `options` - Specifies an array of options for reordering and visible content selection.\n *\n * Each option contains the following:\n * - `id` (string) - Corresponds to a table column `id`.\n * - `label` (string) - Specifies a short description of the content.\n * - `alwaysVisible` (boolean) - (Optional) Determines whether the visibility is always on and therefore cannot be toggled. This is set to `false` by default.\n *\n * You must provide an ordered list of the items to display in the `preferences.contentDisplay` property.\n * @i18n\n */\n contentDisplayPreference?: CollectionPreferencesProps.ContentDisplayPreference;\n /**\n * Configures the built-in \"visible content selection\" preference (for example, visible sections in cards).\n *\n * If you set it, the component displays this preference in the modal.\n * Cannot be used together with `contentDisplayPreference`.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of groups of options for visible content selection.\n *\n * Each group of options contains the following:\n * - `label` (string) - The text to display as a title for the options group.\n * - `options` - Specifies an aray of options in the group. Each option contains the following:\n * - `id` (string) - Corresponds to a column `id` for tables or to a section `id` for cards.\n * - `label` (string) - Specifies a short description of the content.\n * - `editable` (boolean) - (Optional) Determines whether the user is able to toggle its visibility. This is `true` by default.\n *\n * You must set the current list of visible content `id`s in the `preferences.visibleContent` property.\n *\n * **Deprecated** in table, replaced by `contentDisplayPreference`.\n */\n visibleContentPreference?: CollectionPreferencesProps.VisibleContentPreference;\n /**\n * Specifies the current preference values. This includes both built-in and custom preferences.\n *\n * It contains the following:\n * - `pageSize` (number) - (Optional)\n * - `wrapLines` (boolean) - (Optional)\n * - `contentDisplay` (ReadonlyArray<ContentDisplayItem>) - (Optional) Specifies the list of content and their visibility. The order of the elements influences the display.\n * - `visibleContent` (ReadonlyArray<string>) - Specifies the list of visible content `id`s. The order of the `id`s does not influence the display. If the `contentDisplay` property is set, this property is ignored.\n * - `custom` (CustomPreferenceType) - Specifies the value for your custom preference.\n */\n preferences?: CollectionPreferencesProps.Preferences<CustomPreferenceType>;\n /**\n * Configures custom preferences. The function receives two parameters:\n *\n * - `customValue` (CustomPreferenceType) - Current value for your custom preference. It is initialized using the value you provide in `preferences.custom`.\n * - `setCustomValue` - A function that is called to notify a state update.\n *\n * It should return the content of your custom preference, for example:\n * ```\n * (customValue, setCustomValue) => (\n * <Checkbox checked={customValue} onChange={({ detail }) => setCustomValue(detail.checked)} />\n * )\n * ```\n *\n * When the user confirms the changes, the new value is passed in the `detail.custom` property of the `onConfirm` listener.\n * When the user cancels the changes, the `customValue` is reset to the one present in `preferences.custom` property.\n *\n * **Display**\n * - If any of the built-in preferences (`pageSizePreference`, `wrapLinesPreference`, or `visibleContentPreference`) are displayed,\n * the custom content is displayed at the bottom of the left column within the modal.\n * - If no built-in preference is displayed, the custom content occupies the whole modal.\n */\n customPreference?: (\n customValue: CustomPreferenceType,\n setCustomValue: React.Dispatch<CustomPreferenceType>\n ) => React.ReactNode;\n /**\n * Called when the user cancels a preference change using the cancel button in the modal footer or by dismissing the modal.\n */\n onCancel?: NonCancelableEventHandler;\n /**\n * Called when the user confirms a preference change using the confirm button in the modal footer.\n *\n * The event `detail` contains the following:\n * - `contentDensity` (boolean) - (Optional) The current content density preference value. Available only if you specify the `contentDensityPreference` property.\n * - `contentDisplay` (ReadonlyArray<ContentDisplayItem>) - (Optional) The ordered list of table columns and their visibility. Available only if you specify the `contentDisplayPreference` property.\n * - `custom` (CustomPreferenceType) - (Optional) The selected value for your custom preference.\n * - `pageSize` (number) - (Optional) The selected page size value. Available only if you specify the `pageSizePreference` property.\n * - `stickyColumns` (CollectionPreferencesProps.StickyColumns) - (Optional) The current sticky columns preference value. Available only if you specify the `stickyColumnsPreference` property.\n * - `stripedRows` (boolean) - (Optional) The current striped rows preference value. Available only if you specify the `stripedRowsPreference` property.\n * - `visibleContent` (ReadonlyArray<string>) - (Optional) The list of selected content `id`s. Available only if you specify the `visibleContentPreference` property.\n * - `wrapLines` (boolean) - (Optional) The current line wrapping preference value. Available only if you specify the `wrapLinesPreference` property.\n *\n * The values for all configured preferences are present even if the user didn't change their values.\n */\n onConfirm?: NonCancelableEventHandler<CollectionPreferencesProps.Preferences<CustomPreferenceType>>;\n}\n\nexport namespace CollectionPreferencesProps {\n export interface Preferences<CustomPreferenceType = any> {\n pageSize?: number;\n wrapLines?: boolean;\n stripedRows?: boolean;\n contentDensity?: 'comfortable' | 'compact';\n visibleContent?: ReadonlyArray<string>;\n stickyColumns?: StickyColumns;\n contentDisplay?: ReadonlyArray<ContentDisplayItem>;\n custom?: CustomPreferenceType;\n }\n\n export interface ContentDisplayPreference {\n title?: string;\n description?: string;\n options: ReadonlyArray<CollectionPreferencesProps.ContentDisplayOption>;\n liveAnnouncementDndStarted?: (position: number, total: number) => string;\n liveAnnouncementDndItemReordered?: (initialPosition: number, currentPosition: number, total: number) => string;\n liveAnnouncementDndItemCommitted?: (initialPosition: number, finalPosition: number, total: number) => string;\n liveAnnouncementDndDiscarded?: string;\n dragHandleAriaLabel?: string;\n dragHandleAriaDescription?: string;\n }\n\n export interface ContentDisplayOption {\n id: string;\n label: string;\n alwaysVisible?: boolean;\n }\n\n export interface ContentDisplayItem {\n id: string;\n visible: boolean;\n }\n\n export interface VisibleContentPreference {\n title: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOptionsGroup>;\n }\n\n export interface VisibleContentOptionsGroup {\n label: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOption>;\n }\n\n export interface VisibleContentOption {\n id: string;\n label: string;\n editable?: boolean;\n }\n\n export interface PageSizePreference {\n title?: string;\n options: ReadonlyArray<PageSizeOption>;\n }\n\n export interface PageSizeOption {\n value: number;\n label?: string;\n }\n\n export interface WrapLinesPreference {\n label?: string;\n description?: string;\n }\n\n export interface StripedRowsPreference {\n label?: string;\n description?: string;\n }\n\n export interface ContentDensityPreference {\n label?: string;\n description?: string;\n }\n\n interface StickyColumns {\n first?: number;\n last?: number;\n }\n\n interface StickyColumnPreference {\n title: string;\n description: string;\n options: ReadonlyArray<{\n label: string;\n value: number;\n }>;\n }\n export interface StickyColumnsPreference {\n firstColumns?: StickyColumnPreference;\n lastColumns?: StickyColumnPreference;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAQxC,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAI1D,eAAO,MAAM,eAAe,iHASzB,2BAA2B,WAAW,KAAG,2BAA2B,WASrE,CAAC;AAIH,eAAO,MAAM,gBAAgB,YAClB,2BAA2B,WAAW,WACtC,2BAA2B,WAAW,KAC9C,2BAA2B,WAkB7B,CAAC;AAEF,UAAU,uBAAuB;IAC/B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,kBAAkB,oBAAqB,uBAAuB,gBAsB1E,CAAC;AAEF,UAAU,uBAAwB,SAAQ,0BAA0B,CAAC,kBAAkB;IACrF,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI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ACpB,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM,IAC1B,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE;YACrC,uDAAuD;YACvD,cAAc,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;YAC5B,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC,CACE,CACP,CAAC;KACH;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport clsx from 'clsx';\nimport InternalCheckbox from '../checkbox/internal';\nimport InternalColumnLayout from '../column-layout/internal';\nimport InternalFormField from '../form-field/internal';\nimport InternalRadioGroup from '../radio-group/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { useInternalI18n } from '../i18n/context';\n\nexport const copyPreferences = ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n contentDisplay,\n stickyColumns,\n custom,\n}: CollectionPreferencesProps.Preferences): CollectionPreferencesProps.Preferences => ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n contentDisplay,\n stickyColumns,\n custom,\n});\n\ntype CopyPreferenceName = keyof CollectionPreferencesProps.Preferences;\n\nexport const mergePreferences = (\n newPref: CollectionPreferencesProps.Preferences,\n oldPref: CollectionPreferencesProps.Preferences\n): CollectionPreferencesProps.Preferences => {\n const newObj = { ...oldPref };\n const prefNames: CopyPreferenceName[] = [\n 'pageSize',\n 'wrapLines',\n 'stripedRows',\n 'contentDensity',\n 'visibleContent',\n 'custom',\n 'contentDisplay',\n 'stickyColumns',\n ];\n for (const prefName of prefNames) {\n if (newPref[prefName] !== undefined) {\n newObj[prefName] = newPref[prefName];\n }\n }\n return newObj;\n};\n\ninterface ModalContentLayoutProps {\n left: React.ReactNode;\n right: React.ReactNode;\n}\n\nexport const ModalContentLayout = ({ left, right }: ModalContentLayoutProps) => {\n const [breakpoint, ref] = useContainerBreakpoints(['xs']);\n const smallContainer = breakpoint === 'default';\n\n if (smallContainer) {\n return (\n <div ref={ref}>\n {left && <div>{left}</div>}\n {right && <div className={clsx(left && styles['second-column-small'])}>{right}</div>}\n </div>\n );\n }\n\n const columns = left && right ? 2 : 1;\n return (\n <div ref={ref}>\n <InternalColumnLayout columns={columns} variant=\"text-grid\">\n {left && <div>{left}</div>}\n {right && <div>{right}</div>}\n </InternalColumnLayout>\n </div>\n );\n};\n\ninterface PageSizePreferenceProps extends CollectionPreferencesProps.PageSizePreference {\n onChange: (value: number) => void;\n value?: number;\n}\n\nexport const PageSizePreference = ({ title, options, value, onChange }: PageSizePreferenceProps) => {\n const i18n = useInternalI18n('collection-preferences');\n return (\n <div className={styles['page-size']}>\n <InternalFormField\n label={i18n('pageSizePreference.title', title)}\n stretch={true}\n className={styles['page-size-form-field']}\n >\n <InternalRadioGroup\n className={styles['page-size-radio-group']}\n value={`${value}`}\n items={options.map(({ label, value }) => ({ label, value: `${value}` }))}\n onChange={({ detail }) => onChange(parseInt(detail.value, 10))}\n />\n </InternalFormField>\n </div>\n );\n};\n\ninterface WrapLinesPreferenceProps extends CollectionPreferencesProps.WrapLinesPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport const WrapLinesPreference = ({ label, description, value, onChange }: WrapLinesPreferenceProps) => {\n const i18n = useInternalI18n('collection-preferences');\n return (\n <InternalCheckbox\n checked={!!value}\n description={i18n('wrapLinesPreference.description', description)}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['wrap-lines']}\n >\n {i18n('wrapLinesPreference.label', label)}\n </InternalCheckbox>\n );\n};\n\ninterface StripedRowsPreferenceProps extends CollectionPreferencesProps.StripedRowsPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport function StripedRowsPreference({ label, description, value, onChange }: StripedRowsPreferenceProps) {\n const i18n = useInternalI18n('collection-preferences');\n return (\n <InternalCheckbox\n checked={!!value}\n description={i18n('stripedRowsPreference.description', description)}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['striped-rows']}\n >\n {i18n('stripedRowsPreference.label', label)}\n </InternalCheckbox>\n );\n}\n\ninterface ContentDensityPreferenceProps extends CollectionPreferencesProps.ContentDensityPreference {\n onChange: (value: 'comfortable' | 'compact') => void;\n value?: 'comfortable' | 'compact';\n}\n\nexport const ContentDensityPreference = ({ label, description, value, onChange }: ContentDensityPreferenceProps) => {\n const i18n = useInternalI18n('collection-preferences');\n return (\n <InternalCheckbox\n checked={value === 'compact'}\n description={i18n('contentDensityPreference.description', description)}\n onChange={({ detail }) => onChange(detail.checked ? 'compact' : 'comfortable')}\n className={styles['content-density']}\n >\n {i18n('contentDensityPreference.label', label)}\n </InternalCheckbox>\n );\n};\n\ninterface StickyColumnsPreferenceProps extends CollectionPreferencesProps.StickyColumnsPreference {\n onChange: (value?: { first?: number; last?: number }) => void;\n value?: { first?: number; last?: number };\n}\ninterface StickyPreference extends CollectionPreferencesProps.StickyColumnsPreference {\n onChange: (value: number) => void;\n preference: {\n title: string;\n description: string;\n options: ReadonlyArray<{\n label: string;\n value: number;\n }>;\n };\n value?: number;\n firstOrLast: 'first' | 'last';\n}\n\nconst StickyPreference = ({ firstOrLast, preference, value, onChange }: StickyPreference) => {\n const { title, description, options } = preference;\n return (\n <div className={styles[`sticky-columns-${firstOrLast}`]}>\n <InternalFormField className={styles['sticky-columns-form-field']} label={title} description={description}>\n <InternalRadioGroup\n className={styles['sticky-columns-radio-group']}\n value={typeof value !== 'undefined' ? `${value}` : null}\n items={options.map(({ label, value }) => ({ label, value: `${value}` }))}\n onChange={({ detail }) => onChange(Number(detail.value))}\n />\n </InternalFormField>\n </div>\n );\n};\n\nexport const StickyColumnsPreference = ({\n firstColumns,\n lastColumns,\n onChange,\n value,\n}: StickyColumnsPreferenceProps) => {\n return (\n <InternalSpaceBetween className={styles['sticky-columns']} size=\"l\">\n {firstColumns && (\n <StickyPreference\n firstOrLast=\"first\"\n preference={firstColumns}\n value={value?.first}\n onChange={newValue => onChange({ ...value, first: newValue })}\n />\n )}\n {lastColumns && (\n <StickyPreference\n firstOrLast=\"last\"\n preference={lastColumns}\n value={value?.last}\n onChange={newValue => onChange({ ...value, last: newValue })}\n />\n )}\n </InternalSpaceBetween>\n );\n};\n\ninterface CustomPreferenceProps<T = any> extends Pick<CollectionPreferencesProps<T>, 'customPreference'> {\n onChange: (value: T) => void;\n value: T;\n}\nexport const CustomPreference = ({ value, customPreference, onChange }: CustomPreferenceProps) => {\n const [customState, setCustomState] = useState(value);\n if (customPreference) {\n return (\n <div className={styles.custom}>\n {customPreference(customState, value => {\n // prevent value to be treated as a functional callback\n setCustomState(() => value);\n onChange(value);\n })}\n </div>\n );\n }\n return null;\n};\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/collection-preferences/utils.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AACzD,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,QAAQ,EACR,SAAS,EACT,WAAW,EACX,cAAc,EACd,cAAc,E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AAI,CACf,oBAAC,gBAAgB,IACf,WAAW,EAAC,OAAO,EACnB,UAAU,EAAE,YAAY,EACxB,KAAK,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,EACnB,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,iCAAM,KAAK,KAAE,KAAK,EAAE,QAAQ,IAAG,GAC7D,CACH;QACA,WAAW,IAAI,CACd,oBAAC,gBAAgB,IACf,WAAW,EAAC,MAAM,EAClB,UAAU,EAAE,WAAW,EACvB,KAAK,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAClB,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,iCAAM,KAAK,KAAE,IAAI,EAAE,QAAQ,IAAG,GAC5D,CACH,CACoB,CACxB,CAAC;AACJ,CAAC,CAAC;AAMF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAyB,EAAE,EAAE;IAC/F,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,IAAI,gBAAgB,EAAE;QACpB,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM,IAC1B,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE;YACrC,uDAAuD;YACvD,cAAc,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;YAC5B,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC,CACE,CACP,CAAC;KACH;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport clsx from 'clsx';\nimport InternalCheckbox from '../checkbox/internal';\nimport InternalColumnLayout from '../column-layout/internal';\nimport InternalFormField from '../form-field/internal';\nimport InternalRadioGroup from '../radio-group/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { useInternalI18n } from '../i18n/context';\n\nexport const copyPreferences = ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n contentDisplay,\n stickyColumns,\n custom,\n}: CollectionPreferencesProps.Preferences): CollectionPreferencesProps.Preferences => ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n contentDisplay,\n stickyColumns,\n custom,\n});\n\ntype CopyPreferenceName = keyof CollectionPreferencesProps.Preferences;\n\nexport const mergePreferences = (\n newPref: CollectionPreferencesProps.Preferences,\n oldPref: CollectionPreferencesProps.Preferences\n): CollectionPreferencesProps.Preferences => {\n const newObj = { ...oldPref };\n const prefNames: CopyPreferenceName[] = [\n 'pageSize',\n 'wrapLines',\n 'stripedRows',\n 'contentDensity',\n 'visibleContent',\n 'custom',\n 'contentDisplay',\n 'stickyColumns',\n ];\n for (const prefName of prefNames) {\n if (newPref[prefName] !== undefined) {\n newObj[prefName] = newPref[prefName];\n }\n }\n return newObj;\n};\n\ninterface ModalContentLayoutProps {\n left: React.ReactNode;\n right: React.ReactNode;\n}\n\nexport const ModalContentLayout = ({ left, right }: ModalContentLayoutProps) => {\n const [breakpoint, ref] = useContainerBreakpoints(['xs']);\n const smallContainer = breakpoint === 'default';\n\n if (smallContainer) {\n return (\n <div ref={ref}>\n {left && <div>{left}</div>}\n {right && <div className={clsx(left && styles['second-column-small'])}>{right}</div>}\n </div>\n );\n }\n\n const columns = left && right ? 2 : 1;\n return (\n <div ref={ref}>\n <InternalColumnLayout columns={columns} variant=\"text-grid\">\n {left && <div>{left}</div>}\n {right && <div>{right}</div>}\n </InternalColumnLayout>\n </div>\n );\n};\n\ninterface PageSizePreferenceProps extends CollectionPreferencesProps.PageSizePreference {\n onChange: (value: number) => void;\n value?: number;\n}\n\nexport const PageSizePreference = ({ title, options, value, onChange }: PageSizePreferenceProps) => {\n const i18n = useInternalI18n('collection-preferences');\n return (\n <div className={styles['page-size']}>\n <InternalFormField\n label={i18n('pageSizePreference.title', title)}\n stretch={true}\n className={styles['page-size-form-field']}\n >\n <InternalRadioGroup\n className={styles['page-size-radio-group']}\n value={`${value}`}\n items={options.map(({ label, value }) => ({ label, value: `${value}` }))}\n onChange={({ detail }) => onChange(parseInt(detail.value, 10))}\n />\n </InternalFormField>\n </div>\n );\n};\n\ninterface WrapLinesPreferenceProps extends CollectionPreferencesProps.WrapLinesPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport const WrapLinesPreference = ({ label, description, value, onChange }: WrapLinesPreferenceProps) => {\n const i18n = useInternalI18n('collection-preferences');\n return (\n <InternalCheckbox\n checked={!!value}\n description={i18n('wrapLinesPreference.description', description)}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['wrap-lines']}\n >\n {i18n('wrapLinesPreference.label', label)}\n </InternalCheckbox>\n );\n};\n\ninterface StripedRowsPreferenceProps extends CollectionPreferencesProps.StripedRowsPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport function StripedRowsPreference({ label, description, value, onChange }: StripedRowsPreferenceProps) {\n const i18n = useInternalI18n('collection-preferences');\n return (\n <InternalCheckbox\n checked={!!value}\n description={i18n('stripedRowsPreference.description', description)}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['striped-rows']}\n >\n {i18n('stripedRowsPreference.label', label)}\n </InternalCheckbox>\n );\n}\n\ninterface ContentDensityPreferenceProps extends CollectionPreferencesProps.ContentDensityPreference {\n onChange: (value: 'comfortable' | 'compact') => void;\n value?: 'comfortable' | 'compact';\n}\n\nexport const ContentDensityPreference = ({ label, description, value, onChange }: ContentDensityPreferenceProps) => {\n const i18n = useInternalI18n('collection-preferences');\n return (\n <InternalCheckbox\n checked={value === 'compact'}\n description={i18n('contentDensityPreference.description', description)}\n onChange={({ detail }) => onChange(detail.checked ? 'compact' : 'comfortable')}\n className={styles['content-density']}\n >\n {i18n('contentDensityPreference.label', label)}\n </InternalCheckbox>\n );\n};\n\ninterface StickyColumnsPreferenceProps extends CollectionPreferencesProps.StickyColumnsPreference {\n onChange: (value?: { first?: number; last?: number }) => void;\n value?: { first?: number; last?: number };\n}\ninterface StickyPreference extends CollectionPreferencesProps.StickyColumnsPreference {\n onChange: (value: number) => void;\n preference: {\n title: string;\n description: string;\n options: ReadonlyArray<{\n label: string;\n value: number;\n }>;\n };\n value?: number;\n firstOrLast: 'first' | 'last';\n}\n\nconst StickyPreference = ({ firstOrLast, preference, value, onChange }: StickyPreference) => {\n const { title, description, options } = preference;\n return (\n <div className={styles[`sticky-columns-${firstOrLast}`]}>\n <InternalFormField className={styles['sticky-columns-form-field']} label={title} description={description}>\n <InternalRadioGroup\n className={styles['sticky-columns-radio-group']}\n value={typeof value !== 'undefined' ? `${value}` : null}\n items={options.map(({ label, value }) => ({ label, value: `${value}` }))}\n onChange={({ detail }) => onChange(Number(detail.value))}\n />\n </InternalFormField>\n </div>\n );\n};\n\nexport const StickyColumnsPreference = ({\n firstColumns,\n lastColumns,\n onChange,\n value,\n}: StickyColumnsPreferenceProps) => {\n return (\n <InternalSpaceBetween className={styles['sticky-columns']} size=\"l\">\n {firstColumns && (\n <StickyPreference\n firstOrLast=\"first\"\n preference={firstColumns}\n value={value?.first}\n onChange={newValue => onChange({ ...value, first: newValue })}\n />\n )}\n {lastColumns && (\n <StickyPreference\n firstOrLast=\"last\"\n preference={lastColumns}\n value={value?.last}\n onChange={newValue => onChange({ ...value, last: newValue })}\n />\n )}\n </InternalSpaceBetween>\n );\n};\n\ninterface CustomPreferenceProps<T = any> extends Pick<CollectionPreferencesProps<T>, 'customPreference'> {\n onChange: (value: T) => void;\n value: T;\n}\nexport const CustomPreference = ({ value, customPreference, onChange }: CustomPreferenceProps) => {\n const [customState, setCustomState] = useState(value);\n if (customPreference) {\n return (\n <div className={styles.custom}>\n {customPreference(customState, value => {\n // prevent value to be treated as a functional callback\n setCustomState(() => value);\n onChange(value);\n })}\n </div>\n );\n }\n return null;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"visible-content.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/visible-content.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAY1D,UAAU,6BAA8B,SAAQ,0BAA0B,CAAC,wBAAwB;IACjG,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACjD,KAAK,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,KAAK,EACL,OAAO,EACP,KAAU,EACV,QAAQ,GACT,EAAE,6BAA6B,eAuE/B"}
1
+ {"version":3,"file":"visible-content.d.ts","sourceRoot":"","sources":["../../../src/collection-preferences/visible-content.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAY1D,UAAU,6BAA8B,SAAQ,0BAA0B,CAAC,wBAAwB;IACjG,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACjD,KAAK,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,KAAK,EACL,OAAO,EACP,KAAU,EACV,QAAQ,GACT,EAAE,6BAA6B,eAuE/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"visible-content.js","sourceRoot":"lib/default/","sources":["collection-preferences/visible-content.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,cAAc,MAAM,oBAAoB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,EAAE;gBAEvD,6CAAS,SAAS,CAAC,aAAa,CAAC,IAAE,EAAE,EAAE,YAAY,KAChD,WAAW,CAAC,KAAK,CACd;gBACN,iCACG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,CAC/C,eAAe,CAAC,MAAM,EAAE,gBAAgB,EAAE,WAAW,CAAC,CACvD,CACG,CACF,CACP,CAAC;QACJ,CAAC,CAAC,CACmB,CACnB,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport InternalSpaceBetween from '../space-between/internal';\nimport InternalToggle from '../toggle/internal';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\n\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\n\nconst isVisible = (id: string, visibleIds: ReadonlyArray<string>) => visibleIds.indexOf(id) !== -1;\n\ninterface ClassNameProps {\n className: string;\n}\nconst className = (suffix: string): ClassNameProps => ({\n className: styles[`visible-content-${suffix}`],\n});\n\ninterface VisibleContentPreferenceProps extends CollectionPreferencesProps.VisibleContentPreference {\n onChange: (value: ReadonlyArray<string>) => void;\n value?: ReadonlyArray<string>;\n}\n\nexport default function VisibleContentPreference({\n title,\n options,\n value = [],\n onChange,\n}: VisibleContentPreferenceProps) {\n const idPrefix = useUniqueId('visible-content');\n\n const flatOptionsIds = options.reduce<string[]>(\n (ids, group) => [...ids, ...group.options.reduce<string[]>((groupIds, option) => [...groupIds, option.id], [])],\n []\n );\n\n const onToggle = (id: string) => {\n if (!isVisible(id, value)) {\n onChange(\n [...value, id].sort((firstId, secondId) => flatOptionsIds.indexOf(firstId) - flatOptionsIds.indexOf(secondId))\n );\n } else {\n onChange(value.filter(currentId => currentId !== id));\n }\n };\n\n const selectionOption = (\n option: CollectionPreferencesProps.VisibleContentOption,\n optionGroupIndex: number,\n optionIndex: number\n ) => {\n const labelId = `${idPrefix}-${optionGroupIndex}-${optionIndex}`;\n return (\n <div key={optionIndex} {...className('option')}>\n <label {...className('option-label')} htmlFor={labelId}>\n {option.label}\n </label>\n <div {...className('toggle')}>\n <InternalToggle\n checked={isVisible(option.id, value)}\n onChange={() => onToggle(option.id)}\n disabled={option.editable === false}\n controlId={labelId}\n />\n </div>\n </div>\n );\n };\n\n const outerGroupLabelId = `${idPrefix}-outer`;\n return (\n <div className={styles['visible-content']}>\n <h3 {...className('title')} id={outerGroupLabelId}>\n {title}\n </h3>\n <InternalSpaceBetween {...className('groups')} size=\"xs\">\n {options.map((optionGroup, optionGroupIndex) => {\n const groupLabelId = `${idPrefix}-${optionGroupIndex}`;\n return (\n <div\n key={optionGroupIndex}\n {...className('group')}\n role=\"group\"\n aria-labelledby={`${outerGroupLabelId} ${groupLabelId}`}\n >\n <div {...className('group-label')} id={groupLabelId}>\n {optionGroup.label}\n </div>\n <div>\n {optionGroup.options.map((option, optionIndex) =>\n selectionOption(option, optionGroupIndex, optionIndex)\n )}\n </div>\n </div>\n );\n })}\n </InternalSpaceBetween>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"visible-content.js","sourceRoot":"","sources":["../../../src/collection-preferences/visible-content.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAG9D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,SAAS,GAAG,CAAC,EAAU,EAAE,UAAiC,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AAKnG,MAAM,SAAS,GAAG,CAAC,MAAc,EAAkB,EAAE,CAAC,CAAC;IACrD,SAAS,EAAE,MAAM,C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,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport InternalSpaceBetween from '../space-between/internal';\nimport InternalToggle from '../toggle/internal';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\n\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\n\nconst isVisible = (id: string, visibleIds: ReadonlyArray<string>) => visibleIds.indexOf(id) !== -1;\n\ninterface ClassNameProps {\n className: string;\n}\nconst className = (suffix: string): ClassNameProps => ({\n className: styles[`visible-content-${suffix}`],\n});\n\ninterface VisibleContentPreferenceProps extends CollectionPreferencesProps.VisibleContentPreference {\n onChange: (value: ReadonlyArray<string>) => void;\n value?: ReadonlyArray<string>;\n}\n\nexport default function VisibleContentPreference({\n title,\n options,\n value = [],\n onChange,\n}: VisibleContentPreferenceProps) {\n const idPrefix = useUniqueId('visible-content');\n\n const flatOptionsIds = options.reduce<string[]>(\n (ids, group) => [...ids, ...group.options.reduce<string[]>((groupIds, option) => [...groupIds, option.id], [])],\n []\n );\n\n const onToggle = (id: string) => {\n if (!isVisible(id, value)) {\n onChange(\n [...value, id].sort((firstId, secondId) => flatOptionsIds.indexOf(firstId) - flatOptionsIds.indexOf(secondId))\n );\n } else {\n onChange(value.filter(currentId => currentId !== id));\n }\n };\n\n const selectionOption = (\n option: CollectionPreferencesProps.VisibleContentOption,\n optionGroupIndex: number,\n optionIndex: number\n ) => {\n const labelId = `${idPrefix}-${optionGroupIndex}-${optionIndex}`;\n return (\n <div key={optionIndex} {...className('option')}>\n <label {...className('option-label')} htmlFor={labelId}>\n {option.label}\n </label>\n <div {...className('toggle')}>\n <InternalToggle\n checked={isVisible(option.id, value)}\n onChange={() => onToggle(option.id)}\n disabled={option.editable === false}\n controlId={labelId}\n />\n </div>\n </div>\n );\n };\n\n const outerGroupLabelId = `${idPrefix}-outer`;\n return (\n <div className={styles['visible-content']}>\n <h3 {...className('title')} id={outerGroupLabelId}>\n {title}\n </h3>\n <InternalSpaceBetween {...className('groups')} size=\"xs\">\n {options.map((optionGroup, optionGroupIndex) => {\n const groupLabelId = `${idPrefix}-${optionGroupIndex}`;\n return (\n <div\n key={optionGroupIndex}\n {...className('group')}\n role=\"group\"\n aria-labelledby={`${outerGroupLabelId} ${groupLabelId}`}\n >\n <div {...className('group-label')} id={groupLabelId}>\n {optionGroup.label}\n </div>\n <div>\n {optionGroup.options.map((option, optionIndex) =>\n selectionOption(option, optionGroupIndex, optionIndex)\n )}\n </div>\n </div>\n );\n })}\n </InternalSpaceBetween>\n </div>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["column-layout/flexible-column-layout/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAM1D,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,cAAc,EAAE,MAAM,GAAG,IAAI,GAC5B,MAAM,CAaR;AAED,UAAU,yBACR,SAAQ,IAAI,CAAC,yBAAyB,EAAE,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,gBAAgB,CAAC;IAChH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,OAAW,EACX,cAAkB,EAClB,cAAc,EACd,OAAO,EACP,QAAQ,GACT,EAAE,yBAAyB,eAoC3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/column-layout/flexible-column-layout/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAM1D,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,cAAc,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Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\nimport flattenChildren from 'react-keyed-flatten-children';\nimport { InternalColumnLayoutProps } from '../interfaces';\nimport styles from './styles.css.js';\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\n\nconst isOdd = (value: number): boolean => value % 2 !== 0;\n\nexport function calculcateCssColumnCount(\n columns: number,\n minColumnWidth: number,\n containerWidth: number | null\n): number {\n if (!containerWidth) {\n return columns;\n }\n\n // First, calculate how many columns we can have based on the current container width and minColumnWidth.\n const targetColumnCount = Math.min(columns, Math.floor(containerWidth / minColumnWidth));\n\n // When we start wrapping into fewer columns than desired, we want to keep the number of columns even.\n return Math.max(\n 1,\n targetColumnCount < columns && isOdd(targetColumnCount) ? targetColumnCount - 1 : targetColumnCount\n );\n}\n\ninterface FlexibleColumnLayoutProps\n extends Pick<InternalColumnLayoutProps, 'minColumnWidth' | 'columns' | 'variant' | 'borders' | 'disableGutters'> {\n children: React.ReactNode;\n}\n\nexport default function FlexibleColumnLayout({\n columns = 1,\n minColumnWidth = 0,\n disableGutters,\n variant,\n children,\n}: FlexibleColumnLayoutProps) {\n const [containerWidth, containerRef] = useContainerQuery(rect => rect.contentBoxWidth);\n\n const columnCount = calculcateCssColumnCount(columns, minColumnWidth, containerWidth);\n const shouldDisableGutters = variant !== 'text-grid' && disableGutters;\n\n // Flattening the children allows us to \"see through\" React Fragments and nested arrays.\n const flattenedChildren = flattenChildren(children);\n\n return (\n <div\n ref={containerRef}\n className={clsx(\n styles['css-grid'],\n styles[`grid-variant-${variant}`],\n shouldDisableGutters && [styles['grid-no-gutters']]\n )}\n style={{ gridTemplateColumns: `repeat(${columnCount}, 1fr)` }}\n >\n {flattenedChildren.map((child, i) => {\n // If this react child is a primitive value, the key will be undefined\n const key = (child as Record<'key', unknown>).key;\n\n return (\n <div\n key={key ? String(key) : undefined}\n className={clsx(styles.item, {\n [styles['first-column']]: i % columnCount === 0,\n })}\n >\n {child}\n </div>\n );\n })}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/column-layout/flexible-column-layout/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAE3D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,MAAM,KAAK,GAAG,CAAC,KAAa,EAAW,EAAE,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;AAE1D,MAAM,UAAU,wBAAwB,CACtC,OAAe,EACf,cAAsB,EACtB,cAA6B;IAE7B,IAAI,CAAC,cAAc,EAAE;QACnB,OAAO,OAAO,CAAC;KAChB;IAED,yGAAyG;IACzG,MAAM,iBAAiB,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,GAAG,cAAc,CAAC,CAAC,CAAC;IAEzF,sGAAsG;IACtG,OAAO,IAAI,CAAC,GAAG,CACb,CAAC,EACD,iBAAiB,GAAG,OAAO,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB,CACpG,CAAC;AACJ,CAAC;AAOD,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,OAAO,GAAG,CAAC,EACX,cAAc,GAAG,CAAC,EAClB,cAAc,EACd,OAAO,EACP,QAAQ,GACkB;IAC1B,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,GAAG,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAEvF,MAAM,WAAW,GAAG,wBAAwB,CAAC,OAAO,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC;IACtF,MAAM,oBAAoB,GAAG,OAAO,KAAK,WAAW,IAAI,cAAc,CAAC;IAEvE,wFAAwF;IACxF,MAAM,iBAAiB,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAEpD,OAAO,CACL,6BACE,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,UAAU,CAAC,EAClB,MAAM,CAAC,gBAAgB,OAAO,EAAE,CAAC,EACjC,oBAAoB,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CACpD,EACD,KAAK,EAAE,EAAE,mBAAmB,EAAE,UAAU,WAAW,QAAQ,EAAE,IAE5D,iBAAiB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;QAClC,sEAAsE;QACtE,MAAM,GAAG,GAAI,KAAgC,CAAC,GAAG,CAAC;QAElD,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,EAClC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;gBAC3B,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,GAAG,WAAW,KAAK,CAAC;aAChD,CAAC,IAED,KAAK,CACF,CACP,CAAC;IACJ,CAAC,CAAC,CACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\nimport flattenChildren from 'react-keyed-flatten-children';\nimport { InternalColumnLayoutProps } from '../interfaces';\nimport styles from './styles.css.js';\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\n\nconst isOdd = (value: number): boolean => value % 2 !== 0;\n\nexport function calculcateCssColumnCount(\n columns: number,\n minColumnWidth: number,\n containerWidth: number | null\n): number {\n if (!containerWidth) {\n return columns;\n }\n\n // First, calculate how many columns we can have based on the current container width and minColumnWidth.\n const targetColumnCount = Math.min(columns, Math.floor(containerWidth / minColumnWidth));\n\n // When we start wrapping into fewer columns than desired, we want to keep the number of columns even.\n return Math.max(\n 1,\n targetColumnCount < columns && isOdd(targetColumnCount) ? targetColumnCount - 1 : targetColumnCount\n );\n}\n\ninterface FlexibleColumnLayoutProps\n extends Pick<InternalColumnLayoutProps, 'minColumnWidth' | 'columns' | 'variant' | 'borders' | 'disableGutters'> {\n children: React.ReactNode;\n}\n\nexport default function FlexibleColumnLayout({\n columns = 1,\n minColumnWidth = 0,\n disableGutters,\n variant,\n children,\n}: FlexibleColumnLayoutProps) {\n const [containerWidth, containerRef] = useContainerQuery(rect => rect.contentBoxWidth);\n\n const columnCount = calculcateCssColumnCount(columns, minColumnWidth, containerWidth);\n const shouldDisableGutters = variant !== 'text-grid' && disableGutters;\n\n // Flattening the children allows us to \"see through\" React Fragments and nested arrays.\n const flattenedChildren = flattenChildren(children);\n\n return (\n <div\n ref={containerRef}\n className={clsx(\n styles['css-grid'],\n styles[`grid-variant-${variant}`],\n shouldDisableGutters && [styles['grid-no-gutters']]\n )}\n style={{ gridTemplateColumns: `repeat(${columnCount}, 1fr)` }}\n >\n {flattenedChildren.map((child, i) => {\n // If this react child is a primitive value, the key will be undefined\n const key = (child as Record<'key', unknown>).key;\n\n return (\n <div\n key={key ? String(key) : undefined}\n className={clsx(styles.item, {\n [styles['first-column']]: i % columnCount === 0,\n })}\n >\n {child}\n </div>\n );\n })}\n </div>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"grid-column-layout.d.ts","sourceRoot":"lib/default/","sources":["column-layout/grid-column-layout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAmB,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAUrE,UAAU,qBACR,SAAQ,QAAQ,CAAC,IAAI,CAAC,yBAAyB,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,gBAAgB,CAAC,CAAC;IACvG,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,OAAO,EACP,OAAO,EACP,OAAO,EACP,cAAc,EACd,YAAY,EACZ,QAAQ,GACT,EAAE,qBAAqB,eA2BvB"}
1
+ {"version":3,"file":"grid-column-layout.d.ts","sourceRoot":"","sources":["../../../src/column-layout/grid-column-layout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAmB,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAUrE,UAAU,qBACR,SAAQ,QAAQ,CAAC,IAAI,CAAC,yBAAyB,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,gBAAgB,CAAC,CAAC;IACvG,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,OAAO,EACP,OAAO,EACP,OAAO,EACP,cAAc,EACd,YAAY,EACZ,QAAQ,GACT,EAAE,qBAAqB,eA2BvB"}