@oracle/oraclejet-preact 18.0.3 → 18.0.5

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 (624) hide show
  1. package/amd/{BaseCardView-ab799b69.js → BaseCardView-70b177ed.js} +2 -2
  2. package/amd/{BaseCardView-ab799b69.js.map → BaseCardView-70b177ed.js.map} +1 -1
  3. package/amd/CardFlexView-bb5c4369.js +2 -0
  4. package/amd/{CardFlexView-296f97f5.js.map → CardFlexView-bb5c4369.js.map} +1 -1
  5. package/amd/{CardGridView-054ffc3f.js → CardGridView-c28ff2f7.js} +2 -2
  6. package/amd/{CardGridView-054ffc3f.js.map → CardGridView-c28ff2f7.js.map} +1 -1
  7. package/amd/CheckboxSetContext-2e486ea8.js +2 -0
  8. package/amd/CheckboxSetContext-2e486ea8.js.map +1 -0
  9. package/amd/ExpandableList-dd3a05b4.js +1 -1
  10. package/amd/GroupLoadingIndicator-6b2ab709.js +1 -1
  11. package/amd/{Indexer-1531dbc3.js → Indexer-357554c4.js} +2 -2
  12. package/amd/{Indexer-1531dbc3.js.map → Indexer-357554c4.js.map} +1 -1
  13. package/amd/{LineAreaChart-2f4be408.js → LineAreaChart-b4acee62.js} +2 -2
  14. package/amd/{LineAreaChart-2f4be408.js.map → LineAreaChart-b4acee62.js.map} +1 -1
  15. package/amd/List-04c4fed0.js +2 -0
  16. package/amd/{List-0b764e84.js.map → List-04c4fed0.js.map} +1 -1
  17. package/amd/{ListView-5bb45f81.js → ListView-bf740071.js} +2 -2
  18. package/amd/{ListView-5bb45f81.js.map → ListView-bf740071.js.map} +1 -1
  19. package/amd/LoadMoreCollection-a6adbc3f.js +2 -0
  20. package/amd/{LoadMoreCollection-83413a59.js.map → LoadMoreCollection-a6adbc3f.js.map} +1 -1
  21. package/amd/NavigationListItem-021b2d58.js +2 -0
  22. package/amd/{NavigationListItem-044a79fd.js.map → NavigationListItem-021b2d58.js.map} +1 -1
  23. package/amd/{OverflowTabBar-339f34cf.js → OverflowTabBar-ea3a4742.js} +2 -2
  24. package/amd/{OverflowTabBar-339f34cf.js.map → OverflowTabBar-ea3a4742.js.map} +1 -1
  25. package/amd/{OverflowTabBarItem-c59db4a2.js → OverflowTabBarItem-763773c9.js} +2 -2
  26. package/amd/{OverflowTabBarItem-c59db4a2.js.map → OverflowTabBarItem-763773c9.js.map} +1 -1
  27. package/amd/PRIVATE_BaseCardView.js +1 -1
  28. package/amd/PRIVATE_List.js +1 -1
  29. package/amd/PRIVATE_LoadMoreCollection.js +1 -1
  30. package/amd/PRIVATE_SelectCommon.js +1 -1
  31. package/amd/PRIVATE_Table.js +1 -1
  32. package/amd/PRIVATE_VirtualizedCollection.js +1 -1
  33. package/amd/{SelectMultiple-7e9bd455.js → SelectMultiple-e3a6732b.js} +2 -2
  34. package/amd/{SelectMultiple-7e9bd455.js.map → SelectMultiple-e3a6732b.js.map} +1 -1
  35. package/amd/{SelectSingle-466bcd67.js → SelectSingle-9d0dca8f.js} +2 -2
  36. package/amd/{SelectSingle-466bcd67.js.map → SelectSingle-9d0dca8f.js.map} +1 -1
  37. package/amd/{Table-87f7e3c4.js → Table-31cc83c6.js} +2 -2
  38. package/amd/{Table-87f7e3c4.js.map → Table-31cc83c6.js.map} +1 -1
  39. package/amd/{TableView-2b884e2c.js → TableView-ab5d0c12.js} +2 -2
  40. package/amd/{TableView-2b884e2c.js.map → TableView-ab5d0c12.js.map} +1 -1
  41. package/amd/TextArea-a7a3d82f.js +2 -0
  42. package/amd/TextArea-a7a3d82f.js.map +1 -0
  43. package/amd/TextAreaAutosize-9cd2c1e8.js +2 -0
  44. package/amd/{TextAreaAutosize-81449e46.js.map → TextAreaAutosize-9cd2c1e8.js.map} +1 -1
  45. package/amd/Theme-redwood/theme.css +225 -225
  46. package/amd/Theme-stable/theme.css +161 -161
  47. package/amd/UNSAFE_CardFlexView.js +1 -1
  48. package/amd/UNSAFE_CardGridView.js +1 -1
  49. package/amd/UNSAFE_CheckboxItem.js +1 -1
  50. package/amd/UNSAFE_CheckboxItem.js.map +1 -1
  51. package/amd/UNSAFE_CheckboxSet.js +1 -1
  52. package/amd/UNSAFE_CheckboxSet.js.map +1 -1
  53. package/amd/UNSAFE_ExpandableList.js +1 -1
  54. package/amd/UNSAFE_Indexer.js +1 -1
  55. package/amd/UNSAFE_LineAreaChart.js +1 -1
  56. package/amd/UNSAFE_ListView.js +1 -1
  57. package/amd/UNSAFE_NavigationList.js +1 -1
  58. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  59. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  60. package/amd/UNSAFE_RichCheckboxSet.js.map +1 -1
  61. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  62. package/amd/UNSAFE_RichSelectionItem.js.map +1 -1
  63. package/amd/UNSAFE_SelectMultiple.js +1 -1
  64. package/amd/UNSAFE_SelectSingle.js +1 -1
  65. package/amd/UNSAFE_TabBar.js +1 -1
  66. package/amd/UNSAFE_TabBarCommon.js +1 -1
  67. package/amd/UNSAFE_TabBarMixed.js +1 -1
  68. package/amd/UNSAFE_TableView.js +1 -1
  69. package/amd/UNSAFE_TextArea.js +1 -1
  70. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  71. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  72. package/amd/{VirtualizedCollection-897516a5.js → VirtualizedCollection-63223f5e.js} +2 -2
  73. package/amd/{VirtualizedCollection-897516a5.js.map → VirtualizedCollection-63223f5e.js.map} +1 -1
  74. package/amd/{VirtualizedListView-cbe87ec2.js → VirtualizedListView-554eaee6.js} +2 -2
  75. package/amd/{VirtualizedListView-cbe87ec2.js.map → VirtualizedListView-554eaee6.js.map} +1 -1
  76. package/amd/{useSelectCommon-d9c4a7bd.js → useSelectCommon-e7f123ce.js} +2 -2
  77. package/amd/{useSelectCommon-d9c4a7bd.js.map → useSelectCommon-e7f123ce.js.map} +1 -1
  78. package/cjs/{BarChart-93a3813c.js → BarChart-ca7f8ed5.js} +2 -2
  79. package/cjs/{BarChart-93a3813c.js.map → BarChart-ca7f8ed5.js.map} +1 -1
  80. package/cjs/{Chart-40d95d14.js → Chart-fbbd3329.js} +2 -2
  81. package/cjs/{Chart-40d95d14.js.map → Chart-fbbd3329.js.map} +1 -1
  82. package/cjs/{ComboChart-cffd0759.js → ComboChart-95863e7a.js} +2 -2
  83. package/cjs/{ComboChart-cffd0759.js.map → ComboChart-95863e7a.js.map} +1 -1
  84. package/cjs/{InputDatePicker-4d36637f.js → InputDatePicker-bc2c534a.js} +2 -2
  85. package/cjs/{InputDatePicker-4d36637f.js.map → InputDatePicker-bc2c534a.js.map} +1 -1
  86. package/cjs/{LineAreaChart-53aa461c.js → LineAreaChart-506308c1.js} +3 -3
  87. package/cjs/{LineAreaChart-53aa461c.js.map → LineAreaChart-506308c1.js.map} +1 -1
  88. package/cjs/{NavigationListItem-7947af0e.js → NavigationListItem-4c4e804d.js} +14 -1
  89. package/cjs/{NavigationListItem-7947af0e.js.map → NavigationListItem-4c4e804d.js.map} +1 -1
  90. package/cjs/{OverflowTabBar-27ad6d1f.js → OverflowTabBar-428798a0.js} +2 -2
  91. package/cjs/{OverflowTabBar-27ad6d1f.js.map → OverflowTabBar-428798a0.js.map} +1 -1
  92. package/cjs/{OverflowTabBarItem-57537ebe.js → OverflowTabBarItem-3c7adb01.js} +2 -2
  93. package/cjs/{OverflowTabBarItem-57537ebe.js.map → OverflowTabBarItem-3c7adb01.js.map} +1 -1
  94. package/cjs/PRIVATE_Chart.js +4 -4
  95. package/cjs/{ScatterChart-9c748a81.js → ScatterChart-80ef4bee.js} +2 -2
  96. package/cjs/{ScatterChart-9c748a81.js.map → ScatterChart-80ef4bee.js.map} +1 -1
  97. package/cjs/{TextArea-e7f98e9f.js → TextArea-4c8f0284.js} +22 -4
  98. package/cjs/TextArea-4c8f0284.js.map +1 -0
  99. package/cjs/{TextAreaAutosize-d96c7038.js → TextAreaAutosize-466a21cc.js} +3 -3
  100. package/cjs/{TextAreaAutosize-d96c7038.js.map → TextAreaAutosize-466a21cc.js.map} +1 -1
  101. package/cjs/Theme-redwood/theme.css +163 -163
  102. package/cjs/Theme-stable/theme.css +149 -149
  103. package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +5 -5
  104. package/cjs/UNSAFE_BarChart.js +5 -5
  105. package/cjs/UNSAFE_ComboChart.js +5 -5
  106. package/cjs/UNSAFE_InputDatePicker.js +90 -90
  107. package/cjs/UNSAFE_LineAreaChart.js +5 -5
  108. package/cjs/UNSAFE_NavigationList.js +4 -4
  109. package/cjs/UNSAFE_OverflowTabBar.js +3 -3
  110. package/cjs/UNSAFE_ScatterChart.js +5 -5
  111. package/cjs/UNSAFE_TabBar.js +2 -2
  112. package/cjs/UNSAFE_TabBarCommon.js +2 -2
  113. package/cjs/UNSAFE_TabBarMixed.js +2 -2
  114. package/cjs/UNSAFE_TextArea.js +3 -4
  115. package/cjs/UNSAFE_TextArea.js.map +1 -1
  116. package/cjs/UNSAFE_TextAreaAutosize.js +3 -3
  117. package/es/ActionCard-e64b1771.js +1 -1
  118. package/es/AvatarVariants.styles.css +25 -25
  119. package/es/AvatarVariants.styles2.css +25 -25
  120. package/es/BarChart-a3209793.js +1 -1
  121. package/es/BarGroup-740cd159.js +1 -1
  122. package/es/BaseButton-3ce1f027.js +2 -2
  123. package/es/BaseCardView-c5a8ee6a.js +7 -7
  124. package/es/{BaseCardViewSelectionTest-cf72be09.js → BaseCardViewSelectionTest-1a6585af.js} +7 -7
  125. package/es/{BaseCardViewSelectionTest-cf72be09.js.map → BaseCardViewSelectionTest-1a6585af.js.map} +1 -1
  126. package/es/BaseNavigationListItem-530bc3df.js +1 -1
  127. package/es/BaseRichSelection-9fa49816.js +8 -8
  128. package/es/ButtonSet-51dcff96.js +2 -2
  129. package/es/ButtonSetIconButton-536c1045.js +3 -3
  130. package/es/{Card-de0aef24.js → Card-44b7de2f.js} +2 -2
  131. package/es/{Card-de0aef24.js.map → Card-44b7de2f.js.map} +1 -1
  132. package/es/{Center-9f355d44.js → Center-8b48ab02.js} +2 -2
  133. package/es/{Center-9f355d44.js.map → Center-8b48ab02.js.map} +1 -1
  134. package/es/Chart-b97e00f1.js +8 -8
  135. package/es/CheckboxControl-ee327a6d.js +6 -6
  136. package/es/CheckboxRadioField-a4db2c10.js +6 -6
  137. package/es/Chip-8554d3ff.js +1 -1
  138. package/es/ClearIcon-95064ad6.js +1 -1
  139. package/es/CollapseIcon-4e943f42.js +1 -1
  140. package/es/Collapsible-cb2ba356.js +2 -2
  141. package/es/ComboChart-b8c2be4d.js +2 -2
  142. package/es/CompactHelpSource-9c0d4cb4.js +2 -2
  143. package/es/{CompactLabelAssistance-7912767d.js → CompactLabelAssistance-6a627bbb.js} +5 -5
  144. package/es/{CompactLabelAssistance-7912767d.js.map → CompactLabelAssistance-6a627bbb.js.map} +1 -1
  145. package/es/CompactUserAssistance-12950e48.js +4 -4
  146. package/es/ComponentMessageContainer-f2837e7f.js +4 -4
  147. package/es/ConveyorBeltItem-188fcaf0.js +2 -2
  148. package/es/{DatePicker-38a71007.js → DatePicker-d4c3ec06.js} +6 -6
  149. package/es/{DatePicker-38a71007.js.map → DatePicker-d4c3ec06.js.map} +1 -1
  150. package/es/DatePickerHeader-5806fbea.js +3 -3
  151. package/es/{Diagram-ee9ec4a9.js → Diagram-a6348a41.js} +5 -5
  152. package/es/{Diagram-ee9ec4a9.js.map → Diagram-a6348a41.js.map} +1 -1
  153. package/es/{Dialog-2248109e.js → Dialog-d64dd573.js} +8 -8
  154. package/es/{Dialog-2248109e.js.map → Dialog-d64dd573.js.map} +1 -1
  155. package/es/DirectionalCollapseArrowIcon-daafb64c.js +1 -1
  156. package/es/DirectionalExpandArrowIcon-35def552.js +1 -1
  157. package/es/{DragHandle-5cba8c4b.js → DragHandle-d3a739f5.js} +2 -2
  158. package/es/{DragHandle-5cba8c4b.js.map → DragHandle-d3a739f5.js.map} +1 -1
  159. package/es/{Dropdown-f7fbfa81.js → Dropdown-f0cdaeae.js} +5 -5
  160. package/es/{Dropdown-f7fbfa81.js.map → Dropdown-f0cdaeae.js.map} +1 -1
  161. package/es/{EnvironmentProvider-a3819bde.js → EnvironmentProvider-0fc2fd0c.js} +3 -3
  162. package/es/{EnvironmentProvider-a3819bde.js.map → EnvironmentProvider-0fc2fd0c.js.map} +1 -1
  163. package/es/ExpandableList-478db30a.js +3 -3
  164. package/es/FilePicker-ecfad7d4.js +2 -2
  165. package/es/{Flex-2d51e914.js → Flex-8696b27b.js} +2 -2
  166. package/es/{Flex-2d51e914.js.map → Flex-8696b27b.js.map} +1 -1
  167. package/es/{Floating-c13f9f62.js → Floating-9bf456f9.js} +4 -4
  168. package/es/{Floating-c13f9f62.js.map → Floating-9bf456f9.js.map} +1 -1
  169. package/es/FormLayout-2efb00f6.js +1 -1
  170. package/es/Gantt-0adf9527.js +9 -9
  171. package/es/{Grid-c2385b22.js → Grid-7fd29a9e.js} +2 -2
  172. package/es/{Grid-c2385b22.js.map → Grid-7fd29a9e.js.map} +1 -1
  173. package/es/{Gridlines-89b5506f.js → Gridlines-5ac89a84.js} +2 -2
  174. package/es/{Gridlines-89b5506f.js.map → Gridlines-5ac89a84.js.map} +1 -1
  175. package/es/GroupLoadingIndicator-63035d08.js +1 -1
  176. package/es/{HighlightText-d505bf35.js → HighlightText-cc043982.js} +2 -2
  177. package/es/{HighlightText-d505bf35.js.map → HighlightText-cc043982.js.map} +1 -1
  178. package/es/Icon-bdd49f29.js +3 -3
  179. package/es/IconButton-62cd1cf9.js +3 -3
  180. package/es/IconMenuButton-242dc102.js +3 -3
  181. package/es/IconProgressButton-193d58bf.js +3 -3
  182. package/es/IconSwitchButton-a92911d0.js +3 -3
  183. package/es/IconToggleButton-fb7ccce9.js +3 -3
  184. package/es/{IconUserAssistance-2b494a2e.js → IconUserAssistance-627f9d18.js} +3 -3
  185. package/es/{IconUserAssistance-2b494a2e.js.map → IconUserAssistance-627f9d18.js.map} +1 -1
  186. package/es/Indexer-ba2c7593.js +4 -4
  187. package/es/InlineHelpSource-fcdcd122.js +1 -1
  188. package/es/InlineUserAssistance-04cce83e.js +5 -5
  189. package/es/InputDateMask-23aef570.js +7 -7
  190. package/es/{InputDatePicker-59bbd31d.js → InputDatePicker-dd3b6c89.js} +10 -10
  191. package/es/{InputDatePicker-59bbd31d.js.map → InputDatePicker-dd3b6c89.js.map} +1 -1
  192. package/es/InputPassword-2c87ceb9.js +4 -4
  193. package/es/InputText-3701adf8.js +6 -6
  194. package/es/Label-6d90e627.js +5 -5
  195. package/es/LabelValueLayout-bcf482be.js +1 -1
  196. package/es/{Layer-7497a324.js → Layer-12a734d1.js} +3 -3
  197. package/es/{Layer-7497a324.js.map → Layer-12a734d1.js.map} +1 -1
  198. package/es/{LayerHost-7a2149f5.js → LayerHost-15b42a3e.js} +2 -2
  199. package/es/{LayerHost-7a2149f5.js.map → LayerHost-15b42a3e.js.map} +1 -1
  200. package/es/{LayerManager-be34be40.js → LayerManager-af39e736.js} +2 -2
  201. package/es/{LayerManager-be34be40.js.map → LayerManager-af39e736.js.map} +1 -1
  202. package/es/Legend-588633b2.js +3 -3
  203. package/es/{LineAreaChart-d4ed8c0d.js → LineAreaChart-94387b8b.js} +4 -4
  204. package/es/{LineAreaChart-d4ed8c0d.js.map → LineAreaChart-94387b8b.js.map} +1 -1
  205. package/es/{LineSeries-00fa2ab7.js → LineSeries-ca5836e7.js} +2 -2
  206. package/es/{LineSeries-00fa2ab7.js.map → LineSeries-ca5836e7.js.map} +1 -1
  207. package/es/Link-9f8b5c41.js +1 -1
  208. package/es/List-97b7be70.js +5 -5
  209. package/es/{ListItemLayout-b3d899d6.js → ListItemLayout-e87958e3.js} +2 -2
  210. package/es/{ListItemLayout-b3d899d6.js.map → ListItemLayout-e87958e3.js.map} +1 -1
  211. package/es/ListView-936d8a4f.js +3 -3
  212. package/es/{LiveRegion-5302331c.js → LiveRegion-cb4f8a54.js} +2 -2
  213. package/es/{LiveRegion-5302331c.js.map → LiveRegion-cb4f8a54.js.map} +1 -1
  214. package/es/{MaxLengthLiveRegion-9b386b63.js → MaxLengthLiveRegion-59087064.js} +3 -3
  215. package/es/{MaxLengthLiveRegion-9b386b63.js.map → MaxLengthLiveRegion-59087064.js.map} +1 -1
  216. package/es/Menu-a37635b8.js +6 -6
  217. package/es/MenuButton-422a74de.js +2 -2
  218. package/es/MenuItem-831dfd05.js +1 -1
  219. package/es/Message-9d1504b6.js +2 -2
  220. package/es/{MessageLayer-9ea7cf82.js → MessageLayer-8bed437a.js} +6 -6
  221. package/es/{MessageLayer-9ea7cf82.js.map → MessageLayer-8bed437a.js.map} +1 -1
  222. package/es/MessageToast-7058b181.js +8 -8
  223. package/es/MessagesManager-9dd3eb3d.js +3 -3
  224. package/es/MeterBar-551d32db.js +5 -5
  225. package/es/MeterCircle-5e2ee267.js +5 -5
  226. package/es/{Modal-1710fdd2.js → Modal-103da2aa.js} +3 -3
  227. package/es/{Modal-1710fdd2.js.map → Modal-103da2aa.js.map} +1 -1
  228. package/es/{MonthView-9c0b40f1.js → MonthView-3f86e858.js} +4 -4
  229. package/es/{MonthView-9c0b40f1.js.map → MonthView-3f86e858.js.map} +1 -1
  230. package/es/NavigationListItem-5b25b2f5.js +5 -5
  231. package/es/NumberInputText-58e80ab7.js +6 -6
  232. package/es/OverflowTabBarItem-08625093.js +3 -3
  233. package/es/PRIVATE_BaseCardView.js +22 -22
  234. package/es/PRIVATE_Chart.js +31 -31
  235. package/es/PRIVATE_CheckboxControl.js +23 -23
  236. package/es/PRIVATE_CheckboxRadioField.js +24 -24
  237. package/es/PRIVATE_ClearIcon.js +18 -18
  238. package/es/PRIVATE_DatePickerHeader.js +19 -19
  239. package/es/PRIVATE_DatePickerLayout.js +4 -4
  240. package/es/PRIVATE_EmbeddedIconButton.js +3 -3
  241. package/es/PRIVATE_FormControls.js +19 -19
  242. package/es/PRIVATE_IconSwitchButton.js +16 -16
  243. package/es/PRIVATE_Icons/CheckboxMixed.js +16 -16
  244. package/es/PRIVATE_Icons/CheckboxOff.js +16 -16
  245. package/es/PRIVATE_Icons/CheckboxOn.js +16 -16
  246. package/es/PRIVATE_Icons/DragV.js +16 -16
  247. package/es/PRIVATE_Icons/WarningS.js +16 -16
  248. package/es/PRIVATE_List.js +20 -20
  249. package/es/PRIVATE_Message.js +19 -19
  250. package/es/PRIVATE_MessageLayer.js +12 -12
  251. package/es/PRIVATE_MonthView.js +7 -7
  252. package/es/PRIVATE_MonthYearGridView.js +7 -7
  253. package/es/PRIVATE_PlotArea.js +4 -4
  254. package/es/PRIVATE_RevealToggleIcon.js +17 -17
  255. package/es/PRIVATE_RichSelectionCommon.js +25 -25
  256. package/es/PRIVATE_SelectCommon.js +28 -28
  257. package/es/PRIVATE_StyledCard.js +4 -4
  258. package/es/PRIVATE_StyledCheckbox.js +16 -16
  259. package/es/PRIVATE_Table.js +24 -24
  260. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +16 -16
  261. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +16 -16
  262. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +16 -16
  263. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +16 -16
  264. package/es/PRIVATE_ThemedIcons/CheckIcon.js +16 -16
  265. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +16 -16
  266. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +16 -16
  267. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +16 -16
  268. package/es/PRIVATE_ThemedIcons/CloseIcon.js +16 -16
  269. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +17 -17
  270. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +16 -16
  271. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +16 -16
  272. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +16 -16
  273. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +17 -17
  274. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +17 -17
  275. package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +16 -16
  276. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +16 -16
  277. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +16 -16
  278. package/es/PRIVATE_ThemedIcons/HelpIcon.js +16 -16
  279. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +16 -16
  280. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +16 -16
  281. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +16 -16
  282. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +16 -16
  283. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +16 -16
  284. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +16 -16
  285. package/es/PRIVATE_ThemedIcons/MinusIcon.js +16 -16
  286. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +16 -16
  287. package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +16 -16
  288. package/es/PRIVATE_ThemedIcons/PlusIcon.js +16 -16
  289. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +16 -16
  290. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +16 -16
  291. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +16 -16
  292. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +16 -16
  293. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +16 -16
  294. package/es/PRIVATE_ThemedIcons/ViewIcon.js +16 -16
  295. package/es/PRIVATE_TimeComponent.js +18 -18
  296. package/es/PRIVATE_VisOverview.js +16 -16
  297. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  298. package/es/PictoChart-3f059ad1.js +6 -6
  299. package/es/PieChart-ca02932e.js +6 -6
  300. package/es/{Popup-a4be2769.js → Popup-6c3f0839.js} +9 -9
  301. package/es/{Popup-a4be2769.js.map → Popup-6c3f0839.js.map} +1 -1
  302. package/es/{ProgressBar-4fbb27ab.js → ProgressBar-95461222.js} +3 -3
  303. package/es/{ProgressBar-4fbb27ab.js.map → ProgressBar-95461222.js.map} +1 -1
  304. package/es/ProgressButton-2497c81b.js +3 -3
  305. package/es/ProgressButtonLabelLayout-bfc7c805.js +3 -3
  306. package/es/{ProgressCircle-2d3833fa.js → ProgressCircle-93c309cb.js} +2 -2
  307. package/es/{ProgressCircle-2d3833fa.js.map → ProgressCircle-93c309cb.js.map} +1 -1
  308. package/es/RadioItem-35f68420.js +6 -6
  309. package/es/RatingGauge-5346d0bf.js +7 -7
  310. package/es/ReadonlyTextFieldInput-a15badb6.js +1 -1
  311. package/es/RemovableNavigationListItem-29fdaddc.js +1 -1
  312. package/es/RemovableTabBarItem-1cc7a0ca.js +2 -2
  313. package/es/ReorderableTabBar-b9019d0a.js +3 -3
  314. package/es/RevealToggleIcon-51514e37.js +1 -1
  315. package/es/{ScatterChart-d26d4ea9.js → ScatterChart-739a9ec0.js} +3 -3
  316. package/es/{ScatterChart-d26d4ea9.js.map → ScatterChart-739a9ec0.js.map} +1 -1
  317. package/es/SectionalLegend-c71d48a3.js +4 -4
  318. package/es/{SectionedContent-2d0a744d.js → SectionedContent-3fd063af.js} +5 -5
  319. package/es/{SectionedContent-2d0a744d.js.map → SectionedContent-3fd063af.js.map} +1 -1
  320. package/es/SegmentStyles.styles.css +8 -8
  321. package/es/SegmentStyles.styles2.css +8 -8
  322. package/es/SelectMultiple-ad8fc99a.js +8 -8
  323. package/es/SelectSingle-abaf271c.js +7 -7
  324. package/es/{SelectionCard-792c249d.js → SelectionCard-1f8585cb.js} +2 -2
  325. package/es/{SelectionCard-792c249d.js.map → SelectionCard-1f8585cb.js.map} +1 -1
  326. package/es/Selector-5892544f.js +1 -1
  327. package/es/{SelectorAll-ab748274.js → SelectorAll-e833da6d.js} +7 -7
  328. package/es/{SelectorAll-ab748274.js.map → SelectorAll-e833da6d.js.map} +1 -1
  329. package/es/{Sheet-31e6970c.js → Sheet-0861fcc0.js} +3 -3
  330. package/es/{Sheet-31e6970c.js.map → Sheet-0861fcc0.js.map} +1 -1
  331. package/es/SplitMenuButton-3dbd83b7.js +2 -2
  332. package/es/{StyledCard-6913b45c.js → StyledCard-f5965d6d.js} +2 -2
  333. package/es/{StyledCard-6913b45c.js.map → StyledCard-f5965d6d.js.map} +1 -1
  334. package/es/StyledTextField-ebb5409d.js +3 -3
  335. package/es/TabBar-fb7f97d2.js +5 -5
  336. package/es/TabBarItem-252cba76.js +3 -3
  337. package/es/TabBarLayout-8caaa060.js +1 -1
  338. package/es/TabBarMixed-f60c2c7a.js +5 -5
  339. package/es/{TabBarMixedSeparator-16c88691.js → TabBarMixedSeparator-da56f4c0.js} +2 -2
  340. package/es/{TabBarMixedSeparator-16c88691.js.map → TabBarMixedSeparator-da56f4c0.js.map} +1 -1
  341. package/es/Table-1ba124ec.js +9 -9
  342. package/es/TagCloud-f7e50ac4.js +8 -8
  343. package/es/{TextArea-7230675f.js → TextArea-64b4e972.js} +30 -13
  344. package/es/TextArea-64b4e972.js.map +1 -0
  345. package/es/{TextAreaAutosize-0d293016.js → TextAreaAutosize-4e0f60ef.js} +7 -7
  346. package/es/{TextAreaAutosize-0d293016.js.map → TextAreaAutosize-4e0f60ef.js.map} +1 -1
  347. package/es/TextField-cb494638.js +3 -3
  348. package/es/TextFieldInput-3c2e920d.js +1 -1
  349. package/es/Theme-redwood/theme.css +472 -472
  350. package/es/Theme-stable/theme.css +370 -370
  351. package/es/TimeComponentCanvas2D-2a4a0c94.js +5 -5
  352. package/es/Toolbar-7676795b.js +1 -1
  353. package/es/{TruncatingBadge-0f04b894.js → TruncatingBadge-b69c1ceb.js} +4 -4
  354. package/es/{TruncatingBadge-0f04b894.js.map → TruncatingBadge-b69c1ceb.js.map} +1 -1
  355. package/es/{TruncatingText-ccad557f.js → TruncatingText-68acfafd.js} +4 -4
  356. package/es/{TruncatingText-ccad557f.js.map → TruncatingText-68acfafd.js.map} +1 -1
  357. package/es/UNSAFE_ActionCard.js +3 -3
  358. package/es/UNSAFE_Avatar/themes/redwood/AvatarTheme.js +1 -1
  359. package/es/UNSAFE_Avatar/themes/redwood/AvatarVariants.css.js +1 -1
  360. package/es/UNSAFE_Avatar/themes/stable/AvatarTheme.js +1 -1
  361. package/es/UNSAFE_Avatar/themes/stable/AvatarVariants.css.js +1 -1
  362. package/es/UNSAFE_Avatar.js +1 -1
  363. package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +31 -31
  364. package/es/UNSAFE_BarChart.js +31 -31
  365. package/es/UNSAFE_BaseButton.js +3 -3
  366. package/es/UNSAFE_Button.js +3 -3
  367. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +21 -21
  368. package/es/UNSAFE_ButtonSet.js +4 -4
  369. package/es/UNSAFE_ButtonSetButton.js +3 -3
  370. package/es/UNSAFE_ButtonSetIconButton.js +16 -16
  371. package/es/UNSAFE_ButtonSetItem.js +16 -16
  372. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  373. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  374. package/es/UNSAFE_Card.js +5 -5
  375. package/es/UNSAFE_CardFlexView.js +22 -22
  376. package/es/UNSAFE_CardGridView.js +22 -22
  377. package/es/UNSAFE_Center.js +5 -5
  378. package/es/UNSAFE_ChartWithLegend.js +4 -4
  379. package/es/UNSAFE_Checkbox.js +23 -23
  380. package/es/UNSAFE_CheckboxItem.js +23 -23
  381. package/es/UNSAFE_CheckboxSet.js +23 -23
  382. package/es/UNSAFE_Chip.js +2 -2
  383. package/es/UNSAFE_Collapsible.js +18 -18
  384. package/es/UNSAFE_ComboChart.js +33 -33
  385. package/es/UNSAFE_ComponentMessage.js +19 -19
  386. package/es/UNSAFE_ConveyorBelt.js +16 -16
  387. package/es/UNSAFE_DatePicker.js +24 -24
  388. package/es/UNSAFE_Diagram.js +21 -21
  389. package/es/UNSAFE_Dialog.js +21 -21
  390. package/es/UNSAFE_DragHandle.js +18 -18
  391. package/es/UNSAFE_DrawerLayout.js +12 -12
  392. package/es/UNSAFE_DrawerPopup.js +11 -11
  393. package/es/UNSAFE_Dropdown.js +13 -13
  394. package/es/UNSAFE_Environment.js +4 -4
  395. package/es/UNSAFE_ExpandableList.js +23 -23
  396. package/es/UNSAFE_FilePicker.js +4 -4
  397. package/es/UNSAFE_Flex.js +4 -4
  398. package/es/UNSAFE_Floating.js +11 -11
  399. package/es/UNSAFE_FormLayout.js +2 -2
  400. package/es/UNSAFE_Gantt.js +23 -23
  401. package/es/UNSAFE_Grid.js +4 -4
  402. package/es/UNSAFE_HighlightText.js +4 -4
  403. package/es/UNSAFE_Icon.js +16 -16
  404. package/es/UNSAFE_IconButton.js +16 -16
  405. package/es/UNSAFE_IconMenuButton.js +21 -21
  406. package/es/UNSAFE_IconProgressButton.js +19 -19
  407. package/es/UNSAFE_IconToggleButton.js +16 -16
  408. package/es/UNSAFE_Indexer.js +6 -6
  409. package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
  410. package/es/UNSAFE_InputDateMask.js +25 -25
  411. package/es/UNSAFE_InputDatePicker.js +114 -114
  412. package/es/UNSAFE_InputPassword.js +23 -23
  413. package/es/UNSAFE_InputSensitiveText.js +25 -25
  414. package/es/UNSAFE_InputText.js +26 -26
  415. package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
  416. package/es/UNSAFE_InputTimeMask.js +25 -25
  417. package/es/UNSAFE_Label.js +23 -23
  418. package/es/UNSAFE_LabelValueLayout.js +4 -4
  419. package/es/UNSAFE_LabelledLink.js +24 -24
  420. package/es/UNSAFE_Layer.js +8 -8
  421. package/es/UNSAFE_Legend.js +24 -24
  422. package/es/UNSAFE_LineAreaChart.js +34 -34
  423. package/es/UNSAFE_Link.js +2 -2
  424. package/es/UNSAFE_ListItemLayout.js +5 -5
  425. package/es/UNSAFE_ListView.js +28 -28
  426. package/es/UNSAFE_LiveRegion.js +4 -4
  427. package/es/UNSAFE_Menu.js +23 -23
  428. package/es/UNSAFE_MenuButton.js +21 -21
  429. package/es/UNSAFE_MessageBanner.js +19 -19
  430. package/es/UNSAFE_MessageToast.js +22 -22
  431. package/es/UNSAFE_MeterBar.js +16 -16
  432. package/es/UNSAFE_MeterCircle.js +17 -17
  433. package/es/UNSAFE_Modal.js +8 -8
  434. package/es/UNSAFE_NavigationList.js +20 -20
  435. package/es/UNSAFE_NavigationListCommon.js +18 -18
  436. package/es/UNSAFE_NumberInputText.js +25 -25
  437. package/es/UNSAFE_OverflowTabBar.js +24 -24
  438. package/es/UNSAFE_PictoChart.js +14 -14
  439. package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +21 -21
  440. package/es/UNSAFE_PieChart.js +21 -21
  441. package/es/UNSAFE_Popup.js +16 -16
  442. package/es/UNSAFE_ProgressBar.js +5 -5
  443. package/es/UNSAFE_ProgressButton.js +19 -19
  444. package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
  445. package/es/UNSAFE_ProgressCircle.js +4 -4
  446. package/es/UNSAFE_RadioItem.js +23 -23
  447. package/es/UNSAFE_RadioSet.js +23 -23
  448. package/es/UNSAFE_RatingGauge.js +17 -17
  449. package/es/UNSAFE_ReorderableTabBar.js +24 -24
  450. package/es/UNSAFE_RichCheckboxSet.js +25 -25
  451. package/es/UNSAFE_RichRadioSet.js +25 -25
  452. package/es/UNSAFE_RichSelectionItem.js +22 -22
  453. package/es/UNSAFE_ScatterChart.js +34 -34
  454. package/es/UNSAFE_SectionalLegend.js +25 -25
  455. package/es/UNSAFE_SelectMultiple.js +30 -30
  456. package/es/UNSAFE_SelectSingle.js +30 -30
  457. package/es/UNSAFE_SelectionCard.js +5 -5
  458. package/es/UNSAFE_Selector.js +16 -16
  459. package/es/UNSAFE_SelectorAll.js +20 -20
  460. package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +14 -14
  461. package/es/UNSAFE_Sheet.js +11 -11
  462. package/es/UNSAFE_SplitMenuButton.js +21 -21
  463. package/es/UNSAFE_TabBar.js +25 -25
  464. package/es/UNSAFE_TabBarCommon.js +25 -25
  465. package/es/UNSAFE_TabBarMixed.js +26 -26
  466. package/es/UNSAFE_TableView.js +24 -24
  467. package/es/UNSAFE_TagCloud.js +23 -23
  468. package/es/UNSAFE_TextArea.js +27 -28
  469. package/es/UNSAFE_TextArea.js.map +1 -1
  470. package/es/UNSAFE_TextAreaAutosize.js +28 -28
  471. package/es/UNSAFE_TextField.js +7 -7
  472. package/es/UNSAFE_ToggleButton.js +3 -3
  473. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +23 -23
  474. package/es/UNSAFE_Toolbar.js +4 -4
  475. package/es/UNSAFE_Train.js +17 -17
  476. package/es/UNSAFE_TruncatingBadge.js +18 -18
  477. package/es/UNSAFE_TruncatingText.js +17 -17
  478. package/es/UNSAFE_UserAssistance.js +24 -24
  479. package/es/UNSAFE_View.js +7 -7
  480. package/es/UNSAFE_VirtualizedListView.js +20 -20
  481. package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
  482. package/es/UNSAFE_VisProgressiveLoader.js +6 -6
  483. package/es/UNSAFE_VisStatusMessage.js +6 -6
  484. package/es/UNSAFE_WindowOverlay.js +4 -4
  485. package/es/{View-a8a64eb1.js → View-63980a9b.js} +5 -5
  486. package/es/{View-a8a64eb1.js.map → View-63980a9b.js.map} +1 -1
  487. package/es/{VisNoData-794ddc21.js → VisNoData-02cab8f6.js} +3 -3
  488. package/es/{VisNoData-794ddc21.js.map → VisNoData-02cab8f6.js.map} +1 -1
  489. package/es/{VisProgressiveLoader-66dde1ff.js → VisProgressiveLoader-2b2103c8.js} +3 -3
  490. package/es/{VisProgressiveLoader-66dde1ff.js.map → VisProgressiveLoader-2b2103c8.js.map} +1 -1
  491. package/es/{VisTabularDatatip-6aa607bb.js → VisTabularDatatip-2ae7ee48.js} +2 -2
  492. package/es/{VisTabularDatatip-6aa607bb.js.map → VisTabularDatatip-2ae7ee48.js.map} +1 -1
  493. package/es/{WindowOverlay-de5d0819.js → WindowOverlay-9b43e658.js} +2 -2
  494. package/es/{WindowOverlay-de5d0819.js.map → WindowOverlay-9b43e658.js.map} +1 -1
  495. package/es/{YearsGridView-cb510d1e.js → YearsGridView-cc0574f2.js} +4 -4
  496. package/es/{YearsGridView-cb510d1e.js.map → YearsGridView-cc0574f2.js.map} +1 -1
  497. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  498. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  499. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  500. package/es/hooks/PRIVATE_useChartContextMenu.js +20 -20
  501. package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
  502. package/es/hooks/PRIVATE_useChartEvents.js +18 -18
  503. package/es/hooks/PRIVATE_useChartMarquee.js +18 -18
  504. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  505. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  506. package/es/hooks/PRIVATE_useDatatip.js +12 -12
  507. package/es/hooks/PRIVATE_useFloating.js +4 -4
  508. package/es/hooks/PRIVATE_useReorderable.js +5 -5
  509. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  510. package/es/hooks/PRIVATE_useSelection.js +4 -4
  511. package/es/hooks/PRIVATE_useTabBar.js +4 -4
  512. package/es/hooks/PRIVATE_useVisContextMenu.js +20 -20
  513. package/es/hooks/PRIVATE_useVisDragModeControls.js +18 -18
  514. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  515. package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
  516. package/es/hooks/PRIVATE_useVisSelection.js +13 -13
  517. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  518. package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
  519. package/es/hooks/UNSAFE_useDensity.js +3 -3
  520. package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
  521. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  522. package/es/hooks/UNSAFE_useScale.js +3 -3
  523. package/es/hooks/UNSAFE_useTestId.js +3 -3
  524. package/es/hooks/UNSAFE_useTheme.js +3 -3
  525. package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
  526. package/es/hooks/UNSAFE_useTooltip.js +17 -17
  527. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  528. package/es/hooks/UNSAFE_useUser.js +3 -3
  529. package/es/{index-f4c1d6de.js → index-20f848bc.js} +2 -2
  530. package/es/index-20f848bc.js.map +1 -0
  531. package/es/listViewSelectionTests-79aa17b2.js +3 -3
  532. package/es/{render-9dce082a.js → render-2b908d4f.js} +3 -3
  533. package/es/{render-9dce082a.js.map → render-2b908d4f.js.map} +1 -1
  534. package/es/{tabbableUtils-93a7cd6f.js → tabbableUtils-20bbaf8d.js} +3 -3
  535. package/es/{tabbableUtils-93a7cd6f.js.map → tabbableUtils-20bbaf8d.js.map} +1 -1
  536. package/es/{testData-a9ced8ec.js → testData-70bebfae.js} +3 -3
  537. package/es/{testData-a9ced8ec.js.map → testData-70bebfae.js.map} +1 -1
  538. package/es/{tooltipUtils-fcfd7dbb.js → tooltipUtils-38192add.js} +5 -5
  539. package/es/{tooltipUtils-fcfd7dbb.js.map → tooltipUtils-38192add.js.map} +1 -1
  540. package/es/useCellNavigation-00d575ca.js +1 -1
  541. package/es/useChartContextMenu-121a5f6d.js +2 -2
  542. package/es/{useChartDatatip-c929f857.js → useChartDatatip-977bc33d.js} +4 -4
  543. package/es/{useChartDatatip-c929f857.js.map → useChartDatatip-977bc33d.js.map} +1 -1
  544. package/es/{useColorScheme-f69d53b5.js → useColorScheme-d8a80e2b.js} +2 -2
  545. package/es/{useColorScheme-f69d53b5.js.map → useColorScheme-d8a80e2b.js.map} +1 -1
  546. package/es/useContextMenu-8c47333e.js +2 -2
  547. package/es/{useCssVars-48595cd2.js → useCssVars-8e6932f8.js} +5 -5
  548. package/es/{useCssVars-48595cd2.js.map → useCssVars-8e6932f8.js.map} +1 -1
  549. package/es/{useCurrentBgColor-894d059b.js → useCurrentBgColor-5418492b.js} +2 -2
  550. package/es/{useCurrentBgColor-894d059b.js.map → useCurrentBgColor-5418492b.js.map} +1 -1
  551. package/es/{useCurrentKey-aa75ec92.js → useCurrentKey-63f6afcc.js} +2 -2
  552. package/es/{useCurrentKey-aa75ec92.js.map → useCurrentKey-63f6afcc.js.map} +1 -1
  553. package/es/{useDatatip-40475371.js → useDatatip-bce558e2.js} +4 -4
  554. package/es/{useDatatip-40475371.js.map → useDatatip-bce558e2.js.map} +1 -1
  555. package/es/{useDensity-04a01caf.js → useDensity-64ecb649.js} +2 -2
  556. package/es/{useDensity-04a01caf.js.map → useDensity-64ecb649.js.map} +1 -1
  557. package/es/{useFloating-dad3f791.js → useFloating-41d21e7d.js} +2 -2
  558. package/es/{useFloating-dad3f791.js.map → useFloating-41d21e7d.js.map} +1 -1
  559. package/es/{useKeyboardEvents-b02e5fda.js → useKeyboardEvents-5c311766.js} +2 -2
  560. package/es/{useKeyboardEvents-b02e5fda.js.map → useKeyboardEvents-5c311766.js.map} +1 -1
  561. package/es/useLegendContextMenu-1043d63c.js +4 -4
  562. package/es/{useMeterDatatip-4adf64f2.js → useMeterDatatip-5268869e.js} +3 -3
  563. package/es/{useMeterDatatip-4adf64f2.js.map → useMeterDatatip-5268869e.js.map} +1 -1
  564. package/es/{useOutsideClick-c19a8d7f.js → useOutsideClick-8a582d08.js} +2 -2
  565. package/es/{useOutsideClick-c19a8d7f.js.map → useOutsideClick-8a582d08.js.map} +1 -1
  566. package/es/{usePopupAnimation-267b444c.js → usePopupAnimation-e2e6a2ca.js} +2 -2
  567. package/es/{usePopupAnimation-267b444c.js.map → usePopupAnimation-e2e6a2ca.js.map} +1 -1
  568. package/es/{usePrefixSuffix-995d4cda.js → usePrefixSuffix-435a9c59.js} +2 -2
  569. package/es/{usePrefixSuffix-995d4cda.js.map → usePrefixSuffix-435a9c59.js.map} +1 -1
  570. package/es/{useReorderableItem-7f7c13b5.js → useReorderableItem-96616318.js} +3 -3
  571. package/es/{useReorderableItem-7f7c13b5.js.map → useReorderableItem-96616318.js.map} +1 -1
  572. package/es/{useRovingTabIndexContainer-7ec9f36f.js → useRovingTabIndexContainer-9afe3ee0.js} +2 -2
  573. package/es/{useRovingTabIndexContainer-7ec9f36f.js.map → useRovingTabIndexContainer-9afe3ee0.js.map} +1 -1
  574. package/es/{useScale-3b323ab2.js → useScale-c86ecc6e.js} +2 -2
  575. package/es/{useScale-3b323ab2.js.map → useScale-c86ecc6e.js.map} +1 -1
  576. package/es/useSelectCommon-1dafa6f9.js +11 -11
  577. package/es/{useSelectDrill-232b571c.js → useSelectDrill-24264e6b.js} +3 -3
  578. package/es/{useSelectDrill-232b571c.js.map → useSelectDrill-24264e6b.js.map} +1 -1
  579. package/es/{useSelection-bbd2320f.js → useSelection-1b256f77.js} +5 -5
  580. package/es/{useSelection-bbd2320f.js.map → useSelection-1b256f77.js.map} +1 -1
  581. package/es/{useSelection-c46ba985.js → useSelection-879c64aa.js} +2 -2
  582. package/es/{useSelection-c46ba985.js.map → useSelection-879c64aa.js.map} +1 -1
  583. package/es/useTabBar-efad9075.js +1 -1
  584. package/es/{useTestId-af32a9eb.js → useTestId-3bc3958c.js} +2 -2
  585. package/es/{useTestId-af32a9eb.js.map → useTestId-3bc3958c.js.map} +1 -1
  586. package/es/{useTheme-73aca0e4.js → useTheme-4b0f211c.js} +2 -2
  587. package/es/{useTheme-73aca0e4.js.map → useTheme-4b0f211c.js.map} +1 -1
  588. package/es/{useThemeInterpolations-242b30ed.js → useThemeInterpolations-8bee52ac.js} +5 -5
  589. package/es/{useThemeInterpolations-242b30ed.js.map → useThemeInterpolations-8bee52ac.js.map} +1 -1
  590. package/es/{useTooltip-72f5cf2e.js → useTooltip-98b6d3b5.js} +2 -2
  591. package/es/{useTooltip-72f5cf2e.js.map → useTooltip-98b6d3b5.js.map} +1 -1
  592. package/es/{useTooltipControlled-97142fd1.js → useTooltipControlled-b565c75b.js} +5 -5
  593. package/es/{useTooltipControlled-97142fd1.js.map → useTooltipControlled-b565c75b.js.map} +1 -1
  594. package/es/{useTranslationBundle-6da03e52.js → useTranslationBundle-98df6291.js} +2 -2
  595. package/es/{useTranslationBundle-6da03e52.js.map → useTranslationBundle-98df6291.js.map} +1 -1
  596. package/es/{useUser-bca8cf2d.js → useUser-a15426fc.js} +2 -2
  597. package/es/{useUser-bca8cf2d.js.map → useUser-a15426fc.js.map} +1 -1
  598. package/es/useVisDragModeControls-4d8d8a3b.js +1 -1
  599. package/es/{useVisEvents-37c78cfe.js → useVisEvents-7d4753c4.js} +2 -2
  600. package/es/{useVisEvents-37c78cfe.js.map → useVisEvents-7d4753c4.js.map} +1 -1
  601. package/es/utils/PRIVATE_tooltipUtils.js +14 -14
  602. package/es/utils/PRIVATE_visTestUtils.js +6 -6
  603. package/es/{withDirectionIcon-389870a2.js → withDirectionIcon-90d7c798.js} +2 -2
  604. package/es/{withDirectionIcon-389870a2.js.map → withDirectionIcon-90d7c798.js.map} +1 -1
  605. package/es/withThemeProps-6545df54.js +2 -2
  606. package/package.json +2 -2
  607. package/amd/CardFlexView-296f97f5.js +0 -2
  608. package/amd/CheckboxSet-4582f29e.js +0 -2
  609. package/amd/CheckboxSet-4582f29e.js.map +0 -1
  610. package/amd/List-0b764e84.js +0 -2
  611. package/amd/LoadMoreCollection-83413a59.js +0 -2
  612. package/amd/MaxLengthCounter-9a95922c.js +0 -2
  613. package/amd/MaxLengthCounter-9a95922c.js.map +0 -1
  614. package/amd/NavigationListItem-044a79fd.js +0 -2
  615. package/amd/TextArea-89b9ed65.js +0 -2
  616. package/amd/TextArea-89b9ed65.js.map +0 -1
  617. package/amd/TextAreaAutosize-81449e46.js +0 -2
  618. package/cjs/MaxLengthCounter-9ab3f74b.js +0 -27
  619. package/cjs/MaxLengthCounter-9ab3f74b.js.map +0 -1
  620. package/cjs/TextArea-e7f98e9f.js.map +0 -1
  621. package/es/MaxLengthCounter-181b4fc9.js +0 -25
  622. package/es/MaxLengthCounter-181b4fc9.js.map +0 -1
  623. package/es/TextArea-7230675f.js.map +0 -1
  624. package/es/index-f4c1d6de.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useSelectCommon-d9c4a7bd.js","sources":["../../src/PRIVATE_SelectCommon/itemTextUtils.ts","../../src/PRIVATE_SelectCommon/DefaultList.tsx","../../src/PRIVATE_SelectCommon/eventUtils.ts","../../src/PRIVATE_SelectCommon/Dropdown.tsx","../../src/PRIVATE_SelectCommon/DropdownArrow.tsx","../../src/PRIVATE_SelectCommon/MobileDropdown.tsx","../../src/PRIVATE_SelectCommon/SelectMobileFieldInput.tsx","../../src/PRIVATE_SelectCommon/DropdownList.tsx","../../src/PRIVATE_SelectCommon/DropdownUserAssistance.tsx","../../src/PRIVATE_SelectCommon/EmptyResults.tsx","../../src/PRIVATE_SelectCommon/LinkItem.tsx","../../src/PRIVATE_SelectCommon/SelectMobileDropdown.tsx","../../src/PRIVATE_SelectCommon/selectUtils.ts","../../src/PRIVATE_SelectCommon/useCollectionRenderer.ts","../../src/PRIVATE_SelectCommon/useSelectCommon.ts"],"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 { Item } from '../utils/UNSAFE_dataProvider';\nimport { error } from '../utils/UNSAFE_logger';\nimport { ItemTextFunctionType, ItemTextType } from '../utils/UNSAFE_selectUtils';\n\nexport function renderItemText<K, D>(item: Item<K, D>, itemText: ItemTextType<K, D>) {\n // if item-text is a string and the data has the specified field, return it;\n // otherwise log an error\n if (typeof itemText === 'string') {\n if ((item.data as any)?.hasOwnProperty(itemText)) {\n const retData = item.data[itemText];\n return String(retData);\n }\n error('SelectMultiple: itemText specifies field that does not exist: ' + itemText);\n // return undefined if the field doesn't exist\n return undefined;\n }\n // if item-text is a function, call it to create a display label\n return (itemText as ItemTextFunctionType<K, D>)(item);\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 { List, SkeletonContainer } from '#PRIVATE_List';\nimport type { DataState, ListItemRendererContext, Metadata } from '#UNSAFE_Collection';\nimport { Flex } from '#UNSAFE_Flex';\nimport { HighlightText } from '#UNSAFE_HighlightText';\nimport { ListItemText } from '#UNSAFE_ListItemLayout';\nimport { Skeleton } from '#UNSAFE_Skeleton';\nimport type { Item } from '#utils/UNSAFE_dataProvider';\nimport type { Keys } from '#utils/UNSAFE_keys';\nimport type { ItemTextType } from '#utils/UNSAFE_selectUtils';\nimport type { ComponentChildren, ComponentProps } from 'preact';\nimport { useCallback, useMemo } from 'preact/hooks';\nimport { renderItemText } from './itemTextUtils';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n\ntype ListProps<K extends string | number, D> = ComponentProps<typeof List<K, D>>;\ntype PickedPropsFromList = Pick<\n ComponentProps<typeof List>,\n 'aria-label' | 'currentItemVariant' | 'selectionMode'\n>;\n\n// pick the props from the ListItemContext instead of extending it directly so that we\n// don't automatically expose any new props that may be added to it\ntype PickedPropsFromListItemContext<K, D> = Pick<\n ListItemRendererContext<K, D>,\n 'data' | 'index' | 'selector'\n>;\ntype ItemRendererSelectionDetail<K> = {\n value: Set<K>;\n target: EventTarget | null;\n};\ntype ItemRendererMetadata<K> = Pick<Metadata<K>, 'key' | 'suggestion'>;\ntype ItemRendererProps<K, D> = PickedPropsFromListItemContext<K, D> & {\n metadata: ItemRendererMetadata<K>;\n searchText?: string;\n selectedKeys?: Set<K>;\n onSelectionChange: (detail: ItemRendererSelectionDetail<K>) => void;\n};\n\ntype DefaultListCurrentKeyDetail<K> = { value: K };\ntype DefaultListItemActionDetail<K, D> = { context: Item<K, D> };\ntype DefaultListSelectionDetail<K> = { value: Set<K> };\n\ntype Props<K extends string | number, D extends Record<string, any>> = PickedPropsFromList & {\n itemRenderer?: (itemRendererProps: ItemRendererProps<K, D>) => ComponentChildren;\n itemText: ItemTextType<K, D>;\n // props from List that we constrain or unconstrain\n currentKey?: K;\n data?: DataState<K, D> | null;\n onCurrentKeyChange: (detail: DefaultListCurrentKeyDetail<K>) => void;\n onItemAction?: (detail: DefaultListItemActionDetail<K, D>) => void;\n onLoadRange?: ComponentProps<typeof List>['onLoadRange'];\n onSelectionChange?: (detail: DefaultListSelectionDetail<K>) => void;\n searchText?: string;\n selectedKeys?: Set<K>;\n};\n\nconst noOp = () => {};\n\nexport function DefaultList<K extends string | number, D extends Record<string, any>>({\n 'aria-label': ariaLabel,\n currentItemVariant,\n currentKey,\n data,\n itemRenderer,\n itemText,\n onCurrentKeyChange,\n onItemAction,\n onLoadRange = noOp,\n onSelectionChange,\n searchText,\n selectedKeys,\n selectionMode\n}: Props<K, D>) {\n const listItemRenderer = useCallback(\n (listItemContext: ListItemRendererContext<K, D>) => {\n // specify the listItemContext props that we want to expose individually instead of\n // spreading the whole object so that we don't automatically include any new props that\n // may be added to it\n const itemRendererProps: ItemRendererProps<K, D> = {\n data: listItemContext.data,\n index: listItemContext.index,\n metadata: listItemContext.metadata,\n selector: listItemContext.selector,\n searchText,\n selectedKeys,\n onSelectionChange: ({ value }) => {\n onSelectionChange?.({ value });\n }\n };\n const itemContext = {\n data: listItemContext.data,\n key: listItemContext.metadata.key,\n metadata: listItemContext.metadata\n };\n return itemRenderer ? (\n itemRenderer(itemRendererProps)\n ) : (\n <Flex align=\"center\">\n {listItemContext.selector && (\n <div class={dropdownStyles.selectorWrapper}>{listItemContext.selector()}</div>\n )}\n <div\n class={\n selectionMode === 'single'\n ? dropdownStyles.singleSelectItem\n : dropdownStyles.multiSelectItem\n }>\n <ListItemText variant=\"primary\">\n <HighlightText matchText={searchText}>\n {renderItemText(itemContext, itemText) as string}\n </HighlightText>\n </ListItemText>\n </div>\n </Flex>\n );\n },\n [itemRenderer, itemText, onSelectionChange, searchText, selectedKeys, selectionMode]\n );\n\n const keys = useMemo(() => {\n return { all: false, keys: selectedKeys ?? new Set<K>() };\n }, [selectedKeys]) as Keys<K>;\n\n const currentItemOverride = useMemo(\n () => (currentKey !== undefined ? { rowKey: currentKey } : undefined),\n [currentKey]\n );\n const handleItemAction = useCallback<NonNullable<ListProps<K, D>['onItemAction']>>(\n ({ context: { data, metadata } }) => {\n onItemAction?.({ context: { data, key: metadata.key, metadata } });\n },\n [onItemAction]\n );\n const handleSelectionChange = useCallback<NonNullable<ListProps<K, D>['onSelectionChange']>>(\n ({ value }) => {\n onSelectionChange?.({ value: new Set(value.keys?.values()) });\n },\n [onSelectionChange]\n );\n\n return (\n <List<K, D>\n aria-label={ariaLabel}\n allowTabbableMode={false}\n currentItemVariant={currentItemVariant}\n currentItemOverride={currentItemOverride}\n data={data ?? null}\n loadingIndicator={loadingIndicator}\n onPersistCurrentItem={onCurrentKeyChange}\n onItemAction={handleItemAction}\n onLoadRange={onLoadRange}\n onSelectionChange={handleSelectionChange}\n role=\"listbox\"\n selectedKeys={keys}\n selectionMode={selectionMode}>\n {(context: ListItemRendererContext<K, D>) => listItemRenderer(context)}\n </List>\n );\n}\n\n/**\n * Custom 3 Skeleton loader for select multiple\n * TODO: to remove this once is solved\n */\nconst loadingIndicator = (\n <SkeletonContainer minimumCount={3}>\n {() => {\n return (\n <Flex height=\"12x\" align=\"center\">\n <Skeleton height=\"4x\" />\n </Flex>\n );\n }}\n </SkeletonContainer>\n);\n","export const isSimpleClick = (event: MouseEvent) => {\n return event.button === 0 && !event.ctrlKey;\n};\n\nexport const preventDefault = (event: Event) => {\n event.preventDefault();\n};\n\nexport const preventDefaultForCurrentTarget = (event: MouseEvent) => {\n if (event.currentTarget === event.target) {\n event.preventDefault();\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 { ComponentChildren, ComponentProps } from 'preact';\nimport { MutableRef, useCallback, useState } from 'preact/hooks';\nimport { Floating, PositionData } from '../UNSAFE_Floating';\nimport { Layer } from '../UNSAFE_Layer';\nimport { isControlOrFunctionKey, KEYS } from '../utils/PRIVATE_keyboardUtils';\nimport { preventDefaultForCurrentTarget } from './eventUtils';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n//Once Dropdown is consumed this will be removed\nimport { useOutsideMousedown } from '../hooks/PRIVATE_useOutsideMousedown';\n\ntype FloatingProps = ComponentProps<typeof Floating>;\n\ntype Props = {\n anchorRef: MutableRef<HTMLElement | null>;\n children?: ComponentChildren;\n dropdownRef: MutableRef<HTMLElement | null>;\n id?: string;\n isOpen?: boolean;\n onAutoDismiss?: (event?: Event) => void;\n onPosition?: FloatingProps['onPosition'];\n};\n\nconst DEFAULT_PLACEMENT = 'bottom-start';\n\n//TODO: Start consuming PRIVATE_Dropdown. JET-62565\nexport function Dropdown({\n anchorRef,\n children,\n dropdownRef,\n id,\n isOpen,\n onAutoDismiss,\n onPosition\n}: Props) {\n const [placement, setPlacement] = useState<FloatingProps['placement']>(DEFAULT_PLACEMENT);\n\n const [prevIsOpen, setPrevIsOpen] = useState(isOpen);\n\n if (prevIsOpen !== isOpen) {\n // reset the placement to the default when the dropdown closes, not opens, so that it doesn't\n // initially open in the previous position and then move to the default position on the\n // rerender after the state is updated\n if (!isOpen) {\n setPlacement(DEFAULT_PLACEMENT);\n }\n }\n\n const handlePosition = useCallback(\n (positionData: PositionData) => {\n // update the placement so that the dropdown stays where it is until there is a collision,\n // i.e. it no longer fits, instead of letting it try to move back to the default position\n // on every render\n setPlacement(positionData.placement);\n\n // call the callback that was passed in through props\n onPosition?.(positionData);\n },\n [onPosition, setPlacement]\n );\n\n const handleAutoDismiss = useCallback(\n (event: Event) => {\n onAutoDismiss?.(event);\n },\n [onAutoDismiss]\n );\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (event.defaultPrevented || isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.ESC:\n case KEYS.TAB:\n handleAutoDismiss(event);\n break;\n }\n },\n [handleAutoDismiss]\n );\n\n // use the mousedown event to be consistent with legacy JET and so that we're hiding the dropdown\n // on the same event where focus will transfer\n useOutsideMousedown({\n isDisabled: !isOpen,\n ref: [anchorRef, dropdownRef],\n handler: handleAutoDismiss\n });\n\n // TODO: get dropdown y (mainAxis) offset from --oj-c-PRIVATE-DO-NOT-USE-private-core-global-dropdown-offset\n const offsetValue = { mainAxis: 4, crossAxis: 0 };\n\n const inlineStyle = isOpen\n ? {\n minWidth: `${anchorRef.current?.offsetWidth}px`\n }\n : {};\n\n if (prevIsOpen !== isOpen) {\n setPrevIsOpen(isOpen);\n }\n\n return !isOpen ? null : (\n <Layer logicalParentRef={anchorRef}>\n <Floating\n anchorRef={anchorRef}\n sizeOptions={{\n isMaxHeightAdjusted: true,\n maxHeightCeiling: 400\n }}\n ref={dropdownRef}\n placement={placement}\n offsetValue={offsetValue}\n onPosition={handlePosition}>\n <div\n class={dropdownStyles.base}\n id={id}\n style={inlineStyle}\n onKeyDown={handleKeyDown}\n onMouseDown={preventDefaultForCurrentTarget}>\n {children}\n </div>\n </Floating>\n </Layer>\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 { useCallback } from 'preact/hooks';\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { DropdownArrowIcon } from '../PRIVATE_ThemedIcons/DropdownArrowIcon';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport { ButtonLabelLayoutRedwoodTheme } from '#UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme';\nimport type { ButtonLabelLayoutVariantOptions } from '#UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport { BaseButtonRedwoodTheme } from '#UNSAFE_BaseButton/themes/redwood/BaseButtonTheme';\n\ntype Props = TestIdProps & {\n isDisabled?: boolean;\n onClick?: () => void;\n};\n\nconst noop = () => {};\n\nexport function DropdownArrow({ isDisabled = false, onClick, testId }: Props) {\n const { classes } = useComponentTheme<ButtonLabelLayoutVariantOptions>(\n ButtonLabelLayoutRedwoodTheme,\n { size: 'sm' }\n );\n const { baseTheme } = useComponentTheme(BaseButtonRedwoodTheme);\n\n const preventDefault = useCallback((event: Event) => {\n event.preventDefault();\n }, []);\n const { pressProps } = usePress(onClick ?? noop, { isDisabled });\n\n // TODO: JET-67410 replace this with a icon button\n const styleClasses = classNames([\n classes,\n baseTheme,\n dropdownStyles.arrow.base,\n isDisabled ? dropdownStyles.arrow.disabled : dropdownStyles.arrow.enabled\n ]);\n\n const testIdProps = useTestId(testId);\n\n return (\n <span\n aria-hidden=\"true\"\n class={styleClasses}\n tabIndex={-1}\n onMouseDown={preventDefault}\n {...testIdProps}\n {...pressProps}>\n <DropdownArrowIcon />\n </span>\n );\n}\n","import { ComponentChildren } from 'preact';\nimport { Flex } from '../UNSAFE_Flex';\nimport { Layer } from '../UNSAFE_Layer';\nimport { WindowOverlay } from '../UNSAFE_WindowOverlay';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { mobileDropdownStyles } from './themes/mobileDropdownStyles.css';\n\ntype Props = {\n /**\n * Id of the label to associate with the dropdown (e.g. the label of the filter field).\n */\n 'aria-labelledby'?: HTMLAttributesSignalExcluded['aria-labelledby'];\n\n /**\n * The dropdown content\n */\n children?: ComponentChildren;\n\n /**\n * The id for the top level element\n */\n id?: string;\n\n /**\n * Specifies whether the dropdown is being shown\n */\n isOpen?: boolean;\n};\n\nexport function MobileDropdown({ 'aria-labelledby': ariaLabelledBy, children, id, isOpen }: Props) {\n return !isOpen ? null : (\n <Layer>\n <WindowOverlay>\n <div\n id={id}\n class={mobileDropdownStyles.base}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={ariaLabelledBy}>\n <Flex width=\"100%\" height=\"100%\" maxHeight=\"100%\" direction=\"column\">\n {children}\n </Flex>\n </div>\n </WindowOverlay>\n </Layer>\n );\n}\n","import { Ref } from 'preact';\nimport { forwardRef } from 'preact/compat';\nimport {\n AriaAttributesSignalExcluded,\n HTMLAttributesSignalExcluded\n} from '../utils/UNSAFE_attributeUtils';\nimport { TextProps, textInterpolations } from '../utils/UNSAFE_interpolations/text';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { TextFieldInputVariantOptions } from '../UNSAFE_TextField/themes/TextFieldInputStyles.css';\nimport { useFormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { selectMobileFieldInputStyles } from './themes/SelectMobileFieldInputStyles.css';\nimport { isInputPlaceholderShown } from '../UNSAFE_TextField/TextFieldUtils';\nimport { useTabbableMode } from '../hooks/UNSAFE_useTabbableMode';\nimport { Text } from '../UNSAFE_Text';\nimport { useAccessibleContext } from '../hooks/UNSAFE_useAccessibleContext';\nimport { merge } from '../utils/UNSAFE_stringUtils';\nimport { TextFieldInputRedwoodTheme } from '../UNSAFE_TextField/themes/redwood/TextFieldInputTheme';\n\ntype AriaProps = Pick<\n AriaAttributesSignalExcluded,\n | 'aria-controls'\n | 'aria-describedby'\n | 'aria-expanded'\n | 'aria-invalid'\n | 'aria-label'\n | 'aria-labelledby'\n>;\n\ntype EventProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'onBlur' | 'onFocus'>;\n\ntype Props = AriaProps &\n EventProps &\n TextProps & {\n displayValue?: string;\n hasEmptyLabel?: boolean;\n hasInsideLabel?: boolean;\n isRequired?: boolean;\n placeholder?: string;\n variant?: 'default' | 'embedded';\n };\n\nconst interpolations = [...Object.values(textInterpolations)];\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\n/**\n * This component is used for rendering the main field in mobile phones. This is a bit different from the\n * normal main field (TextFieldInput) that we use for desktop & tablet devices in the way that\n * a user will not be able to edit the value of this field. But, one can still have other functionalities\n * of having a placeholder, tab in & out of it, and other such functionalities of an enabled field.\n *\n * This also differs from ReadonlyTextFieldInput in the following ways:\n * 1. This will be rendered as div as well, but has a role of combobox set on it\n * 2. This will not be read as readonly input by the screen readers\n * 3. This has the stylings much similar to the TextFieldInput component\n * 4. This supports the use of placeholder and shows it when there is no value present\n * 5. This supports having the variant property and styles accordingly\n *\n * As such, this is very similar to the TextFieldInput except that this does not allow user input.\n * Note: we cannot use TextFieldInput with readonly set on it; even though it might provide us the\n * behavior we need, it will make the field as readonly and screen readers read the same about this\n * field. This will be an incorrect representation contextually as one can still edit the value by opening\n * the dropdown and changing the selection.\n */\nexport const SelectMobileFieldInput = forwardRef(\n (\n {\n 'aria-controls': ariaControls,\n 'aria-describedby': ariaDescribedBy,\n 'aria-expanded': ariaExpanded,\n 'aria-invalid': ariaInvalid,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n displayValue,\n hasEmptyLabel,\n hasInsideLabel = false,\n isRequired,\n onBlur,\n onFocus,\n placeholder,\n textAlign,\n variant = 'default'\n }: Props,\n ref?: Ref<HTMLDivElement>\n ) => {\n // consume required contexts\n const { isDisabled, isFocused, hasValue = false } = useFormFieldContext();\n const { isTabbable, tabbableModeProps } = useTabbableMode();\n\n // setup properties\n const myPlaceholder = isInputPlaceholderShown(hasInsideLabel, hasValue, isFocused)\n ? placeholder\n : undefined;\n\n // Add unsafe API for specifying an external label which is added to ariaLabelledBy on the input,\n // only when labelEdge is 'none' and label is ''. Since ariaLabelledBy takes precedence over all other\n // kinds of labels, this helps to ensure we don't override a meaningful label.\n const { UNSAFE_ariaLabelledBy } = useAccessibleContext();\n const mergedAriaLabelledBy = hasEmptyLabel\n ? merge([ariaLabelledBy, UNSAFE_ariaLabelledBy])\n : ariaLabelledBy;\n\n // setup style classes\n const { class: styleInterpolationClasses } = styleInterpolations({ textAlign });\n const { classes: themeClasses } = useComponentTheme<TextFieldInputVariantOptions>(\n TextFieldInputRedwoodTheme,\n {\n type: 'notPassword',\n styleVariant: variant,\n textarea: 'notTextArea',\n input: 'isInput',\n prefix: 'noPrefix',\n suffix: 'noSuffix',\n startContent: 'noStartContent',\n endContent: 'hasEndContent',\n insideLabel: hasInsideLabel ? 'hasInsideLabel' : 'noInsideLabel',\n value: hasValue ? 'hasValue' : 'noValue',\n focused: isFocused ? 'isFocused' : 'notFocused',\n disabled: isDisabled ? 'isDisabled' : 'notDisabled'\n }\n );\n const rootDivStyleClasses = classNames([\n selectMobileFieldInputStyles.base,\n styleInterpolationClasses,\n themeClasses\n ]);\n\n return (\n <div\n aria-autocomplete=\"list\"\n aria-controls={ariaControls}\n aria-describedby={ariaDescribedBy}\n aria-expanded={ariaExpanded}\n aria-invalid={ariaInvalid}\n aria-label={ariaLabel}\n aria-labelledby={mergedAriaLabelledBy}\n aria-required={isRequired ? 'true' : undefined}\n class={rootDivStyleClasses}\n onBlur={onBlur}\n onFocus={onFocus}\n ref={ref}\n role=\"combobox\"\n {...(isTabbable && tabbableModeProps)}>\n <div class={selectMobileFieldInputStyles.content}>\n <Text variant={displayValue ? 'inherit' : 'secondary'}>\n {displayValue || myPlaceholder}\n </Text>\n </div>\n </div>\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 { ComponentChildren } from 'preact';\nimport { CollectionInteractionContext } from '../hooks/UNSAFE_useCollectionInteractionContext';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { preventDefaultForCurrentTarget } from './eventUtils';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n\ntype Props = {\n children?: ComponentChildren;\n hasTopGap?: boolean;\n hasBottomGap?: boolean;\n isLoading?: boolean;\n};\n\nexport function DropdownList({\n children,\n hasTopGap = true,\n hasBottomGap = true,\n isLoading = false\n}: Props) {\n const styleClasses = classNames([\n dropdownStyles.list.base,\n hasTopGap && dropdownStyles.list.topGap,\n hasBottomGap && dropdownStyles.list.bottomGap,\n isLoading && dropdownStyles.list.loading\n ]);\n return (\n <CollectionInteractionContext.Provider value={'embedded'}>\n <div class={styleClasses} onMouseDown={preventDefaultForCurrentTarget}>\n {children}\n </div>\n </CollectionInteractionContext.Provider>\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 } from 'preact';\nimport { useCallback } from 'preact/hooks';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n\ntype InlineUserAssistanceProps = Pick<\n ComponentProps<typeof InlineUserAssistance>,\n | 'assistiveText'\n | 'fieldLabel'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'id'\n | 'userAssistanceDensity'\n>;\n\nexport function DropdownUserAssistance(props: InlineUserAssistanceProps) {\n // Prevent the focus from transferring when the user clicks on an empty/non-clickable area\n // of the user assistance\n const handleMouseDown = useCallback((event: MouseEvent) => {\n // Don't call preventDefault when the user clicks on the help source link, so that the\n // focus is allowed to transfer in that case.\n if ((event.target as Element)?.tagName !== 'A') {\n event.preventDefault();\n }\n }, []);\n\n return (\n <FormFieldContext.Provider value={{ isFocused: true }}>\n <div class={dropdownStyles.userAssistance} onMouseDown={handleMouseDown}>\n <InlineUserAssistance {...props} />\n </div>\n </FormFieldContext.Provider>\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 { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\nimport { preventDefaultForCurrentTarget } from './eventUtils';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n\nexport function EmptyResults() {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n // call preventDefault for mousedown on this div so that focus does not transfer from\n // the input\n return (\n <div class={dropdownStyles.results.extraItem} onMouseDown={preventDefaultForCurrentTarget}>\n {translations.select_noMatchesFound()}\n </div>\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 { useCallback } from 'preact/hooks';\nimport { Link } from '#UNSAFE_Link';\nimport { useFocusWithin } from '#hooks/UNSAFE_useFocusWithin';\nimport { useHover } from '#hooks/UNSAFE_useHover';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n\ntype Props = {\n /**\n * Child content of the item.\n */\n children: string;\n /**\n * Specifies whether to highlight the item.\n */\n isHighlighted?: boolean;\n /**\n * Callback invoked when the user triggers the link, for example by clicking or pressing Enter.\n */\n onAction?: () => void;\n};\n\n/**\n * This component renders a link that looks like a list item in a Select* component dropdown.\n * It fires an action when the user triggers it, and is intended to be used for launching\n * external application UI from within the dropdown, for example to provide advanced search or\n * add to list functionality.\n * The LinkItem would typically be shown in a fixed position above or below the list itself.\n */\nconst LinkItem = ({ children, isHighlighted, onAction }: Props) => {\n const { isHover, hoverProps } = useHover();\n const { isFocused, focusProps } = useFocusWithin();\n\n const handleClick = useCallback(\n (e: Event) => {\n // prevent the link from actually navigating by preventing default and returning false\n e.preventDefault();\n onAction?.();\n return false;\n },\n [onAction]\n );\n\n const rootClasses = classNames([isFocused ? dropdownStyles.results.linkItemFocus : undefined]);\n\n const linkClasses = classNames([\n dropdownStyles.results.extraItem,\n isHover || isFocused || isHighlighted ? dropdownStyles.results.linkItemHighlight : undefined\n ]);\n\n return (\n <div class={rootClasses} {...focusProps}>\n <Link href=\"#\" onClick={handleClick}>\n <div class={linkClasses} {...hoverProps}>\n {children}\n </div>\n </Link>\n </div>\n );\n};\n\nexport { LinkItem };\n","import { ComponentChildren, ComponentProps } from 'preact';\nimport { Separator } from '../UNSAFE_Separator';\nimport { MobileDropdown } from './MobileDropdown';\nimport { selectMobileDropdownStyles } from './themes/selectMobileDropdownStyles.css';\n\ntype MobileDropdownProps = ComponentProps<typeof MobileDropdown>;\ntype PassThroughMobileDropdownProps = Pick<MobileDropdownProps, 'id' | 'isOpen'>;\n\ntype Props = PassThroughMobileDropdownProps & {\n /**\n * The main dropdown content\n */\n children?: ComponentChildren;\n\n /**\n * The components to be placed in the end of the dropdown\n */\n footer?: ComponentChildren;\n\n /**\n * The components to be placed in the beginning of the dropdown\n */\n header?: ComponentChildren;\n\n /**\n * Specifies whether to have a separator between header and content\n */\n hasHeaderSeparator?: boolean;\n\n /**\n * Id of the label for the filter field.\n */\n labelId?: string;\n};\n\nexport function SelectMobileDropdown({\n children,\n footer,\n hasHeaderSeparator = true,\n header,\n id,\n isOpen,\n labelId\n}: Props) {\n return (\n <MobileDropdown id={id} isOpen={isOpen} aria-labelledby={labelId}>\n {header}\n {hasHeaderSeparator && <Separator />}\n {/* TODO: Add overflow support to View and use it here */}\n {/* */}\n <div class={selectMobileDropdownStyles.content}>{children}</div>\n <Separator />\n {footer}\n </MobileDropdown>\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 { DataState } from '#UNSAFE_Collection';\nimport { getClientHints } from '#utils/PRIVATE_clientHints';\nimport type { Item } from '#utils/UNSAFE_dataProvider';\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 */\nexport function isMobile() {\n const deviceType = getClientHints().deviceType;\n return deviceType === 'phone' || deviceType === 'tablet';\n}\n\n/**\n * Helper function to determine whether the current device is a phone\n * @returns true if running on a phone, false otherwise\n */\nexport function isPhone() {\n return getClientHints().deviceType === 'phone';\n}\n\n/**\n * Helper function to determine whether the current device is a tablet\n * @returns true if running on a tablet, false otherwise\n */\nexport function isTablet() {\n return getClientHints().deviceType === 'tablet';\n}\n\nexport function isBeforeDataFetch<K, D>(data: DataState<K, D>) {\n return data.sizePrecision === 'atLeast' && data.totalSize === 0;\n}\n\nexport function isSearchTextEmptyOrUndefined(searchText?: string) {\n return searchText === undefined || searchText.length === 0;\n}\n\n/**\n * Extract keys from a value items array.\n *\n * @param valueItems The value items from which the keys are to be extracted\n * @returns The set of keys\n */\nexport function createKeysFromValueItems<K, D>(valueItems?: Item<K, D>[]) {\n const keys = valueItems?.reduce((accumKeys, currentItem) => {\n accumKeys.add(currentItem.key);\n return accumKeys;\n }, new Set<K>());\n return keys;\n}\n","import type { DataState } from '#UNSAFE_Collection';\nimport type { Item } from '#utils/UNSAFE_dataProvider';\nimport { useMemo } from 'preact/compat';\n\ntype Key = string | number;\ntype Data = Record<string, any>;\n\ntype UseCollectionRendererCommonParams<K> = {\n currentKey?: K;\n searchText?: string;\n selectedKeys?: Set<K>;\n onCurrentKeyChange: (detail: { value?: K }) => void;\n};\n\nexport type UseCollectionRendererSelectSingleParams<K, D> = UseCollectionRendererCommonParams<K> & {\n onItemAction: (detail: { context: Item<K, D> }) => void;\n onSelectedKeysChange?: never;\n selectedOnlyData?: never;\n};\n\nexport type UseCollectionRendererSelectMultipleParams<K, D> =\n UseCollectionRendererCommonParams<K> & {\n onItemAction?: never;\n onSelectedKeysChange: (detail: { value: Set<K> }) => void;\n selectedOnlyData?: DataState<K, D>;\n };\n\ntype UseCollectionRendererParams<K, D> =\n | UseCollectionRendererSelectSingleParams<K, D>\n | UseCollectionRendererSelectMultipleParams<K, D>;\n\ntype CommonCollectionRendererContext<K extends Key> = {\n searchText?: string;\n currentRowKeyOverride?: K;\n onPersistCurrentRowKey: (detail: { value?: K }) => void;\n selected?: Set<K>;\n};\n\nexport type SelectSingleCollectionRendererContext<\n K extends Key,\n D extends Data\n> = CommonCollectionRendererContext<K> & {\n onRowAction: (detail: { context: Item<K, D> }) => void;\n};\n\nexport type SelectMultipleCollectionRendererContext<\n K extends Key,\n D extends Data\n> = CommonCollectionRendererContext<K> & {\n onSelectedChange: (detail: { value: Set<K> }) => void;\n selectedOnlyData?: DataState<K, D>;\n};\n\ntype CollectionRendererContext<K extends Key, D extends Data> =\n | SelectSingleCollectionRendererContext<K, D>\n | SelectMultipleCollectionRendererContext<K, D>;\n\n// NOTE: We will using a single hook that constructs the collection renderer context for both select single and\n// select multiple. This is ok as they both share most of the properties and differ only in a few areas. So, we will\n// be using function overloading to determine which component is calling the hook (based on the args) and return the\n// correct context.\n\n/**\n * A custom hook that constructs the context for SelectSingle's collectionRenderer.\n * @param params Parameters for constructing the collection renderer context\n * @returns the CollectionRendererContext object\n */\nexport function useCollectionRenderer<K extends Key, D extends Data>(\n params: UseCollectionRendererSelectSingleParams<K, D>\n): SelectSingleCollectionRendererContext<K, D>;\n\n/**\n * A custom hook that constructs the context for SelectMultiple's collectionRenderer.\n * @param params Parameters for constructing the collection renderer context\n * @returns the CollectionRendererContext object\n */\nexport function useCollectionRenderer<K extends Key, D extends Data>(\n params: UseCollectionRendererSelectMultipleParams<K, D>\n): SelectMultipleCollectionRendererContext<K, D>;\n\n/**\n * A custom hook that constructs the context for SelectSingle/SelectMultiple's collectionRenderer.\n * @param param0 Parameters for constructing the collection renderer context\n * @returns the CollectionRendererContext object\n */\nexport function useCollectionRenderer<K extends Key, D extends Data>({\n currentKey,\n onCurrentKeyChange,\n onItemAction,\n onSelectedKeysChange,\n searchText,\n selectedKeys,\n selectedOnlyData\n}: UseCollectionRendererParams<K, D>) {\n return useMemo<CollectionRendererContext<K, D>>(() => {\n const common = {\n searchText,\n currentRowKeyOverride: currentKey,\n onPersistCurrentRowKey: onCurrentKeyChange,\n selected: selectedKeys\n } satisfies CommonCollectionRendererContext<K>;\n\n // If onItemAction is present, then we are constructing context for SelectSingle. So,\n // return the context satisfying SelectSingleCollectionRendererContext type.\n if (onItemAction !== undefined)\n return {\n ...common,\n onRowAction: onItemAction\n } satisfies SelectSingleCollectionRendererContext<K, D>;\n\n // If onItemAction is not present, then we are constructing context for SelectMultiple. So,\n // return the context satisfying SelectMultipleCollectionRendererContext type.\n return {\n ...common,\n onSelectedChange: onSelectedKeysChange,\n selectedOnlyData\n } satisfies SelectMultipleCollectionRendererContext<K, D>;\n }, [\n currentKey,\n onCurrentKeyChange,\n onItemAction,\n onSelectedKeysChange,\n searchText,\n selectedKeys,\n selectedOnlyData\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 { DataState } from '#UNSAFE_Collection';\nimport type { PositionData } from '#UNSAFE_Floating';\nimport { KEYS, isControlOrFunctionKey } from '#utils/PRIVATE_keyboardUtils';\nimport { allTabbableElements } from '#utils/PRIVATE_tabbableUtils';\nimport type { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport type { RefObject } from 'preact';\nimport { useCallback, useEffect, useRef, useState } from 'preact/hooks';\nimport { isSimpleClick } from './eventUtils';\n\ntype UseSelectCommonProps<K, D> = {\n data?: DataState<K, D> | null;\n inputRef: RefObject<HTMLElement>;\n isFocused?: boolean;\n onFilter?: ({ searchText }: { searchText?: string }) => void;\n};\n\nexport type CurrentKeyDetail<K> = {\n value?: K;\n};\n\n/**\n * Hook that manages state and behavior for a Select* component. This hook creates state\n * variables and event listeners, returning properties to apply to components internally\n * rendered by a Select* component, as well as state information.\n *\n * @param data Specifies data for the dropdown list.\n * @param inputRef Ref to the input element.\n * @param isFocused Specifies whether the component has focus.\n * @param onFilter Callback function to trigger loading data for the dropdown list,\n * which may or may not be filtered by user entered text.\n *\n * @returns Component state and event listeners.\n */\nexport function useSelectCommon<K, D>({\n data,\n inputRef,\n isFocused,\n onFilter\n}: UseSelectCommonProps<K, D>) {\n const mainFieldRef = useRef<HTMLDivElement>(null);\n const dropdownRef = useRef<HTMLDivElement>(null);\n const [isDropdownOpen, setDropdownOpen] = useState(false);\n const [isDropdownAbove, setDropdownAbove] = useState(false);\n\n // We only need to push currentRow when we need to override the\n // current row, like when the dropdown is opened and we want to set the initial\n // focused row or when filtering and we want to focus the first row.\n const [currentRowOverride, _setCurrentRowOverride] = useState<{ rowKey?: K }>({\n rowKey: undefined\n });\n // We still need information on what the current row actually is, but we do not need\n // to react to it until certain scenarios like pressing Tab from the dropdown. So, we\n // just store this in a ref.\n const currentRowKeyRef = useRef<K>();\n // When we want to update the currentRowOverride, we also want to keep the currentRowKeyRef\n // in sync as the collection will not call onChanged for this change.\n const setCurrentRowOverride = useCallback((currentRow: { rowKey?: K }) => {\n currentRowKeyRef.current = currentRow.rowKey;\n _setCurrentRowOverride(currentRow);\n }, []);\n const [isUserFiltering, setUserFiltering] = useState(false);\n const [userInput, setUserInput] = useState<string>();\n const [searchText, setSearchText] = useState<string>();\n\n const [prevIsDropdownOpen, setPrevIsDropdownOpen] = useState(isDropdownOpen);\n const [prevIsFocused, setPrevIsFocused] = useState(isFocused);\n const [prevIsUserFiltering, setPrevIsUserFiltering] = useState(isUserFiltering);\n\n const onMouseDown = useCallback(\n (event: MouseEvent) => {\n // const target = event.target as HTMLElement;\n if (event.defaultPrevented || !isSimpleClick(event)) {\n return;\n }\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n }\n // this is needed to focus the input when clicking on the inside label when there is no\n // value; otherwise the component looks focused but doesn't actually have physical focus\n setTimeout(function () {\n inputRef.current?.focus();\n }, 0);\n },\n [inputRef, isDropdownOpen]\n );\n\n const handleDropdownArrowClick = useCallback(() => {\n setDropdownOpen(!isDropdownOpen);\n\n // focus the input so that if the user Tabs afterwards, it loses focus and the dropdown closes\n inputRef.current?.focus();\n }, [inputRef, isDropdownOpen]);\n\n const handleDropdownAutoDismiss = useCallback(\n (event?: Event) => {\n if (isDropdownOpen) {\n setDropdownOpen(false);\n\n switch (event?.type) {\n case 'keydown':\n const keyboardEvent = event as KeyboardEvent;\n switch (keyboardEvent.code) {\n case KEYS.ESC:\n // focus the input when the user cancels out of the dropdown\n inputRef.current?.focus();\n break;\n default:\n break;\n }\n break;\n case 'mousedown':\n // if focus is in the dropdown, focus the input before the dropdown is hidden so that\n // focus will transfer correctly when the target is not focusable;\n // otherwise the text cursor appears in the input again\n if (dropdownRef.current?.contains(document.activeElement)) {\n inputRef.current?.focus();\n }\n break;\n default:\n break;\n }\n }\n },\n [inputRef, isDropdownOpen]\n );\n\n const handleDropdownPosition = useCallback((data: PositionData) => {\n setDropdownAbove(data.placement.startsWith('top'));\n }, []);\n\n const getDropdownTabbableElems = useCallback(() => {\n return isDropdownOpen && dropdownRef.current\n ? allTabbableElements(dropdownRef.current)\n : undefined;\n }, [isDropdownOpen]);\n\n const handleUpDownArrowKeys = useCallback(\n (event: KeyboardEvent) => {\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n } else {\n // JET-64909 - focus / 'current' dropped when arrow keying during loading\n // Transfer physical focus into the dropdown only if the data is present and the dropdown\n // has rendered the data. Otherwise, keep the focus in the field.\n if (data != null) {\n const tabbableElems = getDropdownTabbableElems();\n tabbableElems?.[0]?.focus();\n\n // if there is no current item set, make the first item current\n if (currentRowOverride.rowKey === undefined) {\n setCurrentRowOverride({ rowKey: data.data[0]?.metadata?.key });\n }\n }\n }\n\n // prevent the page from scrolling\n event.preventDefault();\n },\n [currentRowOverride, data, getDropdownTabbableElems, isDropdownOpen, setCurrentRowOverride]\n );\n\n const handleMainFieldKeyDown = useCallback(\n (event: KeyboardEvent) => {\n // const target = event.target as HTMLElement;\n // ignore control key and function key\n if (isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.PAGE_UP:\n case KEYS.PAGE_DOWN:\n // prevent the page from scrolling\n event.preventDefault();\n\n return;\n\n case KEYS.UP:\n case KEYS.DOWN:\n // prevent the page from scrolling\n event.preventDefault();\n break;\n\n case KEYS.ESC:\n if (isDropdownOpen) {\n setDropdownOpen(false);\n\n event.preventDefault();\n\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to stop editing the row when we close\n // the dropdown\n event.stopPropagation();\n }\n break;\n\n default:\n break;\n }\n },\n [isDropdownOpen]\n );\n\n const handleMainFieldKeyUp = useCallback(\n (event: KeyboardEvent) => {\n // ignore control key and function key\n if (isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.UP:\n case KEYS.DOWN:\n handleUpDownArrowKeys(event);\n break;\n\n default:\n break;\n }\n },\n [handleUpDownArrowKeys]\n );\n\n const handleInput = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n }\n setUserFiltering(true);\n setUserInput(detail.value);\n const str = detail.value;\n setSearchText(str);\n onFilter?.({ searchText: str });\n },\n [isDropdownOpen, onFilter]\n );\n\n const onCurrentKeyChange = useCallback((detail: CurrentKeyDetail<K>) => {\n // when the collection changes the current key, we only want to store the information\n // and not do anything.\n currentRowKeyRef.current = detail.value;\n }, []);\n\n const stopFiltering = useCallback(() => {\n setUserFiltering(false);\n setUserInput('');\n setSearchText('');\n }, []);\n\n // the user is not actively filtering if the dropdown is closed and the component doesn't\n // have focus\n if (\n prevIsDropdownOpen !== isDropdownOpen ||\n prevIsFocused !== isFocused ||\n prevIsUserFiltering !== isUserFiltering\n ) {\n if (!isDropdownOpen && !isFocused && isUserFiltering) {\n stopFiltering();\n }\n }\n\n // need to call onFilter with undefined searchText when the dropdown opens and the\n // user is NOT filtering\n useEffect(() => {\n if (isDropdownOpen && !isUserFiltering) {\n onFilter?.({ searchText: undefined });\n }\n }, [isDropdownOpen, isUserFiltering, onFilter]);\n\n // when the dropdown closes, reset the isDropdownAbove flag\n if (prevIsDropdownOpen !== isDropdownOpen) {\n if (!isDropdownOpen) {\n setDropdownAbove(false);\n }\n setPrevIsDropdownOpen(isDropdownOpen);\n }\n\n if (prevIsFocused !== isFocused) {\n setPrevIsFocused(isFocused);\n }\n if (prevIsUserFiltering !== isUserFiltering) {\n setPrevIsUserFiltering(isUserFiltering);\n }\n\n return {\n currentRowKeyRef,\n currentRowOverride,\n dropdownRef,\n getDropdownTabbableElems,\n handleDropdownArrowClick,\n handleDropdownAutoDismiss,\n handleDropdownPosition,\n handleInput,\n handleMainFieldKeyDown,\n handleMainFieldKeyUp,\n handleUpDownArrowKeys,\n isDropdownAbove,\n isDropdownOpen,\n // the field should remain to look focused while the dropdown is open,\n // in case physical focus is in the dropdown\n isFocused: isFocused || isDropdownOpen,\n isUserFiltering,\n mainFieldRef,\n onCurrentKeyChange,\n onMouseDown,\n searchText,\n setCurrentRowOverride,\n setDropdownOpen,\n setUserInput,\n stopFiltering,\n userInput\n };\n}\n"],"names":["renderItemText","item","itemText","data","hasOwnProperty","retData","String","error","noOp","loadingIndicator","_jsx","jsx","SkeletonContainer","minimumCount","children","Flex","height","align","Skeleton","isSimpleClick","event","button","ctrlKey","preventDefaultForCurrentTarget","currentTarget","target","preventDefault","DEFAULT_PLACEMENT","noop","MobileDropdown","ariaLabelledBy","id","isOpen","Layer","WindowOverlay","class","mobileDropdownStyles","base","role","width","maxHeight","direction","interpolations","Object","values","textInterpolations","styleInterpolations","mergeInterpolations","SelectMobileFieldInput","forwardRef","ariaControls","ariaDescribedBy","ariaExpanded","ariaInvalid","ariaLabel","displayValue","hasEmptyLabel","hasInsideLabel","isRequired","onBlur","onFocus","placeholder","textAlign","variant","ref","isDisabled","isFocused","hasValue","useFormFieldContext","isTabbable","tabbableModeProps","useTabbableMode","myPlaceholder","isInputPlaceholderShown","undefined","UNSAFE_ariaLabelledBy","useAccessibleContext","mergedAriaLabelledBy","merge","styleInterpolationClasses","classes","themeClasses","useComponentTheme","TextFieldInputRedwoodTheme","type","styleVariant","textarea","input","prefix","suffix","startContent","endContent","insideLabel","value","focused","disabled","rootDivStyleClasses","classNames","selectMobileFieldInputStyles","content","Text","currentItemVariant","currentKey","itemRenderer","onCurrentKeyChange","onItemAction","onLoadRange","onSelectionChange","searchText","selectedKeys","selectionMode","listItemRenderer","useCallback","listItemContext","itemRendererProps","index","metadata","selector","itemContext","key","_jsxs","jsxs","dropdownStyles","selectorWrapper","singleSelectItem","multiSelectItem","ListItemText","HighlightText","matchText","keys","useMemo","all","Set","currentItemOverride","rowKey","handleItemAction","context","handleSelectionChange","List","allowTabbableMode","onPersistCurrentItem","anchorRef","dropdownRef","onAutoDismiss","onPosition","placement","setPlacement","useState","prevIsOpen","setPrevIsOpen","handlePosition","positionData","handleAutoDismiss","handleKeyDown","defaultPrevented","isControlOrFunctionKey","code","KEYS","ESC","TAB","useOutsideMousedown","handler","inlineStyle","minWidth","current","offsetWidth","logicalParentRef","Floating","sizeOptions","isMaxHeightAdjusted","maxHeightCeiling","offsetValue","mainAxis","crossAxis","style","onKeyDown","onMouseDown","onClick","testId","ButtonLabelLayoutRedwoodTheme","size","baseTheme","BaseButtonRedwoodTheme","pressProps","usePress","styleClasses","arrow","enabled","testIdProps","useTestId","tabIndex","DropdownArrowIcon","SvgCaretDown","hasTopGap","hasBottomGap","isLoading","list","topGap","bottomGap","loading","CollectionInteractionContext","Provider","props","handleMouseDown","tagName","FormFieldContext","userAssistance","InlineUserAssistance","translations","useTranslationBundle","results","extraItem","select_noMatchesFound","isHighlighted","onAction","isHover","hoverProps","useHover","focusProps","useFocusWithin","handleClick","e","rootClasses","linkItemFocus","linkClasses","linkItemHighlight","Link","href","footer","hasHeaderSeparator","header","labelId","Separator","selectMobileDropdownStyles","valueItems","reduce","accumKeys","currentItem","add","sizePrecision","totalSize","deviceType","getClientHints","length","onSelectedKeysChange","selectedOnlyData","common","currentRowKeyOverride","onPersistCurrentRowKey","selected","onRowAction","onSelectedChange","inputRef","onFilter","mainFieldRef","useRef","isDropdownOpen","setDropdownOpen","isDropdownAbove","setDropdownAbove","currentRowOverride","_setCurrentRowOverride","currentRowKeyRef","setCurrentRowOverride","currentRow","isUserFiltering","setUserFiltering","userInput","setUserInput","setSearchText","prevIsDropdownOpen","setPrevIsDropdownOpen","prevIsFocused","setPrevIsFocused","prevIsUserFiltering","setPrevIsUserFiltering","setTimeout","focus","handleDropdownArrowClick","handleDropdownAutoDismiss","contains","document","activeElement","handleDropdownPosition","startsWith","getDropdownTabbableElems","allTabbableElements","handleUpDownArrowKeys","tabbableElems","handleMainFieldKeyDown","PAGE_UP","PAGE_DOWN","UP","DOWN","stopPropagation","handleMainFieldKeyUp","handleInput","detail","str","stopFiltering","useEffect"],"mappings":"w7FAYgB,SAAAA,GAAqBC,EAAkBC,GAGrD,GAAwB,iBAAbA,EAUX,OAAQA,EAAwCD,GAT9C,GAAKA,EAAKE,MAAcC,eAAeF,GAAW,CAChD,MAAMG,EAAUJ,EAAKE,KAAKD,GAC1B,OAAOI,OAAOD,EACf,CACDE,QAAM,iEAAmEL,EAM7E,CCsCA,MAAMM,GAAO,OA4Gb,MAAMC,GACJC,EAACC,IAAAC,EAAiBA,kBAAC,CAAAC,aAAc,EAC9BC,SAAA,IAEGJ,EAAAA,IAACK,EAAAA,KAAI,CAACC,OAAO,MAAMC,MAAM,SACvBH,SAAAJ,EAAAC,IAACO,EAAQA,SAAC,CAAAF,OAAO,WCjLdG,GAAiBC,GACJ,IAAjBA,EAAMC,SAAiBD,EAAME,QAOzBC,GAAkCH,IACzCA,EAAMI,gBAAkBJ,EAAMK,QAChCL,EAAMM,gBACP,ECmBGC,GAAoB,eCN1B,MAAMC,GAAO,OCKG,SAAAC,IAAiB,kBAAmBC,EAAchB,SAAEA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AuBvL,eAC1B5F,IAEC,IAAIuI,EAAAA,uBAAuBvI,GAI3B,OAAQA,EAAMwI,MACZ,KAAKC,EAAAA,KAAKuI,GACV,KAAKvI,EAAIA,KAACwI,KACRN,EAAsB3Q,GAKzB,GAEH,CAAC2Q,IAGGS,EAAcxL,eACjByL,IACMzC,GACHC,GAAgB,GAElBS,GAAiB,GACjBE,EAAa6B,EAAO5M,OACpB,MAAM6M,EAAMD,EAAO5M,MACnBgL,EAAc6B,GACd7C,IAAW,CAAEjJ,WAAY8L,GAAM,GAEjC,CAAC1C,EAAgBH,IAGbrJ,EAAqBQ,eAAayL,IAGtCnC,EAAiBlG,QAAUqI,EAAO5M,KAAK,GACtC,IAEG8M,EAAgB3L,EAAAA,aAAY,KAChC0J,GAAiB,GACjBE,EAAa,IACbC,EAAc,GAAG,GAChB,IAqCH,OAhCEC,IAAuBd,GACvBgB,IAAkB9M,GAClBgN,IAAwBT,GAEnBT,GAAmB9L,IAAauM,GACnCkC,IAMJC,EAAAA,WAAU,KACJ5C,IAAmBS,GACrBZ,IAAW,CAAEjJ,gBAAYlC,GAC1B,GACA,CAACsL,EAAgBS,EAAiBZ,IAGjCiB,IAAuBd,IACpBA,GACHG,GAAiB,GAEnBY,EAAsBf,IAGpBgB,IAAkB9M,GACpB+M,EAAiB/M,GAEfgN,IAAwBT,GAC1BU,EAAuBV,GAGlB,CACLH,mBACAF,qBACAtH,cACA+I,2BACAP,2BACAC,4BACAI,yBACAa,cACAP,yBACAM,uBACAR,wBACA7B,kBACAF,iBAGA9L,UAAWA,GAAa8L,EACxBS,kBACAX,eACAtJ,qBACAwE,cACApE,aACA2J,wBACAN,kBACAW,eACA+B,gBACAhC,YAEJ"}
1
+ {"version":3,"file":"useSelectCommon-e7f123ce.js","sources":["../../src/PRIVATE_SelectCommon/itemTextUtils.ts","../../src/PRIVATE_SelectCommon/DefaultList.tsx","../../src/PRIVATE_SelectCommon/eventUtils.ts","../../src/PRIVATE_SelectCommon/Dropdown.tsx","../../src/PRIVATE_SelectCommon/DropdownArrow.tsx","../../src/PRIVATE_SelectCommon/MobileDropdown.tsx","../../src/PRIVATE_SelectCommon/SelectMobileFieldInput.tsx","../../src/PRIVATE_SelectCommon/DropdownList.tsx","../../src/PRIVATE_SelectCommon/DropdownUserAssistance.tsx","../../src/PRIVATE_SelectCommon/EmptyResults.tsx","../../src/PRIVATE_SelectCommon/LinkItem.tsx","../../src/PRIVATE_SelectCommon/SelectMobileDropdown.tsx","../../src/PRIVATE_SelectCommon/selectUtils.ts","../../src/PRIVATE_SelectCommon/useCollectionRenderer.ts","../../src/PRIVATE_SelectCommon/useSelectCommon.ts"],"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 { Item } from '../utils/UNSAFE_dataProvider';\nimport { error } from '../utils/UNSAFE_logger';\nimport { ItemTextFunctionType, ItemTextType } from '../utils/UNSAFE_selectUtils';\n\nexport function renderItemText<K, D>(item: Item<K, D>, itemText: ItemTextType<K, D>) {\n // if item-text is a string and the data has the specified field, return it;\n // otherwise log an error\n if (typeof itemText === 'string') {\n if ((item.data as any)?.hasOwnProperty(itemText)) {\n const retData = item.data[itemText];\n return String(retData);\n }\n error('SelectMultiple: itemText specifies field that does not exist: ' + itemText);\n // return undefined if the field doesn't exist\n return undefined;\n }\n // if item-text is a function, call it to create a display label\n return (itemText as ItemTextFunctionType<K, D>)(item);\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 { List, SkeletonContainer } from '#PRIVATE_List';\nimport type { DataState, ListItemRendererContext, Metadata } from '#UNSAFE_Collection';\nimport { Flex } from '#UNSAFE_Flex';\nimport { HighlightText } from '#UNSAFE_HighlightText';\nimport { ListItemText } from '#UNSAFE_ListItemLayout';\nimport { Skeleton } from '#UNSAFE_Skeleton';\nimport type { Item } from '#utils/UNSAFE_dataProvider';\nimport type { Keys } from '#utils/UNSAFE_keys';\nimport type { ItemTextType } from '#utils/UNSAFE_selectUtils';\nimport type { ComponentChildren, ComponentProps } from 'preact';\nimport { useCallback, useMemo } from 'preact/hooks';\nimport { renderItemText } from './itemTextUtils';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n\ntype ListProps<K extends string | number, D> = ComponentProps<typeof List<K, D>>;\ntype PickedPropsFromList = Pick<\n ComponentProps<typeof List>,\n 'aria-label' | 'currentItemVariant' | 'selectionMode'\n>;\n\n// pick the props from the ListItemContext instead of extending it directly so that we\n// don't automatically expose any new props that may be added to it\ntype PickedPropsFromListItemContext<K, D> = Pick<\n ListItemRendererContext<K, D>,\n 'data' | 'index' | 'selector'\n>;\ntype ItemRendererSelectionDetail<K> = {\n value: Set<K>;\n target: EventTarget | null;\n};\ntype ItemRendererMetadata<K> = Pick<Metadata<K>, 'key' | 'suggestion'>;\ntype ItemRendererProps<K, D> = PickedPropsFromListItemContext<K, D> & {\n metadata: ItemRendererMetadata<K>;\n searchText?: string;\n selectedKeys?: Set<K>;\n onSelectionChange: (detail: ItemRendererSelectionDetail<K>) => void;\n};\n\ntype DefaultListCurrentKeyDetail<K> = { value: K };\ntype DefaultListItemActionDetail<K, D> = { context: Item<K, D> };\ntype DefaultListSelectionDetail<K> = { value: Set<K> };\n\ntype Props<K extends string | number, D extends Record<string, any>> = PickedPropsFromList & {\n itemRenderer?: (itemRendererProps: ItemRendererProps<K, D>) => ComponentChildren;\n itemText: ItemTextType<K, D>;\n // props from List that we constrain or unconstrain\n currentKey?: K;\n data?: DataState<K, D> | null;\n onCurrentKeyChange: (detail: DefaultListCurrentKeyDetail<K>) => void;\n onItemAction?: (detail: DefaultListItemActionDetail<K, D>) => void;\n onLoadRange?: ComponentProps<typeof List>['onLoadRange'];\n onSelectionChange?: (detail: DefaultListSelectionDetail<K>) => void;\n searchText?: string;\n selectedKeys?: Set<K>;\n};\n\nconst noOp = () => {};\n\nexport function DefaultList<K extends string | number, D extends Record<string, any>>({\n 'aria-label': ariaLabel,\n currentItemVariant,\n currentKey,\n data,\n itemRenderer,\n itemText,\n onCurrentKeyChange,\n onItemAction,\n onLoadRange = noOp,\n onSelectionChange,\n searchText,\n selectedKeys,\n selectionMode\n}: Props<K, D>) {\n const listItemRenderer = useCallback(\n (listItemContext: ListItemRendererContext<K, D>) => {\n // specify the listItemContext props that we want to expose individually instead of\n // spreading the whole object so that we don't automatically include any new props that\n // may be added to it\n const itemRendererProps: ItemRendererProps<K, D> = {\n data: listItemContext.data,\n index: listItemContext.index,\n metadata: listItemContext.metadata,\n selector: listItemContext.selector,\n searchText,\n selectedKeys,\n onSelectionChange: ({ value }) => {\n onSelectionChange?.({ value });\n }\n };\n const itemContext = {\n data: listItemContext.data,\n key: listItemContext.metadata.key,\n metadata: listItemContext.metadata\n };\n return itemRenderer ? (\n itemRenderer(itemRendererProps)\n ) : (\n <Flex align=\"center\">\n {listItemContext.selector && (\n <div class={dropdownStyles.selectorWrapper}>{listItemContext.selector()}</div>\n )}\n <div\n class={\n selectionMode === 'single'\n ? dropdownStyles.singleSelectItem\n : dropdownStyles.multiSelectItem\n }>\n <ListItemText variant=\"primary\">\n <HighlightText matchText={searchText}>\n {renderItemText(itemContext, itemText) as string}\n </HighlightText>\n </ListItemText>\n </div>\n </Flex>\n );\n },\n [itemRenderer, itemText, onSelectionChange, searchText, selectedKeys, selectionMode]\n );\n\n const keys = useMemo(() => {\n return { all: false, keys: selectedKeys ?? new Set<K>() };\n }, [selectedKeys]) as Keys<K>;\n\n const currentItemOverride = useMemo(\n () => (currentKey !== undefined ? { rowKey: currentKey } : undefined),\n [currentKey]\n );\n const handleItemAction = useCallback<NonNullable<ListProps<K, D>['onItemAction']>>(\n ({ context: { data, metadata } }) => {\n onItemAction?.({ context: { data, key: metadata.key, metadata } });\n },\n [onItemAction]\n );\n const handleSelectionChange = useCallback<NonNullable<ListProps<K, D>['onSelectionChange']>>(\n ({ value }) => {\n onSelectionChange?.({ value: new Set(value.keys?.values()) });\n },\n [onSelectionChange]\n );\n\n return (\n <List<K, D>\n aria-label={ariaLabel}\n allowTabbableMode={false}\n currentItemVariant={currentItemVariant}\n currentItemOverride={currentItemOverride}\n data={data ?? null}\n loadingIndicator={loadingIndicator}\n onPersistCurrentItem={onCurrentKeyChange}\n onItemAction={handleItemAction}\n onLoadRange={onLoadRange}\n onSelectionChange={handleSelectionChange}\n role=\"listbox\"\n selectedKeys={keys}\n selectionMode={selectionMode}>\n {(context: ListItemRendererContext<K, D>) => listItemRenderer(context)}\n </List>\n );\n}\n\n/**\n * Custom 3 Skeleton loader for select multiple\n * TODO: to remove this once is solved\n */\nconst loadingIndicator = (\n <SkeletonContainer minimumCount={3}>\n {() => {\n return (\n <Flex height=\"12x\" align=\"center\">\n <Skeleton height=\"4x\" />\n </Flex>\n );\n }}\n </SkeletonContainer>\n);\n","export const isSimpleClick = (event: MouseEvent) => {\n return event.button === 0 && !event.ctrlKey;\n};\n\nexport const preventDefault = (event: Event) => {\n event.preventDefault();\n};\n\nexport const preventDefaultForCurrentTarget = (event: MouseEvent) => {\n if (event.currentTarget === event.target) {\n event.preventDefault();\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 { ComponentChildren, ComponentProps } from 'preact';\nimport { MutableRef, useCallback, useState } from 'preact/hooks';\nimport { Floating, PositionData } from '../UNSAFE_Floating';\nimport { Layer } from '../UNSAFE_Layer';\nimport { isControlOrFunctionKey, KEYS } from '../utils/PRIVATE_keyboardUtils';\nimport { preventDefaultForCurrentTarget } from './eventUtils';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n//Once Dropdown is consumed this will be removed\nimport { useOutsideMousedown } from '../hooks/PRIVATE_useOutsideMousedown';\n\ntype FloatingProps = ComponentProps<typeof Floating>;\n\ntype Props = {\n anchorRef: MutableRef<HTMLElement | null>;\n children?: ComponentChildren;\n dropdownRef: MutableRef<HTMLElement | null>;\n id?: string;\n isOpen?: boolean;\n onAutoDismiss?: (event?: Event) => void;\n onPosition?: FloatingProps['onPosition'];\n};\n\nconst DEFAULT_PLACEMENT = 'bottom-start';\n\n//TODO: Start consuming PRIVATE_Dropdown. JET-62565\nexport function Dropdown({\n anchorRef,\n children,\n dropdownRef,\n id,\n isOpen,\n onAutoDismiss,\n onPosition\n}: Props) {\n const [placement, setPlacement] = useState<FloatingProps['placement']>(DEFAULT_PLACEMENT);\n\n const [prevIsOpen, setPrevIsOpen] = useState(isOpen);\n\n if (prevIsOpen !== isOpen) {\n // reset the placement to the default when the dropdown closes, not opens, so that it doesn't\n // initially open in the previous position and then move to the default position on the\n // rerender after the state is updated\n if (!isOpen) {\n setPlacement(DEFAULT_PLACEMENT);\n }\n }\n\n const handlePosition = useCallback(\n (positionData: PositionData) => {\n // update the placement so that the dropdown stays where it is until there is a collision,\n // i.e. it no longer fits, instead of letting it try to move back to the default position\n // on every render\n setPlacement(positionData.placement);\n\n // call the callback that was passed in through props\n onPosition?.(positionData);\n },\n [onPosition, setPlacement]\n );\n\n const handleAutoDismiss = useCallback(\n (event: Event) => {\n onAutoDismiss?.(event);\n },\n [onAutoDismiss]\n );\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (event.defaultPrevented || isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.ESC:\n case KEYS.TAB:\n handleAutoDismiss(event);\n break;\n }\n },\n [handleAutoDismiss]\n );\n\n // use the mousedown event to be consistent with legacy JET and so that we're hiding the dropdown\n // on the same event where focus will transfer\n useOutsideMousedown({\n isDisabled: !isOpen,\n ref: [anchorRef, dropdownRef],\n handler: handleAutoDismiss\n });\n\n // TODO: get dropdown y (mainAxis) offset from --oj-c-PRIVATE-DO-NOT-USE-private-core-global-dropdown-offset\n const offsetValue = { mainAxis: 4, crossAxis: 0 };\n\n const inlineStyle = isOpen\n ? {\n minWidth: `${anchorRef.current?.offsetWidth}px`\n }\n : {};\n\n if (prevIsOpen !== isOpen) {\n setPrevIsOpen(isOpen);\n }\n\n return !isOpen ? null : (\n <Layer logicalParentRef={anchorRef}>\n <Floating\n anchorRef={anchorRef}\n sizeOptions={{\n isMaxHeightAdjusted: true,\n maxHeightCeiling: 400\n }}\n ref={dropdownRef}\n placement={placement}\n offsetValue={offsetValue}\n onPosition={handlePosition}>\n <div\n class={dropdownStyles.base}\n id={id}\n style={inlineStyle}\n onKeyDown={handleKeyDown}\n onMouseDown={preventDefaultForCurrentTarget}>\n {children}\n </div>\n </Floating>\n </Layer>\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 { useCallback } from 'preact/hooks';\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { DropdownArrowIcon } from '../PRIVATE_ThemedIcons/DropdownArrowIcon';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport { ButtonLabelLayoutRedwoodTheme } from '#UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme';\nimport type { ButtonLabelLayoutVariantOptions } from '#UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport { BaseButtonRedwoodTheme } from '#UNSAFE_BaseButton/themes/redwood/BaseButtonTheme';\n\ntype Props = TestIdProps & {\n isDisabled?: boolean;\n onClick?: () => void;\n};\n\nconst noop = () => {};\n\nexport function DropdownArrow({ isDisabled = false, onClick, testId }: Props) {\n const { classes } = useComponentTheme<ButtonLabelLayoutVariantOptions>(\n ButtonLabelLayoutRedwoodTheme,\n { size: 'sm' }\n );\n const { baseTheme } = useComponentTheme(BaseButtonRedwoodTheme);\n\n const preventDefault = useCallback((event: Event) => {\n event.preventDefault();\n }, []);\n const { pressProps } = usePress(onClick ?? noop, { isDisabled });\n\n // TODO: JET-67410 replace this with a icon button\n const styleClasses = classNames([\n classes,\n baseTheme,\n dropdownStyles.arrow.base,\n isDisabled ? dropdownStyles.arrow.disabled : dropdownStyles.arrow.enabled\n ]);\n\n const testIdProps = useTestId(testId);\n\n return (\n <span\n aria-hidden=\"true\"\n class={styleClasses}\n tabIndex={-1}\n onMouseDown={preventDefault}\n {...testIdProps}\n {...pressProps}>\n <DropdownArrowIcon />\n </span>\n );\n}\n","import { ComponentChildren } from 'preact';\nimport { Flex } from '../UNSAFE_Flex';\nimport { Layer } from '../UNSAFE_Layer';\nimport { WindowOverlay } from '../UNSAFE_WindowOverlay';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { mobileDropdownStyles } from './themes/mobileDropdownStyles.css';\n\ntype Props = {\n /**\n * Id of the label to associate with the dropdown (e.g. the label of the filter field).\n */\n 'aria-labelledby'?: HTMLAttributesSignalExcluded['aria-labelledby'];\n\n /**\n * The dropdown content\n */\n children?: ComponentChildren;\n\n /**\n * The id for the top level element\n */\n id?: string;\n\n /**\n * Specifies whether the dropdown is being shown\n */\n isOpen?: boolean;\n};\n\nexport function MobileDropdown({ 'aria-labelledby': ariaLabelledBy, children, id, isOpen }: Props) {\n return !isOpen ? null : (\n <Layer>\n <WindowOverlay>\n <div\n id={id}\n class={mobileDropdownStyles.base}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={ariaLabelledBy}>\n <Flex width=\"100%\" height=\"100%\" maxHeight=\"100%\" direction=\"column\">\n {children}\n </Flex>\n </div>\n </WindowOverlay>\n </Layer>\n );\n}\n","import { Ref } from 'preact';\nimport { forwardRef } from 'preact/compat';\nimport {\n AriaAttributesSignalExcluded,\n HTMLAttributesSignalExcluded\n} from '../utils/UNSAFE_attributeUtils';\nimport { TextProps, textInterpolations } from '../utils/UNSAFE_interpolations/text';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { TextFieldInputVariantOptions } from '../UNSAFE_TextField/themes/TextFieldInputStyles.css';\nimport { useFormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { selectMobileFieldInputStyles } from './themes/SelectMobileFieldInputStyles.css';\nimport { isInputPlaceholderShown } from '../UNSAFE_TextField/TextFieldUtils';\nimport { useTabbableMode } from '../hooks/UNSAFE_useTabbableMode';\nimport { Text } from '../UNSAFE_Text';\nimport { useAccessibleContext } from '../hooks/UNSAFE_useAccessibleContext';\nimport { merge } from '../utils/UNSAFE_stringUtils';\nimport { TextFieldInputRedwoodTheme } from '../UNSAFE_TextField/themes/redwood/TextFieldInputTheme';\n\ntype AriaProps = Pick<\n AriaAttributesSignalExcluded,\n | 'aria-controls'\n | 'aria-describedby'\n | 'aria-expanded'\n | 'aria-invalid'\n | 'aria-label'\n | 'aria-labelledby'\n>;\n\ntype EventProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'onBlur' | 'onFocus'>;\n\ntype Props = AriaProps &\n EventProps &\n TextProps & {\n displayValue?: string;\n hasEmptyLabel?: boolean;\n hasInsideLabel?: boolean;\n isRequired?: boolean;\n placeholder?: string;\n variant?: 'default' | 'embedded';\n };\n\nconst interpolations = [...Object.values(textInterpolations)];\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\n/**\n * This component is used for rendering the main field in mobile phones. This is a bit different from the\n * normal main field (TextFieldInput) that we use for desktop & tablet devices in the way that\n * a user will not be able to edit the value of this field. But, one can still have other functionalities\n * of having a placeholder, tab in & out of it, and other such functionalities of an enabled field.\n *\n * This also differs from ReadonlyTextFieldInput in the following ways:\n * 1. This will be rendered as div as well, but has a role of combobox set on it\n * 2. This will not be read as readonly input by the screen readers\n * 3. This has the stylings much similar to the TextFieldInput component\n * 4. This supports the use of placeholder and shows it when there is no value present\n * 5. This supports having the variant property and styles accordingly\n *\n * As such, this is very similar to the TextFieldInput except that this does not allow user input.\n * Note: we cannot use TextFieldInput with readonly set on it; even though it might provide us the\n * behavior we need, it will make the field as readonly and screen readers read the same about this\n * field. This will be an incorrect representation contextually as one can still edit the value by opening\n * the dropdown and changing the selection.\n */\nexport const SelectMobileFieldInput = forwardRef(\n (\n {\n 'aria-controls': ariaControls,\n 'aria-describedby': ariaDescribedBy,\n 'aria-expanded': ariaExpanded,\n 'aria-invalid': ariaInvalid,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n displayValue,\n hasEmptyLabel,\n hasInsideLabel = false,\n isRequired,\n onBlur,\n onFocus,\n placeholder,\n textAlign,\n variant = 'default'\n }: Props,\n ref?: Ref<HTMLDivElement>\n ) => {\n // consume required contexts\n const { isDisabled, isFocused, hasValue = false } = useFormFieldContext();\n const { isTabbable, tabbableModeProps } = useTabbableMode();\n\n // setup properties\n const myPlaceholder = isInputPlaceholderShown(hasInsideLabel, hasValue, isFocused)\n ? placeholder\n : undefined;\n\n // Add unsafe API for specifying an external label which is added to ariaLabelledBy on the input,\n // only when labelEdge is 'none' and label is ''. Since ariaLabelledBy takes precedence over all other\n // kinds of labels, this helps to ensure we don't override a meaningful label.\n const { UNSAFE_ariaLabelledBy } = useAccessibleContext();\n const mergedAriaLabelledBy = hasEmptyLabel\n ? merge([ariaLabelledBy, UNSAFE_ariaLabelledBy])\n : ariaLabelledBy;\n\n // setup style classes\n const { class: styleInterpolationClasses } = styleInterpolations({ textAlign });\n const { classes: themeClasses } = useComponentTheme<TextFieldInputVariantOptions>(\n TextFieldInputRedwoodTheme,\n {\n type: 'notPassword',\n styleVariant: variant,\n textarea: 'notTextArea',\n input: 'isInput',\n prefix: 'noPrefix',\n suffix: 'noSuffix',\n startContent: 'noStartContent',\n endContent: 'hasEndContent',\n insideLabel: hasInsideLabel ? 'hasInsideLabel' : 'noInsideLabel',\n value: hasValue ? 'hasValue' : 'noValue',\n focused: isFocused ? 'isFocused' : 'notFocused',\n disabled: isDisabled ? 'isDisabled' : 'notDisabled'\n }\n );\n const rootDivStyleClasses = classNames([\n selectMobileFieldInputStyles.base,\n styleInterpolationClasses,\n themeClasses\n ]);\n\n return (\n <div\n aria-autocomplete=\"list\"\n aria-controls={ariaControls}\n aria-describedby={ariaDescribedBy}\n aria-expanded={ariaExpanded}\n aria-invalid={ariaInvalid}\n aria-label={ariaLabel}\n aria-labelledby={mergedAriaLabelledBy}\n aria-required={isRequired ? 'true' : undefined}\n class={rootDivStyleClasses}\n onBlur={onBlur}\n onFocus={onFocus}\n ref={ref}\n role=\"combobox\"\n {...(isTabbable && tabbableModeProps)}>\n <div class={selectMobileFieldInputStyles.content}>\n <Text variant={displayValue ? 'inherit' : 'secondary'}>\n {displayValue || myPlaceholder}\n </Text>\n </div>\n </div>\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 { ComponentChildren } from 'preact';\nimport { CollectionInteractionContext } from '../hooks/UNSAFE_useCollectionInteractionContext';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { preventDefaultForCurrentTarget } from './eventUtils';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n\ntype Props = {\n children?: ComponentChildren;\n hasTopGap?: boolean;\n hasBottomGap?: boolean;\n isLoading?: boolean;\n};\n\nexport function DropdownList({\n children,\n hasTopGap = true,\n hasBottomGap = true,\n isLoading = false\n}: Props) {\n const styleClasses = classNames([\n dropdownStyles.list.base,\n hasTopGap && dropdownStyles.list.topGap,\n hasBottomGap && dropdownStyles.list.bottomGap,\n isLoading && dropdownStyles.list.loading\n ]);\n return (\n <CollectionInteractionContext.Provider value={'embedded'}>\n <div class={styleClasses} onMouseDown={preventDefaultForCurrentTarget}>\n {children}\n </div>\n </CollectionInteractionContext.Provider>\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 } from 'preact';\nimport { useCallback } from 'preact/hooks';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n\ntype InlineUserAssistanceProps = Pick<\n ComponentProps<typeof InlineUserAssistance>,\n | 'assistiveText'\n | 'fieldLabel'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'id'\n | 'userAssistanceDensity'\n>;\n\nexport function DropdownUserAssistance(props: InlineUserAssistanceProps) {\n // Prevent the focus from transferring when the user clicks on an empty/non-clickable area\n // of the user assistance\n const handleMouseDown = useCallback((event: MouseEvent) => {\n // Don't call preventDefault when the user clicks on the help source link, so that the\n // focus is allowed to transfer in that case.\n if ((event.target as Element)?.tagName !== 'A') {\n event.preventDefault();\n }\n }, []);\n\n return (\n <FormFieldContext.Provider value={{ isFocused: true }}>\n <div class={dropdownStyles.userAssistance} onMouseDown={handleMouseDown}>\n <InlineUserAssistance {...props} />\n </div>\n </FormFieldContext.Provider>\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 { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\nimport { preventDefaultForCurrentTarget } from './eventUtils';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n\nexport function EmptyResults() {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n // call preventDefault for mousedown on this div so that focus does not transfer from\n // the input\n return (\n <div class={dropdownStyles.results.extraItem} onMouseDown={preventDefaultForCurrentTarget}>\n {translations.select_noMatchesFound()}\n </div>\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 { useCallback } from 'preact/hooks';\nimport { Link } from '#UNSAFE_Link';\nimport { useFocusWithin } from '#hooks/UNSAFE_useFocusWithin';\nimport { useHover } from '#hooks/UNSAFE_useHover';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n\ntype Props = {\n /**\n * Child content of the item.\n */\n children: string;\n /**\n * Specifies whether to highlight the item.\n */\n isHighlighted?: boolean;\n /**\n * Callback invoked when the user triggers the link, for example by clicking or pressing Enter.\n */\n onAction?: () => void;\n};\n\n/**\n * This component renders a link that looks like a list item in a Select* component dropdown.\n * It fires an action when the user triggers it, and is intended to be used for launching\n * external application UI from within the dropdown, for example to provide advanced search or\n * add to list functionality.\n * The LinkItem would typically be shown in a fixed position above or below the list itself.\n */\nconst LinkItem = ({ children, isHighlighted, onAction }: Props) => {\n const { isHover, hoverProps } = useHover();\n const { isFocused, focusProps } = useFocusWithin();\n\n const handleClick = useCallback(\n (e: Event) => {\n // prevent the link from actually navigating by preventing default and returning false\n e.preventDefault();\n onAction?.();\n return false;\n },\n [onAction]\n );\n\n const rootClasses = classNames([isFocused ? dropdownStyles.results.linkItemFocus : undefined]);\n\n const linkClasses = classNames([\n dropdownStyles.results.extraItem,\n isHover || isFocused || isHighlighted ? dropdownStyles.results.linkItemHighlight : undefined\n ]);\n\n return (\n <div class={rootClasses} {...focusProps}>\n <Link href=\"#\" onClick={handleClick}>\n <div class={linkClasses} {...hoverProps}>\n {children}\n </div>\n </Link>\n </div>\n );\n};\n\nexport { LinkItem };\n","import { ComponentChildren, ComponentProps } from 'preact';\nimport { Separator } from '../UNSAFE_Separator';\nimport { MobileDropdown } from './MobileDropdown';\nimport { selectMobileDropdownStyles } from './themes/selectMobileDropdownStyles.css';\n\ntype MobileDropdownProps = ComponentProps<typeof MobileDropdown>;\ntype PassThroughMobileDropdownProps = Pick<MobileDropdownProps, 'id' | 'isOpen'>;\n\ntype Props = PassThroughMobileDropdownProps & {\n /**\n * The main dropdown content\n */\n children?: ComponentChildren;\n\n /**\n * The components to be placed in the end of the dropdown\n */\n footer?: ComponentChildren;\n\n /**\n * The components to be placed in the beginning of the dropdown\n */\n header?: ComponentChildren;\n\n /**\n * Specifies whether to have a separator between header and content\n */\n hasHeaderSeparator?: boolean;\n\n /**\n * Id of the label for the filter field.\n */\n labelId?: string;\n};\n\nexport function SelectMobileDropdown({\n children,\n footer,\n hasHeaderSeparator = true,\n header,\n id,\n isOpen,\n labelId\n}: Props) {\n return (\n <MobileDropdown id={id} isOpen={isOpen} aria-labelledby={labelId}>\n {header}\n {hasHeaderSeparator && <Separator />}\n {/* TODO: Add overflow support to View and use it here */}\n {/* */}\n <div class={selectMobileDropdownStyles.content}>{children}</div>\n <Separator />\n {footer}\n </MobileDropdown>\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 { DataState } from '#UNSAFE_Collection';\nimport { getClientHints } from '#utils/PRIVATE_clientHints';\nimport type { Item } from '#utils/UNSAFE_dataProvider';\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 */\nexport function isMobile() {\n const deviceType = getClientHints().deviceType;\n return deviceType === 'phone' || deviceType === 'tablet';\n}\n\n/**\n * Helper function to determine whether the current device is a phone\n * @returns true if running on a phone, false otherwise\n */\nexport function isPhone() {\n return getClientHints().deviceType === 'phone';\n}\n\n/**\n * Helper function to determine whether the current device is a tablet\n * @returns true if running on a tablet, false otherwise\n */\nexport function isTablet() {\n return getClientHints().deviceType === 'tablet';\n}\n\nexport function isBeforeDataFetch<K, D>(data: DataState<K, D>) {\n return data.sizePrecision === 'atLeast' && data.totalSize === 0;\n}\n\nexport function isSearchTextEmptyOrUndefined(searchText?: string) {\n return searchText === undefined || searchText.length === 0;\n}\n\n/**\n * Extract keys from a value items array.\n *\n * @param valueItems The value items from which the keys are to be extracted\n * @returns The set of keys\n */\nexport function createKeysFromValueItems<K, D>(valueItems?: Item<K, D>[]) {\n const keys = valueItems?.reduce((accumKeys, currentItem) => {\n accumKeys.add(currentItem.key);\n return accumKeys;\n }, new Set<K>());\n return keys;\n}\n","import type { DataState } from '#UNSAFE_Collection';\nimport type { Item } from '#utils/UNSAFE_dataProvider';\nimport { useMemo } from 'preact/compat';\n\ntype Key = string | number;\ntype Data = Record<string, any>;\n\ntype UseCollectionRendererCommonParams<K> = {\n currentKey?: K;\n searchText?: string;\n selectedKeys?: Set<K>;\n onCurrentKeyChange: (detail: { value?: K }) => void;\n};\n\nexport type UseCollectionRendererSelectSingleParams<K, D> = UseCollectionRendererCommonParams<K> & {\n onItemAction: (detail: { context: Item<K, D> }) => void;\n onSelectedKeysChange?: never;\n selectedOnlyData?: never;\n};\n\nexport type UseCollectionRendererSelectMultipleParams<K, D> =\n UseCollectionRendererCommonParams<K> & {\n onItemAction?: never;\n onSelectedKeysChange: (detail: { value: Set<K> }) => void;\n selectedOnlyData?: DataState<K, D>;\n };\n\ntype UseCollectionRendererParams<K, D> =\n | UseCollectionRendererSelectSingleParams<K, D>\n | UseCollectionRendererSelectMultipleParams<K, D>;\n\ntype CommonCollectionRendererContext<K extends Key> = {\n searchText?: string;\n currentRowKeyOverride?: K;\n onPersistCurrentRowKey: (detail: { value?: K }) => void;\n selected?: Set<K>;\n};\n\nexport type SelectSingleCollectionRendererContext<\n K extends Key,\n D extends Data\n> = CommonCollectionRendererContext<K> & {\n onRowAction: (detail: { context: Item<K, D> }) => void;\n};\n\nexport type SelectMultipleCollectionRendererContext<\n K extends Key,\n D extends Data\n> = CommonCollectionRendererContext<K> & {\n onSelectedChange: (detail: { value: Set<K> }) => void;\n selectedOnlyData?: DataState<K, D>;\n};\n\ntype CollectionRendererContext<K extends Key, D extends Data> =\n | SelectSingleCollectionRendererContext<K, D>\n | SelectMultipleCollectionRendererContext<K, D>;\n\n// NOTE: We will using a single hook that constructs the collection renderer context for both select single and\n// select multiple. This is ok as they both share most of the properties and differ only in a few areas. So, we will\n// be using function overloading to determine which component is calling the hook (based on the args) and return the\n// correct context.\n\n/**\n * A custom hook that constructs the context for SelectSingle's collectionRenderer.\n * @param params Parameters for constructing the collection renderer context\n * @returns the CollectionRendererContext object\n */\nexport function useCollectionRenderer<K extends Key, D extends Data>(\n params: UseCollectionRendererSelectSingleParams<K, D>\n): SelectSingleCollectionRendererContext<K, D>;\n\n/**\n * A custom hook that constructs the context for SelectMultiple's collectionRenderer.\n * @param params Parameters for constructing the collection renderer context\n * @returns the CollectionRendererContext object\n */\nexport function useCollectionRenderer<K extends Key, D extends Data>(\n params: UseCollectionRendererSelectMultipleParams<K, D>\n): SelectMultipleCollectionRendererContext<K, D>;\n\n/**\n * A custom hook that constructs the context for SelectSingle/SelectMultiple's collectionRenderer.\n * @param param0 Parameters for constructing the collection renderer context\n * @returns the CollectionRendererContext object\n */\nexport function useCollectionRenderer<K extends Key, D extends Data>({\n currentKey,\n onCurrentKeyChange,\n onItemAction,\n onSelectedKeysChange,\n searchText,\n selectedKeys,\n selectedOnlyData\n}: UseCollectionRendererParams<K, D>) {\n return useMemo<CollectionRendererContext<K, D>>(() => {\n const common = {\n searchText,\n currentRowKeyOverride: currentKey,\n onPersistCurrentRowKey: onCurrentKeyChange,\n selected: selectedKeys\n } satisfies CommonCollectionRendererContext<K>;\n\n // If onItemAction is present, then we are constructing context for SelectSingle. So,\n // return the context satisfying SelectSingleCollectionRendererContext type.\n if (onItemAction !== undefined)\n return {\n ...common,\n onRowAction: onItemAction\n } satisfies SelectSingleCollectionRendererContext<K, D>;\n\n // If onItemAction is not present, then we are constructing context for SelectMultiple. So,\n // return the context satisfying SelectMultipleCollectionRendererContext type.\n return {\n ...common,\n onSelectedChange: onSelectedKeysChange,\n selectedOnlyData\n } satisfies SelectMultipleCollectionRendererContext<K, D>;\n }, [\n currentKey,\n onCurrentKeyChange,\n onItemAction,\n onSelectedKeysChange,\n searchText,\n selectedKeys,\n selectedOnlyData\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 { DataState } from '#UNSAFE_Collection';\nimport type { PositionData } from '#UNSAFE_Floating';\nimport { KEYS, isControlOrFunctionKey } from '#utils/PRIVATE_keyboardUtils';\nimport { allTabbableElements } from '#utils/PRIVATE_tabbableUtils';\nimport type { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport type { RefObject } from 'preact';\nimport { useCallback, useEffect, useRef, useState } from 'preact/hooks';\nimport { isSimpleClick } from './eventUtils';\n\ntype UseSelectCommonProps<K, D> = {\n data?: DataState<K, D> | null;\n inputRef: RefObject<HTMLElement>;\n isFocused?: boolean;\n onFilter?: ({ searchText }: { searchText?: string }) => void;\n};\n\nexport type CurrentKeyDetail<K> = {\n value?: K;\n};\n\n/**\n * Hook that manages state and behavior for a Select* component. This hook creates state\n * variables and event listeners, returning properties to apply to components internally\n * rendered by a Select* component, as well as state information.\n *\n * @param data Specifies data for the dropdown list.\n * @param inputRef Ref to the input element.\n * @param isFocused Specifies whether the component has focus.\n * @param onFilter Callback function to trigger loading data for the dropdown list,\n * which may or may not be filtered by user entered text.\n *\n * @returns Component state and event listeners.\n */\nexport function useSelectCommon<K, D>({\n data,\n inputRef,\n isFocused,\n onFilter\n}: UseSelectCommonProps<K, D>) {\n const mainFieldRef = useRef<HTMLDivElement>(null);\n const dropdownRef = useRef<HTMLDivElement>(null);\n const [isDropdownOpen, setDropdownOpen] = useState(false);\n const [isDropdownAbove, setDropdownAbove] = useState(false);\n\n // We only need to push currentRow when we need to override the\n // current row, like when the dropdown is opened and we want to set the initial\n // focused row or when filtering and we want to focus the first row.\n const [currentRowOverride, _setCurrentRowOverride] = useState<{ rowKey?: K }>({\n rowKey: undefined\n });\n // We still need information on what the current row actually is, but we do not need\n // to react to it until certain scenarios like pressing Tab from the dropdown. So, we\n // just store this in a ref.\n const currentRowKeyRef = useRef<K>();\n // When we want to update the currentRowOverride, we also want to keep the currentRowKeyRef\n // in sync as the collection will not call onChanged for this change.\n const setCurrentRowOverride = useCallback((currentRow: { rowKey?: K }) => {\n currentRowKeyRef.current = currentRow.rowKey;\n _setCurrentRowOverride(currentRow);\n }, []);\n const [isUserFiltering, setUserFiltering] = useState(false);\n const [userInput, setUserInput] = useState<string>();\n const [searchText, setSearchText] = useState<string>();\n\n const [prevIsDropdownOpen, setPrevIsDropdownOpen] = useState(isDropdownOpen);\n const [prevIsFocused, setPrevIsFocused] = useState(isFocused);\n const [prevIsUserFiltering, setPrevIsUserFiltering] = useState(isUserFiltering);\n\n const onMouseDown = useCallback(\n (event: MouseEvent) => {\n // const target = event.target as HTMLElement;\n if (event.defaultPrevented || !isSimpleClick(event)) {\n return;\n }\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n }\n // this is needed to focus the input when clicking on the inside label when there is no\n // value; otherwise the component looks focused but doesn't actually have physical focus\n setTimeout(function () {\n inputRef.current?.focus();\n }, 0);\n },\n [inputRef, isDropdownOpen]\n );\n\n const handleDropdownArrowClick = useCallback(() => {\n setDropdownOpen(!isDropdownOpen);\n\n // focus the input so that if the user Tabs afterwards, it loses focus and the dropdown closes\n inputRef.current?.focus();\n }, [inputRef, isDropdownOpen]);\n\n const handleDropdownAutoDismiss = useCallback(\n (event?: Event) => {\n if (isDropdownOpen) {\n setDropdownOpen(false);\n\n switch (event?.type) {\n case 'keydown':\n const keyboardEvent = event as KeyboardEvent;\n switch (keyboardEvent.code) {\n case KEYS.ESC:\n // focus the input when the user cancels out of the dropdown\n inputRef.current?.focus();\n break;\n default:\n break;\n }\n break;\n case 'mousedown':\n // if focus is in the dropdown, focus the input before the dropdown is hidden so that\n // focus will transfer correctly when the target is not focusable;\n // otherwise the text cursor appears in the input again\n if (dropdownRef.current?.contains(document.activeElement)) {\n inputRef.current?.focus();\n }\n break;\n default:\n break;\n }\n }\n },\n [inputRef, isDropdownOpen]\n );\n\n const handleDropdownPosition = useCallback((data: PositionData) => {\n setDropdownAbove(data.placement.startsWith('top'));\n }, []);\n\n const getDropdownTabbableElems = useCallback(() => {\n return isDropdownOpen && dropdownRef.current\n ? allTabbableElements(dropdownRef.current)\n : undefined;\n }, [isDropdownOpen]);\n\n const handleUpDownArrowKeys = useCallback(\n (event: KeyboardEvent) => {\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n } else {\n // JET-64909 - focus / 'current' dropped when arrow keying during loading\n // Transfer physical focus into the dropdown only if the data is present and the dropdown\n // has rendered the data. Otherwise, keep the focus in the field.\n if (data != null) {\n const tabbableElems = getDropdownTabbableElems();\n tabbableElems?.[0]?.focus();\n\n // if there is no current item set, make the first item current\n if (currentRowOverride.rowKey === undefined) {\n setCurrentRowOverride({ rowKey: data.data[0]?.metadata?.key });\n }\n }\n }\n\n // prevent the page from scrolling\n event.preventDefault();\n },\n [currentRowOverride, data, getDropdownTabbableElems, isDropdownOpen, setCurrentRowOverride]\n );\n\n const handleMainFieldKeyDown = useCallback(\n (event: KeyboardEvent) => {\n // const target = event.target as HTMLElement;\n // ignore control key and function key\n if (isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.PAGE_UP:\n case KEYS.PAGE_DOWN:\n // prevent the page from scrolling\n event.preventDefault();\n\n return;\n\n case KEYS.UP:\n case KEYS.DOWN:\n // prevent the page from scrolling\n event.preventDefault();\n break;\n\n case KEYS.ESC:\n if (isDropdownOpen) {\n setDropdownOpen(false);\n\n event.preventDefault();\n\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to stop editing the row when we close\n // the dropdown\n event.stopPropagation();\n }\n break;\n\n default:\n break;\n }\n },\n [isDropdownOpen]\n );\n\n const handleMainFieldKeyUp = useCallback(\n (event: KeyboardEvent) => {\n // ignore control key and function key\n if (isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.UP:\n case KEYS.DOWN:\n handleUpDownArrowKeys(event);\n break;\n\n default:\n break;\n }\n },\n [handleUpDownArrowKeys]\n );\n\n const handleInput = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n }\n setUserFiltering(true);\n setUserInput(detail.value);\n const str = detail.value;\n setSearchText(str);\n onFilter?.({ searchText: str });\n },\n [isDropdownOpen, onFilter]\n );\n\n const onCurrentKeyChange = useCallback((detail: CurrentKeyDetail<K>) => {\n // when the collection changes the current key, we only want to store the information\n // and not do anything.\n currentRowKeyRef.current = detail.value;\n }, []);\n\n const stopFiltering = useCallback(() => {\n setUserFiltering(false);\n setUserInput('');\n setSearchText('');\n }, []);\n\n // the user is not actively filtering if the dropdown is closed and the component doesn't\n // have focus\n if (\n prevIsDropdownOpen !== isDropdownOpen ||\n prevIsFocused !== isFocused ||\n prevIsUserFiltering !== isUserFiltering\n ) {\n if (!isDropdownOpen && !isFocused && isUserFiltering) {\n stopFiltering();\n }\n }\n\n // need to call onFilter with undefined searchText when the dropdown opens and the\n // user is NOT filtering\n useEffect(() => {\n if (isDropdownOpen && !isUserFiltering) {\n onFilter?.({ searchText: undefined });\n }\n }, [isDropdownOpen, isUserFiltering, onFilter]);\n\n // when the dropdown closes, reset the isDropdownAbove flag\n if (prevIsDropdownOpen !== isDropdownOpen) {\n if (!isDropdownOpen) {\n setDropdownAbove(false);\n }\n setPrevIsDropdownOpen(isDropdownOpen);\n }\n\n if (prevIsFocused !== isFocused) {\n setPrevIsFocused(isFocused);\n }\n if (prevIsUserFiltering !== isUserFiltering) {\n setPrevIsUserFiltering(isUserFiltering);\n }\n\n return {\n currentRowKeyRef,\n currentRowOverride,\n dropdownRef,\n getDropdownTabbableElems,\n handleDropdownArrowClick,\n handleDropdownAutoDismiss,\n handleDropdownPosition,\n handleInput,\n handleMainFieldKeyDown,\n handleMainFieldKeyUp,\n handleUpDownArrowKeys,\n isDropdownAbove,\n isDropdownOpen,\n // the field should remain to look focused while the dropdown is open,\n // in case physical focus is in the dropdown\n isFocused: isFocused || isDropdownOpen,\n isUserFiltering,\n mainFieldRef,\n onCurrentKeyChange,\n onMouseDown,\n searchText,\n setCurrentRowOverride,\n setDropdownOpen,\n setUserInput,\n stopFiltering,\n userInput\n };\n}\n"],"names":["renderItemText","item","itemText","data","hasOwnProperty","retData","String","error","noOp","loadingIndicator","_jsx","jsx","SkeletonContainer","minimumCount","children","Flex","height","align","Skeleton","isSimpleClick","event","button","ctrlKey","preventDefaultForCurrentTarget","currentTarget","target","preventDefault","DEFAULT_PLACEMENT","noop","MobileDropdown","ariaLabelledBy","id","isOpen","Layer","WindowOverlay","class","mobileDropdownStyles","base","role","width","maxHeight","direction","interpolations","Object","values","textInterpolations","styleInterpolations","mergeInterpolations","SelectMobileFieldInput","forwardRef","ariaControls","ariaDescribedBy","ariaExpanded","ariaInvalid","ariaLabel","displayValue","hasEmptyLabel","hasInsideLabel","isRequired","onBlur","onFocus","placeholder","textAlign","variant","ref","isDisabled","isFocused","hasValue","useFormFieldContext","isTabbable","tabbableModeProps","useTabbableMode","myPlaceholder","isInputPlaceholderShown","undefined","UNSAFE_ariaLabelledBy","useAccessibleContext","mergedAriaLabelledBy","merge","styleInterpolationClasses","classes","themeClasses","useComponentTheme","TextFieldInputRedwoodTheme","type","styleVariant","textarea","input","prefix","suffix","startContent","endContent","insideLabel","value","focused","disabled","rootDivStyleClasses","classNames","selectMobileFieldInputStyles","content","Text","currentItemVariant","currentKey","itemRenderer","onCurrentKeyChange","onItemAction","onLoadRange","onSelectionChange","searchText","selectedKeys","selectionMode","listItemRenderer","useCallback","listItemContext","itemRendererProps","index","metadata","selector","itemContext","key","_jsxs","jsxs","dropdownStyles","selectorWrapper","singleSelectItem","multiSelectItem","ListItemText","HighlightText","matchText","keys","useMemo","all","Set","currentItemOverride","rowKey","handleItemAction","context","handleSelectionChange","List","allowTabbableMode","onPersistCurrentItem","anchorRef","dropdownRef","onAutoDismiss","onPosition","placement","setPlacement","useState","prevIsOpen","setPrevIsOpen","handlePosition","positionData","handleAutoDismiss","handleKeyDown","defaultPrevented","isControlOrFunctionKey","code","KEYS","ESC","TAB","useOutsideMousedown","handler","inlineStyle","minWidth","current","offsetWidth","logicalParentRef","Floating","sizeOptions","isMaxHeightAdjusted","maxHeightCeiling","offsetValue","mainAxis","crossAxis","style","onKeyDown","onMouseDown","onClick","testId","ButtonLabelLayoutRedwoodTheme","size","baseTheme","BaseButtonRedwoodTheme","pressProps","usePress","styleClasses","arrow","enabled","testIdProps","useTestId","tabIndex","DropdownArrowIcon","SvgCaretDown","hasTopGap","hasBottomGap","isLoading","list","topGap","bottomGap","loading","CollectionInteractionContext","Provider","props","handleMouseDown","tagName","FormFieldContext","userAssistance","InlineUserAssistance","translations","useTranslationBundle","results","extraItem","select_noMatchesFound","isHighlighted","onAction","isHover","hoverProps","useHover","focusProps","useFocusWithin","handleClick","e","rootClasses","linkItemFocus","linkClasses","linkItemHighlight","Link","href","footer","hasHeaderSeparator","header","labelId","Separator","selectMobileDropdownStyles","valueItems","reduce","accumKeys","currentItem","add","sizePrecision","totalSize","deviceType","getClientHints","length","onSelectedKeysChange","selectedOnlyData","common","currentRowKeyOverride","onPersistCurrentRowKey","selected","onRowAction","onSelectedChange","inputRef","onFilter","mainFieldRef","useRef","isDropdownOpen","setDropdownOpen","isDropdownAbove","setDropdownAbove","currentRowOverride","_setCurrentRowOverride","currentRowKeyRef","setCurrentRowOverride","currentRow","isUserFiltering","setUserFiltering","userInput","setUserInput","setSearchText","prevIsDropdownOpen","setPrevIsDropdownOpen","prevIsFocused","setPrevIsFocused","prevIsUserFiltering","setPrevIsUserFiltering","setTimeout","focus","handleDropdownArrowClick","handleDropdownAutoDismiss","contains","document","activeElement","handleDropdownPosition","startsWith","getDropdownTabbableElems","allTabbableElements","handleUpDownArrowKeys","tabbableElems","handleMainFieldKeyDown","PAGE_UP","PAGE_DOWN","UP","DOWN","stopPropagation","handleMainFieldKeyUp","handleInput","detail","str","stopFiltering","useEffect"],"mappings":"w7FAYgB,SAAAA,GAAqBC,EAAkBC,GAGrD,GAAwB,iBAAbA,EAUX,OAAQA,EAAwCD,GAT9C,GAAKA,EAAKE,MAAcC,eAAeF,GAAW,CAChD,MAAMG,EAAUJ,EAAKE,KAAKD,GAC1B,OAAOI,OAAOD,EACf,CACDE,QAAM,iEAAmEL,EAM7E,CCsCA,MAAMM,GAAO,OA4Gb,MAAMC,GACJC,EAACC,IAAAC,EAAiBA,kBAAC,CAAAC,aAAc,EAC9BC,SAAA,IAEGJ,EAAAA,IAACK,EAAAA,KAAI,CAACC,OAAO,MAAMC,MAAM,SACvBH,SAAAJ,EAAAC,IAACO,EAAQA,SAAC,CAAAF,OAAO,WCjLdG,GAAiBC,GACJ,IAAjBA,EAAMC,SAAiBD,EAAME,QAOzBC,GAAkCH,IACzCA,EAAMI,gBAAkBJ,EAAMK,QAChCL,EAAMM,gBACP,ECmBGC,GAAoB,eCN1B,MAAMC,GAAO,OCKG,SAAAC,IAAiB,kBAAmBC,EAAchB,SAAEA,EAAQiB,GAAEA,EAAEC,OAAEA,IAChF,OAAQA,EACNtB,EAACC,IAAAsB,EAAKA,MACJ,CAAAnB,SAAAJ,MAACwB,GAAAA,cAAa,CAAApB,SACZJ,EAAAA,IACE,MAAA,CAAAqB,GAAIA,EACJI,MAAOC,GAAAA,qBAAqBC,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zC,GACHC,GAAgB,GAElBS,GAAiB,GACjBE,EAAa6B,EAAO5M,OACpB,MAAM6M,EAAMD,EAAO5M,MACnBgL,EAAc6B,GACd7C,IAAW,CAAEjJ,WAAY8L,GAAM,GAEjC,CAAC1C,EAAgBH,IAGbrJ,EAAqBQ,eAAayL,IAGtCnC,EAAiBlG,QAAUqI,EAAO5M,KAAK,GACtC,IAEG8M,EAAgB3L,EAAAA,aAAY,KAChC0J,GAAiB,GACjBE,EAAa,IACbC,EAAc,GAAG,GAChB,IAqCH,OAhCEC,IAAuBd,GACvBgB,IAAkB9M,GAClBgN,IAAwBT,GAEnBT,GAAmB9L,IAAauM,GACnCkC,IAMJC,EAAAA,WAAU,KACJ5C,IAAmBS,GACrBZ,IAAW,CAAEjJ,gBAAYlC,GAC1B,GACA,CAACsL,EAAgBS,EAAiBZ,IAGjCiB,IAAuBd,IACpBA,GACHG,GAAiB,GAEnBY,EAAsBf,IAGpBgB,IAAkB9M,GACpB+M,EAAiB/M,GAEfgN,IAAwBT,GAC1BU,EAAuBV,GAGlB,CACLH,mBACAF,qBACAtH,cACA+I,2BACAP,2BACAC,4BACAI,yBACAa,cACAP,yBACAM,uBACAR,wBACA7B,kBACAF,iBAGA9L,UAAWA,GAAa8L,EACxBS,kBACAX,eACAtJ,qBACAwE,cACApE,aACA2J,wBACAN,kBACAW,eACA+B,gBACAhC,YAEJ"}
@@ -6,7 +6,7 @@ var BarGroup = require('./BarGroup-4a24a995.js');
6
6
  var useUser = require('./useUser-a4bfc560.js');
