@oracle/oraclejet-preact 18.1.1 → 18.1.2

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 (1057) hide show
  1. package/amd/ActionCard-e560d08b.js +1 -1
  2. package/amd/BarChart-c0ba5b12.js +1 -1
  3. package/amd/BarGroup-b02506a8.js +1 -1
  4. package/amd/BaseButton-c6563bf2.js +1 -1
  5. package/amd/{BaseCardView-df2ace26.js → BaseCardView-e75594df.js} +2 -2
  6. package/amd/{BaseCardView-df2ace26.js.map → BaseCardView-e75594df.js.map} +1 -1
  7. package/amd/{BaseCardViewSelectionTest-e0356b8b.js → BaseCardViewSelectionTest-b3d54b34.js} +2 -2
  8. package/amd/{BaseCardViewSelectionTest-e0356b8b.js.map → BaseCardViewSelectionTest-b3d54b34.js.map} +1 -1
  9. package/amd/BaseNavigationListItem-f2b9ae77.js +2 -0
  10. package/amd/BaseNavigationListItem-f2b9ae77.js.map +1 -0
  11. package/amd/BaseRichSelection-65bb6f89.js +1 -1
  12. package/amd/ButtonSet-3459b0e6.js +1 -1
  13. package/amd/ButtonSetIconButton-5b13a4c9.js +1 -1
  14. package/amd/{Card-7acfbca5.js → Card-8fd9b2c8.js} +2 -2
  15. package/amd/{Card-7acfbca5.js.map → Card-8fd9b2c8.js.map} +1 -1
  16. package/amd/{CardFlexView-a1fbf75e.js → CardFlexView-15801fe6.js} +2 -2
  17. package/amd/{CardFlexView-a1fbf75e.js.map → CardFlexView-15801fe6.js.map} +1 -1
  18. package/amd/{CardGridView-06ad40c5.js → CardGridView-05349c11.js} +2 -2
  19. package/amd/{CardGridView-06ad40c5.js.map → CardGridView-05349c11.js.map} +1 -1
  20. package/amd/{Center-5d2e4d34.js → Center-567b111f.js} +2 -2
  21. package/amd/{Center-5d2e4d34.js.map → Center-567b111f.js.map} +1 -1
  22. package/amd/Chart-c3a5a93d.js +1 -1
  23. package/amd/CheckboxControl-f3a606fe.js +1 -1
  24. package/amd/CheckboxRadioField-48d4dc4e.js +1 -1
  25. package/amd/Chip-e007a488.js +1 -1
  26. package/amd/ClearIcon-d0412ffa.js +1 -1
  27. package/amd/CollapseIcon-6d62b080.js +1 -1
  28. package/amd/Collapsible-8608500c.js +1 -1
  29. package/amd/ComboChart-cec2713a.js +1 -1
  30. package/amd/CompactHelpSource-e5b889f6.js +1 -1
  31. package/amd/CompactLabelAssistance-cd404d92.js +2 -0
  32. package/amd/{CompactLabelAssistance-82361ea6.js.map → CompactLabelAssistance-cd404d92.js.map} +1 -1
  33. package/amd/CompactUserAssistance-eb849bc5.js +1 -1
  34. package/amd/ComponentMessageContainer-8198785a.js +1 -1
  35. package/amd/ConveyorBeltItem-297444a1.js +1 -1
  36. package/amd/{DatePicker-20e9a255.js → DatePicker-e0e728f9.js} +2 -2
  37. package/amd/{DatePicker-20e9a255.js.map → DatePicker-e0e728f9.js.map} +1 -1
  38. package/amd/DatePickerHeader-1f419e06.js +1 -1
  39. package/amd/{Diagram-03be2ca5.js → Diagram-eb0ab8fb.js} +2 -2
  40. package/amd/{Diagram-03be2ca5.js.map → Diagram-eb0ab8fb.js.map} +1 -1
  41. package/amd/{Dialog-dc55a669.js → Dialog-cd6713a4.js} +2 -2
  42. package/amd/{Dialog-dc55a669.js.map → Dialog-cd6713a4.js.map} +1 -1
  43. package/amd/DirectionalCollapseArrowIcon-58352e0f.js +1 -1
  44. package/amd/DirectionalExpandArrowIcon-56420acb.js +1 -1
  45. package/amd/DragHandle-0798a29c.js +2 -0
  46. package/amd/{DragHandle-d89ea5fd.js.map → DragHandle-0798a29c.js.map} +1 -1
  47. package/amd/{DrawerPopup-772c8c22.js → DrawerPopup-439787de.js} +2 -2
  48. package/amd/{DrawerPopup-772c8c22.js.map → DrawerPopup-439787de.js.map} +1 -1
  49. package/amd/Dropdown-fb803c67.js +2 -0
  50. package/amd/{Dropdown-37339c89.js.map → Dropdown-fb803c67.js.map} +1 -1
  51. package/amd/{EnvironmentProvider-4597f540.js → EnvironmentProvider-d423bca9.js} +2 -2
  52. package/amd/{EnvironmentProvider-4597f540.js.map → EnvironmentProvider-d423bca9.js.map} +1 -1
  53. package/amd/ExpandableList-81f7f34d.js +1 -1
  54. package/amd/FilePicker-e0b7a348.js +1 -1
  55. package/amd/{Flex-69dc7af4.js → Flex-a208520e.js} +2 -2
  56. package/amd/{Flex-69dc7af4.js.map → Flex-a208520e.js.map} +1 -1
  57. package/amd/{Floating-28ad0903.js → Floating-043a207a.js} +2 -2
  58. package/amd/{Floating-28ad0903.js.map → Floating-043a207a.js.map} +1 -1
  59. package/amd/FormLayout-d7998ba5.js +1 -1
  60. package/amd/Gantt-a286e1a6.js +1 -1
  61. package/amd/{Grid-49beb801.js → Grid-3dd364a1.js} +2 -2
  62. package/amd/{Grid-49beb801.js.map → Grid-3dd364a1.js.map} +1 -1
  63. package/amd/{Gridlines-9ec65953.js → Gridlines-3c00961a.js} +2 -2
  64. package/amd/{Gridlines-9ec65953.js.map → Gridlines-3c00961a.js.map} +1 -1
  65. package/amd/GroupLoadingIndicator-6c6743b0.js +1 -1
  66. package/amd/{HighlightText-b020d84d.js → HighlightText-b3c31e12.js} +2 -2
  67. package/amd/{HighlightText-b020d84d.js.map → HighlightText-b3c31e12.js.map} +1 -1
  68. package/amd/Icon-906e4e3c.js +1 -1
  69. package/amd/IconButton-c2e5c1c5.js +1 -1
  70. package/amd/IconMenuButton-caf797c1.js +1 -1
  71. package/amd/IconProgressButton-d8c0c306.js +1 -1
  72. package/amd/IconSwitchButton-e6c5b20f.js +1 -1
  73. package/amd/IconToggleButton-e6c77f31.js +1 -1
  74. package/amd/{IconUserAssistance-b5075ca1.js → IconUserAssistance-456f4b11.js} +2 -2
  75. package/amd/{IconUserAssistance-b5075ca1.js.map → IconUserAssistance-456f4b11.js.map} +1 -1
  76. package/amd/{Indexer-2d8f61ab.js → Indexer-21549baf.js} +2 -2
  77. package/amd/{Indexer-2d8f61ab.js.map → Indexer-21549baf.js.map} +1 -1
  78. package/amd/InlineHelpSource-80327d99.js +1 -1
  79. package/amd/InlineUserAssistance-d208ce7b.js +1 -1
  80. package/amd/InputDateMask-4157ef60.js +1 -1
  81. package/amd/InputDatePicker-84b302ea.js +1 -1
  82. package/amd/InputPassword-868ad3bb.js +1 -1
  83. package/amd/InputText-2cd1e067.js +1 -1
  84. package/amd/Label-a53aabb9.js +1 -1
  85. package/amd/LabelValueLayout-6da5829a.js +1 -1
  86. package/amd/{Layer-9fb9ca67.js → Layer-2ca542c2.js} +2 -2
  87. package/amd/{Layer-9fb9ca67.js.map → Layer-2ca542c2.js.map} +1 -1
  88. package/amd/{LayerHost-1b4d03f0.js → LayerHost-a36b1781.js} +2 -2
  89. package/amd/{LayerHost-1b4d03f0.js.map → LayerHost-a36b1781.js.map} +1 -1
  90. package/amd/LayerManager-543c0bce.js +2 -0
  91. package/amd/{LayerManager-6c0b0eed.js.map → LayerManager-543c0bce.js.map} +1 -1
  92. package/amd/Legend-75b03ff3.js +1 -1
  93. package/amd/{LineAreaChart-d6300aad.js → LineAreaChart-a6914d16.js} +2 -2
  94. package/amd/{LineAreaChart-d6300aad.js.map → LineAreaChart-a6914d16.js.map} +1 -1
  95. package/amd/{LineSeries-6b2d5fc5.js → LineSeries-9ddf061e.js} +2 -2
  96. package/amd/{LineSeries-6b2d5fc5.js.map → LineSeries-9ddf061e.js.map} +1 -1
  97. package/amd/Link-ded379d9.js +1 -1
  98. package/amd/List-5797be06.js +2 -0
  99. package/amd/{List-cf09a2fb.js.map → List-5797be06.js.map} +1 -1
  100. package/amd/{ListItemLayout-51e98343.js → ListItemLayout-853acaaf.js} +2 -2
  101. package/amd/{ListItemLayout-51e98343.js.map → ListItemLayout-853acaaf.js.map} +1 -1
  102. package/amd/{ListView-29e03fea.js → ListView-51898222.js} +2 -2
  103. package/amd/{ListView-29e03fea.js.map → ListView-51898222.js.map} +1 -1
  104. package/amd/{LiveRegion-345ac2a4.js → LiveRegion-38fa0df8.js} +2 -2
  105. package/amd/{LiveRegion-345ac2a4.js.map → LiveRegion-38fa0df8.js.map} +1 -1
  106. package/amd/LoadMoreCollection-83413a59.js +2 -0
  107. package/amd/{LoadMoreCollection-a6adbc3f.js.map → LoadMoreCollection-83413a59.js.map} +1 -1
  108. package/amd/MaxLengthLiveRegion-40be44ee.js +2 -0
  109. package/amd/{MaxLengthLiveRegion-7723b0df.js.map → MaxLengthLiveRegion-40be44ee.js.map} +1 -1
  110. package/amd/Menu-bdd771bf.js +1 -1
  111. package/amd/MenuButton-da59eed0.js +1 -1
  112. package/amd/MenuItem-dc85fcad.js +1 -1
  113. package/amd/Message-d34eaeb6.js +1 -1
  114. package/amd/{MessageLayer-4238a197.js → MessageLayer-4d17f62f.js} +2 -2
  115. package/amd/{MessageLayer-4238a197.js.map → MessageLayer-4d17f62f.js.map} +1 -1
  116. package/amd/MessageToast-39315d42.js +1 -1
  117. package/amd/MessagesManager-8af1b1ee.js +1 -1
  118. package/amd/MeterBar-10ec0c50.js +1 -1
  119. package/amd/MeterCircle-cce2cb51.js +1 -1
  120. package/amd/{Modal-991f1310.js → Modal-21aed044.js} +2 -2
  121. package/amd/{Modal-991f1310.js.map → Modal-21aed044.js.map} +1 -1
  122. package/amd/{MonthView-1a60836e.js → MonthView-d4c06203.js} +2 -2
  123. package/amd/{MonthView-1a60836e.js.map → MonthView-d4c06203.js.map} +1 -1
  124. package/amd/NavigationList-6ca9cfba.js +2 -0
  125. package/amd/NavigationList-6ca9cfba.js.map +1 -0
  126. package/amd/NavigationListItem-43b6130b.js +2 -0
  127. package/amd/NavigationListItem-43b6130b.js.map +1 -0
  128. package/amd/NumberInputText-66e2d7d1.js +1 -1
  129. package/amd/{OverflowTabBar-6b2d76c0.js → OverflowTabBar-127659f1.js} +2 -2
  130. package/amd/{OverflowTabBar-6b2d76c0.js.map → OverflowTabBar-127659f1.js.map} +1 -1
  131. package/amd/OverflowTabBarItem-5404d133.js +2 -0
  132. package/amd/{OverflowTabBarItem-4c54927d.js.map → OverflowTabBarItem-5404d133.js.map} +1 -1
  133. package/amd/PRIVATE_BaseCardView.js +1 -1
  134. package/amd/PRIVATE_Chart.js +1 -1
  135. package/amd/PRIVATE_CheckboxControl.js +1 -1
  136. package/amd/PRIVATE_CheckboxRadioField.js +1 -1
  137. package/amd/PRIVATE_ClearIcon.js +1 -1
  138. package/amd/PRIVATE_DatePickerHeader.js +1 -1
  139. package/amd/PRIVATE_DatePickerLayout.js +1 -1
  140. package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
  141. package/amd/PRIVATE_FormControls.js +1 -1
  142. package/amd/PRIVATE_IconSwitchButton.js +1 -1
  143. package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
  144. package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
  145. package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
  146. package/amd/PRIVATE_Icons/DragV.js +1 -1
  147. package/amd/PRIVATE_Icons/WarningS.js +1 -1
  148. package/amd/PRIVATE_List.js +1 -1
  149. package/amd/PRIVATE_LoadMoreCollection.js +1 -1
  150. package/amd/PRIVATE_Message.js +1 -1
  151. package/amd/PRIVATE_MessageLayer.js +1 -1
  152. package/amd/PRIVATE_MonthView.js +1 -1
  153. package/amd/PRIVATE_MonthYearGridView.js +1 -1
  154. package/amd/PRIVATE_PlotArea.js +1 -1
  155. package/amd/PRIVATE_RevealToggleIcon.js +1 -1
  156. package/amd/PRIVATE_RichSelectionCommon.js +1 -1
  157. package/amd/PRIVATE_SelectCommon.js +1 -1
  158. package/amd/PRIVATE_StyledCard.js +1 -1
  159. package/amd/PRIVATE_StyledCheckbox.js +1 -1
  160. package/amd/PRIVATE_Table.js +1 -1
  161. package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
  162. package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
  163. package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
  164. package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
  165. package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
  166. package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
  167. package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
  168. package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
  169. package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
  170. package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
  171. package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
  172. package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
  173. package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
  174. package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
  175. package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
  176. package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
  177. package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
  178. package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
  179. package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
  180. package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
  181. package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
  182. package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
  183. package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
  184. package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
  185. package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
  186. package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
  187. package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
  188. package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
  189. package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
  190. package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
  191. package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
  192. package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
  193. package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
  194. package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
  195. package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
  196. package/amd/PRIVATE_TimeComponent.js +1 -1
  197. package/amd/PRIVATE_VirtualizedCollection.js +1 -1
  198. package/amd/PRIVATE_VisOverview.js +1 -1
  199. package/amd/PRIVATE_VisTabularDatatip.js +1 -1
  200. package/amd/PictoChart-952582dd.js +1 -1
  201. package/amd/PieChart-7826bf45.js +1 -1
  202. package/amd/{Popup-bba2ea15.js → Popup-92dfc51f.js} +2 -2
  203. package/amd/{Popup-bba2ea15.js.map → Popup-92dfc51f.js.map} +1 -1
  204. package/amd/{ProgressBar-4c24733e.js → ProgressBar-2087dde3.js} +2 -2
  205. package/amd/{ProgressBar-4c24733e.js.map → ProgressBar-2087dde3.js.map} +1 -1
  206. package/amd/ProgressButton-b830eead.js +1 -1
  207. package/amd/ProgressButtonLabelLayout-5404f190.js +1 -1
  208. package/amd/{ProgressCircle-57ce7b94.js → ProgressCircle-5709a095.js} +2 -2
  209. package/amd/{ProgressCircle-57ce7b94.js.map → ProgressCircle-5709a095.js.map} +1 -1
  210. package/amd/RadioItem-b159fce3.js +1 -1
  211. package/amd/RatingGauge-27c01e2c.js +1 -1
  212. package/amd/ReadonlyTextFieldInput-b8ee28da.js +1 -1
  213. package/amd/RemovableNavigationListItem-110f19ed.js +2 -0
  214. package/amd/{RemovableNavigationListItem-87e208e1.js.map → RemovableNavigationListItem-110f19ed.js.map} +1 -1
  215. package/amd/RemovableTabBarItem-3792c8fd.js +1 -1
  216. package/amd/{ReorderableTabBar-cdafd5b2.js → ReorderableTabBar-d6720955.js} +2 -2
  217. package/amd/{ReorderableTabBar-cdafd5b2.js.map → ReorderableTabBar-d6720955.js.map} +1 -1
  218. package/amd/RevealToggleIcon-e5bc966f.js +1 -1
  219. package/amd/{ScatterChart-de870222.js → ScatterChart-a7d49c89.js} +2 -2
  220. package/amd/{ScatterChart-de870222.js.map → ScatterChart-a7d49c89.js.map} +1 -1
  221. package/amd/SectionalLegend-e9c72ba8.js +1 -1
  222. package/amd/SectionedContent-5d5ff5b9.js +2 -0
  223. package/amd/{SectionedContent-d75017a3.js.map → SectionedContent-5d5ff5b9.js.map} +1 -1
  224. package/amd/{SelectMultiple-bd6c10ec.js → SelectMultiple-05de2e07.js} +2 -2
  225. package/amd/{SelectMultiple-bd6c10ec.js.map → SelectMultiple-05de2e07.js.map} +1 -1
  226. package/amd/{SelectSingle-7df4a6fc.js → SelectSingle-9e6bde58.js} +2 -2
  227. package/amd/{SelectSingle-7df4a6fc.js.map → SelectSingle-9e6bde58.js.map} +1 -1
  228. package/amd/SelectionCard-977be789.js +2 -0
  229. package/amd/{SelectionCard-baeadf9f.js.map → SelectionCard-977be789.js.map} +1 -1
  230. package/amd/Selector-b67fe1ef.js +1 -1
  231. package/amd/{SelectorAll-344e3366.js → SelectorAll-face9708.js} +2 -2
  232. package/amd/{SelectorAll-344e3366.js.map → SelectorAll-face9708.js.map} +1 -1
  233. package/amd/{Sheet-f4665056.js → Sheet-23307184.js} +2 -2
  234. package/amd/{Sheet-f4665056.js.map → Sheet-23307184.js.map} +1 -1
  235. package/amd/SplitMenuButton-8d873373.js +1 -1
  236. package/amd/{StyledCard-420ef03c.js → StyledCard-5c9cee13.js} +2 -2
  237. package/amd/{StyledCard-420ef03c.js.map → StyledCard-5c9cee13.js.map} +1 -1
  238. package/amd/{StyledLabelValueLayout-16380e6b.js → StyledLabelValueLayout-ddf48667.js} +2 -2
  239. package/amd/{StyledLabelValueLayout-16380e6b.js.map → StyledLabelValueLayout-ddf48667.js.map} +1 -1
  240. package/amd/StyledTextField-3398bf94.js +1 -1
  241. package/amd/TabBar-3a35b525.js +2 -0
  242. package/amd/{TabBar-8a0cbff2.js.map → TabBar-3a35b525.js.map} +1 -1
  243. package/amd/TabBarItem-04031938.js +1 -1
  244. package/amd/TabBarLayout-de1e43f5.js +1 -1
  245. package/amd/TabBarMixed-28b62328.js +2 -0
  246. package/amd/{TabBarMixed-d4482b12.js.map → TabBarMixed-28b62328.js.map} +1 -1
  247. package/amd/{TabBarMixedSeparator-84722127.js → TabBarMixedSeparator-bd0668c3.js} +2 -2
  248. package/amd/{TabBarMixedSeparator-84722127.js.map → TabBarMixedSeparator-bd0668c3.js.map} +1 -1
  249. package/amd/{Table-10903596.js → Table-d8edded4.js} +2 -2
  250. package/amd/{Table-10903596.js.map → Table-d8edded4.js.map} +1 -1
  251. package/amd/{TableView-1f5264e6.js → TableView-eb139e29.js} +2 -2
  252. package/amd/{TableView-1f5264e6.js.map → TableView-eb139e29.js.map} +1 -1
  253. package/amd/TagCloud-057fa603.js +1 -1
  254. package/amd/TextArea-8dcf6809.js +1 -1
  255. package/amd/TextAreaAutosize-97aba344.js +1 -1
  256. package/amd/TextField-80908a0d.js +1 -1
  257. package/amd/TextFieldInput-ca306ad6.js +1 -1
  258. package/amd/Theme-redwood/theme.css +237 -237
  259. package/amd/Theme-stable/theme.css +236 -236
  260. package/amd/TimeComponentCanvas2D-9a091053.js +1 -1
  261. package/amd/Toolbar-250d0ce7.js +1 -1
  262. package/amd/TruncatingBadge-6c7674e0.js +1 -1
  263. package/amd/TruncatingText-24914f42.js +1 -1
  264. package/amd/UNSAFE_ActionCard.js +1 -1
  265. package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
  266. package/amd/UNSAFE_BarChart.js +1 -1
  267. package/amd/UNSAFE_BaseButton.js +1 -1
  268. package/amd/UNSAFE_Button.js +1 -1
  269. package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  270. package/amd/UNSAFE_ButtonSet.js +1 -1
  271. package/amd/UNSAFE_ButtonSetButton.js +1 -1
  272. package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
  273. package/amd/UNSAFE_ButtonSetItem.js +1 -1
  274. package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
  275. package/amd/UNSAFE_ButtonSetSingle.js +1 -1
  276. package/amd/UNSAFE_Card.js +1 -1
  277. package/amd/UNSAFE_CardFlexView.js +1 -1
  278. package/amd/UNSAFE_CardGridView.js +1 -1
  279. package/amd/UNSAFE_Center.js +1 -1
  280. package/amd/UNSAFE_Checkbox.js +1 -1
  281. package/amd/UNSAFE_CheckboxItem.js +1 -1
  282. package/amd/UNSAFE_CheckboxSet.js +1 -1
  283. package/amd/UNSAFE_Chip.js +1 -1
  284. package/amd/UNSAFE_Collapsible.js +1 -1
  285. package/amd/UNSAFE_ComboChart.js +1 -1
  286. package/amd/UNSAFE_ComponentMessage.js +1 -1
  287. package/amd/UNSAFE_ConveyorBelt.js +1 -1
  288. package/amd/UNSAFE_DatePicker.js +1 -1
  289. package/amd/UNSAFE_Diagram.js +1 -1
  290. package/amd/UNSAFE_Dialog.js +1 -1
  291. package/amd/UNSAFE_DragHandle.js +1 -1
  292. package/amd/UNSAFE_DrawerLayout.js +1 -1
  293. package/amd/UNSAFE_DrawerPopup.js +1 -1
  294. package/amd/UNSAFE_Dropdown.js +1 -1
  295. package/amd/UNSAFE_Environment.js +1 -1
  296. package/amd/UNSAFE_ExpandableList.js +1 -1
  297. package/amd/UNSAFE_FilePicker.js +1 -1
  298. package/amd/UNSAFE_Flex.js +1 -1
  299. package/amd/UNSAFE_Floating.js +1 -1
  300. package/amd/UNSAFE_FormLayout.js +1 -1
  301. package/amd/UNSAFE_Gantt.js +1 -1
  302. package/amd/UNSAFE_Grid.js +1 -1
  303. package/amd/UNSAFE_HighlightText.js +1 -1
  304. package/amd/UNSAFE_Icon.js +1 -1
  305. package/amd/UNSAFE_IconButton.js +1 -1
  306. package/amd/UNSAFE_IconMenuButton.js +1 -1
  307. package/amd/UNSAFE_IconProgressButton.js +1 -1
  308. package/amd/UNSAFE_IconToggleButton.js +1 -1
  309. package/amd/UNSAFE_Indexer.js +1 -1
  310. package/amd/UNSAFE_InputDateMask.js +1 -1
  311. package/amd/UNSAFE_InputDatePicker.js +1 -1
  312. package/amd/UNSAFE_InputPassword.js +1 -1
  313. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  314. package/amd/UNSAFE_InputText.js +1 -1
  315. package/amd/UNSAFE_InputTimeMask.js +1 -1
  316. package/amd/UNSAFE_Label.js +1 -1
  317. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  318. package/amd/UNSAFE_LabelledLink.js +1 -1
  319. package/amd/UNSAFE_Layer.js +1 -1
  320. package/amd/UNSAFE_Legend.js +1 -1
  321. package/amd/UNSAFE_LineAreaChart.js +1 -1
  322. package/amd/UNSAFE_Link.js +1 -1
  323. package/amd/UNSAFE_ListItemLayout.js +1 -1
  324. package/amd/UNSAFE_ListView.js +1 -1
  325. package/amd/UNSAFE_LiveRegion.js +1 -1
  326. package/amd/UNSAFE_Menu.js +1 -1
  327. package/amd/UNSAFE_MenuButton.js +1 -1
  328. package/amd/UNSAFE_MessageBanner.js +1 -1
  329. package/amd/UNSAFE_MessageToast.js +1 -1
  330. package/amd/UNSAFE_MeterBar.js +1 -1
  331. package/amd/UNSAFE_MeterCircle.js +1 -1
  332. package/amd/UNSAFE_Modal.js +1 -1
  333. package/amd/UNSAFE_NavigationList.js +1 -1
  334. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  335. package/amd/UNSAFE_NumberInputText.js +1 -1
  336. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  337. package/amd/UNSAFE_PictoChart.js +1 -1
  338. package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
  339. package/amd/UNSAFE_PieChart.js +1 -1
  340. package/amd/UNSAFE_Popup.js +1 -1
  341. package/amd/UNSAFE_ProgressBar.js +1 -1
  342. package/amd/UNSAFE_ProgressButton.js +1 -1
  343. package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
  344. package/amd/UNSAFE_ProgressCircle.js +1 -1
  345. package/amd/UNSAFE_RadioItem.js +1 -1
  346. package/amd/UNSAFE_RadioSet.js +1 -1
  347. package/amd/UNSAFE_RatingGauge.js +1 -1
  348. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  349. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  350. package/amd/UNSAFE_RichRadioSet.js +1 -1
  351. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  352. package/amd/UNSAFE_ScatterChart.js +1 -1
  353. package/amd/UNSAFE_SectionalLegend.js +1 -1
  354. package/amd/UNSAFE_SelectMultiple.js +1 -1
  355. package/amd/UNSAFE_SelectSingle.js +1 -1
  356. package/amd/UNSAFE_SelectionCard.js +1 -1
  357. package/amd/UNSAFE_Selector.js +1 -1
  358. package/amd/UNSAFE_SelectorAll.js +1 -1
  359. package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
  360. package/amd/UNSAFE_Sheet.js +1 -1
  361. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  362. package/amd/UNSAFE_TabBar.js +1 -1
  363. package/amd/UNSAFE_TabBarCommon.js +1 -1
  364. package/amd/UNSAFE_TabBarMixed.js +1 -1
  365. package/amd/UNSAFE_TableView.js +1 -1
  366. package/amd/UNSAFE_TagCloud.js +1 -1
  367. package/amd/UNSAFE_TextArea.js +1 -1
  368. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  369. package/amd/UNSAFE_TextField.js +1 -1
  370. package/amd/UNSAFE_ToggleButton.js +1 -1
  371. package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  372. package/amd/UNSAFE_Toolbar.js +1 -1
  373. package/amd/UNSAFE_Train.js +1 -1
  374. package/amd/UNSAFE_TruncatingBadge.js +1 -1
  375. package/amd/UNSAFE_TruncatingText.js +1 -1
  376. package/amd/UNSAFE_UserAssistance.js +1 -1
  377. package/amd/UNSAFE_View.js +1 -1
  378. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  379. package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
  380. package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
  381. package/amd/UNSAFE_VisStatusMessage.js +1 -1
  382. package/amd/UNSAFE_WindowOverlay.js +1 -1
  383. package/amd/{View-59fe568d.js → View-e15784b7.js} +2 -2
  384. package/amd/{View-59fe568d.js.map → View-e15784b7.js.map} +1 -1
  385. package/amd/{VirtualizedCollection-63223f5e.js → VirtualizedCollection-897516a5.js} +2 -2
  386. package/amd/{VirtualizedCollection-63223f5e.js.map → VirtualizedCollection-897516a5.js.map} +1 -1
  387. package/amd/VirtualizedListView-7cfd200d.js +2 -0
  388. package/amd/{VirtualizedListView-061057dd.js.map → VirtualizedListView-7cfd200d.js.map} +1 -1
  389. package/amd/{VisNoData-b60000bf.js → VisNoData-ac5880b9.js} +2 -2
  390. package/amd/{VisNoData-b60000bf.js.map → VisNoData-ac5880b9.js.map} +1 -1
  391. package/amd/VisProgressiveLoader-01e7a1a8.js +2 -0
  392. package/amd/{VisProgressiveLoader-c90f62c3.js.map → VisProgressiveLoader-01e7a1a8.js.map} +1 -1
  393. package/amd/{VisTabularDatatip-23cf3cfc.js → VisTabularDatatip-8e572ce2.js} +2 -2
  394. package/amd/{VisTabularDatatip-23cf3cfc.js.map → VisTabularDatatip-8e572ce2.js.map} +1 -1
  395. package/amd/{WindowOverlay-00523782.js → WindowOverlay-3d31f35a.js} +2 -2
  396. package/amd/{WindowOverlay-00523782.js.map → WindowOverlay-3d31f35a.js.map} +1 -1
  397. package/amd/{YearsGridView-b0b18b18.js → YearsGridView-f7ae554d.js} +2 -2
  398. package/amd/{YearsGridView-b0b18b18.js.map → YearsGridView-f7ae554d.js.map} +1 -1
  399. package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
  400. package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
  401. package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
  402. package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
  403. package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
  404. package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
  405. package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
  406. package/amd/hooks/PRIVATE_useCssVars.js +1 -1
  407. package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
  408. package/amd/hooks/PRIVATE_useDatatip.js +1 -1
  409. package/amd/hooks/PRIVATE_useFloating.js +1 -1
  410. package/amd/hooks/PRIVATE_useReorderable.js +1 -1
  411. package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
  412. package/amd/hooks/PRIVATE_useSelection.js +1 -1
  413. package/amd/hooks/PRIVATE_useTabBar.js +1 -1
  414. package/amd/hooks/PRIVATE_useTooltipOnTruncation.js +1 -1
  415. package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
  416. package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
  417. package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
  418. package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
  419. package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
  420. package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
  421. package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
  422. package/amd/hooks/UNSAFE_useDensity.js +1 -1
  423. package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
  424. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  425. package/amd/hooks/UNSAFE_useScale.js +1 -1
  426. package/amd/hooks/UNSAFE_useTestId.js +1 -1
  427. package/amd/hooks/UNSAFE_useTheme.js +1 -1
  428. package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
  429. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  430. package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
  431. package/amd/hooks/UNSAFE_useUser.js +1 -1
  432. package/amd/{index-32a870a0.js → index-191c944d.js} +2 -2
  433. package/amd/index-191c944d.js.map +1 -0
  434. package/amd/listViewSelectionTests-338c9a81.js +1 -1
  435. package/amd/{popupUtils-710dc910.js → popupUtils-2308a848.js} +2 -2
  436. package/amd/{popupUtils-710dc910.js.map → popupUtils-2308a848.js.map} +1 -1
  437. package/amd/render-436a0489.js +2 -0
  438. package/amd/{render-6d2dc229.js.map → render-436a0489.js.map} +1 -1
  439. package/amd/{tabbableUtils-140cad66.js → tabbableUtils-dcf7c977.js} +2 -2
  440. package/amd/{tabbableUtils-140cad66.js.map → tabbableUtils-dcf7c977.js.map} +1 -1
  441. package/amd/{testData-bd34f137.js → testData-69541e84.js} +2 -2
  442. package/amd/{testData-bd34f137.js.map → testData-69541e84.js.map} +1 -1
  443. package/amd/tooltipUtils-cf586837.js +2 -0
  444. package/amd/{tooltipUtils-304eef18.js.map → tooltipUtils-cf586837.js.map} +1 -1
  445. package/amd/useCellNavigation-dcf1584f.js +1 -1
  446. package/amd/useChartContextMenu-79ff2c41.js +1 -1
  447. package/amd/{useChartDatatip-1f138781.js → useChartDatatip-f3574090.js} +2 -2
  448. package/amd/{useChartDatatip-1f138781.js.map → useChartDatatip-f3574090.js.map} +1 -1
  449. package/amd/{useColorScheme-8358a6c9.js → useColorScheme-47c8be99.js} +2 -2
  450. package/amd/{useColorScheme-8358a6c9.js.map → useColorScheme-47c8be99.js.map} +1 -1
  451. package/amd/useContextMenu-599ada89.js +1 -1
  452. package/amd/{useCssVars-4d0eeaa3.js → useCssVars-0b95ef7d.js} +2 -2
  453. package/amd/{useCssVars-4d0eeaa3.js.map → useCssVars-0b95ef7d.js.map} +1 -1
  454. package/amd/{useCurrentBgColor-24e98c84.js → useCurrentBgColor-7e1d99fb.js} +2 -2
  455. package/amd/{useCurrentBgColor-24e98c84.js.map → useCurrentBgColor-7e1d99fb.js.map} +1 -1
  456. package/amd/useCurrentKey-6e7057d0.js +2 -0
  457. package/amd/{useCurrentKey-5a5ffb1e.js.map → useCurrentKey-6e7057d0.js.map} +1 -1
  458. package/amd/{useDatatip-db874c22.js → useDatatip-0c425460.js} +2 -2
  459. package/amd/{useDatatip-db874c22.js.map → useDatatip-0c425460.js.map} +1 -1
  460. package/amd/{useDensity-2b757d02.js → useDensity-5cfdc56a.js} +2 -2
  461. package/amd/{useDensity-2b757d02.js.map → useDensity-5cfdc56a.js.map} +1 -1
  462. package/amd/{useFloating-c8c92f6f.js → useFloating-3f7a017b.js} +2 -2
  463. package/amd/{useFloating-c8c92f6f.js.map → useFloating-3f7a017b.js.map} +1 -1
  464. package/amd/{useKeyboardEvents-e66373bb.js → useKeyboardEvents-f1abb59c.js} +2 -2
  465. package/amd/{useKeyboardEvents-e66373bb.js.map → useKeyboardEvents-f1abb59c.js.map} +1 -1
  466. package/amd/useLegendContextMenu-e050a6ec.js +1 -1
  467. package/amd/useMeterDatatip-d4ac4181.js +2 -0
  468. package/amd/{useMeterDatatip-8702ee6e.js.map → useMeterDatatip-d4ac4181.js.map} +1 -1
  469. package/amd/useNavigationListItem-d79484b7.js +2 -0
  470. package/amd/useNavigationListItem-d79484b7.js.map +1 -0
  471. package/amd/{useOutsideClick-39a81428.js → useOutsideClick-fc4dc457.js} +2 -2
  472. package/amd/{useOutsideClick-39a81428.js.map → useOutsideClick-fc4dc457.js.map} +1 -1
  473. package/amd/usePopupAnimation-b6303252.js +2 -0
  474. package/amd/{usePopupAnimation-7023407f.js.map → usePopupAnimation-b6303252.js.map} +1 -1
  475. package/amd/usePrefixSuffix-582e16a2.js +2 -0
  476. package/amd/{usePrefixSuffix-19a86824.js.map → usePrefixSuffix-582e16a2.js.map} +1 -1
  477. package/amd/{useReorderableItem-fa5fd0f4.js → useReorderableItem-fd5a7b07.js} +2 -2
  478. package/amd/{useReorderableItem-fa5fd0f4.js.map → useReorderableItem-fd5a7b07.js.map} +1 -1
  479. package/amd/{useRovingTabIndexContainer-6b89c886.js → useRovingTabIndexContainer-f72b17ab.js} +2 -2
  480. package/amd/{useRovingTabIndexContainer-6b89c886.js.map → useRovingTabIndexContainer-f72b17ab.js.map} +1 -1
  481. package/amd/{useScale-0fb08a15.js → useScale-b2f29348.js} +2 -2
  482. package/amd/{useScale-0fb08a15.js.map → useScale-b2f29348.js.map} +1 -1
  483. package/amd/{useSelectCommon-dfd17adb.js → useSelectCommon-736de0ee.js} +2 -2
  484. package/amd/{useSelectCommon-dfd17adb.js.map → useSelectCommon-736de0ee.js.map} +1 -1
  485. package/amd/{useSelectDrill-03c65602.js → useSelectDrill-6b0b6da7.js} +2 -2
  486. package/amd/{useSelectDrill-03c65602.js.map → useSelectDrill-6b0b6da7.js.map} +1 -1
  487. package/amd/{useSelection-569188b3.js → useSelection-02c4c0c0.js} +2 -2
  488. package/amd/{useSelection-569188b3.js.map → useSelection-02c4c0c0.js.map} +1 -1
  489. package/amd/{useSelection-4c8e905b.js → useSelection-5128f1e7.js} +2 -2
  490. package/amd/{useSelection-4c8e905b.js.map → useSelection-5128f1e7.js.map} +1 -1
  491. package/amd/useTabBar-b1536c9a.js +1 -1
  492. package/amd/{useTestId-d0c49456.js → useTestId-efb1c8f9.js} +2 -2
  493. package/amd/{useTestId-d0c49456.js.map → useTestId-efb1c8f9.js.map} +1 -1
  494. package/amd/{useTheme-915016ef.js → useTheme-a99513fe.js} +2 -2
  495. package/amd/{useTheme-915016ef.js.map → useTheme-a99513fe.js.map} +1 -1
  496. package/amd/useThemeInterpolations-93c8c4c0.js +2 -0
  497. package/amd/{useThemeInterpolations-95e6f849.js.map → useThemeInterpolations-93c8c4c0.js.map} +1 -1
  498. package/amd/{useTooltip-f7c1ad5c.js → useTooltip-c10bcc4e.js} +2 -2
  499. package/amd/{useTooltip-f7c1ad5c.js.map → useTooltip-c10bcc4e.js.map} +1 -1
  500. package/amd/{useTooltipOnTruncation-7a2a7106.js → useTooltipOnTruncation-a913ba8a.js} +2 -2
  501. package/amd/{useTooltipOnTruncation-7a2a7106.js.map → useTooltipOnTruncation-a913ba8a.js.map} +1 -1
  502. package/amd/{useTranslationBundle-652e08a6.js → useTranslationBundle-33399171.js} +2 -2
  503. package/amd/{useTranslationBundle-652e08a6.js.map → useTranslationBundle-33399171.js.map} +1 -1
  504. package/amd/{useUser-abae2493.js → useUser-33136570.js} +2 -2
  505. package/amd/{useUser-abae2493.js.map → useUser-33136570.js.map} +1 -1
  506. package/amd/useVisDragModeControls-120076e9.js +1 -1
  507. package/amd/{useVisEvents-a2e7394b.js → useVisEvents-bc470edf.js} +2 -2
  508. package/amd/{useVisEvents-a2e7394b.js.map → useVisEvents-bc470edf.js.map} +1 -1
  509. package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
  510. package/amd/utils/PRIVATE_visTestUtils.js +1 -1
  511. package/amd/utils/UNSAFE_popupUtils.js +1 -1
  512. package/amd/{withDirectionIcon-194f3242.js → withDirectionIcon-56788c71.js} +2 -2
  513. package/amd/{withDirectionIcon-194f3242.js.map → withDirectionIcon-56788c71.js.map} +1 -1
  514. package/amd/withThemeProps-5ba8f3bc.js +1 -1
  515. package/cjs/{BarChart-a07c8a22.js → BarChart-af620cec.js} +2 -2
  516. package/cjs/{BarChart-a07c8a22.js.map → BarChart-af620cec.js.map} +1 -1
  517. package/cjs/{Chart-6e0cf724.js → Chart-6b63bb0b.js} +2 -2
  518. package/cjs/{Chart-6e0cf724.js.map → Chart-6b63bb0b.js.map} +1 -1
  519. package/cjs/{ComboChart-3d1bb4e9.js → ComboChart-58116ae8.js} +2 -2
  520. package/cjs/{ComboChart-3d1bb4e9.js.map → ComboChart-58116ae8.js.map} +1 -1
  521. package/cjs/{LineAreaChart-c6143d4b.js → LineAreaChart-b32fcb7b.js} +2 -2
  522. package/cjs/{LineAreaChart-c6143d4b.js.map → LineAreaChart-b32fcb7b.js.map} +1 -1
  523. package/cjs/PRIVATE_Chart.js +4 -4
  524. package/cjs/{ScatterChart-9a324d67.js → ScatterChart-0ec451fd.js} +2 -2
  525. package/cjs/{ScatterChart-9a324d67.js.map → ScatterChart-0ec451fd.js.map} +1 -1
  526. package/cjs/Theme-redwood/theme.css +230 -230
  527. package/cjs/Theme-stable/theme.css +256 -256
  528. package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +5 -5
  529. package/cjs/UNSAFE_BarChart.js +5 -5
  530. package/cjs/UNSAFE_ComboChart.js +5 -5
  531. package/cjs/UNSAFE_LineAreaChart.js +5 -5
  532. package/cjs/UNSAFE_ScatterChart.js +5 -5
  533. package/es/ActionCard-9f4e3613.js +1 -1
  534. package/es/BarChart-49c7f6bb.js +1 -1
  535. package/es/BarGroup-ac152c88.js +1 -1
  536. package/es/BaseButton-b5fc41a8.js +2 -2
  537. package/es/BaseCardView-5e0a327f.js +7 -7
  538. package/es/{BaseCardViewSelectionTest-639276bd.js → BaseCardViewSelectionTest-b3b001e6.js} +7 -7
  539. package/es/{BaseCardViewSelectionTest-639276bd.js.map → BaseCardViewSelectionTest-b3b001e6.js.map} +1 -1
  540. package/es/BaseNavigationListItem-44157da8.js +1 -1
  541. package/es/BaseRichSelection-908a6bc3.js +9 -9
  542. package/es/ButtonSet-474e170e.js +2 -2
  543. package/es/ButtonSetIconButton-34b24ad4.js +3 -3
  544. package/es/{Card-48705b23.js → Card-31a1cb19.js} +2 -2
  545. package/es/{Card-48705b23.js.map → Card-31a1cb19.js.map} +1 -1
  546. package/es/{Center-f5a074ea.js → Center-903e6ea1.js} +2 -2
  547. package/es/{Center-f5a074ea.js.map → Center-903e6ea1.js.map} +1 -1
  548. package/es/Chart-649fdf1c.js +8 -8
  549. package/es/CheckboxControl-1e686657.js +6 -6
  550. package/es/CheckboxRadioField-201ef340.js +7 -7
  551. package/es/Chip-9540ef60.js +1 -1
  552. package/es/ClearIcon-215c5c34.js +1 -1
  553. package/es/CollapseIcon-43663109.js +1 -1
  554. package/es/Collapsible-757eaed6.js +2 -2
  555. package/es/ComboChart-8ca6f857.js +2 -2
  556. package/es/CompactHelpSource-20f20c17.js +2 -2
  557. package/es/{CompactLabelAssistance-e6df8b6f.js → CompactLabelAssistance-d92b17d1.js} +5 -5
  558. package/es/{CompactLabelAssistance-e6df8b6f.js.map → CompactLabelAssistance-d92b17d1.js.map} +1 -1
  559. package/es/CompactUserAssistance-c2fafab0.js +4 -4
  560. package/es/ComponentMessageContainer-a06ceb16.js +4 -4
  561. package/es/ConveyorBeltItem-2a7cfd15.js +2 -2
  562. package/es/{DatePicker-f149bde7.js → DatePicker-2838c573.js} +6 -6
  563. package/es/{DatePicker-f149bde7.js.map → DatePicker-2838c573.js.map} +1 -1
  564. package/es/DatePickerHeader-151355b3.js +3 -3
  565. package/es/{Diagram-32842af8.js → Diagram-7236c495.js} +5 -5
  566. package/es/{Diagram-32842af8.js.map → Diagram-7236c495.js.map} +1 -1
  567. package/es/{Dialog-dbd00dbd.js → Dialog-4a0cb90c.js} +8 -8
  568. package/es/{Dialog-dbd00dbd.js.map → Dialog-4a0cb90c.js.map} +1 -1
  569. package/es/DirectionalCollapseArrowIcon-24020989.js +1 -1
  570. package/es/DirectionalExpandArrowIcon-28f288ca.js +1 -1
  571. package/es/{DragHandle-3010d22c.js → DragHandle-f9b35377.js} +2 -2
  572. package/es/{DragHandle-3010d22c.js.map → DragHandle-f9b35377.js.map} +1 -1
  573. package/es/{DrawerPopup-90be1472.js → DrawerPopup-dd60ef68.js} +7 -7
  574. package/es/{DrawerPopup-90be1472.js.map → DrawerPopup-dd60ef68.js.map} +1 -1
  575. package/es/DrawerPopupVariants.styles.css +5 -5
  576. package/es/DrawerPopupVariants.styles2.css +5 -5
  577. package/es/{Dropdown-8936afb0.js → Dropdown-ab7ecd4b.js} +5 -5
  578. package/es/{Dropdown-8936afb0.js.map → Dropdown-ab7ecd4b.js.map} +1 -1
  579. package/es/{EnvironmentProvider-e6ce326b.js → EnvironmentProvider-1580c879.js} +3 -3
  580. package/es/{EnvironmentProvider-e6ce326b.js.map → EnvironmentProvider-1580c879.js.map} +1 -1
  581. package/es/ExpandableList-84f08709.js +3 -3
  582. package/es/FilePicker-74669308.js +2 -2
  583. package/es/{Flex-dce7c423.js → Flex-ba379500.js} +2 -2
  584. package/es/{Flex-dce7c423.js.map → Flex-ba379500.js.map} +1 -1
  585. package/es/{Floating-bd10e1bb.js → Floating-94a06a14.js} +4 -4
  586. package/es/{Floating-bd10e1bb.js.map → Floating-94a06a14.js.map} +1 -1
  587. package/es/FormLayout-2fba104e.js +1 -1
  588. package/es/FormLayoutVariants.styles.css +14 -14
  589. package/es/FormLayoutVariants.styles2.css +14 -14
  590. package/es/Gantt-f95290cd.js +9 -9
  591. package/es/{Grid-a92f6ff7.js → Grid-48e5c78c.js} +2 -2
  592. package/es/{Grid-a92f6ff7.js.map → Grid-48e5c78c.js.map} +1 -1
  593. package/es/{Gridlines-14e60b77.js → Gridlines-bb3b92f4.js} +2 -2
  594. package/es/{Gridlines-14e60b77.js.map → Gridlines-bb3b92f4.js.map} +1 -1
  595. package/es/GroupLoadingIndicator-2a294121.js +1 -1
  596. package/es/{HighlightText-6fb192ee.js → HighlightText-a2f81a44.js} +2 -2
  597. package/es/{HighlightText-6fb192ee.js.map → HighlightText-a2f81a44.js.map} +1 -1
  598. package/es/Icon-43d05084.js +3 -3
  599. package/es/IconButton-b78b5ace.js +3 -3
  600. package/es/IconMenuButton-441b34f8.js +3 -3
  601. package/es/IconProgressButton-cb75faa2.js +3 -3
  602. package/es/IconSwitchButton-4febde18.js +3 -3
  603. package/es/IconToggleButton-299d5d98.js +3 -3
  604. package/es/{IconUserAssistance-bb4f169d.js → IconUserAssistance-264032b1.js} +3 -3
  605. package/es/{IconUserAssistance-bb4f169d.js.map → IconUserAssistance-264032b1.js.map} +1 -1
  606. package/es/Indexer-6c39ddf3.js +4 -4
  607. package/es/InlineHelpSource-e0c901ba.js +1 -1
  608. package/es/InlineUserAssistance-9b70db5b.js +5 -5
  609. package/es/InputDateMask-0b2a46b5.js +7 -7
  610. package/es/{InputDatePicker-2d3be3a0.js → InputDatePicker-60465b12.js} +10 -10
  611. package/es/{InputDatePicker-2d3be3a0.js.map → InputDatePicker-60465b12.js.map} +1 -1
  612. package/es/InputPassword-106c544f.js +4 -4
  613. package/es/InputText-2bf2ce27.js +6 -6
  614. package/es/Label-4503b935.js +5 -5
  615. package/es/LabelValueLayout-fa08943c.js +1 -1
  616. package/es/{Layer-f309effc.js → Layer-d4aca92e.js} +3 -3
  617. package/es/{Layer-f309effc.js.map → Layer-d4aca92e.js.map} +1 -1
  618. package/es/{LayerHost-ca080d9a.js → LayerHost-f7ef254c.js} +2 -2
  619. package/es/{LayerHost-ca080d9a.js.map → LayerHost-f7ef254c.js.map} +1 -1
  620. package/es/{LayerManager-3e4e8d1a.js → LayerManager-4ad387dc.js} +2 -2
  621. package/es/{LayerManager-3e4e8d1a.js.map → LayerManager-4ad387dc.js.map} +1 -1
  622. package/es/Legend-449e7201.js +3 -3
  623. package/es/{LineAreaChart-edf11a57.js → LineAreaChart-9a46dce5.js} +3 -3
  624. package/es/{LineAreaChart-edf11a57.js.map → LineAreaChart-9a46dce5.js.map} +1 -1
  625. package/es/{LineSeries-89d507a5.js → LineSeries-e71ae377.js} +2 -2
  626. package/es/{LineSeries-89d507a5.js.map → LineSeries-e71ae377.js.map} +1 -1
  627. package/es/Link-9803ca5b.js +1 -1
  628. package/es/List-da0ce081.js +5 -5
  629. package/es/{ListItemLayout-b580a2cb.js → ListItemLayout-1207112f.js} +2 -2
  630. package/es/{ListItemLayout-b580a2cb.js.map → ListItemLayout-1207112f.js.map} +1 -1
  631. package/es/ListView-5cada8e6.js +3 -3
  632. package/es/{LiveRegion-7d6e9b93.js → LiveRegion-d9f2bbdb.js} +2 -2
  633. package/es/{LiveRegion-7d6e9b93.js.map → LiveRegion-d9f2bbdb.js.map} +1 -1
  634. package/es/{MaxLengthLiveRegion-3d6867c3.js → MaxLengthLiveRegion-db713260.js} +3 -3
  635. package/es/{MaxLengthLiveRegion-3d6867c3.js.map → MaxLengthLiveRegion-db713260.js.map} +1 -1
  636. package/es/Menu-aa21f75f.js +6 -6
  637. package/es/MenuButton-fe7e2d06.js +2 -2
  638. package/es/MenuItem-01343558.js +1 -1
  639. package/es/Message-98038159.js +2 -2
  640. package/es/{MessageLayer-707a3302.js → MessageLayer-7650c582.js} +6 -6
  641. package/es/{MessageLayer-707a3302.js.map → MessageLayer-7650c582.js.map} +1 -1
  642. package/es/MessageToast-2b7922be.js +8 -8
  643. package/es/MessagesManager-9efc5d44.js +3 -3
  644. package/es/MeterBar-1319327c.js +5 -5
  645. package/es/MeterCircle-b52c28b1.js +5 -5
  646. package/es/{Modal-9bdb87a4.js → Modal-7efd2f81.js} +4 -4
  647. package/es/{Modal-9bdb87a4.js.map → Modal-7efd2f81.js.map} +1 -1
  648. package/es/{MonthView-7f913bb2.js → MonthView-df043775.js} +4 -4
  649. package/es/{MonthView-7f913bb2.js.map → MonthView-df043775.js.map} +1 -1
  650. package/es/{NavigationListItem-7e0a2d00.js → NavigationListItem-bdf7a2ab.js} +16 -3
  651. package/{amd/NavigationListItem-4e832bbf.js.map → es/NavigationListItem-bdf7a2ab.js.map} +1 -1
  652. package/es/NumberInputText-c71b0b51.js +6 -6
  653. package/es/{OverflowTabBar-8dbc44bf.js → OverflowTabBar-732d37e5.js} +2 -2
  654. package/es/{OverflowTabBar-8dbc44bf.js.map → OverflowTabBar-732d37e5.js.map} +1 -1
  655. package/es/{OverflowTabBarItem-63bd56a4.js → OverflowTabBarItem-b643a574.js} +5 -5
  656. package/es/{OverflowTabBarItem-63bd56a4.js.map → OverflowTabBarItem-b643a574.js.map} +1 -1
  657. package/es/PRIVATE_BaseCardView.js +21 -21
  658. package/es/PRIVATE_Chart.js +31 -31
  659. package/es/PRIVATE_CheckboxControl.js +23 -23
  660. package/es/PRIVATE_CheckboxRadioField.js +25 -25
  661. package/es/PRIVATE_ClearIcon.js +17 -17
  662. package/es/PRIVATE_DatePickerHeader.js +18 -18
  663. package/es/PRIVATE_DatePickerLayout.js +4 -4
  664. package/es/PRIVATE_EmbeddedIconButton.js +3 -3
  665. package/es/PRIVATE_FormControls.js +19 -19
  666. package/es/PRIVATE_IconSwitchButton.js +15 -15
  667. package/es/PRIVATE_Icons/CheckboxMixed.js +15 -15
  668. package/es/PRIVATE_Icons/CheckboxOff.js +15 -15
  669. package/es/PRIVATE_Icons/CheckboxOn.js +15 -15
  670. package/es/PRIVATE_Icons/DragV.js +15 -15
  671. package/es/PRIVATE_Icons/WarningS.js +15 -15
  672. package/es/PRIVATE_List.js +19 -19
  673. package/es/PRIVATE_Message.js +18 -18
  674. package/es/PRIVATE_MessageLayer.js +12 -12
  675. package/es/PRIVATE_MonthView.js +7 -7
  676. package/es/PRIVATE_MonthYearGridView.js +7 -7
  677. package/es/PRIVATE_PlotArea.js +4 -4
  678. package/es/PRIVATE_RevealToggleIcon.js +16 -16
  679. package/es/PRIVATE_RichSelectionCommon.js +26 -26
  680. package/es/PRIVATE_SelectCommon.js +28 -28
  681. package/es/PRIVATE_StyledCard.js +4 -4
  682. package/es/PRIVATE_StyledCheckbox.js +15 -15
  683. package/es/PRIVATE_Table.js +24 -24
  684. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +15 -15
  685. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +15 -15
  686. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +15 -15
  687. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +15 -15
  688. package/es/PRIVATE_ThemedIcons/CheckIcon.js +15 -15
  689. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +15 -15
  690. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +15 -15
  691. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +15 -15
  692. package/es/PRIVATE_ThemedIcons/CloseIcon.js +15 -15
  693. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +16 -16
  694. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +15 -15
  695. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +15 -15
  696. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +15 -15
  697. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +16 -16
  698. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +16 -16
  699. package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +15 -15
  700. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +15 -15
  701. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +15 -15
  702. package/es/PRIVATE_ThemedIcons/HelpIcon.js +15 -15
  703. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +15 -15
  704. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +15 -15
  705. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +15 -15
  706. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +15 -15
  707. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +15 -15
  708. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +15 -15
  709. package/es/PRIVATE_ThemedIcons/MinusIcon.js +15 -15
  710. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +15 -15
  711. package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +15 -15
  712. package/es/PRIVATE_ThemedIcons/PlusIcon.js +15 -15
  713. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +15 -15
  714. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +15 -15
  715. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +15 -15
  716. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +15 -15
  717. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +15 -15
  718. package/es/PRIVATE_ThemedIcons/ViewIcon.js +15 -15
  719. package/es/PRIVATE_TimeComponent.js +17 -17
  720. package/es/PRIVATE_VisOverview.js +15 -15
  721. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  722. package/es/PictoChart-b3fc22fd.js +6 -6
  723. package/es/PieChart-b54696a5.js +6 -6
  724. package/es/{Popup-0b60095e.js → Popup-67ec4db2.js} +9 -9
  725. package/es/{Popup-0b60095e.js.map → Popup-67ec4db2.js.map} +1 -1
  726. package/es/{ProgressBar-717be5e8.js → ProgressBar-cad7d04b.js} +3 -3
  727. package/es/{ProgressBar-717be5e8.js.map → ProgressBar-cad7d04b.js.map} +1 -1
  728. package/es/ProgressButton-40c3b504.js +3 -3
  729. package/es/ProgressButtonLabelLayout-8c64cece.js +3 -3
  730. package/es/{ProgressCircle-d75b0848.js → ProgressCircle-7d883146.js} +2 -2
  731. package/es/{ProgressCircle-d75b0848.js.map → ProgressCircle-7d883146.js.map} +1 -1
  732. package/es/RadioItem-a1599b77.js +6 -6
  733. package/es/RatingGauge-6c13b141.js +8 -8
  734. package/es/ReadonlyTextFieldInput-d6b1fac1.js +1 -1
  735. package/es/RemovableNavigationListItem-84fad399.js +1 -1
  736. package/es/RemovableTabBarItem-42735820.js +2 -2
  737. package/es/ReorderableTabBar-1b2c9ebe.js +3 -3
  738. package/es/RevealToggleIcon-abf5f233.js +1 -1
  739. package/es/{ScatterChart-622aac36.js → ScatterChart-59c7f1d7.js} +3 -3
  740. package/es/{ScatterChart-622aac36.js.map → ScatterChart-59c7f1d7.js.map} +1 -1
  741. package/es/SectionalLegend-fb0128ae.js +4 -4
  742. package/es/{SectionedContent-89fd6108.js → SectionedContent-db1b2e44.js} +5 -5
  743. package/es/{SectionedContent-89fd6108.js.map → SectionedContent-db1b2e44.js.map} +1 -1
  744. package/es/SelectMultiple-48af2264.js +8 -8
  745. package/es/SelectSingle-56ff2907.js +7 -7
  746. package/es/{SelectionCard-4cf71979.js → SelectionCard-f4e6f6f4.js} +2 -2
  747. package/es/{SelectionCard-4cf71979.js.map → SelectionCard-f4e6f6f4.js.map} +1 -1
  748. package/es/Selector-cc435916.js +1 -1
  749. package/es/{SelectorAll-401564d3.js → SelectorAll-fb5a5a47.js} +7 -7
  750. package/es/{SelectorAll-401564d3.js.map → SelectorAll-fb5a5a47.js.map} +1 -1
  751. package/es/{Sheet-754bd0f0.js → Sheet-2d9c641b.js} +3 -3
  752. package/es/{Sheet-754bd0f0.js.map → Sheet-2d9c641b.js.map} +1 -1
  753. package/es/SplitMenuButton-1c556d1d.js +2 -2
  754. package/es/{StyledCard-2dc6d348.js → StyledCard-75bcdad7.js} +2 -2
  755. package/es/{StyledCard-2dc6d348.js.map → StyledCard-75bcdad7.js.map} +1 -1
  756. package/es/{StyledLabelValueLayout-f3d69ee8.js → StyledLabelValueLayout-1b0b4a96.js} +2 -2
  757. package/es/{StyledLabelValueLayout-f3d69ee8.js.map → StyledLabelValueLayout-1b0b4a96.js.map} +1 -1
  758. package/es/StyledTextField-21e8afef.js +3 -3
  759. package/es/TabBar-ef456a2c.js +5 -5
  760. package/es/TabBarItem-af8b903f.js +3 -3
  761. package/es/TabBarLayout-d7d27c34.js +1 -1
  762. package/es/TabBarMixed-71314dd9.js +5 -5
  763. package/es/{TabBarMixedSeparator-dd80c7f2.js → TabBarMixedSeparator-1aacc254.js} +2 -2
  764. package/es/{TabBarMixedSeparator-dd80c7f2.js.map → TabBarMixedSeparator-1aacc254.js.map} +1 -1
  765. package/es/Table-895c20ae.js +9 -9
  766. package/es/TagCloud-ed095030.js +8 -8
  767. package/es/TextArea-f411ff47.js +5 -5
  768. package/es/TextAreaAutosize-163b776f.js +5 -5
  769. package/es/TextField-28d425d6.js +3 -3
  770. package/es/TextFieldInput-c9239b1e.js +1 -1
  771. package/es/Theme-redwood/theme.css +426 -426
  772. package/es/Theme-stable/theme.css +311 -311
  773. package/es/TimeComponentCanvas2D-70d21419.js +5 -5
  774. package/es/Toolbar-4fe755d3.js +1 -1
  775. package/es/TruncatingBadge-a6ead29d.js +1 -1
  776. package/es/TruncatingText-107fcc48.js +1 -1
  777. package/es/UNSAFE_ActionCard.js +3 -3
  778. package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +31 -31
  779. package/es/UNSAFE_BarChart.js +31 -31
  780. package/es/UNSAFE_BaseButton.js +3 -3
  781. package/es/UNSAFE_Button.js +3 -3
  782. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +21 -21
  783. package/es/UNSAFE_ButtonSet.js +4 -4
  784. package/es/UNSAFE_ButtonSetButton.js +3 -3
  785. package/es/UNSAFE_ButtonSetIconButton.js +15 -15
  786. package/es/UNSAFE_ButtonSetItem.js +15 -15
  787. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  788. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  789. package/es/UNSAFE_Card.js +5 -5
  790. package/es/UNSAFE_CardFlexView.js +21 -21
  791. package/es/UNSAFE_CardGridView.js +21 -21
  792. package/es/UNSAFE_Center.js +5 -5
  793. package/es/UNSAFE_Checkbox.js +23 -23
  794. package/es/UNSAFE_CheckboxItem.js +23 -23
  795. package/es/UNSAFE_CheckboxSet.js +24 -24
  796. package/es/UNSAFE_Chip.js +2 -2
  797. package/es/UNSAFE_Collapsible.js +17 -17
  798. package/es/UNSAFE_ComboChart.js +33 -33
  799. package/es/UNSAFE_ComponentMessage.js +18 -18
  800. package/es/UNSAFE_ConveyorBelt.js +15 -15
  801. package/es/UNSAFE_DatePicker.js +23 -23
  802. package/es/UNSAFE_Diagram.js +20 -20
  803. package/es/UNSAFE_Dialog.js +21 -21
  804. package/es/UNSAFE_DragHandle.js +17 -17
  805. package/es/UNSAFE_DrawerLayout.js +12 -12
  806. package/es/UNSAFE_DrawerPopup/themes/redwood/DrawerPopupTheme.js +1 -1
  807. package/es/UNSAFE_DrawerPopup/themes/redwood/DrawerPopupVariants.css.js +1 -1
  808. package/es/UNSAFE_DrawerPopup/themes/stable/DrawerPopupTheme.js +1 -1
  809. package/es/UNSAFE_DrawerPopup/themes/stable/DrawerPopupVariants.css.js +1 -1
  810. package/es/UNSAFE_DrawerPopup.js +14 -14
  811. package/es/UNSAFE_Dropdown.js +13 -13
  812. package/es/UNSAFE_Environment.js +4 -4
  813. package/es/UNSAFE_ExpandableList.js +22 -22
  814. package/es/UNSAFE_FilePicker.js +4 -4
  815. package/es/UNSAFE_Flex.js +4 -4
  816. package/es/UNSAFE_Floating.js +11 -11
  817. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutTheme.js +1 -1
  818. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutVariants.css.js +1 -1
  819. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutTheme.js +1 -1
  820. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutVariants.css.js +1 -1
  821. package/es/UNSAFE_FormLayout.js +3 -3
  822. package/es/UNSAFE_Gantt.js +22 -22
  823. package/es/UNSAFE_Grid.js +4 -4
  824. package/es/UNSAFE_HighlightText.js +4 -4
  825. package/es/UNSAFE_Icon.js +15 -15
  826. package/es/UNSAFE_IconButton.js +15 -15
  827. package/es/UNSAFE_IconMenuButton.js +21 -21
  828. package/es/UNSAFE_IconProgressButton.js +18 -18
  829. package/es/UNSAFE_IconToggleButton.js +15 -15
  830. package/es/UNSAFE_Indexer.js +6 -6
  831. package/es/UNSAFE_InputDateMask.js +25 -25
  832. package/es/UNSAFE_InputDatePicker.js +114 -114
  833. package/es/UNSAFE_InputPassword.js +24 -24
  834. package/es/UNSAFE_InputSensitiveText.js +26 -26
  835. package/es/UNSAFE_InputText.js +27 -27
  836. package/es/UNSAFE_InputTimeMask.js +25 -25
  837. package/es/UNSAFE_Label.js +23 -23
  838. package/es/UNSAFE_LabelValueLayout.js +4 -4
  839. package/es/UNSAFE_LabelledLink.js +25 -25
  840. package/es/UNSAFE_Layer.js +8 -8
  841. package/es/UNSAFE_Legend.js +25 -25
  842. package/es/UNSAFE_LineAreaChart.js +34 -34
  843. package/es/UNSAFE_Link.js +2 -2
  844. package/es/UNSAFE_ListItemLayout.js +5 -5
  845. package/es/UNSAFE_ListView.js +28 -28
  846. package/es/UNSAFE_LiveRegion.js +4 -4
  847. package/es/UNSAFE_Menu.js +23 -23
  848. package/es/UNSAFE_MenuButton.js +21 -21
  849. package/es/UNSAFE_MessageBanner.js +18 -18
  850. package/es/UNSAFE_MessageToast.js +21 -21
  851. package/es/UNSAFE_MeterBar.js +16 -16
  852. package/es/UNSAFE_MeterCircle.js +17 -17
  853. package/es/UNSAFE_Modal.js +9 -9
  854. package/es/UNSAFE_NavigationList.js +23 -23
  855. package/es/UNSAFE_NavigationListCommon.js +17 -17
  856. package/es/UNSAFE_NumberInputText.js +26 -26
  857. package/es/UNSAFE_OverflowTabBar.js +27 -27
  858. package/es/UNSAFE_PictoChart.js +14 -14
  859. package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +22 -22
  860. package/es/UNSAFE_PieChart.js +22 -22
  861. package/es/UNSAFE_Popup.js +17 -17
  862. package/es/UNSAFE_ProgressBar.js +5 -5
  863. package/es/UNSAFE_ProgressButton.js +18 -18
  864. package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
  865. package/es/UNSAFE_ProgressCircle.js +4 -4
  866. package/es/UNSAFE_RadioItem.js +23 -23
  867. package/es/UNSAFE_RadioSet.js +24 -24
  868. package/es/UNSAFE_RatingGauge.js +17 -17
  869. package/es/UNSAFE_ReorderableTabBar.js +25 -25
  870. package/es/UNSAFE_RichCheckboxSet.js +26 -26
  871. package/es/UNSAFE_RichRadioSet.js +26 -26
  872. package/es/UNSAFE_RichSelectionItem.js +20 -20
  873. package/es/UNSAFE_ScatterChart.js +34 -34
  874. package/es/UNSAFE_SectionalLegend.js +26 -26
  875. package/es/UNSAFE_SelectMultiple.js +31 -31
  876. package/es/UNSAFE_SelectSingle.js +31 -31
  877. package/es/UNSAFE_SelectionCard.js +5 -5
  878. package/es/UNSAFE_Selector.js +15 -15
  879. package/es/UNSAFE_SelectorAll.js +19 -19
  880. package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +15 -15
  881. package/es/UNSAFE_Sheet.js +12 -12
  882. package/es/UNSAFE_SplitMenuButton.js +21 -21
  883. package/es/UNSAFE_TabBar.js +27 -27
  884. package/es/UNSAFE_TabBarCommon.js +27 -27
  885. package/es/UNSAFE_TabBarMixed.js +28 -28
  886. package/es/UNSAFE_TableView.js +24 -24
  887. package/es/UNSAFE_TagCloud.js +24 -24
  888. package/es/UNSAFE_TextArea.js +26 -26
  889. package/es/UNSAFE_TextAreaAutosize.js +26 -26
  890. package/es/UNSAFE_TextField.js +8 -8
  891. package/es/UNSAFE_ToggleButton.js +3 -3
  892. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +23 -23
  893. package/es/UNSAFE_Toolbar.js +4 -4
  894. package/es/UNSAFE_Train.js +16 -16
  895. package/es/UNSAFE_TruncatingBadge.js +16 -16
  896. package/es/UNSAFE_TruncatingText.js +16 -16
  897. package/es/UNSAFE_UserAssistance.js +24 -24
  898. package/es/UNSAFE_View.js +7 -7
  899. package/es/UNSAFE_VirtualizedListView.js +19 -19
  900. package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
  901. package/es/UNSAFE_VisProgressiveLoader.js +6 -6
  902. package/es/UNSAFE_VisStatusMessage.js +6 -6
  903. package/es/UNSAFE_WindowOverlay.js +4 -4
  904. package/es/{View-6941c4ec.js → View-79162397.js} +5 -5
  905. package/es/{View-6941c4ec.js.map → View-79162397.js.map} +1 -1
  906. package/es/{VisNoData-6c9dff1d.js → VisNoData-f70e7c57.js} +3 -3
  907. package/es/{VisNoData-6c9dff1d.js.map → VisNoData-f70e7c57.js.map} +1 -1
  908. package/es/{VisProgressiveLoader-af51c524.js → VisProgressiveLoader-4fe41bcb.js} +3 -3
  909. package/es/{VisProgressiveLoader-af51c524.js.map → VisProgressiveLoader-4fe41bcb.js.map} +1 -1
  910. package/es/{VisTabularDatatip-1aba2c3f.js → VisTabularDatatip-24b65098.js} +2 -2
  911. package/es/{VisTabularDatatip-1aba2c3f.js.map → VisTabularDatatip-24b65098.js.map} +1 -1
  912. package/es/{WindowOverlay-77a01a5a.js → WindowOverlay-8fbe3e1c.js} +2 -2
  913. package/es/{WindowOverlay-77a01a5a.js.map → WindowOverlay-8fbe3e1c.js.map} +1 -1
  914. package/es/{YearsGridView-38b7d276.js → YearsGridView-52c0d22c.js} +4 -4
  915. package/es/{YearsGridView-38b7d276.js.map → YearsGridView-52c0d22c.js.map} +1 -1
  916. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  917. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  918. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  919. package/es/hooks/PRIVATE_useChartContextMenu.js +21 -21
  920. package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
  921. package/es/hooks/PRIVATE_useChartEvents.js +18 -18
  922. package/es/hooks/PRIVATE_useChartMarquee.js +17 -17
  923. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  924. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  925. package/es/hooks/PRIVATE_useDatatip.js +12 -12
  926. package/es/hooks/PRIVATE_useFloating.js +4 -4
  927. package/es/hooks/PRIVATE_useReorderable.js +5 -5
  928. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  929. package/es/hooks/PRIVATE_useSelection.js +4 -4
  930. package/es/hooks/PRIVATE_useTabBar.js +4 -4
  931. package/es/hooks/PRIVATE_useTooltipOnTruncation.js +16 -16
  932. package/es/hooks/PRIVATE_useVisContextMenu.js +21 -21
  933. package/es/hooks/PRIVATE_useVisDragModeControls.js +17 -17
  934. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  935. package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
  936. package/es/hooks/PRIVATE_useVisSelection.js +13 -13
  937. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  938. package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
  939. package/es/hooks/UNSAFE_useDensity.js +3 -3
  940. package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
  941. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  942. package/es/hooks/UNSAFE_useScale.js +3 -3
  943. package/es/hooks/UNSAFE_useTestId.js +3 -3
  944. package/es/hooks/UNSAFE_useTheme.js +3 -3
  945. package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
  946. package/es/hooks/UNSAFE_useTooltip.js +16 -16
  947. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  948. package/es/hooks/UNSAFE_useUser.js +3 -3
  949. package/es/{index-b52817d6.js → index-5d0fe60d.js} +2 -2
  950. package/es/index-5d0fe60d.js.map +1 -0
  951. package/es/listViewSelectionTests-cd66d645.js +3 -3
  952. package/es/{popupUtils-0d643529.js → popupUtils-a7caf5e4.js} +2 -2
  953. package/es/{popupUtils-0d643529.js.map → popupUtils-a7caf5e4.js.map} +1 -1
  954. package/es/{render-f43f5632.js → render-c7ce760e.js} +3 -3
  955. package/es/{render-f43f5632.js.map → render-c7ce760e.js.map} +1 -1
  956. package/es/{tabbableUtils-07dfa9ce.js → tabbableUtils-b22dbd92.js} +3 -3
  957. package/es/{tabbableUtils-07dfa9ce.js.map → tabbableUtils-b22dbd92.js.map} +1 -1
  958. package/es/{testData-75eb4f26.js → testData-a52937d8.js} +3 -3
  959. package/es/{testData-75eb4f26.js.map → testData-a52937d8.js.map} +1 -1
  960. package/es/{tooltipUtils-ae6aba72.js → tooltipUtils-179de68d.js} +5 -5
  961. package/es/{tooltipUtils-ae6aba72.js.map → tooltipUtils-179de68d.js.map} +1 -1
  962. package/es/useCellNavigation-1a33b90e.js +1 -1
  963. package/es/useChartContextMenu-bedf2f88.js +2 -2
  964. package/es/{useChartDatatip-ae7cffcb.js → useChartDatatip-652d9595.js} +4 -4
  965. package/es/{useChartDatatip-ae7cffcb.js.map → useChartDatatip-652d9595.js.map} +1 -1
  966. package/es/{useColorScheme-831abf37.js → useColorScheme-4414c0b2.js} +2 -2
  967. package/es/{useColorScheme-831abf37.js.map → useColorScheme-4414c0b2.js.map} +1 -1
  968. package/es/useContextMenu-006e82dd.js +2 -2
  969. package/es/{useCssVars-6295c03a.js → useCssVars-0788f28c.js} +5 -5
  970. package/es/{useCssVars-6295c03a.js.map → useCssVars-0788f28c.js.map} +1 -1
  971. package/es/{useCurrentBgColor-93b70106.js → useCurrentBgColor-cc39a2b0.js} +2 -2
  972. package/es/{useCurrentBgColor-93b70106.js.map → useCurrentBgColor-cc39a2b0.js.map} +1 -1
  973. package/es/{useCurrentKey-30089ba4.js → useCurrentKey-b88513bf.js} +2 -2
  974. package/es/{useCurrentKey-30089ba4.js.map → useCurrentKey-b88513bf.js.map} +1 -1
  975. package/es/{useDatatip-3f284ad3.js → useDatatip-f80a8b4e.js} +4 -4
  976. package/es/{useDatatip-3f284ad3.js.map → useDatatip-f80a8b4e.js.map} +1 -1
  977. package/es/{useDensity-2ca5177c.js → useDensity-575ebaf2.js} +2 -2
  978. package/es/{useDensity-2ca5177c.js.map → useDensity-575ebaf2.js.map} +1 -1
  979. package/es/{useFloating-b1378797.js → useFloating-85ac3a8e.js} +2 -2
  980. package/es/{useFloating-b1378797.js.map → useFloating-85ac3a8e.js.map} +1 -1
  981. package/es/{useKeyboardEvents-7a19700e.js → useKeyboardEvents-8d2a44b1.js} +2 -2
  982. package/es/{useKeyboardEvents-7a19700e.js.map → useKeyboardEvents-8d2a44b1.js.map} +1 -1
  983. package/es/useLegendContextMenu-30eaa291.js +4 -4
  984. package/es/{useMeterDatatip-814ca87d.js → useMeterDatatip-ea50f0f1.js} +3 -3
  985. package/es/{useMeterDatatip-814ca87d.js.map → useMeterDatatip-ea50f0f1.js.map} +1 -1
  986. package/es/{useOutsideClick-d0b44256.js → useOutsideClick-866db9b2.js} +2 -2
  987. package/es/{useOutsideClick-d0b44256.js.map → useOutsideClick-866db9b2.js.map} +1 -1
  988. package/es/{usePopupAnimation-0c5517c7.js → usePopupAnimation-93950404.js} +2 -2
  989. package/es/{usePopupAnimation-0c5517c7.js.map → usePopupAnimation-93950404.js.map} +1 -1
  990. package/es/{usePrefixSuffix-28d8172f.js → usePrefixSuffix-2741adb3.js} +2 -2
  991. package/es/{usePrefixSuffix-28d8172f.js.map → usePrefixSuffix-2741adb3.js.map} +1 -1
  992. package/es/{useReorderableItem-abc9c68c.js → useReorderableItem-2a361fd4.js} +3 -3
  993. package/es/{useReorderableItem-abc9c68c.js.map → useReorderableItem-2a361fd4.js.map} +1 -1
  994. package/es/{useRovingTabIndexContainer-d8dcffff.js → useRovingTabIndexContainer-7b1d563b.js} +2 -2
  995. package/es/{useRovingTabIndexContainer-d8dcffff.js.map → useRovingTabIndexContainer-7b1d563b.js.map} +1 -1
  996. package/es/{useScale-c315e304.js → useScale-54f14cdc.js} +2 -2
  997. package/es/{useScale-c315e304.js.map → useScale-54f14cdc.js.map} +1 -1
  998. package/es/useSelectCommon-b5028a6e.js +11 -11
  999. package/es/{useSelectDrill-9eb9b7fa.js → useSelectDrill-9f0f793e.js} +3 -3
  1000. package/es/{useSelectDrill-9eb9b7fa.js.map → useSelectDrill-9f0f793e.js.map} +1 -1
  1001. package/es/{useSelection-5375aa2e.js → useSelection-3c8cd738.js} +2 -2
  1002. package/es/{useSelection-5375aa2e.js.map → useSelection-3c8cd738.js.map} +1 -1
  1003. package/es/{useSelection-534b1fa0.js → useSelection-82fe842d.js} +5 -5
  1004. package/es/{useSelection-534b1fa0.js.map → useSelection-82fe842d.js.map} +1 -1
  1005. package/es/useTabBar-d9412667.js +1 -1
  1006. package/es/{useTestId-014cca7c.js → useTestId-8b32167f.js} +2 -2
  1007. package/es/{useTestId-014cca7c.js.map → useTestId-8b32167f.js.map} +1 -1
  1008. package/es/{useTheme-a4243428.js → useTheme-858b119b.js} +2 -2
  1009. package/es/{useTheme-a4243428.js.map → useTheme-858b119b.js.map} +1 -1
  1010. package/es/{useThemeInterpolations-93048af6.js → useThemeInterpolations-2531ab6d.js} +5 -5
  1011. package/es/{useThemeInterpolations-93048af6.js.map → useThemeInterpolations-2531ab6d.js.map} +1 -1
  1012. package/es/{useTooltip-d4dfd848.js → useTooltip-0a3e4842.js} +5 -5
  1013. package/es/{useTooltip-d4dfd848.js.map → useTooltip-0a3e4842.js.map} +1 -1
  1014. package/es/{useTooltipOnTruncation-82d93e22.js → useTooltipOnTruncation-f5d75b1b.js} +4 -4
  1015. package/es/{useTooltipOnTruncation-82d93e22.js.map → useTooltipOnTruncation-f5d75b1b.js.map} +1 -1
  1016. package/es/{useTranslationBundle-29a1abb3.js → useTranslationBundle-0dff3ab2.js} +2 -2
  1017. package/es/{useTranslationBundle-29a1abb3.js.map → useTranslationBundle-0dff3ab2.js.map} +1 -1
  1018. package/es/{useUser-9c8d0e57.js → useUser-6a7f6df3.js} +2 -2
  1019. package/es/{useUser-9c8d0e57.js.map → useUser-6a7f6df3.js.map} +1 -1
  1020. package/es/useVisDragModeControls-13a8e826.js +1 -1
  1021. package/es/{useVisEvents-45115f09.js → useVisEvents-8d888727.js} +2 -2
  1022. package/es/{useVisEvents-45115f09.js.map → useVisEvents-8d888727.js.map} +1 -1
  1023. package/es/utils/PRIVATE_tooltipUtils.js +14 -14
  1024. package/es/utils/PRIVATE_visTestUtils.js +6 -6
  1025. package/es/utils/UNSAFE_popupUtils.js +8 -8
  1026. package/es/{withDirectionIcon-70ce263c.js → withDirectionIcon-938d7cdf.js} +2 -2
  1027. package/es/{withDirectionIcon-70ce263c.js.map → withDirectionIcon-938d7cdf.js.map} +1 -1
  1028. package/es/withThemeProps-49e8a2b5.js +2 -2
  1029. package/package.json +2 -2
  1030. package/amd/BaseNavigationListItem-ef8bf611.js +0 -2
  1031. package/amd/BaseNavigationListItem-ef8bf611.js.map +0 -1
  1032. package/amd/CompactLabelAssistance-82361ea6.js +0 -2
  1033. package/amd/DragHandle-d89ea5fd.js +0 -2
  1034. package/amd/Dropdown-37339c89.js +0 -2
  1035. package/amd/LayerManager-6c0b0eed.js +0 -2
  1036. package/amd/List-cf09a2fb.js +0 -2
  1037. package/amd/LoadMoreCollection-a6adbc3f.js +0 -2
  1038. package/amd/MaxLengthLiveRegion-7723b0df.js +0 -2
  1039. package/amd/NavigationListItem-4e832bbf.js +0 -2
  1040. package/amd/OverflowTabBarItem-4c54927d.js +0 -2
  1041. package/amd/RemovableNavigationListItem-87e208e1.js +0 -2
  1042. package/amd/SectionedContent-d75017a3.js +0 -2
  1043. package/amd/SelectionCard-baeadf9f.js +0 -2
  1044. package/amd/TabBar-8a0cbff2.js +0 -2
  1045. package/amd/TabBarMixed-d4482b12.js +0 -2
  1046. package/amd/VirtualizedListView-061057dd.js +0 -2
  1047. package/amd/VisProgressiveLoader-c90f62c3.js +0 -2
  1048. package/amd/index-32a870a0.js.map +0 -1
  1049. package/amd/render-6d2dc229.js +0 -2
  1050. package/amd/tooltipUtils-304eef18.js +0 -2
  1051. package/amd/useCurrentKey-5a5ffb1e.js +0 -2
  1052. package/amd/useMeterDatatip-8702ee6e.js +0 -2
  1053. package/amd/usePopupAnimation-7023407f.js +0 -2
  1054. package/amd/usePrefixSuffix-19a86824.js +0 -2
  1055. package/amd/useThemeInterpolations-95e6f849.js +0 -2
  1056. package/es/NavigationListItem-7e0a2d00.js.map +0 -1
  1057. package/es/index-b52817d6.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useSelectCommon-dfd17adb.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,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AuBd,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-736de0ee.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,EAA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AR,wBACA7B,kBACAF,iBAGA9L,UAAWA,GAAa8L,EACxBS,kBACAX,eACAtJ,qBACAwE,cACApE,aACA2J,wBACAN,kBACAW,eACA+B,gBACAhC,YAEJ"}
