@oracle/oraclejet-preact 18.1.5 → 18.1.6

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 (1758) hide show
  1. package/amd/BarChart-0ad4ca6d.js +2 -0
  2. package/amd/BarChart-0ad4ca6d.js.map +1 -0
  3. package/amd/BaseButton-c86afd54.js +2 -0
  4. package/amd/BaseButton-c86afd54.js.map +1 -0
  5. package/amd/BaseCardView-a1c5a21d.js +2 -0
  6. package/amd/BaseCardView-a1c5a21d.js.map +1 -0
  7. package/amd/BaseCardViewSelectionTest-36a03079.js +2 -0
  8. package/amd/BaseCardViewSelectionTest-36a03079.js.map +1 -0
  9. package/amd/BaseRichSelection-33a97275.js +2 -0
  10. package/amd/BaseRichSelection-33a97275.js.map +1 -0
  11. package/amd/Button-cb88d20f.js +2 -0
  12. package/amd/Button-cb88d20f.js.map +1 -0
  13. package/amd/ButtonSetButton-819e99a8.js +2 -0
  14. package/amd/ButtonSetButton-819e99a8.js.map +1 -0
  15. package/amd/ButtonSetIconButton-9f171b1e.js +2 -0
  16. package/amd/ButtonSetIconButton-9f171b1e.js.map +1 -0
  17. package/amd/ButtonSetItem-8a51cd2a.js +2 -0
  18. package/amd/ButtonSetItem-8a51cd2a.js.map +1 -0
  19. package/amd/CardFlexView-f7fdfac8.js +2 -0
  20. package/amd/CardFlexView-f7fdfac8.js.map +1 -0
  21. package/amd/CardGridView-b8a60fae.js +2 -0
  22. package/amd/CardGridView-b8a60fae.js.map +1 -0
  23. package/amd/Chart-79cfc878.js +2 -0
  24. package/amd/Chart-79cfc878.js.map +1 -0
  25. package/amd/Checkbox-49753599.js +2 -0
  26. package/amd/Checkbox-49753599.js.map +1 -0
  27. package/amd/CheckboxControl-c6a380b3.js +2 -0
  28. package/amd/CheckboxControl-c6a380b3.js.map +1 -0
  29. package/amd/CheckboxRadioField-1987c75d.js +2 -0
  30. package/amd/CheckboxRadioField-1987c75d.js.map +1 -0
  31. package/amd/CheckboxSet-05423d28.js +2 -0
  32. package/amd/CheckboxSet-05423d28.js.map +1 -0
  33. package/amd/CheckboxStyles.styles.css +6 -0
  34. package/amd/ClearIcon-d73689cc.js +2 -0
  35. package/amd/ClearIcon-d73689cc.js.map +1 -0
  36. package/amd/ComboChart-72eda15f.js +2 -0
  37. package/amd/ComboChart-72eda15f.js.map +1 -0
  38. package/amd/CompactUserAssistance-3799998f.js +2 -0
  39. package/amd/CompactUserAssistance-3799998f.js.map +1 -0
  40. package/amd/ComponentMessageContainer-cf186eeb.js +2 -0
  41. package/amd/ComponentMessageContainer-cf186eeb.js.map +1 -0
  42. package/amd/ConveyorBeltItem-e3002f4a.js +2 -0
  43. package/amd/ConveyorBeltItem-e3002f4a.js.map +1 -0
  44. package/amd/DatePicker-9115226e.js +2 -0
  45. package/amd/DatePicker-9115226e.js.map +1 -0
  46. package/amd/DatePickerHeader-a0da70a0.js +2 -0
  47. package/amd/DatePickerHeader-a0da70a0.js.map +1 -0
  48. package/amd/Diagram-14fa4924.js +2 -0
  49. package/amd/Diagram-14fa4924.js.map +1 -0
  50. package/amd/Dialog-896c0bfd.js +2 -0
  51. package/amd/Dialog-896c0bfd.js.map +1 -0
  52. package/amd/EmbeddedIconButton-3608bfb4.js +2 -0
  53. package/amd/EmbeddedIconButton-3608bfb4.js.map +1 -0
  54. package/amd/ExpandableList-daabc548.js +2 -0
  55. package/amd/ExpandableList-daabc548.js.map +1 -0
  56. package/amd/Gantt-7265d4ce.js +2 -0
  57. package/amd/Gantt-7265d4ce.js.map +1 -0
  58. package/amd/GroupLoadingIndicator-9fd33355.js +1 -1
  59. package/amd/IconButton-368fba34.js +2 -0
  60. package/amd/IconButton-368fba34.js.map +1 -0
  61. package/amd/IconMenuButton-3f3c2386.js +2 -0
  62. package/amd/IconMenuButton-3f3c2386.js.map +1 -0
  63. package/amd/IconProgressButton-11c44c28.js +2 -0
  64. package/amd/IconProgressButton-11c44c28.js.map +1 -0
  65. package/amd/IconSwitchButton-1a400cdf.js +2 -0
  66. package/amd/IconSwitchButton-1a400cdf.js.map +1 -0
  67. package/amd/IconToggleButton-ea46b246.js +2 -0
  68. package/amd/IconToggleButton-ea46b246.js.map +1 -0
  69. package/amd/Indexer-5df524f2.js +2 -0
  70. package/amd/Indexer-5df524f2.js.map +1 -0
  71. package/amd/InlineUserAssistance-a97e0011.js +2 -0
  72. package/amd/InlineUserAssistance-a97e0011.js.map +1 -0
  73. package/amd/InputDateMask-09989b51.js +2 -0
  74. package/amd/InputDateMask-09989b51.js.map +1 -0
  75. package/amd/InputDatePicker-03bdeb95.js +2 -0
  76. package/amd/InputDatePicker-03bdeb95.js.map +1 -0
  77. package/amd/InputPassword-57a5e072.js +2 -0
  78. package/amd/InputPassword-57a5e072.js.map +1 -0
  79. package/amd/InputText-a72eb1c3.js +2 -0
  80. package/amd/InputText-a72eb1c3.js.map +1 -0
  81. package/amd/Label-41b672b4.js +2 -0
  82. package/amd/Label-41b672b4.js.map +1 -0
  83. package/amd/LineAreaChart-3aff0c1a.js +2 -0
  84. package/amd/LineAreaChart-3aff0c1a.js.map +1 -0
  85. package/amd/Link-1f126248.js +2 -0
  86. package/amd/Link-1f126248.js.map +1 -0
  87. package/amd/LinkVariants.styles.css +2 -1
  88. package/amd/LinkVariants.styles2.css +2 -1
  89. package/amd/List-0da6ee9c.js +2 -0
  90. package/amd/List-0da6ee9c.js.map +1 -0
  91. package/amd/ListView-cdfac903.js +2 -0
  92. package/amd/ListView-cdfac903.js.map +1 -0
  93. package/amd/LoadMoreCollection-a6adbc3f.js +2 -0
  94. package/amd/LoadMoreCollection-a6adbc3f.js.map +1 -0
  95. package/amd/MenuButton-66e5430a.js +2 -0
  96. package/amd/MenuButton-66e5430a.js.map +1 -0
  97. package/amd/Message-d66cc7e9.js +2 -0
  98. package/amd/Message-d66cc7e9.js.map +1 -0
  99. package/amd/MessageToast-19703f73.js +2 -0
  100. package/amd/MessageToast-19703f73.js.map +1 -0
  101. package/amd/MonthView-67179db3.js +2 -0
  102. package/amd/MonthView-67179db3.js.map +1 -0
  103. package/amd/NumberInputText-e2cf1795.js +2 -0
  104. package/amd/NumberInputText-e2cf1795.js.map +1 -0
  105. package/amd/OverflowTabBar-1dd5c327.js +2 -0
  106. package/amd/OverflowTabBar-1dd5c327.js.map +1 -0
  107. package/amd/OverflowTabBarItem-f8128e3d.js +2 -0
  108. package/amd/OverflowTabBarItem-f8128e3d.js.map +1 -0
  109. package/amd/PRIVATE_BaseCardView.js +1 -1
  110. package/amd/PRIVATE_Chart.js +1 -1
  111. package/amd/PRIVATE_CheckboxControl.js +1 -1
  112. package/amd/PRIVATE_CheckboxRadioField.js +1 -1
  113. package/amd/PRIVATE_ClearIcon.js +1 -1
  114. package/amd/PRIVATE_DatePickerHeader.js +1 -1
  115. package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
  116. package/amd/PRIVATE_IconSwitchButton.js +1 -1
  117. package/amd/PRIVATE_List.js +1 -1
  118. package/amd/PRIVATE_LoadMoreCollection.js +1 -1
  119. package/amd/PRIVATE_Message.js +1 -1
  120. package/amd/PRIVATE_MonthView.js +1 -1
  121. package/amd/PRIVATE_MonthYearGridView.js +1 -1
  122. package/amd/PRIVATE_RevealToggleIcon.js +1 -1
  123. package/amd/PRIVATE_RichSelectionCommon.js +1 -1
  124. package/amd/PRIVATE_SelectCommon.js +1 -1
  125. package/amd/PRIVATE_Table.js +1 -1
  126. package/amd/PRIVATE_TimeComponent.js +1 -1
  127. package/amd/PRIVATE_VirtualizedCollection.js +1 -1
  128. package/amd/PictoChart-98b892fb.js +2 -0
  129. package/amd/PictoChart-98b892fb.js.map +1 -0
  130. package/amd/ProgressButton-cd0c21df.js +2 -0
  131. package/amd/ProgressButton-cd0c21df.js.map +1 -0
  132. package/amd/RadioItem-1a02d3dc.js +2 -0
  133. package/amd/RadioItem-1a02d3dc.js.map +1 -0
  134. package/amd/RadioSet-94d12876.js +2 -0
  135. package/amd/RadioSet-94d12876.js.map +1 -0
  136. package/amd/RemovableNavigationListItem-1f69907c.js +2 -0
  137. package/amd/RemovableNavigationListItem-1f69907c.js.map +1 -0
  138. package/amd/RemovableTabBarItem-5c240801.js +2 -0
  139. package/amd/RemovableTabBarItem-5c240801.js.map +1 -0
  140. package/amd/RevealToggleIcon-c22626da.js +2 -0
  141. package/amd/RevealToggleIcon-c22626da.js.map +1 -0
  142. package/amd/ScatterChart-e6f8d49a.js +2 -0
  143. package/amd/ScatterChart-e6f8d49a.js.map +1 -0
  144. package/amd/SelectMultiple-a159ccbf.js +2 -0
  145. package/amd/SelectMultiple-a159ccbf.js.map +1 -0
  146. package/amd/SelectSingle-e3d0d8d2.js +2 -0
  147. package/amd/SelectSingle-e3d0d8d2.js.map +1 -0
  148. package/amd/SplitMenuButton-a2001b04.js +2 -0
  149. package/amd/SplitMenuButton-a2001b04.js.map +1 -0
  150. package/amd/Table-f5ebf3d4.js +2 -0
  151. package/amd/Table-f5ebf3d4.js.map +1 -0
  152. package/amd/TableView-e8cab364.js +2 -0
  153. package/amd/TableView-e8cab364.js.map +1 -0
  154. package/amd/TagCloud-39552a78.js +2 -0
  155. package/amd/TagCloud-39552a78.js.map +1 -0
  156. package/amd/TextArea-0ec1a311.js +2 -0
  157. package/amd/TextArea-0ec1a311.js.map +1 -0
  158. package/amd/TextAreaAutosize-8cac0a54.js +2 -0
  159. package/amd/TextAreaAutosize-8cac0a54.js.map +1 -0
  160. package/amd/Theme-redwood/theme.css +209 -209
  161. package/amd/Theme-stable/theme.css +415 -415
  162. package/amd/TimeComponentCanvas2D-82ebf0c7.js +2 -0
  163. package/amd/TimeComponentCanvas2D-82ebf0c7.js.map +1 -0
  164. package/amd/ToggleButton-f8845804.js +2 -0
  165. package/amd/ToggleButton-f8845804.js.map +1 -0
  166. package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
  167. package/amd/UNSAFE_BarChart.js +1 -1
  168. package/amd/UNSAFE_BaseButton.js +1 -1
  169. package/amd/UNSAFE_Button.js +1 -1
  170. package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  171. package/amd/UNSAFE_ButtonSetButton.js +1 -1
  172. package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
  173. package/amd/UNSAFE_ButtonSetItem.js +1 -1
  174. package/amd/UNSAFE_CardFlexView.js +1 -1
  175. package/amd/UNSAFE_CardGridView.js +1 -1
  176. package/amd/UNSAFE_Checkbox/themes/CheckboxStyles.css.js +1 -1
  177. package/amd/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js +1 -1
  178. package/amd/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js.map +1 -1
  179. package/amd/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js +1 -1
  180. package/amd/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js +1 -1
  181. package/amd/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js.map +1 -1
  182. package/amd/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js +1 -1
  183. package/amd/UNSAFE_Checkbox.js +1 -1
  184. package/amd/UNSAFE_CheckboxItem.js +1 -1
  185. package/amd/UNSAFE_CheckboxItem.js.map +1 -1
  186. package/amd/UNSAFE_CheckboxSet.js +1 -1
  187. package/amd/UNSAFE_CheckboxSet.js.map +1 -1
  188. package/amd/UNSAFE_ComboChart.js +1 -1
  189. package/amd/UNSAFE_ComponentMessage.js +1 -1
  190. package/amd/UNSAFE_ConveyorBelt.js +1 -1
  191. package/amd/UNSAFE_DatePicker.js +1 -1
  192. package/amd/UNSAFE_Diagram.js +1 -1
  193. package/amd/UNSAFE_Dialog.js +1 -1
  194. package/amd/UNSAFE_ExpandableList.js +1 -1
  195. package/amd/UNSAFE_Gantt.js +1 -1
  196. package/amd/UNSAFE_IconButton.js +1 -1
  197. package/amd/UNSAFE_IconMenuButton.js +1 -1
  198. package/amd/UNSAFE_IconProgressButton.js +1 -1
  199. package/amd/UNSAFE_IconToggleButton.js +1 -1
  200. package/amd/UNSAFE_Indexer.js +1 -1
  201. package/amd/UNSAFE_InputDateMask.js +1 -1
  202. package/amd/UNSAFE_InputDatePicker.js +1 -1
  203. package/amd/UNSAFE_InputPassword.js +1 -1
  204. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  205. package/amd/UNSAFE_InputText.js +1 -1
  206. package/amd/UNSAFE_InputTimeMask.js +1 -1
  207. package/amd/UNSAFE_Label.js +1 -1
  208. package/amd/UNSAFE_LabelledLink.js +1 -1
  209. package/amd/UNSAFE_LineAreaChart.js +1 -1
  210. package/amd/UNSAFE_Link/themes/LinkStyles.css.js +1 -1
  211. package/amd/UNSAFE_Link.js +1 -1
  212. package/amd/UNSAFE_ListView.js +1 -1
  213. package/amd/UNSAFE_MenuButton.js +1 -1
  214. package/amd/UNSAFE_MessageBanner.js +1 -1
  215. package/amd/UNSAFE_MessageToast.js +1 -1
  216. package/amd/UNSAFE_NavigationList.js +1 -1
  217. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  218. package/amd/UNSAFE_NumberInputText.js +1 -1
  219. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  220. package/amd/UNSAFE_PictoChart.js +1 -1
  221. package/amd/UNSAFE_ProgressButton.js +1 -1
  222. package/amd/UNSAFE_RadioItem.js +1 -1
  223. package/amd/UNSAFE_RadioSet.js +1 -1
  224. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  225. package/amd/UNSAFE_RichCheckboxSet.js.map +1 -1
  226. package/amd/UNSAFE_RichRadioSet.js +1 -1
  227. package/amd/UNSAFE_RichRadioSet.js.map +1 -1
  228. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  229. package/amd/UNSAFE_RichSelectionItem.js.map +1 -1
  230. package/amd/UNSAFE_ScatterChart.js +1 -1
  231. package/amd/UNSAFE_SelectMultiple.js +1 -1
  232. package/amd/UNSAFE_SelectSingle.js +1 -1
  233. package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
  234. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  235. package/amd/UNSAFE_TabBar.js +1 -1
  236. package/amd/UNSAFE_TabBarCommon.js +1 -1
  237. package/amd/UNSAFE_TabBarMixed.js +1 -1
  238. package/amd/UNSAFE_TableView.js +1 -1
  239. package/amd/UNSAFE_TagCloud.js +1 -1
  240. package/amd/UNSAFE_TextArea.js +1 -1
  241. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  242. package/amd/UNSAFE_ToggleButton.js +1 -1
  243. package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  244. package/amd/UNSAFE_UserAssistance.js +1 -1
  245. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  246. package/amd/VirtualizedCollection-63223f5e.js +2 -0
  247. package/amd/VirtualizedCollection-63223f5e.js.map +1 -0
  248. package/amd/VirtualizedListView-d353d174.js +2 -0
  249. package/amd/VirtualizedListView-d353d174.js.map +1 -0
  250. package/amd/YearsGridView-e645d5de.js +2 -0
  251. package/amd/YearsGridView-e645d5de.js.map +1 -0
  252. package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
  253. package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
  254. package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
  255. package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
  256. package/amd/hooks/UNSAFE_usePressClick.js +1 -1
  257. package/amd/useCellNavigation-4138513e.js +2 -0
  258. package/amd/useCellNavigation-4138513e.js.map +1 -0
  259. package/amd/useChartMarquee-2f7d51c4.js +2 -0
  260. package/amd/useChartMarquee-2f7d51c4.js.map +1 -0
  261. package/amd/usePressClick-b5bf4243.js +2 -0
  262. package/amd/usePressClick-b5bf4243.js.map +1 -0
  263. package/amd/useSelectCommon-380baecd.js +2 -0
  264. package/amd/useSelectCommon-380baecd.js.map +1 -0
  265. package/amd/useSelectDrill-113ae3ae.js +2 -0
  266. package/amd/useSelectDrill-113ae3ae.js.map +1 -0
  267. package/amd/useSelection-80e262f2.js +2 -0
  268. package/amd/useSelection-80e262f2.js.map +1 -0
  269. package/amd/useVisDragModeControls-f187d8b2.js +2 -0
  270. package/amd/useVisDragModeControls-f187d8b2.js.map +1 -0
  271. package/cjs/BarChart-66dbe5be.js +181 -0
  272. package/cjs/BarChart-66dbe5be.js.map +1 -0
  273. package/cjs/BaseButton-590432e4.js +174 -0
  274. package/cjs/BaseButton-590432e4.js.map +1 -0
  275. package/cjs/BaseCardView-5c483f52.js +687 -0
  276. package/cjs/BaseCardView-5c483f52.js.map +1 -0
  277. package/cjs/BaseCardViewSelectionTest-f29b3ecf.js +734 -0
  278. package/cjs/BaseCardViewSelectionTest-f29b3ecf.js.map +1 -0
  279. package/cjs/BaseRichSelection-07d33b2a.js +344 -0
  280. package/cjs/BaseRichSelection-07d33b2a.js.map +1 -0
  281. package/cjs/Button-2427b7df.js +24 -0
  282. package/cjs/Button-2427b7df.js.map +1 -0
  283. package/cjs/ButtonSetButton-a23b6b7d.js +35 -0
  284. package/cjs/ButtonSetButton-a23b6b7d.js.map +1 -0
  285. package/cjs/ButtonSetIconButton-c632a294.js +42 -0
  286. package/cjs/ButtonSetIconButton-c632a294.js.map +1 -0
  287. package/cjs/ButtonSetItem-b260b6a5.js +67 -0
  288. package/cjs/ButtonSetItem-b260b6a5.js.map +1 -0
  289. package/cjs/CardFlexView-385f1b2d.js +29 -0
  290. package/cjs/CardFlexView-385f1b2d.js.map +1 -0
  291. package/cjs/CardGridView-d337b9f4.js +17 -0
  292. package/cjs/CardGridView-d337b9f4.js.map +1 -0
  293. package/cjs/Chart-13ccd345.js +493 -0
  294. package/cjs/Chart-13ccd345.js.map +1 -0
  295. package/cjs/Checkbox-07e4794b.js +106 -0
  296. package/cjs/Checkbox-07e4794b.js.map +1 -0
  297. package/cjs/CheckboxControl-697725cb.js +111 -0
  298. package/cjs/CheckboxControl-697725cb.js.map +1 -0
  299. package/cjs/CheckboxRadioField-1bb0d57d.js +185 -0
  300. package/cjs/CheckboxRadioField-1bb0d57d.js.map +1 -0
  301. package/cjs/CheckboxStyles.styles.css +6 -0
  302. package/cjs/ClearIcon-22a24975.js +23 -0
  303. package/cjs/ClearIcon-22a24975.js.map +1 -0
  304. package/cjs/ComboChart-7188af92.js +174 -0
  305. package/cjs/ComboChart-7188af92.js.map +1 -0
  306. package/cjs/CompactUserAssistance-54247e7e.js +49 -0
  307. package/cjs/CompactUserAssistance-54247e7e.js.map +1 -0
  308. package/cjs/ComponentMessageContainer-f8dc57aa.js +71 -0
  309. package/cjs/ComponentMessageContainer-f8dc57aa.js.map +1 -0
  310. package/cjs/ConveyorBeltItem-324014ba.js +641 -0
  311. package/cjs/ConveyorBeltItem-324014ba.js.map +1 -0
  312. package/cjs/DatePicker-9c362a68.js +566 -0
  313. package/cjs/DatePicker-9c362a68.js.map +1 -0
  314. package/cjs/DatePickerHeader-4223c919.js +46 -0
  315. package/cjs/DatePickerHeader-4223c919.js.map +1 -0
  316. package/cjs/Diagram-151103ac.js +2037 -0
  317. package/cjs/Diagram-151103ac.js.map +1 -0
  318. package/cjs/Dialog-40a1b708.js +346 -0
  319. package/cjs/Dialog-40a1b708.js.map +1 -0
  320. package/cjs/EmbeddedIconButton-f3f6e8f6.js +13 -0
  321. package/cjs/EmbeddedIconButton-f3f6e8f6.js.map +1 -0
  322. package/cjs/ExpandableList-0a0d75b3.js +169 -0
  323. package/cjs/ExpandableList-0a0d75b3.js.map +1 -0
  324. package/cjs/Gantt-aa6f41d6.js +3819 -0
  325. package/cjs/Gantt-aa6f41d6.js.map +1 -0
  326. package/cjs/GroupLoadingIndicator-824d658f.js +1 -1
  327. package/cjs/IconButton-fad4e4b2.js +39 -0
  328. package/cjs/IconButton-fad4e4b2.js.map +1 -0
  329. package/cjs/IconMenuButton-70ef4775.js +58 -0
  330. package/cjs/IconMenuButton-70ef4775.js.map +1 -0
  331. package/cjs/IconProgressButton-b4116a09.js +49 -0
  332. package/cjs/IconProgressButton-b4116a09.js.map +1 -0
  333. package/cjs/IconSwitchButton-2f946274.js +46 -0
  334. package/cjs/IconSwitchButton-2f946274.js.map +1 -0
  335. package/cjs/IconToggleButton-493cf27c.js +45 -0
  336. package/cjs/IconToggleButton-493cf27c.js.map +1 -0
  337. package/cjs/Indexer-a4a2d6b8.js +339 -0
  338. package/cjs/Indexer-a4a2d6b8.js.map +1 -0
  339. package/cjs/InlineUserAssistance-6c6d3250.js +85 -0
  340. package/cjs/InlineUserAssistance-6c6d3250.js.map +1 -0
  341. package/cjs/InputDateMask-d6b1a660.js +1060 -0
  342. package/cjs/InputDateMask-d6b1a660.js.map +1 -0
  343. package/cjs/InputDatePicker-7eb5931a.js +309 -0
  344. package/cjs/InputDatePicker-7eb5931a.js.map +1 -0
  345. package/cjs/InputPassword-e15aa37b.js +157 -0
  346. package/cjs/InputPassword-e15aa37b.js.map +1 -0
  347. package/cjs/InputText-6a6ae7e5.js +199 -0
  348. package/cjs/InputText-6a6ae7e5.js.map +1 -0
  349. package/cjs/Label-c51bd5de.js +85 -0
  350. package/cjs/Label-c51bd5de.js.map +1 -0
  351. package/cjs/LineAreaChart-05a58ac5.js +172 -0
  352. package/cjs/LineAreaChart-05a58ac5.js.map +1 -0
  353. package/cjs/Link-c928d5f1.js +35 -0
  354. package/cjs/Link-c928d5f1.js.map +1 -0
  355. package/cjs/LinkVariants.styles.css +2 -1
  356. package/cjs/LinkVariants.styles2.css +2 -1
  357. package/cjs/List-bad74e43.js +723 -0
  358. package/cjs/List-bad74e43.js.map +1 -0
  359. package/cjs/ListView-80a9c725.js +430 -0
  360. package/cjs/ListView-80a9c725.js.map +1 -0
  361. package/cjs/LoadMoreCollection-73112ff0.js +34 -0
  362. package/cjs/LoadMoreCollection-73112ff0.js.map +1 -0
  363. package/cjs/MenuButton-e6eb6e3e.js +63 -0
  364. package/cjs/MenuButton-e6eb6e3e.js.map +1 -0
  365. package/cjs/Message-20bc90cd.js +208 -0
  366. package/cjs/Message-20bc90cd.js.map +1 -0
  367. package/cjs/MessageToast-c0730ed5.js +243 -0
  368. package/cjs/MessageToast-c0730ed5.js.map +1 -0
  369. package/cjs/MonthView-03da0bd2.js +210 -0
  370. package/cjs/MonthView-03da0bd2.js.map +1 -0
  371. package/cjs/NavigationListItem-0a49d6b5.js +166 -0
  372. package/cjs/NavigationListItem-0a49d6b5.js.map +1 -0
  373. package/cjs/NumberInputText-c58f78da.js +223 -0
  374. package/cjs/NumberInputText-c58f78da.js.map +1 -0
  375. package/cjs/OverflowTabBar-c70fb3bf.js +71 -0
  376. package/cjs/OverflowTabBar-c70fb3bf.js.map +1 -0
  377. package/cjs/OverflowTabBarItem-70484f54.js +88 -0
  378. package/cjs/OverflowTabBarItem-70484f54.js.map +1 -0
  379. package/cjs/PRIVATE_BaseCardView.js +3 -3
  380. package/cjs/PRIVATE_Chart.js +14 -14
  381. package/cjs/PRIVATE_CheckboxControl.js +5 -4
  382. package/cjs/PRIVATE_CheckboxControl.js.map +1 -1
  383. package/cjs/PRIVATE_CheckboxRadioField.js +8 -7
  384. package/cjs/PRIVATE_CheckboxRadioField.js.map +1 -1
  385. package/cjs/PRIVATE_ClearIcon.js +4 -4
  386. package/cjs/PRIVATE_DatePickerHeader.js +5 -5
  387. package/cjs/PRIVATE_EmbeddedIconButton.js +3 -3
  388. package/cjs/PRIVATE_IconSwitchButton.js +3 -3
  389. package/cjs/PRIVATE_List.js +4 -4
  390. package/cjs/PRIVATE_LoadMoreCollection.js +2 -2
  391. package/cjs/PRIVATE_Message.js +4 -4
  392. package/cjs/PRIVATE_MonthView.js +2 -2
  393. package/cjs/PRIVATE_MonthYearGridView.js +2 -2
  394. package/cjs/PRIVATE_RevealToggleIcon.js +4 -4
  395. package/cjs/PRIVATE_RichSelectionCommon.js +8 -7
  396. package/cjs/PRIVATE_RichSelectionCommon.js.map +1 -1
  397. package/cjs/PRIVATE_SelectCommon.js +11 -11
  398. package/cjs/PRIVATE_Table.js +6 -6
  399. package/cjs/PRIVATE_TimeComponent.js +3 -3
  400. package/cjs/PRIVATE_VirtualizedCollection.js +2 -2
  401. package/cjs/PictoChart-fd613c80.js +747 -0
  402. package/cjs/PictoChart-fd613c80.js.map +1 -0
  403. package/cjs/ProgressButton-81474622.js +58 -0
  404. package/cjs/ProgressButton-81474622.js.map +1 -0
  405. package/cjs/RadioItem-3cc743ff.js +115 -0
  406. package/cjs/RadioItem-3cc743ff.js.map +1 -0
  407. package/cjs/RadioSet-f4ee4f80.js +45 -0
  408. package/cjs/RadioSet-f4ee4f80.js.map +1 -0
  409. package/cjs/RemovableNavigationListItem-f3ad6e8e.js +26 -0
  410. package/cjs/RemovableNavigationListItem-f3ad6e8e.js.map +1 -0
  411. package/cjs/RemovableTabBarItem-5c05fa32.js +38 -0
  412. package/cjs/RemovableTabBarItem-5c05fa32.js.map +1 -0
  413. package/cjs/RevealToggleIcon-4ec10dbe.js +28 -0
  414. package/cjs/RevealToggleIcon-4ec10dbe.js.map +1 -0
  415. package/cjs/ScatterChart-9226c20d.js +105 -0
  416. package/cjs/ScatterChart-9226c20d.js.map +1 -0
  417. package/cjs/SelectMultiple-3569988d.js +1299 -0
  418. package/cjs/SelectMultiple-3569988d.js.map +1 -0
  419. package/cjs/SelectSingle-43d6953e.js +732 -0
  420. package/cjs/SelectSingle-43d6953e.js.map +1 -0
  421. package/cjs/SplitMenuButton-9c1b081c.js +141 -0
  422. package/cjs/SplitMenuButton-9c1b081c.js.map +1 -0
  423. package/cjs/Table-6987731e.js +5499 -0
  424. package/cjs/Table-6987731e.js.map +1 -0
  425. package/cjs/TableView-1bed3e0b.js +33 -0
  426. package/cjs/TableView-1bed3e0b.js.map +1 -0
  427. package/cjs/TagCloud-2715c0e8.js +826 -0
  428. package/cjs/TagCloud-2715c0e8.js.map +1 -0
  429. package/cjs/TextArea-d8516f11.js +162 -0
  430. package/cjs/TextArea-d8516f11.js.map +1 -0
  431. package/cjs/TextAreaAutosize-1797d5b7.js +246 -0
  432. package/cjs/TextAreaAutosize-1797d5b7.js.map +1 -0
  433. package/cjs/Theme-redwood/theme.css +157 -157
  434. package/cjs/Theme-stable/theme.css +252 -252
  435. package/cjs/TimeComponentCanvas2D-13c06086.js +591 -0
  436. package/cjs/TimeComponentCanvas2D-13c06086.js.map +1 -0
  437. package/cjs/ToggleButton-c614bbec.js +30 -0
  438. package/cjs/ToggleButton-c614bbec.js.map +1 -0
  439. package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +15 -15
  440. package/cjs/UNSAFE_BarChart.js +15 -15
  441. package/cjs/UNSAFE_BaseButton.js +2 -2
  442. package/cjs/UNSAFE_Button.js +3 -3
  443. package/cjs/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +5 -5
  444. package/cjs/UNSAFE_ButtonSetButton.js +3 -3
  445. package/cjs/UNSAFE_ButtonSetIconButton.js +3 -3
  446. package/cjs/UNSAFE_ButtonSetItem.js +5 -5
  447. package/cjs/UNSAFE_CardFlexView.js +4 -4
  448. package/cjs/UNSAFE_CardGridView.js +4 -4
  449. package/cjs/UNSAFE_Checkbox/themes/CheckboxStyles.css.js +1 -0
  450. package/cjs/UNSAFE_Checkbox/themes/CheckboxStyles.css.js.map +1 -1
  451. package/cjs/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js +1 -0
  452. package/cjs/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js.map +1 -1
  453. package/cjs/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js +1 -0
  454. package/cjs/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js.map +1 -1
  455. package/cjs/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js +1 -0
  456. package/cjs/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js.map +1 -1
  457. package/cjs/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js +1 -0
  458. package/cjs/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js.map +1 -1
  459. package/cjs/UNSAFE_Checkbox.js +8 -7
  460. package/cjs/UNSAFE_Checkbox.js.map +1 -1
  461. package/cjs/UNSAFE_CheckboxItem.js +5 -4
  462. package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
  463. package/cjs/UNSAFE_CheckboxSet.js +8 -7
  464. package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
  465. package/cjs/UNSAFE_ComboChart.js +15 -15
  466. package/cjs/UNSAFE_ComponentMessage.js +4 -4
  467. package/cjs/UNSAFE_ConveyorBelt.js +3 -3
  468. package/cjs/UNSAFE_DatePicker.js +10 -10
  469. package/cjs/UNSAFE_Diagram.js +9 -9
  470. package/cjs/UNSAFE_Dialog.js +4 -4
  471. package/cjs/UNSAFE_ExpandableList.js +7 -7
  472. package/cjs/UNSAFE_Gantt.js +5 -5
  473. package/cjs/UNSAFE_IconButton.js +3 -3
  474. package/cjs/UNSAFE_IconMenuButton.js +3 -3
  475. package/cjs/UNSAFE_IconProgressButton.js +3 -3
  476. package/cjs/UNSAFE_IconToggleButton.js +3 -3
  477. package/cjs/UNSAFE_Indexer.js +2 -2
  478. package/cjs/UNSAFE_InputDateMask.js +8 -8
  479. package/cjs/UNSAFE_InputDatePicker.js +95 -95
  480. package/cjs/UNSAFE_InputPassword.js +11 -11
  481. package/cjs/UNSAFE_InputSensitiveText.js +10 -10
  482. package/cjs/UNSAFE_InputText.js +9 -9
  483. package/cjs/UNSAFE_InputTimeMask.js +7 -7
  484. package/cjs/UNSAFE_Label.js +4 -4
  485. package/cjs/UNSAFE_LabelledLink.js +7 -7
  486. package/cjs/UNSAFE_LineAreaChart.js +15 -15
  487. package/cjs/UNSAFE_Link/themes/LinkStyles.css.js +1 -1
  488. package/cjs/UNSAFE_Link.js +2 -2
  489. package/cjs/UNSAFE_ListView.js +5 -5
  490. package/cjs/UNSAFE_MenuButton.js +3 -3
  491. package/cjs/UNSAFE_MessageBanner.js +4 -4
  492. package/cjs/UNSAFE_MessageToast.js +5 -5
  493. package/cjs/UNSAFE_NavigationList.js +8 -8
  494. package/cjs/UNSAFE_NavigationListCommon.js +4 -4
  495. package/cjs/UNSAFE_NumberInputText.js +8 -8
  496. package/cjs/UNSAFE_OverflowTabBar.js +8 -8
  497. package/cjs/UNSAFE_PictoChart.js +4 -4
  498. package/cjs/UNSAFE_ProgressButton.js +3 -3
  499. package/cjs/UNSAFE_RadioItem.js +4 -4
  500. package/cjs/UNSAFE_RadioSet.js +9 -8
  501. package/cjs/UNSAFE_RadioSet.js.map +1 -1
  502. package/cjs/UNSAFE_RichCheckboxSet.js +8 -7
  503. package/cjs/UNSAFE_RichCheckboxSet.js.map +1 -1
  504. package/cjs/UNSAFE_RichRadioSet.js +8 -7
  505. package/cjs/UNSAFE_RichRadioSet.js.map +1 -1
  506. package/cjs/UNSAFE_ScatterChart.js +15 -15
  507. package/cjs/UNSAFE_SelectMultiple.js +15 -15
  508. package/cjs/UNSAFE_SelectSingle.js +14 -14
  509. package/cjs/UNSAFE_Sheet/__test__/Sheet.spec.js +3 -3
  510. package/cjs/UNSAFE_SplitMenuButton.js +3 -3
  511. package/cjs/UNSAFE_TabBar.js +7 -7
  512. package/cjs/UNSAFE_TabBarCommon.js +7 -7
  513. package/cjs/UNSAFE_TabBarMixed.js +7 -7
  514. package/cjs/UNSAFE_TableView.js +7 -7
  515. package/cjs/UNSAFE_TagCloud.js +4 -4
  516. package/cjs/UNSAFE_TextArea.js +8 -8
  517. package/cjs/UNSAFE_TextAreaAutosize.js +8 -8
  518. package/cjs/UNSAFE_ToggleButton.js +3 -3
  519. package/cjs/UNSAFE_Toolbar/tests/Toolbar.spec.js +5 -5
  520. package/cjs/UNSAFE_UserAssistance.js +6 -6
  521. package/cjs/UNSAFE_VirtualizedListView.js +5 -5
  522. package/cjs/VirtualizedCollection-00aedb8b.js +180 -0
  523. package/cjs/VirtualizedCollection-00aedb8b.js.map +1 -0
  524. package/cjs/VirtualizedListView-ad3219ba.js +16 -0
  525. package/cjs/VirtualizedListView-ad3219ba.js.map +1 -0
  526. package/cjs/YearsGridView-67ce0a3a.js +190 -0
  527. package/cjs/YearsGridView-67ce0a3a.js.map +1 -0
  528. package/cjs/hooks/PRIVATE_useChartEvents.js +4 -4
  529. package/cjs/hooks/PRIVATE_useChartMarquee.js +8 -8
  530. package/cjs/hooks/PRIVATE_useVisDragModeControls.js +7 -7
  531. package/cjs/hooks/PRIVATE_useVisSelection.js +3 -3
  532. package/cjs/hooks/UNSAFE_usePressClick.js +1 -1
  533. package/cjs/useCellNavigation-d503e35f.js +124 -0
  534. package/cjs/useCellNavigation-d503e35f.js.map +1 -0
  535. package/cjs/useChartMarquee-7ffcda9e.js +295 -0
  536. package/cjs/useChartMarquee-7ffcda9e.js.map +1 -0
  537. package/cjs/usePressClick-7a34624a.js +41 -0
  538. package/cjs/usePressClick-7a34624a.js.map +1 -0
  539. package/cjs/useSelectCommon-38a38427.js +709 -0
  540. package/cjs/useSelectCommon-38a38427.js.map +1 -0
  541. package/cjs/useSelectDrill-ad5864fd.js +107 -0
  542. package/cjs/useSelectDrill-ad5864fd.js.map +1 -0
  543. package/cjs/useSelection-8f68a23a.js +188 -0
  544. package/cjs/useSelection-8f68a23a.js.map +1 -0
  545. package/cjs/useVisDragModeControls-d3a7aa57.js +89 -0
  546. package/cjs/useVisDragModeControls-d3a7aa57.js.map +1 -0
  547. package/es/ActionCard-bac27bb9.js +1 -1
  548. package/es/BarChart-43dec3b7.js +179 -0
  549. package/es/BarChart-43dec3b7.js.map +1 -0
  550. package/es/BarGroup-dbf70e2c.js +1 -1
  551. package/es/BaseButton-61f6baa8.js +172 -0
  552. package/es/BaseButton-61f6baa8.js.map +1 -0
  553. package/es/BaseCardView-724422f3.js +7 -7
  554. package/es/BaseCardViewSelectionTest-ef070684.js +721 -0
  555. package/es/BaseCardViewSelectionTest-ef070684.js.map +1 -0
  556. package/es/BaseNavigationListItem-1c75c13f.js +47 -0
  557. package/es/BaseNavigationListItem-1c75c13f.js.map +1 -0
  558. package/es/BaseRichSelection-72edca7c.js +342 -0
  559. package/es/BaseRichSelection-72edca7c.js.map +1 -0
  560. package/es/Button-f90514b2.js +22 -0
  561. package/es/Button-f90514b2.js.map +1 -0
  562. package/es/ButtonSet-9b2c41be.js +2 -2
  563. package/es/ButtonSetButton-974fc462.js +33 -0
  564. package/es/ButtonSetButton-974fc462.js.map +1 -0
  565. package/es/ButtonSetIconButton-0081167a.js +40 -0
  566. package/es/ButtonSetIconButton-0081167a.js.map +1 -0
  567. package/es/ButtonSetItem-eb2d43d4.js +65 -0
  568. package/es/ButtonSetItem-eb2d43d4.js.map +1 -0
  569. package/es/Card-31dc8dc2.js +15 -0
  570. package/es/Card-31dc8dc2.js.map +1 -0
  571. package/es/Center-2be68188.js +16 -0
  572. package/es/Center-2be68188.js.map +1 -0
  573. package/es/Chart-4ec13697.js +491 -0
  574. package/es/Chart-4ec13697.js.map +1 -0
  575. package/es/Checkbox-74259575.js +104 -0
  576. package/es/Checkbox-74259575.js.map +1 -0
  577. package/es/CheckboxControl-c3c34028.js +109 -0
  578. package/es/CheckboxControl-c3c34028.js.map +1 -0
  579. package/es/CheckboxRadioField-294463ba.js +183 -0
  580. package/es/CheckboxRadioField-294463ba.js.map +1 -0
  581. package/es/CheckboxSetContext-1be56556.js +9 -0
  582. package/es/CheckboxSetContext-1be56556.js.map +1 -0
  583. package/es/CheckboxStyles.styles.css +6 -0
  584. package/es/Chip-8fd813ce.js +1 -1
  585. package/es/ClearIcon-acca9670.js +21 -0
  586. package/es/ClearIcon-acca9670.js.map +1 -0
  587. package/es/CollapseIcon-152e59b4.js +1 -1
  588. package/es/Collapsible-4dddc4f7.js +2 -2
  589. package/es/ComboChart-d1c3e17a.js +172 -0
  590. package/es/ComboChart-d1c3e17a.js.map +1 -0
  591. package/es/CompactHelpSource-c3044924.js +2 -2
  592. package/es/CompactLabelAssistance-0d70fceb.js +34 -0
  593. package/es/CompactLabelAssistance-0d70fceb.js.map +1 -0
  594. package/es/CompactUserAssistance-4f0ff3fc.js +47 -0
  595. package/es/CompactUserAssistance-4f0ff3fc.js.map +1 -0
  596. package/es/ComponentMessageContainer-13005c12.js +68 -0
  597. package/es/ComponentMessageContainer-13005c12.js.map +1 -0
  598. package/es/ConveyorBeltItem-53f383e1.js +638 -0
  599. package/es/ConveyorBeltItem-53f383e1.js.map +1 -0
  600. package/es/DatePicker-a57b08b1.js +564 -0
  601. package/es/DatePicker-a57b08b1.js.map +1 -0
  602. package/es/DatePickerHeader-8eee60aa.js +44 -0
  603. package/es/DatePickerHeader-8eee60aa.js.map +1 -0
  604. package/es/Diagram-29d78c10.js +2035 -0
  605. package/es/Diagram-29d78c10.js.map +1 -0
  606. package/es/Dialog-8a9a90a2.js +344 -0
  607. package/es/Dialog-8a9a90a2.js.map +1 -0
  608. package/es/DirectionalCollapseArrowIcon-e1b04846.js +1 -1
  609. package/es/DirectionalExpandArrowIcon-c9218fa7.js +1 -1
  610. package/es/DragHandle-198c3118.js +22 -0
  611. package/es/DragHandle-198c3118.js.map +1 -0
  612. package/es/DrawerPopup-5292bdfc.js +381 -0
  613. package/es/DrawerPopup-5292bdfc.js.map +1 -0
  614. package/es/Dropdown-698afbc6.js +80 -0
  615. package/es/Dropdown-698afbc6.js.map +1 -0
  616. package/es/EmbeddedIconButton-7215a912.js +11 -0
  617. package/es/EmbeddedIconButton-7215a912.js.map +1 -0
  618. package/es/EnvironmentProvider-713d0dec.js +58 -0
  619. package/es/EnvironmentProvider-713d0dec.js.map +1 -0
  620. package/es/ExpandableList-27f4f0d4.js +167 -0
  621. package/es/ExpandableList-27f4f0d4.js.map +1 -0
  622. package/es/FilePicker-c3f06d6f.js +2 -2
  623. package/es/Flex-2d9ebee9.js +30 -0
  624. package/es/Flex-2d9ebee9.js.map +1 -0
  625. package/es/Floating-5191a9e6.js +462 -0
  626. package/es/Floating-5191a9e6.js.map +1 -0
  627. package/es/FormLayout-b2993e0c.js +1 -1
  628. package/es/Gantt-e156bd33.js +3817 -0
  629. package/es/Gantt-e156bd33.js.map +1 -0
  630. package/es/Grid-238d8757.js +27 -0
  631. package/es/Grid-238d8757.js.map +1 -0
  632. package/es/Gridlines-d37f55d2.js +168 -0
  633. package/es/Gridlines-d37f55d2.js.map +1 -0
  634. package/es/GroupLoadingIndicator-93bcf33f.js +1 -1
  635. package/es/HighlightText-fef35694.js +31 -0
  636. package/es/HighlightText-fef35694.js.map +1 -0
  637. package/es/Icon-030b6dd4.js +3 -3
  638. package/es/IconButton-19fcf0a8.js +37 -0
  639. package/es/IconButton-19fcf0a8.js.map +1 -0
  640. package/es/IconMenuButton-4118bde6.js +56 -0
  641. package/es/IconMenuButton-4118bde6.js.map +1 -0
  642. package/es/IconProgressButton-a595c052.js +47 -0
  643. package/es/IconProgressButton-a595c052.js.map +1 -0
  644. package/es/IconSwitchButton-dcafa86c.js +44 -0
  645. package/es/IconSwitchButton-dcafa86c.js.map +1 -0
  646. package/es/IconToggleButton-94cbea2b.js +43 -0
  647. package/es/IconToggleButton-94cbea2b.js.map +1 -0
  648. package/es/IconUserAssistance-d9bc82d4.js +73 -0
  649. package/es/IconUserAssistance-d9bc82d4.js.map +1 -0
  650. package/es/Indexer-18ec7af3.js +4 -4
  651. package/es/InlineHelpSource-5ed4bb7d.js +1 -1
  652. package/es/InlineUserAssistance-65ca8810.js +81 -0
  653. package/es/InlineUserAssistance-65ca8810.js.map +1 -0
  654. package/es/InputDateMask-8258be53.js +1056 -0
  655. package/es/InputDateMask-8258be53.js.map +1 -0
  656. package/es/InputDatePicker-a659ed3a.js +307 -0
  657. package/es/InputDatePicker-a659ed3a.js.map +1 -0
  658. package/es/InputPassword-65336899.js +155 -0
  659. package/es/InputPassword-65336899.js.map +1 -0
  660. package/es/InputText-21591785.js +197 -0
  661. package/es/InputText-21591785.js.map +1 -0
  662. package/es/Label-25eba25e.js +83 -0
  663. package/es/Label-25eba25e.js.map +1 -0
  664. package/es/LabelValueLayout-1db91391.js +1 -1
  665. package/es/Layer-1eb18747.js +91 -0
  666. package/es/Layer-1eb18747.js.map +1 -0
  667. package/es/LayerHost-8b98d97d.js +41 -0
  668. package/es/LayerHost-8b98d97d.js.map +1 -0
  669. package/es/LayerManager-221afe20.js +34 -0
  670. package/es/LayerManager-221afe20.js.map +1 -0
  671. package/es/Legend-0e274097.js +3 -3
  672. package/es/LineAreaChart-6fabda31.js +170 -0
  673. package/es/LineAreaChart-6fabda31.js.map +1 -0
  674. package/es/LineSeries-139bda1a.js +109 -0
  675. package/es/LineSeries-139bda1a.js.map +1 -0
  676. package/es/Link-c7061441.js +33 -0
  677. package/es/Link-c7061441.js.map +1 -0
  678. package/es/LinkVariants.styles.css +2 -1
  679. package/es/LinkVariants.styles2.css +2 -1
  680. package/es/List-58b8d3c9.js +5 -5
  681. package/es/ListItemLayout-af86b17d.js +110 -0
  682. package/es/ListItemLayout-af86b17d.js.map +1 -0
  683. package/es/ListView-be2e2736.js +3 -3
  684. package/es/LiveRegion-c7bf2f21.js +39 -0
  685. package/es/LiveRegion-c7bf2f21.js.map +1 -0
  686. package/es/MaxLengthLiveRegion-d790e55c.js +23 -0
  687. package/es/MaxLengthLiveRegion-d790e55c.js.map +1 -0
  688. package/es/Menu-a5bf756f.js +6 -6
  689. package/es/MenuButton-e012a909.js +61 -0
  690. package/es/MenuButton-e012a909.js.map +1 -0
  691. package/es/MenuItem-54015ca3.js +1 -1
  692. package/es/Message-b0150c6f.js +203 -0
  693. package/es/Message-b0150c6f.js.map +1 -0
  694. package/es/MessageLayer-d9129e22.js +58 -0
  695. package/es/MessageLayer-d9129e22.js.map +1 -0
  696. package/es/MessageToast-933a0339.js +241 -0
  697. package/es/MessageToast-933a0339.js.map +1 -0
  698. package/es/MessagesManager-91ade5dc.js +3 -3
  699. package/es/MeterBar-732e3b2c.js +5 -5
  700. package/es/MeterCircle-2156d7ff.js +5 -5
  701. package/es/Modal-9980f6d1.js +288 -0
  702. package/es/Modal-9980f6d1.js.map +1 -0
  703. package/es/MonthView-d60a5df7.js +208 -0
  704. package/es/MonthView-d60a5df7.js.map +1 -0
  705. package/es/NavigationList-fb05e081.js +159 -0
  706. package/es/NavigationList-fb05e081.js.map +1 -0
  707. package/es/NavigationListItem-193a315a.js +10 -0
  708. package/es/NavigationListItem-193a315a.js.map +1 -0
  709. package/es/NumberInputText-2d1aef12.js +220 -0
  710. package/es/NumberInputText-2d1aef12.js.map +1 -0
  711. package/es/OverflowTabBar-894c7cd9.js +69 -0
  712. package/es/OverflowTabBar-894c7cd9.js.map +1 -0
  713. package/es/OverflowTabBarItem-a578401b.js +87 -0
  714. package/es/OverflowTabBarItem-a578401b.js.map +1 -0
  715. package/es/PRIVATE_BaseCardView.js +21 -21
  716. package/es/PRIVATE_Chart.js +43 -43
  717. package/es/PRIVATE_CheckboxControl.js +28 -27
  718. package/es/PRIVATE_CheckboxControl.js.map +1 -1
  719. package/es/PRIVATE_CheckboxRadioField.js +33 -32
  720. package/es/PRIVATE_CheckboxRadioField.js.map +1 -1
  721. package/es/PRIVATE_ClearIcon.js +21 -21
  722. package/es/PRIVATE_DatePickerHeader.js +23 -23
  723. package/es/PRIVATE_DatePickerLayout.js +4 -4
  724. package/es/PRIVATE_EmbeddedIconButton.js +6 -6
  725. package/es/PRIVATE_FormControls.js +19 -19
  726. package/es/PRIVATE_IconSwitchButton.js +18 -18
  727. package/es/PRIVATE_Icons/CheckboxMixed.js +15 -15
  728. package/es/PRIVATE_Icons/CheckboxOff.js +15 -15
  729. package/es/PRIVATE_Icons/CheckboxOn.js +15 -15
  730. package/es/PRIVATE_Icons/DragV.js +15 -15
  731. package/es/PRIVATE_Icons/WarningS.js +15 -15
  732. package/es/PRIVATE_List.js +19 -19
  733. package/es/PRIVATE_Message.js +22 -22
  734. package/es/PRIVATE_MessageLayer.js +12 -12
  735. package/es/PRIVATE_MonthView.js +8 -8
  736. package/es/PRIVATE_MonthYearGridView.js +8 -8
  737. package/es/PRIVATE_PlotArea.js +4 -4
  738. package/es/PRIVATE_RevealToggleIcon.js +20 -20
  739. package/es/PRIVATE_RichSelectionCommon.js +34 -33
  740. package/es/PRIVATE_RichSelectionCommon.js.map +1 -1
  741. package/es/PRIVATE_SelectCommon.js +35 -35
  742. package/es/PRIVATE_StyledCard.js +4 -4
  743. package/es/PRIVATE_StyledCheckbox.js +15 -15
  744. package/es/PRIVATE_Table.js +28 -28
  745. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +15 -15
  746. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +15 -15
  747. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +15 -15
  748. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +15 -15
  749. package/es/PRIVATE_ThemedIcons/CheckIcon.js +15 -15
  750. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +15 -15
  751. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +15 -15
  752. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +15 -15
  753. package/es/PRIVATE_ThemedIcons/CloseIcon.js +15 -15
  754. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +16 -16
  755. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +15 -15
  756. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +15 -15
  757. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +15 -15
  758. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +16 -16
  759. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +16 -16
  760. package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +15 -15
  761. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +15 -15
  762. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +15 -15
  763. package/es/PRIVATE_ThemedIcons/HelpIcon.js +15 -15
  764. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +15 -15
  765. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +15 -15
  766. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +15 -15
  767. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +15 -15
  768. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +15 -15
  769. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +15 -15
  770. package/es/PRIVATE_ThemedIcons/MinusIcon.js +15 -15
  771. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +15 -15
  772. package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +15 -15
  773. package/es/PRIVATE_ThemedIcons/PlusIcon.js +15 -15
  774. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +15 -15
  775. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +15 -15
  776. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +15 -15
  777. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +15 -15
  778. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +15 -15
  779. package/es/PRIVATE_ThemedIcons/ViewIcon.js +15 -15
  780. package/es/PRIVATE_TimeComponent.js +20 -20
  781. package/es/PRIVATE_VisOverview.js +15 -15
  782. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  783. package/es/PictoChart-9624c62e.js +744 -0
  784. package/es/PictoChart-9624c62e.js.map +1 -0
  785. package/es/PieChart-87a2913f.js +6 -6
  786. package/es/Popup-f6774b40.js +258 -0
  787. package/es/Popup-f6774b40.js.map +1 -0
  788. package/es/ProgressBar-6d816723.js +62 -0
  789. package/es/ProgressBar-6d816723.js.map +1 -0
  790. package/es/ProgressButton-bb52347a.js +56 -0
  791. package/es/ProgressButton-bb52347a.js.map +1 -0
  792. package/es/ProgressButtonLabelLayout-f1d097d6.js +3 -3
  793. package/es/ProgressCircle-bbcf67fd.js +48 -0
  794. package/es/ProgressCircle-bbcf67fd.js.map +1 -0
  795. package/es/RadioItem-81e9e082.js +113 -0
  796. package/es/RadioItem-81e9e082.js.map +1 -0
  797. package/es/RadioSet-d2820846.js +43 -0
  798. package/es/RadioSet-d2820846.js.map +1 -0
  799. package/es/RatingGauge-5e1e75b4.js +8 -8
  800. package/es/ReadonlyTextFieldInput-f407b86c.js +1 -1
  801. package/es/RemovableNavigationListItem-21cd36b7.js +25 -0
  802. package/es/RemovableNavigationListItem-21cd36b7.js.map +1 -0
  803. package/es/RemovableTabBarItem-60574a52.js +36 -0
  804. package/es/RemovableTabBarItem-60574a52.js.map +1 -0
  805. package/es/ReorderableTabBar-c280e7d4.js +77 -0
  806. package/es/ReorderableTabBar-c280e7d4.js.map +1 -0
  807. package/es/RevealToggleIcon-8e650973.js +26 -0
  808. package/es/RevealToggleIcon-8e650973.js.map +1 -0
  809. package/es/ScatterChart-1f818935.js +103 -0
  810. package/es/ScatterChart-1f818935.js.map +1 -0
  811. package/es/SectionalLegend-64670096.js +4 -4
  812. package/es/SectionedContent-48fa242f.js +64 -0
  813. package/es/SectionedContent-48fa242f.js.map +1 -0
  814. package/es/SelectMultiple-c7f9e747.js +1297 -0
  815. package/es/SelectMultiple-c7f9e747.js.map +1 -0
  816. package/es/SelectSingle-75270526.js +730 -0
  817. package/es/SelectSingle-75270526.js.map +1 -0
  818. package/es/SelectionCard-ce3012e8.js +16 -0
  819. package/es/SelectionCard-ce3012e8.js.map +1 -0
  820. package/es/Selector-41618991.js +1 -1
  821. package/es/SelectorAll-27744634.js +69 -0
  822. package/es/SelectorAll-27744634.js.map +1 -0
  823. package/es/Sheet-924cfdab.js +158 -0
  824. package/es/Sheet-924cfdab.js.map +1 -0
  825. package/es/SplitMenuButton-5cb6e8db.js +139 -0
  826. package/es/SplitMenuButton-5cb6e8db.js.map +1 -0
  827. package/es/StyledCard-c8d9836f.js +105 -0
  828. package/es/StyledCard-c8d9836f.js.map +1 -0
  829. package/es/StyledLabelValueLayout-5b9a731a.js +18 -0
  830. package/es/StyledLabelValueLayout-5b9a731a.js.map +1 -0
  831. package/es/StyledTextField-6d6dd43e.js +3 -3
  832. package/es/TabBar-4d7054f7.js +82 -0
  833. package/es/TabBar-4d7054f7.js.map +1 -0
  834. package/es/TabBarItem-b97091e4.js +3 -3
  835. package/es/TabBarLayout-bb3f9f69.js +1 -1
  836. package/es/TabBarMixed-b8e2427c.js +83 -0
  837. package/es/TabBarMixed-b8e2427c.js.map +1 -0
  838. package/es/TabBarMixedSeparator-7669e2f0.js +19 -0
  839. package/es/TabBarMixedSeparator-7669e2f0.js.map +1 -0
  840. package/es/Table-b8c41429.js +5497 -0
  841. package/es/Table-b8c41429.js.map +1 -0
  842. package/es/TableView-2261b9de.js +31 -0
  843. package/es/TableView-2261b9de.js.map +1 -0
  844. package/es/TagCloud-0fe9b648.js +824 -0
  845. package/es/TagCloud-0fe9b648.js.map +1 -0
  846. package/es/TextArea-6584935d.js +177 -0
  847. package/es/TextArea-6584935d.js.map +1 -0
  848. package/es/TextAreaAutosize-2ca5256e.js +244 -0
  849. package/es/TextAreaAutosize-2ca5256e.js.map +1 -0
  850. package/es/TextField-500c0227.js +3 -3
  851. package/es/TextFieldInput-cb551f4e.js +1 -1
  852. package/es/Theme-redwood/theme.css +590 -590
  853. package/es/Theme-stable/theme.css +476 -476
  854. package/es/TimeComponentCanvas2D-a5baa5f6.js +568 -0
  855. package/es/TimeComponentCanvas2D-a5baa5f6.js.map +1 -0
  856. package/es/ToggleButton-c50ac048.js +28 -0
  857. package/es/ToggleButton-c50ac048.js.map +1 -0
  858. package/es/Toolbar-35426a1b.js +1 -1
  859. package/es/TruncatingBadge-69621d89.js +1 -1
  860. package/es/TruncatingText-fd66e0e0.js +1 -1
  861. package/es/UNSAFE_ActionCard.js +3 -3
  862. package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +44 -44
  863. package/es/UNSAFE_BarChart.js +44 -44
  864. package/es/UNSAFE_BaseButton.js +5 -5
  865. package/es/UNSAFE_Button.js +6 -6
  866. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +26 -26
  867. package/es/UNSAFE_ButtonSet.js +4 -4
  868. package/es/UNSAFE_ButtonSetButton.js +6 -6
  869. package/es/UNSAFE_ButtonSetIconButton.js +18 -18
  870. package/es/UNSAFE_ButtonSetItem.js +20 -20
  871. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  872. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  873. package/es/UNSAFE_Card.js +5 -5
  874. package/es/UNSAFE_CardFlexView.js +21 -21
  875. package/es/UNSAFE_CardGridView.js +21 -21
  876. package/es/UNSAFE_Center.js +5 -5
  877. package/es/UNSAFE_Checkbox/themes/CheckboxStyles.css.js +1 -0
  878. package/es/UNSAFE_Checkbox/themes/CheckboxStyles.css.js.map +1 -1
  879. package/es/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js +1 -0
  880. package/es/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js.map +1 -1
  881. package/es/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js +1 -0
  882. package/es/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js.map +1 -1
  883. package/es/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js +1 -0
  884. package/es/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js.map +1 -1
  885. package/es/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js +1 -0
  886. package/es/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js.map +1 -1
  887. package/es/UNSAFE_Checkbox.js +31 -30
  888. package/es/UNSAFE_Checkbox.js.map +1 -1
  889. package/es/UNSAFE_CheckboxItem.js +57 -108
  890. package/es/UNSAFE_CheckboxItem.js.map +1 -1
  891. package/es/UNSAFE_CheckboxSet.js +75 -40
  892. package/es/UNSAFE_CheckboxSet.js.map +1 -1
  893. package/es/UNSAFE_Chip.js +2 -2
  894. package/es/UNSAFE_Collapsible.js +17 -17
  895. package/es/UNSAFE_ComboChart.js +46 -46
  896. package/es/UNSAFE_ComponentMessage.js +22 -22
  897. package/es/UNSAFE_ConveyorBelt.js +18 -18
  898. package/es/UNSAFE_DatePicker.js +30 -30
  899. package/es/UNSAFE_Diagram.js +27 -27
  900. package/es/UNSAFE_Dialog.js +24 -24
  901. package/es/UNSAFE_DragHandle.js +17 -17
  902. package/es/UNSAFE_DrawerLayout.js +12 -12
  903. package/es/UNSAFE_DrawerPopup.js +13 -13
  904. package/es/UNSAFE_Dropdown.js +13 -13
  905. package/es/UNSAFE_Environment.js +4 -4
  906. package/es/UNSAFE_ExpandableList.js +26 -26
  907. package/es/UNSAFE_FilePicker.js +4 -4
  908. package/es/UNSAFE_Flex.js +4 -4
  909. package/es/UNSAFE_Floating.js +11 -11
  910. package/es/UNSAFE_FormLayout.js +2 -2
  911. package/es/UNSAFE_Gantt.js +26 -26
  912. package/es/UNSAFE_Grid.js +4 -4
  913. package/es/UNSAFE_HighlightText.js +4 -4
  914. package/es/UNSAFE_Icon.js +15 -15
  915. package/es/UNSAFE_IconButton.js +18 -18
  916. package/es/UNSAFE_IconMenuButton.js +24 -24
  917. package/es/UNSAFE_IconProgressButton.js +21 -21
  918. package/es/UNSAFE_IconToggleButton.js +18 -18
  919. package/es/UNSAFE_Indexer.js +6 -6
  920. package/es/UNSAFE_InputDateMask.js +33 -33
  921. package/es/UNSAFE_InputDatePicker.js +119 -119
  922. package/es/UNSAFE_InputPassword.js +35 -35
  923. package/es/UNSAFE_InputSensitiveText.js +36 -36
  924. package/es/UNSAFE_InputText.js +36 -36
  925. package/es/UNSAFE_InputTimeMask.js +32 -32
  926. package/es/UNSAFE_Label.js +27 -27
  927. package/es/UNSAFE_LabelValueLayout.js +4 -4
  928. package/es/UNSAFE_LabelledLink.js +32 -32
  929. package/es/UNSAFE_Layer.js +8 -8
  930. package/es/UNSAFE_Legend.js +25 -25
  931. package/es/UNSAFE_LineAreaChart.js +46 -46
  932. package/es/UNSAFE_Link/themes/LinkStyles.css.js +1 -1
  933. package/es/UNSAFE_Link.js +4 -4
  934. package/es/UNSAFE_ListItemLayout.js +5 -5
  935. package/es/UNSAFE_ListView.js +28 -28
  936. package/es/UNSAFE_LiveRegion.js +4 -4
  937. package/es/UNSAFE_Menu.js +23 -23
  938. package/es/UNSAFE_MenuButton.js +24 -24
  939. package/es/UNSAFE_MessageBanner.js +22 -22
  940. package/es/UNSAFE_MessageToast.js +26 -26
  941. package/es/UNSAFE_MeterBar.js +16 -16
  942. package/es/UNSAFE_MeterCircle.js +17 -17
  943. package/es/UNSAFE_Modal.js +9 -9
  944. package/es/UNSAFE_NavigationList.js +45 -43
  945. package/es/UNSAFE_NavigationList.js.map +1 -1
  946. package/es/UNSAFE_NavigationListCommon.js +74 -73
  947. package/es/UNSAFE_NavigationListCommon.js.map +1 -1
  948. package/es/UNSAFE_NumberInputText.js +34 -34
  949. package/es/UNSAFE_OverflowTabBar.js +56 -54
  950. package/es/UNSAFE_OverflowTabBar.js.map +1 -1
  951. package/es/UNSAFE_PictoChart.js +17 -17
  952. package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +22 -22
  953. package/es/UNSAFE_PieChart.js +22 -22
  954. package/es/UNSAFE_Popup.js +17 -17
  955. package/es/UNSAFE_ProgressBar.js +5 -5
  956. package/es/UNSAFE_ProgressButton.js +21 -21
  957. package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
  958. package/es/UNSAFE_ProgressCircle.js +4 -4
  959. package/es/UNSAFE_RadioItem.js +27 -27
  960. package/es/UNSAFE_RadioSet.js +33 -32
  961. package/es/UNSAFE_RadioSet.js.map +1 -1
  962. package/es/UNSAFE_RatingGauge.js +17 -17
  963. package/es/UNSAFE_ReorderableTabBar.js +49 -38
  964. package/es/UNSAFE_ReorderableTabBar.js.map +1 -1
  965. package/es/UNSAFE_RichCheckboxSet.js +54 -56
  966. package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
  967. package/es/UNSAFE_RichRadioSet.js +34 -33
  968. package/es/UNSAFE_RichRadioSet.js.map +1 -1
  969. package/es/UNSAFE_RichSelectionItem.js +58 -196
  970. package/es/UNSAFE_RichSelectionItem.js.map +1 -1
  971. package/es/UNSAFE_ScatterChart.js +46 -46
  972. package/es/UNSAFE_SectionalLegend.js +26 -26
  973. package/es/UNSAFE_SelectMultiple.js +42 -42
  974. package/es/UNSAFE_SelectSingle.js +41 -41
  975. package/es/UNSAFE_SelectionCard.js +5 -5
  976. package/es/UNSAFE_Selector.js +15 -15
  977. package/es/UNSAFE_SelectorAll.js +19 -19
  978. package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +18 -18
  979. package/es/UNSAFE_Sheet.js +12 -12
  980. package/es/UNSAFE_SplitMenuButton.js +24 -24
  981. package/es/UNSAFE_TabBar.js +56 -54
  982. package/es/UNSAFE_TabBar.js.map +1 -1
  983. package/es/UNSAFE_TabBarCommon.js +48 -46
  984. package/es/UNSAFE_TabBarCommon.js.map +1 -1
  985. package/es/UNSAFE_TabBarMixed.js +66 -64
  986. package/es/UNSAFE_TabBarMixed.js.map +1 -1
  987. package/es/UNSAFE_TableView.js +29 -29
  988. package/es/UNSAFE_TagCloud.js +27 -27
  989. package/es/UNSAFE_TextArea.js +35 -36
  990. package/es/UNSAFE_TextArea.js.map +1 -1
  991. package/es/UNSAFE_TextAreaAutosize.js +36 -36
  992. package/es/UNSAFE_TextField.js +8 -8
  993. package/es/UNSAFE_ToggleButton.js +6 -6
  994. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +28 -28
  995. package/es/UNSAFE_Toolbar.js +4 -4
  996. package/es/UNSAFE_Train.js +16 -16
  997. package/es/UNSAFE_TruncatingBadge.js +16 -16
  998. package/es/UNSAFE_TruncatingText.js +16 -16
  999. package/es/UNSAFE_UserAssistance.js +30 -30
  1000. package/es/UNSAFE_View.js +7 -7
  1001. package/es/UNSAFE_VirtualizedListView.js +19 -19
  1002. package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
  1003. package/es/UNSAFE_VisProgressiveLoader.js +6 -6
  1004. package/es/UNSAFE_VisStatusMessage.js +6 -6
  1005. package/es/UNSAFE_WindowOverlay.js +4 -4
  1006. package/es/View-cf6dfd8e.js +167 -0
  1007. package/es/View-cf6dfd8e.js.map +1 -0
  1008. package/es/VisNoData-d6e475d8.js +32 -0
  1009. package/es/VisNoData-d6e475d8.js.map +1 -0
  1010. package/es/VisProgressiveLoader-36053d5a.js +51 -0
  1011. package/es/VisProgressiveLoader-36053d5a.js.map +1 -0
  1012. package/es/VisTabularDatatip-3497f5ff.js +24 -0
  1013. package/es/VisTabularDatatip-3497f5ff.js.map +1 -0
  1014. package/es/WindowOverlay-ca2baa48.js +110 -0
  1015. package/es/WindowOverlay-ca2baa48.js.map +1 -0
  1016. package/es/YearsGridView-2c978d9f.js +187 -0
  1017. package/es/YearsGridView-2c978d9f.js.map +1 -0
  1018. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  1019. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  1020. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  1021. package/es/hooks/PRIVATE_useChartContextMenu.js +21 -21
  1022. package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
  1023. package/es/hooks/PRIVATE_useChartEvents.js +20 -20
  1024. package/es/hooks/PRIVATE_useChartMarquee.js +25 -25
  1025. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  1026. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  1027. package/es/hooks/PRIVATE_useDatatip.js +12 -12
  1028. package/es/hooks/PRIVATE_useFloating.js +4 -4
  1029. package/es/hooks/PRIVATE_useReorderable.js +5 -5
  1030. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  1031. package/es/hooks/PRIVATE_useSelection.js +4 -4
  1032. package/es/hooks/PRIVATE_useTabBar.js +4 -4
  1033. package/es/hooks/PRIVATE_useTooltipOnTruncation.js +16 -16
  1034. package/es/hooks/PRIVATE_useVisContextMenu.js +21 -21
  1035. package/es/hooks/PRIVATE_useVisDragModeControls.js +24 -24
  1036. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  1037. package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
  1038. package/es/hooks/PRIVATE_useVisSelection.js +15 -15
  1039. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  1040. package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
  1041. package/es/hooks/UNSAFE_useDensity.js +3 -3
  1042. package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
  1043. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  1044. package/es/hooks/UNSAFE_usePressClick.js +1 -1
  1045. package/es/hooks/UNSAFE_useScale.js +3 -3
  1046. package/es/hooks/UNSAFE_useTestId.js +3 -3
  1047. package/es/hooks/UNSAFE_useTheme.js +3 -3
  1048. package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
  1049. package/es/hooks/UNSAFE_useTooltip.js +16 -16
  1050. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  1051. package/es/hooks/UNSAFE_useUser.js +3 -3
  1052. package/es/index-3fdaba9a.js +11 -0
  1053. package/es/index-3fdaba9a.js.map +1 -0
  1054. package/es/listViewSelectionTests-d1f64e6f.js +3 -3
  1055. package/es/popupUtils-24a723a0.js +29 -0
  1056. package/es/popupUtils-24a723a0.js.map +1 -0
  1057. package/es/render-4d96f0d2.js +34 -0
  1058. package/es/render-4d96f0d2.js.map +1 -0
  1059. package/es/tabbableUtils-070beeed.js +79 -0
  1060. package/es/tabbableUtils-070beeed.js.map +1 -0
  1061. package/es/testData-e1df8616.js +256 -0
  1062. package/es/testData-e1df8616.js.map +1 -0
  1063. package/es/tooltipUtils-35655bd6.js +93 -0
  1064. package/es/tooltipUtils-35655bd6.js.map +1 -0
  1065. package/es/useCellNavigation-bdb3248d.js +121 -0
  1066. package/es/useCellNavigation-bdb3248d.js.map +1 -0
  1067. package/es/useChartContextMenu-61fe46b8.js +2 -2
  1068. package/es/useChartDatatip-b0d35cfe.js +165 -0
  1069. package/es/useChartDatatip-b0d35cfe.js.map +1 -0
  1070. package/es/useChartMarquee-7cd47205.js +293 -0
  1071. package/es/useChartMarquee-7cd47205.js.map +1 -0
  1072. package/es/useColorScheme-8e5e458d.js +19 -0
  1073. package/es/useColorScheme-8e5e458d.js.map +1 -0
  1074. package/es/useContextMenu-3c62d9eb.js +2 -2
  1075. package/es/useCssVars-608cb842.js +58 -0
  1076. package/es/useCssVars-608cb842.js.map +1 -0
  1077. package/es/useCurrentBgColor-ee671513.js +19 -0
  1078. package/es/useCurrentBgColor-ee671513.js.map +1 -0
  1079. package/es/useCurrentKey-b8e62707.js +81 -0
  1080. package/es/useCurrentKey-b8e62707.js.map +1 -0
  1081. package/es/useDatatip-daec4346.js +90 -0
  1082. package/es/useDatatip-daec4346.js.map +1 -0
  1083. package/es/useDensity-556ca8b2.js +19 -0
  1084. package/es/useDensity-556ca8b2.js.map +1 -0
  1085. package/es/useFloating-abfd69eb.js +1916 -0
  1086. package/es/useFloating-abfd69eb.js.map +1 -0
  1087. package/es/useKeyboardEvents-7202253d.js +78 -0
  1088. package/es/useKeyboardEvents-7202253d.js.map +1 -0
  1089. package/es/useLegendContextMenu-66d6eb7e.js +4 -4
  1090. package/es/useMeterDatatip-dcd2a05e.js +73 -0
  1091. package/es/useMeterDatatip-dcd2a05e.js.map +1 -0
  1092. package/es/useNavigationListItem-a28f2c34.js +81 -0
  1093. package/es/useNavigationListItem-a28f2c34.js.map +1 -0
  1094. package/es/useOutsideClick-817bf098.js +101 -0
  1095. package/es/useOutsideClick-817bf098.js.map +1 -0
  1096. package/es/usePopupAnimation-6e0781b5.js +85 -0
  1097. package/es/usePopupAnimation-6e0781b5.js.map +1 -0
  1098. package/es/usePrefixSuffix-0874343c.js +70 -0
  1099. package/es/usePrefixSuffix-0874343c.js.map +1 -0
  1100. package/es/usePressClick-945cc43b.js +39 -0
  1101. package/es/usePressClick-945cc43b.js.map +1 -0
  1102. package/es/useReorderableItem-99a9dbce.js +268 -0
  1103. package/es/useReorderableItem-99a9dbce.js.map +1 -0
  1104. package/es/useRovingTabIndexContainer-f7972085.js +98 -0
  1105. package/es/useRovingTabIndexContainer-f7972085.js.map +1 -0
  1106. package/es/useScale-1cdb639e.js +19 -0
  1107. package/es/useScale-1cdb639e.js.map +1 -0
  1108. package/es/useSelectCommon-896b594a.js +686 -0
  1109. package/es/useSelectCommon-896b594a.js.map +1 -0
  1110. package/es/useSelectDrill-5525e5a3.js +104 -0
  1111. package/es/useSelectDrill-5525e5a3.js.map +1 -0
  1112. package/es/useSelection-2d26ab04.js +239 -0
  1113. package/es/useSelection-2d26ab04.js.map +1 -0
  1114. package/es/useSelection-8be05a70.js +186 -0
  1115. package/es/useSelection-8be05a70.js.map +1 -0
  1116. package/es/useTabBar-cbac0c2e.js +1 -1
  1117. package/es/useTestId-474ac6ca.js +21 -0
  1118. package/es/useTestId-474ac6ca.js.map +1 -0
  1119. package/es/useTheme-5aa36f52.js +19 -0
  1120. package/es/useTheme-5aa36f52.js.map +1 -0
  1121. package/es/useThemeInterpolations-05e58770.js +57 -0
  1122. package/es/useThemeInterpolations-05e58770.js.map +1 -0
  1123. package/es/useTooltip-138c94ee.js +424 -0
  1124. package/es/useTooltip-138c94ee.js.map +1 -0
  1125. package/es/useTooltipOnTruncation-a97211b6.js +27 -0
  1126. package/es/useTooltipOnTruncation-a97211b6.js.map +1 -0
  1127. package/es/useTranslationBundle-2df40edf.js +29 -0
  1128. package/es/useTranslationBundle-2df40edf.js.map +1 -0
  1129. package/es/useUser-6b2e271a.js +19 -0
  1130. package/es/useUser-6b2e271a.js.map +1 -0
  1131. package/es/useVisDragModeControls-ed260d12.js +87 -0
  1132. package/es/useVisDragModeControls-ed260d12.js.map +1 -0
  1133. package/es/useVisEvents-d8652100.js +153 -0
  1134. package/es/useVisEvents-d8652100.js.map +1 -0
  1135. package/es/utils/PRIVATE_tooltipUtils.js +14 -14
  1136. package/es/utils/PRIVATE_visTestUtils.js +6 -6
  1137. package/es/utils/UNSAFE_popupUtils.js +8 -8
  1138. package/es/withDirectionIcon-fe0b69a7.js +14 -0
  1139. package/es/withDirectionIcon-fe0b69a7.js.map +1 -0
  1140. package/es/withThemeProps-1621f692.js +2 -2
  1141. package/package.json +2 -2
  1142. package/types/UNSAFE_DatePicker/useCellNavigation.d.ts +0 -1
  1143. package/types/UNSAFE_Link/themes/LinkStyles.css.d.ts +2 -1
  1144. package/types/UNSAFE_Link/themes/redwood/LinkVariants.css.d.ts +2 -1
  1145. package/types/UNSAFE_Link/themes/stable/LinkVariants.css.d.ts +2 -1
  1146. package/types/hooks/UNSAFE_usePressClick/usePressClick.d.ts +1 -0
  1147. package/amd/BarChart-1be56919.js +0 -2
  1148. package/amd/BarChart-1be56919.js.map +0 -1
  1149. package/amd/BaseButton-771c5db8.js +0 -2
  1150. package/amd/BaseButton-771c5db8.js.map +0 -1
  1151. package/amd/BaseCardView-4f88499c.js +0 -2
  1152. package/amd/BaseCardView-4f88499c.js.map +0 -1
  1153. package/amd/BaseCardViewSelectionTest-adaca8ca.js +0 -2
  1154. package/amd/BaseCardViewSelectionTest-adaca8ca.js.map +0 -1
  1155. package/amd/BaseRichSelection-eb93f0e2.js +0 -2
  1156. package/amd/BaseRichSelection-eb93f0e2.js.map +0 -1
  1157. package/amd/Button-af88bb81.js +0 -2
  1158. package/amd/Button-af88bb81.js.map +0 -1
  1159. package/amd/ButtonSetButton-00612cdd.js +0 -2
  1160. package/amd/ButtonSetButton-00612cdd.js.map +0 -1
  1161. package/amd/ButtonSetIconButton-d0684966.js +0 -2
  1162. package/amd/ButtonSetIconButton-d0684966.js.map +0 -1
  1163. package/amd/ButtonSetItem-1d88a72d.js +0 -2
  1164. package/amd/ButtonSetItem-1d88a72d.js.map +0 -1
  1165. package/amd/CardFlexView-86cb369a.js +0 -2
  1166. package/amd/CardFlexView-86cb369a.js.map +0 -1
  1167. package/amd/CardGridView-b3f11290.js +0 -2
  1168. package/amd/CardGridView-b3f11290.js.map +0 -1
  1169. package/amd/Chart-0a3205dd.js +0 -2
  1170. package/amd/Chart-0a3205dd.js.map +0 -1
  1171. package/amd/Checkbox-3a25138e.js +0 -2
  1172. package/amd/Checkbox-3a25138e.js.map +0 -1
  1173. package/amd/CheckboxControl-232e227d.js +0 -2
  1174. package/amd/CheckboxControl-232e227d.js.map +0 -1
  1175. package/amd/CheckboxRadioField-9b73f66b.js +0 -2
  1176. package/amd/CheckboxRadioField-9b73f66b.js.map +0 -1
  1177. package/amd/CheckboxSetContext-2e486ea8.js +0 -2
  1178. package/amd/CheckboxSetContext-2e486ea8.js.map +0 -1
  1179. package/amd/ClearIcon-f1befe37.js +0 -2
  1180. package/amd/ClearIcon-f1befe37.js.map +0 -1
  1181. package/amd/ComboChart-5dba7db4.js +0 -2
  1182. package/amd/ComboChart-5dba7db4.js.map +0 -1
  1183. package/amd/CompactUserAssistance-f962b357.js +0 -2
  1184. package/amd/CompactUserAssistance-f962b357.js.map +0 -1
  1185. package/amd/ComponentMessageContainer-13e53260.js +0 -2
  1186. package/amd/ComponentMessageContainer-13e53260.js.map +0 -1
  1187. package/amd/ConveyorBeltItem-1dfb412e.js +0 -2
  1188. package/amd/ConveyorBeltItem-1dfb412e.js.map +0 -1
  1189. package/amd/DatePicker-b907fb97.js +0 -2
  1190. package/amd/DatePicker-b907fb97.js.map +0 -1
  1191. package/amd/DatePickerHeader-d95959a6.js +0 -2
  1192. package/amd/DatePickerHeader-d95959a6.js.map +0 -1
  1193. package/amd/Diagram-92f409e0.js +0 -2
  1194. package/amd/Diagram-92f409e0.js.map +0 -1
  1195. package/amd/Dialog-b9dd8533.js +0 -2
  1196. package/amd/Dialog-b9dd8533.js.map +0 -1
  1197. package/amd/EmbeddedIconButton-8635fed8.js +0 -2
  1198. package/amd/EmbeddedIconButton-8635fed8.js.map +0 -1
  1199. package/amd/ExpandableList-c372fe68.js +0 -2
  1200. package/amd/ExpandableList-c372fe68.js.map +0 -1
  1201. package/amd/Gantt-f6a53a90.js +0 -2
  1202. package/amd/Gantt-f6a53a90.js.map +0 -1
  1203. package/amd/IconButton-05c6b793.js +0 -2
  1204. package/amd/IconButton-05c6b793.js.map +0 -1
  1205. package/amd/IconMenuButton-82a7258c.js +0 -2
  1206. package/amd/IconMenuButton-82a7258c.js.map +0 -1
  1207. package/amd/IconProgressButton-3bff5384.js +0 -2
  1208. package/amd/IconProgressButton-3bff5384.js.map +0 -1
  1209. package/amd/IconSwitchButton-faf2b405.js +0 -2
  1210. package/amd/IconSwitchButton-faf2b405.js.map +0 -1
  1211. package/amd/IconToggleButton-d5112634.js +0 -2
  1212. package/amd/IconToggleButton-d5112634.js.map +0 -1
  1213. package/amd/Indexer-510aaf3a.js +0 -2
  1214. package/amd/Indexer-510aaf3a.js.map +0 -1
  1215. package/amd/InlineUserAssistance-3d3e72a9.js +0 -2
  1216. package/amd/InlineUserAssistance-3d3e72a9.js.map +0 -1
  1217. package/amd/InputDateMask-55fcbf50.js +0 -2
  1218. package/amd/InputDateMask-55fcbf50.js.map +0 -1
  1219. package/amd/InputDatePicker-ecd4a7ce.js +0 -2
  1220. package/amd/InputDatePicker-ecd4a7ce.js.map +0 -1
  1221. package/amd/InputPassword-61090b77.js +0 -2
  1222. package/amd/InputPassword-61090b77.js.map +0 -1
  1223. package/amd/InputText-32954a14.js +0 -2
  1224. package/amd/InputText-32954a14.js.map +0 -1
  1225. package/amd/Label-7cbbe3b7.js +0 -2
  1226. package/amd/Label-7cbbe3b7.js.map +0 -1
  1227. package/amd/LineAreaChart-190b3d46.js +0 -2
  1228. package/amd/LineAreaChart-190b3d46.js.map +0 -1
  1229. package/amd/Link-2dae4de2.js +0 -2
  1230. package/amd/Link-2dae4de2.js.map +0 -1
  1231. package/amd/List-37e37948.js +0 -2
  1232. package/amd/List-37e37948.js.map +0 -1
  1233. package/amd/ListView-325e1814.js +0 -2
  1234. package/amd/ListView-325e1814.js.map +0 -1
  1235. package/amd/LoadMoreCollection-83413a59.js +0 -2
  1236. package/amd/LoadMoreCollection-83413a59.js.map +0 -1
  1237. package/amd/MenuButton-233a631a.js +0 -2
  1238. package/amd/MenuButton-233a631a.js.map +0 -1
  1239. package/amd/Message-40182dfc.js +0 -2
  1240. package/amd/Message-40182dfc.js.map +0 -1
  1241. package/amd/MessageToast-236687bd.js +0 -2
  1242. package/amd/MessageToast-236687bd.js.map +0 -1
  1243. package/amd/MonthView-c8a6ab15.js +0 -2
  1244. package/amd/MonthView-c8a6ab15.js.map +0 -1
  1245. package/amd/NumberInputText-91b73dcb.js +0 -2
  1246. package/amd/NumberInputText-91b73dcb.js.map +0 -1
  1247. package/amd/OverflowTabBar-ef21bcd3.js +0 -2
  1248. package/amd/OverflowTabBar-ef21bcd3.js.map +0 -1
  1249. package/amd/OverflowTabBarItem-db77f3d3.js +0 -2
  1250. package/amd/OverflowTabBarItem-db77f3d3.js.map +0 -1
  1251. package/amd/PictoChart-d5bedf82.js +0 -2
  1252. package/amd/PictoChart-d5bedf82.js.map +0 -1
  1253. package/amd/ProgressButton-e30c909b.js +0 -2
  1254. package/amd/ProgressButton-e30c909b.js.map +0 -1
  1255. package/amd/RadioItem-7ebada33.js +0 -2
  1256. package/amd/RadioItem-7ebada33.js.map +0 -1
  1257. package/amd/RadioSet-5e4b6669.js +0 -2
  1258. package/amd/RadioSet-5e4b6669.js.map +0 -1
  1259. package/amd/RemovableNavigationListItem-9950c473.js +0 -2
  1260. package/amd/RemovableNavigationListItem-9950c473.js.map +0 -1
  1261. package/amd/RemovableTabBarItem-fcada993.js +0 -2
  1262. package/amd/RemovableTabBarItem-fcada993.js.map +0 -1
  1263. package/amd/RevealToggleIcon-411d7a73.js +0 -2
  1264. package/amd/RevealToggleIcon-411d7a73.js.map +0 -1
  1265. package/amd/ScatterChart-3f6024a2.js +0 -2
  1266. package/amd/ScatterChart-3f6024a2.js.map +0 -1
  1267. package/amd/SelectMultiple-d3196bcd.js +0 -2
  1268. package/amd/SelectMultiple-d3196bcd.js.map +0 -1
  1269. package/amd/SelectSingle-007ab01c.js +0 -2
  1270. package/amd/SelectSingle-007ab01c.js.map +0 -1
  1271. package/amd/SplitMenuButton-65acf4d4.js +0 -2
  1272. package/amd/SplitMenuButton-65acf4d4.js.map +0 -1
  1273. package/amd/Table-52c72d48.js +0 -2
  1274. package/amd/Table-52c72d48.js.map +0 -1
  1275. package/amd/TableView-dc0766a7.js +0 -2
  1276. package/amd/TableView-dc0766a7.js.map +0 -1
  1277. package/amd/TagCloud-6afc73f7.js +0 -2
  1278. package/amd/TagCloud-6afc73f7.js.map +0 -1
  1279. package/amd/TextArea-f6b13c73.js +0 -2
  1280. package/amd/TextArea-f6b13c73.js.map +0 -1
  1281. package/amd/TextAreaAutosize-af350c32.js +0 -2
  1282. package/amd/TextAreaAutosize-af350c32.js.map +0 -1
  1283. package/amd/TimeComponentCanvas2D-27e55de9.js +0 -2
  1284. package/amd/TimeComponentCanvas2D-27e55de9.js.map +0 -1
  1285. package/amd/ToggleButton-a999647d.js +0 -2
  1286. package/amd/ToggleButton-a999647d.js.map +0 -1
  1287. package/amd/VirtualizedCollection-897516a5.js +0 -2
  1288. package/amd/VirtualizedCollection-897516a5.js.map +0 -1
  1289. package/amd/VirtualizedListView-0b9e1c53.js +0 -2
  1290. package/amd/VirtualizedListView-0b9e1c53.js.map +0 -1
  1291. package/amd/YearsGridView-c09d1d19.js +0 -2
  1292. package/amd/YearsGridView-c09d1d19.js.map +0 -1
  1293. package/amd/useCellNavigation-47060bc3.js +0 -2
  1294. package/amd/useCellNavigation-47060bc3.js.map +0 -1
  1295. package/amd/useChartMarquee-8ce16d57.js +0 -2
  1296. package/amd/useChartMarquee-8ce16d57.js.map +0 -1
  1297. package/amd/usePressClick-b7b38da2.js +0 -2
  1298. package/amd/usePressClick-b7b38da2.js.map +0 -1
  1299. package/amd/useSelectCommon-fd0e7664.js +0 -2
  1300. package/amd/useSelectCommon-fd0e7664.js.map +0 -1
  1301. package/amd/useSelectDrill-332195a7.js +0 -2
  1302. package/amd/useSelectDrill-332195a7.js.map +0 -1
  1303. package/amd/useSelection-04d131fa.js +0 -2
  1304. package/amd/useSelection-04d131fa.js.map +0 -1
  1305. package/amd/useVisDragModeControls-69001c64.js +0 -2
  1306. package/amd/useVisDragModeControls-69001c64.js.map +0 -1
  1307. package/cjs/BarChart-fae84003.js +0 -181
  1308. package/cjs/BarChart-fae84003.js.map +0 -1
  1309. package/cjs/BaseButton-97ec7696.js +0 -174
  1310. package/cjs/BaseButton-97ec7696.js.map +0 -1
  1311. package/cjs/BaseCardView-0be36db0.js +0 -687
  1312. package/cjs/BaseCardView-0be36db0.js.map +0 -1
  1313. package/cjs/BaseCardViewSelectionTest-d91b3015.js +0 -734
  1314. package/cjs/BaseCardViewSelectionTest-d91b3015.js.map +0 -1
  1315. package/cjs/BaseRichSelection-e2a38380.js +0 -344
  1316. package/cjs/BaseRichSelection-e2a38380.js.map +0 -1
  1317. package/cjs/Button-371573d5.js +0 -24
  1318. package/cjs/Button-371573d5.js.map +0 -1
  1319. package/cjs/ButtonSetButton-c6621073.js +0 -35
  1320. package/cjs/ButtonSetButton-c6621073.js.map +0 -1
  1321. package/cjs/ButtonSetIconButton-8645f3a5.js +0 -42
  1322. package/cjs/ButtonSetIconButton-8645f3a5.js.map +0 -1
  1323. package/cjs/ButtonSetItem-aa4211b4.js +0 -67
  1324. package/cjs/ButtonSetItem-aa4211b4.js.map +0 -1
  1325. package/cjs/CardFlexView-2547fc13.js +0 -29
  1326. package/cjs/CardFlexView-2547fc13.js.map +0 -1
  1327. package/cjs/CardGridView-c355e9d4.js +0 -17
  1328. package/cjs/CardGridView-c355e9d4.js.map +0 -1
  1329. package/cjs/Chart-b79289a8.js +0 -493
  1330. package/cjs/Chart-b79289a8.js.map +0 -1
  1331. package/cjs/Checkbox-5bfd221f.js +0 -106
  1332. package/cjs/Checkbox-5bfd221f.js.map +0 -1
  1333. package/cjs/CheckboxControl-3be46530.js +0 -111
  1334. package/cjs/CheckboxControl-3be46530.js.map +0 -1
  1335. package/cjs/CheckboxRadioField-037cddb9.js +0 -185
  1336. package/cjs/CheckboxRadioField-037cddb9.js.map +0 -1
  1337. package/cjs/ClearIcon-02e093be.js +0 -23
  1338. package/cjs/ClearIcon-02e093be.js.map +0 -1
  1339. package/cjs/ComboChart-e17d5863.js +0 -174
  1340. package/cjs/ComboChart-e17d5863.js.map +0 -1
  1341. package/cjs/CompactUserAssistance-b3c3929e.js +0 -49
  1342. package/cjs/CompactUserAssistance-b3c3929e.js.map +0 -1
  1343. package/cjs/ComponentMessageContainer-1cea67f6.js +0 -71
  1344. package/cjs/ComponentMessageContainer-1cea67f6.js.map +0 -1
  1345. package/cjs/ConveyorBeltItem-2577c86d.js +0 -641
  1346. package/cjs/ConveyorBeltItem-2577c86d.js.map +0 -1
  1347. package/cjs/DatePicker-c770df48.js +0 -566
  1348. package/cjs/DatePicker-c770df48.js.map +0 -1
  1349. package/cjs/DatePickerHeader-da8173f7.js +0 -46
  1350. package/cjs/DatePickerHeader-da8173f7.js.map +0 -1
  1351. package/cjs/Diagram-c4064fd7.js +0 -2037
  1352. package/cjs/Diagram-c4064fd7.js.map +0 -1
  1353. package/cjs/Dialog-c6c8024c.js +0 -346
  1354. package/cjs/Dialog-c6c8024c.js.map +0 -1
  1355. package/cjs/EmbeddedIconButton-89616e5f.js +0 -13
  1356. package/cjs/EmbeddedIconButton-89616e5f.js.map +0 -1
  1357. package/cjs/ExpandableList-d1823448.js +0 -169
  1358. package/cjs/ExpandableList-d1823448.js.map +0 -1
  1359. package/cjs/Gantt-674a89f8.js +0 -3819
  1360. package/cjs/Gantt-674a89f8.js.map +0 -1
  1361. package/cjs/IconButton-e7a68b4b.js +0 -39
  1362. package/cjs/IconButton-e7a68b4b.js.map +0 -1
  1363. package/cjs/IconMenuButton-3e540f38.js +0 -58
  1364. package/cjs/IconMenuButton-3e540f38.js.map +0 -1
  1365. package/cjs/IconProgressButton-3aa70c31.js +0 -49
  1366. package/cjs/IconProgressButton-3aa70c31.js.map +0 -1
  1367. package/cjs/IconSwitchButton-6bab813f.js +0 -46
  1368. package/cjs/IconSwitchButton-6bab813f.js.map +0 -1
  1369. package/cjs/IconToggleButton-7ec8c084.js +0 -45
  1370. package/cjs/IconToggleButton-7ec8c084.js.map +0 -1
  1371. package/cjs/Indexer-099ecbad.js +0 -339
  1372. package/cjs/Indexer-099ecbad.js.map +0 -1
  1373. package/cjs/InlineUserAssistance-5d6bac7a.js +0 -85
  1374. package/cjs/InlineUserAssistance-5d6bac7a.js.map +0 -1
  1375. package/cjs/InputDateMask-946f6dfa.js +0 -1060
  1376. package/cjs/InputDateMask-946f6dfa.js.map +0 -1
  1377. package/cjs/InputDatePicker-3dace90c.js +0 -309
  1378. package/cjs/InputDatePicker-3dace90c.js.map +0 -1
  1379. package/cjs/InputPassword-564260d2.js +0 -157
  1380. package/cjs/InputPassword-564260d2.js.map +0 -1
  1381. package/cjs/InputText-a9d46813.js +0 -199
  1382. package/cjs/InputText-a9d46813.js.map +0 -1
  1383. package/cjs/Label-2e05c87f.js +0 -85
  1384. package/cjs/Label-2e05c87f.js.map +0 -1
  1385. package/cjs/LineAreaChart-523ae108.js +0 -172
  1386. package/cjs/LineAreaChart-523ae108.js.map +0 -1
  1387. package/cjs/Link-a829e7f1.js +0 -35
  1388. package/cjs/Link-a829e7f1.js.map +0 -1
  1389. package/cjs/List-24abb3df.js +0 -722
  1390. package/cjs/List-24abb3df.js.map +0 -1
  1391. package/cjs/ListView-7e894199.js +0 -430
  1392. package/cjs/ListView-7e894199.js.map +0 -1
  1393. package/cjs/LoadMoreCollection-69bc038c.js +0 -34
  1394. package/cjs/LoadMoreCollection-69bc038c.js.map +0 -1
  1395. package/cjs/MenuButton-b811e5e4.js +0 -63
  1396. package/cjs/MenuButton-b811e5e4.js.map +0 -1
  1397. package/cjs/Message-d1d5538e.js +0 -208
  1398. package/cjs/Message-d1d5538e.js.map +0 -1
  1399. package/cjs/MessageToast-9154f05f.js +0 -243
  1400. package/cjs/MessageToast-9154f05f.js.map +0 -1
  1401. package/cjs/MonthView-35623a0e.js +0 -210
  1402. package/cjs/MonthView-35623a0e.js.map +0 -1
  1403. package/cjs/NavigationListItem-9b3d3258.js +0 -153
  1404. package/cjs/NavigationListItem-9b3d3258.js.map +0 -1
  1405. package/cjs/NumberInputText-6032717d.js +0 -223
  1406. package/cjs/NumberInputText-6032717d.js.map +0 -1
  1407. package/cjs/OverflowTabBar-794b4c93.js +0 -71
  1408. package/cjs/OverflowTabBar-794b4c93.js.map +0 -1
  1409. package/cjs/OverflowTabBarItem-43956479.js +0 -88
  1410. package/cjs/OverflowTabBarItem-43956479.js.map +0 -1
  1411. package/cjs/PictoChart-b650c050.js +0 -747
  1412. package/cjs/PictoChart-b650c050.js.map +0 -1
  1413. package/cjs/ProgressButton-1a01d49b.js +0 -58
  1414. package/cjs/ProgressButton-1a01d49b.js.map +0 -1
  1415. package/cjs/RadioItem-68304596.js +0 -115
  1416. package/cjs/RadioItem-68304596.js.map +0 -1
  1417. package/cjs/RadioSet-a16f664b.js +0 -45
  1418. package/cjs/RadioSet-a16f664b.js.map +0 -1
  1419. package/cjs/RemovableNavigationListItem-b13b3516.js +0 -26
  1420. package/cjs/RemovableNavigationListItem-b13b3516.js.map +0 -1
  1421. package/cjs/RemovableTabBarItem-e71b7be3.js +0 -38
  1422. package/cjs/RemovableTabBarItem-e71b7be3.js.map +0 -1
  1423. package/cjs/RevealToggleIcon-06b0b035.js +0 -28
  1424. package/cjs/RevealToggleIcon-06b0b035.js.map +0 -1
  1425. package/cjs/ScatterChart-bd2e0ebb.js +0 -105
  1426. package/cjs/ScatterChart-bd2e0ebb.js.map +0 -1
  1427. package/cjs/SelectMultiple-0d809f25.js +0 -1299
  1428. package/cjs/SelectMultiple-0d809f25.js.map +0 -1
  1429. package/cjs/SelectSingle-f5dd375a.js +0 -732
  1430. package/cjs/SelectSingle-f5dd375a.js.map +0 -1
  1431. package/cjs/SplitMenuButton-e7fd9b79.js +0 -141
  1432. package/cjs/SplitMenuButton-e7fd9b79.js.map +0 -1
  1433. package/cjs/Table-65e94df9.js +0 -5499
  1434. package/cjs/Table-65e94df9.js.map +0 -1
  1435. package/cjs/TableView-dfc37f9f.js +0 -33
  1436. package/cjs/TableView-dfc37f9f.js.map +0 -1
  1437. package/cjs/TagCloud-0aee2c72.js +0 -826
  1438. package/cjs/TagCloud-0aee2c72.js.map +0 -1
  1439. package/cjs/TextArea-a11875f3.js +0 -162
  1440. package/cjs/TextArea-a11875f3.js.map +0 -1
  1441. package/cjs/TextAreaAutosize-5a8e8335.js +0 -246
  1442. package/cjs/TextAreaAutosize-5a8e8335.js.map +0 -1
  1443. package/cjs/TimeComponentCanvas2D-e6be22d4.js +0 -591
  1444. package/cjs/TimeComponentCanvas2D-e6be22d4.js.map +0 -1
  1445. package/cjs/ToggleButton-8ac0ff29.js +0 -30
  1446. package/cjs/ToggleButton-8ac0ff29.js.map +0 -1
  1447. package/cjs/VirtualizedCollection-9e8c48b9.js +0 -180
  1448. package/cjs/VirtualizedCollection-9e8c48b9.js.map +0 -1
  1449. package/cjs/VirtualizedListView-0a4f07ca.js +0 -16
  1450. package/cjs/VirtualizedListView-0a4f07ca.js.map +0 -1
  1451. package/cjs/YearsGridView-83c7e684.js +0 -190
  1452. package/cjs/YearsGridView-83c7e684.js.map +0 -1
  1453. package/cjs/useCellNavigation-7a24d0c0.js +0 -129
  1454. package/cjs/useCellNavigation-7a24d0c0.js.map +0 -1
  1455. package/cjs/useChartMarquee-7c09d6ef.js +0 -295
  1456. package/cjs/useChartMarquee-7c09d6ef.js.map +0 -1
  1457. package/cjs/usePressClick-421494df.js +0 -33
  1458. package/cjs/usePressClick-421494df.js.map +0 -1
  1459. package/cjs/useSelectCommon-d593ef26.js +0 -709
  1460. package/cjs/useSelectCommon-d593ef26.js.map +0 -1
  1461. package/cjs/useSelectDrill-ddca7003.js +0 -107
  1462. package/cjs/useSelectDrill-ddca7003.js.map +0 -1
  1463. package/cjs/useSelection-810ecdc6.js +0 -188
  1464. package/cjs/useSelection-810ecdc6.js.map +0 -1
  1465. package/cjs/useVisDragModeControls-388926ea.js +0 -89
  1466. package/cjs/useVisDragModeControls-388926ea.js.map +0 -1
  1467. package/es/BarChart-bbc688ef.js +0 -179
  1468. package/es/BarChart-bbc688ef.js.map +0 -1
  1469. package/es/BaseButton-a0534b4d.js +0 -172
  1470. package/es/BaseButton-a0534b4d.js.map +0 -1
  1471. package/es/BaseCardViewSelectionTest-2e5f019a.js +0 -721
  1472. package/es/BaseCardViewSelectionTest-2e5f019a.js.map +0 -1
  1473. package/es/BaseNavigationListItem-af84a9ee.js +0 -119
  1474. package/es/BaseNavigationListItem-af84a9ee.js.map +0 -1
  1475. package/es/BaseRichSelection-9f2f2b59.js +0 -342
  1476. package/es/BaseRichSelection-9f2f2b59.js.map +0 -1
  1477. package/es/Button-f55c264d.js +0 -22
  1478. package/es/Button-f55c264d.js.map +0 -1
  1479. package/es/ButtonSetButton-226c9e73.js +0 -33
  1480. package/es/ButtonSetButton-226c9e73.js.map +0 -1
  1481. package/es/ButtonSetIconButton-2a046c9c.js +0 -40
  1482. package/es/ButtonSetIconButton-2a046c9c.js.map +0 -1
  1483. package/es/ButtonSetItem-43ef9553.js +0 -65
  1484. package/es/ButtonSetItem-43ef9553.js.map +0 -1
  1485. package/es/Card-f3b7c723.js +0 -15
  1486. package/es/Card-f3b7c723.js.map +0 -1
  1487. package/es/Center-76b761ea.js +0 -16
  1488. package/es/Center-76b761ea.js.map +0 -1
  1489. package/es/Chart-6291ad48.js +0 -491
  1490. package/es/Chart-6291ad48.js.map +0 -1
  1491. package/es/Checkbox-34816a7d.js +0 -104
  1492. package/es/Checkbox-34816a7d.js.map +0 -1
  1493. package/es/CheckboxControl-a9d4d9d5.js +0 -109
  1494. package/es/CheckboxControl-a9d4d9d5.js.map +0 -1
  1495. package/es/CheckboxRadioField-922ab9ff.js +0 -183
  1496. package/es/CheckboxRadioField-922ab9ff.js.map +0 -1
  1497. package/es/CheckboxSet-28953b25.js +0 -49
  1498. package/es/CheckboxSet-28953b25.js.map +0 -1
  1499. package/es/ClearIcon-29781882.js +0 -21
  1500. package/es/ClearIcon-29781882.js.map +0 -1
  1501. package/es/ComboChart-4738f936.js +0 -172
  1502. package/es/ComboChart-4738f936.js.map +0 -1
  1503. package/es/CompactLabelAssistance-fd3fb481.js +0 -34
  1504. package/es/CompactLabelAssistance-fd3fb481.js.map +0 -1
  1505. package/es/CompactUserAssistance-bd24e31a.js +0 -47
  1506. package/es/CompactUserAssistance-bd24e31a.js.map +0 -1
  1507. package/es/ComponentMessageContainer-6c106a09.js +0 -68
  1508. package/es/ComponentMessageContainer-6c106a09.js.map +0 -1
  1509. package/es/ConveyorBeltItem-ce67a451.js +0 -638
  1510. package/es/ConveyorBeltItem-ce67a451.js.map +0 -1
  1511. package/es/DatePicker-e7f2ef3c.js +0 -564
  1512. package/es/DatePicker-e7f2ef3c.js.map +0 -1
  1513. package/es/DatePickerHeader-9c0d4332.js +0 -44
  1514. package/es/DatePickerHeader-9c0d4332.js.map +0 -1
  1515. package/es/Diagram-b1f6a590.js +0 -2035
  1516. package/es/Diagram-b1f6a590.js.map +0 -1
  1517. package/es/Dialog-0ca362cc.js +0 -344
  1518. package/es/Dialog-0ca362cc.js.map +0 -1
  1519. package/es/DragHandle-99d4c921.js +0 -22
  1520. package/es/DragHandle-99d4c921.js.map +0 -1
  1521. package/es/DrawerPopup-9cdb203a.js +0 -381
  1522. package/es/DrawerPopup-9cdb203a.js.map +0 -1
  1523. package/es/Dropdown-60833900.js +0 -80
  1524. package/es/Dropdown-60833900.js.map +0 -1
  1525. package/es/EmbeddedIconButton-0c3562a1.js +0 -11
  1526. package/es/EmbeddedIconButton-0c3562a1.js.map +0 -1
  1527. package/es/EnvironmentProvider-bada8909.js +0 -58
  1528. package/es/EnvironmentProvider-bada8909.js.map +0 -1
  1529. package/es/ExpandableList-cbf9ae2c.js +0 -167
  1530. package/es/ExpandableList-cbf9ae2c.js.map +0 -1
  1531. package/es/Flex-ce31b351.js +0 -30
  1532. package/es/Flex-ce31b351.js.map +0 -1
  1533. package/es/Floating-f02677ba.js +0 -462
  1534. package/es/Floating-f02677ba.js.map +0 -1
  1535. package/es/Gantt-5a395647.js +0 -3817
  1536. package/es/Gantt-5a395647.js.map +0 -1
  1537. package/es/Grid-421eb560.js +0 -27
  1538. package/es/Grid-421eb560.js.map +0 -1
  1539. package/es/Gridlines-6098cb5b.js +0 -168
  1540. package/es/Gridlines-6098cb5b.js.map +0 -1
  1541. package/es/HighlightText-86d92552.js +0 -31
  1542. package/es/HighlightText-86d92552.js.map +0 -1
  1543. package/es/IconButton-f3f7af21.js +0 -37
  1544. package/es/IconButton-f3f7af21.js.map +0 -1
  1545. package/es/IconMenuButton-48909b85.js +0 -56
  1546. package/es/IconMenuButton-48909b85.js.map +0 -1
  1547. package/es/IconProgressButton-1c4d65c3.js +0 -47
  1548. package/es/IconProgressButton-1c4d65c3.js.map +0 -1
  1549. package/es/IconSwitchButton-5db4ae26.js +0 -44
  1550. package/es/IconSwitchButton-5db4ae26.js.map +0 -1
  1551. package/es/IconToggleButton-be6c0ba1.js +0 -43
  1552. package/es/IconToggleButton-be6c0ba1.js.map +0 -1
  1553. package/es/IconUserAssistance-92be9618.js +0 -73
  1554. package/es/IconUserAssistance-92be9618.js.map +0 -1
  1555. package/es/InlineUserAssistance-2677a1eb.js +0 -81
  1556. package/es/InlineUserAssistance-2677a1eb.js.map +0 -1
  1557. package/es/InputDateMask-76493bee.js +0 -1056
  1558. package/es/InputDateMask-76493bee.js.map +0 -1
  1559. package/es/InputDatePicker-836ee6f7.js +0 -307
  1560. package/es/InputDatePicker-836ee6f7.js.map +0 -1
  1561. package/es/InputPassword-fa63ac17.js +0 -155
  1562. package/es/InputPassword-fa63ac17.js.map +0 -1
  1563. package/es/InputText-ce2272a8.js +0 -197
  1564. package/es/InputText-ce2272a8.js.map +0 -1
  1565. package/es/Label-56ca049f.js +0 -83
  1566. package/es/Label-56ca049f.js.map +0 -1
  1567. package/es/Layer-446bf21e.js +0 -91
  1568. package/es/Layer-446bf21e.js.map +0 -1
  1569. package/es/LayerHost-e6402730.js +0 -41
  1570. package/es/LayerHost-e6402730.js.map +0 -1
  1571. package/es/LayerManager-fa745cec.js +0 -34
  1572. package/es/LayerManager-fa745cec.js.map +0 -1
  1573. package/es/LineAreaChart-d3586935.js +0 -170
  1574. package/es/LineAreaChart-d3586935.js.map +0 -1
  1575. package/es/LineSeries-fc167ea2.js +0 -109
  1576. package/es/LineSeries-fc167ea2.js.map +0 -1
  1577. package/es/Link-98742013.js +0 -33
  1578. package/es/Link-98742013.js.map +0 -1
  1579. package/es/ListItemLayout-e9854821.js +0 -110
  1580. package/es/ListItemLayout-e9854821.js.map +0 -1
  1581. package/es/LiveRegion-b56a1aa2.js +0 -39
  1582. package/es/LiveRegion-b56a1aa2.js.map +0 -1
  1583. package/es/MaxLengthCounter-181b4fc9.js +0 -25
  1584. package/es/MaxLengthCounter-181b4fc9.js.map +0 -1
  1585. package/es/MaxLengthLiveRegion-2f3d34cf.js +0 -23
  1586. package/es/MaxLengthLiveRegion-2f3d34cf.js.map +0 -1
  1587. package/es/MenuButton-c00e269e.js +0 -61
  1588. package/es/MenuButton-c00e269e.js.map +0 -1
  1589. package/es/Message-b9e16c1c.js +0 -203
  1590. package/es/Message-b9e16c1c.js.map +0 -1
  1591. package/es/MessageLayer-7e3184aa.js +0 -58
  1592. package/es/MessageLayer-7e3184aa.js.map +0 -1
  1593. package/es/MessageToast-f9b0a234.js +0 -241
  1594. package/es/MessageToast-f9b0a234.js.map +0 -1
  1595. package/es/Modal-24a0bf4b.js +0 -288
  1596. package/es/Modal-24a0bf4b.js.map +0 -1
  1597. package/es/MonthView-5e633194.js +0 -208
  1598. package/es/MonthView-5e633194.js.map +0 -1
  1599. package/es/NavigationListItem-37edc23b.js +0 -150
  1600. package/es/NavigationListItem-37edc23b.js.map +0 -1
  1601. package/es/NumberInputText-f5d01daa.js +0 -220
  1602. package/es/NumberInputText-f5d01daa.js.map +0 -1
  1603. package/es/OverflowTabBar-87b36877.js +0 -69
  1604. package/es/OverflowTabBar-87b36877.js.map +0 -1
  1605. package/es/OverflowTabBarItem-a2684d2b.js +0 -86
  1606. package/es/OverflowTabBarItem-a2684d2b.js.map +0 -1
  1607. package/es/PictoChart-5b71908b.js +0 -744
  1608. package/es/PictoChart-5b71908b.js.map +0 -1
  1609. package/es/Popup-d8bf7f4d.js +0 -258
  1610. package/es/Popup-d8bf7f4d.js.map +0 -1
  1611. package/es/ProgressBar-2fa99d6f.js +0 -62
  1612. package/es/ProgressBar-2fa99d6f.js.map +0 -1
  1613. package/es/ProgressButton-9390070e.js +0 -56
  1614. package/es/ProgressButton-9390070e.js.map +0 -1
  1615. package/es/ProgressCircle-faf79b79.js +0 -48
  1616. package/es/ProgressCircle-faf79b79.js.map +0 -1
  1617. package/es/RadioItem-96cbf0ed.js +0 -113
  1618. package/es/RadioItem-96cbf0ed.js.map +0 -1
  1619. package/es/RadioSet-c51b3d56.js +0 -43
  1620. package/es/RadioSet-c51b3d56.js.map +0 -1
  1621. package/es/RemovableNavigationListItem-517d59b0.js +0 -24
  1622. package/es/RemovableNavigationListItem-517d59b0.js.map +0 -1
  1623. package/es/RemovableTabBarItem-87ba87ca.js +0 -36
  1624. package/es/RemovableTabBarItem-87ba87ca.js.map +0 -1
  1625. package/es/ReorderableTabBar-fc76a33b.js +0 -77
  1626. package/es/ReorderableTabBar-fc76a33b.js.map +0 -1
  1627. package/es/RevealToggleIcon-35baaadf.js +0 -26
  1628. package/es/RevealToggleIcon-35baaadf.js.map +0 -1
  1629. package/es/ScatterChart-449ec029.js +0 -103
  1630. package/es/ScatterChart-449ec029.js.map +0 -1
  1631. package/es/SectionedContent-3274d8f9.js +0 -64
  1632. package/es/SectionedContent-3274d8f9.js.map +0 -1
  1633. package/es/SelectMultiple-50995ef7.js +0 -1297
  1634. package/es/SelectMultiple-50995ef7.js.map +0 -1
  1635. package/es/SelectSingle-dcf0e9b1.js +0 -730
  1636. package/es/SelectSingle-dcf0e9b1.js.map +0 -1
  1637. package/es/SelectionCard-1ed9cf08.js +0 -16
  1638. package/es/SelectionCard-1ed9cf08.js.map +0 -1
  1639. package/es/SelectorAll-f52550a6.js +0 -69
  1640. package/es/SelectorAll-f52550a6.js.map +0 -1
  1641. package/es/Sheet-da412baf.js +0 -158
  1642. package/es/Sheet-da412baf.js.map +0 -1
  1643. package/es/SplitMenuButton-f44064de.js +0 -139
  1644. package/es/SplitMenuButton-f44064de.js.map +0 -1
  1645. package/es/StyledCard-362bd74b.js +0 -105
  1646. package/es/StyledCard-362bd74b.js.map +0 -1
  1647. package/es/StyledLabelValueLayout-d4881d3b.js +0 -18
  1648. package/es/StyledLabelValueLayout-d4881d3b.js.map +0 -1
  1649. package/es/TabBar-2858ff9c.js +0 -77
  1650. package/es/TabBar-2858ff9c.js.map +0 -1
  1651. package/es/TabBarMixed-a4beabce.js +0 -78
  1652. package/es/TabBarMixed-a4beabce.js.map +0 -1
  1653. package/es/TabBarMixedSeparator-51c518a1.js +0 -19
  1654. package/es/TabBarMixedSeparator-51c518a1.js.map +0 -1
  1655. package/es/Table-9919625b.js +0 -5497
  1656. package/es/Table-9919625b.js.map +0 -1
  1657. package/es/TableView-c97ef8ee.js +0 -31
  1658. package/es/TableView-c97ef8ee.js.map +0 -1
  1659. package/es/TagCloud-3f81d651.js +0 -824
  1660. package/es/TagCloud-3f81d651.js.map +0 -1
  1661. package/es/TextArea-2eb362ec.js +0 -160
  1662. package/es/TextArea-2eb362ec.js.map +0 -1
  1663. package/es/TextAreaAutosize-35a923c3.js +0 -244
  1664. package/es/TextAreaAutosize-35a923c3.js.map +0 -1
  1665. package/es/TimeComponentCanvas2D-9fd1f811.js +0 -568
  1666. package/es/TimeComponentCanvas2D-9fd1f811.js.map +0 -1
  1667. package/es/ToggleButton-cf8226d9.js +0 -28
  1668. package/es/ToggleButton-cf8226d9.js.map +0 -1
  1669. package/es/View-afe98b65.js +0 -167
  1670. package/es/View-afe98b65.js.map +0 -1
  1671. package/es/VisNoData-9ceb58f4.js +0 -32
  1672. package/es/VisNoData-9ceb58f4.js.map +0 -1
  1673. package/es/VisProgressiveLoader-36c728ac.js +0 -51
  1674. package/es/VisProgressiveLoader-36c728ac.js.map +0 -1
  1675. package/es/VisTabularDatatip-59629377.js +0 -24
  1676. package/es/VisTabularDatatip-59629377.js.map +0 -1
  1677. package/es/WindowOverlay-a07b2e24.js +0 -110
  1678. package/es/WindowOverlay-a07b2e24.js.map +0 -1
  1679. package/es/YearsGridView-d859edba.js +0 -187
  1680. package/es/YearsGridView-d859edba.js.map +0 -1
  1681. package/es/index-e33bcd96.js +0 -11
  1682. package/es/index-e33bcd96.js.map +0 -1
  1683. package/es/popupUtils-58411a98.js +0 -29
  1684. package/es/popupUtils-58411a98.js.map +0 -1
  1685. package/es/render-343557e9.js +0 -34
  1686. package/es/render-343557e9.js.map +0 -1
  1687. package/es/tabbableUtils-d6485f5e.js +0 -79
  1688. package/es/tabbableUtils-d6485f5e.js.map +0 -1
  1689. package/es/testData-d5181e9f.js +0 -256
  1690. package/es/testData-d5181e9f.js.map +0 -1
  1691. package/es/tooltipUtils-768450a7.js +0 -93
  1692. package/es/tooltipUtils-768450a7.js.map +0 -1
  1693. package/es/useCellNavigation-88a1754f.js +0 -126
  1694. package/es/useCellNavigation-88a1754f.js.map +0 -1
  1695. package/es/useChartDatatip-d6a6c5e1.js +0 -165
  1696. package/es/useChartDatatip-d6a6c5e1.js.map +0 -1
  1697. package/es/useChartMarquee-6587dbec.js +0 -293
  1698. package/es/useChartMarquee-6587dbec.js.map +0 -1
  1699. package/es/useColorScheme-c4e237ad.js +0 -19
  1700. package/es/useColorScheme-c4e237ad.js.map +0 -1
  1701. package/es/useCssVars-d72a8439.js +0 -58
  1702. package/es/useCssVars-d72a8439.js.map +0 -1
  1703. package/es/useCurrentBgColor-14745af3.js +0 -19
  1704. package/es/useCurrentBgColor-14745af3.js.map +0 -1
  1705. package/es/useCurrentKey-7287061f.js +0 -81
  1706. package/es/useCurrentKey-7287061f.js.map +0 -1
  1707. package/es/useDatatip-9635bc2f.js +0 -90
  1708. package/es/useDatatip-9635bc2f.js.map +0 -1
  1709. package/es/useDensity-c17603b2.js +0 -19
  1710. package/es/useDensity-c17603b2.js.map +0 -1
  1711. package/es/useFloating-953362cf.js +0 -1916
  1712. package/es/useFloating-953362cf.js.map +0 -1
  1713. package/es/useKeyboardEvents-2378a650.js +0 -78
  1714. package/es/useKeyboardEvents-2378a650.js.map +0 -1
  1715. package/es/useMeterDatatip-834e67e1.js +0 -73
  1716. package/es/useMeterDatatip-834e67e1.js.map +0 -1
  1717. package/es/useOutsideClick-fd9ad806.js +0 -101
  1718. package/es/useOutsideClick-fd9ad806.js.map +0 -1
  1719. package/es/usePopupAnimation-f017bc43.js +0 -85
  1720. package/es/usePopupAnimation-f017bc43.js.map +0 -1
  1721. package/es/usePrefixSuffix-5a74f2c4.js +0 -70
  1722. package/es/usePrefixSuffix-5a74f2c4.js.map +0 -1
  1723. package/es/usePressClick-2ec8e098.js +0 -31
  1724. package/es/usePressClick-2ec8e098.js.map +0 -1
  1725. package/es/useReorderableItem-22ea4c46.js +0 -268
  1726. package/es/useReorderableItem-22ea4c46.js.map +0 -1
  1727. package/es/useRovingTabIndexContainer-bc7ae447.js +0 -98
  1728. package/es/useRovingTabIndexContainer-bc7ae447.js.map +0 -1
  1729. package/es/useScale-83881775.js +0 -19
  1730. package/es/useScale-83881775.js.map +0 -1
  1731. package/es/useSelectCommon-34645d9a.js +0 -686
  1732. package/es/useSelectCommon-34645d9a.js.map +0 -1
  1733. package/es/useSelectDrill-88337c1a.js +0 -104
  1734. package/es/useSelectDrill-88337c1a.js.map +0 -1
  1735. package/es/useSelection-01b28be6.js +0 -186
  1736. package/es/useSelection-01b28be6.js.map +0 -1
  1737. package/es/useSelection-649fd4f1.js +0 -239
  1738. package/es/useSelection-649fd4f1.js.map +0 -1
  1739. package/es/useTestId-9b504481.js +0 -21
  1740. package/es/useTestId-9b504481.js.map +0 -1
  1741. package/es/useTheme-93c07059.js +0 -19
  1742. package/es/useTheme-93c07059.js.map +0 -1
  1743. package/es/useThemeInterpolations-8dd8029f.js +0 -57
  1744. package/es/useThemeInterpolations-8dd8029f.js.map +0 -1
  1745. package/es/useTooltip-89ca3f3e.js +0 -424
  1746. package/es/useTooltip-89ca3f3e.js.map +0 -1
  1747. package/es/useTooltipOnTruncation-175bf8a6.js +0 -27
  1748. package/es/useTooltipOnTruncation-175bf8a6.js.map +0 -1
  1749. package/es/useTranslationBundle-09302c20.js +0 -29
  1750. package/es/useTranslationBundle-09302c20.js.map +0 -1
  1751. package/es/useUser-1cd223a9.js +0 -19
  1752. package/es/useUser-1cd223a9.js.map +0 -1
  1753. package/es/useVisDragModeControls-40fc83b5.js +0 -87
  1754. package/es/useVisDragModeControls-40fc83b5.js.map +0 -1
  1755. package/es/useVisEvents-8877743b.js +0 -153
  1756. package/es/useVisEvents-8877743b.js.map +0 -1
  1757. package/es/withDirectionIcon-19a1d777.js +0 -14
  1758. package/es/withDirectionIcon-19a1d777.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageToast-236687bd.js","sources":["../../src/UNSAFE_MessageToast/MessageToast.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { ComponentChildren, ComponentProps, RefObject } from 'preact';\nimport { useCallback, useEffect, useImperativeHandle, useRef, useState } from 'preact/hooks';\nimport { EnvironmentProvider } from '../UNSAFE_Environment';\nimport {\n FocusableComponentHandle,\n useMessageFocusManager\n} from '../hooks/PRIVATE_useMessagesFocusManager';\nimport { useBreakpointValues } from '../hooks/UNSAFE_useBreakpointValues';\nimport { useMessagesContext } from '../hooks/UNSAFE_useMessagesContext';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { getRenderer, Message, MessagesManager } from '../PRIVATE_Message';\nimport { MessageLayer } from '../PRIVATE_MessageLayer';\nimport { BundleType } from '../resources/nls/bundle';\nimport { Flex } from '../UNSAFE_Flex';\nimport { FocusTrap } from '../UNSAFE_FocusTrap';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport { Item, ItemMetadata } from '../utils/UNSAFE_dataProvider';\nimport { Size } from '../utils/UNSAFE_size';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { MessageToastRedwoodTheme } from './themes/redwood/MessageToastTheme';\nimport { type TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport { xUnits } from '#UNSAFE_Theme';\n\n// TODO: refactor types so we don't repeat them here and MessageLayer\n// \nconst positions = [\n 'top',\n 'top-left',\n 'top-right',\n 'top-start',\n 'top-end',\n 'bottom',\n 'bottom-left',\n 'bottom-right',\n 'bottom-start',\n 'bottom-end'\n] as const;\n\ntype Position = (typeof positions)[number];\n\ntype Offset =\n | number\n | {\n horizontal?: number;\n vertical?: number;\n };\n\n// TODO: Refactor Message Item types\n// \n\n/**\n * An object representing a single message in MessageToast component.\n */\nexport type MessageToastItem = {\n /**\n * Defines whether or not to include the close icon for the message\n *\n * @default 'on'\n */\n closeAffordance?: 'on' | 'off';\n\n /**\n * Defines the detail text of the message\n */\n detail?: string;\n\n /**\n * Defines the severity of the message\n *\n * @default 'error'\n */\n severity?: 'none' | 'error' | 'warning' | 'confirmation' | 'info';\n\n /**\n * Defines the sound to be played when opening the message\n *\n * @default 'none'\n */\n sound?: 'default' | 'none' | string;\n\n /**\n * Defines the primary text of the message\n */\n summary?: string;\n\n /**\n * Defines the time after which the message is to be closed automatically\n *\n * on - default of 5s\n * off - no auto timeout, manually dismissed\n * number - seconds in milliseconds format\n *\n * @default 'off'\n */\n autoTimeout?: 'on' | 'off' | number;\n};\n\n/**\n * Structure of data item passed to the renderers\n */\nexport type MessageToastRendererDataItem<K, D> = {\n /**\n * The data for the current message\n */\n data: D;\n\n /**\n * The key for the current message\n */\n key: K;\n\n /**\n * The metadata for the current message\n */\n metadata?: ItemMetadata<K>;\n};\n\ntype Props<Key, Data> = TestIdProps & {\n /**\n * Defines the fixed position where the notifications will to be placed on the screen.\n * - top-start resolves to top-left in LTR (top-right in RTL)\n * - top-end resolves to top-right in LTR (top-left in RTL)\n * - bottom-start resolves to bottom-left in LTR (bottom-right in RTL)\n * - bottom-end resolves to bottom-right in LTR (bottom-left in RTL)\n *\n * default bottom\n */\n position?: Position;\n\n /**\n * Defines an offset (in pixels) in the placement. Value can be supplied as a number or\n * an object with horizontal and vertical values.\n *\n * default 0\n */\n offset?: Offset;\n\n /**\n * Data for the MessageToast component. This data is used for rendering each toast message.\n * The key for each message will be configured using the key of the corresponding item. This way,\n * the component will know whether a new message is being added or an existing message is being updated/removed\n * when the new data comes in.\n */\n data: Item<Key, Data>[];\n\n /**\n * Triggered when a user tries to close a message through UI interaction. The application\n * should listen to this event and remove the corresponding message item from the data\n * which would then result in the message closed. If the application\n * fails to remove the message item from the data, then no change will be done in the\n * UI by the component and the message will stay in the UI opened.\n */\n onClose?: (item: Item<Key, Data>) => void;\n\n /**\n * Applications can use this property to provide the key of a renderer or a function that\n * returns the key of a renderer to use for rendering the detail content.\n *\n * When a renderer key is provided as a value for this property, the corresponding renderer\n * will be used for rendering the detail content for all the messages. If applications want\n * to use a different renderer for different messages, they can provide a function that\n * returns a renderer key instead.\n *\n * The provided function should accept an Item and return a key to a renderer for\n * rendering the corresponding message's detail content. The value returned from this function\n * should be a key to one of the renderers provided. If the returned value is not\n * one of the keys of the provided renderers, the component will throw an Error.\n *\n * If the function returns undefined, the component then will perform default rendering\n * of the detail content using the detail property of the corresponding message.\n *\n * If an application specifies both detail and a valid detailRendererKey, the detailRendererKey will\n * take precedence and the corresponding renderer will be used for rendering the detail content.\n */\n detailRendererKey?: string | ((item: Item<Key, Data>) => string | undefined);\n\n /**\n * Applications can use this property to provide the key of a renderer or a function that\n * returns the key of the renderer to use for rendering the start icon.\n *\n * When a renderer key is provided as a value for this property, the corresponding renderer\n * will be used for rendering the start icon for all the messages. If applications want\n * to use a different renderer for different messages, they can provide a function that\n * returns a renderer key instead.\n *\n * The provided function should accept an Item and return a key to a renderer for\n * rendering the corresponding message's start icon. The value returned from this function\n * should be a key to one of the renderers provided. If the returned value is not\n * one of the keys of the provided renderers, the component will throw an Error.\n *\n * If the function returns undefined, the component then will perform default rendering\n * of the start icon using the severity property of the corresponding message.\n *\n * If an application specifies both severity and a valid iconRendererKey, the iconRendererKey will\n * take precedence and the corresponding renderer will be used for rendering the start icon.\n */\n iconRendererKey?: string | ((item: Item<Key, Data>) => string | undefined);\n\n /**\n * A set of available renderers for rendering the message content. Which renderer is used\n * for rendering which content will be decided by specific properties in the row data.\n */\n renderers?: Record<string, (data: MessageToastRendererDataItem<Key, Data>) => ComponentChildren>;\n};\n\n/**\n * Animation states for toast messages\n * TODO: Get this from theme context provider\n */\nconst animationStates: ComponentProps<typeof MessagesManager>['animationStates'] = {\n entering: (node) => ({\n from: {\n transform: `translate(0, ${node.offsetHeight}px)`,\n opacity: 1\n },\n to: {\n transform: 'translate(0, 0)',\n opacity: 1\n },\n end: {\n transform: 'unset',\n opacity: 1\n },\n options: {\n duration: 250\n }\n }),\n exiting: {\n from: {\n opacity: 1\n },\n to: {\n opacity: 0\n },\n end: {\n opacity: 0\n },\n options: {\n duration: 250\n }\n }\n};\nconst initialAnimationStyles = {\n opacity: 0\n} as const;\n\n/**\n * Message toasts are short, non-critical, auto-dismissible messages that communicate non-disruptive contextual messages.\n */\n\nexport function MessageToast<K extends string | number, D extends MessageToastItem>({\n data,\n detailRendererKey,\n iconRendererKey,\n renderers,\n onClose,\n offset,\n position,\n testId\n}: Props<K, D>) {\n const testIdProps = useTestId(testId);\n const messagesRef = useRef(new Map<K, HTMLDivElement | null>());\n const autoFocusRef = useRef<HTMLDivElement>(null) as RefObject<HTMLDivElement | null>;\n const containerDivRef = useRef<HTMLDivElement>(null);\n const focusHandleRef = useRef<FocusableComponentHandle>(null);\n const [liveRegionText, setLiveRegionText] = useState<string>();\n const [shouldRender, setShouldRender] = useState(data.length > 0);\n const [shouldTrapFocus, setShouldTrapFocus] = useState(false);\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const { UNSAFE_messagesLayerId } = useMessagesContext();\n\n // We need a ref that holds the current & previous data length, as the exiting\n // node will always call handleNextFocus with previous data.\n // As in TransitionGroup, when an item is removed from the data, a new vnode\n // will not be created instead previous vnode will be used. So, the new handleNextFocus\n // will not be called when the old vnode exits. Thus, we will be using a ref\n // to always get the correct current data length.\n const dataLengthRef = useRef(data.length);\n const prevDataLengthRef = useRef(0);\n // Update the data length ref\n dataLengthRef.current = data.length;\n\n // Update the focusHandleRef\n useImperativeHandle(\n focusHandleRef,\n () => ({\n focus: () => {\n // Only trigger focus if the component is rendering messages\n if (data.length) {\n // set the autoFocus ref to the first message and enable the focus trap\n // this will automatically focus the first message\n autoFocusRef.current = messagesRef.current.get(data[0].key) ?? null;\n setShouldTrapFocus(true);\n return true;\n }\n return false;\n },\n contains: (element: Element) => {\n // Only invoke method if the component is rendering messages\n if (data.length && element) {\n return containerDivRef.current?.contains(element) ?? false;\n }\n return false;\n }\n }),\n [data]\n );\n\n // Register handlers for focus management\n const { controller, handlers } = useMessageFocusManager(\n focusHandleRef,\n {\n onFocus: useCallback(() => {\n setLiveRegionText(translations.message_navigationFromMessagesRegion());\n }, [translations]),\n onFocusLeave: useCallback(() => {\n // disable trap which should revert the focus back to the last focused item\n setShouldTrapFocus(false);\n }, [])\n },\n {\n // we do not want the focus manager to handle Esc key as we handle it using the\n // FocusTrap here\n handleEscapeKey: false\n }\n );\n\n /**\n * Handles focus when a message is closed and animated away from the DOM\n * @param key The key of the message\n * @param index The index of the message\n */\n const handleNextFocus = useCallback(\n (_key: K, index: number, closedMessageNode?: Element) => {\n const isClosedMessageFocused = closedMessageNode?.contains(document.activeElement);\n\n // If there are no messages, do not render anything. As the old messages\n // are still in the DOM, use the data count to determine what to do next as it\n // represents the next state.\n if (dataLengthRef.current === 0) {\n setShouldRender(false);\n setShouldTrapFocus(false);\n // If the current message holds focus, then restore previous focus\n if (isClosedMessageFocused) {\n // As we have FocusTrap, trying to restore focus now will simply result in focus being pulled\n // back again. So, we restore the focus in the next tick so that the rendering will have been\n // done in the microtask.\n setTimeout(() => controller.restorePriorFocus(), 0);\n }\n return;\n }\n\n // In TransitionGroup, when an item is removed from the data, a new vnode\n // will not be created instead previous vnode will be used. So, the new handleNextFocus\n // will not be called when the old vnode exits. Thus, all the deps will not be pointing to\n // the current references, rather they will be pointing to the ones where this vnode\n // last existed in the data.\n // This means, the data will contain the closing message as well. But, all the ref objects\n // still point to the most up-to-date values. With that in mind, we will be evaluating the\n // following values.\n const renderedMessagesCount = data.length;\n\n // Now that this message is closed, focus the next message that will take this index. If no\n // message will take this message's index, then it means that this is the last message. If\n // that is the case, focus the message at the previous index.\n // Use the count of the messages that are currently shown in the UI (current state including\n // the message that will be removed). This way we can get the correct item from the data\n // as it will contain the closing message as well.\n const nextMessageIndexToFocus = index + 1 < renderedMessagesCount ? index + 1 : index - 1;\n\n // if next message is available then transfer the focus to the next element\n if (nextMessageIndexToFocus > -1 && isClosedMessageFocused) {\n const nextMessageKey = data[nextMessageIndexToFocus].key;\n messagesRef.current.get(nextMessageKey)?.focus();\n }\n },\n [controller, data]\n );\n\n // We will be using a function based ref to store the refs in the Map\n const setHTMLDivElement = useCallback(\n // TODO: use ramda.curry here (currently it is throwing ts error when used with generics)\n (key: K) => {\n return (ref: HTMLDivElement | null) => messagesRef.current.set(key, ref);\n },\n []\n );\n // Prioritize this component whenever the data changes and\n // the new data has at least one message\n useEffect(() => {\n const previousDataLength = prevDataLengthRef.current;\n prevDataLengthRef.current = data.length;\n\n // if there are messages that need to be rendered now, then do the following deeds:\n // 1. set the shouldRender flag\n // 2. set the live region\n // 3. prioritize this message component to be the latest\n if (data.length) {\n // set state to render content whenever the data is not empty\n setShouldRender(true);\n if (data.length > previousDataLength) {\n // Only when having a new message, update the aria-live area with the\n // text to indicate how to get the focus to the new message.\n setLiveRegionText(translations.message_navigationToMessagesRegion());\n }\n controller.prioritize();\n return;\n }\n\n // if there were messages and now removed, then set the live region to\n // announce this information\n if (previousDataLength) {\n setLiveRegionText(translations.messageToast_allMessagesClosed());\n return;\n }\n\n // When there are no messages, clear the live region so that\n // the navigation text will be read when a new message appear\n setLiveRegionText('');\n }, [controller, data.length, translations]);\n\n // determine responsive max-width\n const maxWidth = useBreakpointValues<Size>({\n sm: `calc(100vw - ${xUnits(8)})`,\n md: `calc(100vw - ${xUnits(12)})`,\n lg: `calc(150 * ${xUnits(1)})`\n });\n // without offset, the messages will be hugging the vertical edges of the screen\n // so we will set a default offset.vertical value (any offset from the props will be\n // added to this).\n const paddedOffset = useBreakpointValues<Offset>({\n sm: {\n horizontal: typeof offset === 'number' ? offset : offset?.horizontal ?? 0,\n vertical: 16 + (typeof offset === 'number' ? offset : offset?.vertical ?? 0)\n },\n lg: {\n horizontal: typeof offset === 'number' ? offset : offset?.horizontal ?? 0,\n vertical: 24 + (typeof offset === 'number' ? offset : offset?.vertical ?? 0)\n }\n });\n\n const { classes } = useComponentTheme(MessageToastRedwoodTheme);\n\n // When both shouldRender flag is false and no data to render, do not render\n // anything except the live region\n if (!shouldRender && data.length === 0) {\n return <LiveRegion>{liveRegionText}</LiveRegion>;\n }\n\n // TODO - Message Toast shouldn't always render as 'dark', it should be the inverse of the root environment context\n // See JET-57590\n return (\n <EnvironmentProvider environment={{ colorScheme: 'dark' }}>\n <MessageLayer offset={paddedOffset} position={position}>\n <div\n class={classes}\n ref={containerDivRef}\n tabIndex={-1} // Need to add tabindex to make the container receive the focus events\n id={UNSAFE_messagesLayerId}\n {...handlers}\n {...testIdProps}>\n <FocusTrap autoFocusRef={autoFocusRef} isDisabled={!shouldTrapFocus}>\n <Flex direction=\"column\" gap=\"1x\" align=\"center\" maxWidth={maxWidth}>\n <MessagesManager\n animationStates={animationStates}\n initialAnimationStyles={initialAnimationStyles}\n data={data}\n onMessageWillRemove={handleNextFocus}>\n {({ item }) => (\n <Message\n messageRef={setHTMLDivElement(item.key)}\n item={item}\n detailRenderer={getRenderer(item, detailRendererKey, renderers)}\n iconRenderer={getRenderer(item, iconRendererKey, renderers)}\n key={item.key}\n onClose={onClose}\n variant=\"toast\"\n />\n )}\n </MessagesManager>\n </Flex>\n </FocusTrap>\n </div>\n </MessageLayer>\n <LiveRegion>{liveRegionText}</LiveRegion>\n </EnvironmentProvider>\n );\n}\n"],"names":["animationStates","entering","node","from","transform","offsetHeight","opacity","to","end","options","duration","exiting","initialAnimationStyles","data","detailRendererKey","iconRendererKey","renderers","onClose","offset","position","testId","testIdProps","useTestId","messagesRef","useRef","Map","autoFocusRef","containerDivRef","focusHandleRef","liveRegionText","setLiveRegionText","useState","shouldRender","setShouldRender","length","shouldTrapFocus","setShouldTrapFocus","translations","useTranslationBundle","UNSAFE_messagesLayerId","useMessagesContext","dataLengthRef","prevDataLengthRef","current","useImperativeHandle","focus","get","key","contains","element","controller","handlers","useMessageFocusManager","onFocus","useCallback","message_navigationFromMessagesRegion","onFocusLeave","handleEscapeKey","handleNextFocus","_key","index","closedMessageNode","isClosedMessageFocused","document","activeElement","setTimeout","restorePriorFocus","nextMessageIndexToFocus","nextMessageKey","setHTMLDivElement","ref","set","useEffect","previousDataLength","message_navigationToMessagesRegion","prioritize","messageToast_allMessagesClosed","maxWidth","useBreakpointValues","sm","xUnits","md","lg","paddedOffset","horizontal","vertical","classes","useComponentTheme","MessageToastRedwoodTheme","_jsxs","EnvironmentProvider","environment","colorScheme","children","_jsx","MessageLayer","class","tabIndex","id","FocusTrap","isDisabled","Flex","direction","gap","align","jsx","MessagesManager","onMessageWillRemove","item","Message","messageRef","detailRenderer","getRenderer","iconRenderer","variant","LiveRegion"],"mappings":"k8BAyNA,MAAMA,EAA6E,CACjFC,SAAWC,IAAU,CACnBC,KAAM,CACJC,UAAW,gBAAgBF,EAAKG,kBAChCC,QAAS,GAEXC,GAAI,CACFH,UAAW,kBACXE,QAAS,GAEXE,IAAK,CACHJ,UAAW,QACXE,QAAS,GAEXG,QAAS,CACPC,SAAU,OAGdC,QAAS,CACPR,KAAM,CACJG,QAAS,GAEXC,GAAI,CACFD,QAAS,GAEXE,IAAK,CACHF,QAAS,GAEXG,QAAS,CACPC,SAAU,OAIVE,EAAyB,CAC7BN,QAAS,4BAOyEO,KAClFA,EAAIC,kBACJA,EAAiBC,gBACjBA,EAAeC,UACfA,EAASC,QACT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WwE,SACfC,EAAAA,IAACK,EAASA,WAACzE,aAAcA,EAAc0E,YAAajE,EAClD0D,SAAAC,EAAAA,IAACO,EAAIA,KAAC,CAAAC,UAAU,SAASC,IAAI,KAAKC,MAAM,SAAS3B,SAAUA,EACzDgB,SAAAC,EAAAW,IAACC,kBACC,CAAA1G,gBAAiBA,EACjBY,uBAAwBA,EACxBC,KAAMA,EACN8F,oBAAqBjD,EAAemC,SACnC,EAAGe,UACFd,MAACe,EAAAA,QAAO,CACNC,WAAYzC,EAAkBuC,EAAK7D,KACnC6D,KAAMA,EACNG,eAAgBC,cAAYJ,EAAM9F,EAAmBE,GACrDiG,aAAcD,EAAWA,YAACJ,EAAM7F,EAAiBC,GAEjDC,QAASA,EACTiG,QAAQ,SAFHN,EAAK7D,eAUxB+C,EAAAA,IAACqB,EAAUA,WAAA,CAAAtB,SAAEhE,OAtCRiE,EAACW,IAAAU,EAAUA,WAAE,CAAAtB,SAAAhE,GAyCxB"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', './dayUtils-619d141a', './getFormatParse-3d7186b3', './logger-0f873e29', './calendarDateUtils-5e25297c', 'preact/hooks', './StyledDatePickerButton-e886e52a', 'preact/compat', './useTranslationBundle-7c40cb58', './useCellNavigation-47060bc3', './PRIVATE_MonthView/themes/DayCellStyles.css', './useUser-797287de', './Grid-a8a51c37', './PRIVATE_MonthView/themes/redwood/MonthViewTheme', './useComponentTheme-5aa41a8f', './PRIVATE_MonthView/themes/MonthViewContract.css', './PRIVATE_MonthView/themes/WeekNumberCellStyle.css'], (function(e,t,a,s,o,r,n,i,l,d,c,u,h,m,y,p,g,D){"use strict";const w=()=>({state:"enabled"}),b=e=>{const{buttonProps:a}=(({date:e,dayFormatter:t=w,dateFormatter:a,isAdjacentMonth:s,isDisabled:o,isFocusable:n,isFocused:i,isHidden:u,isReadonly:h,isSelected:m,isToday:y,onAction:p,onNavigation:g})=>{const{state:D}=t(e),b="disabled"===D,T="restricted"===D,f=c.useFocusableCell({isFocusable:n,isFocused:i}),k=l.useCallback((e=>{o||h||b||T||p(e)}),[o,b,h,T,p]),S=c.useCellNavigation({navigationMap:{ArrowLeft:{ltr:"previousDay",rtl:"nextDay"},ArrowRight:{ltr:"nextDay",rtl:"previousDay"},ArrowDown:"nextWeek",ArrowUp:"previousWeek",PageDown:"nextMonth",PageUp:"previousMonth",Home:"firstDayOfMonth",End:"lastDayOfMonth",ShiftPageDown:"nextYear",ShiftPageUp:"previousYear",CtrlAltT:"today"},payload:{date:e},onAction:k,onNavigation:g}),x=d.useTranslationBundle("@oracle/oraclejet-preact"),C=x.datePicker_today(),M=x.datePicker_selected(),v=x.datePicker_restricted(),j=a(r.getIsoDateStr(e.year,e.month,e.day));let P=y?`${C}, ${j}`:j;P=T?`${P}, ${v}`:P,P=m?`${P}, ${M}`:P;const V=r.toJSDate(e.year,e.month,e.day).getDate().toString();return{buttonProps:{"aria-label":P,...(u||o||b||T)&&{"aria-disabled":!0},isActivable:!(o||h||b||T),isAdjacentMonth:s,isDimmed:o||b,isHidden:u,isHoverable:!(o||h||b||T),isReadonly:h,isSelected:m,isRestricted:T,isToday:y,label:V,...f,...S}}})(e);return t.jsx("div",{role:"gridcell",class:u.dayCellStyles,children:t.jsx(i.StyledDatePickerButton,{...a})})},T=({startDateOfWeek:e})=>{const a=(e=>{const t=r.toJSDate(e.year,e.month,e.day),a=t.getUTCDay();0!==a&&1!==a&&6!==a&&o.warn("calculateWeekNumber's date property's getUTCDay() is assumed to be 0 (Sunday), 1 (Monday) or 6 (Saturday)\n since that is the first day of the week for the locale's JET supports."),1!==a&&t.setUTCDate(t.getUTCDate()+(0===a?1:2)),t.setUTCDate(t.getUTCDate()+3);const s=r.toJSDate(t.getUTCFullYear(),1,1);return Math.floor(Math.round((t.getTime()-s.getTime())/864e5)/7)+1})(e),s=d.useTranslationBundle("@oracle/oraclejet-preact");return t.jsx("div",{"aria-label":s.datePicker_weekNum({NUM:String(a)}),class:D.weekNumberCellStyles,role:"rowheader",children:t.jsx("span",{class:D.weekNumberStyles,children:a})})};function f(e,t){return e.year===t.year&&e.month===t.month&&e.day===t.day}e.MonthView=({dayFormatter:e,daysOutsideMonth:o="hidden",isReadonly:i=!1,max:l,min:d,onAction:c,onNavigation:u,selectedDate:D,focusableDate:w,isFocused:k=!1,testId:S,todaysDate:x,weekDisplay:C="none"})=>{const{locale:M}=h.useUser(),v=a.getWeeksInMonth(w.year,w.month,M),{baseTheme:j,styles:P}=p.useComponentTheme(y.MonthViewRedwoodTheme,{}),V="number"===C,A=`repeat(${V?8:7}, 1fr)`,F=n.useMemo((()=>{r.checkNoCalendarExtension(M);const e={locale:M,dateStyle:"full"},{format:t}=s.getFormatParse(e);return t}),[M]),U=r.formatFullCalendarDate(M,w,"month");return t.jsx("div",{class:j,children:t.jsxs(m.Grid,{gap:g.monthViewScaleVars.rowGap,"aria-label":U,role:"grid",testId:S,children:[(()=>{const e=a.getDaysOfWeekNames(M,"short");return t.jsx("div",{class:P.sticky,children:t.jsxs(m.Grid,{role:"row","aria-hidden":"true",gridTemplateColumns:A,gap:g.monthViewScaleVars.columnGap,children:[V&&t.jsx("div",{role:"presentation"}),e.map((e=>t.jsx("div",{role:"columnheader",class:P.dayOfTheWeek,children:t.jsx("span",{children:e})})))]})})})(),(()=>{const s=[];for(let n=0;n<v;n++){const h=a.getStartOfWeek(w.year,w.month,1,M),y=a.getDatesInWeek(n,h.year,h.month,h.day),p=y.map((a=>{const s=r.isDateOutOfRange(a,d,l),n=!!D&&f(a,D),h=f(a,x),m=f(a,w),y=(p=w,a.month!==p.month);var p;const g=y&&"hidden"===o;return t.jsx(b,{date:a,dateFormatter:F,dayFormatter:e,isAdjacentMonth:y,isDisabled:s,isFocusable:m,isFocused:m&&k,isHidden:g,isReadonly:i,isSelected:n,isToday:h,onAction:c,onNavigation:u},`${a.year}-${a.month}-${a.day}`)}));s.push(t.jsxs(m.Grid,{role:"row",gridTemplateColumns:A,gap:g.monthViewScaleVars.columnGap,children:[V&&t.jsx(T,{startDateOfWeek:y[0]}),p]},n))}return s})()]})})}}));
2
- //# sourceMappingURL=MonthView-c8a6ab15.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MonthView-c8a6ab15.js","sources":["../../src/PRIVATE_MonthView/useDayCell.ts","../../src/PRIVATE_MonthView/DayCell.tsx","../../src/PRIVATE_MonthView/WeekNumberCell.tsx","../../src/PRIVATE_MonthView/MonthView.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { DateISOStr } from '#UNSAFE_IntlDateTime';\nimport { FormatterFunc } from '#UNSAFE_IntlFormatParse';\nimport { getIsoDateStr, toJSDate } from '#utils/UNSAFE_calendarDateUtils';\nimport { ComponentProps, useCallback } from 'preact/compat';\n\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { useFocusableCell } from '#UNSAFE_DatePicker/useFocusableCell';\nimport { useCellNavigation } from '#UNSAFE_DatePicker/useCellNavigation';\nimport { StyledDatePickerButton } from '#PRIVATE_StyledDatePickerButton';\n\ntype NavigationDirections =\n | 'previousDay'\n | 'nextDay'\n | 'previousWeek'\n | 'nextWeek'\n | 'previousMonth'\n | 'nextMonth'\n | 'previousYear'\n | 'nextYear'\n | 'firstDayOfMonth'\n | 'lastDayOfMonth'\n | 'today';\n\nexport type DayFormatOptions = {\n state: 'enabled' | 'disabled' | 'restricted';\n};\n\n// These are the properties the useDayCell hook takes.\nexport type UseDayCellProps = {\n /**\n * Date of the day cell. This will be formatted as a full date and put in the aria-label.\n */\n date: CalendarDateRequired;\n /**\n * A function used to format the day cell date as a full date.\n */\n dateFormatter: FormatterFunc<DateISOStr>;\n /**\n * A function that receives a date and returns an object specifying how to format the provided date.\n * This function is called for each date that is rendered and this can be used to control how individual\n * dates are rendered - disabled, restricted, or enabled.\n * @param date The date to format\n * @returns The format options\n */\n dayFormatter?: (date: CalendarDateRequired) => DayFormatOptions;\n /**\n * Whether the day cell is in an adjacent month, not the current month.\n */\n isAdjacentMonth: boolean;\n /**\n * Whether the day cell is disabled, like if it is out of the min/max range.\n */\n isDisabled?: boolean;\n /**\n * Whether the day cell is focusable, meaning it will have tabIndex 0.\n */\n isFocusable: boolean;\n /**\n * Whether the day cell has focus.\n */\n isFocused: boolean;\n /**\n * Whether the day cell is hidden. For example, days outside of the current month are hidden by default.\n */\n isHidden: boolean;\n /**\n * Whether the day cell is readonly. It is not activeable.\n */\n isReadonly: boolean;\n /**\n * Whether the day cell looks selected.\n */\n isSelected: boolean;\n /**\n * Whether the day cell's date is today.\n */\n isToday: boolean;\n /**\n * A callback that will be invoked when the user selects the date by clicking on a day cell or selecting the enter or space key on a day cell.\n * @param payload The payload containing the date represented by this cell.\n */\n onAction: (payload: { date: CalendarDateRequired }) => void;\n /**\n * A callback that will be invoked when the user navigates.\n */\n onNavigation: (detail: { direction: NavigationDirections; date: CalendarDateRequired }) => void;\n};\n\n/**\n * The useDayCell hook returns properties for an individual DayCell. The properties returned should be spread on the StyledDatePickerButton.\n * These include the event handlers for keydown and click.\n */\nexport const useDayCell = ({\n date,\n dayFormatter = defaultDayFormatter,\n dateFormatter,\n isAdjacentMonth,\n isDisabled,\n isFocusable,\n isFocused,\n isHidden,\n isReadonly,\n isSelected,\n isToday,\n onAction,\n onNavigation\n}: UseDayCellProps) => {\n // apply day formatting\n const { state } = dayFormatter(date);\n const isDisabledFormat = state === 'disabled';\n const isRestrictedFormat = state === 'restricted';\n\n // Focus the day cell with isFocused true when the state updates.\n const buttonProps = useFocusableCell({ isFocusable, isFocused });\n // Override onAction to not call it if disabled, readonly or restricted\n const handleAction: UseDayCellProps['onAction'] = useCallback(\n (payload) => {\n if (isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat) return;\n onAction(payload);\n },\n [isDisabled, isDisabledFormat, isReadonly, isRestrictedFormat, onAction]\n );\n const buttonEventHandlers = useCellNavigation({\n navigationMap: {\n ArrowLeft: { ltr: 'previousDay', rtl: 'nextDay' },\n ArrowRight: { ltr: 'nextDay', rtl: 'previousDay' },\n ArrowDown: 'nextWeek',\n ArrowUp: 'previousWeek',\n PageDown: 'nextMonth',\n PageUp: 'previousMonth',\n Home: 'firstDayOfMonth',\n End: 'lastDayOfMonth',\n ShiftPageDown: 'nextYear',\n ShiftPageUp: 'previousYear',\n CtrlAltT: 'today'\n },\n payload: { date },\n onAction: handleAction,\n onNavigation\n });\n\n // For accessibility, we want a full date.\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const today = translations.datePicker_today();\n const selected = translations.datePicker_selected();\n const restricted = translations.datePicker_restricted();\n\n const dateIsoStr = getIsoDateStr(date.year, date.month, date.day);\n const formattedDate = dateFormatter(dateIsoStr);\n let ariaLabel = isToday ? `${today}, ${formattedDate}` : formattedDate;\n ariaLabel = isRestrictedFormat ? `${ariaLabel}, ${restricted}` : ariaLabel;\n ariaLabel = isSelected ? `${ariaLabel}, ${selected}` : ariaLabel;\n const dayOfMonth = toJSDate(date.year, date.month, date.day).getDate().toString();\n\n return {\n buttonProps: {\n 'aria-label': ariaLabel,\n ...((isHidden || isDisabled || isDisabledFormat || isRestrictedFormat) && {\n 'aria-disabled': true\n }),\n isActivable: !(isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat),\n isAdjacentMonth,\n isDimmed: isDisabled || isDisabledFormat,\n isHidden,\n isHoverable: !(isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat),\n isReadonly,\n isSelected,\n isRestricted: isRestrictedFormat,\n isToday,\n label: dayOfMonth,\n ...buttonProps,\n ...buttonEventHandlers\n } as ComponentProps<typeof StyledDatePickerButton>\n };\n};\n\n/**\n * A default day formatter that always formats as enabled state.\n */\nconst defaultDayFormatter = () => ({ state: 'enabled' }) as DayFormatOptions;\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { StyledDatePickerButton } from '#PRIVATE_StyledDatePickerButton';\nimport { UseDayCellProps, useDayCell } from './useDayCell';\nimport { dayCellStyles } from './themes/DayCellStyles.css';\n\ntype PickedUseDayCellProps = Pick<\n UseDayCellProps,\n | 'date'\n | 'dateFormatter'\n | 'dayFormatter'\n | 'isAdjacentMonth'\n | 'isDisabled'\n | 'isFocusable'\n | 'isFocused'\n | 'isHidden'\n | 'isReadonly'\n | 'isSelected'\n | 'isToday'\n | 'onAction'\n | 'onNavigation'\n>;\n\ntype DayCellProps = PickedUseDayCellProps;\n\n/**\n * The DayCell is the cell within the DatePicker's month view that contains the day in the month view.\n * This component will format the date for the aria-label.\n * The DayCell components uses the useDayCell hook to handle the user interactions with the day cell.\n */\nexport const DayCell = (props: DayCellProps) => {\n const { buttonProps } = useDayCell(props);\n // buttonProps, e.g., tabIndex, aria-label, onclick, onkeydown and visual states\n return (\n <div role=\"gridcell\" class={dayCellStyles}>\n <StyledDatePickerButton {...buttonProps} />\n </div>\n );\n};\n","import { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { CalendarDateRequired, toJSDate } from '#utils/UNSAFE_calendarDateUtils';\nimport { weekNumberCellStyles, weekNumberStyles } from './themes/WeekNumberCellStyle.css';\nimport * as Logger from '../utils/UNSAFE_logger';\n\ntype Props = {\n /**\n * startDateOfWeek is the first date of the week row\n */\n startDateOfWeek: CalendarDateRequired;\n};\n\n/**\n * The ISO 8601 definition for week 01 is the week with the first Thursday of the Gregorian year (i.e. of January) in it.\n * https://en.wikipedia.org/wiki/ISO_week_date\n * @param date The first date of the week row to be used to calculate the week number.\n * The date must be a Saturday, Sunday, or Monday. We assume this because the week for\n * all the locales we support start on one of these days.\n * @returns the number of week in the year\n */\nconst calculateWeekNumber = (date: CalendarDateRequired) => {\n const checkDate = toJSDate(date.year, date.month, date.day);\n const dayNumber = checkDate.getUTCDay(); // 0 for Sunday, 1 for Monday, 2 for Tuesday, etc.\n\n if (dayNumber !== 0 && dayNumber !== 1 && dayNumber !== 6) {\n // This message is for internal JET developers. We should never see this message. In all locales the day of the\n // week starts on Sunday, Monday or Saturday.\n Logger.warn(`calculateWeekNumber's date property's getUTCDay() is assumed to be 0 (Sunday), 1 (Monday) or 6 (Saturday)\n since that is the first day of the week for the locale's JET supports.`);\n }\n\n // For ISO week, we set the start of the week to Monday\n if (dayNumber !== 1) {\n // If it is already Monday, do nothing.\n // If it is Sunday (0), add 1 to move it up to Monday.\n // If it is Saturday (6), move it up two days to Monday.\n checkDate.setUTCDate(checkDate.getUTCDate() + (dayNumber === 0 ? 1 : 2));\n }\n\n // Find Thursday (day value of 4) of this week. Since we know checkDate at this point is a Monday,\n // we move it up 3 days.\n checkDate.setUTCDate(checkDate.getUTCDate() + 3);\n\n // Create the start of the year date\n const janFirst = toJSDate(checkDate.getUTCFullYear(), 1, 1);\n\n return Math.floor(Math.round((checkDate.getTime() - janFirst.getTime()) / 86400000) / 7) + 1;\n};\n\n/**\n * The WeekNumberCell is the cell at the start of a week's row within the DatePicker's\n * month view that contains the week's number within the year. This displays when\n * the DatePicker's 'weekDisplay' prop is set to 'number'.\n * This component will format the week number for the aria-label.\n */\nconst WeekNumberCell = ({ startDateOfWeek }: Props) => {\n const weekNumber = calculateWeekNumber(startDateOfWeek);\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n return (\n <div\n aria-label={translations.datePicker_weekNum({ NUM: String(weekNumber) })}\n class={weekNumberCellStyles}\n role=\"rowheader\">\n <span class={weekNumberStyles}>{weekNumber}</span>\n </div>\n );\n};\n\nexport { WeekNumberCell };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport {\n getWeeksInMonth,\n getDatesInWeek,\n getStartOfWeek,\n getDaysOfWeekNames,\n WeekInMonthIndex\n} from '#utils/PRIVATE_dayUtils';\nimport { ComponentProps } from 'preact/compat';\nimport { useMemo } from 'preact/hooks';\nimport {\n CalendarDateRequired,\n checkNoCalendarExtension,\n formatFullCalendarDate,\n isDateOutOfRange\n} from '#utils/UNSAFE_calendarDateUtils';\nimport { getFormatParse, NativeDateTimeOptions } from '#UNSAFE_IntlDateTime';\nimport { DayCell } from './DayCell';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { Grid } from '#UNSAFE_Grid';\nimport {\n MonthViewStyles,\n MonthViewVariantOptions\n} from '#PRIVATE_MonthView/themes/MonthViewStyles.css';\nimport { MonthViewRedwoodTheme } from '#PRIVATE_MonthView/themes/redwood/MonthViewTheme';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { monthViewScaleVars } from '#PRIVATE_MonthView/themes/MonthViewContract.css';\nimport { WeekNumberCell } from './WeekNumberCell';\n\ntype PickedDayCellProps = Pick<\n ComponentProps<typeof DayCell>,\n 'dayFormatter' | 'onAction' | 'onNavigation'\n>;\n\ntype MonthViewProps = TestIdProps &\n PickedDayCellProps & {\n /**\n * The daysOutsideMonth property affects the day cells that are outside of the current month.\n * If set to 'hidden', then the days outside of the current month will be hidden.\n * If set to 'selectable', then the days outside of the current month will be visible and selectable.\n * This defaults to 'hidden'.\n */\n daysOutsideMonth?: 'hidden' | 'selectable';\n /**\n * The MonthView renders with the month of the focusableDate.\n * The focusableDate is the only day in the MonthView that has tabIndex: 0 on it.\n * The focusableDate doesn't have focus until the user tabs in to the Month View.\n * The focusableDate is never undefined.\n */\n focusableDate: CalendarDateRequired;\n /**\n * If set to true, the focusableDate will be focused and you will see the focus ring. It will be\n * false when no date has focus.\n * @default false\n */\n isFocused?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * The maximum selectable date. The max must be greater than the min if they are both specified.\n */\n max?: CalendarDateRequired;\n /**\n * The minimum selectable date. The min must be less than the max if they are both specified.\n */\n min?: CalendarDateRequired;\n /**\n * The selected date of the MonthView, or undefined is there is no selected date. This\n * is used to highlight the selected day cell if it is within the min/max range.\n */\n selectedDate?: CalendarDateRequired;\n /**\n * Today's date. This is used to highlight the Today day cell.\n */\n todaysDate: CalendarDateRequired;\n /**\n * Whether week of the year will be shown in the DatePicker. The default calculation follows the\n * ISO 8601 definition: the first week of the year contains the first Thursday of the year.\n * This means that some days from one year may be placed into weeks 'belonging' to another year.\n */\n weekDisplay?: 'none' | 'number';\n };\n\n/**\n * A MonthView is a month interface that allows users to select a single date. The MonthView is the week day header\n * abbreviations and the days of the month. A MonthView is used inside of a DatePicker\n * along with the DatePickerHeader and the MonthGridView and YearGridView.\n */\nexport const MonthView = ({\n dayFormatter,\n daysOutsideMonth = 'hidden',\n isReadonly = false,\n max,\n min,\n onAction,\n onNavigation,\n selectedDate,\n focusableDate,\n isFocused = false,\n testId,\n todaysDate,\n weekDisplay = 'none'\n}: MonthViewProps) => {\n const { locale } = useUser();\n const weeksInMonth = getWeeksInMonth(focusableDate.year, focusableDate.month, locale);\n const { baseTheme, styles } = useComponentTheme<MonthViewVariantOptions, MonthViewStyles>(\n MonthViewRedwoodTheme,\n {}\n );\n const isWeekNumberDisplayed = weekDisplay === 'number';\n const gridTemplateColumns = `repeat(${isWeekNumberDisplayed ? 8 : 7}, 1fr)`;\n\n const dateFormatter = useMemo(() => {\n checkNoCalendarExtension(locale);\n const dateFormatOptions: NativeDateTimeOptions = {\n locale,\n dateStyle: 'full'\n };\n const { format } = getFormatParse(dateFormatOptions);\n return format;\n }, [locale]);\n\n const renderMonthViewHeaderRow = () => {\n const weekDays = getDaysOfWeekNames(locale, 'short');\n\n return (\n <div class={styles.sticky}>\n <Grid\n role=\"row\"\n aria-hidden=\"true\"\n gridTemplateColumns={gridTemplateColumns}\n gap={monthViewScaleVars.columnGap}>\n {isWeekNumberDisplayed && <div role=\"presentation\" />}\n {weekDays.map((day) => (\n <div role=\"columnheader\" class={styles.dayOfTheWeek}>\n <span>{day}</span>\n </div>\n ))}\n </Grid>\n </div>\n );\n };\n\n const renderMonthView = () => {\n const calendarGrid: JSX.Element[] = [];\n\n for (let weekIndex = 0; weekIndex < weeksInMonth; weekIndex++) {\n const startDateOfWeek = getStartOfWeek(focusableDate.year, focusableDate.month, 1, locale);\n\n const weekDates = getDatesInWeek(\n weekIndex as WeekInMonthIndex,\n startDateOfWeek.year,\n startDateOfWeek.month,\n startDateOfWeek.day\n );\n\n const weekCells = weekDates.map((dayCellDate) => {\n // This figures out the visual state of the DayCell.\n const isDisabled = isDateOutOfRange(dayCellDate, min, max);\n\n // Even if the selected date is out of range, the UX design shows it as selected.\n const isSelected = selectedDate ? isSameDate(dayCellDate, selectedDate) : false;\n const isToday = isSameDate(dayCellDate, todaysDate);\n const isFocusable = isSameDate(dayCellDate, focusableDate);\n const isAdjacentMonth = isOutOfMonth(dayCellDate, focusableDate);\n const isHidden = isAdjacentMonth && daysOutsideMonth === 'hidden';\n\n return (\n <DayCell\n key={`${dayCellDate.year}-${dayCellDate.month}-${dayCellDate.day}`}\n date={dayCellDate}\n dateFormatter={dateFormatter}\n dayFormatter={dayFormatter}\n isAdjacentMonth={isAdjacentMonth}\n isDisabled={isDisabled}\n isFocusable={isFocusable}\n isFocused={isFocusable && isFocused}\n isHidden={isHidden}\n isReadonly={isReadonly}\n isSelected={isSelected}\n isToday={isToday}\n onAction={onAction}\n onNavigation={onNavigation}></DayCell>\n );\n });\n\n calendarGrid.push(\n <Grid\n key={weekIndex}\n role=\"row\"\n gridTemplateColumns={gridTemplateColumns}\n gap={monthViewScaleVars.columnGap}>\n {isWeekNumberDisplayed && <WeekNumberCell startDateOfWeek={weekDates[0]} />}\n {weekCells}\n </Grid>\n );\n }\n\n return calendarGrid;\n };\n\n const monthViewAriaLabel = formatFullCalendarDate(locale, focusableDate, 'month');\n return (\n <div class={baseTheme}>\n <Grid\n gap={monthViewScaleVars.rowGap}\n aria-label={monthViewAriaLabel}\n role=\"grid\"\n testId={testId}>\n {renderMonthViewHeaderRow()}\n {renderMonthView()}\n </Grid>\n </div>\n );\n};\n\nfunction isSameDate(date1: CalendarDateRequired, date2: CalendarDateRequired) {\n return date1.year === date2.year && date1.month === date2.month && date1.day === date2.day;\n}\n\nfunction isOutOfMonth(date1: CalendarDateRequired, currentMonthDate: CalendarDateRequired) {\n return date1.month !== currentMonthDate.month;\n}\n"],"names":["defaultDayFormatter","state","DayCell","props","buttonProps","date","dayFormatter","dateFormatter","isAdjacentMonth","isDisabled","isFocusable","isFocused","isHidden","isReadonly","isSelected","isToday","onAction","onNavigation","isDisabledFormat","isRestrictedFormat","useFocusableCell","handleAction","useCallback","payload","buttonEventHandlers","useCellNavigation","navigationMap","ArrowLeft","ltr","rtl","ArrowRight","ArrowDown","ArrowUp","PageDown","PageUp","Home","End","ShiftPageDown","ShiftPageUp","CtrlAltT","translations","useTranslationBundle","today","datePicker_today","selected","datePicker_selected","restricted","datePicker_restricted","formattedDate","getIsoDateStr","year","month","day","ariaLabel","dayOfMonth","toJSDate","getDate","toString","isActivable","isDimmed","isHoverable","isRestricted","label","useDayCell","_jsx","jsx","role","class","dayCellStyles","children","StyledDatePickerButton","WeekNumberCell","startDateOfWeek","weekNumber","checkDate","dayNumber","getUTCDay","Logger.warn","setUTCDate","getUTCDate","janFirst","getUTCFullYear","Math","floor","round","getTime","calculateWeekNumber","datePicker_weekNum","NUM","String","weekNumberCellStyles","weekNumberStyles","isSameDate","date1","date2","daysOutsideMonth","max","min","selectedDate","focusableDate","testId","todaysDate","weekDisplay","locale","useUser","weeksInMonth","getWeeksInMonth","baseTheme","styles","useComponentTheme","MonthViewRedwoodTheme","isWeekNumberDisplayed","gridTemplateColumns","useMemo","checkNoCalendarExtension","dateFormatOptions","dateStyle","format","getFormatParse","monthViewAriaLabel","formatFullCalendarDate","_jsxs","jsxs","Grid","gap","monthViewScaleVars","rowGap","weekDays","getDaysOfWeekNames","sticky","columnGap","map","dayOfTheWeek","renderMonthViewHeaderRow","calendarGrid","weekIndex","getStartOfWeek","weekDates","getDatesInWeek","weekCells","dayCellDate","isDateOutOfRange","currentMonthDate","push","renderMonthView"],"mappings":"8lBAsGO,MAuFDA,EAAsB,KAAO,CAAEC,MAAO,YC1J/BC,EAAWC,IACtB,MAAMC,YAAEA,GDkEgB,GACxBC,OACAC,eAAeN,EACfO,gBACAC,kBACAC,aACAC,cACAC,YACAC,WACAC,aACAC,aACAC,UACAC,WACAC,mBAGA,MAAMhB,MAAEA,GAAUK,EAAaD,GACzBa,EAA6B,aAAVjB,EACnBkB,EAA+B,eAAVlB,EAGrBG,EAAcgB,EAAgBA,iBAAC,CAAEV,cAAaC,cAE9CU,EAA4CC,eAC/CC,IACKd,GAAcI,GAAcK,GAAoBC,GACpDH,EAASO,EAAQ,GAEnB,CAACd,EAAYS,EAAkBL,EAAYM,EAAoBH,IAE3DQ,EAAsBC,EAAAA,kBAAkB,CAC5CC,cAAe,CACbC,UAAW,CAAEC,IAAK,cAAeC,IAAK,WACtCC,WAAY,CAAEF,IAAK,UAAWC,IAAK,eACnCE,UAAW,WACXC,QAAS,eACTC,SAAU,YACVC,OAAQ,gBACRC,KAAM,kBACNC,IAAK,iBACLC,cAAe,WACfC,YAAa,eACbC,SAAU,SAEZhB,QAAS,CAAElB,QACXW,SAAUK,EACVJ,iBAIIuB,EAAeC,uBAAiC,4BAChDC,EAAQF,EAAaG,mBACrBC,EAAWJ,EAAaK,sBACxBC,EAAaN,EAAaO,wBAG1BC,EAAgBzC,EADH0C,EAAaA,cAAC5C,EAAK6C,KAAM7C,EAAK8C,MAAO9C,EAAK+C,MAE7D,IAAIC,EAAYtC,EAAU,GAAG2B,MAAUM,IAAkBA,EACzDK,EA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 'preact/compat', 'preact/hooks', './useFocusableTextField-8b755b15', './FormContext-5130e198', './useFormContext-30acdd33', './FormFieldContext-3c44aaaa', './useTextField-e6877c79', './Label-7cbbe3b7', './PrefixSuffix-0efb3bc6', './usePrefixSuffix-5147bdc9', './keyboardUtils-71bc5d84', './TextFieldInput-e86a1d08', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-d6c6dbc4', './StyledTextField-5dcd2ff4', './TextField-c16917d8', './LayerHost-733ade2f', 'css!./LiveRegionStyles.styles.css', './logger-0f873e29', './TabbableModeContext-a9c97640', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-3d3e72a9', './CompactUserAssistance-f962b357', './mergeProps-bcfa6a92', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-30886397', 'preact', 'css!./IconStyle.styles.css', './Popup-3e2566da', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', 'css!./HiddenAccessibleStyles.styles.css', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './clientHints-fff66be9', './useCurrentValueReducer-faded381', './ChevronDown-502b16f2', './ChevronUp-833277c0', './Minus-af2899f9', './Plus-72154ffe', './IconButton-05c6b793', './useTranslationBundle-7c40cb58', './Grid-a8a51c37', './useSpinning-d5dd87af', './useSelectableTextField-900d2860'], (function(e,s,t,i,n,a,o,l,r,d,u,c,p,b,x,f,v,m,h,S,y,F,C,P,T,g,A,U,I,R,j,D,w,L,E,V,B,k,N,H,_,q,M,O,G,W,z,K,Z,J,Q,X,Y){"use strict";function $({direction:e,isDisabled:t,children:i,onPointerDown:n,onPointerUp:a,onPointerOut:o,onPointerCancel:l}){const r=J.useTranslationBundle("@oracle/oraclejet-preact"),d=r.inputNumber_increase(),u=r.inputNumber_decrease(),c="increase"===e?d:u;return s.jsx(F.TabbableModeContext.Provider,{value:{isTabbable:!1},children:s.jsx("div",{"aria-hidden":"true",onPointerDown:n,onPointerUp:a,onPointerOut:o,onPointerCancel:l,children:s.jsx(Z.IconButton,{isDisabled:t,tooltip:c,variant:"ghost",size:"sm",children:i})})})}function ee({children:e}){return s.jsx(Q.Grid,{align:"center",gap:"1x",gridTemplateColumns:"1fr 1fr",children:e})}const se=t.forwardRef((({"aria-describedby":e,"aria-valuemax":t,"aria-valuemin":a,"aria-valuenow":p,"aria-valuetext":x,assistiveText:h,autoComplete:S="off",autoFocus:y=!1,columnSpan:F,helpSourceLink:C,helpSourceText:P,isDisabled:T,isReadonly:I,isRequired:R=!1,isRequiredShown:j,isStepDownDisabled:D,isStepUpDisabled:w,hasSteppers:L=!1,stepperVariant:E="directional",label:V,labelEdge:B,labelStartWidth:k,messages:N,placeholder:H,prefix:_,suffix:q,textAlign:Z,userAssistanceDensity:J,value:Q,variant:se="default",virtualKeyboard:ie,onInput:ne,onCommit:ae,onSpin:oe,onSpinComplete:le,onStep:re,testId:de},ue)=>{const{currentCommitValue:ce,dispatch:pe}=O.useCurrentValueReducer({value:Q}),be=i.useCallback((e=>{pe({type:"input",payload:e.value}),ne?.(e)}),[ne,pe]),xe=i.useCallback((e=>{pe({type:"commit",payload:e.value}),ae?.(e)}),[ae,pe]),{isDisabled:fe,isReadonly:ve,labelEdge:me,labelStartWidth:he,textAlign:Se,userAssistanceDensity:ye}=o.useFormContext(),Fe=T??fe,Ce=I??ve,Pe=B??me,Te=k??he,ge=Z??Se,Ae=J??ye,Ue=i.useRef(null),Ie=i.useRef(null),{focusProps:Re,isFocused:je,methods:De}=n.useFocusableTextField({isDisabled:Fe,isReadonly:Ce,enabledElementRef:Ue,readonlyElementRef:Ie}),{methods:we}=Y.useSelectableTextField(Ue);i.useImperativeHandle(ue,(()=>U.mergeProps(De,we)),[De,we]);const{baseId:Le,formFieldContext:Ee,inputProps:Ve,labelProps:Be,textFieldProps:ke,userAssistanceProps:Ne}=r.useTextField({ariaDescribedBy:e,helpSourceLink:C,helpSourceText:P,isDisabled:Fe,isFocused:je,isReadonly:Ce,isRequiredShown:j,labelEdge:Pe,messages:N,styleVariant:se,userAssistanceDensity:Ae,value:Q}),He=Fe||D,_e=Fe||w,qe=i.useCallback((e=>{je||Ue.current?.focus(),re?.(e)}),[re,je,Ue]),{keyboardHandlerProps:Me,pointerIncreaseHandlerProps:Oe,pointerDecreaseHandlerProps:Ge}=X.useSpinning({isStepDownDisabled:He,isStepUpDisabled:_e,onSpin:oe,onSpinComplete:le,onStep:qe}),We=L?s.jsx($,{direction:"decrease",isDisabled:He,...Ge,children:"directional"===E?s.jsx(G.SvgChevronDown,{}):s.jsx(z.SvgMinus,{})}):void 0,ze=L?s.jsx($,{direction:"increase",isDisabled:_e,...Oe,children:"directional"===E?s.jsx(W.SvgChevronUp,{}):s.jsx(K.SvgPlus,{})}):void 0,Ke=L&&"quantitative"===E?We:void 0,Ze=L?"directional"===E?s.jsxs(ee,{children:[We,ze]}):ze:void 0,Je=void 0!==V&&"inside"===Pe,Qe=L&&!("ios"===M.getClientHints().platform&&"safari"===M.getClientHints().browser),{shouldRenderPrefix:Xe,shouldRenderSuffix:Ye,prefixProps:$e,suffixProps:es,valuePrefixSuffix:ss,ariaLabelledBy:ts}=c.usePrefixSuffix({baseId:Le,hasEndContent:void 0!==Ze,hasInsideLabel:Je,hasStartContent:void 0!==Ke,hasValue:Ee.hasValue,isDisabled:Fe,isFocused:je,labelId:Be.id,prefix:_,suffix:q,value:Q}),is=Xe?s.jsx(u.PrefixSuffix,{...$e}):void 0,ns=Ye?s.jsx(u.PrefixSuffix,{...es}):void 0,as="none"!==Pe?s.jsx(d.Label,{...Be,children:V}):void 0,os={label:"none"!==Pe?as:void 0,labelEdge:"none"!==Pe?Pe:void 0,labelStartWidth:"none"!==Pe?Te:void 0},ls="none"===Pe?V:void 0,rs="efficient"===Ae||"reflow"===Ae?Fe||Ce?"efficient"!==Ae?void 0:s.jsx(g.InlineUserAssistance,{userAssistanceDensity:Ae,...Ne}):s.jsx(g.InlineUserAssistance,{assistiveText:h,fieldLabel:V,helpSourceLink:C,helpSourceText:P,messages:N,isRequiredShown:j,userAssistanceDensity:Ae,...Ne}):void 0,ds=i.useRef(null),us="compact"===Ae?s.jsx(A.CompactUserAssistance,{anchorRef:ds,messages:N,assistiveText:h,...Ne}):void 0;if(Ce){const e=s.jsx(f.ReadonlyTextFieldInput,{"aria-describedby":Ve["aria-describedby"],"aria-label":ls,"aria-labelledby":Be.id,as:"div",autoFocus:y,elementRef:Ie,textAlign:ge,value:ss,hasEmptyLabel:""===V&&"none"===Pe,hasInsideLabel:Je});return s.jsx(l.FormFieldContext.Provider,{value:Ee,children:s.jsx(v.ReadonlyTextField,{role:"presentation",columnSpan:F,compactUserAssistance:us,inlineUserAssistance:rs,onBlur:Re.onFocusOut,onFocus:Re.onFocusIn,ref:ds,mainContent:e,testId:de,...os})})}const cs=void 0===p||p.toString()!==x?x:void 0,ps=s.jsxs(s.Fragment,{children:[is,s.jsx(b.TextFieldInput,{"aria-labelledby":ts,"aria-label":ls,"aria-valuemax":Qe?t:void 0,"aria-valuemin":Qe?a:void 0,"aria-valuenow":Qe?p:void 0,"aria-valuetext":Qe?cs:void 0,autoComplete:S,autoFocus:y,currentCommitValue:ce,hasEmptyLabel:""===V&&"none"===Pe,hasEndContent:void 0!==Ze,hasInsideLabel:Je,hasPrefix:void 0!==is,hasStartContent:void 0!==Ke,hasSuffix:void 0!==ns,inputRef:Ue,isRequired:R,placeholder:H,role:Qe?"spinbutton":void 0,textAlign:ge,type:te()?ie:void 0,value:Fe?ss:Q,onCommit:xe,onInput:be,...Ve,...L?Me:{}}),ns]});return s.jsx(l.FormFieldContext.Provider,{value:Ee,children:s.jsx(m.TextField,{startContent:Ke,endContent:Ze,columnSpan:F,compactUserAssistance:us,inlineUserAssistance:rs,mainContent:ps,onBlur:Re.onFocusOut,onFocus:Re.onFocusIn,mainFieldRef:ds,hasZeroStartMargin:L&&"quantitative"===E,testId:de,...ke,...os})})}));function te(){const e=M.getClientHints().deviceType;return"phone"===e||"tablet"===e}e.NumberInputText=se,e.stepperVariants=["directional","quantitative"]}));
2
- //# sourceMappingURL=NumberInputText-91b73dcb.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NumberInputText-91b73dcb.js","sources":["../../src/UNSAFE_NumberInputText/StepButton.tsx","../../src/UNSAFE_NumberInputText/Steppers.tsx","../../src/UNSAFE_NumberInputText/NumberInputText.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentChildren } from 'preact';\n\nimport { IconButton } from '#UNSAFE_IconButton';\nimport { BundleType } from '#resources/nls/bundle';\nimport { StepDirection } from '#hooks/UNSAFE_useSpinning';\nimport { TabbableModeContext } from '#hooks/UNSAFE_useTabbableMode';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\n\ntype Props = {\n /**\n * The children are Icons for the button.\n */\n children: ComponentChildren;\n\n /**\n * The direction of the step.\n */\n direction: StepDirection;\n\n /**\n * Whether the button is disabled.\n */\n isDisabled?: boolean;\n\n /**\n * Pointer event down handler\n */\n onPointerDown?: (event: PointerEvent) => void;\n\n /**\n * Pointer event up handler\n */\n onPointerUp?: (event: PointerEvent) => void;\n\n /**\n * Pointer event out handler\n */\n onPointerOut?: (event: PointerEvent) => void;\n\n /**\n * Pointer event cancel handler\n */\n onPointerCancel?: (event: PointerEvent) => void;\n};\n\n/**\n * A StepButton is used to request a \"step up\" or \"step down\" to a value in NumberInputText.\n * @param children The children are Icons for the button\n * @param direction The direction of the step\n * @param isDisabled Whether the button should be disabled\n * @param onPointerDown Handler called when pointer is down\n * @param onPointerUp Handler called when pointer is up\n * @param onPointerOut Handler called when pointer is out\n * @param onPointerCancel Handler called when pointer is canceled\n */\nexport function StepButton({\n direction,\n isDisabled,\n children,\n onPointerDown,\n onPointerUp,\n onPointerOut,\n onPointerCancel\n}: Props) {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const labelIncrease = translations.inputNumber_increase();\n const labelDecrease = translations.inputNumber_decrease();\n const label = direction === 'increase' ? labelIncrease : labelDecrease;\n\n return (\n <TabbableModeContext.Provider value={{ isTabbable: false }}>\n <div\n aria-hidden=\"true\"\n onPointerDown={onPointerDown}\n onPointerUp={onPointerUp}\n onPointerOut={onPointerOut}\n onPointerCancel={onPointerCancel}>\n <IconButton isDisabled={isDisabled} tooltip={label} variant=\"ghost\" size=\"sm\">\n {children}\n </IconButton>\n </div>\n </TabbableModeContext.Provider>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentChildren } from 'preact';\nimport { Grid } from '../UNSAFE_Grid';\n\nexport type Props = {\n /**\n *The children are StepButtons.\n */\n children: ComponentChildren;\n};\n\n// TODO: Replace Steppers with Buttonset when it becomes available\nexport function Steppers({ children }: Props) {\n return (\n <Grid align=\"center\" gap=\"1x\" gridTemplateColumns=\"1fr 1fr\">\n {children}\n </Grid>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps, Ref } from 'preact';\nimport { forwardRef } from 'preact/compat';\nimport { useCallback, useImperativeHandle, useRef } from 'preact/hooks';\nimport { FocusableHandle, useFocusableTextField } from '../hooks/UNSAFE_useFocusableTextField';\nimport { useFormContext } from '../hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { useTextField } from '../hooks/UNSAFE_useTextField';\nimport { Label } from '../UNSAFE_Label';\nimport { PrefixSuffix } from '../UNSAFE_PrefixSuffix';\nimport { usePrefixSuffix } from '../hooks/UNSAFE_usePrefixSuffix';\nimport {\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '../UNSAFE_TextField';\nimport {\n InlineUserAssistance,\n CompactUserAssistance,\n UserAssistanceDensityType\n} from '../UNSAFE_UserAssistance';\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { Size } from '../utils/UNSAFE_size';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport { useCurrentValueReducer } from '../hooks/UNSAFE_useCurrentValueReducer';\nimport { DecrementIcon } from '../PRIVATE_ThemedIcons/DecrementIcon';\nimport { IncrementIcon } from '../PRIVATE_ThemedIcons/IncrementIcon';\nimport { MinusIcon } from '../PRIVATE_ThemedIcons/MinusIcon';\nimport { PlusIcon } from '../PRIVATE_ThemedIcons/PlusIcon';\nimport { StepButton } from './StepButton';\nimport { Steppers } from './Steppers';\nimport { useSpinning, StepEvent } from '../hooks/UNSAFE_useSpinning';\nimport { LayoutColumnSpan } from '../utils/UNSAFE_styles/Layout';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { SelectableHandle, useSelectableTextField } from '#hooks/UNSAFE_useSelectableTextField';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\n\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\n\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype NumberInputTextProps = {\n /**\n * Controls whether the step down button is disabled.\n */\n isStepDownDisabled?: boolean;\n\n /**\n * Controls whether the step up button is disabled.\n */\n isStepUpDisabled?: boolean;\n\n /**\n * Called when a continuous step is requested (aka \"spin\")\n * by holding down the arrow up or arrow down keys, or\n * by pressing and holding down a step button.\n */\n onSpin?: (event: StepEvent) => void;\n\n /**\n * Called when spinning is complete and the user has\n * released the arrow key or step button.\n */\n onSpinComplete?: () => void;\n\n /**\n * Called when a step is requested by clicking a step button\n * or by pressing the arrow up or arrow down keys.\n */\n onStep?: (event: StepEvent) => void;\n};\n\ntype Props = NumberInputTextProps &\n TestIdProps & {\n /**+\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n 'aria-describedby'?: TextFieldInputProps['aria-describedby'];\n\n /**\n * The maximum allowed value when hasSteppers is true. Used for the aria-valuemax attribute.\n * When hasSteppers is false, this is ignored because when there are no steppers, there is no role=\"spinbutton\",\n * and aria-value* attributes are not valid without this role.\n */\n 'aria-valuemax'?: TextFieldInputProps['aria-valuemax'];\n\n /**\n * The minimum allowed value when hasSteppers is true. Used for the aria-valuemin attribute.\n * When hasSteppers is false, this is ignored because when there are no steppers, there is no role=\"spinbutton\",\n * and aria-value* attributes are not valid without this role.\n */\n 'aria-valuemin'?: TextFieldInputProps['aria-valuemin'];\n\n /**\n * The number value of the component when hasSteppers is true. Used for the aria-valuenow attribute.\n * When hasSteppers is false, this is ignored because when there are no steppers, there is no role=\"spinbutton\",\n * and aria-value* attributes are not valid without this role.\n */\n 'aria-valuenow'?: TextFieldInputProps['aria-valuenow'];\n\n /**\n * The formatted value of the component when hasSteppers is true. Used for the aria-valueText\n * attribute to provide a more human readable text alternative for\n * aria-valuenow.\n * When hasSteppers is false, this is ignored because when there are no steppers, there is no role=\"spinbutton\",\n * and aria-value* attributes are not valid without this role.\n */\n 'aria-valuetext'?: TextFieldInputProps['aria-valuetext'];\n\n /**\n * Text to provide guidance to help the user understand what data to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n\n /**\n * Dictates component's autocomplete state.\n * This attribute indicates whether the value of the control can be automatically completed by the browser.\n * The common values are \"on\" and \"off\".\n */\n autoComplete?: TextFieldInputProps['autoComplete'];\n\n /**\n * Autofocus specifies whether the component will get focus when the page is loaded.\n * If it is set to true then the associated component will get input focus when the page is loaded.\n * Setting this property doesn't set the focus to the component: it tells the browser to focus\n * to it when the element is inserted in the document.\n */\n autoFocus?: TextFieldInputProps['autoFocus'];\n\n /**\n * Specifies how many columns to span in a FormLayout with direction === 'row'\n */\n columnSpan?: LayoutColumnSpan;\n\n /**\n * Controls whether the step buttons are shown.\n */\n hasSteppers?: boolean;\n\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n\n /**\n * Specifies whether the component is disabled.\n */\n isDisabled?: boolean;\n\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n\n /**\n * Specifies for accessibility purposes whether a value is required.\n *\n * Setting this property to <code>false</code> means that a value is not required to be\n * committed by the user. Setting this property to <code>true</code> means that a value\n * is required to be committed by the user.\n */\n isRequired?: TextFieldInputProps['isRequired'];\n\n /**\n * Specifies whether to show an indicator on screen that a value is required, for example\n * before the user has committed a value.\n */\n isRequiredShown?: InlineUserAssistanceProps['isRequiredShown'];\n\n /**\n * Specifies the label associated with the field.\n */\n label: string;\n\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'inside' | 'start' | 'top' | 'none';\n\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>.\n */\n labelStartWidth?: Size;\n\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n\n /**\n * A short hint to display before the user enters a value.\n */\n placeholder?: TextFieldInputProps['placeholder'];\n\n /**\n * The prefix displays as regular text before the input text, and inline with it.\n * The prefix is not editable or focusable.\n */\n prefix?: string;\n\n /**\n * Variant style of step buttons.\n * @default directional\n */\n stepperVariant?: (typeof stepperVariants)[number];\n\n /**\n * The suffix displays as regular text after the input text, and inline with it.\n * The suffix is not editable or focusable.\n */\n suffix?: string;\n\n /**\n * Specifies how to align text within the field.\n */\n textAlign?: TextFieldInputProps['textAlign'];\n\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * <li><code>'compact'</code>: Messages, help, hints, and required will not be shown inline; they will show in a mode that keeps the screen more compact, like a popup for the messages, and a required icon to indicate Required. </li>\n * </ul>\n */\n userAssistanceDensity?: UserAssistanceDensityType;\n\n /**\n * The current possibly formatted display value of the component.\n */\n value?: TextFieldInputProps['value'];\n\n /**\n * The style variant of the component.\n */\n variant?: TextFieldInputProps['variant'];\n\n /**\n * The type of virtual keyboard to display for entering a value on mobile browsers.\n * This property has no effect on desktop browsers.\n */\n virtualKeyboard?: 'auto' | 'number' | 'text';\n\n /**\n * Callback invoked when the user commits the entered value by either blurring or pressing Enter.\n */\n onCommit?: TextFieldInputProps['onCommit'];\n\n /**\n * Callback invoked each time the user changes the value of the field. For example, if the user\n * types 'abcd', this callback will be called four times with the value as 'a', 'ab', 'abc' and 'abcd'\n * respectively.\n */\n onInput: TextFieldInputProps['onInput'];\n };\n\ntype FocusSelectHandle = FocusableHandle & SelectableHandle;\n\nexport const stepperVariants = ['directional', 'quantitative'] as const;\n\nexport const NumberInputText = forwardRef(\n (\n {\n 'aria-describedby': ariaDescribedBy,\n 'aria-valuemax': ariaValueMax,\n 'aria-valuemin': ariaValueMin,\n 'aria-valuenow': ariaValueNow,\n 'aria-valuetext': ariaValueText,\n assistiveText,\n autoComplete = 'off',\n autoFocus = false,\n columnSpan,\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n isRequired = false,\n isRequiredShown,\n isStepDownDisabled: propIsStepDownDisabled,\n isStepUpDisabled: propIsStepUpDisabled,\n hasSteppers = false,\n stepperVariant = 'directional',\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n messages,\n placeholder,\n prefix,\n suffix,\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n variant = 'default',\n virtualKeyboard,\n onInput,\n onCommit,\n onSpin,\n onSpinComplete,\n onStep,\n testId\n }: Props,\n ref?: Ref<FocusSelectHandle>\n ) => {\n const { currentCommitValue, dispatch } = useCurrentValueReducer({ value });\n const onInputAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n dispatch({ type: 'input', payload: detail.value });\n onInput?.(detail);\n },\n [onInput, dispatch]\n );\n const onCommitAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n dispatch({ type: 'commit', payload: detail.value });\n onCommit?.(detail);\n },\n [onCommit, dispatch]\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const textAlign = propTextAlign ?? formTextAlign;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const enabledElementRef = useRef<HTMLInputElement>(null);\n const readonlyElementRef = useRef<HTMLDivElement>(null);\n\n const {\n focusProps,\n isFocused,\n methods: focusMethods\n } = useFocusableTextField<HTMLInputElement, HTMLDivElement>({\n isDisabled,\n isReadonly,\n enabledElementRef,\n readonlyElementRef\n });\n\n const { methods: selectMethods } = useSelectableTextField<HTMLInputElement>(enabledElementRef);\n\n useImperativeHandle(ref!, () => mergeProps(focusMethods, selectMethods), [\n focusMethods,\n selectMethods\n ]);\n\n const {\n baseId,\n formFieldContext,\n inputProps,\n labelProps,\n textFieldProps,\n userAssistanceProps\n } = useTextField({\n ariaDescribedBy,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isFocused,\n isReadonly,\n isRequiredShown,\n labelEdge,\n messages,\n styleVariant: variant,\n userAssistanceDensity,\n value\n });\n // Disable the steppers if the number input is disabled.\n const isStepDownDisabled = isDisabled || propIsStepDownDisabled;\n const isStepUpDisabled = isDisabled || propIsStepUpDisabled;\n\n // Set focus to the input when a step is requested by clicking/holding down a step button.\n // For Arrow up/down, it already has focus so no action is needed.\n // Note: for readonly there are no steppers, for disabled stepping is disabled, so this only\n // applies to enabled case.\n const handleStep = useCallback(\n (e: StepEvent) => {\n if (!isFocused) {\n enabledElementRef.current?.focus();\n }\n onStep?.(e);\n },\n [onStep, isFocused, enabledElementRef]\n );\n\n // if hasSteppers, keyboardHandlerProps will be spread onto TextFieldInput to handle\n // stepping functionality via the arrow up or down keys.\n // also, pointerIncreaseHandlerProps and pointerDecreaseHandlerProps will be spread to\n // the corresponding StepButton\n const { keyboardHandlerProps, pointerIncreaseHandlerProps, pointerDecreaseHandlerProps } =\n useSpinning({\n isStepDownDisabled,\n isStepUpDisabled,\n onSpin,\n onSpinComplete,\n onStep: handleStep\n });\n\n const DecreaseButton = hasSteppers ? (\n <StepButton\n direction=\"decrease\"\n isDisabled={isStepDownDisabled}\n {...pointerDecreaseHandlerProps}>\n {stepperVariant === 'directional' ? <DecrementIcon /> : <MinusIcon />}\n </StepButton>\n ) : undefined;\n\n const IncreaseButton = hasSteppers ? (\n <StepButton\n direction=\"increase\"\n isDisabled={isStepUpDisabled}\n {...pointerIncreaseHandlerProps}>\n {stepperVariant === 'directional' ? <IncrementIcon /> : <PlusIcon />}\n </StepButton>\n ) : undefined;\n\n // when stepperVariant is quantitative, the decrease button is placed in the startContent slot\n const startContent =\n hasSteppers && stepperVariant === 'quantitative' ? DecreaseButton : undefined;\n\n // when stepperVariant is directional, both buttons are wrapped in Steppers and placed in the endContent slot\n // if it equals quantitative, only the increase button is placed in the endContent slot\n const endContent = hasSteppers ? (\n stepperVariant === 'directional' ? (\n <Steppers>\n {DecreaseButton}\n {IncreaseButton}\n </Steppers>\n ) : (\n IncreaseButton\n )\n ) : undefined;\n\n const hasInsideLabel = label !== undefined && labelEdge === 'inside';\n // if has steppers, and is not iOS or not Safari\n // JET-64871 the workaround for the iOS Safari VoiceOver bug with spinbutton role\n // is to not render the role or the associated wai-aria value props when iOS Safari.\n const needsSpinbuttonRole = hasSteppers && !isIosSafari();\n\n const {\n shouldRenderPrefix,\n shouldRenderSuffix,\n prefixProps,\n suffixProps,\n valuePrefixSuffix,\n ariaLabelledBy\n } = usePrefixSuffix({\n baseId,\n hasEndContent: endContent !== undefined,\n hasInsideLabel,\n hasStartContent: startContent !== undefined,\n hasValue: formFieldContext.hasValue,\n isDisabled,\n isFocused,\n labelId: labelProps.id,\n prefix,\n suffix,\n value\n });\n\n const renderedPrefix = shouldRenderPrefix ? <PrefixSuffix {...prefixProps} /> : undefined;\n const renderedSuffix = shouldRenderSuffix ? <PrefixSuffix {...suffixProps} /> : undefined;\n const labelComp = labelEdge !== 'none' ? <Label {...labelProps}>{label}</Label> : undefined;\n\n const fieldLabelProps = {\n label: labelEdge !== 'none' ? labelComp : undefined,\n labelEdge: labelEdge !== 'none' ? labelEdge : undefined,\n labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined\n };\n\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n const isInlineDensity =\n userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow';\n\n const inlineUserAssistance = isInlineDensity ? (\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : undefined;\n\n const anchorRef = useRef<HTMLDivElement>(null);\n\n const compactUserAssistance =\n userAssistanceDensity === 'compact' ? (\n <CompactUserAssistance\n anchorRef={anchorRef}\n messages={messages}\n assistiveText={assistiveText}\n {...userAssistanceProps}\n />\n ) : undefined;\n\n if (isReadonly) {\n const mainContent = (\n <ReadonlyTextFieldInput\n aria-describedby={inputProps['aria-describedby']}\n aria-label={ariaLabel}\n aria-labelledby={labelProps.id}\n as=\"div\"\n autoFocus={autoFocus}\n elementRef={readonlyElementRef}\n textAlign={textAlign}\n value={valuePrefixSuffix}\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasInsideLabel={hasInsideLabel}\n />\n );\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps.onFocusOut}\n onFocus={focusProps.onFocusIn}\n ref={anchorRef}\n mainContent={mainContent}\n testId={testId}\n {...fieldLabelProps}></ReadonlyTextField>\n </FormFieldContext.Provider>\n );\n }\n\n // If ariaValueText is the same as ariaValueNow.toString, no need to show it.\n const valueText =\n ariaValueNow === undefined\n ? ariaValueText\n : ariaValueNow.toString() !== ariaValueText\n ? ariaValueText\n : undefined;\n\n const mainContent = (\n <>\n {renderedPrefix}\n <TextFieldInput\n aria-labelledby={ariaLabelledBy}\n aria-label={ariaLabel}\n aria-valuemax={needsSpinbuttonRole ? ariaValueMax : undefined}\n aria-valuemin={needsSpinbuttonRole ? ariaValueMin : undefined}\n aria-valuenow={needsSpinbuttonRole ? ariaValueNow : undefined}\n aria-valuetext={needsSpinbuttonRole ? valueText : undefined}\n autoComplete={autoComplete}\n autoFocus={autoFocus}\n currentCommitValue={currentCommitValue}\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasEndContent={endContent !== undefined}\n hasInsideLabel={hasInsideLabel}\n hasPrefix={renderedPrefix !== undefined}\n hasStartContent={startContent !== undefined}\n hasSuffix={renderedSuffix !== undefined}\n inputRef={enabledElementRef}\n isRequired={isRequired}\n placeholder={placeholder}\n role={needsSpinbuttonRole ? 'spinbutton' : undefined}\n textAlign={textAlign}\n type={isMobile() ? virtualKeyboard : undefined}\n value={isDisabled ? valuePrefixSuffix : value}\n onCommit={onCommitAndDispatch}\n onInput={onInputAndDispatch}\n {...inputProps}\n {...(hasSteppers ? keyboardHandlerProps : {})}\n />\n {renderedSuffix}\n </>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n startContent={startContent}\n endContent={endContent}\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n mainContent={mainContent}\n onBlur={focusProps.onFocusOut}\n onFocus={focusProps.onFocusIn}\n mainFieldRef={anchorRef}\n hasZeroStartMargin={hasSteppers && stepperVariant === 'quantitative'}\n testId={testId}\n {...textFieldProps}\n {...fieldLabelProps}\n />\n </FormFieldContext.Provider>\n );\n }\n);\n\n/**\n * Helper function to determine whether the current device is a mobile device\n * @returns true if running on a mobile device, false otherwise\n */\nfunction isMobile() {\n const deviceType = getClientHints().deviceType;\n return deviceType === 'phone' || deviceType === 'tablet';\n}\n/**\n * Helper function to determine if the platform is iOS and the Browser is Safari.\n * Exported for usage in local tests.\n * @returns true if the platform is iOS, false otherwise\n */\nexport function isIosSafari() {\n return getClientHints().platform === 'ios' && getClientHints().browser === 'safari';\n}\n"],"names":["StepButton","direction","isDisabled","children","onPointerDown","onPointerUp","onPointerOut","onPointerCancel","translations","useTranslationBundle","labelIncrease","inputNumber_increase","labelDecrease","inputNumber_decrease","label","_jsx","TabbableModeContext","Provider","value","isTabbable","jsx","IconButton","tooltip","variant","size","Steppers","Grid","align","gap","gridTemplateColumns","NumberInputText","forwardRef","ariaDescribedBy","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","assistiveText","autoComplete","autoFocus","columnSpan","helpSourceLink","helpSourceText","propIsDisabled","isReadonly","propIsReadonly","isRequired","isRequiredShown","isStepDownDisabled","propIsStepDownDisabled","isStepUpDisabled","propIsStepUpDisabled","hasSteppers","stepperVariant","labelEdge","propLabelEdge","labelStartWidth","propLabelStartWidth","messages","placeholder","prefix","suffix","textAlign","propTextAlign","userAssistanceDensity","propUserAssistanceDensity","virtualKeyboard","onInput","onCommit","onSpin","onSpinComplete","onStep","testId","ref","currentCommitValue","dispatch","useCurrentValueReducer","onInputAndDispatch","useCallback","detail","type","payload","onCommitAndDispatch","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formTextAlign","formUserAssistanceDensity","useFormContext","enabledElementRef","useRef","readonlyElementRef","focusProps","isFocused","methods","focusMethods","useFocusableTextField","selectMethods","useSelectableTextField","useImperativeHandle","mergeProps","baseId","formFieldContext","inputProps","labelProps","textFieldProps","userAssistanceProps","useTextField","styleVariant","handleStep","e","current","focus","keyboardHandlerProps","pointerIncreaseHandlerProps","pointerDecreaseHandlerProps","useSpinning","DecreaseButton","DecrementIcon","SvgChevronDown","MinusIcon","undefined","IncreaseButton","IncrementIcon","SvgChevronUp","PlusIcon","startContent","endContent","_jsxs","hasInsideLabel","needsSpinbuttonRole","getClientHints","platform","browser","shouldRenderPrefix","shouldRenderSuffix","prefixProps","suffixProps","valuePrefixSuffix","ariaLabelledBy","usePrefixSuffix","hasEndContent","hasStartContent","hasValue","labelId","id","renderedPrefix","PrefixSuffix","renderedSuffix","labelComp","Label","fieldLabelProps","ariaLabel","inlineUserAssistance","InlineUserAssistance","fieldLabel","anchorRef","compactUserAssistance","CompactUserAssistance","mainContent","ReadonlyTextFieldInput","as","elementRef","hasEmptyLabel","FormFieldContext","ReadonlyTextField","role","onBlur","onFocusOut","onFocus","onFocusIn","valueText","toString","TextFieldInput","hasPrefix","hasSuffix","inputRef","isMobile","TextField","mainFieldRef","hasZeroStartMargin","deviceType"],"mappings":"g0DA8DgBA,GAAWC,UACzBA,EAASC,WACTA,EAAUC,SACVA,EAAQC,cACRA,EAAaC,YACbA,EAAWC,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C,GAC/BwF,mBAA8BpB,IAAfM,GACfE,eAAgBA,GAChB6C,eAA8BrD,IAAnByB,GACXJ,qBAAkCrB,IAAjBK,GACjBiD,eAA8BtD,IAAnB2B,GACX4B,SAAUvF,GACV5C,WAAYA,EACZa,YAAaA,EACb4G,KAAMpC,GAAsB,kBAAeT,EAC3C5D,UAAWA,GACXkB,KAAMkG,KAAahH,QAAkBwD,EACrCxG,MAAOhB,GAAayI,GAAoBzH,EACxCkD,SAAUc,GACVf,QAASU,MACL2B,MACCpD,EAAc8D,GAAuB,KAE3CmC,MAIL,OACEtI,EAAAK,IAACiJ,EAAgBA,iBAACpJ,SAAS,CAAAC,MAAOqF,GAChCpG,SAAAY,EAAAK,IAAC+J,YAAS,CACRpD,aAAcA,GACdC,WAAYA,GACZxF,WAAYA,EACZsH,sBAAuBA,GACvBJ,qBAAsBA,GACtBM,YAAaA,GACbQ,OAAQ3E,GAAW4E,WACnBC,QAAS7E,GAAW8E,UACpBS,aAAcvB,GACdwB,mBAAoBjI,GAAkC,iBAAnBC,EACnCmB,OAAQA,MACJkC,MACA8C,MAGR,IAQN,SAAS0B,KACP,MAAMI,EAAalD,mBAAiBkD,WACpC,MAAsB,UAAfA,GAAyC,WAAfA,CACnC,wCA7W+B,CAAC,cAAe"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/hooks', './classNames-08d99695', './TabBar-ca32462a', './UNSAFE_OverflowTabBar/themes/OverflowTabBarStyles.css', './useDetectHorizontalOverflow-336bca79', './RemovableTabBarItem-fcada993', './TabBarItem-4ff2ef15', './OverflowTabBarItem-db77f3d3'], (function(e,a,t,l,s,r,o,i,n,c,d){"use strict";e.OverflowTabBar=function({items:e,layout:m="stretch",display:b="standard",size:u="md",edge:f="top",selection:y,truncation:v,onSelect:I,onRemove:B,"aria-label":T,"aria-labelledby":p,testId:w}){const K="stacked"===b?{display:b}:{display:b,size:u},g=l.useRef(null),h=t.createRef(),[x,R]=l.useState(!1),O=l.useRef(!1),j=l.useCallback((e=>{"more"===e.value?O.current?R(!1):R(!0):I?.(e),O.current=!1}),[I]),S=l.useMemo((()=>e.map((e=>e.itemKey))),[e]),{visibleItemKeys:k,overflowItemKeys:z,maxWidths:M}=i.useDetectHorizontalOverflow({rootRef:h,keysArray:S,isTruncationDisabled:!(v&&"progressive"===v)}),A=s.classNames([o.styles.overflowTabBarBase]);return a.jsx("div",{ref:g,class:A,children:a.jsxs(r.TabBar,{ref:h,selection:y,onSelect:j,...K,layout:m,edge:f,onRemove:B,"aria-label":T,"aria-labelledby":p,testId:w,children:[null!=k&&k.length>0&&e.filter((e=>k?.includes(e.itemKey))).map((e=>e.isRemovable?a.jsx(n.RemovableTabBarItem,{itemKey:e.itemKey,label:e.label,icon:e.icon,badge:e.badge,metadata:e.metadata,severity:e.severity,"aria-controls":e.tabPanelId,labelMaxWidth:M?.get(e.itemKey)}):a.jsx(c.TabBarItem,{itemKey:e.itemKey,label:e.label,icon:e.icon,badge:e.badge,metadata:e.metadata,severity:e.severity,"aria-controls":e.tabPanelId,labelMaxWidth:M?.get(e.itemKey)}))),null!=z&&z.length>0&&a.jsx(d.OverflowTabBarItem,{isOpen:x,onClose:e=>{h.current&&["itemAction","dismissed"].includes(e.reason)&&h?.current?.focus(),"outsideMousedown"===e.reason&&(O.current=!0),R(!1)},overflowItemKey:"more",overflowItems:e.filter((e=>z?.includes(e.itemKey)))})]})})}}));
2
- //# sourceMappingURL=OverflowTabBar-ef21bcd3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OverflowTabBar-ef21bcd3.js","sources":["../../src/UNSAFE_OverflowTabBar/OverflowTabBar.tsx"],"sourcesContent":["import { ComponentProps, createRef } from 'preact';\nimport { useCallback, useMemo, useRef, useState } from 'preact/hooks';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { OverflowTabBarItem, RemovableTabBarItem, TabBar, TabBarItem } from '../UNSAFE_TabBar';\nimport { CloseDetail, Item } from '../UNSAFE_TabBarCommon';\nimport { styles } from './themes/OverflowTabBarStyles.css';\nimport { useDetectHorizontalOverflow } from '../hooks/PRIVATE_useDetectHorizontalOverflow';\n\ntype OverflowTabBarProps<K extends string | number> = {\n /**\n * An array of data to render individual tabs\n */\n items: Item<K>[];\n /**\n * The truncation configuration for tab labels.\n * 'progressive' will restrict the width of each tab label to allow all tabs to fit if enough space is not available to display all of the tabs.\n * Labels that are truncated are displayed with ellipses. However the width of each tab label will not be truncated below a specific threshold.\n * 'none' tabs always take up the space needed by the labels even if enough space is not available to display all of the tabs.\n */\n truncation?: 'none' | 'progressive';\n} & Omit<ComponentProps<typeof TabBar>, 'children' | 'aria-describedby' | 'ref'>;\n\n/**\n * OverflowTabBar handles the rendering of overflowing tab items.\n */\nexport function OverflowTabBar<K extends string | number>({\n items,\n layout = 'stretch',\n display = 'standard',\n size = 'md',\n edge = 'top',\n selection,\n truncation,\n onSelect,\n onRemove,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n testId\n}: OverflowTabBarProps<K> & TestIdProps) {\n const displayStackProps = {\n display: display\n };\n const displayNonStackProps = {\n display: display,\n size: size\n };\n\n const displayProps = display === 'stacked' ? displayStackProps : displayNonStackProps;\n const rootRef = useRef<HTMLDivElement>(null);\n const tabBarRef = createRef<HTMLDivElement>();\n\n const [isDropDownOpen, setIsDropDownOpen] = useState<boolean>(false);\n\n const isOutsideMouseDown = useRef<boolean>(false);\n\n const handleClose = (e: CloseDetail) => {\n if (tabBarRef.current && ['itemAction', 'dismissed'].includes(e.reason)) {\n tabBarRef?.current?.focus();\n }\n if (e.reason === 'outsideMousedown') {\n isOutsideMouseDown.current = true;\n }\n setIsDropDownOpen(false);\n };\n\n const handleSelect = useCallback<Required<ComponentProps<typeof TabBar>>['onSelect']>(\n (e: { value: string | number }) => {\n if (e.value === 'more') {\n //If overflow item is clicked after dropdown is open, the reason is outsideMouseDown and it needs to be closed\n if (isOutsideMouseDown.current) {\n setIsDropDownOpen(false);\n } else {\n setIsDropDownOpen(true);\n }\n } else {\n onSelect?.(e);\n }\n isOutsideMouseDown.current = false;\n },\n [onSelect]\n );\n\n const overflowItemKey = 'more' as K;\n\n const keysArray = useMemo(() => items.map((item) => item.itemKey) as K[], [items]);\n\n const { visibleItemKeys, overflowItemKeys, maxWidths } = useDetectHorizontalOverflow({\n rootRef: tabBarRef,\n keysArray,\n isTruncationDisabled: !(truncation && truncation === 'progressive')\n });\n\n const overflowTabBarClass = classNames([styles.overflowTabBarBase]);\n\n return (\n <div ref={rootRef} class={overflowTabBarClass}>\n <TabBar\n ref={tabBarRef}\n selection={selection}\n onSelect={handleSelect}\n {...displayProps}\n layout={layout}\n edge={edge}\n onRemove={onRemove}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n testId={testId}>\n {visibleItemKeys != null &&\n visibleItemKeys.length > 0 &&\n items\n .filter((item) => visibleItemKeys?.includes(item.itemKey))\n .map((item: Item<K>) =>\n item.isRemovable ? (\n <RemovableTabBarItem\n itemKey={item.itemKey}\n label={item.label}\n icon={item.icon}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n aria-controls={item.tabPanelId}\n labelMaxWidth={maxWidths?.get(item.itemKey)}\n />\n ) : (\n <TabBarItem\n itemKey={item.itemKey}\n label={item.label}\n icon={item.icon}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n aria-controls={item.tabPanelId}\n labelMaxWidth={maxWidths?.get(item.itemKey)}\n />\n )\n )}\n {overflowItemKeys != null && overflowItemKeys.length > 0 && (\n <OverflowTabBarItem\n isOpen={isDropDownOpen}\n onClose={handleClose}\n overflowItemKey={overflowItemKey}\n overflowItems={items.filter((item) => overflowItemKeys?.includes(item.itemKey))}\n />\n )}\n </TabBar>\n </div>\n );\n}\n"],"names":["items","layout","display","size","edge","selection","truncation","onSelect","onRemove","ariaLabel","ariaLabelledby","testId","displayProps","rootRef","useRef","tabBarRef","createRef","isDropDownOpen","setIsDropDownOpen","useState","isOutsideMouseDown","handleSelect","useCallback","e","value","current","keysArray","useMemo","map","item","itemKey","visibleItemKeys","overflowItemKeys","maxWidths","useDetectHorizontalOverflow","isTruncationDisabled","overflowTabBarClass","classNames","styles","overflowTabBarBase","_jsx","ref","class","children","_jsxs","TabBar","length","filter","includes","isRemovable","RemovableTabBarItem","label","icon","badge","metadata","severity","tabPanelId","labelMaxWidth","get","TabBarItem","OverflowTabBarItem","isOpen","onClose","reason","focus","overflowItemKey","overflowItems"],"mappings":"iXA0B0DA,MACxDA,EAAKC,OACLA,EAAS,UAASC,QAClBA,EAAU,WAAUC,KACpBA,EAAO,KAAIC,KACXA,EAAO,MAAKC,UACZA,EAASC,WACTA,EAAUC,SACVA,EAAQC,SACRA,EACA,aAAcC,EACd,kBAAmBC,EAAcC,OACjCA,IAEA,MAQMC,EAA2B,YAAZV,EARK,CACxBA,QAASA,GAEkB,CAC3BA,QAASA,EACTC,KAAMA,GAIFU,EAAUC,SAAuB,MACjCC,EAAYC,EAAAA,aAEXC,EAAgBC,GAAqBC,EAAQA,UAAU,GAExDC,EAAqBN,UAAgB,GAYrCO,EAAeC,eAClBC,IACiB,SAAZA,EAAEC,MAEAJ,EAAmBK,QACrBP,GAAkB,GAElBA,GAAkB,GAGpBX,IAAWgB,GAEbH,EAAmBK,SAAU,CAAK,GAEpC,CAAClB,IAKGmB,EAAYC,EAAAA,SAAQ,IAAM3B,EAAM4B,KAAKC,GAASA,EAAKC,WAAiB,CAAC9B,KAErE+B,gBAAEA,EAAeC,iBAAEA,EAAgBC,UAAEA,GAAcC,EAAAA,4BAA4B,CACnFrB,QAASE,EACTW,YACAS,uBAAwB7B,GAA6B,gBAAfA,KAGlC8B,EAAsBC,EAAUA,WAAC,CAACC,EAAAA,OAAOC,qBAE/C,OACEC,EAAAA,WAAKC,IAAK5B,EAAS6B,MAAON,EACxBO,SAAAC,EAAAA,KAACC,EAAAA,OACC,CAAAJ,IAAK1B,EACLV,UAAWA,EACXE,SAAUc,KACNT,EACJX,OAAQA,EACRG,KAAMA,EACNI,SAAUA,EACE,aAAAC,EACK,kBAAAC,EACjBC,OAAQA,EAAMgC,SAAA,CACM,MAAnBZ,GACCA,EAAgBe,OAAS,GACzB9C,EACG+C,QAAQlB,GAASE,GAAiBiB,SAASnB,EAAKC,WAChDF,KAAKC,GACJA,EAAKoB,YACHT,MAACU,EAAAA,qBACCpB,QAASD,EAAKC,QACdqB,MAAOtB,EAAKsB,MACZC,KAAMvB,EAAKuB,KACXC,MAAOxB,EAAKwB,MACZC,SAAUzB,EAAKyB,SACfC,SAAU1B,EAAK0B,SAAQ,gBACR1B,EAAK2B,WACpBC,cAAexB,GAAWyB,IAAI7B,EAAKC,WAGrCU,MAACmB,aAAU,CACT7B,QAASD,EAAKC,QACdqB,MAAOtB,EAAKsB,MACZC,KAAMvB,EAAKuB,KACXC,MAAOxB,EAAKwB,MACZC,SAAUzB,EAAKyB,SACfC,SAAU1B,EAAK0B,yBACA1B,EAAK2B,WACpBC,cAAexB,GAAWyB,IAAI7B,EAAKC,aAIxB,MAApBE,GAA4BA,EAAiBc,OAAS,GACrDN,MAACoB,EAAAA,mBACC,CAAAC,OAAQ5C,EACR6C,QApFWvC,IACfR,EAAUU,SAAW,CAAC,aAAc,aAAauB,SAASzB,EAAEwC,SAC9DhD,GAAWU,SAASuC,QAEL,qBAAbzC,EAAEwC,SACJ3C,EAAmBK,SAAU,GAE/BP,GAAkB,EAAM,EA8EhB+C,gBA1Dc,OA2DdC,cAAelE,EAAM+C,QAAQlB,GAASG,GAAkBgB,SAASnB,EAAKC,iBAMlF"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/hooks', './useTranslationBundle-7c40cb58', './clientHints-fff66be9', './mergeInterpolations-9ede4cf7', './flexitem-5db48325', './classNames-08d99695', './Icon-383a68bb', './useTabBarContext-15a23bb6', './Dropdown-73238fd5', './Sheet-404b38fa', './TabBarItem-4ff2ef15', './UNSAFE_TabBarCommon/themes/OverflowTabBarItemStyles.css', './NavigationListItem-32ded4a5', './RemovableNavigationListItem-9950c473'], (function(e,a,t,n,s,o,i,l,r,c,d,m,b,u,f,v,p){"use strict";const x=e=>a.jsx(c.Icon,{viewBox:"0 0 24 24",...e,children:a.jsx("g",{fill:"none",children:a.jsx("path",{d:"M6 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z",fill:"currentcolor"})})});const g=()=>{const{deviceType:e}=o.getClientHints();return"phone"===e};e.OverflowTabBarItem=function({overflowItemKey:e,icon:o,badge:c,overflowItems:h,isOpen:y,onClose:I}){const{selection:j,showFocusRing:C,isEdgeBottom:w,onSelect:B,onRemove:R,layout:T}=d.useTabBarContext(),K=n.useRef(!1),O=n.useRef(null),N=t.createRef(),k=n.useCallback((e=>{"pointer"===e.reason&&(K.current=!0),B?.({value:e.value}),I?.({reason:"itemAction"})}),[B,I]),F=n.useCallback((e=>{I?.({reason:e.reason})}),[I]),L=n.useCallback((()=>{I?.({reason:"dismissed"})}),[I]),S=C&&!K.current&&!g(),D=h?.find((e=>e.itemKey===j))?.tabPanelId,z=s.useTranslationBundle("@oracle/oraclejet-preact"),A=void 0!==j&&(E=j,null!=h?.find((e=>e.itemKey===E)));var E;const H=i.mergeInterpolations([...Object.values(l.flexitemInterpolations)])({flex:"stretch"===T?"1 0 auto":"0 0 auto"}),M=r.classNames([f.styles.navContainerBase]),P=n.useRef(null),U=n.useCallback((e=>{"ArrowDown"===e.key&&(e.preventDefault(),N.current?.focus())}),[N]),_=n.useCallback((()=>a.jsx("div",{onKeyDown:U,tabIndex:0,ref:P,class:M,children:a.jsx(v.NavigationList,{ref:N,selection:j,onSelectionChange:k,onRemove:R,children:h?.map((e=>e.isRemovable?a.jsx(p.RemovableNavigationListItem,{itemKey:e.itemKey,label:e.label,badge:e.badge,metadata:e.metadata,severity:e.severity}):a.jsx(v.NavigationListItem,{itemKey:e.itemKey,label:e.label,badge:e.badge,metadata:e.metadata,severity:e.severity})))})})),[U,M,N,j,k,R,h]);return a.jsxs(a.Fragment,{children:[h&&h.length>0&&a.jsx("div",{ref:O,style:H,children:a.jsx(u.BaseTabBarItem,{"aria-controls":D,itemKey:e,label:z.overflowItemLabel(),icon:o||a.jsx(x,{}),badge:c,showFocusRingOverride:S,selectionOverride:A,displayOverride:"icons","aria-haspopup":!0})}),g()?a.jsx(b.Sheet,{isOpen:y,onClose:L,children:_()}):a.jsx(m.Dropdown,{initialFocus:"firstFocusable",isOpen:y,onClose:F,placement:w?"top-end":"bottom-end",anchorRef:O,children:_()})]})}}));
2
- //# sourceMappingURL=OverflowTabBarItem-db77f3d3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OverflowTabBarItem-db77f3d3.js","sources":["../../src/UNSAFE_RedwoodIcons/OverflowH/OverflowH.tsx","../../src/UNSAFE_TabBarCommon/OverflowTabBarItem.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates. All rights reserved.\n * https://www.oracle.com/contracts/docs/cloud_csa_online_v062223_us_eng.pdf?download=false&er=221886\n * @ignore\n */\n// DO NOT MODIFY THIS FILE MANUALLY!\n// This file is automatically generated based on the corresponding SVG image in\n// the packages/oraclejet-preact/resources/icons folder.\nimport { ComponentProps } from 'preact';\nimport { Icon } from '../../UNSAFE_Icon';\ntype Props = Omit<ComponentProps<typeof Icon>, 'viewBox' | 'children'>;\nconst SvgOverflowH = (props: Props) => (\n <Icon viewBox=\"0 0 24 24\" {...props}>\n <g fill=\"none\">\n <path\n d=\"M6 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z\"\n fill=\"currentcolor\"\n />\n </g>\n </Icon>\n);\nexport { SvgOverflowH as OverflowH };\n","import { ComponentChild, ComponentProps, createRef } from 'preact';\nimport { useCallback, useRef } from 'preact/hooks';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport type { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport {\n NavigationListItem,\n NavigationList,\n RemovableNavigationListItem,\n FocusableHandle\n} from '../UNSAFE_NavigationList';\nimport { OverflowH } from '../UNSAFE_RedwoodIcons/OverflowH';\nimport { useTabBarContext } from './useTabBarContext';\nimport { Dropdown } from '../UNSAFE_Dropdown';\nimport { Sheet } from '../UNSAFE_Sheet';\nimport { BaseTabBarItem } from './BaseTabBarItem';\nimport { styles } from './themes/OverflowTabBarItemStyles.css';\nimport { TabBarItem } from './TabBarItem';\n\nexport type OverflowSelectionDetail<K> = {\n value: K;\n};\n\nexport type CloseDetail = {\n /**\n * dismissed represents dismissing the DropDown\n */\n reason: 'dismissed' | 'itemAction' | 'outsideMousedown';\n};\n\nexport type Item<K extends string | number> = Omit<\n ComponentProps<typeof TabBarItem<K>>,\n 'testId' | 'aria-controls'\n> & {\n isRemovable?: boolean;\n /**\n * Accepts the tabpanel element's ID associated with the tab item\n **/\n tabPanelId?: string;\n};\n\nexport type OverflowTabBarItemProps<K extends string | number> = {\n /**\n * Key of the TabBarItem\n */\n overflowItemKey: K;\n /**\n * Whether to open the popup\n */\n isOpen: boolean;\n /**\n * Property that triggers a callback when DropDown is supposed to be closed.\n */\n onClose?: (detail: CloseDetail) => void;\n /**\n * The icon of the OverflowTabBarItem\n */\n icon?: ComponentChild;\n /**\n * The content to be rendered inside the Badge component.\n */\n badge?: string;\n /**\n * An array of data used by NavigationList to render individual overflow items.\n */\n overflowItems?: Item<K>[];\n};\n\n/**\n * An OverflowTabBarItem renders TabBarItems in a device appropriate popup. OverflowTabBarItem is used internally in an OverflowTabBar.\n */\n\nexport function OverflowTabBarItem<K extends string | number>({\n overflowItemKey,\n icon,\n badge,\n overflowItems,\n isOpen,\n onClose\n}: OverflowTabBarItemProps<K>) {\n const { selection, showFocusRing, isEdgeBottom, onSelect, onRemove, layout } = useTabBarContext();\n\n const isPointerSelection = useRef<boolean>(false);\n\n const overflowTabBarItemRef = useRef<HTMLDivElement>(null);\n const navigationListRef = createRef<FocusableHandle>();\n\n const handleSelectionChange = useCallback<\n Required<ComponentProps<typeof NavigationList>>['onSelectionChange']\n >(\n (detail: { value: string | number; reason?: 'pointer' | 'keyboard' }) => {\n if (detail.reason === 'pointer') {\n isPointerSelection.current = true;\n }\n onSelect?.({ value: detail.value });\n onClose?.({ reason: 'itemAction' });\n },\n [onSelect, onClose]\n );\n\n const handleDropdownClose = useCallback(\n (e: CloseDetail) => {\n onClose?.({ reason: e.reason });\n },\n [onClose]\n );\n\n const handleSheetClose = useCallback(() => {\n onClose?.({ reason: 'dismissed' });\n }, [onClose]);\n\n //When NavigationList steals focus the app resets it. Not always would it be reset to\n //parent of OverflowTabBarItem. Though currentKey would be correct, but focusRing would would not be visible\n //Hence we check for isPointerSelection.current\n\n const focusRingRequirement = showFocusRing && !isPointerSelection.current && !getIsMobile();\n\n const overflowContainsKey = (searchKey: K) => {\n return overflowItems?.find((item) => item.itemKey === searchKey) != null;\n };\n\n const currentPanelId = overflowItems?.find((item) => item.itemKey === selection)?.tabPanelId;\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n const isSelected = selection !== undefined && overflowContainsKey(selection as K);\n\n //instead of specifying flex: '1 0 auto' in cssProps var\n const styleInterpolations = mergeInterpolations<FlexitemProps>([\n ...Object.values(flexitemInterpolations)\n ]);\n const flexDimensions = styleInterpolations({\n flex: layout === 'stretch' ? '1 0 auto' : '0 0 auto'\n });\n\n const navContainerClasses = classNames([styles.navContainerBase]);\n\n const navContainerRef = useRef<HTMLDivElement>(null);\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n navigationListRef.current?.focus();\n }\n },\n [navigationListRef]\n );\n const getNavigationList = useCallback(() => {\n return (\n <div onKeyDown={handleKeyDown} tabIndex={0} ref={navContainerRef} class={navContainerClasses}>\n <NavigationList\n ref={navigationListRef}\n selection={selection}\n onSelectionChange={handleSelectionChange}\n onRemove={onRemove}>\n {overflowItems?.map((item) =>\n item.isRemovable ? (\n <RemovableNavigationListItem\n itemKey={item.itemKey}\n label={item.label}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n />\n ) : (\n <NavigationListItem\n itemKey={item.itemKey}\n label={item.label}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n />\n )\n )}\n </NavigationList>\n </div>\n );\n }, [\n handleKeyDown,\n navContainerClasses,\n navigationListRef,\n selection,\n handleSelectionChange,\n onRemove,\n overflowItems\n ]);\n\n return (\n <>\n {overflowItems && overflowItems.length > 0 && (\n <div ref={overflowTabBarItemRef} style={flexDimensions}>\n <BaseTabBarItem\n aria-controls={currentPanelId}\n itemKey={overflowItemKey}\n label={translations.overflowItemLabel()}\n icon={icon ? icon : <OverflowH />}\n badge={badge}\n showFocusRingOverride={focusRingRequirement}\n selectionOverride={isSelected}\n displayOverride={'icons'}\n aria-haspopup={true}\n />\n </div>\n )}\n {getIsMobile() ? (\n <Sheet isOpen={isOpen} onClose={handleSheetClose}>\n {getNavigationList()}\n </Sheet>\n ) : (\n <Dropdown\n initialFocus=\"firstFocusable\"\n isOpen={isOpen}\n onClose={handleDropdownClose}\n placement={isEdgeBottom ? 'top-end' : 'bottom-end'}\n anchorRef={overflowTabBarItemRef}>\n {getNavigationList()}\n </Dropdown>\n )}\n </>\n );\n}\n\nconst getIsMobile = () => {\n const { deviceType } = getClientHints();\n return deviceType === 'phone';\n};\n"],"names":["SvgOverflowH","props","_jsx","jsx","Icon","viewBox","children","fill","d","getIsMobile","deviceType","getClientHints","overflowItemKey","icon","badge","overflowItems","isOpen","onClose","selection","showFocusRing","isEdgeBottom","onSelect","onRemove","layout","useTabBarContext","isPointerSelection","useRef","overflowTabBarItemRef","navigationListRef","createRef","handleSelectionChange","useCallback","detail","reason","current","value","handleDropdownClose","e","handleSheetClose","focusRingRequirement","currentPanelId","find","item","itemKey","tabPanelId","translations","useTranslationBundle","isSelected","undefined","searchKey","flexDimensions","mergeInterpolations","Object","values","flexitemInterpolations","styleInterpolations","flex","navContainerClasses","classNames","styles","navContainerBase","navContainerRef","handleKeyDown","event","key","preventDefault","focus","getNavigationList","onKeyDown","tabIndex","ref","class","NavigationList","onSelectionChange","map","isRemovable","RemovableNavigationListItem","label","metadata","severity","NavigationListItem","_jsxs","_Fragment","length","style","BaseTabBarItem","overflowItemLabel","OverflowH","showFocusRingOverride","selectionOverride","displayOverride","Sheet","Dropdown","initialFocus","placement","anchorRef"],"mappings":"0fAYA,MAAMA,EAAgBC,GACpBC,EAAAC,IAACC,EAAIA,KAAC,CAAAC,QAAQ,eAAgBJ,EAAKK,SACjCJ,EAAAA,IAAG,IAAA,CAAAK,KAAK,OACND,SAAAJ,MAAA,OAAA,CACEM,EAAE,uGACFD,KAAK,qBCiNb,MAAME,EAAc,KAClB,MAAMC,WAAEA,GAAeC,EAAAA,iBACvB,MAAsB,UAAfD,CAAsB,uBAxJf,UAA8CE,gBAC5DA,EAAeC,KACfA,EAAIC,MACJA,EAAKC,cACLA,EAAaC,OACbA,EAAMC,QACNA,IAEA,MAAMC,UAAEA,EAASC,cAAEA,EAAaC,aAAEA,EAAYC,SAAEA,EAAQC,SAAEA,EAAQC,OAAEA,GAAWC,EAAAA,mBAEzEC,EAAqBC,UAAgB,GAErCC,EAAwBD,SAAuB,MAC/CE,EAAoBC,EAAAA,YAEpBC,EAAwBC,eAG3BC,IACuB,YAAlBA,EAAOC,SACTR,EAAmBS,SAAU,GAE/Bb,IAAW,CA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mBAAkB,CACjBrC,QAASD,EAAKC,QACdkC,MAAOnC,EAAKmC,MACZ/D,MAAO4B,EAAK5B,MACZgE,SAAUpC,EAAKoC,SACfC,SAAUrC,EAAKqC,kBAO1B,CACDjB,EACAL,EACA7B,EACAV,EACAY,EACAR,EACAP,IAGF,OACEkE,EAAAA,KAAAC,EAAAA,SAAA,CAAA5E,SAAA,CACGS,GAAiBA,EAAcoE,OAAS,GACvCjF,EAAAC,IAAA,MAAA,CAAKmE,IAAK3C,EAAuByD,MAAOlC,EACtC5C,SAAAJ,EAAAC,IAACkF,iBAAc,CAAA,gBACE7C,EACfG,QAAS/B,EACTiE,MAAOhC,EAAayC,oBACpBzE,KAAMA,GAAcX,MAACqF,EAAS,CAAA,GAC9BzE,MAAOA,EACP0E,sBAAuBjD,EACvBkD,kBAAmB1C,EACnB2C,gBAAiB,QAAO,iBACT,MAIpBjF,IACCP,EAAAC,IAACwF,EAAKA,MAAA,CAAC3E,OAAQA,EAAQC,QAASqB,EAC7BhC,SAAA6D,MAGHjE,EAAAC,IAACyF,EAAQA,SACP,CAAAC,aAAa,iBACb7E,OAAQA,EACRC,QAASmB,EACT0D,UAAW1E,EAAe,UAAY,aACtC2E,UAAWpE,EACVrB,SAAA6D,QAKX"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', './TrackResizeContainer-c6b5de04', 'preact', 'preact/hooks', './UNSAFE_PictoChart/themes/PictoChartStyles.css', './classNames-08d99695', './useSelection-04d131fa', './useTranslationBundle-7c40cb58', './mergeProps-bcfa6a92', './Common/themes/themeContract.css', './utils-32e81a13', './SvgSymbol-328be71d', './accUtils-93ee6f16', './useUser-797287de', './layoutUtils-ba7693df', './eventsUtils-edf8f4e5', './useVisHover-28319fef', './useVisDrill-af6f9469', './useDatatip-be9b251b', './useItemFocus-75d6510d', './LayerHost-733ade2f', 'preact/compat', './datatipUtils-72a1fe48', './useTestId-c286f212', './useVisTouchResponse-88a7bb09', './stringUtils-0ae982c2'], (function(e,t,o,n,r,i,s,a,c,l,d,u,f,m,h,p,g,I,b,C,x,v,S,w,y,R,F){"use strict";const P=n.createContext({}),k=.25;function M(e,t){return Math.ceil(e/t)*t}const D=e=>"bottomStart"===e||"bottomEnd"===e,T=e=>"topEnd"===e||"bottomEnd"===e,V=(e,t,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)if(e[o+i][t+r])return!1;return!0},$=(e,t,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)e[o+i][t+r]=!0},E=(e,t,o,n,r,i)=>{if(i){const i=E(e,o,t,r,n,!1);return i?{col:i.row,row:i.col}:void 0}for(let i=0;i<r-o+1;i++)for(let r=0;r<n-t+1;r++)if(V(e,r,i,t,o))return $(e,r,i,t,o),{col:r,row:i}};function U(e){const t=e.dataset.idx;if(void 0!==t)return{idx:Number(t)}}function H(e,t,o,n,r,i,s,a,c){let l=!1;if(!n){const e=!!s&&t===s.idx,o=!!r&&t===r.idx;l=!!(e&&s?.isCurrent||o&&r?.isCurrent)}const d=function(e,t){return!t||0===t.length||new Set(t).has(e)}(e.id,a),u=function(e,t){return!(!t||0===t.length)&&new Set(t).has(e)}(e.id,i);return{isCurrent:l,isHighlighted:d,isSelected:u,hasSelection:i&&0!==i.length,isFocused:!!s&&A(s,t),key:e.id,itemIdx:t,countIdx:o,activeId:l?c:void 0,isReadOnly:n,item:e}}function j(e,t){return e?.idx===t?.idx}function A(e,t){return!!e.isFocusVisible&&e.idx===t}function N(e,t,o){return`${o?.vis_labelCountWithTotal({itemCount:e.toString(),totalCount:t.toString()})}`}const B=({context:e,markerProps:o})=>{const{supportsSelection:n}=r.useContext(P),i=function(e,t,o,n,r,i){const s="human"===e,a=o||r&&i,c="ellipse"===e||"rectangle"===e;t=""!==t?t:u.rgba(d.colorSchemeVars.palette.neutral[190],.15);const l=n?d.colorSchemeVars.textIcon.primary:a?t:"";return{markerShape:e,tx:s?70:void 0,ty:s?60:void 0,markerColor:t,borderColor:n||a?u.rgb(d.colorSchemeVars.palette.neutral[0]):t,outerBorderColor:l,markerScale:c&&!l?1:.85,setAspectRatioNone:!!c}}(o.shape,o.color,e.state.focused,e.state.selected,e.state.hovered,n);return t.jsx(f.SvgSymbol,{...i})};function L(e,t){const{idx:o}=e;return t[o]}function W(e){return{getItem:t=>L(t,e),getDetailFromInfo:t=>{if(!t)return{id:void 0,data:void 0};const o=L(t,e);return{id:o?o.id:void 0,data:o}},getPrevItemInfo:e=>function(e){let t=e.idx;return t=Math.max(0,t-1),{idx:t}}(e),getNextItemInfo:t=>function(e,t){let o=e.idx;return o=Math.min(t.length-1,o+1),{idx:o}}(t,e)}}const q=({touchResponse:e,content:t,borderColor:o,width:n,focusedItemRef:r,focusedItemInfo:i})=>{const{direction:s}=h.useUser(),a="rtl"===s,c=r.current?.getBoundingClientRect(),{datatipContent:l,datatipProps:d}=C.useDatatip({content:t,placement:"top-start",offset:p.calculateOffset(a,n,i.isCurrent?c:void 0),borderColor:o,anchor:i?.isCurrent?"element":"pointer",touchResponse:e});return{datatipContent:l,datatipProps:d}},O=e=>{const o=e.supportsSelection||e.supportsDrill,{dimmedItemStyle:n,interactiveItemStyle:r}=i.styles,a=s.classNames([o&&r,!e.isHighlighted&&n]),c=0===e.countIdx,l=c&&function(e,t,o,n,r,i,s,a,c){const l=r?N(e,t,r):"";return a=a||`${n?n+": ":""}${l}`,{"aria-label":m.generateAriaLabel(r,a,{isSelected:o||s?i:void 0})||void 0,role:"img",id:c}}(e.item.count||1,e.totalCount,!!e.supportsSelection,e.item.label,e.translations,e.isSelected,e.hasSelection,e.item.accessibleLabel,e.activeId)||{};return t.jsx("div",{ref:c?e.focusedItemRef:void 0,id:e.activeId,"data-idx":e.itemIdx,"data-count-idx":e.countIdx,style:{gridRow:`${e.row+1} / span ${e.item.rowSpan||1}`,gridColumn:`${e.column+1} / span ${e.item.columnSpan||1}`},class:a,...l,children:e.children})};function _({width:e,height:o,columnWidth:n,rowHeight:f,items:m,columnCount:C,rowCount:v,layout:S,layoutOrigin:w="topStart",selectionMode:P="none",highlightedIds:V=[],selectedIds:$=[],drilling:A="off",onItemDrill:B,onItemHover:L,isFlowingWidth:_,isFlowingHeight:z,onItemFocus:G,...K}){const Z=0!==m.length,J=function(e){let t=0;for(let o=0;o<e.length;o++)t+=e[o].count||1;return t}(m),Q=c.useTranslationBundle("@oracle/oraclejet-preact"),X=!(!P||"none"===P),Y=null!=B,ee=!X&&!Y&&null===L&&null===G,te=y.useTestId(K.testId),oe=new Map(m.map((e=>[e.id,e]))),{getItem:ne,getDetailFromInfo:re,getPrevItemInfo:ie,getNextItemInfo:se}=W(m),{touchResponse:ae,touchResponseStyle:ce}=R.useVisTouchResponse({type:"touchStart"}),{hoveredItemInfo:le,focusedItemInfo:de,activeId:ue,eventsProps:fe}=function(e,t,o,n,i,s,a,c,d,u){const[f,m]=r.useState({idx:0}),[C,x]=r.useState(),v=r.useRef(),{direction:S}=h.useUser(),w="rtl"===S,y=I.useVisHover((e=>{const o=U(e.target);j(o,C)||(x(o&&{...o,isCurrent:!0}),v.current=p.getRandomId(),t&&(m({...f,isCurrent:!1}),d?.(n(o))))}),void 0,(()=>{x(void 0),v.current=void 0,t&&d?.(n())}),e),R=r.useCallback((e=>{const{id:t,data:o}=n(e);null!=t&&o&&(c?.({id:t,data:o}),v.current=p.getRandomId())}),[n,c]),F=r.useCallback((e=>{"keydown"===e.type?"on"==a&&R(f):R(U(e.target))}),[a,f,R]),P=b.useVisDrill(o,F);if(!t)return{focusedItemInfo:f,hoveredItemInfo:C,eventsProps:y};function k(e){u?.(n(e)),v.current=p.getRandomId(),m(e)}function M(e){j(e,f)||(e.isCurrent=!0,e.isFocusVisible=!0,C&&x({...C,isCurrent:!1}),k(e))}return{focusedItemInfo:f,hoveredItemInfo:C,activeId:v.current,eventsProps:l.mergeProps(P,y,{onKeyUp:e=>{"Tab"===e.code&&(k({...f,isCurrent:!0,isFocusVisible:!0}),g.cancelEvent(e))},onKeyDown:e=>{switch(e.key){case"Tab":return;case"ArrowDown":M(s(f)),g.cancelEvent(e);break;case"ArrowUp":M(i(f)),g.cancelEvent(e);break;case"ArrowRight":M(w?i(f):s(f)),g.cancelEvent(e);break;case"ArrowLeft":M(w?s(f):i(f)),g.cancelEvent(e)}},onBlur:()=>{(null!=C||f.isCurrent)&&u?.(n(void 0));const e={...f,isCurrent:!1,isFocusVisible:!1};m(e)}})}}(ae,!ee&&Z,P,re,ie,se,A,B,L,G),{selectionContent:me,selectionProps:he}=a.useSelection({idExtracter:e=>{const t="keyup"===e.type?de:U(e.target);return re(t).id},isDrillEnabled:"off"!=A,selection:$,selectionMode:P,getDataById:e=>oe.get(e),onChange:K.onSelectionChange}),pe=n&&parseFloat(n),ge=f&&parseFloat(f),Ie=s.classNames([i.baseStyles]),{focusedItemRef:be}=x.useItemFocus(de),{content:Ce,borderColor:xe}=function(e,t,o,n,r,i,s){let a;const c=r?.isCurrent;let l,f;c&&null!=e[r.idx].id&&(a=r),n&&n.isCurrent&&(a=n);let m=u.rgba(d.colorSchemeVars.palette.neutral[190],.15);const h=a&&t(a,e);if(h&&i){const e=h&&{data:h},{content:t,borderColor:n}=i(e);l=t,m=n||m,f=s?N(h.count||1,o,s):""}return{borderColor:m,content:l||a&&t(a,e)?.accessibleLabel||a&&t(a,e)?.label+": "+f||f}}(m,ne,J,de,le,K.datatip,Q),{calcColCount:ve,calcRowCount:Se,calcColWidth:we,calcRowHeight:ye,gridGap:Re}=function(e,t,o,n,r,s,a,c,l,d){let u=0,f=1,m=1,h=1/0;for(let t=0;t<e.length;t++){const o=e[t],n=o.columnSpan||1,r=o.rowSpan||1;n<=0||r<=0||(n>f&&(f=n),r>m&&(m=r),n<h&&(h=n),r<h&&(h=r),u+=n*r*(o.count||1))}if(0===u)return{};(r||s)&&(l||(l=d||i.DEFAULT_SIZE),d||(d=l)),a||c||(r||s?r?s?t?c=M(Math.sqrt(u),m):a=M(Math.sqrt(u),f):c=Math.max(Math.floor(n/(d||1)),1):a=Math.max(Math.floor(o/(l||1)),1):t?c=M(Math.sqrt(u*n/o),m):a=M(Math.sqrt(u*o/n),f)),a?c||(c=M(u/a,m)):a=M(u/(c||1),f);const p=k*h;return r||s||(l||(l=d||Math.min(o/a,n/(c||1))),d||(d=l)),a<=0||!c||c<=0||!l||l<=0||!d||d<=0?{}:{calcColCount:a,calcRowCount:c,calcColWidth:l?l-p:l,calcRowHeight:d?d-p:d,gridGap:p}}(m,"vertical"===S,e,o,_,z,C,v,pe,ge),{datatipContent:Fe,datatipProps:{"aria-describedby":Pe,...ke}}=q({touchResponse:ae,content:Ce,width:e,borderColor:xe,focusedItemRef:be,focusedItemInfo:de});if(!ve)return null;const Me=function(e,t,o,n,r){const i=t,s=o,a=D(n),c=T(n),l=[],d=new Array(i);for(let e=0;e<i;e++)d[e]=new Array(s).fill(!1);for(let t=0;t<e.length;t++){const o=e[t];let n=0;const u=o.rowSpan??1,f=o.columnSpan??1,m=o.count??1;for(;n<m;){const e=E(d,f,u,s,i,r);void 0!==e&&l.push({row:a?i-e.row-u:e.row,col:c?s-e.col-f:e.col,countIdx:n,itemIdx:t,item:o}),n+=1}}return l}(m,Se,ve,w,"vertical"===S),De=l.mergeProps(fe,ke,he);return t.jsxs("div",{tabIndex:0,"aria-label":K["aria-label"],"aria-describedby":F.merge([K["aria-describedby"],Pe]),"aria-labelledby":K["aria-labelledby"],"aria-activedescendant":ue,role:"application",style:{width:_?"max-content":`${e}px`,height:z?"max-content":`${o}px`,gridTemplateRows:`repeat(${Se}, ${ye}px)`,gridTemplateColumns:`repeat(${ve}, ${we}px)`,gap:`${Re}px`,...ce},class:Ie,...te,...De,children:[Me.map((e=>{const o=de.idx===e.itemIdx,n=H(e.item,e.itemIdx,e.countIdx,ee,le,$,de,V,ue),r={data:e.item,state:{selected:n.isSelected,focused:n.isFocused,hovered:n.isCurrent}};return t.jsx(O,{focusedItemRef:o?be:void 0,row:e.row,column:e.col,supportsSelection:X,supportsDrill:Y,translations:Q,totalCount:J,...n,children:K.children(r)})})),Fe,me]})}e.PictoChart=function({width:e,height:n,...r}){const i=!(!r.selectionMode||"none"===r.selectionMode),s=void 0===e,a=void 0===n;return t.jsx(P.Provider,{value:{supportsSelection:i},children:t.jsx(o.TrackResizeContainer,{width:s?"initial":e,height:a?"initial":n,children:(e,o)=>t.jsx(_,{width:e,height:o,isFlowingWidth:s,isFlowingHeight:a,...r})})})},e.getPictoDefaultRenderers=function(e){return{markerRenderer:o=>{const n=e(o.data);return t.jsx(B,{context:o,markerProps:n})},datatipRenderer:t=>({borderColor:e(t.data).color})}}}));
2
- //# sourceMappingURL=PictoChart-d5bedf82.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PictoChart-d5bedf82.js","sources":["../../src/UNSAFE_PictoChart/PictoChartContext.tsx","../../src/UNSAFE_PictoChart/pictoChartLayoutUtils.ts","../../src/UNSAFE_PictoChart/pictoChartUtils.tsx","../../src/UNSAFE_PictoChart/pictoChartNavUtils.ts","../../src/UNSAFE_PictoChart/usePictoChartDatatip.ts","../../src/UNSAFE_PictoChart/PictoChartElement.tsx","../../src/UNSAFE_PictoChart/PictoChartWithDimensions.tsx","../../src/UNSAFE_PictoChart/useEvents.ts","../../src/UNSAFE_PictoChart/PictoChart.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { createContext } from 'preact';\nimport { useContext } from 'preact/hooks';\n\ntype PictoChartContextValue = {\n supportsSelection?: boolean;\n};\n\nconst PictoChartContext = createContext<PictoChartContextValue>({} as PictoChartContextValue);\nconst usePictoChartContext = () => useContext(PictoChartContext);\n\nexport { PictoChartContext, usePictoChartContext };\n","import type { PictoChartItemData } from './pictoChart.type';\nimport { DEFAULT_SIZE } from './themes/PictoChartStyles.css';\n\nconst GAP_RATIO = 0.25;\n\nfunction _ceil(a: number, b: number) {\n return Math.ceil(a / b) * b;\n}\n\nexport function getFlowingInfo<K, D extends PictoChartItemData<K>>(\n items: D[],\n isVert: boolean,\n width: number,\n height: number,\n isFlowingWidth: boolean,\n isFlowingHeight: boolean,\n colCount?: number,\n rowCount?: number,\n colWidth?: number,\n rowHeight?: number\n) {\n let numCells = 0;\n let maxColSpan = 1;\n let maxRowSpan = 1;\n let minSpan = Infinity;\n\n for (let i = 0; i < items.length; i++) {\n const item = items[i];\n const columnSpan = item.columnSpan || 1;\n const rowSpan = item.rowSpan || 1;\n if (columnSpan <= 0 || rowSpan <= 0) continue;\n\n // Compute the maximum columnSpan and rowSpan\n if (columnSpan > maxColSpan) maxColSpan = columnSpan;\n if (rowSpan > maxRowSpan) maxRowSpan = rowSpan;\n\n // Compute minimum span for gap computation\n if (columnSpan < minSpan) minSpan = columnSpan;\n if (rowSpan < minSpan) minSpan = rowSpan;\n\n numCells += columnSpan * rowSpan * (item.count || 1);\n }\n\n if (numCells === 0) return {};\n\n // Default colWidth and rowHeight for flowing layout\n if (isFlowingWidth || isFlowingHeight) {\n if (!colWidth) colWidth = rowHeight ? rowHeight : DEFAULT_SIZE;\n if (!rowHeight) rowHeight = colWidth;\n }\n\n // Default colCount and rowCount for both layouts\n // We set the default colCount (or rowCount) to be an integer multiple of the maxColSpan (or maxRowSpan) to\n // ensure that all the items can find a spot to occupy in the mixed sizes case.\n\n if (!colCount && !rowCount) {\n // Try to achieve square cells, (width / colCount) = (height / rowCount)\n if (!isFlowingWidth && !isFlowingHeight) {\n if (isVert) rowCount = _ceil(Math.sqrt((numCells * height) / width), maxRowSpan);\n else colCount = _ceil(Math.sqrt((numCells * width) / height), maxColSpan);\n } else if (!isFlowingWidth) colCount = Math.max(Math.floor(width / (colWidth || 1)), 1);\n else if (!isFlowingHeight) rowCount = Math.max(Math.floor(height / (rowHeight || 1)), 1);\n else {\n if (isVert) rowCount = _ceil(Math.sqrt(numCells), maxRowSpan);\n else colCount = _ceil(Math.sqrt(numCells), maxColSpan);\n }\n }\n\n // Now only either colCount or rowCount is undefined\n if (!colCount) colCount = _ceil(numCells / (rowCount || 1), maxColSpan);\n else if (!rowCount) rowCount = _ceil(numCells / colCount, maxRowSpan);\n\n const gridGap = GAP_RATIO * minSpan;\n // Default colWidth and rowHeight for fixed layout\n if (!isFlowingWidth && !isFlowingHeight) {\n if (!colWidth)\n colWidth = rowHeight ? rowHeight : Math.min(width / colCount, height / (rowCount || 1));\n if (!rowHeight) rowHeight = colWidth;\n }\n\n if (\n colCount <= 0 ||\n !rowCount ||\n rowCount <= 0 ||\n !colWidth ||\n colWidth <= 0 ||\n !rowHeight ||\n rowHeight <= 0\n )\n return {};\n\n return {\n calcColCount: colCount,\n calcRowCount: rowCount,\n calcColWidth: colWidth ? colWidth - gridGap : colWidth,\n calcRowHeight: rowHeight ? rowHeight - gridGap : rowHeight,\n gridGap: gridGap\n };\n}\n\n/**\n * Returns whether the pictoChart is layout from bottom to top.\n */\nconst isOriginBottom = (origin: string) => {\n return origin === 'bottomStart' || origin === 'bottomEnd';\n};\n\n/**\n * Returns whether the pictoChart is layout from right to left.\n */\nconst isOriginRight = (origin: string) => {\n const isEnd = origin === 'topEnd' || origin === 'bottomEnd';\n return isEnd;\n};\n\n/**\n * Returns whether the cells are available given col, row and columnSpan, rowSpan needed.\n */\nconst areCellsAvailable = (\n map: boolean[][],\n col: number,\n row: number,\n columnSpan: number,\n rowSpan: number\n) => {\n for (let r = 0; r < rowSpan; r++) {\n for (let c = 0; c < columnSpan; c++) {\n if (map[row + r][col + c]) return false;\n }\n }\n return true;\n};\n\n/**\n * Occupies the cell in the map given col, row and columnSpan, rowSpan.\n */\nconst occupyCells = (\n map: boolean[][],\n col: number,\n row: number,\n columnSpan: number,\n rowSpan: number\n) => {\n for (let r = 0; r < rowSpan; r++) {\n for (let c = 0; c < columnSpan; c++) {\n map[row + r][col + c] = true;\n }\n }\n};\n\n/**\n * Returns whether the cells are available given col, row and the colCount and rowCount of the pictochart.\n */\nconst findNextAvailableCell = (\n map: boolean[][],\n columnSpan: number,\n rowSpan: number,\n colCount: number,\n rowCount: number,\n isVert: boolean\n): { row: number; col: number } | undefined => {\n if (isVert) {\n // For vertical layout, switch row and col in the computation, and switch the result back\n const cell = findNextAvailableCell(map, rowSpan, columnSpan, rowCount, colCount, false);\n return cell ? { col: cell.row, row: cell.col } : undefined;\n }\n\n for (let r = 0; r < rowCount - rowSpan + 1; r++) {\n for (let c = 0; c < colCount - columnSpan + 1; c++) {\n if (areCellsAvailable(map, c, r, columnSpan, rowSpan)) {\n occupyCells(map, c, r, columnSpan, rowSpan);\n return { col: c, row: r };\n }\n }\n }\n\n return;\n};\n\n/**\n * Returns the picto items with row and col of the pictochart.\n */\nexport function generateElementCoords<K, D extends PictoChartItemData<K>>(\n items: D[],\n row: number,\n column: number,\n layoutOrigin: 'topStart' | 'topEnd' | 'bottomStart' | 'bottomEnd',\n isVert: boolean\n) {\n const rowCount = row;\n const colCount = column;\n const isLayoutBottom = isOriginBottom(layoutOrigin);\n const isLayoutRight = isOriginRight(layoutOrigin);\n\n const pictoItems = [];\n const map: boolean[][] = new Array(rowCount);\n for (let i = 0; i < rowCount; i++) {\n map[i] = new Array(colCount).fill(false);\n }\n\n for (let i = 0; i < items.length; i++) {\n const currItem = items[i];\n let count = 0;\n const rowSpan = currItem.rowSpan ?? 1;\n const columnSpan = currItem.columnSpan ?? 1;\n const totalCount = currItem.count ?? 1;\n\n while (count < totalCount) {\n const cell = findNextAvailableCell(map, columnSpan, rowSpan, colCount, rowCount, isVert);\n if (cell !== undefined) {\n pictoItems.push({\n row: isLayoutBottom ? rowCount - cell.row - rowSpan : cell.row,\n col: isLayoutRight ? colCount - cell.col - columnSpan : cell.col,\n countIdx: count,\n itemIdx: i,\n item: currItem\n });\n }\n count += 1;\n }\n }\n\n return pictoItems;\n}\n","import { ComponentChildren } from 'preact';\nimport type {\n ItemInfo,\n PictoChartItemData,\n MarkerRendererContext,\n PictoRendererOptions,\n DatatipContext\n} from './pictoChart.type';\nimport { HTMLAttributesSignalExcluded } from '#utils/UNSAFE_attributeUtils';\nimport { BundleType } from '#resources/nls/bundle';\nimport { MarkerShapes } from '#utils/UNSAFE_visTypes/common';\nimport { colorSchemeVars } from '#Common/themes/themeContract.css';\nimport { rgb, rgba } from '#UNSAFE_Theme';\nimport { SvgSymbol } from '#PRIVATE_SvgShapes';\nimport { usePictoChartContext } from './PictoChartContext';\nimport { Property } from 'csstype';\nimport { ColorProps } from '#utils/UNSAFE_interpolations/colors';\nimport { generateAriaLabel } from '#utils/UNSAFE_visUtils/accUtils';\n\n/**\n * Checks if the item is highlighted.\n * @param id Id of the item\n * @param highlighted The set of highlighted item\n */\nexport function isItemHighlighted<K>(id: K, highlightedIds?: K[]) {\n if (!highlightedIds || highlightedIds.length === 0) {\n return true;\n }\n return new Set(highlightedIds).has(id);\n}\n\n/**\n * Checks if the item is highlighted.\n * @param id Id of the item\n * @param selectedIds The set of highlighted item\n */\nexport function isItemSelected<K>(id: K, selectedIds?: K[]) {\n if (!selectedIds || selectedIds.length === 0) {\n return false;\n }\n return new Set(selectedIds).has(id);\n}\n\n/**\n * Returns the value of the data-oj-item-index attribute for a given element.\n * @param element The HTML element.\n */\nexport function getItemInfo(element: HTMLElement) {\n const itemIdx = element.dataset['idx'];\n if (itemIdx === undefined) return;\n\n return {\n idx: Number(itemIdx)\n };\n}\n\n/**\n * Returns the item props for PictoChart.\n * @param item The picto chart item.\n * @param itemIdx The item index of the item.\n * @param countIdx The item count of the item.\n * @param isReadOnly Whether the picto chart is readonly.\n * @param hoveredItem The info of the currently hovered item.\n * @param selectedIds The selected Ids\n * @param focusedItem The info of currently focused item.\n * @param highlightedIds The highlighted ids.\n * @param activeId The active Id\n */\nexport function getItemProps<K, D extends PictoChartItemData<K>>(\n item: D,\n itemIdx: number,\n countIdx: number,\n isReadOnly: boolean,\n hoveredItem?: ItemInfo,\n selectedIds?: Array<K>,\n focusedItem?: ItemInfo,\n highlightedIds?: Array<K>,\n activeId?: string\n) {\n let isCurrent = false;\n if (!isReadOnly) {\n const isFocusedItem = !!focusedItem && itemIdx === focusedItem.idx;\n const isHoveredItem = !!hoveredItem && itemIdx === hoveredItem.idx;\n isCurrent = !!(\n (isFocusedItem && focusedItem?.isCurrent) ||\n (isHoveredItem && hoveredItem?.isCurrent)\n );\n }\n const isHighlighted = isItemHighlighted<K>(item.id, highlightedIds);\n const isSelected = isItemSelected(item.id, selectedIds);\n const hasSelection = selectedIds && selectedIds.length !== 0;\n\n return {\n isCurrent,\n isHighlighted: isHighlighted,\n isSelected: isSelected,\n hasSelection,\n isFocused: focusedItem ? hasFocusRing(focusedItem, itemIdx) : false,\n key: item.id,\n itemIdx,\n countIdx,\n activeId: isCurrent ? activeId : undefined,\n isReadOnly,\n item: item\n };\n}\n\n/**\n * Compares if two ItemInfo are equal\n * @param item1\n * @param item2\n * @returns\n */\nexport function isEqualItem(item1?: ItemInfo, item2?: ItemInfo) {\n return item1?.idx === item2?.idx;\n}\n\n/**\n * Checks if the item is the currentItem and if the focus ring\n * is visible.\n * @param itemInfo ItemInfo\n * @param itemIdx Item index\n */\nexport function hasFocusRing(itemInfo: ItemInfo, itemIdx: number) {\n if (!itemInfo.isFocusVisible) return false;\n return itemInfo.idx === itemIdx;\n}\n\n/**\n *\n */\nexport function getCountWithTotal(itemCount: number, totalCount: number, translations: BundleType) {\n const totalWithCountLabel = `${translations?.vis_labelCountWithTotal({\n itemCount: itemCount.toString(),\n totalCount: totalCount.toString()\n })}`;\n return totalWithCountLabel;\n}\n\n/**\n * Returns the aria properties for the picto chart.\n * @param isReadOnly { boolean } If the picto chart is readonly.\n * @param accessibleLabel { string } The aria-label set by the app.\n * @returns The aria props.\n */\nexport function getItemAriaProps(\n itemCount: number,\n totalCount: number,\n supportsSelection: boolean,\n label?: string,\n translations?: BundleType,\n isSelected?: boolean,\n hasSelection?: boolean,\n accessibleLabel?: string,\n activeId?: string\n): {\n 'aria-label'?: HTMLAttributesSignalExcluded['aria-label'];\n role: HTMLAttributesSignalExcluded['role'];\n id?: string;\n} {\n const totalWithCountLabel = translations\n ? getCountWithTotal(itemCount, totalCount, translations)\n : '';\n\n accessibleLabel = accessibleLabel || `${label ? label + ': ' : ''}${totalWithCountLabel}`; // TODO: use a translation string for :\n\n return {\n 'aria-label':\n generateAriaLabel(translations!, accessibleLabel, {\n isSelected: !supportsSelection && !hasSelection ? undefined : isSelected\n }) || undefined,\n role: 'img',\n id: activeId\n };\n}\n\n/**\n * Returns the marker props for SVGSymbol\n */\nexport function getMarkerProps(\n shape: MarkerShapes,\n color?: ColorProps['color'],\n isFocused?: boolean,\n isSelected?: boolean,\n isCurrent?: boolean,\n supportsSelection?: boolean\n) {\n const isHuman = shape === 'human';\n const applyHover = isFocused || (isCurrent && supportsSelection);\n const isNoneEqualSides = shape === 'ellipse' || shape === 'rectangle';\n color = color !== '' ? color : rgba(colorSchemeVars.palette.neutral['190'], 0.15);\n const outerBorderColor = isSelected ? colorSchemeVars.textIcon.primary : applyHover ? color : '';\n\n return {\n markerShape: shape,\n tx: isHuman ? 70 : undefined,\n ty: isHuman ? 60 : undefined,\n markerColor: color,\n borderColor: isSelected || applyHover ? rgb(colorSchemeVars.palette.neutral[0]) : color,\n outerBorderColor,\n markerScale: isNoneEqualSides && !outerBorderColor ? 1 : 0.85,\n setAspectRatioNone: isNoneEqualSides ? true : false\n };\n}\n\n// Creating component to read the context\nconst PictoRenderer = <K,>({\n context,\n markerProps\n}: {\n context: MarkerRendererContext<K>;\n markerProps: PictoRendererOptions;\n}) => {\n const { supportsSelection } = usePictoChartContext();\n const markerProp = getMarkerProps(\n markerProps.shape,\n markerProps.color,\n context.state.focused,\n context.state.selected,\n context.state.hovered,\n supportsSelection\n );\n\n return <SvgSymbol {...markerProp} />;\n};\n\n/**\n * Returns the marker renderer for SVGSymbol\n */\nexport function getPictoDefaultRenderers<\n K,\n D extends PictoChartItemData<K> = PictoChartItemData<K>\n>(rendererOptions: (data: D) => PictoRendererOptions) {\n return {\n markerRenderer: (context: MarkerRendererContext<D>) => {\n const props = rendererOptions(context.data); // TODO: should we add default values\n return <PictoRenderer context={context} markerProps={props} />;\n },\n datatipRenderer: (context: DatatipContext<D>) => {\n const props = rendererOptions(context.data);\n return { borderColor: props.color };\n }\n };\n}\n\nexport function getTotalCount<K>(items: PictoChartItemData<K>[]) {\n let totalCount = 0;\n for (let i = 0; i < items.length; i++) {\n totalCount += items[i].count || 1;\n }\n return totalCount;\n}\n\n/**\n * Returns the text for the picto chart datatip.\n * @param items The picto chart items data.\n * @param focusedItem The item currently keyboard focused.\n * @param hoveredItem The item that is currently hovered.\n * @param datatip The datatip.\n */\nexport function getDatatipContent<K, D extends PictoChartItemData<K>>(\n items: D[],\n getItem: (itemInfo: ItemInfo, items: D[]) => D | undefined,\n totalCount: number,\n focusedItem: ItemInfo,\n hoveredItem?: ItemInfo,\n datatip?: (context: DatatipContext<D>) => {\n content?: ComponentChildren;\n borderColor?: Property.BorderColor;\n },\n translations?: BundleType\n) {\n let itemInfo;\n const isPointerActive = hoveredItem?.isCurrent;\n if (isPointerActive && items[hoveredItem.idx].id != null) {\n itemInfo = hoveredItem;\n }\n if (focusedItem && focusedItem.isCurrent) {\n itemInfo = focusedItem;\n }\n let _content, countWithTotal;\n let _borderColor: string = rgba(colorSchemeVars.palette.neutral['190'], 0.15);\n const item = itemInfo && getItem(itemInfo, items);\n if (item && datatip) {\n // custom datatip\n const datatipContext = item && { data: item };\n const { content, borderColor } = datatip(datatipContext);\n _content = content;\n _borderColor = borderColor || _borderColor;\n countWithTotal = translations\n ? getCountWithTotal(item.count || 1, totalCount, translations)\n : '';\n }\n return {\n borderColor: _borderColor,\n content:\n _content ||\n (itemInfo && getItem(itemInfo, items)?.accessibleLabel) ||\n (itemInfo && getItem(itemInfo, items)?.label + ': ' + countWithTotal) ||\n countWithTotal\n };\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type {\n ItemHoverDetail,\n ItemFocusDetail,\n ItemInfo,\n PictoChartItemData\n} from './pictoChart.type';\n\n/**\n * Returns the item based on item info in a picto chart.\n * @param itemInfo\n * @param items\n * @returns\n */\nfunction getItem<K, D extends PictoChartItemData<K>>(itemInfo: ItemInfo, items: D[]) {\n const { idx } = itemInfo;\n return items[idx];\n}\n\n/**\n * Returns the next item's info in a picto chart.\n * @param itemInfo\n * @param items\n * @returns\n */\nfunction getNextItemInfo<K, D extends PictoChartItemData<K>>(itemInfo: ItemInfo, items: D[]) {\n let idx = itemInfo.idx;\n\n idx = Math.min(items.length - 1, idx + 1);\n return { idx: idx };\n}\n\n/**\n * Returns the previous item's info in a picto chart.\n * @param itemInfo\n * @returns\n */\nfunction getPrevItemInfo(itemInfo: ItemInfo) {\n let idx = itemInfo.idx;\n\n idx = Math.max(0, idx - 1);\n return { idx: idx };\n}\n\n/**\n * Returns utils functions for navigation in a picto chart.\n * @param items\n * @returns\n */\nexport function getPictoChartNavUtils<K, D extends PictoChartItemData<K>>(items: D[]) {\n return {\n getItem: (itemInfo: ItemInfo) => {\n return getItem(itemInfo, items);\n },\n getDetailFromInfo: (itemInfo?: ItemInfo): ItemHoverDetail<K, D> | ItemFocusDetail<K, D> => {\n if (!itemInfo) {\n return { id: undefined, data: undefined };\n }\n const item = getItem(itemInfo, items);\n return { id: item ? item.id : undefined, data: item };\n },\n getPrevItemInfo: (itemInfo: ItemInfo) => {\n return getPrevItemInfo(itemInfo);\n },\n getNextItemInfo: (itemInfo: ItemInfo) => {\n return getNextItemInfo(itemInfo, items);\n }\n };\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { RefObject } from 'preact';\nimport type { ItemInfo } from './pictoChart.type';\nimport { useDatatip } from '#hooks/PRIVATE_useDatatip';\nimport { calculateOffset } from '#utils/PRIVATE_visLayoutUtils/layoutUtils';\nimport { ComponentChildren } from 'preact';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport { Property } from 'csstype';\n\ntype Props = {\n touchResponse: 'touchStart' | 'touchHold';\n content?: ComponentChildren;\n borderColor?: Property.BorderColor;\n focusedItemInfo: ItemInfo;\n width: number;\n focusedItemRef: RefObject<HTMLDivElement>;\n};\n\n/**\n * Returns the datatip.\n * @param content The text string for the picto chart item.\n * @param focusedItemRef The ref for focused item node.\n * @param focusedItemInfo The ItemInfo for focused item node.\n * @returns\n */\nexport const usePictoChartDatatip = ({\n touchResponse,\n content,\n borderColor,\n width,\n focusedItemRef,\n focusedItemInfo\n}: Props) => {\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n\n const itemDim = focusedItemRef.current?.getBoundingClientRect();\n const { datatipContent, datatipProps } = useDatatip({\n content,\n placement: 'top-start',\n offset: calculateOffset(isRtl, width, focusedItemInfo.isCurrent ? itemDim : undefined),\n borderColor,\n anchor: focusedItemInfo?.isCurrent ? 'element' : 'pointer',\n touchResponse\n });\n return { datatipContent: datatipContent, datatipProps: datatipProps };\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentChildren } from 'preact';\nimport { styles } from './themes/PictoChartStyles.css';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { BundleType } from '#resources/nls/bundle';\nimport { getItemAriaProps } from './pictoChartUtils';\nimport type { RefObject } from 'preact';\nimport { PictoChartItemData } from './pictoChart.type';\n\nexport type PictoElementProps<K, D extends PictoChartItemData<K>> = {\n item: D;\n children: ComponentChildren;\n row: number;\n column: number;\n totalCount: number;\n class?: string;\n activeId?: string;\n isHighlighted?: boolean;\n isSelected?: boolean;\n hasSelection?: boolean;\n itemIdx?: number;\n countIdx?: number;\n supportsSelection?: boolean;\n supportsDrill?: boolean;\n translations?: BundleType;\n focusedItemRef?: RefObject<HTMLDivElement>;\n};\n\nconst PictoChartElement = <K, D extends PictoChartItemData<K>>(props: PictoElementProps<K, D>) => {\n const isInteractive = props.supportsSelection || props.supportsDrill;\n\n const { dimmedItemStyle, interactiveItemStyle } = styles;\n\n const itemClasses = classNames([\n isInteractive && interactiveItemStyle,\n !props.isHighlighted && dimmedItemStyle\n ]);\n const isFirstElement = props.countIdx === 0;\n const itemAriaProps =\n (isFirstElement &&\n getItemAriaProps(\n props.item.count || 1,\n props.totalCount,\n !!props.supportsSelection,\n props.item.label,\n props.translations,\n props.isSelected,\n props.hasSelection,\n props.item.accessibleLabel,\n props.activeId\n )) ||\n {};\n\n return (\n <div\n ref={isFirstElement ? props.focusedItemRef : undefined}\n id={props.activeId}\n data-idx={props.itemIdx}\n data-count-idx={props.countIdx}\n style={{\n gridRow: `${props.row + 1} / span ${props.item.rowSpan || 1}`,\n gridColumn: `${props.column + 1} / span ${props.item.columnSpan || 1}`\n }}\n class={itemClasses}\n {...itemAriaProps}>\n {props.children}\n </div>\n );\n};\n\nexport { PictoChartElement };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { baseStyles } from './themes/PictoChartStyles.css';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { generateElementCoords, getFlowingInfo } from './pictoChartLayoutUtils';\nimport { useSelection } from '#hooks/PRIVATE_useVisSelection';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '#resources/nls/bundle';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\nimport { getItemInfo, getDatatipContent, getItemProps, getTotalCount } from './pictoChartUtils';\nimport { getPictoChartNavUtils } from './pictoChartNavUtils';\nimport { useEvents } from './useEvents';\nimport { usePictoChartDatatip } from './usePictoChartDatatip';\nimport { useItemFocus } from '#hooks/PRIVATE_useVisEvents';\nimport { useTestId } from '#hooks/UNSAFE_useTestId';\nimport { PictoChartProps, PictoChartItemData } from './pictoChart.type';\nimport { PictoChartElement } from './PictoChartElement';\nimport { useVisTouchResponse } from '#hooks/PRIVATE_useVisTouchResponse';\nimport { merge } from '#utils/UNSAFE_stringUtils';\n\ntype PictoChartWithDimensionsProps<K, D> = Omit<PictoChartProps<K, D>, 'width' | 'height'> & {\n width: number;\n height: number;\n isFlowingWidth: boolean;\n isFlowingHeight: boolean;\n};\n\nexport function PictoChartWithDimensions<\n K extends string | number,\n D extends PictoChartItemData<K> = PictoChartItemData<K>\n>({\n width,\n height,\n columnWidth,\n rowHeight,\n items,\n columnCount,\n rowCount,\n layout,\n layoutOrigin = 'topStart',\n selectionMode = 'none',\n highlightedIds = [],\n selectedIds = [],\n drilling = 'off',\n onItemDrill,\n onItemHover,\n isFlowingWidth,\n isFlowingHeight,\n onItemFocus,\n ...props\n}: PictoChartWithDimensionsProps<K, D>) {\n const hasData = items.length !== 0;\n const totalCount = getTotalCount(items);\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const supportsSelection = !!(selectionMode && selectionMode !== 'none');\n const supportsDrill = onItemDrill != null;\n const isReadOnly =\n !supportsSelection && !supportsDrill && onItemHover === null && onItemFocus === null;\n const testIdProps = useTestId(props.testId);\n const idToDataMap = new Map(items.map((obj) => [obj.id, obj]));\n\n const { getItem, getDetailFromInfo, getPrevItemInfo, getNextItemInfo } = getPictoChartNavUtils<\n K,\n D\n >(items);\n\n const { touchResponse, touchResponseStyle } = useVisTouchResponse({ type: 'touchStart' });\n\n const { hoveredItemInfo, focusedItemInfo, activeId, eventsProps } = useEvents<K, D>(\n touchResponse,\n !isReadOnly && hasData,\n selectionMode,\n getDetailFromInfo,\n getPrevItemInfo,\n getNextItemInfo,\n drilling,\n onItemDrill,\n onItemHover,\n onItemFocus\n );\n\n const idExtracter = (event: Event) => {\n // return focused item for keyboard event.\n // eventsProps should have already updated the focused item\n const info =\n event.type === 'keyup' ? focusedItemInfo : getItemInfo(event.target as HTMLElement);\n return getDetailFromInfo(info).id;\n };\n\n const { selectionContent, selectionProps } = useSelection<K, D>({\n idExtracter,\n isDrillEnabled: drilling != 'off',\n selection: selectedIds,\n selectionMode: selectionMode,\n getDataById: (id) => idToDataMap.get(id),\n onChange: props.onSelectionChange\n });\n\n const rectangleWidth = columnWidth && parseFloat(columnWidth);\n const rectangleHeight = rowHeight && parseFloat(rowHeight);\n const pictoStyleClasses = classNames([baseStyles]);\n const { focusedItemRef } = useItemFocus(focusedItemInfo);\n const { content, borderColor } = getDatatipContent(\n items,\n getItem,\n totalCount,\n focusedItemInfo,\n hoveredItemInfo,\n props.datatip,\n translations\n );\n const { calcColCount, calcRowCount, calcColWidth, calcRowHeight, gridGap } = getFlowingInfo<K, D>(\n items,\n layout === 'vertical',\n width,\n height,\n isFlowingWidth,\n isFlowingHeight,\n columnCount,\n rowCount,\n rectangleWidth,\n rectangleHeight\n );\n\n const {\n datatipContent,\n datatipProps: { 'aria-describedby': datatipAriaDescribedby, ...datatipProps }\n } = usePictoChartDatatip({\n touchResponse,\n content,\n width,\n borderColor,\n focusedItemRef,\n focusedItemInfo\n });\n\n if (!calcColCount)\n // Nothing to render.\n return null;\n\n const elements = generateElementCoords(\n items,\n calcRowCount,\n calcColCount,\n layoutOrigin,\n layout === 'vertical'\n );\n\n const mergedEventProps = mergeProps(eventsProps, datatipProps, selectionProps);\n return (\n <div\n tabIndex={0}\n aria-label={props['aria-label']}\n aria-describedby={merge([props['aria-describedby'], datatipAriaDescribedby])}\n aria-labelledby={props['aria-labelledby']}\n aria-activedescendant={activeId}\n role=\"application\"\n style={{\n width: isFlowingWidth ? 'max-content' : `${width}px`,\n height: isFlowingHeight ? 'max-content' : `${height}px`,\n gridTemplateRows: `repeat(${calcRowCount}, ${calcRowHeight}px)`,\n gridTemplateColumns: `repeat(${calcColCount}, ${calcColWidth}px)`,\n gap: `${gridGap}px`,\n ...touchResponseStyle\n }}\n class={pictoStyleClasses}\n {...testIdProps}\n {...mergedEventProps}>\n {elements.map((elt) => {\n const isFocusedItem = focusedItemInfo.idx === elt.itemIdx;\n const itemProps = getItemProps(\n elt.item,\n elt.itemIdx,\n elt.countIdx,\n isReadOnly,\n hoveredItemInfo,\n selectedIds,\n focusedItemInfo,\n highlightedIds,\n activeId\n );\n\n const context = {\n data: elt.item,\n state: {\n selected: itemProps.isSelected,\n focused: itemProps.isFocused,\n hovered: itemProps.isCurrent\n }\n };\n\n return (\n <PictoChartElement<K, D>\n focusedItemRef={isFocusedItem ? focusedItemRef : undefined}\n row={elt.row}\n column={elt.col}\n supportsSelection={supportsSelection}\n supportsDrill={supportsDrill}\n translations={translations}\n totalCount={totalCount}\n {...itemProps}>\n {props.children(context)}\n </PictoChartElement>\n );\n })}\n {datatipContent}\n {selectionContent}\n </div>\n );\n}\n","import { useCallback, useRef, useState } from 'preact/hooks';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport type {\n ItemHoverDetail,\n ItemFocusDetail,\n ItemInfo,\n PictoChartItemData,\n ItemDrillDetail\n} from './pictoChart.type';\nimport { getItemInfo, isEqualItem } from './pictoChartUtils';\nimport { getRandomId } from '#utils/PRIVATE_visLayoutUtils/layoutUtils';\nimport { cancelEvent } from '#utils/UNSAFE_visUtils/eventsUtils';\nimport { useVisHover } from '#hooks/PRIVATE_useVisHover';\nimport { useVisDrill } from '#hooks/PRIVATE_useVisDrill';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\n\nexport function useEvents<K, D extends PictoChartItemData<K>>(\n touchResponse: 'touchStart' | 'touchHold',\n isInteractive: boolean,\n selectionMode: 'none' | 'single' | 'multiple',\n getDetailFromInfo: (info?: ItemInfo) => ItemHoverDetail<K, D> | ItemFocusDetail<K, D>,\n getPrevItemInfo: (info: ItemInfo) => ItemInfo,\n getNextItemInfo: (info: ItemInfo) => ItemInfo,\n drilling?: 'on' | 'off',\n onItemDrill?: (detail: ItemDrillDetail<K, D>) => void,\n onItemHover?: (detail: ItemHoverDetail<K, D>) => void,\n onItemFocus?: (detail: ItemFocusDetail<K, D>) => void\n) {\n const [focusedItemInfo, setfocusedItemInfo] = useState<ItemInfo>({ idx: 0 });\n const [hoveredItemInfo, sethoveredItemInfo] = useState<ItemInfo>();\n\n const activeId = useRef<string>();\n\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n\n const onHover = (event: PointerEvent) => {\n const itemInfo = getItemInfo(event.target as HTMLElement);\n if (!isEqualItem(itemInfo, hoveredItemInfo)) {\n sethoveredItemInfo(itemInfo && { ...itemInfo, isCurrent: true });\n activeId.current = getRandomId();\n if (isInteractive) {\n setfocusedItemInfo({ ...focusedItemInfo, isCurrent: false });\n onItemHover?.(getDetailFromInfo(itemInfo));\n }\n }\n };\n\n const onHoverLeave = () => {\n sethoveredItemInfo(undefined);\n activeId.current = undefined;\n if (isInteractive) {\n onItemHover?.(getDetailFromInfo());\n }\n };\n\n const hoverHandlers = useVisHover(onHover, undefined, onHoverLeave, touchResponse);\n\n const processDrill = useCallback(\n (info?: ItemInfo) => {\n const { id, data } = getDetailFromInfo(info);\n if (id != null && data) {\n onItemDrill?.({ id, data });\n activeId.current = getRandomId();\n }\n },\n [getDetailFromInfo, onItemDrill]\n );\n\n const onDrill = useCallback(\n (event: Event) => {\n if (event.type === 'keydown') {\n if (drilling == 'on') processDrill(focusedItemInfo);\n } else {\n processDrill(getItemInfo(event.target as HTMLElement));\n }\n },\n [drilling, focusedItemInfo, processDrill]\n );\n\n const drillProps = useVisDrill(selectionMode, onDrill);\n\n if (!isInteractive) {\n return {\n focusedItemInfo,\n hoveredItemInfo,\n // include relevant hover handlers for datatip\n eventsProps: hoverHandlers\n };\n }\n\n function updatefocusedItemInfo(itemInfo: ItemInfo) {\n onItemFocus?.(getDetailFromInfo(itemInfo));\n activeId.current = getRandomId();\n setfocusedItemInfo(itemInfo);\n }\n\n function handleKeyboardInput(item: ItemInfo) {\n if (!isEqualItem(item, focusedItemInfo)) {\n item.isCurrent = true;\n item.isFocusVisible = true;\n if (hoveredItemInfo) {\n sethoveredItemInfo({ ...hoveredItemInfo, isCurrent: false });\n }\n updatefocusedItemInfo(item);\n }\n }\n\n const onKeyDown = (event: KeyboardEvent) => {\n const key = event.key;\n switch (key) {\n case 'Tab':\n return;\n case 'ArrowDown': {\n const nextItemInfo = getNextItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowUp': {\n const nextItemInfo = getPrevItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowRight': {\n const nextItemInfo = isRtl\n ? getPrevItemInfo(focusedItemInfo)\n : getNextItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowLeft': {\n const nextItemInfo = isRtl\n ? getNextItemInfo(focusedItemInfo)\n : getPrevItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n }\n };\n\n const onKeyUp = (event: KeyboardEvent) => {\n const key = event.code;\n switch (key) {\n case 'Tab': {\n updatefocusedItemInfo({\n ...focusedItemInfo,\n isCurrent: true,\n isFocusVisible: true\n });\n cancelEvent(event);\n break;\n }\n }\n };\n\n const onBlur = () => {\n if (hoveredItemInfo != null || focusedItemInfo.isCurrent) {\n onItemFocus?.(getDetailFromInfo(undefined));\n }\n const itemInfo = { ...focusedItemInfo, isCurrent: false, isFocusVisible: false };\n setfocusedItemInfo(itemInfo);\n };\n\n return {\n focusedItemInfo,\n hoveredItemInfo,\n activeId: activeId.current,\n eventsProps: mergeProps(drillProps, hoverHandlers, {\n onKeyUp,\n onKeyDown,\n onBlur\n })\n };\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport type { PictoChartItemData, PictoChartProps } from './pictoChart.type';\nimport { TrackResizeContainer } from '#UNSAFE_TrackResizeContainer';\nimport { PictoChartContext } from './PictoChartContext';\nimport { PictoChartWithDimensions } from './PictoChartWithDimensions';\n\n/**\n * A picto chart displays information using icons to visualize an absolute number or the relative sizes of the different parts of a population.\n */\nexport function PictoChart<\n K extends string | number,\n D extends PictoChartItemData<K> = PictoChartItemData<K>\n>({ width, height, ...props }: PictoChartProps<K, D>) {\n // TODO: investigate if we need to handle empty items for performance reasons.\n const supportsSelection = !!(props.selectionMode && props.selectionMode !== 'none');\n\n const isFlowingWidth = width === undefined;\n const isFlowingHeight = height === undefined;\n\n return (\n <PictoChartContext.Provider value={{ supportsSelection }}>\n <TrackResizeContainer\n width={isFlowingWidth ? 'initial' : width}\n height={isFlowingHeight ? 'initial' : height}>\n {(width, height) => (\n <PictoChartWithDimensions\n width={width}\n height={height}\n isFlowingWidth={isFlowingWidth}\n isFlowingHeight={isFlowingHeight}\n {...props}\n />\n )}\n </TrackResizeContainer>\n </PictoChartContext.Provider>\n );\n}\n"],"names":["PictoChartContext","createContext","GAP_RATIO","_ceil","a","b","Math","ceil","isOriginBottom","origin","isOriginRight","areCellsAvailable","map","col","row","columnSpan","rowSpan","r","c","occupyCells","findNextAvailableCell","colCount","rowCount","isVert","cell","undefined","getItemInfo","element","itemIdx","dataset","idx","Number","getItemProps","item","countIdx","isReadOnly","hoveredItem","selectedIds","focusedItem","highlightedIds","activeId","isCurrent","isFocusedItem","isHoveredItem","isHighlighted","id","length","Set","has","isItemHighlighted","isSelected","isItemSelected","hasSelection","isFocused","hasFocusRing","key","isEqualItem","item1","item2","itemInfo","isFocusVisible","getCountWithTotal","itemCount","totalCount","translations","vis_labelCountWithTotal","toString","PictoRenderer","context","markerProps","supportsSelection","useContext","markerProp","shape","color","isHuman","applyHover","isNoneEqualSides","rgba","colorSchemeVars","palette","neutral","outerBorderColor","textIcon","primary","markerShape","tx","ty","markerColor","borderColor","rgb","markerScale","setAspectRatioNone","getMarkerProps","state","focused","selected","hovered","_jsx","jsx","SvgSymbol","getItem","items","getPictoChartNavUtils","getDetailFromInfo","data","getPrevItemInfo","max","getNextItemInfo","min","usePictoChartDatatip","touchResponse","content","width","focusedItemRef","focusedItemInfo","direction","useUser","isRtl","itemDim","current","getBoundingClientRect","datatipContent","datatipProps","useDatatip","placement","offset","calculateOffset","anchor","PictoChartElement","props","isInteractive","supportsDrill","dimmedItemStyle","interactiveItemStyle","styles","itemClasses","classNames","isFirstElement","itemAriaProps","label","accessibleLabel","totalWithCountLabel","generateAriaLabel","role","getItemAriaProps","count","ref","style","gridRow","gridColumn","column","class","children","PictoChartWithDimensions","height","columnWidth","rowHeight","columnCount","layout","layoutOrigin","selectionMode","drilling","onItemDrill","onItemHover","isFlowingWidth","isFlowingHeight","onItemFocus","hasData","i","getTotalCount","useTranslationBundle","testIdProps","useTestId","testId","idToDataMap","Map","obj","touchResponseStyle","useVisTouchResponse","type","hoveredItemInfo","eventsProps","setfocusedItemInfo","useState","sethoveredItemInfo","useRef","hoverHandlers","useVisHover","event","target","getRandomId","processDrill","useCallback","info","onDrill","drillProps","useVisDrill","updatefocusedItemInfo","handleKeyboardInput","mergeProps","onKeyUp","code","cancelEvent","onKeyDown","onBlur","useEvents","selectionContent","selectionProps","useSelection","idExtracter","isDrillEnabled","selection","getDataById","get","onChange","onSelectionChange","rectangleWidth","parseFloat","rectangleHeight","pictoStyleClasses","baseStyles","useItemFocus","datatip","isPointerActive","_content","countWithTotal","_borderColor","datatipContext","getDatatipContent","calcColCount","calcRowCount","calcColWidth","calcRowHeight","gridGap","colWidth","numCells","maxColSpan","maxRowSpan","minSpan","Infinity","DEFAULT_SIZE","sqrt","floor","getFlowingInfo","datatipAriaDescribedby","elements","isLayoutBottom","isLayoutRight","pictoItems","Array","fill","currItem","push","generateElementCoords","mergedEventProps","_jsxs","tabIndex","merge","gridTemplateRows","gridTemplateColumns","gap","elt","itemProps","Provider","value","TrackResizeContainer","rendererOptions","markerRenderer","datatipRenderer"],"mappings":"+uBAeA,MAAMA,EAAoBC,EAAAA,cAAsC,CAAA,GCZ1DC,EAAY,IAElB,SAASC,EAAMC,EAAWC,GACxB,OAAOC,KAAKC,KAAKH,EAAIC,GAAKA,CAC5B,CAgGA,MAAMG,EAAkBC,GACJ,gBAAXA,GAAuC,cAAXA,EAM/BC,EAAiBD,GACI,WAAXA,GAAkC,cAAXA,EAOjCE,EAAoB,CACxBC,EACAC,EACAC,EACAC,EACAC,KAEA,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAASC,IAC3B,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAAYG,IAC9B,GAAIN,EAAIE,EAAMG,GAAGJ,EAAMK,GAAI,OAAO,EAGtC,OAAO,CAAI,EAMPC,EAAc,CAClBP,EACAC,EACAC,EACAC,EACAC,KAEA,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAASC,IAC3B,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAAYG,IAC9BN,EAAIE,EAAMG,GAAGJ,EAAMK,IAAK,CAE3B,EAMGE,EAAwB,CAC5BR,EACAG,EACAC,EACAK,EACAC,EACAC,KAEA,GAAIA,EAAQ,CAEV,MAAMC,EAAOJ,EAAsBR,EAAKI,EAASD,EAAYO,EAAUD,GAAU,GACjF,OAAOG,EAAO,CAAEX,IAAKW,EAAKV,IAAKA,IAAKU,EAAKX,UAAQY,CAClD,CAED,IAAK,IAAIR,EAAI,EAAGA,EAAIK,EAAWN,EAAU,EAAGC,IAC1C,IAAK,IAAIC,EAAI,EAAGA,EAAIG,EAAWN,EAAa,EAAGG,IAC7C,GAAIP,EAAkBC,EAAKM,EAAGD,EAAGF,EAAYC,GAE3C,OADAG,EAAYP,EAAKM,EAAGD,EAAGF,EAAYC,GAC5B,CAAEH,IAAKK,EAAGJ,IAAKG,EAKrB,ECjIH,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OAAEA,KAAWzB,IAEpB,MAAM5D,KAAuB4D,EAAM+B,eAAyC,SAAxB/B,EAAM+B,eAEpDI,OAA2B5I,IAAVwF,EACjBqD,OAA6B7I,IAAXkI,EAExB,OACEzD,EAAAA,IAAClG,EAAkBwQ,SAAS,CAAAC,MAAO,CAAEnM,qBAAmBmF,SACtDvD,EAAAA,IAACwK,EAAAA,sBACCzJ,MAAOoD,EAAiB,UAAYpD,EACpC0C,OAAQW,EAAkB,UAAYX,EACrCF,SAAA,CAACxC,EAAO0C,IACPzD,MAACwD,EAAwB,CACvBzC,MAAOA,EACP0C,OAAQA,EACRU,eAAgBA,EAChBC,gBAAiBA,KACbpC,OAMhB,6BN2LM,SAGJyI,GACA,MAAO,CACLC,eAAiBxM,IACf,MAAM8D,EAAQyI,EAAgBvM,EAAQqC,MACtC,OAAOP,EAAAA,IAAC/B,EAAa,CAACC,QAASA,EAASC,YAAa6D,GAAS,EAEhE2I,gBAAkBzM,IAET,CAAEqB,YADKkL,EAAgBvM,EAAQqC,MACV/B,QAGlC"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-771c5db8', './ProgressButtonLabelLayout-76d8a3e7', 'preact/compat', './useTooltip-7b915f4c', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-733ade2f', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-30886397', './buttonUtils-97878e90', './resources/nls/en/bundle'], (function(e,t,o,s,a,l,i,n,r,d,c,b,u,p,g,y,m){"use strict";const f=l.forwardRef((({variant:e="outlined",isLoading:l=!1,isDisabled:n=!1,size:d="md",display:c="all",type:b="button",startIcon:u,edge:p,testId:g,onAction:f,label:L="",tooltip:h,"aria-describedby":B,width:P,...T},v)=>{const{globalEventProps:A}=y.processGlobals(T),x=!n&&l,C=m.default.accButtonProgressStatus({label:L}),w=m.default.accButtonProgressComplete({label:L}),j=x&&("label"==c||!u)?h||L:h,{tooltipContent:D,tooltipProps:I}=i.useTooltip({text:j,isDisabled:n}),S=!u||"label"===c,U={type:"button",buttonType:b},k=t.jsx(a.ProgressButtonLabelLayout,{display:c,isLoadingContrast:"callToAction"===e,startIcon:u,accessibleLoadedLabel:w,accessibleLoadingLabel:C,size:d,isLoading:x,children:L}),{"aria-describedby":z,...E}=I;return t.jsxs(o.Fragment,{children:[t.jsx(s.BaseButton,{...r.mergeProps(E,A),ref:v,elementDetails:U,isDisabled:n,isReadOnly:x,size:d,width:P,edge:p,variant:e,styling:S?x?["default","hiddenLabel","noHoverActive"]:["default"]:x?["noHoverActive","min"]:["min"],onAction:f,"aria-label":L,testId:g,children:k}),D]})}));f.displayName="ProgressButton",e.ProgressButton=f}));
2
- //# sourceMappingURL=ProgressButton-e30c909b.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProgressButton-e30c909b.js","sources":["../../src/UNSAFE_ProgressButton/ProgressButton.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentChildren, ComponentProps, Ref, Fragment } from 'preact';\nimport { BaseButton } from '../UNSAFE_BaseButton';\nimport { ProgressButtonLabelLayout } from '../UNSAFE_ProgressButtonLabelLayout';\nimport type { DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { forwardRef } from 'preact/compat';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { useTooltip } from '../hooks/UNSAFE_useTooltip';\nimport { processGlobals, ButtonIntrinsicProps } from '../utils/UNSAFE_buttonUtils';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\nimport translations from '#resources/nls/en/bundle';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLElement>, 'autofocus'>;\ntype WidthInterpolationProps = Pick<DimensionProps, 'width'>;\ntype BaseButtonProps = ComponentProps<typeof BaseButton>;\n\ntype Props = IntrinsicProps &\n ButtonIntrinsicProps &\n Pick<BaseButtonProps, 'aria-describedby'> &\n WidthInterpolationProps &\n TestIdProps & {\n /**\n * The startIcon is the button's start icon.\n */\n startIcon?: ComponentChildren;\n\n /**\n * Specifies that a quick indeterminate action is taking place, making the button read-only.\n */\n isLoading?: boolean;\n\n /**\n * Specifies that the button element should be disabled.\n */\n isDisabled?: boolean;\n\n /**\n * Specifes the button type\n */\n type?: 'button' | 'submit';\n\n /**\n * label - button label, used for accessibility if no override\n */\n label?: string;\n\n /**\n * Indicates in what states the button has chrome (background and border).\n * \"borderless\"': \"Borderless buttons are a more prominent variation. Borderless\n * buttons are useful for supplemental actions that require minimal emphasis.\",\n * \"outlined\"': \"Outlined buttons are salient, but lighter weight than\n * solid buttons. Outlined buttons are useful for secondary actions.\",\n * \"solid\"': \"Solid buttons stand out, and direct the user's attention to the\n * most important actions in the UI.\",\n * \"callToAction\"': \"A Call To Action (CTA) button guides the user to take or\n * complete the action that is the main goal of the page or page section. There\n * should only be one CTA button on a page at any given time.\",\n */\n variant?: 'borderless' | 'outlined' | 'solid' | 'callToAction';\n\n /**\n * The size indicates how large the button is rendered.\n */\n size?: 'sm' | 'md' | 'lg';\n\n /**\n * Edge can be used to specify that the button is intended to go at the bottom of\n * a region, stretching from left to right.\n */\n edge?: ComponentProps<typeof BaseButton>['edge'];\n\n /**\n * Triggered when a button is clicked, whether by keyboard, mouse, or touch events.\n */\n onAction?: () => void | null;\n\n /**\n * Display indicates whether only the label or all elements should be rendered by the button.\n */\n display?: 'label' | 'all';\n\n /**\n * tooltip - overrides the aria-label for the tooltip\n */\n tooltip?: string;\n };\n/**\n * A Progress button is a push button that can show progress.\n */\nexport const ProgressButton = forwardRef(\n (\n {\n variant = 'outlined',\n isLoading = false,\n isDisabled = false,\n size = 'md',\n display = 'all',\n type: buttonType = 'button',\n startIcon,\n edge,\n testId,\n onAction,\n label = '',\n tooltip,\n 'aria-describedby': ariaDescribedBy,\n width,\n ...props\n }: Props,\n ref?: Ref<HTMLButtonElement>\n ) => {\n const { globalEventProps } = processGlobals(props);\n const isAdjustedLoading = isDisabled ? false : isLoading;\n const progressStatus = translations.accButtonProgressStatus({\n label: label\n });\n const progressComplete = translations.accButtonProgressComplete({\n label: label\n });\n\n const showTooltip = isAdjustedLoading && (display == 'label' || !startIcon);\n const tooltipLabel = showTooltip ? (tooltip ? tooltip : label) : tooltip;\n\n const { tooltipContent, tooltipProps } = useTooltip({\n text: tooltipLabel,\n isDisabled\n });\n\n const labelOnly = !startIcon || display === 'label';\n const elementDetails = {\n type: 'button' as const,\n buttonType: buttonType\n };\n const content = (\n <ProgressButtonLabelLayout\n display={display}\n isLoadingContrast={variant === 'callToAction'}\n startIcon={startIcon}\n accessibleLoadedLabel={progressComplete}\n accessibleLoadingLabel={progressStatus}\n size={size}\n isLoading={isAdjustedLoading}>\n {label}\n </ProgressButtonLabelLayout>\n );\n\n /* For a11y, we use ignore aria-label during loading time */\n const { 'aria-describedby': adb, ...ttProps } = tooltipProps;\n\n return (\n <Fragment>\n <BaseButton\n {...mergeProps(ttProps, globalEventProps)}\n ref={ref as Ref<HTMLButtonElement> & Ref<HTMLAnchorElement> & Ref<HTMLSpanElement>}\n elementDetails={elementDetails}\n isDisabled={isDisabled}\n isReadOnly={isAdjustedLoading}\n size={size}\n width={width}\n edge={edge}\n variant={variant}\n styling={\n labelOnly\n ? isAdjustedLoading\n ? ['default', 'hiddenLabel', 'noHoverActive']\n : ['default']\n : isAdjustedLoading\n ? ['noHoverActive', 'min']\n : ['min']\n }\n onAction={onAction}\n aria-label={label}\n testId={testId}>\n {content}\n </BaseButton>\n {tooltipContent}\n </Fragment>\n );\n }\n);\n\nProgressButton.displayName = 'ProgressButton';\n"],"names":["ProgressButton","forwardRef","variant","isLoading","isDisabled","size","display","type","buttonType","startIcon","edge","testId","onAction","label","tooltip","ariaDescribedBy","width","props","ref","globalEventProps","processGlobals","isAdjustedLoading","progressStatus","translations","accButtonProgressStatus","progressComplete","accButtonProgressComplete","tooltipLabel","tooltipContent","tooltipProps","useTooltip","text","labelOnly","elementDetails","content","_jsx","ProgressButtonLabelLayout","isLoadingContrast","accessibleLoadedLabel","accessibleLoadingLabel","adb","ttProps","_jsxs","Fragment","children","BaseButton","mergeProps","isReadOnly","styling","displayName"],"mappings":"2iBAgGa,MAAAA,EAAiBC,EAAAA,YAC5B,EAEIC,UAAU,WACVC,aAAY,EACZC,cAAa,EACbC,OAAO,KACPC,UAAU,MACVC,KAAMC,EAAa,SACnBC,YACAC,OACAC,SACAC,WACAC,QAAQ,GACRC,UACA,mBAAoBC,EACpBC,WACGC,GAELC,KAEA,MAAMC,iBAAEA,GAAqBC,EAAcA,eAACH,GACtCI,GAAoBjB,GAAqBD,EACzCmB,EAAiBC,EAAY,QAACC,wBAAwB,CAC1DX,MAAOA,IAEHY,EAAmBF,EAAY,QAACG,0BAA0B,CAC9Db,MAAOA,IAIHc,EADcN,IAAiC,SAAXf,IAAuBG,GAC7BK,GAAoBD,EAASC,GAE3Dc,eAAEA,EAAcC,aAAEA,GAAiBC,aAAW,CAClDC,KAAMJ,EACNvB,eAGI4B,GAAavB,GAAyB,UAAZH,EAC1B2B,EAAiB,CACrB1B,KAAM,SACNC,WAAYA,GAER0B,EACJC,EAAAA,IAACC,EAAyBA,2BACxB9B,QAASA,EACT+B,kBAA+B,iBAAZnC,EACnBO,UAAWA,EACX6B,sBAAuBb,EACvBc,uBAAwBjB,EACxBjB,KAAMA,EACNF,UAAWkB,WACVR,KAKG,mBAAoB2B,KAAQC,GAAYZ,EAEhD,OACEa,OAACC,EAAQA,SAAA,CAAAC,SAAA,CACPT,MAACU,EAAUA,WAAA,IACLC,EAAAA,WAAWL,EAAStB,GACxBD,IAAKA,EACLe,eAAgBA,EAChB7B,WAAYA,EACZ2C,WAAY1B,EACZhB,KAAMA,EACNW,MAAOA,EACPN,KAAMA,EACNR,QAASA,EACT8C,QACEhB,EACIX,EACE,CAAC,UAAW,cAAe,iBAC3B,CAAC,WACHA,EACA,CAAC,gBAAiB,OAClB,CAAC,OAEPT,SAAUA,EACE,aAAAC,EACZF,OAAQA,EACPiC,SAAAV,IAEFN,IAEH,IAIN5B,EAAeiD,YAAc"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/compat', './useComponentTheme-5aa41a8f', './useFocus-4194fc59', './FormContext-5130e198', './useFormContext-30acdd33', './FormFieldContext-3c44aaaa', './useFormFieldContext-8196183c', './useId-c9578d26', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useInteractionStyle-ee1dc0c0', './useTranslationBundle-7c40cb58', './CheckboxRadioContext-6a0fead0', './Check-03759769', './RadioButtonOff-cc49ced4', './RadioButtonOn-37b2fe31', './HiddenAccessible-037ef42d', './RadioItemContext-70878de8', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', 'preact/hooks', './Flex-590160eb', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', './LayerHost-733ade2f', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-30886397', 'css!./IconStyle.styles.css', './IconButton-05c6b793', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-2e19d8de', './logger-0f873e29', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './InputGroupContext-372087af', './Popup-3e2566da', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './IconUserAssistance-e496ab70', './UNSAFE_RadioItem/themes/RadioIconContract.css', './UNSAFE_RadioItem/themes/redwood/RadioIconTheme', './UNSAFE_RadioItem/themes/redwood/RadioTheme'], (function(e,s,o,t,a,n,i,d,c,l,r,u,m,b,h,p,S,y,C,x,F,A,R,T,f,g,U,I,v,B,w,M,E,_,N,j,k,L,V,D,H,O,P,z,G,$,q,J,K,Q,W,X,Y,Z){"use strict";e.RadioItem=({value:e,children:n,...d})=>{const{isReadonly:r,isDisabled:F}=i.useFormContext(),{isDisabled:A,isReadonly:R}=c.useFormFieldContext(),{name:T,value:f,onCommit:g}=x.useRadioSetContext(),{isFocusRingShown:U}=h.useCheckboxRadioContext(),{index:I}=x.useRadioItemContext(),{isTabbable:v}=u.useTabbableMode(),B=l.useId(),{isFocus:w,focusProps:M}=a.useFocus(),E=o.createRef(),_=f===e,N=A??F,j=R??r,{interactionProps:k,applyActiveStyle:L}=m.useInteractionStyle(),{classes:V,styles:{valueLabelStyle:D}}=t.useComponentTheme(Z.RadioRedwoodTheme,{disabled:N?"isDisabled":"notDisabled",focused:w&&U?"isFocused":""}),{classes:H}=t.useComponentTheme(Y.RadioIconRedwoodTheme,{disabled:N?"isDisabled":"notDisabled",selected:_?"isSelected":"notSelected",readonly:j?"isReadonly":"notReadonly",active:L?"isActive":"notActive"});o.useEffect((()=>{w&&U&&E?.current?.scrollIntoView({block:"nearest"})}),[w,U,E]);const{assistiveText:O,helpSourceLink:P}=d,z=!(N||j||!O&&!P),G=z?`${B}-help-available`:void 0,$=z?`${B}-icon-ua`:void 0,q=b.useTranslationBundle("@oracle/oraclejet-preact").formControl_helpAvailable(),J=j?_?p.SvgCheck:S.SvgRadioButtonOff:_?y.SvgRadioButtonOn:S.SvgRadioButtonOff,K=!1!==v&&(0===I&&!f||_)?0:-1;return s.jsx("div",{children:s.jsxs("label",{class:V,ref:E,children:[s.jsxs(C.HiddenAccessible,{children:[s.jsx("input",{type:"radio",name:T,id:B,value:e,...!j&&!N&&{onChange:s=>{s.stopPropagation(),g?.({previousValue:f,value:e})}},checked:_,disabled:N,"aria-describedby":G,tabIndex:K,...M}),z&&s.jsx(C.HiddenAccessible,{id:G,isHidden:!0,children:q})]}),s.jsx("span",{"aria-hidden":"true",class:H,...k,children:s.jsx(J,{size:X.radioIconVars.iconSize,color:"currentColor"})}),s.jsxs("span",{class:D,children:[s.jsx("span",{...k,children:n}),z&&s.jsx(W.IconUserAssistance,{...d,isTabbable:v&&w,id:$})]})]})})}}));
2
- //# sourceMappingURL=RadioItem-7ebada33.js.map