7
7
  var layoutUtils = require('./layoutUtils-a8eb2cca.js');
8
8
  var dataStyleUtils = require('./dataStyleUtils-7c8f7496.js');
9
- var Chart = require('./Chart-40d95d14.js');
9
+ var Chart = require('./Chart-fbbd3329.js');
10
10
 
11
11
  /**
12
12
  * @license
@@ -178,4 +178,4 @@ function BarChart({ width, height, selectedIds = [], hiddenIds = [], highlighted
178
178
  }
179
179
 
180
180
  exports.BarChart = BarChart;
181
- //# sourceMappingURL=BarChart-93a3813c.js.map
181
+ //# sourceMappingURL=BarChart-ca7f8ed5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BarChart-93a3813c.js","sources":["../../src/UNSAFE_BarChart/utils/barNavUtils.ts","../../src/UNSAFE_BarChart/OverviewBarChart.tsx","../../src/UNSAFE_BarChart/BarChart.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 { Info, ItemInfo } from '#utils/UNSAFE_visTypes/chart';\nimport {\n getNextItemInGroup,\n getNextItemInSeries,\n getPrevItemInGroup,\n getPrevItemInSeries\n} from '#utils/PRIVATE_chartUtils/navUtils';\nimport { BarItemData } from '#UNSAFE_BarChart/barChart.types';\n\ntype isItemNavigableType = (seriesIndex: number, groupIndex: number) => boolean;\n\n/**\n * Get next item in unstacked bar chart.\n * @param info\n * @param viewportEndIndex\n * @param numSeries\n * @param isNavigable\n * @returns\n */\nexport function getNextItem(\n info: ItemInfo,\n viewportEndIndex: number,\n numSeries: number,\n isNavigable: isItemNavigableType\n): ItemInfo {\n const nextItemInGroup = getNextItemInGroup(info, numSeries, isNavigable);\n if (nextItemInGroup) return nextItemInGroup;\n\n if (info.groupIndex < viewportEndIndex) {\n let nextItem = { seriesIndex: 0, groupIndex: info.groupIndex + 1 };\n if (isNavigable(nextItem.seriesIndex, nextItem.groupIndex)) return nextItem;\n nextItem = getNextItem(nextItem, viewportEndIndex, numSeries, isNavigable);\n if (nextItem) return nextItem;\n }\n return info;\n}\n\n/**\n * Get prev item in unstacked bar chart.\n * @param info\n * @param viewportStartIndex\n * @param numSeries\n * @param isNavigable\n * @returns\n */\nexport function getPreviousItem(\n info: ItemInfo,\n viewportStartIndex: number,\n numSeries: number,\n isNavigable: (seriesIndex: number, groupIndex: number) => boolean\n) {\n const prevItemInGroup = getPrevItemInGroup(info, isNavigable);\n if (prevItemInGroup) return prevItemInGroup;\n\n if (info.groupIndex > viewportStartIndex) {\n let prevItem = { groupIndex: info.groupIndex - 1, seriesIndex: numSeries - 1 };\n if (isNavigable(prevItem.seriesIndex, prevItem.groupIndex)) return prevItem;\n prevItem = getPreviousItem(prevItem, viewportStartIndex, numSeries, isNavigable);\n if (prevItem) return prevItem;\n }\n return info;\n}\n\nexport function getBarChartNavUtil<K, D extends BarItemData<K>>(\n getDataItem: (seriesIndex: number, groupIndex: number) => D | undefined,\n numSeries: number,\n viewportStartIndex: number,\n viewportEndIndex: number,\n isStacked: boolean,\n isRtl: boolean\n) {\n const isItemNavigable = (seriesIndex: number, groupIndex: number) => {\n const barItem = getDataItem(seriesIndex, groupIndex);\n return Boolean(barItem);\n };\n\n const getNextChartItem = (\n itemInfo: Info,\n arrow: 'ArrowLeft' | 'ArrowRight' | 'ArrowDown' | 'ArrowUp'\n ): Info => {\n if (!isStacked && (arrow === 'ArrowDown' || arrow === 'ArrowUp')) {\n return itemInfo;\n }\n let newInfo: Info | undefined;\n // TODO: this is just to keep typescript happy.\n // figure out consistent typing while doing type cleanup.\n const info = {\n groupIndex: itemInfo.groupIndex!,\n seriesIndex: itemInfo.seriesIndex!\n };\n\n if (info.groupIndex! < viewportStartIndex) {\n info.groupIndex = viewportStartIndex;\n return info;\n } else if (info.groupIndex! > viewportEndIndex) {\n info.groupIndex = viewportEndIndex;\n return info;\n }\n\n if (isStacked) {\n if (arrow === 'ArrowLeft') {\n newInfo = isRtl\n ? getNextItemInSeries(info, viewportEndIndex, isItemNavigable)\n : getPrevItemInSeries(info, viewportStartIndex, isItemNavigable);\n } else if (arrow === 'ArrowRight') {\n newInfo = isRtl\n ? getPrevItemInSeries(info, viewportStartIndex, isItemNavigable)\n : getNextItemInSeries(info, viewportEndIndex, isItemNavigable);\n } else if (arrow === 'ArrowDown') {\n newInfo = getPrevItemInGroup(info, isItemNavigable);\n } else {\n newInfo = getNextItemInGroup(info, numSeries, isItemNavigable);\n }\n } else {\n if (arrow === 'ArrowRight') {\n newInfo = isRtl\n ? getPreviousItem(info, viewportStartIndex, numSeries, isItemNavigable)\n : getNextItem(info, viewportEndIndex, numSeries, isItemNavigable);\n } else if (arrow === 'ArrowLeft') {\n newInfo = isRtl\n ? getNextItem(info, viewportEndIndex, numSeries, isItemNavigable)\n : getPreviousItem(info, viewportStartIndex, numSeries, isItemNavigable);\n }\n }\n return newInfo || info;\n };\n\n return getNextChartItem;\n}\n","import { BarChart } from './BarChart';\nimport { BarChartProps, BarItemData } from './barChart.types';\n\nexport function OverviewBarChart<K extends string | number, D extends BarItemData<K>>(\n props: BarChartProps<K, D>\n) {\n return (\n <BarChart\n datatip={() => ({ content: '' })}\n zoomAndScroll=\"off\"\n plotArea={{\n yMajorTick: {\n isRendered: false\n },\n xMajorTick: {\n \n }\n }}\n xAxis={{\n tickLabel: {\n autoRotate: false,\n // @ts-ignore\n isRendered: props.xAxis?.timeAxisType ? true : false\n }\n }}\n series={props.series}\n groups={props.groups}\n getDataItem={props.getDataItem}\n yAxis={{\n tickLabel: {\n isRendered: false\n }\n }}\n overview=\"off\"\n />\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 { BarChartProps, BarItemData } from './barChart.types';\nimport { getBarGapRatio } from './utils/barSeriesUtils';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport { BarGroup } from './BarGroup';\nimport { findNearestDataPoint } from '#utils/PRIVATE_chartUtils/layoutUtils';\nimport {\n getBarCenterCoordinate,\n getBarPosition,\n getSeriesOffsetAndWidth\n} from './utils/barLayoutUtils';\nimport { getBarChartNavUtil } from './utils/barNavUtils';\nimport { Chart } from '#PRIVATE_Chart';\nimport { TimeAxisProps, Scale } from '#utils/UNSAFE_visTypes/chart';\nimport { getItemColor } from '#utils/PRIVATE_chartUtils/dataStyleUtils';\nimport { OverviewBarChart } from './OverviewBarChart';\n\n/* bar chart start and end axis offset */\nconst AXIS_OFFSET = 0.5;\n\n/**\n * A Bar chart displays information graphically using rectangular bars with heights or lengths proportional to the values that they represent,\n * making relationships among the data easier to understand.\n */\nexport function BarChart<K extends string | number, D extends BarItemData<K>>({\n width,\n height,\n selectedIds = [],\n hiddenIds = [],\n highlightedIds,\n hideAndShowBehavior = 'none',\n orientation = 'vertical',\n yAxis,\n series,\n groups,\n isStacked = false,\n getDataItem,\n selectionMode = 'none',\n drilling = 'off',\n dataItemGaps = 0.5,\n ...props\n}: BarChartProps<K, D>) {\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n const hiddenSet = new Set(hiddenIds);\n const isHoriz = orientation === 'horizontal';\n const timeAxisType = (props.xAxis as TimeAxisProps)?.timeAxisType;\n const selectedSet = new Set(selectedIds);\n const highlightedSet = new Set(highlightedIds);\n const getGapRatio = (startIndex: number, endIndex: number) => {\n return getBarGapRatio(isStacked, startIndex, endIndex);\n };\n const getNextChartItemFunc = (startIndex: number, endIndex: number) => {\n return getBarChartNavUtil(getDataItem, series.length, startIndex, endIndex, isStacked, isRtl);\n };\n const getDataItemPos = (xScale: Scale, yScale: Scale, groupWidth: number, gapRatio: number) => {\n return getBarPosition(\n series,\n groups,\n getDataItem,\n xScale,\n yScale,\n hiddenSet,\n dataItemGaps,\n groupWidth,\n gapRatio,\n yAxis?.scale === 'log',\n isStacked,\n isRtl,\n isHoriz,\n timeAxisType\n );\n };\n\n const findNearest = (xScale: Scale, yScale: Scale, groupWidth: number, gapRatio: number) => {\n const getSeriesDataInfo = getSeriesOffsetAndWidth(\n groupWidth,\n gapRatio,\n series.length,\n dataItemGaps,\n isStacked,\n isRtl\n );\n return findNearestDataPoint(\n series,\n groups,\n xScale,\n yScale,\n getDataItem,\n isStacked,\n getSeriesDataInfo,\n getBarCenterCoordinate,\n yAxis?.scale === 'log',\n dataItemGaps,\n hiddenSet,\n timeAxisType\n );\n };\n\n const getMarkerColorAndType = (seriesIndex: number, groupIndex: number) => {\n return {\n color: getItemColor(seriesIndex, groupIndex, series, getDataItem),\n type: 'circle' as const\n };\n };\n\n return (\n <Chart\n width={width}\n height={height}\n selectedIds={selectedSet}\n hiddenIds={hiddenIds}\n hideAndShowBehavior={hideAndShowBehavior}\n orientation={orientation}\n yAxis={yAxis}\n series={series}\n groups={groups}\n isStacked={isStacked}\n getDataItem={getDataItem}\n selectionMode={selectionMode}\n drilling={drilling}\n renderGridLinesInFront={false}\n findNearest={findNearest}\n getDataItemPos={getDataItemPos}\n getNavUtil={getNextChartItemFunc}\n getGapRatio={getGapRatio}\n getMarkerInfo={getMarkerColorAndType}\n isRtl={isRtl}\n offset={AXIS_OFFSET}\n defaultOverviewContentRenderer={() => {\n return <OverviewBarChart series={series} groups={groups} getDataItem={getDataItem} />;\n }}\n {...props}>\n {({\n xStartIndex,\n xEndIndex,\n xScale,\n yScale,\n gapRatio,\n activeId,\n focusedItemInfo,\n hoveredItemInfo,\n groupWidth,\n isPointInsideMarquee,\n getTextDimensions,\n defaultFontSize,\n colors\n }) => {\n return (\n <>\n {groups.slice(xStartIndex, xEndIndex + 1).map((_, index) => (\n <BarGroup\n yScale={yScale}\n xScale={xScale}\n groupIndex={index + xStartIndex}\n selectedIds={selectedSet}\n hiddenIds={hiddenSet}\n highlightedIds={highlightedIds ? highlightedSet : highlightedIds}\n isDrillEnabled={drilling === 'on'}\n series={series}\n barGapRatio={gapRatio}\n dataItemGaps={dataItemGaps}\n isPointInsideMarquee={isPointInsideMarquee}\n isStacked={isStacked}\n groupWidth={groupWidth}\n group={groups[index]}\n timeAxisType={(props.xAxis as TimeAxisProps)?.timeAxisType}\n colors={colors}\n activeId={activeId}\n isLog={yAxis?.scale === 'log'}\n orientation={orientation}\n getDataItem={getDataItem}\n isSelectionEnabled={selectionMode != 'none'}\n isRtl={isRtl}\n focusedItemInfo={focusedItemInfo}\n hoveredItemInfo={hoveredItemInfo}\n getTextDimensions={getTextDimensions}\n defaultFontSize={defaultFontSize}\n getStackLabel={props.getStackLabel}\n />\n ))}\n </>\n );\n }}\n </Chart>\n );\n}\n"],"names":["getNextItemInGroup","getPrevItemInGroup","getNextItemInSeries","getPrevItemInSeries","_jsx","useUser","getBarGapRatio","getBarPosition","getSeriesOffsetAndWidth","findNearestDataPoint","getBarCenterCoordinate","getItemColor","Chart","_Fragment","BarGroup"],"mappings":";;;;;;;;;;AAAA;;;;;;AAMG;AAaH;;;;;;;AAOG;AACG,SAAU,WAAW,CACzB,IAAc,EACd,gBAAwB,EACxB,SAAiB,EACjB,WAAgC,EAAA;IAEhC,MAAM,eAAe,GAAGA,iCAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AACzE,IAAA,IAAI,eAAe;AAAE,QAAA,OAAO,eAAe,CAAC;AAE5C,IAAA,IAAI,IAAI,CAAC,UAAU,GAAG,gBAAgB,EAAE;AACtC,QAAA,IAAI,QAAQ,GAAG,EAAE,WAAW,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,GAAG,CAAC,EAAE,CAAC;QACnE,IAAI,WAAW,CAAC,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC;AAAE,YAAA,OAAO,QAAQ,CAAC;QAC5E,QAAQ,GAAG,WAAW,CAAC,QAAQ,EAAE,gBAAgB,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AAC3E,QAAA,IAAI,QAAQ;AAAE,YAAA,OAAO,QAAQ,CAAC;KAC/B;AACD,IAAA,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;AAOG;AACG,SAAU,eAAe,CAC7B,IAAc,EACd,kBAA0B,EAC1B,SAAiB,EACjB,WAAiE,EAAA;IAEjE,MAAM,eAAe,GAAGC,iCAAkB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAC9D,IAAA,IAAI,eAAe;AAAE,QAAA,OAAO,eAAe,CAAC;AAE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CAAC,aAAa,EAAA,CAClC,CACH,CAAC,EAAA,CACD,EACH;SACH,EAAA,CACK,EACR;AACJ;;;;"}
1
+ {"version":3,"file":"BarChart-ca7f8ed5.js","sources":["../../src/UNSAFE_BarChart/utils/barNavUtils.ts","../../src/UNSAFE_BarChart/OverviewBarChart.tsx","../../src/UNSAFE_BarChart/BarChart.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 { Info, ItemInfo } from '#utils/UNSAFE_visTypes/chart';\nimport {\n getNextItemInGroup,\n getNextItemInSeries,\n getPrevItemInGroup,\n getPrevItemInSeries\n} from '#utils/PRIVATE_chartUtils/navUtils';\nimport { BarItemData } from '#UNSAFE_BarChart/barChart.types';\n\ntype isItemNavigableType = (seriesIndex: number, groupIndex: number) => boolean;\n\n/**\n * Get next item in unstacked bar chart.\n * @param info\n * @param viewportEndIndex\n * @param numSeries\n * @param isNavigable\n * @returns\n */\nexport function getNextItem(\n info: ItemInfo,\n viewportEndIndex: number,\n numSeries: number,\n isNavigable: isItemNavigableType\n): ItemInfo {\n const nextItemInGroup = getNextItemInGroup(info, numSeries, isNavigable);\n if (nextItemInGroup) return nextItemInGroup;\n\n if (info.groupIndex < viewportEndIndex) {\n let nextItem = { seriesIndex: 0, groupIndex: info.groupIndex + 1 };\n if (isNavigable(nextItem.seriesIndex, nextItem.groupIndex)) return nextItem;\n nextItem = getNextItem(nextItem, viewportEndIndex, numSeries, isNavigable);\n if (nextItem) return nextItem;\n }\n return info;\n}\n\n/**\n * Get prev item in unstacked bar chart.\n * @param info\n * @param viewportStartIndex\n * @param numSeries\n * @param isNavigable\n * @returns\n */\nexport function getPreviousItem(\n info: ItemInfo,\n viewportStartIndex: number,\n numSeries: number,\n isNavigable: (seriesIndex: number, groupIndex: number) => boolean\n) {\n const prevItemInGroup = getPrevItemInGroup(info, isNavigable);\n if (prevItemInGroup) return prevItemInGroup;\n\n if (info.groupIndex > viewportStartIndex) {\n let prevItem = { groupIndex: info.groupIndex - 1, seriesIndex: numSeries - 1 };\n if (isNavigable(prevItem.seriesIndex, prevItem.groupIndex)) return prevItem;\n prevItem = getPreviousItem(prevItem, viewportStartIndex, numSeries, isNavigable);\n if (prevItem) return prevItem;\n }\n return info;\n}\n\nexport function getBarChartNavUtil<K, D extends BarItemData<K>>(\n getDataItem: (seriesIndex: number, groupIndex: number) => D | undefined,\n numSeries: number,\n viewportStartIndex: number,\n viewportEndIndex: number,\n isStacked: boolean,\n isRtl: boolean\n) {\n const isItemNavigable = (seriesIndex: number, groupIndex: number) => {\n const barItem = getDataItem(seriesIndex, groupIndex);\n return Boolean(barItem);\n };\n\n const getNextChartItem = (\n itemInfo: Info,\n arrow: 'ArrowLeft' | 'ArrowRight' | 'ArrowDown' | 'ArrowUp'\n ): Info => {\n if (!isStacked && (arrow === 'ArrowDown' || arrow === 'ArrowUp')) {\n return itemInfo;\n }\n let newInfo: Info | undefined;\n // TODO: this is just to keep typescript happy.\n // figure out consistent typing while doing type cleanup.\n const info = {\n groupIndex: itemInfo.groupIndex!,\n seriesIndex: itemInfo.seriesIndex!\n };\n\n if (info.groupIndex! < viewportStartIndex) {\n info.groupIndex = viewportStartIndex;\n return info;\n } else if (info.groupIndex! > viewportEndIndex) {\n info.groupIndex = viewportEndIndex;\n return info;\n }\n\n if (isStacked) {\n if (arrow === 'ArrowLeft') {\n newInfo = isRtl\n ? getNextItemInSeries(info, viewportEndIndex, isItemNavigable)\n : getPrevItemInSeries(info, viewportStartIndex, isItemNavigable);\n } else if (arrow === 'ArrowRight') {\n newInfo = isRtl\n ? getPrevItemInSeries(info, viewportStartIndex, isItemNavigable)\n : getNextItemInSeries(info, viewportEndIndex, isItemNavigable);\n } else if (arrow === 'ArrowDown') {\n newInfo = getPrevItemInGroup(info, isItemNavigable);\n } else {\n newInfo = getNextItemInGroup(info, numSeries, isItemNavigable);\n }\n } else {\n if (arrow === 'ArrowRight') {\n newInfo = isRtl\n ? getPreviousItem(info, viewportStartIndex, numSeries, isItemNavigable)\n : getNextItem(info, viewportEndIndex, numSeries, isItemNavigable);\n } else if (arrow === 'ArrowLeft') {\n newInfo = isRtl\n ? getNextItem(info, viewportEndIndex, numSeries, isItemNavigable)\n : getPreviousItem(info, viewportStartIndex, numSeries, isItemNavigable);\n }\n }\n return newInfo || info;\n };\n\n return getNextChartItem;\n}\n","import { BarChart } from './BarChart';\nimport { BarChartProps, BarItemData } from './barChart.types';\n\nexport function OverviewBarChart<K extends string | number, D extends BarItemData<K>>(\n props: BarChartProps<K, D>\n) {\n return (\n <BarChart\n datatip={() => ({ content: '' })}\n zoomAndScroll=\"off\"\n plotArea={{\n yMajorTick: {\n isRendered: false\n },\n xMajorTick: {\n \n }\n }}\n xAxis={{\n tickLabel: {\n autoRotate: false,\n // @ts-ignore\n isRendered: props.xAxis?.timeAxisType ? true : false\n }\n }}\n series={props.series}\n groups={props.groups}\n getDataItem={props.getDataItem}\n yAxis={{\n tickLabel: {\n isRendered: false\n }\n }}\n overview=\"off\"\n />\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 { BarChartProps, BarItemData } from './barChart.types';\nimport { getBarGapRatio } from './utils/barSeriesUtils';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport { BarGroup } from './BarGroup';\nimport { findNearestDataPoint } from '#utils/PRIVATE_chartUtils/layoutUtils';\nimport {\n getBarCenterCoordinate,\n getBarPosition,\n getSeriesOffsetAndWidth\n} from './utils/barLayoutUtils';\nimport { getBarChartNavUtil } from './utils/barNavUtils';\nimport { Chart } from '#PRIVATE_Chart';\nimport { TimeAxisProps, Scale } from '#utils/UNSAFE_visTypes/chart';\nimport { getItemColor } from '#utils/PRIVATE_chartUtils/dataStyleUtils';\nimport { OverviewBarChart } from './OverviewBarChart';\n\n/* bar chart start and end axis offset */\nconst AXIS_OFFSET = 0.5;\n\n/**\n * A Bar chart displays information graphically using rectangular bars with heights or lengths proportional to the values that they represent,\n * making relationships among the data easier to understand.\n */\nexport function BarChart<K extends string | number, D extends BarItemData<K>>({\n width,\n height,\n selectedIds = [],\n hiddenIds = [],\n highlightedIds,\n hideAndShowBehavior = 'none',\n orientation = 'vertical',\n yAxis,\n series,\n groups,\n isStacked = false,\n getDataItem,\n selectionMode = 'none',\n drilling = 'off',\n dataItemGaps = 0.5,\n ...props\n}: BarChartProps<K, D>) {\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n const hiddenSet = new Set(hiddenIds);\n const isHoriz = orientation === 'horizontal';\n const timeAxisType = (props.xAxis as TimeAxisProps)?.timeAxisType;\n const selectedSet = new Set(selectedIds);\n const highlightedSet = new Set(highlightedIds);\n const getGapRatio = (startIndex: number, endIndex: number) => {\n return getBarGapRatio(isStacked, startIndex, endIndex);\n };\n const getNextChartItemFunc = (startIndex: number, endIndex: number) => {\n return getBarChartNavUtil(getDataItem, series.length, startIndex, endIndex, isStacked, isRtl);\n };\n const getDataItemPos = (xScale: Scale, yScale: Scale, groupWidth: number, gapRatio: number) => {\n return getBarPosition(\n series,\n groups,\n getDataItem,\n xScale,\n yScale,\n hiddenSet,\n dataItemGaps,\n groupWidth,\n gapRatio,\n yAxis?.scale === 'log',\n isStacked,\n isRtl,\n isHoriz,\n timeAxisType\n );\n };\n\n const findNearest = (xScale: Scale, yScale: Scale, groupWidth: number, gapRatio: number) => {\n const getSeriesDataInfo = getSeriesOffsetAndWidth(\n groupWidth,\n gapRatio,\n series.length,\n dataItemGaps,\n isStacked,\n isRtl\n );\n return findNearestDataPoint(\n series,\n groups,\n xScale,\n yScale,\n getDataItem,\n isStacked,\n getSeriesDataInfo,\n getBarCenterCoordinate,\n yAxis?.scale === 'log',\n dataItemGaps,\n hiddenSet,\n timeAxisType\n );\n };\n\n const getMarkerColorAndType = (seriesIndex: number, groupIndex: number) => {\n return {\n color: getItemColor(seriesIndex, groupIndex, series, getDataItem),\n type: 'circle' as const\n };\n };\n\n return (\n <Chart\n width={width}\n height={height}\n selectedIds={selectedSet}\n hiddenIds={hiddenIds}\n hideAndShowBehavior={hideAndShowBehavior}\n orientation={orientation}\n yAxis={yAxis}\n series={series}\n groups={groups}\n isStacked={isStacked}\n getDataItem={getDataItem}\n selectionMode={selectionMode}\n drilling={drilling}\n renderGridLinesInFront={false}\n findNearest={findNearest}\n getDataItemPos={getDataItemPos}\n getNavUtil={getNextChartItemFunc}\n getGapRatio={getGapRatio}\n getMarkerInfo={getMarkerColorAndType}\n isRtl={isRtl}\n offset={AXIS_OFFSET}\n defaultOverviewContentRenderer={() => {\n return <OverviewBarChart series={series} groups={groups} getDataItem={getDataItem} />;\n }}\n {...props}>\n {({\n xStartIndex,\n xEndIndex,\n xScale,\n yScale,\n gapRatio,\n activeId,\n focusedItemInfo,\n hoveredItemInfo,\n groupWidth,\n isPointInsideMarquee,\n getTextDimensions,\n defaultFontSize,\n colors\n }) => {\n return (\n <>\n {groups.slice(xStartIndex, xEndIndex + 1).map((_, index) => (\n <BarGroup\n yScale={yScale}\n xScale={xScale}\n groupIndex={index + xStartIndex}\n selectedIds={selectedSet}\n hiddenIds={hiddenSet}\n highlightedIds={highlightedIds ? highlightedSet : highlightedIds}\n isDrillEnabled={drilling === 'on'}\n series={series}\n barGapRatio={gapRatio}\n dataItemGaps={dataItemGaps}\n isPointInsideMarquee={isPointInsideMarquee}\n isStacked={isStacked}\n groupWidth={groupWidth}\n group={groups[index]}\n timeAxisType={(props.xAxis as TimeAxisProps)?.timeAxisType}\n colors={colors}\n activeId={activeId}\n isLog={yAxis?.scale === 'log'}\n orientation={orientation}\n getDataItem={getDataItem}\n isSelectionEnabled={selectionMode != 'none'}\n isRtl={isRtl}\n focusedItemInfo={focusedItemInfo}\n hoveredItemInfo={hoveredItemInfo}\n getTextDimensions={getTextDimensions}\n defaultFontSize={defaultFontSize}\n getStackLabel={props.getStackLabel}\n />\n ))}\n </>\n );\n }}\n </Chart>\n );\n}\n"],"names":["getNextItemInGroup","getPrevItemInGroup","getNextItemInSeries","getPrevItemInSeries","_jsx","useUser","getBarGapRatio","getBarPosition","getSeriesOffsetAndWidth","findNearestDataPoint","getBarCenterCoordinate","getItemColor","Chart","_Fragment","BarGroup"],"mappings":";;;;;;;;;;AAAA;;;;;;AAMG;AAaH;;;;;;;AAOG;AACG,SAAU,WAAW,CACzB,IAAc,EACd,gBAAwB,EACxB,SAAiB,EACjB,WAAgC,EAAA;IAEhC,MAAM,eAAe,GAAGA,iCAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AACzE,IAAA,IAAI,eAAe;AAAE,QAAA,OAAO,eAAe,CAAC;AAE5C,IAAA,IAAI,IAAI,CAAC,UAAU,GAAG,gBAAgB,EAAE;AACtC,QAAA,IAAI,QAAQ,GAAG,EAAE,WAAW,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,GAAG,CAAC,EAAE,CAAC;QACnE,IAAI,WAAW,CAAC,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC;AAAE,YAAA,OAAO,QAAQ,CAAC;QAC5E,QAAQ,GAAG,WAAW,CAAC,QAAQ,EAAE,gBAAgB,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AAC3E,QAAA,IAAI,QAAQ;AAAE,YAAA,OAAO,QAAQ,CAAC;KAC/B;AACD,IAAA,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;AAOG;AACG,SAAU,eAAe,CAC7B,IAAc,EACd,kBAA0B,EAC1B,SAAiB,EACjB,WAAiE,EAAA;IAEjE,MAAM,eAAe,GAAGC,iCAAkB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAC9D,IAAA,IAAI,eAAe;AAAE,QAAA,OA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,aAAa,EAAE,KAAK,CAAC,aAAa,EAAA,CAClC,CACH,CAAC,EAAA,CACD,EACH;SACH,EAAA,CACK,EACR;AACJ;;;;"}
@@ -14,7 +14,6 @@ var useChartViewport = require('./useChartViewport-2304ea1a.js');
14
14
  var layoutUtils$1 = require('./layoutUtils-a8eb2cca.js');
15
15
  var useChartNav = require('./useChartNav-50215440.js');
16
16
  var mergeProps = require('./mergeProps-e3da7237.js');
17
- var ScrollBar = require('./ScrollBar-dc5cf205.js');
18
17
  var useSelectDrill = require('./useSelectDrill-c95b1a51.js');
19
18
  var useUser = require('./useUser-a4bfc560.js');
20
19
  var useTestId = require('./useTestId-5e6af45d.js');
@@ -39,6 +38,7 @@ var useOverviewContext = require('./useOverviewContext-1732a3f1.js');
39
38
  var scale = require('./scale-22a7b539.js');
40
39
  var OverviewSlidingWindow = require('./OverviewSlidingWindow-aafdca27.js');
41
40
  var PRIVATE_VisOverview_themes_VisOverview_css = require('./PRIVATE_VisOverview/themes/VisOverview.css.js');
41
+ var ScrollBar = require('./ScrollBar-dc5cf205.js');
42
42
 
43
43
  function getNextGroup(info, viewportEndIndex, isGroupNavigable) {
44
44
  const groupIndex = info.groupIndex + 1;
@@ -448,4 +448,4 @@ function Chart({ width, height, ...props }) {
448
448
  }
449
449
 
450
450
  exports.Chart = Chart;
451
- //# sourceMappingURL=Chart-40d95d14.js.map
451
+ //# sourceMappingURL=Chart-fbbd3329.js.map