@@ -1,2 +1,2 @@
1
- define(['exports', './mergeProps-bcfa6a92', './useChartDataCursor-da191930', './useChartDatatip-1f138781', './eventsUtils-edf8f4e5', './accUtils-93ee6f16', './useChartDrill-adc49ac4', './useSelection-4c8e905b'], (function(e,t,o,a,r,s,i,n){"use strict";e.useChartDatatipAndCursor=function({series:e,groups:r,width:s,height:i,findNearest:n,getMarkerInfo:l,onDataCursorPositionChange:u,isDataCursorEnabled:d,dataCursorPosition:c,dataCursorStyle:p,hoveredItemInfo:f,focusedItemInfo:g,getDataItem:C,getDataItemPos:I,datatip:D,valueFormats:m,isHoriz:h,xScale:P,yScale:x,plotAreaSpace:S,timeAxisType:b,touchResponse:y,isDisabled:A,formatAxisLabel:v,formatYValue:E,hasXYValues:M}){const{datatipContent:R,datatipProps:G}=a.useChartDatatip({series:e,groups:r,width:s,height:i,isDataCursorEnabled:d,dataCursorPosition:c,hoveredItemInfo:f,getDataItem:C,getDataItemPos:I,focusedItemInfo:g,datatip:D,valueFormats:m,isHoriz:h,xScale:P,findNearest:n,timeAxisType:b,touchResponse:y,isDisabled:A,formatAxisLabel:v,formatYValue:E,hasXYValues:M}),{dataCursorContent:T,dataCursorProps:V}=o.useChartDataCursor({touchResponse:y,findNearest:n,dataCursorPosition:c,onDataCursorPositionChange:u,isDataCursorEnabled:d,dataCursorStyle:p,isHoriz:h,getMarkerInfo:l,focusedItemInfo:g,plotAreaSpace:S,yScale:x,xScale:P,getDataItemPos:I});return{datatipContent:R,dataCursorContent:T,datatipProps:t.mergeProps(V,G)}},e.useSelectDrill=function({selectionMode:e,selection:o,onChange:a,rootRef:s,drilling:l,onItemDrill:u,onGroupDrill:d,focusedGroupInfo:c,focusedItemInfo:p,groups:f,getDataItem:g,getDataById:C,ignoreAsTrigger:I}){const{selectionProps:D,selectionContent:m}=n.useSelection({idExtracter:e=>{const t=p.isCurrent&&"keyup"===e.type?p:r.getInfo(s,e.target);return t&&null!=t.seriesIndex&&null!=t.groupIndex?g(t.seriesIndex,t.groupIndex)?.id:void 0},isDrillEnabled:"on"===l,selection:o,selectionMode:e,onChange:a,getDataById:C,ignoreAsTrigger:I}),h=i.useChartDrill({rootRef:s,selectionMode:e,drilling:l,focusedItemInfo:p,focusedGroupInfo:c,groups:f,getDataItem:g,onItemDrill:u,onGroupDrill:d});return{selectDrillProps:t.mergeProps(D,h),selectionContent:m}}}));
2
- //# sourceMappingURL=useSelectDrill-03c65602.js.map
1
+ define(['exports', './mergeProps-bcfa6a92', './useChartDataCursor-da191930', './useChartDatatip-f3574090', './eventsUtils-edf8f4e5', './accUtils-93ee6f16', './useChartDrill-adc49ac4', './useSelection-5128f1e7'], (function(e,t,o,a,r,s,i,n){"use strict";e.useChartDatatipAndCursor=function({series:e,groups:r,width:s,height:i,findNearest:n,getMarkerInfo:l,onDataCursorPositionChange:u,isDataCursorEnabled:d,dataCursorPosition:c,dataCursorStyle:p,hoveredItemInfo:f,focusedItemInfo:g,getDataItem:C,getDataItemPos:I,datatip:D,valueFormats:m,isHoriz:h,xScale:P,yScale:x,plotAreaSpace:S,timeAxisType:y,touchResponse:b,isDisabled:A,formatAxisLabel:v,formatYValue:E,hasXYValues:M}){const{datatipContent:R,datatipProps:G}=a.useChartDatatip({series:e,groups:r,width:s,height:i,isDataCursorEnabled:d,dataCursorPosition:c,hoveredItemInfo:f,getDataItem:C,getDataItemPos:I,focusedItemInfo:g,datatip:D,valueFormats:m,isHoriz:h,xScale:P,findNearest:n,timeAxisType:y,touchResponse:b,isDisabled:A,formatAxisLabel:v,formatYValue:E,hasXYValues:M}),{dataCursorContent:T,dataCursorProps:V}=o.useChartDataCursor({touchResponse:b,findNearest:n,dataCursorPosition:c,onDataCursorPositionChange:u,isDataCursorEnabled:d,dataCursorStyle:p,isHoriz:h,getMarkerInfo:l,focusedItemInfo:g,plotAreaSpace:S,yScale:x,xScale:P,getDataItemPos:I});return{datatipContent:R,dataCursorContent:T,datatipProps:t.mergeProps(V,G)}},e.useSelectDrill=function({selectionMode:e,selection:o,onChange:a,rootRef:s,drilling:l,onItemDrill:u,onGroupDrill:d,focusedGroupInfo:c,focusedItemInfo:p,groups:f,getDataItem:g,getDataById:C,ignoreAsTrigger:I}){const{selectionProps:D,selectionContent:m}=n.useSelection({idExtracter:e=>{const t=p.isCurrent&&"keyup"===e.type?p:r.getInfo(s,e.target);return t&&null!=t.seriesIndex&&null!=t.groupIndex?g(t.seriesIndex,t.groupIndex)?.id:void 0},isDrillEnabled:"on"===l,selection:o,selectionMode:e,onChange:a,getDataById:C,ignoreAsTrigger:I}),h=i.useChartDrill({rootRef:s,selectionMode:e,drilling:l,focusedItemInfo:p,focusedGroupInfo:c,groups:f,getDataItem:g,onItemDrill:u,onGroupDrill:d});return{selectDrillProps:t.mergeProps(D,h),selectionContent:m}}}));
2
+ //# sourceMappingURL=useSelectDrill-6b0b6da7.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSelectDrill-03c65602.js","sources":["../../src/hooks/PRIVATE_useChartEvents/useDatatipAndCursor.ts","../../src/hooks/PRIVATE_useChartEvents/useSelectDrill.ts"],"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 { mergeProps } from '#utils/UNSAFE_mergeProps';\nimport { useChartDataCursor } from '#hooks/PRIVATE_useChartDataCursor';\nimport { useChartDatatip } from '#hooks/PRIVATE_useChartDatatip';\nimport { LineAreaItem } from '#UNSAFE_LineAreaChart/lineAreaChart.types';\nimport { ScatterItem } from '#UNSAFE_ScatterChart/scatterChart.types';\nimport { BarItemData } from '#UNSAFE_BarChart/barChart.types';\n\ntype DataCursorProps = Parameters<typeof useChartDataCursor>[0];\ntype DatatipProps<\n K extends string | number,\n D extends LineAreaItem<K> | ScatterItem<K> | BarItemData<K>\n> = Parameters<typeof useChartDatatip<K, D>>[0];\n\nexport function useChartDatatipAndCursor<\n K extends string | number,\n D extends LineAreaItem<K> | ScatterItem<K> | BarItemData<K>\n>({\n series,\n groups,\n width,\n height,\n findNearest,\n getMarkerInfo,\n onDataCursorPositionChange,\n isDataCursorEnabled,\n dataCursorPosition,\n dataCursorStyle,\n hoveredItemInfo,\n focusedItemInfo,\n getDataItem,\n getDataItemPos,\n datatip,\n valueFormats,\n isHoriz,\n xScale,\n yScale,\n plotAreaSpace,\n timeAxisType,\n touchResponse,\n isDisabled,\n formatAxisLabel,\n formatYValue,\n hasXYValues\n}: DataCursorProps & DatatipProps<K, D>) {\n const { datatipContent, datatipProps } = useChartDatatip<K, D>({\n series,\n groups,\n width,\n height,\n isDataCursorEnabled,\n dataCursorPosition,\n hoveredItemInfo,\n getDataItem,\n getDataItemPos,\n focusedItemInfo,\n datatip,\n valueFormats,\n isHoriz,\n xScale,\n findNearest,\n timeAxisType,\n touchResponse,\n isDisabled,\n formatAxisLabel,\n formatYValue,\n hasXYValues\n });\n\n const { dataCursorContent, dataCursorProps } = useChartDataCursor({\n touchResponse,\n findNearest,\n dataCursorPosition,\n onDataCursorPositionChange,\n isDataCursorEnabled,\n dataCursorStyle,\n isHoriz,\n getMarkerInfo,\n focusedItemInfo,\n plotAreaSpace,\n yScale,\n xScale,\n getDataItemPos\n });\n\n return {\n datatipContent,\n dataCursorContent,\n datatipProps: mergeProps(dataCursorProps, datatipProps)\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 { getInfo } from '#utils/UNSAFE_visUtils';\nimport { useChartDrill } from '#hooks/PRIVATE_useChartDrill';\nimport { useSelection } from '#hooks/PRIVATE_useVisSelection/useSelection';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\nimport { BarItemData } from '#UNSAFE_BarChart/barChart.types';\nimport { LineAreaItem } from '#UNSAFE_LineAreaChart/lineAreaChart.types';\nimport { ScatterItem } from '#UNSAFE_ScatterChart/scatterChart.types';\n\ntype DrillProps<K, D extends LineAreaItem<K> | ScatterItem<K> | BarItemData<K>> = Parameters<\n typeof useChartDrill<K, D>\n>[0];\n\ntype SelectionProps<K, D> = {\n selection: K[];\n onChange?: (detail: { ids: K[]; data: (D | undefined)[] }) => void;\n getDataById: (id: K) => D | undefined;\n ignoreAsTrigger?: (element: EventTarget | null) => boolean;\n};\n\nexport function useSelectDrill<K, D extends LineAreaItem<K> | ScatterItem<K> | BarItemData<K>>({\n selectionMode,\n selection,\n onChange,\n rootRef,\n drilling,\n onItemDrill,\n onGroupDrill,\n focusedGroupInfo,\n focusedItemInfo,\n groups,\n getDataItem,\n getDataById,\n ignoreAsTrigger\n}: DrillProps<K, D> & SelectionProps<K, D>) {\n const idExtracter = (event: Event): K | undefined => {\n const isItemFocused = focusedItemInfo.isCurrent;\n const info =\n isItemFocused && event.type === 'keyup'\n ? focusedItemInfo\n : getInfo(rootRef, event.target as HTMLElement);\n return info && info.seriesIndex != null && info.groupIndex != null\n ? getDataItem(info.seriesIndex, info.groupIndex)?.id\n : undefined;\n };\n\n const { selectionProps, selectionContent } = useSelection<K, D>({\n idExtracter,\n isDrillEnabled: drilling === 'on',\n selection,\n selectionMode,\n onChange,\n getDataById,\n ignoreAsTrigger\n });\n\n const drillProps = useChartDrill<K, D>({\n rootRef,\n selectionMode,\n drilling,\n focusedItemInfo,\n focusedGroupInfo,\n groups,\n getDataItem,\n onItemDrill,\n onGroupDrill\n });\n\n return { selectDrillProps: mergeProps(selectionProps, drillProps), selectionContent };\n}\n"],"names":["series","groups","width","height","findNearest","getMarkerInfo","onDataCursorPositionChange","isDataCursorEnabled","dataCursorPosition","dataCursorStyle","hoveredItemInfo","focusedItemInfo","getDataItem","getDataItemPos","datatip","valueFormats","isHoriz","xScale","yScale","plotAreaSpace","timeAxisType","touchResponse","isDisabled","formatAxisLabel","formatYValue","hasXYValues","datatipContent","datatipProps","useChartDatatip","dataCursorContent","dataCursorProps","useChartDataCursor","mergeProps","selectionMode","selection","onChange","rootRef","drilling","onItemDrill","onGroupDrill","focusedGroupInfo","getDataById","ignoreAsTrigger","selectionProps","selectionContent","useSelection","idExtracter","event","info","isCurrent","type","getInfo","target","seriesIndex","groupIndex","id","undefined","isDrillEnabled","drillProps","useChartDrill","selectDrillProps"],"mappings":"+QAqBM,UAGJA,OACAA,EAAMC,OACNA,EAAMC,MACNA,EAAKC,OACLA,EAAMC,YACNA,EAAWC,cACXA,EAAaC,2BACbA,EAA0BC,oBAC1BA,EAAmBC,mBACnBA,EAAkBC,gBAClBA,EAAeC,gBACfA,EAAeC,gBACfA,EAAeC,YACfA,EAAWC,eACXA,EAAcC,QACdA,EAAOC,aACPA,EAAYC,QACZA,EAAOC,OACPA,EAAMC,OACNA,EAAMC,cACNA,EAAaC,aACbA,EAAYC,cACZA,EAAaC,WACbA,EAAUC,gBACVA,EAAeC,aACfA,EAAYC,YACZA,IAEA,MAAMC,eAAEA,EAAcC,aAAEA,GAAiBC,kBAAsB,CAC7D5B,SACAC,SACAC,QACAC,SACAI,sBACAC,qBACAE,kBACAE,cACAC,iBACAF,kBACAG,UACAC,eACAC,UACAC,SACAb,cACAgB,eACAC,gBACAC,aACAC,kBACAC,eACAC,iBAGII,kBAAEA,EAAiBC,gBAAEA,GAAoBC,qBAAmB,CAChEV,gBACAjB,cACAI,qBACAF,6BACAC,sBACAE,kBACAO,UACAX,gBACAM,kBACAQ,gBACAD,SACAD,SACAJ,mBAGF,MAAO,CACLa,iBACAG,oBACAF,aAAcK,EAAAA,WAAWF,EAAiBH,GAE9C,mBCtEgB,UAA+EM,cAC7FA,EAAaC,UACbA,EAASC,SACTA,EAAQC,QACRA,EAAOC,SACPA,EAAQC,YACRA,EAAWC,aACXA,EAAYC,iBACZA,EAAgB7B,gBAChBA,EAAeV,OACfA,EAAMW,YACNA,EAAW6B,YACXA,EAAWC,gBACXA,IAEA,MAWMC,eAAEA,EAAcC,iBAAEA,GAAqBC,eAAmB,CAC9DC,YAZmBC,IACnB,MACMC,EADgBrC,EAAgBsC,WAEJ,UAAfF,EAAMG,KACnBvC,EACAwC,EAAAA,QAAQf,EAASW,EAAMK,QAC7B,OAAOJ,GAA4B,MAApBA,EAAKK,aAA0C,MAAnBL,EAAKM,WAC5C1C,EAAYoC,EAAKK,YAAaL,EAAKM,aAAaC,QAChDC,CAAS,EAKbC,eAA6B,OAAbpB,EAChBH,YACAD,gBACAE,WACAM,cACAC,oBAGIgB,EAAaC,EAAAA,cAAoB,CACrCvB,UACAH,gBACAI,WACA1B,kBACA6B,mBACAvC,SACAW,cACA0B,cACAC,iBAGF,MAAO,CAAEqB,iBAAkB5B,EAAUA,WAACW,EAAgBe,GAAad,mBACrE"}
1
+ {"version":3,"file":"useSelectDrill-6b0b6da7.js","sources":["../../src/hooks/PRIVATE_useChartEvents/useDatatipAndCursor.ts","../../src/hooks/PRIVATE_useChartEvents/useSelectDrill.ts"],"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 { mergeProps } from '#utils/UNSAFE_mergeProps';\nimport { useChartDataCursor } from '#hooks/PRIVATE_useChartDataCursor';\nimport { useChartDatatip } from '#hooks/PRIVATE_useChartDatatip';\nimport { LineAreaItem } from '#UNSAFE_LineAreaChart/lineAreaChart.types';\nimport { ScatterItem } from '#UNSAFE_ScatterChart/scatterChart.types';\nimport { BarItemData } from '#UNSAFE_BarChart/barChart.types';\n\ntype DataCursorProps = Parameters<typeof useChartDataCursor>[0];\ntype DatatipProps<\n K extends string | number,\n D extends LineAreaItem<K> | ScatterItem<K> | BarItemData<K>\n> = Parameters<typeof useChartDatatip<K, D>>[0];\n\nexport function useChartDatatipAndCursor<\n K extends string | number,\n D extends LineAreaItem<K> | ScatterItem<K> | BarItemData<K>\n>({\n series,\n groups,\n width,\n height,\n findNearest,\n getMarkerInfo,\n onDataCursorPositionChange,\n isDataCursorEnabled,\n dataCursorPosition,\n dataCursorStyle,\n hoveredItemInfo,\n focusedItemInfo,\n getDataItem,\n getDataItemPos,\n datatip,\n valueFormats,\n isHoriz,\n xScale,\n yScale,\n plotAreaSpace,\n timeAxisType,\n touchResponse,\n isDisabled,\n formatAxisLabel,\n formatYValue,\n hasXYValues\n}: DataCursorProps & DatatipProps<K, D>) {\n const { datatipContent, datatipProps } = useChartDatatip<K, D>({\n series,\n groups,\n width,\n height,\n isDataCursorEnabled,\n dataCursorPosition,\n hoveredItemInfo,\n getDataItem,\n getDataItemPos,\n focusedItemInfo,\n datatip,\n valueFormats,\n isHoriz,\n xScale,\n findNearest,\n timeAxisType,\n touchResponse,\n isDisabled,\n formatAxisLabel,\n formatYValue,\n hasXYValues\n });\n\n const { dataCursorContent, dataCursorProps } = useChartDataCursor({\n touchResponse,\n findNearest,\n dataCursorPosition,\n onDataCursorPositionChange,\n isDataCursorEnabled,\n dataCursorStyle,\n isHoriz,\n getMarkerInfo,\n focusedItemInfo,\n plotAreaSpace,\n yScale,\n xScale,\n getDataItemPos\n });\n\n return {\n datatipContent,\n dataCursorContent,\n datatipProps: mergeProps(dataCursorProps, datatipProps)\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 { getInfo } from '#utils/UNSAFE_visUtils';\nimport { useChartDrill } from '#hooks/PRIVATE_useChartDrill';\nimport { useSelection } from '#hooks/PRIVATE_useVisSelection/useSelection';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\nimport { BarItemData } from '#UNSAFE_BarChart/barChart.types';\nimport { LineAreaItem } from '#UNSAFE_LineAreaChart/lineAreaChart.types';\nimport { ScatterItem } from '#UNSAFE_ScatterChart/scatterChart.types';\n\ntype DrillProps<K, D extends LineAreaItem<K> | ScatterItem<K> | BarItemData<K>> = Parameters<\n typeof useChartDrill<K, D>\n>[0];\n\ntype SelectionProps<K, D> = {\n selection: K[];\n onChange?: (detail: { ids: K[]; data: (D | undefined)[] }) => void;\n getDataById: (id: K) => D | undefined;\n ignoreAsTrigger?: (element: EventTarget | null) => boolean;\n};\n\nexport function useSelectDrill<K, D extends LineAreaItem<K> | ScatterItem<K> | BarItemData<K>>({\n selectionMode,\n selection,\n onChange,\n rootRef,\n drilling,\n onItemDrill,\n onGroupDrill,\n focusedGroupInfo,\n focusedItemInfo,\n groups,\n getDataItem,\n getDataById,\n ignoreAsTrigger\n}: DrillProps<K, D> & SelectionProps<K, D>) {\n const idExtracter = (event: Event): K | undefined => {\n const isItemFocused = focusedItemInfo.isCurrent;\n const info =\n isItemFocused && event.type === 'keyup'\n ? focusedItemInfo\n : getInfo(rootRef, event.target as HTMLElement);\n return info && info.seriesIndex != null && info.groupIndex != null\n ? getDataItem(info.seriesIndex, info.groupIndex)?.id\n : undefined;\n };\n\n const { selectionProps, selectionContent } = useSelection<K, D>({\n idExtracter,\n isDrillEnabled: drilling === 'on',\n selection,\n selectionMode,\n onChange,\n getDataById,\n ignoreAsTrigger\n });\n\n const drillProps = useChartDrill<K, D>({\n rootRef,\n selectionMode,\n drilling,\n focusedItemInfo,\n focusedGroupInfo,\n groups,\n getDataItem,\n onItemDrill,\n onGroupDrill\n });\n\n return { selectDrillProps: mergeProps(selectionProps, drillProps), selectionContent };\n}\n"],"names":["series","groups","width","height","findNearest","getMarkerInfo","onDataCursorPositionChange","isDataCursorEnabled","dataCursorPosition","dataCursorStyle","hoveredItemInfo","focusedItemInfo","getDataItem","getDataItemPos","datatip","valueFormats","isHoriz","xScale","yScale","plotAreaSpace","timeAxisType","touchResponse","isDisabled","formatAxisLabel","formatYValue","hasXYValues","datatipContent","datatipProps","useChartDatatip","dataCursorContent","dataCursorProps","useChartDataCursor","mergeProps","selectionMode","selection","onChange","rootRef","drilling","onItemDrill","onGroupDrill","focusedGroupInfo","getDataById","ignoreAsTrigger","selectionProps","selectionContent","useSelection","idExtracter","event","info","isCurrent","type","getInfo","target","seriesIndex","groupIndex","id","undefined","isDrillEnabled","drillProps","useChartDrill","selectDrillProps"],"mappings":"+QAqBM,UAGJA,OACAA,EAAMC,OACNA,EAAMC,MACNA,EAAKC,OACLA,EAAMC,YACNA,EAAWC,cACXA,EAAaC,2BACbA,EAA0BC,oBAC1BA,EAAmBC,mBACnBA,EAAkBC,gBAClBA,EAAeC,gBACfA,EAAeC,gBACfA,EAAeC,YACfA,EAAWC,eACXA,EAAcC,QACdA,EAAOC,aACPA,EAAYC,QACZA,EAAOC,OACPA,EAAMC,OACNA,EAAMC,cACNA,EAAaC,aACbA,EAAYC,cACZA,EAAaC,WACbA,EAAUC,gBACVA,EAAeC,aACfA,EAAYC,YACZA,IAEA,MAAMC,eAAEA,EAAcC,aAAEA,GAAiBC,kBAAsB,CAC7D5B,SACAC,SACAC,QACAC,SACAI,sBACAC,qBACAE,kBACAE,cACAC,iBACAF,kBACAG,UACAC,eACAC,UACAC,SACAb,cACAgB,eACAC,gBACAC,aACAC,kBACAC,eACAC,iBAGII,kBAAEA,EAAiBC,gBAAEA,GAAoBC,qBAAmB,CAChEV,gBACAjB,cACAI,qBACAF,6BACAC,sBACAE,kBACAO,UACAX,gBACAM,kBACAQ,gBACAD,SACAD,SACAJ,mBAGF,MAAO,CACLa,iBACAG,oBACAF,aAAcK,EAAAA,WAAWF,EAAiBH,GAE9C,mBCtEgB,UAA+EM,cAC7FA,EAAaC,UACbA,EAASC,SACTA,EAAQC,QACRA,EAAOC,SACPA,EAAQC,YACRA,EAAWC,aACXA,EAAYC,iBACZA,EAAgB7B,gBAChBA,EAAeV,OACfA,EAAMW,YACNA,EAAW6B,YACXA,EAAWC,gBACXA,IAEA,MAWMC,eAAEA,EAAcC,iBAAEA,GAAqBC,eAAmB,CAC9DC,YAZmBC,IACnB,MACMC,EADgBrC,EAAgBsC,WAEJ,UAAfF,EAAMG,KACnBvC,EACAwC,EAAAA,QAAQf,EAASW,EAAMK,QAC7B,OAAOJ,GAA4B,MAApBA,EAAKK,aAA0C,MAAnBL,EAAKM,WAC5C1C,EAAYoC,EAAKK,YAAaL,EAAKM,aAAaC,QAChDC,CAAS,EAKbC,eAA6B,OAAbpB,EAChBH,YACAD,gBACAE,WACAM,cACAC,oBAGIgB,EAAaC,EAAAA,cAAoB,CACrCvB,UACAH,gBACAI,WACA1B,kBACA6B,mBACAvC,SACAW,cACA0B,cACAC,iBAGF,MAAO,CAAEqB,iBAAkB5B,EAAUA,WAACW,EAAgBe,GAAad,mBACrE"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/hooks', './keys-4755c121', './useUser-abae2493', './textSelectionUtils-06c7855d'], (function(e,t,r,n,l){"use strict";const o=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),i=e=>"click"===e.type?"shiftClick":"keyup"===e.type&&" "===e.key?"shiftSpace":"keydown"===e.type&&o.has(e.key)?"shiftArrowKeys":void 0,s=(e,t,n,l,o,s,c,y,u,a)=>{const k=t(e.target);if(null==k)return;if(e.shiftKey&&void 0!==y&&a&&((e,t,n,l)=>"multiple"===n&&(l||r.containsKey(t,e)))(y,n,l,"click"===e.type)){const t=r.containsKey(n,k),l=i(e);if(t&&"shiftSpace"===l){const t=r.removeKey(n,k,s);u?.({value:t,target:e.target})}else a({value:{start:y,end:k},eventType:l});return void(c&&(c.current=k))}let p=n;r.containsKey(n,k)?"Enter"!==e.key&&("toggle"===o||e.ctrlKey||e.metaKey||" "===e.key?p=r.removeKey(n,k,s):"multiple"===l&&(n.all||n.keys.size>1)&&(p={all:!1,keys:new Set([k])})):p="single"===l||"Enter"===e.key||"replace"===o&&!e.ctrlKey&&!e.metaKey?{all:!1,keys:new Set([k])}:r.addKey(n,k),n!=p&&u&&(u({value:p,target:e.target}),"click"===e.type&&e.stopPropagation())};e.useSelection=function(e,o,c,y,u,a,k,p,f,K,d,v){const w=t.useRef(),g=t.useRef(!1),h=t.useCallback((e=>{g.current="touch"===e.pointerType,e.shiftKey&&"multiple"===c&&e.preventDefault()}),[c,g]),m=t.useCallback((t=>{l.getIsSelectionPending()||(s(t,e,o,c,g.current?"toggle":u,y,w,p,a,v),t.shiftKey||(w.current=void 0))}),[e,o,c,u,y,w,p,a,v]),A=t.useCallback((t=>{" "===t.key&&s(t,e,o,c,u,y,w,k,a,t.shiftKey&&" "===t.key?v:void 0)}),[e,o,c,u,y,k,a,v]),{direction:S}=n.useUser(),D=t.useCallback((e=>{if(" "===e.key)return void e.preventDefault();const t=w.current||p,n="rtl"===S,l={ArrowUp:f?.(t,!0),ArrowDown:f?.(t,!1),ArrowLeft:K?.(t,!n),ArrowRight:K?.(t,n)},s=f&&K;if(Object.keys(l).includes(e.key))if(e.shiftKey&&d&&"multiple"===c){e.preventDefault();let t=o;!w.current&&r.isKeyDefined(p)&&(t={all:!1,keys:new Set([p])});const n=l[e.key],c=n?.();null!=c&&(d(c),s?v&&null!=p&&v({value:{start:p,end:c},eventType:i(e)}):(r.containsKey(t,c)?null!=w.current&&w.current!==c&&(t=r.removeKey(t,w.current,y)):t=r.addKey(t,c),o!=t&&a&&a({value:t,target:e.target})),w.current=c)}else w.current=void 0}),[o,y,a,p,f,K,d,S,v,c]);return{selectionProps:"none"===c||null==a?{}:{onPointerDown:h,onClick:m,onKeyDown:D,onKeyUp:A}}}}));
2
- //# sourceMappingURL=useSelection-569188b3.js.map
1
+ define(['exports', 'preact/hooks', './keys-4755c121', './useUser-33136570', './textSelectionUtils-06c7855d'], (function(e,t,r,n,l){"use strict";const o=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),i=e=>"click"===e.type?"shiftClick":"keyup"===e.type&&" "===e.key?"shiftSpace":"keydown"===e.type&&o.has(e.key)?"shiftArrowKeys":void 0,s=(e,t,n,l,o,s,c,y,u,a)=>{const k=t(e.target);if(null==k)return;if(e.shiftKey&&void 0!==y&&a&&((e,t,n,l)=>"multiple"===n&&(l||r.containsKey(t,e)))(y,n,l,"click"===e.type)){const t=r.containsKey(n,k),l=i(e);if(t&&"shiftSpace"===l){const t=r.removeKey(n,k,s);u?.({value:t,target:e.target})}else a({value:{start:y,end:k},eventType:l});return void(c&&(c.current=k))}let p=n;r.containsKey(n,k)?"Enter"!==e.key&&("toggle"===o||e.ctrlKey||e.metaKey||" "===e.key?p=r.removeKey(n,k,s):"multiple"===l&&(n.all||n.keys.size>1)&&(p={all:!1,keys:new Set([k])})):p="single"===l||"Enter"===e.key||"replace"===o&&!e.ctrlKey&&!e.metaKey?{all:!1,keys:new Set([k])}:r.addKey(n,k),n!=p&&u&&(u({value:p,target:e.target}),"click"===e.type&&e.stopPropagation())};e.useSelection=function(e,o,c,y,u,a,k,p,f,K,d,v){const w=t.useRef(),g=t.useRef(!1),h=t.useCallback((e=>{g.current="touch"===e.pointerType,e.shiftKey&&"multiple"===c&&e.preventDefault()}),[c,g]),m=t.useCallback((t=>{l.getIsSelectionPending()||(s(t,e,o,c,g.current?"toggle":u,y,w,p,a,v),t.shiftKey||(w.current=void 0))}),[e,o,c,u,y,w,p,a,v]),A=t.useCallback((t=>{" "===t.key&&s(t,e,o,c,u,y,w,k,a,t.shiftKey&&" "===t.key?v:void 0)}),[e,o,c,u,y,k,a,v]),{direction:S}=n.useUser(),D=t.useCallback((e=>{if(" "===e.key)return void e.preventDefault();const t=w.current||p,n="rtl"===S,l={ArrowUp:f?.(t,!0),ArrowDown:f?.(t,!1),ArrowLeft:K?.(t,!n),ArrowRight:K?.(t,n)},s=f&&K;if(Object.keys(l).includes(e.key))if(e.shiftKey&&d&&"multiple"===c){e.preventDefault();let t=o;!w.current&&r.isKeyDefined(p)&&(t={all:!1,keys:new Set([p])});const n=l[e.key],c=n?.();null!=c&&(d(c),s?v&&null!=p&&v({value:{start:p,end:c},eventType:i(e)}):(r.containsKey(t,c)?null!=w.current&&w.current!==c&&(t=r.removeKey(t,w.current,y)):t=r.addKey(t,c),o!=t&&a&&a({value:t,target:e.target})),w.current=c)}else w.current=void 0}),[o,y,a,p,f,K,d,S,v,c]);return{selectionProps:"none"===c||null==a?{}:{onPointerDown:h,onClick:m,onKeyDown:D,onKeyUp:A}}}}));
2
+ //# sourceMappingURL=useSelection-02c4c0c0.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSelection-569188b3.js","sources":["../../src/hooks/PRIVATE_useSelection/useSelection.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 */\nimport type { RefObject } from 'preact';\nimport { useCallback, useRef } from 'preact/hooks';\nimport { Keys, containsKey, isKeyDefined, addKey, removeKey } from '../../utils/UNSAFE_keys';\nimport { SelectionDetail, SelectionMode } from '../../UNSAFE_Collection';\nimport { useUser } from '../UNSAFE_useUser';\nimport { getIsSelectionPending } from '#utils/PRIVATE_textSelectionUtils';\nimport { SelectionBehavior, SelectionRangeDetail } from './Selection.types';\n\nconst arrowKeys = new Set(['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown']);\n\n/**\n * To get the event type during range selection which is triggered by either of the following gestures\n * shift+space, shift+click, and shift+arrowKeys\n * @param event\n */\nconst getEventType = (event: MouseEvent | KeyboardEvent) => {\n if (event.type === 'click') {\n return 'shiftClick';\n } else if (event.type === 'keyup' && (event as KeyboardEvent).key === ' ') {\n return 'shiftSpace';\n } else if (event.type === 'keydown' && arrowKeys.has((event as KeyboardEvent).key)) {\n return 'shiftArrowKeys';\n }\n return undefined;\n};\n\nconst isShiftModeSupported = <K>(\n anchorKey: K,\n selectedKeys: Keys<K>,\n selectionMode: SelectionMode,\n isClickEvent: boolean\n) => {\n return selectionMode === 'multiple' && (isClickEvent || containsKey(selectedKeys, anchorKey));\n};\n\nconst handleSelect = <K>(\n event: MouseEvent | KeyboardEvent,\n keyExtractor: (element: HTMLElement) => K | null,\n selectedKeys: Keys<K>,\n selectionMode: SelectionMode,\n selectionBehavior: SelectionBehavior,\n isSelectionRequired: boolean,\n keyboardCursorRef: RefObject<K | undefined>,\n anchorKey?: K,\n onChange?: (detail: SelectionDetail<K>) => void,\n onRangeChange?: (detail: SelectionRangeDetail<K>) => void\n) => {\n const itemKey = keyExtractor(event.target as HTMLElement);\n if (itemKey == null) {\n return;\n }\n\n // handle shift key selection\n if (\n event.shiftKey &&\n anchorKey !== undefined &&\n onRangeChange &&\n isShiftModeSupported(anchorKey, selectedKeys, selectionMode, event.type === 'click')\n ) {\n const selected = containsKey(selectedKeys, itemKey);\n const eventType = getEventType(event);\n if (selected && eventType === 'shiftSpace') {\n // during shift+space, deselect the item if it's already selected\n const keySet = removeKey(selectedKeys, itemKey, isSelectionRequired);\n onChange?.({ value: keySet, target: event.target });\n } else {\n onRangeChange({ value: { start: anchorKey, end: itemKey }, eventType });\n }\n // set keyboard selection cursor in case user extends with SHIFT+ARROW\n if (keyboardCursorRef) {\n keyboardCursorRef.current = itemKey;\n }\n return;\n }\n\n const selected = containsKey(selectedKeys, itemKey);\n let keySet = selectedKeys;\n if (!selected) {\n if (\n selectionMode === 'single' ||\n (event as KeyboardEvent).key === 'Enter' ||\n (selectionBehavior === 'replace' && !(event.ctrlKey || event.metaKey))\n ) {\n // should only contains this item key\n keySet = { all: false, keys: new Set([itemKey]) };\n } else {\n // add to existing selected keys\n keySet = addKey(selectedKeys, itemKey);\n }\n } else if ((event as KeyboardEvent).key !== 'Enter') {\n // no de-select for enter key\n if (\n selectionBehavior === 'toggle' ||\n event.ctrlKey ||\n event.metaKey ||\n (event as KeyboardEvent).key === ' '\n ) {\n // de-select only when ctrl/meta key is pressed or selectionBehavior is\n // explicitly set to toggle\n keySet = removeKey(selectedKeys, itemKey, isSelectionRequired);\n } else if (selectionMode === 'multiple' && (selectedKeys.all || selectedKeys.keys.size > 1)) {\n // in this case everything should be de-selected except for this key\n keySet = { all: false, keys: new Set([itemKey]) };\n }\n }\n\n // only invoke callback if there is really a change\n // note onSelectionChange should never be null here\n if (selectedKeys != keySet && onChange) {\n onChange({ value: keySet, target: event.target });\n if (event.type === 'click') {\n event.stopPropagation();\n }\n }\n};\n\n/**\n * Hook for handling various selection mode. This can be reuse by all Collection components.\n * @param keyExtractor function to extract the key based on provided element\n * @param selectedKeys the currently selected keys\n * @param selectionMode the selection mode\n * @param isSelectionRequired true if empty selected key is not allowed, false otherwise\n * @param selectionBehavior the selection behavior. If the value is 'toggle', then the key is\n * added/removed from the current selected keys. If the value is 'replace',\n * then the current selected keys are cleared first before the key is added\n * unless the ctrl/shift/meta key is pressed.\n * @param onChange callback function that is invoked when selection has changed.\n * @param anchorKey the anchor key. Usually this is the same as current key except when shift key is pressed.\n * @param currentKey the current key\n * @param getVerticalPrevNextKey function to get the previous/next key in the vertical direction based on the current key\n * @param getHorizontalPrevNextKey function to get the previous/next key in the horizontal direction based on the current key\n * @param scrollToKey function to scroll the item with the key to be visible\n * @param onRangeChange callback function that is invoked when the selection range has changed.\n * @returns an event map that the consumer can register as event listeners\n */\nexport function useSelection<K>(\n keyExtractor: (element: HTMLElement) => K | null,\n selectedKeys: Keys<K>,\n selectionMode: SelectionMode,\n isSelectionRequired: boolean,\n selectionBehavior: SelectionBehavior,\n onChange?: (detail: SelectionDetail<K>) => void,\n anchorKey?: K,\n currentKey?: K | undefined,\n getVerticalPrevNextKey?: (currentKey: K | undefined, isPrev: boolean) => () => K | null,\n getHorizontalPrevNextKey?: (currentKey: K | undefined, isPrev: boolean) => () => K | null,\n scrollToKey?: (key: K) => void,\n onRangeChange?: (detail: SelectionRangeDetail<K>) => void\n) {\n // ref to track the cursor for the SHIFT+ARROW keyboard selection separately than the anchor of the selection.\n const keyboardSelectionCursor = useRef<K>();\n\n const isTouchPointerRef = useRef<boolean>(false);\n\n const onPointerDown = useCallback(\n (event: PointerEvent) => {\n isTouchPointerRef.current = event.pointerType === 'touch';\n if (event.shiftKey && selectionMode === 'multiple') {\n //Avoid text selection on pointer down\n event.preventDefault();\n }\n },\n [selectionMode, isTouchPointerRef]\n );\n\n const onClick = useCallback(\n (event: MouseEvent) => {\n if (!getIsSelectionPending()) {\n handleSelect<K>(\n event,\n keyExtractor,\n selectedKeys,\n selectionMode,\n isTouchPointerRef.current ? 'toggle' : selectionBehavior,\n isSelectionRequired,\n keyboardSelectionCursor,\n currentKey,\n onChange,\n onRangeChange\n );\n if (!event.shiftKey) {\n // reset keyboard cursor when using mouse to select\n keyboardSelectionCursor.current = undefined;\n }\n }\n },\n [\n keyExtractor,\n selectedKeys,\n selectionMode,\n selectionBehavior,\n isSelectionRequired,\n keyboardSelectionCursor,\n currentKey,\n onChange,\n onRangeChange\n ]\n );\n\n // general keyboard events listen to keyUp for a11y\n const onKeyUp = useCallback(\n (event: KeyboardEvent) => {\n // older browser that we don't support returns 'Spacebar' for space key\n if (event.key === ' ') {\n handleSelect<K>(\n event,\n keyExtractor,\n selectedKeys,\n selectionMode,\n selectionBehavior,\n isSelectionRequired,\n keyboardSelectionCursor,\n anchorKey,\n onChange,\n event.shiftKey && event.key === ' ' ? onRangeChange : undefined\n );\n }\n },\n [\n keyExtractor,\n selectedKeys,\n selectionMode,\n selectionBehavior,\n isSelectionRequired,\n anchorKey,\n onChange,\n onRangeChange\n ]\n );\n\n const { direction } = useUser();\n\n // arrowKey events listen to keyDown so they can support holding them down\n const onKeyDown = useCallback(\n (event: KeyboardEvent) => {\n // prevent default (propagation) for keyDown to space bar causing container to scroll\n if (event.key === ' ') {\n event.preventDefault();\n return;\n }\n\n const key = keyboardSelectionCursor.current || currentKey;\n const isRtl = direction === 'rtl';\n\n const keyHandlers: Record<string, (() => K | null) | undefined> = {\n ArrowUp: getVerticalPrevNextKey?.(key, true),\n ArrowDown: getVerticalPrevNextKey?.(key, false),\n ArrowLeft: getHorizontalPrevNextKey?.(key, !isRtl),\n ArrowRight: getHorizontalPrevNextKey?.(key, isRtl)\n };\n const isBothDirections = getVerticalPrevNextKey && getHorizontalPrevNextKey;\n if (Object.keys(keyHandlers).includes(event.key)) {\n if (event.shiftKey && scrollToKey && selectionMode === 'multiple') {\n //Avoid increasing range of selection text selection with arrow keys\n event.preventDefault();\n let keySet = selectedKeys;\n // on first selection event, set keyboard cursor to start at currentKey\n if (!keyboardSelectionCursor.current && isKeyDefined(currentKey)) {\n keySet = { all: false, keys: new Set([currentKey as K]) };\n }\n const newAnchorKey = keyHandlers[event.key];\n const cursorKey = newAnchorKey?.();\n if (cursorKey != null) {\n // keep visible\n scrollToKey(cursorKey);\n\n // if in 2D, use range selection to extend or subtract\n if (isBothDirections) {\n if (onRangeChange && currentKey != null) {\n onRangeChange({\n value: { start: currentKey, end: cursorKey },\n eventType: getEventType(event)\n });\n }\n } else {\n // extend selection\n if (!containsKey(keySet, cursorKey)) {\n keySet = addKey(keySet, cursorKey);\n // subtract from selection\n } else if (\n keyboardSelectionCursor.current != null &&\n keyboardSelectionCursor.current !== cursorKey\n ) {\n keySet = removeKey(keySet, keyboardSelectionCursor.current, isSelectionRequired);\n }\n if (selectedKeys != keySet && onChange) {\n onChange({ value: keySet, target: event.target });\n }\n }\n // update selection cursor\n keyboardSelectionCursor.current = cursorKey;\n }\n } else {\n // reset keyBoard on non-shifted arrow use as this interrupts the extend mode (and would make for messy logic that doesn't align with current Jet behavior)\n keyboardSelectionCursor.current = undefined;\n }\n }\n },\n [\n selectedKeys,\n isSelectionRequired,\n onChange,\n currentKey,\n getVerticalPrevNextKey,\n getHorizontalPrevNextKey,\n scrollToKey,\n direction,\n onRangeChange,\n selectionMode\n ]\n );\n\n const selectionProps =\n selectionMode === 'none' || onChange == null\n ? {}\n : { onPointerDown, onClick, onKeyDown, onKeyUp };\n return { selectionProps };\n}\n"],"names":["arrowKeys","Set","getEventType","event","type","key","has","handleSelect","keyExtractor","selectedKeys","selectionMode","selectionBehavior","isSelectionRequired","keyboardCursorRef","anchorKey","onChange","onRangeChange","itemKey","target","shiftKey","undefined","isClickEvent","containsKey","isShiftModeSupported","selected","eventType","keySet","removeKey","value","start","end","current","ctrlKey","metaKey","all","keys","size","addKey","stopPropagation","currentKey","getVerticalPrevNextKey","getHorizontalPrevNextKey","scrollToKey","keyboardSelectionCursor","useRef","isTouchPointerRef","onPointerDown","useCallback","pointerType","preventDefault","onClick","getIsSelectionPending","onKeyUp","direction","useUser","onKeyDown","isRtl","keyHandlers","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","isBothDirections","Object","includes","isKeyDefined","newAnchorKey","cursorKey","selectionProps"],"mappings":"2IAeA,MAAMA,EAAY,IAAIC,IAAI,CAAC,YAAa,aAAc,UAAW,cAO3DC,EAAgBC,GACD,UAAfA,EAAMC,KACD,aACiB,UAAfD,EAAMC,MAAqD,MAAhCD,EAAwBE,IACrD,aACiB,YAAfF,EAAMC,MAAsBJ,EAAUM,IAAKH,EAAwBE,KACrE,sBADF,EAeHE,EAAe,CACnBJ,EACAK,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,KAEA,MAAMC,EAAUT,EAAaL,EAAMe,QACnC,GAAe,MAAXD,EACF,OAIF,GACEd,EAAMgB,eACQC,IAAdN,GACAE,GA9ByB,EAC3BF,EACAL,EACAC,EACAW,IAEyB,aAAlBX,IAAiCW,GAAgBC,EAAWA,YAACb,EAAcK,IAyBhFS,CAAqBT,EAAWL,EAAcC,EAA8B,UAAfP,EAAMC,MACnE,CACA,MAAMoB,EAAWF,EAAAA,YAAYb,EAAcQ,GACrCQ,EAAYvB,EAAaC,GAC/B,GAAIqB,GAA0B,eAAdC,EAA4B,CAE1C,MAAMC,EAASC,EAASA,UAAClB,EAAcQ,EAASL,GAChDG,IAAW,CAAEa,MAAOF,EAAQR,OAAQf,EAAMe,QAC3C,MACCF,EAAc,CA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AQR,OAAQf,EAAMe,UAI5CyB,EAAwBZ,QAAUoC,EAErC,MAECxB,EAAwBZ,aAAUX,CAErC,GAEH,CACEX,EACAG,EACAG,EACAwB,EACAC,EACAC,EACAC,EACAW,EACArC,EACAN,IAQJ,MAAO,CAAE0D,eAHW,SAAlB1D,GAAwC,MAAZK,EACxB,CAAE,EACF,CAAE+B,gBAAeI,UAASK,YAAWH,WAE7C"}
1
+ {"version":3,"file":"useSelection-02c4c0c0.js","sources":["../../src/hooks/PRIVATE_useSelection/useSelection.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 */\nimport type { RefObject } from 'preact';\nimport { useCallback, useRef } from 'preact/hooks';\nimport { Keys, containsKey, isKeyDefined, addKey, removeKey } from '../../utils/UNSAFE_keys';\nimport { SelectionDetail, SelectionMode } from '../../UNSAFE_Collection';\nimport { useUser } from '../UNSAFE_useUser';\nimport { getIsSelectionPending } from '#utils/PRIVATE_textSelectionUtils';\nimport { SelectionBehavior, SelectionRangeDetail } from './Selection.types';\n\nconst arrowKeys = new Set(['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown']);\n\n/**\n * To get the event type during range selection which is triggered by either of the following gestures\n * shift+space, shift+click, and shift+arrowKeys\n * @param event\n */\nconst getEventType = (event: MouseEvent | KeyboardEvent) => {\n if (event.type === 'click') {\n return 'shiftClick';\n } else if (event.type === 'keyup' && (event as KeyboardEvent).key === ' ') {\n return 'shiftSpace';\n } else if (event.type === 'keydown' && arrowKeys.has((event as KeyboardEvent).key)) {\n return 'shiftArrowKeys';\n }\n return undefined;\n};\n\nconst isShiftModeSupported = <K>(\n anchorKey: K,\n selectedKeys: Keys<K>,\n selectionMode: SelectionMode,\n isClickEvent: boolean\n) => {\n return selectionMode === 'multiple' && (isClickEvent || containsKey(selectedKeys, anchorKey));\n};\n\nconst handleSelect = <K>(\n event: MouseEvent | KeyboardEvent,\n keyExtractor: (element: HTMLElement) => K | null,\n selectedKeys: Keys<K>,\n selectionMode: SelectionMode,\n selectionBehavior: SelectionBehavior,\n isSelectionRequired: boolean,\n keyboardCursorRef: RefObject<K | undefined>,\n anchorKey?: K,\n onChange?: (detail: SelectionDetail<K>) => void,\n onRangeChange?: (detail: SelectionRangeDetail<K>) => void\n) => {\n const itemKey = keyExtractor(event.target as HTMLElement);\n if (itemKey == null) {\n return;\n }\n\n // handle shift key selection\n if (\n event.shiftKey &&\n anchorKey !== undefined &&\n onRangeChange &&\n isShiftModeSupported(anchorKey, selectedKeys, selectionMode, event.type === 'click')\n ) {\n const selected = containsKey(selectedKeys, itemKey);\n const eventType = getEventType(event);\n if (selected && eventType === 'shiftSpace') {\n // during shift+space, deselect the item if it's already selected\n const keySet = removeKey(selectedKeys, itemKey, isSelectionRequired);\n onChange?.({ value: keySet, target: event.target });\n } else {\n onRangeChange({ value: { start: anchorKey, end: itemKey }, eventType });\n }\n // set keyboard selection cursor in case user extends with SHIFT+ARROW\n if (keyboardCursorRef) {\n keyboardCursorRef.current = itemKey;\n }\n return;\n }\n\n const selected = containsKey(selectedKeys, itemKey);\n let keySet = selectedKeys;\n if (!selected) {\n if (\n selectionMode === 'single' ||\n (event as KeyboardEvent).key === 'Enter' ||\n (selectionBehavior === 'replace' && !(event.ctrlKey || event.metaKey))\n ) {\n // should only contains this item key\n keySet = { all: false, keys: new Set([itemKey]) };\n } else {\n // add to existing selected keys\n keySet = addKey(selectedKeys, itemKey);\n }\n } else if ((event as KeyboardEvent).key !== 'Enter') {\n // no de-select for enter key\n if (\n selectionBehavior === 'toggle' ||\n event.ctrlKey ||\n event.metaKey ||\n (event as KeyboardEvent).key === ' '\n ) {\n // de-select only when ctrl/meta key is pressed or selectionBehavior is\n // explicitly set to toggle\n keySet = removeKey(selectedKeys, itemKey, isSelectionRequired);\n } else if (selectionMode === 'multiple' && (selectedKeys.all || selectedKeys.keys.size > 1)) {\n // in this case everything should be de-selected except for this key\n keySet = { all: false, keys: new Set([itemKey]) };\n }\n }\n\n // only invoke callback if there is really a change\n // note onSelectionChange should never be null here\n if (selectedKeys != keySet && onChange) {\n onChange({ value: keySet, target: event.target });\n if (event.type === 'click') {\n event.stopPropagation();\n }\n }\n};\n\n/**\n * Hook for handling various selection mode. This can be reuse by all Collection components.\n * @param keyExtractor function to extract the key based on provided element\n * @param selectedKeys the currently selected keys\n * @param selectionMode the selection mode\n * @param isSelectionRequired true if empty selected key is not allowed, false otherwise\n * @param selectionBehavior the selection behavior. If the value is 'toggle', then the key is\n * added/removed from the current selected keys. If the value is 'replace',\n * then the current selected keys are cleared first before the key is added\n * unless the ctrl/shift/meta key is pressed.\n * @param onChange callback function that is invoked when selection has changed.\n * @param anchorKey the anchor key. Usually this is the same as current key except when shift key is pressed.\n * @param currentKey the current key\n * @param getVerticalPrevNextKey function to get the previous/next key in the vertical direction based on the current key\n * @param getHorizontalPrevNextKey function to get the previous/next key in the horizontal direction based on the current key\n * @param scrollToKey function to scroll the item with the key to be visible\n * @param onRangeChange callback function that is invoked when the selection range has changed.\n * @returns an event map that the consumer can register as event listeners\n */\nexport function useSelection<K>(\n keyExtractor: (element: HTMLElement) => K | null,\n selectedKeys: Keys<K>,\n selectionMode: SelectionMode,\n isSelectionRequired: boolean,\n selectionBehavior: SelectionBehavior,\n onChange?: (detail: SelectionDetail<K>) => void,\n anchorKey?: K,\n currentKey?: K | undefined,\n getVerticalPrevNextKey?: (currentKey: K | undefined, isPrev: boolean) => () => K | null,\n getHorizontalPrevNextKey?: (currentKey: K | undefined, isPrev: boolean) => () => K | null,\n scrollToKey?: (key: K) => void,\n onRangeChange?: (detail: SelectionRangeDetail<K>) => void\n) {\n // ref to track the cursor for the SHIFT+ARROW keyboard selection separately than the anchor of the selection.\n const keyboardSelectionCursor = useRef<K>();\n\n const isTouchPointerRef = useRef<boolean>(false);\n\n const onPointerDown = useCallback(\n (event: PointerEvent) => {\n isTouchPointerRef.current = event.pointerType === 'touch';\n if (event.shiftKey && selectionMode === 'multiple') {\n //Avoid text selection on pointer down\n event.preventDefault();\n }\n },\n [selectionMode, isTouchPointerRef]\n );\n\n const onClick = useCallback(\n (event: MouseEvent) => {\n if (!getIsSelectionPending()) {\n handleSelect<K>(\n event,\n keyExtractor,\n selectedKeys,\n selectionMode,\n isTouchPointerRef.current ? 'toggle' : selectionBehavior,\n isSelectionRequired,\n keyboardSelectionCursor,\n currentKey,\n onChange,\n onRangeChange\n );\n if (!event.shiftKey) {\n // reset keyboard cursor when using mouse to select\n keyboardSelectionCursor.current = undefined;\n }\n }\n },\n [\n keyExtractor,\n selectedKeys,\n selectionMode,\n selectionBehavior,\n isSelectionRequired,\n keyboardSelectionCursor,\n currentKey,\n onChange,\n onRangeChange\n ]\n );\n\n // general keyboard events listen to keyUp for a11y\n const onKeyUp = useCallback(\n (event: KeyboardEvent) => {\n // older browser that we don't support returns 'Spacebar' for space key\n if (event.key === ' ') {\n handleSelect<K>(\n event,\n keyExtractor,\n selectedKeys,\n selectionMode,\n selectionBehavior,\n isSelectionRequired,\n keyboardSelectionCursor,\n anchorKey,\n onChange,\n event.shiftKey && event.key === ' ' ? onRangeChange : undefined\n );\n }\n },\n [\n keyExtractor,\n selectedKeys,\n selectionMode,\n selectionBehavior,\n isSelectionRequired,\n anchorKey,\n onChange,\n onRangeChange\n ]\n );\n\n const { direction } = useUser();\n\n // arrowKey events listen to keyDown so they can support holding them down\n const onKeyDown = useCallback(\n (event: KeyboardEvent) => {\n // prevent default (propagation) for keyDown to space bar causing container to scroll\n if (event.key === ' ') {\n event.preventDefault();\n return;\n }\n\n const key = keyboardSelectionCursor.current || currentKey;\n const isRtl = direction === 'rtl';\n\n const keyHandlers: Record<string, (() => K | null) | undefined> = {\n ArrowUp: getVerticalPrevNextKey?.(key, true),\n ArrowDown: getVerticalPrevNextKey?.(key, false),\n ArrowLeft: getHorizontalPrevNextKey?.(key, !isRtl),\n ArrowRight: getHorizontalPrevNextKey?.(key, isRtl)\n };\n const isBothDirections = getVerticalPrevNextKey && getHorizontalPrevNextKey;\n if (Object.keys(keyHandlers).includes(event.key)) {\n if (event.shiftKey && scrollToKey && selectionMode === 'multiple') {\n //Avoid increasing range of selection text selection with arrow keys\n event.preventDefault();\n let keySet = selectedKeys;\n // on first selection event, set keyboard cursor to start at currentKey\n if (!keyboardSelectionCursor.current && isKeyDefined(currentKey)) {\n keySet = { all: false, keys: new Set([currentKey as K]) };\n }\n const newAnchorKey = keyHandlers[event.key];\n const cursorKey = newAnchorKey?.();\n if (cursorKey != null) {\n // keep visible\n scrollToKey(cursorKey);\n\n // if in 2D, use range selection to extend or subtract\n if (isBothDirections) {\n if (onRangeChange && currentKey != null) {\n onRangeChange({\n value: { start: currentKey, end: cursorKey },\n eventType: getEventType(event)\n });\n }\n } else {\n // extend selection\n if (!containsKey(keySet, cursorKey)) {\n keySet = addKey(keySet, cursorKey);\n // subtract from selection\n } else if (\n keyboardSelectionCursor.current != null &&\n keyboardSelectionCursor.current !== cursorKey\n ) {\n keySet = removeKey(keySet, keyboardSelectionCursor.current, isSelectionRequired);\n }\n if (selectedKeys != keySet && onChange) {\n onChange({ value: keySet, target: event.target });\n }\n }\n // update selection cursor\n keyboardSelectionCursor.current = cursorKey;\n }\n } else {\n // reset keyBoard on non-shifted arrow use as this interrupts the extend mode (and would make for messy logic that doesn't align with current Jet behavior)\n keyboardSelectionCursor.current = undefined;\n }\n }\n },\n [\n selectedKeys,\n isSelectionRequired,\n onChange,\n currentKey,\n getVerticalPrevNextKey,\n getHorizontalPrevNextKey,\n scrollToKey,\n direction,\n onRangeChange,\n selectionMode\n ]\n );\n\n const selectionProps =\n selectionMode === 'none' || onChange == null\n ? {}\n : { onPointerDown, onClick, onKeyDown, onKeyUp };\n return { selectionProps };\n}\n"],"names":["arrowKeys","Set","getEventType","event","type","key","has","handleSelect","keyExtractor","selectedKeys","selectionMode","selectionBehavior","isSelectionRequired","keyboardCursorRef","anchorKey","onChange","onRangeChange","itemKey","target","shiftKey","undefined","isClickEvent","containsKey","isShiftModeSupported","selected","eventType","keySet","removeKey","value","start","end","current","ctrlKey","metaKey","all","keys","size","addKey","stopPropagation","currentKey","getVerticalPrevNextKey","getHorizontalPrevNextKey","scrollToKey","keyboardSelectionCursor","useRef","isTouchPointerRef","onPointerDown","useCallback","pointerType","preventDefault","onClick","getIsSelectionPending","onKeyUp","direction","useUser","onKeyDown","isRtl","keyHandlers","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","isBothDirections","Object","includes","isKeyDefined","newAnchorKey","cursorKey","selectionProps"],"mappings":"2IAeA,MAAMA,EAAY,IAAIC,IAAI,CAAC,YAAa,aAAc,UAAW,cAO3DC,EAAgBC,GACD,UAAfA,EAAMC,KACD,aACiB,UAAfD,EAAMC,MAAqD,MAAhCD,EAAwBE,IACrD,aACiB,YAAfF,EAAMC,MAAsBJ,EAAUM,IAAKH,EAAwBE,KACrE,sBADF,EAeHE,EAAe,CACnBJ,EACAK,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,KAEA,MAAMC,EAAUT,EAAaL,EAAMe,QACnC,GAAe,MAAXD,EACF,OAIF,GACEd,EAAMgB,eACQC,IAAdN,GACAE,GA9ByB,EAC3BF,EACAL,EACAC,EACAW,IAEyB,aAAlBX,IAAiCW,GAAgBC,EAAWA,YAACb,EAAcK,IAyBhFS,CAAqBT,EAAWL,EAAcC,EAA8B,UAAfP,EAAMC,MACnE,CACA,MAAMoB,EAAWF,EAAAA,YAAYb,EAAcQ,GACrCQ,EAAYvB,EAAaC,GAC/B,GAAIqB,GAA0B,eAAdC,EAA4B,CAE1C,MAAMC,EAASC,EAASA,UAAClB,EAAcQ,EAASL,GAChDG,IAAW,CAAEa,MAAOF,EAAQR,OAAQf,EAAMe,QAC3C,MACCF,EAAc,CAAEY,MAAO,CAAEC,MAAOf,EAAWgB,IAAKb,GAAWQ,cAM7D,YAHIZ,IACFA,EAAkBkB,QA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GAEH,CACEX,EACAG,EACAG,EACAwB,EACAC,EACAC,EACAC,EACAW,EACArC,EACAN,IAQJ,MAAO,CAAE0D,eAHW,SAAlB1D,GAAwC,MAAZK,EACxB,CAAE,EACF,CAAE+B,gBAAeI,UAASK,YAAWH,WAE7C"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/hooks', './eventsUtils-edf8f4e5', 'preact/jsx-runtime', './BaseButton-c6563bf2', './Text-0609bf4d', './useTranslationBundle-652e08a6', './hooks/PRIVATE_useVisSelection/themes/ClearSelection.css', './Layer-9fb9ca67', 'preact/compat', './LayerHost-1b4d03f0', './Floating-28ad0903'], (function(e,t,n,o,r,l,i,c,s,a,u,d){"use strict";const p=({onAction:e})=>{const t=`${i.useTranslationBundle("@oracle/oraclejet-preact").vis_clearSelection()}`;return o.jsx("div",{class:c.clearButtonStyles.base,children:o.jsx(r.BaseButton,{styling:["default"],elementDetails:{type:"span",isFocusable:!1,isLabel:!0},variant:"outlined",onAction:e,children:o.jsx(l.Text,{truncation:"ellipsis",weight:"inherit",children:t})})})},f=18;const g=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y=(e,t,o,r,l,i)=>{let c=new Set([]);if(null!=e){c=new Set(t);const n=t.has(e);"toggle"===r?n?c.delete(e):"single"===o?c=new Set([e]):c.add(e):n||(c=new Set([e]))}n.isEqual(c,t)||i?.({ids:[...c],data:[...c].map(l)})};e.useSelection=function({selection:e=[],selectionMode:n="none",idExtracter:r,onChange:l,isDrillEnabled:i,isKeyboardSelection:c,getDataById:a,ignoreAsTrigger:u}){const x=t.useRef(),{clearSelectionContent:h,tryToggleClearButton:S}=function({clearSelection:e}){const[n,r]=t.useState(!1),l=t.useRef({x:0,y:0}),i={mainAxis:2*f},c={current:l.current};return{clearSelectionContent:n?o.jsx(s.Layer,{children:o.jsx(d.Floating,{anchorRef:c,offsetValue:i,placement:"top",flipOptions:{crossAxis:!1,mainAxis:!1},shiftOptions:{crossAxis:!0,mainAxis:!0},children:o.jsx(p,{onAction:()=>{r(!1),e()}})})}):null,tryToggleClearButton:(e,t,o,i)=>"touch"===e.pointerType&&void 0===t&&"multiple"===o&&i.size>1&&(r(!n),l.current={x:e.clientX,y:e.clientY},!0)}}({clearSelection:()=>{y(void 0,new Set(e),n,"replace",a,l)}}),w=t.useCallback((t=>{if(u&&u(t.target))return;const o=new Set(e);if(x.current&&i)return clearTimeout(x.current),void(x.current=void 0);const c=r(t);if(S(t,c,n,o))return;const s=t.metaKey,d=t.ctrlKey;t.defaultPrevented||null==c&&(s||d)||(i?x.current=setTimeout((()=>{y(c,o,n,s||d||"touch"===t.pointerType?"toggle":"replace",a,l),x.current=void 0}),250):y(c,o,n,s||d||"touch"===t.pointerType?"toggle":"replace",a,l))}),[e,n,l,r,i,a,S,u]),A=t.useCallback((t=>{const o=r(t),i=t.ctrlKey;y(o,new Set(e),n,i?"toggle":"replace",a,l)}),[e,n,l,r,a]),m=t.useCallback((t=>{const o=t.shiftKey,i=t.ctrlKey&&" "===t.key,s=-1!==g.indexOf(t.key),u=r(t);if(s||i||c&&c(t)){const t=o||i?"toggle":"replace";y(u,new Set(e),n,t,a,l)}}),[e,n,l,r,c,a]);return{selectionContent:h,selectionProps:"none"===n||null==l?{}:{onKeyUp:m,onContextMenu:A,onPointerUp:w}}}}));
2
- //# sourceMappingURL=useSelection-4c8e905b.js.map
1
+ define(['exports', 'preact/hooks', './eventsUtils-edf8f4e5', 'preact/jsx-runtime', './BaseButton-c6563bf2', './Text-0609bf4d', './useTranslationBundle-33399171', './hooks/PRIVATE_useVisSelection/themes/ClearSelection.css', './Layer-2ca542c2', 'preact/compat', './LayerHost-a36b1781', './Floating-043a207a'], (function(e,t,n,o,r,l,i,c,s,a,u,d){"use strict";const p=({onAction:e})=>{const t=`${i.useTranslationBundle("@oracle/oraclejet-preact").vis_clearSelection()}`;return o.jsx("div",{class:c.clearButtonStyles.base,children:o.jsx(r.BaseButton,{styling:["default"],elementDetails:{type:"span",isFocusable:!1,isLabel:!0},variant:"outlined",onAction:e,children:o.jsx(l.Text,{truncation:"ellipsis",weight:"inherit",children:t})})})},g=18;const f=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y=(e,t,o,r,l,i)=>{let c=new Set([]);if(null!=e){c=new Set(t);const n=t.has(e);"toggle"===r?n?c.delete(e):"single"===o?c=new Set([e]):c.add(e):n||(c=new Set([e]))}n.isEqual(c,t)||i?.({ids:[...c],data:[...c].map(l)})};e.useSelection=function({selection:e=[],selectionMode:n="none",idExtracter:r,onChange:l,isDrillEnabled:i,isKeyboardSelection:c,getDataById:a,ignoreAsTrigger:u}){const x=t.useRef(),{clearSelectionContent:h,tryToggleClearButton:S}=function({clearSelection:e}){const[n,r]=t.useState(!1),l=t.useRef({x:0,y:0}),i={mainAxis:2*g},c={current:l.current};return{clearSelectionContent:n?o.jsx(s.Layer,{children:o.jsx(d.Floating,{anchorRef:c,offsetValue:i,placement:"top",flipOptions:{crossAxis:!1,mainAxis:!1},shiftOptions:{crossAxis:!0,mainAxis:!0},children:o.jsx(p,{onAction:()=>{r(!1),e()}})})}):null,tryToggleClearButton:(e,t,o,i)=>"touch"===e.pointerType&&void 0===t&&"multiple"===o&&i.size>1&&(r(!n),l.current={x:e.clientX,y:e.clientY},!0)}}({clearSelection:()=>{y(void 0,new Set(e),n,"replace",a,l)}}),w=t.useCallback((t=>{if(u&&u(t.target))return;const o=new Set(e);if(x.current&&i)return clearTimeout(x.current),void(x.current=void 0);const c=r(t);if(S(t,c,n,o))return;const s=t.metaKey,d=t.ctrlKey;t.defaultPrevented||null==c&&(s||d)||(i?x.current=setTimeout((()=>{y(c,o,n,s||d||"touch"===t.pointerType?"toggle":"replace",a,l),x.current=void 0}),250):y(c,o,n,s||d||"touch"===t.pointerType?"toggle":"replace",a,l))}),[e,n,l,r,i,a,S,u]),A=t.useCallback((t=>{const o=r(t),i=t.ctrlKey;y(o,new Set(e),n,i?"toggle":"replace",a,l)}),[e,n,l,r,a]),m=t.useCallback((t=>{const o=t.shiftKey,i=t.ctrlKey&&" "===t.key,s=-1!==f.indexOf(t.key),u=r(t);if(s||i||c&&c(t)){const t=o||i?"toggle":"replace";y(u,new Set(e),n,t,a,l)}}),[e,n,l,r,c,a]);return{selectionContent:h,selectionProps:"none"===n||null==l?{}:{onKeyUp:m,onContextMenu:A,onPointerUp:w}}}}));
2
+ //# sourceMappingURL=useSelection-5128f1e7.js.map