@oracle/oraclejet-preact 20.0.1 → 20.0.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 (580) hide show
  1. package/amd/CheckboxSetContext-2e486ea8.js +2 -0
  2. package/amd/CheckboxSetContext-2e486ea8.js.map +1 -0
  3. package/amd/ColorPicker-141fa49d.js +2 -0
  4. package/amd/{ColorPicker-e3167e4c.js.map → ColorPicker-141fa49d.js.map} +1 -1
  5. package/amd/ExpandableList-a9a86ad8.js +2 -0
  6. package/amd/{ExpandableList-233c279e.js.map → ExpandableList-a9a86ad8.js.map} +1 -1
  7. package/amd/{InlineSelectSingle-f4438110.js → InlineSelectSingle-7c1cc5b5.js} +2 -2
  8. package/amd/{InlineSelectSingle-f4438110.js.map → InlineSelectSingle-7c1cc5b5.js.map} +1 -1
  9. package/amd/{InputColor-51d7e40c.js → InputColor-58e3fce3.js} +2 -2
  10. package/amd/{InputColor-51d7e40c.js.map → InputColor-58e3fce3.js.map} +1 -1
  11. package/amd/InputDatePicker-7227a858.js +2 -0
  12. package/amd/{InputDatePicker-030e345a.js.map → InputDatePicker-7227a858.js.map} +1 -1
  13. package/amd/ListView-6d21e8f9.js +2 -0
  14. package/amd/{ListView-02a92d18.js.map → ListView-6d21e8f9.js.map} +1 -1
  15. package/amd/PRIVATE_SelectCommon.js +1 -1
  16. package/amd/{SelectMobileFieldInput-83f56b22.js → SelectMobileFieldInput-d499ef86.js} +2 -2
  17. package/amd/{SelectMobileFieldInput-83f56b22.js.map → SelectMobileFieldInput-d499ef86.js.map} +1 -1
  18. package/amd/{SelectMultiple-cb5fdd20.js → SelectMultiple-cc9bffc6.js} +2 -2
  19. package/amd/{SelectMultiple-cb5fdd20.js.map → SelectMultiple-cc9bffc6.js.map} +1 -1
  20. package/amd/{SelectSingle-02e85b6e.js → SelectSingle-2bb35b67.js} +2 -2
  21. package/amd/{SelectSingle-02e85b6e.js.map → SelectSingle-2bb35b67.js.map} +1 -1
  22. package/amd/TextArea-4a3b8b56.js +2 -0
  23. package/amd/TextArea-4a3b8b56.js.map +1 -0
  24. package/amd/TextAreaAutosize-3a13ebb2.js +2 -0
  25. package/amd/{TextAreaAutosize-01dfd98e.js.map → TextAreaAutosize-3a13ebb2.js.map} +1 -1
  26. package/amd/Theme-redwood/theme.css +94 -94
  27. package/amd/Theme-stable/theme.css +263 -263
  28. package/amd/UNSAFE_CheckboxItem.js +1 -1
  29. package/amd/UNSAFE_CheckboxItem.js.map +1 -1
  30. package/amd/UNSAFE_CheckboxSet.js +1 -1
  31. package/amd/UNSAFE_CheckboxSet.js.map +1 -1
  32. package/amd/UNSAFE_ColorPicker.js +1 -1
  33. package/amd/UNSAFE_ExpandableList.js +1 -1
  34. package/amd/UNSAFE_InlineSelectSingle.js +1 -1
  35. package/amd/UNSAFE_InputColor.js +1 -1
  36. package/amd/UNSAFE_InputDatePicker.js +1 -1
  37. package/amd/UNSAFE_ListView.js +1 -1
  38. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  39. package/amd/UNSAFE_RichCheckboxSet.js.map +1 -1
  40. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  41. package/amd/UNSAFE_RichSelectionItem.js.map +1 -1
  42. package/amd/UNSAFE_SelectMultiple.js +1 -1
  43. package/amd/UNSAFE_SelectSingle.js +1 -1
  44. package/amd/UNSAFE_TextArea.js +1 -1
  45. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  46. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  47. package/amd/VirtualizedListView-1ae7151d.js +2 -0
  48. package/amd/{VirtualizedListView-a0f338c2.js.map → VirtualizedListView-1ae7151d.js.map} +1 -1
  49. package/amd/{useDisplayValue-e70c76d8.js → useDisplayValue-0e90bf4c.js} +2 -2
  50. package/amd/{useDisplayValue-e70c76d8.js.map → useDisplayValue-0e90bf4c.js.map} +1 -1
  51. package/amd/useSelectCommon-a02ddf3c.js +2 -0
  52. package/amd/useSelectCommon-a02ddf3c.js.map +1 -0
  53. package/amd/useTextAreaAltEnter-32272da6.js +2 -0
  54. package/amd/useTextAreaAltEnter-32272da6.js.map +1 -0
  55. package/cjs/{Chart-13a198f3.js → Chart-966da017.js} +2 -2
  56. package/cjs/{Chart-13a198f3.js.map → Chart-966da017.js.map} +1 -1
  57. package/cjs/{ColorPicker-2c99c0fb.js → ColorPicker-8f0b6000.js} +2 -2
  58. package/cjs/{ColorPicker-2c99c0fb.js.map → ColorPicker-8f0b6000.js.map} +1 -1
  59. package/cjs/{NavigationListItem-cdfd0740.js → NavigationListItem-3b9eb0fb.js} +1 -19
  60. package/cjs/{NavigationListItem-cdfd0740.js.map → NavigationListItem-3b9eb0fb.js.map} +1 -1
  61. package/cjs/{OverflowTabBarItem-4bbd5830.js → OverflowTabBarItem-abcd2327.js} +2 -2
  62. package/cjs/{OverflowTabBarItem-4bbd5830.js.map → OverflowTabBarItem-abcd2327.js.map} +1 -1
  63. package/cjs/PRIVATE_Chart.js +4 -4
  64. package/cjs/PRIVATE_SelectCommon.js +2 -2
  65. package/cjs/{SelectMobileFieldInput-111a95a5.js → SelectMobileFieldInput-cbf57541.js} +2 -2
  66. package/cjs/{SelectMobileFieldInput-111a95a5.js.map → SelectMobileFieldInput-cbf57541.js.map} +1 -1
  67. package/cjs/{TabBarLinkItem-891a5f10.js → TabBarLinkItem-b0c4b100.js} +2 -2
  68. package/cjs/{TabBarLinkItem-891a5f10.js.map → TabBarLinkItem-b0c4b100.js.map} +1 -1
  69. package/cjs/Theme-redwood/theme.css +104 -104
  70. package/cjs/Theme-stable/theme.css +236 -236
  71. package/cjs/UNSAFE_BarChart.js +4 -4
  72. package/cjs/UNSAFE_ColorPicker.js +25 -25
  73. package/cjs/UNSAFE_ComboChart.js +4 -4
  74. package/cjs/UNSAFE_InlineSelectSingle.js +2 -2
  75. package/cjs/UNSAFE_InputColor.js +2 -2
  76. package/cjs/UNSAFE_LineAreaChart.js +4 -4
  77. package/cjs/UNSAFE_NavigationList.js +12 -12
  78. package/cjs/UNSAFE_OverflowTabBar.js +3 -3
  79. package/cjs/UNSAFE_ScatterChart.js +4 -4
  80. package/cjs/UNSAFE_SelectMultiple.js +2 -2
  81. package/cjs/UNSAFE_SelectSingle.js +3 -3
  82. package/cjs/UNSAFE_TabBar.js +3 -3
  83. package/cjs/UNSAFE_TabBarCommon.js +3 -3
  84. package/cjs/UNSAFE_TabBarMixed.js +2 -2
  85. package/cjs/{useDisplayValue-60dbe1c3.js → useDisplayValue-4ace417c.js} +2 -2
  86. package/cjs/{useDisplayValue-60dbe1c3.js.map → useDisplayValue-4ace417c.js.map} +1 -1
  87. package/cjs/{useSelectCommon-b0d7feb3.js → useSelectCommon-27afecfa.js} +8 -3
  88. package/cjs/useSelectCommon-27afecfa.js.map +1 -0
  89. package/es/{BaseButton-243d200f.js → BaseButton-41068c85.js} +2 -2
  90. package/es/{BaseButton-243d200f.js.map → BaseButton-41068c85.js.map} +1 -1
  91. package/es/BaseCardView-b3d8bae0.js +6 -6
  92. package/es/BaseDiagram-b5b22e53.js +7 -7
  93. package/es/BaseRichSelection-223d9830.js +9 -9
  94. package/es/BaseSelector-7cbc48bc.js +1 -1
  95. package/es/BaseSwatchView-2e1e6bd2.js +2 -2
  96. package/es/{Button-a76ecfa8.js → Button-956f51c7.js} +2 -2
  97. package/es/{Button-a76ecfa8.js.map → Button-956f51c7.js.map} +1 -1
  98. package/es/ButtonSet-b7464e9a.js +2 -2
  99. package/es/ButtonSetButton-8685c752.js +1 -1
  100. package/es/ButtonSetIconButton-c8ed85f9.js +4 -4
  101. package/es/{Center-3860fe60.js → Center-71a03e65.js} +2 -2
  102. package/es/{Center-3860fe60.js.map → Center-71a03e65.js.map} +1 -1
  103. package/es/Chart-b866a74c.js +10 -10
  104. package/es/CheckboxControl-c008372a.js +6 -6
  105. package/es/CheckboxRadioField-a387b3cb.js +6 -6
  106. package/es/CheckboxRadioLabelValueLayout-e3845f16.js +1 -1
  107. package/es/CheckboxSet-3aab5935.js +1 -1
  108. package/es/Chip-4efea02e.js +1 -1
  109. package/es/ClearIcon-f85ea340.js +1 -1
  110. package/es/CollapseIcon-84f6ba8e.js +1 -1
  111. package/es/Collapsible-2608ce3b.js +2 -2
  112. package/es/ColorPalette-950c6fc6.js +2 -2
  113. package/es/{ColorPicker-8c297849.js → ColorPicker-ae648c4c.js} +3 -3
  114. package/es/{ColorPicker-8c297849.js.map → ColorPicker-ae648c4c.js.map} +1 -1
  115. package/es/ColorSwatch-8339ee2f.js +4 -4
  116. package/es/{CompactLabelAssistance-50ff3f7e.js → CompactLabelAssistance-e2fcfcab.js} +6 -6
  117. package/es/{CompactLabelAssistance-50ff3f7e.js.map → CompactLabelAssistance-e2fcfcab.js.map} +1 -1
  118. package/es/CompactUserAssistance-6aa8894b.js +5 -5
  119. package/es/ComponentMessageContainer-d16c8b1f.js +4 -4
  120. package/es/{DatePicker-fa7d39a7.js → DatePicker-7287f0f9.js} +8 -8
  121. package/es/{DatePicker-fa7d39a7.js.map → DatePicker-7287f0f9.js.map} +1 -1
  122. package/es/DatePickerHeader-f8cf86bb.js +3 -3
  123. package/es/DiagramStyles.styles2.css +16 -10
  124. package/es/DiagramStyles.styles3.css +10 -16
  125. package/es/{Dialog-d1de5b06.js → Dialog-83368f52.js} +7 -7
  126. package/es/{Dialog-d1de5b06.js.map → Dialog-83368f52.js.map} +1 -1
  127. package/es/DirectionalCollapseArrowIcon-132761da.js +1 -1
  128. package/es/DirectionalExpandArrowIcon-5bc45cad.js +1 -1
  129. package/es/{Dropdown-9d9813a9.js → Dropdown-019aba37.js} +6 -6
  130. package/es/{Dropdown-9d9813a9.js.map → Dropdown-019aba37.js.map} +1 -1
  131. package/es/{EmbeddedIconButton-9f0e56b7.js → EmbeddedIconButton-46434710.js} +2 -2
  132. package/es/{EmbeddedIconButton-9f0e56b7.js.map → EmbeddedIconButton-46434710.js.map} +1 -1
  133. package/es/{EnvironmentProvider-6cf8ed37.js → EnvironmentProvider-6a0a8212.js} +3 -3
  134. package/es/{EnvironmentProvider-6cf8ed37.js.map → EnvironmentProvider-6a0a8212.js.map} +1 -1
  135. package/es/Expander-1347e769.js +1 -1
  136. package/es/{Flex-fc483125.js → Flex-03129963.js} +2 -2
  137. package/es/{Flex-fc483125.js.map → Flex-03129963.js.map} +1 -1
  138. package/es/{Floating-be4c0cb6.js → Floating-4a82db94.js} +4 -4
  139. package/es/{Floating-be4c0cb6.js.map → Floating-4a82db94.js.map} +1 -1
  140. package/es/{Grid-6f92d323.js → Grid-9e4b4f19.js} +2 -2
  141. package/es/{Grid-6f92d323.js.map → Grid-9e4b4f19.js.map} +1 -1
  142. package/es/GroupLoadingIndicator-19c6545a.js +1 -1
  143. package/es/{HighlightText-dd484ffd.js → HighlightText-0205faef.js} +2 -2
  144. package/es/{HighlightText-dd484ffd.js.map → HighlightText-0205faef.js.map} +1 -1
  145. package/es/Icon-4983d06e.js +3 -3
  146. package/es/IconButton-7f91481c.js +4 -4
  147. package/es/IconSwitchButton-05f1f602.js +4 -4
  148. package/es/IconToggleButton-808818f5.js +4 -4
  149. package/es/{IconUserAssistance-6abc7837.js → IconUserAssistance-61978211.js} +3 -3
  150. package/es/{IconUserAssistance-6abc7837.js.map → IconUserAssistance-61978211.js.map} +1 -1
  151. package/es/InlineHelp-9eaac91c.js +1 -1
  152. package/es/InlineUserAssistance-890293dd.js +5 -5
  153. package/es/InputDateMask-ec27aee7.js +7 -7
  154. package/es/Label-5d1ae8d7.js +8 -8
  155. package/es/LabelValueLayout-c6b9945a.js +1 -1
  156. package/es/{Layer-6c27170e.js → Layer-535577b5.js} +3 -3
  157. package/es/{Layer-6c27170e.js.map → Layer-535577b5.js.map} +1 -1
  158. package/es/{LayerHost-3cf255a6.js → LayerHost-7931b424.js} +2 -2
  159. package/es/{LayerHost-3cf255a6.js.map → LayerHost-7931b424.js.map} +1 -1
  160. package/es/{LayerManager-e30fbfd6.js → LayerManager-52a26c55.js} +2 -2
  161. package/es/{LayerManager-e30fbfd6.js.map → LayerManager-52a26c55.js.map} +1 -1
  162. package/es/Link-8503aab2.js +1 -1
  163. package/es/List-4636ba9b.js +5 -5
  164. package/es/{LiveRegion-2e8830ae.js → LiveRegion-cebac18d.js} +2 -2
  165. package/es/{LiveRegion-2e8830ae.js.map → LiveRegion-cebac18d.js.map} +1 -1
  166. package/es/{MaxLengthLiveRegion-8f552ae2.js → MaxLengthLiveRegion-8099fde5.js} +3 -3
  167. package/es/{MaxLengthLiveRegion-8f552ae2.js.map → MaxLengthLiveRegion-8099fde5.js.map} +1 -1
  168. package/es/Message-510c2db8.js +2 -2
  169. package/es/{MessageLayer-1dbdc0b6.js → MessageLayer-2a7fdec7.js} +6 -6
  170. package/es/{MessageLayer-1dbdc0b6.js.map → MessageLayer-2a7fdec7.js.map} +1 -1
  171. package/es/MessagesManager-47000438.js +3 -3
  172. package/es/Modal-c0f730b8.js +3 -3
  173. package/es/{MonthView-4e05e712.js → MonthView-4b2b483a.js} +4 -4
  174. package/es/{MonthView-4e05e712.js.map → MonthView-4b2b483a.js.map} +1 -1
  175. package/es/NavigationListItem-340ab770.js +8 -8
  176. package/es/NavigationListLinkItem-e28fd846.js +5 -5
  177. package/es/NumberInputText-60be5757.js +6 -6
  178. package/es/OverflowTabBarItem-aa0ce915.js +5 -5
  179. package/es/PRIVATE_BaseCardView.js +22 -22
  180. package/es/PRIVATE_BaseDiagram.js +29 -29
  181. package/es/PRIVATE_BaseSelector.js +17 -17
  182. package/es/PRIVATE_BaseSwatchView.js +18 -18
  183. package/es/PRIVATE_Chart.js +34 -34
  184. package/es/PRIVATE_CheckboxControl.js +25 -25
  185. package/es/PRIVATE_CheckboxRadioField.js +27 -27
  186. package/es/PRIVATE_ClearIcon.js +18 -18
  187. package/es/PRIVATE_CollapsibleNavigationList.js +20 -20
  188. package/es/PRIVATE_DatePickerHeader.js +20 -20
  189. package/es/PRIVATE_DatePickerLayout.js +4 -4
  190. package/es/PRIVATE_EmbeddedIconButton.js +6 -6
  191. package/es/PRIVATE_Expander.js +19 -19
  192. package/es/PRIVATE_FormControls.js +21 -21
  193. package/es/PRIVATE_IconSwitchButton.js +17 -17
  194. package/es/PRIVATE_Icons/CheckboxCrossed.js +16 -16
  195. package/es/PRIVATE_Icons/CheckboxMixed.js +16 -16
  196. package/es/PRIVATE_Icons/CheckboxOff.js +16 -16
  197. package/es/PRIVATE_Icons/CheckboxOn.js +16 -16
  198. package/es/PRIVATE_Icons/DragV.js +16 -16
  199. package/es/PRIVATE_Icons/None.js +16 -16
  200. package/es/PRIVATE_List.js +21 -21
  201. package/es/PRIVATE_Message.js +20 -20
  202. package/es/PRIVATE_MessageLayer.js +12 -12
  203. package/es/PRIVATE_MonthView.js +7 -7
  204. package/es/PRIVATE_MonthYearGridView.js +7 -7
  205. package/es/PRIVATE_PlotArea.js +5 -5
  206. package/es/PRIVATE_RevealToggleIcon.js +18 -18
  207. package/es/PRIVATE_RichSelectionCommon.js +28 -28
  208. package/es/PRIVATE_SelectCommon.js +33 -33
  209. package/es/PRIVATE_StyledCard.js +3 -3
  210. package/es/PRIVATE_StyledCheckbox.js +16 -16
  211. package/es/PRIVATE_StyledSwitch.js +4 -4
  212. package/es/PRIVATE_SwatchFlexView.js +18 -18
  213. package/es/PRIVATE_Table.js +35 -35
  214. package/es/PRIVATE_TableDisplay.js +19 -19
  215. package/es/PRIVATE_TableList.js +26 -26
  216. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +16 -16
  217. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +16 -16
  218. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +16 -16
  219. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +16 -16
  220. package/es/PRIVATE_ThemedIcons/CheckIcon.js +16 -16
  221. package/es/PRIVATE_ThemedIcons/CheckboxCrossedIcon.js +16 -16
  222. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +16 -16
  223. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +16 -16
  224. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +16 -16
  225. package/es/PRIVATE_ThemedIcons/CloseIcon.js +16 -16
  226. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +17 -17
  227. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +16 -16
  228. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +16 -16
  229. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +16 -16
  230. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +17 -17
  231. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +17 -17
  232. package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +16 -16
  233. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +16 -16
  234. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +16 -16
  235. package/es/PRIVATE_ThemedIcons/HelpIcon.js +16 -16
  236. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +16 -16
  237. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +16 -16
  238. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +16 -16
  239. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +16 -16
  240. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +16 -16
  241. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +16 -16
  242. package/es/PRIVATE_ThemedIcons/MinusIcon.js +16 -16
  243. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +16 -16
  244. package/es/PRIVATE_ThemedIcons/None.js +16 -16
  245. package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +16 -16
  246. package/es/PRIVATE_ThemedIcons/PlusIcon.js +16 -16
  247. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +16 -16
  248. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +16 -16
  249. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +16 -16
  250. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +16 -16
  251. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +16 -16
  252. package/es/PRIVATE_ThemedIcons/ViewIcon.js +16 -16
  253. package/es/PRIVATE_TimeComponent.js +19 -19
  254. package/es/PRIVATE_TruncatingLink.js +16 -16
  255. package/es/PRIVATE_VisOverview.js +16 -16
  256. package/es/PRIVATE_VisStatusMessage.js +5 -5
  257. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  258. package/es/{Popup-22d51095.js → Popup-992b6c27.js} +10 -10
  259. package/es/{Popup-22d51095.js.map → Popup-992b6c27.js.map} +1 -1
  260. package/es/ProgressButtonLabelLayout-69549cf9.js +3 -3
  261. package/es/{ProgressCircle-bce87dad.js → ProgressCircle-46084d0b.js} +2 -2
  262. package/es/{ProgressCircle-bce87dad.js.map → ProgressCircle-46084d0b.js.map} +1 -1
  263. package/es/RadioItem-94909632.js +6 -6
  264. package/es/ReadonlyTextFieldInput-106ce959.js +1 -1
  265. package/es/{ReferenceLineArea-cc72b070.js → ReferenceLineArea-53129f72.js} +3 -3
  266. package/es/{ReferenceLineArea-cc72b070.js.map → ReferenceLineArea-53129f72.js.map} +1 -1
  267. package/es/RevealToggleIcon-2d622d8f.js +1 -1
  268. package/es/{SectionedContent-897e9c4e.js → SectionedContent-30e5bf98.js} +5 -5
  269. package/es/{SectionedContent-897e9c4e.js.map → SectionedContent-30e5bf98.js.map} +1 -1
  270. package/es/SelectMenuGroupContext-aa1fe822.js +6 -6
  271. package/es/{SelectMobileFieldInput-0a7c968c.js → SelectMobileFieldInput-345c4d45.js} +10 -10
  272. package/es/{SelectMobileFieldInput-0a7c968c.js.map → SelectMobileFieldInput-345c4d45.js.map} +1 -1
  273. package/es/{SelectorAll-3d39196b.js → SelectorAll-de7ba2e1.js} +5 -5
  274. package/es/{SelectorAll-3d39196b.js.map → SelectorAll-de7ba2e1.js.map} +1 -1
  275. package/es/Sheet-f9f8a4a4.js +2 -2
  276. package/es/SortControl-1044fcd9.js +3 -3
  277. package/es/SplitMenuButtonTheme.styles.css +4 -4
  278. package/es/SplitMenuButtonTheme.styles2.css +4 -4
  279. package/es/StyledCard-77623731.js +1 -1
  280. package/es/{StyledLabelValueLayout-bddfb884.js → StyledLabelValueLayout-bb05f474.js} +2 -2
  281. package/es/{StyledLabelValueLayout-bddfb884.js.map → StyledLabelValueLayout-bb05f474.js.map} +1 -1
  282. package/es/StyledSwitch-dbf29d95.js +2 -2
  283. package/es/StyledTextField-7605d76a.js +5 -5
  284. package/es/Submenu-cbd77756.js +1 -1
  285. package/es/TabBar-67ca442c.js +6 -6
  286. package/es/TabBarContextMenu-c3326d67.js +2 -2
  287. package/es/TabBarLayout-9b67d1b6.js +1 -1
  288. package/es/Table-2f197c6a.js +11 -11
  289. package/es/TableColGroup-d74bd4f5.js +1 -1
  290. package/es/TextField-7884fcd7.js +3 -3
  291. package/es/Theme-redwood/theme.css +454 -454
  292. package/es/Theme-stable/theme.css +588 -588
  293. package/es/TimeComponentCanvas2D-cfb0066d.js +6 -6
  294. package/es/ToggleButton-bb69cf10.js +1 -1
  295. package/es/TruncatingLink-298c6343.js +4 -4
  296. package/es/TruncatingText-1bf00351.js +1 -1
  297. package/es/UNSAFE_AccordionItemMultiple.js +18 -18
  298. package/es/UNSAFE_AccordionItemSingle.js +18 -18
  299. package/es/UNSAFE_ActionCard.js +2 -2
  300. package/es/UNSAFE_BarChart.js +35 -35
  301. package/es/UNSAFE_BareButton.js +2 -2
  302. package/es/UNSAFE_BaseButton.js +5 -5
  303. package/es/UNSAFE_Button.js +6 -6
  304. package/es/UNSAFE_ButtonSet.js +4 -4
  305. package/es/UNSAFE_ButtonSetButton.js +5 -5
  306. package/es/UNSAFE_ButtonSetIconButton.js +17 -17
  307. package/es/UNSAFE_ButtonSetItem.js +18 -18
  308. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  309. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  310. package/es/UNSAFE_Card.js +3 -3
  311. package/es/UNSAFE_CardFlexView.js +22 -22
  312. package/es/UNSAFE_CardGridView.js +22 -22
  313. package/es/UNSAFE_Center.js +5 -5
  314. package/es/UNSAFE_Checkbox.js +25 -25
  315. package/es/UNSAFE_CheckboxItem.js +27 -27
  316. package/es/UNSAFE_CheckboxRadioField.js +4 -4
  317. package/es/UNSAFE_CheckboxSet.js +26 -26
  318. package/es/UNSAFE_Chip.js +2 -2
  319. package/es/UNSAFE_Collapsible.js +18 -18
  320. package/es/UNSAFE_ColorPalette.js +19 -19
  321. package/es/UNSAFE_ColorPicker.js +21 -21
  322. package/es/UNSAFE_ColorSwatch.js +17 -17
  323. package/es/UNSAFE_ComboChart.js +35 -35
  324. package/es/UNSAFE_ComponentMessage.js +20 -20
  325. package/es/UNSAFE_ContainerDiagram/themes/DiagramStyles.css.js +1 -1
  326. package/es/UNSAFE_ContainerDiagram.js +29 -29
  327. package/es/UNSAFE_ConveyorBelt.js +18 -18
  328. package/es/UNSAFE_DatePicker.js +27 -27
  329. package/es/UNSAFE_Diagram/themes/DiagramStyles.css.js +1 -1
  330. package/es/UNSAFE_Diagram.js +29 -29
  331. package/es/UNSAFE_Dialog.js +22 -22
  332. package/es/UNSAFE_DragHandle.js +17 -17
  333. package/es/UNSAFE_DrawerLayout.js +12 -12
  334. package/es/UNSAFE_DrawerPopup.js +11 -11
  335. package/es/UNSAFE_Dropdown.js +15 -15
  336. package/es/UNSAFE_Environment.js +4 -4
  337. package/es/UNSAFE_ExpandableList.js +25 -25
  338. package/es/UNSAFE_FilePicker.js +4 -4
  339. package/es/UNSAFE_FlatTreeView.js +25 -25
  340. package/es/UNSAFE_Flex.js +4 -4
  341. package/es/UNSAFE_Floating.js +11 -11
  342. package/es/UNSAFE_FormLayout.js +2 -2
  343. package/es/UNSAFE_Gantt.js +23 -23
  344. package/es/UNSAFE_Grid.js +4 -4
  345. package/es/UNSAFE_HighlightText.js +4 -4
  346. package/es/UNSAFE_Icon.js +16 -16
  347. package/es/UNSAFE_IconButton.js +17 -17
  348. package/es/UNSAFE_IconMenuButton.js +25 -25
  349. package/es/UNSAFE_IconProgressButton.js +21 -21
  350. package/es/UNSAFE_IconToggleButton.js +17 -17
  351. package/es/UNSAFE_Indexer.js +19 -19
  352. package/es/UNSAFE_InlineSelectSingle.js +34 -34
  353. package/es/UNSAFE_InputColor.js +32 -32
  354. package/es/UNSAFE_InputDateMask.js +26 -26
  355. package/es/UNSAFE_InputDatePicker.js +36 -36
  356. package/es/UNSAFE_InputPassword.js +26 -26
  357. package/es/UNSAFE_InputSensitiveText.js +27 -27
  358. package/es/UNSAFE_InputText.js +28 -28
  359. package/es/UNSAFE_InputTimeMask.js +26 -26
  360. package/es/UNSAFE_Label.js +25 -25
  361. package/es/UNSAFE_LabelValueLayout.js +4 -4
  362. package/es/UNSAFE_LabelledLink.js +27 -27
  363. package/es/UNSAFE_Layer.js +8 -8
  364. package/es/UNSAFE_Legend.js +27 -27
  365. package/es/UNSAFE_LineAreaChart.js +35 -35
  366. package/es/UNSAFE_Link.js +2 -2
  367. package/es/UNSAFE_ListItemLayout.js +4 -4
  368. package/es/UNSAFE_ListView.js +28 -28
  369. package/es/UNSAFE_LiveRegion.js +4 -4
  370. package/es/UNSAFE_Menu.js +26 -26
  371. package/es/UNSAFE_MenuButton.js +25 -25
  372. package/es/UNSAFE_MessageBanner.js +20 -20
  373. package/es/UNSAFE_MessageToast.js +22 -22
  374. package/es/UNSAFE_MeterBar.js +16 -16
  375. package/es/UNSAFE_MeterCircle.js +17 -17
  376. package/es/UNSAFE_Modal.js +8 -8
  377. package/es/UNSAFE_NavigationList.js +28 -28
  378. package/es/UNSAFE_NavigationListCommon.js +20 -20
  379. package/es/UNSAFE_NumberInputText.js +28 -28
  380. package/es/UNSAFE_OverflowTabBar.js +27 -27
  381. package/es/UNSAFE_PictoChart.js +25 -25
  382. package/es/UNSAFE_PieChart.js +26 -26
  383. package/es/UNSAFE_Popup.js +18 -18
  384. package/es/UNSAFE_ProgressBar.js +4 -4
  385. package/es/UNSAFE_ProgressButton.js +21 -21
  386. package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
  387. package/es/UNSAFE_ProgressCircle.js +4 -4
  388. package/es/UNSAFE_RadioItem.js +25 -25
  389. package/es/UNSAFE_RadioSet.js +27 -27
  390. package/es/UNSAFE_RatingGauge.js +18 -18
  391. package/es/UNSAFE_ReorderableTabBar.js +27 -27
  392. package/es/UNSAFE_RichCheckboxSet.js +28 -28
  393. package/es/UNSAFE_RichRadioSet.js +29 -29
  394. package/es/UNSAFE_RichSelectionItem.js +30 -30
  395. package/es/UNSAFE_ScatterChart.js +35 -35
  396. package/es/UNSAFE_SectionalLegend.js +27 -27
  397. package/es/UNSAFE_SelectMultiple.js +37 -37
  398. package/es/UNSAFE_SelectSingle.js +37 -37
  399. package/es/UNSAFE_SelectionCard.js +3 -3
  400. package/es/UNSAFE_Selector.js +17 -17
  401. package/es/UNSAFE_SelectorAll.js +19 -19
  402. package/es/UNSAFE_Sheet.js +11 -11
  403. package/es/UNSAFE_SortControl.js +20 -20
  404. package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
  405. package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
  406. package/es/UNSAFE_SplitMenuButton.js +26 -26
  407. package/es/UNSAFE_Switch.js +26 -26
  408. package/es/UNSAFE_TabBar.js +28 -28
  409. package/es/UNSAFE_TabBarCommon.js +28 -28
  410. package/es/UNSAFE_TabBarMixed.js +28 -28
  411. package/es/UNSAFE_TableView.js +35 -35
  412. package/es/UNSAFE_TagCloud.js +26 -26
  413. package/es/UNSAFE_TextArea.js +27 -27
  414. package/es/UNSAFE_TextAreaAutosize.js +27 -27
  415. package/es/UNSAFE_TextField.js +20 -20
  416. package/es/UNSAFE_ToggleButton.js +5 -5
  417. package/es/UNSAFE_Toolbar.js +4 -4
  418. package/es/UNSAFE_Train.js +17 -17
  419. package/es/UNSAFE_TruncatingBadge.js +17 -17
  420. package/es/UNSAFE_TruncatingText.js +17 -17
  421. package/es/UNSAFE_UserAssistance.js +26 -26
  422. package/es/UNSAFE_View.js +7 -7
  423. package/es/UNSAFE_VirtualizedListView.js +21 -21
  424. package/es/UNSAFE_VisInvalidDataMessage.js +6 -6
  425. package/es/UNSAFE_VisNoDataMessage.js +6 -6
  426. package/es/UNSAFE_VisProgressiveLoader.js +5 -5
  427. package/es/UNSAFE_WindowOverlay.js +4 -4
  428. package/es/{View-818f2f31.js → View-5bdd9b3c.js} +5 -5
  429. package/es/{View-818f2f31.js.map → View-5bdd9b3c.js.map} +1 -1
  430. package/es/{VisStatusMessage-09c532e3.js → VisStatusMessage-e2d629bb.js} +2 -2
  431. package/es/{VisStatusMessage-09c532e3.js.map → VisStatusMessage-e2d629bb.js.map} +1 -1
  432. package/es/{VisTabularDatatip-f45069f1.js → VisTabularDatatip-85b00c1b.js} +2 -2
  433. package/es/{VisTabularDatatip-f45069f1.js.map → VisTabularDatatip-85b00c1b.js.map} +1 -1
  434. package/es/{WindowOverlay-467c2d12.js → WindowOverlay-7264c44a.js} +2 -2
  435. package/es/{WindowOverlay-467c2d12.js.map → WindowOverlay-7264c44a.js.map} +1 -1
  436. package/es/{YearsGridView-5286a756.js → YearsGridView-6c18094a.js} +4 -4
  437. package/es/{YearsGridView-5286a756.js.map → YearsGridView-6c18094a.js.map} +1 -1
  438. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  439. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  440. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  441. package/es/hooks/PRIVATE_useChartContextMenu.js +23 -23
  442. package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
  443. package/es/hooks/PRIVATE_useChartEvents.js +19 -19
  444. package/es/hooks/PRIVATE_useChartMarquee.js +19 -19
  445. package/es/hooks/PRIVATE_useCollectionFocusRing.js +17 -17
  446. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  447. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  448. package/es/hooks/PRIVATE_useDatatip.js +12 -12
  449. package/es/hooks/PRIVATE_useDetectHorizontalOverflow.js +16 -16
  450. package/es/hooks/PRIVATE_useFloating.js +4 -4
  451. package/es/hooks/PRIVATE_useItemAction.js +17 -17
  452. package/es/hooks/PRIVATE_useListCommon.js +19 -19
  453. package/es/hooks/PRIVATE_useOutsideMousedown.js +9 -9
  454. package/es/hooks/PRIVATE_useRadioFocusManager.js +4 -4
  455. package/es/hooks/PRIVATE_useReorderable.js +19 -19
  456. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  457. package/es/hooks/PRIVATE_useSelection.js +4 -4
  458. package/es/hooks/PRIVATE_useTabBar.js +26 -26
  459. package/es/hooks/PRIVATE_useTabbableModeSet.js +17 -17
  460. package/es/hooks/PRIVATE_useTooltipOnTruncation.js +17 -17
  461. package/es/hooks/PRIVATE_useVisContextMenu.js +23 -23
  462. package/es/hooks/PRIVATE_useVisDragModeControls.js +19 -19
  463. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  464. package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
  465. package/es/hooks/PRIVATE_useVisSelection.js +15 -15
  466. package/es/hooks/UNSAFE_useBareButton.js +2 -2
  467. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  468. package/es/hooks/UNSAFE_useCurrentBgColor.js +2 -2
  469. package/es/hooks/UNSAFE_useDensity.js +3 -3
  470. package/es/hooks/UNSAFE_useHiddenTestMethod.js +3 -3
  471. package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
  472. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  473. package/es/hooks/UNSAFE_useScale.js +3 -3
  474. package/es/hooks/UNSAFE_useTestId.js +3 -3
  475. package/es/hooks/UNSAFE_useTheme.js +3 -3
  476. package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
  477. package/es/hooks/UNSAFE_useTooltip.js +17 -17
  478. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  479. package/es/hooks/UNSAFE_useUser.js +3 -3
  480. package/es/{popupUtils-7774330e.js → popupUtils-51366a29.js} +2 -2
  481. package/es/{popupUtils-7774330e.js.map → popupUtils-51366a29.js.map} +1 -1
  482. package/es/{tooltipUtils-90fb656f.js → tooltipUtils-af0abd38.js} +5 -5
  483. package/es/{tooltipUtils-90fb656f.js.map → tooltipUtils-af0abd38.js.map} +1 -1
  484. package/es/useBareButton-ff4bd21e.js +1 -1
  485. package/es/useCellNavigation-0565b6dd.js +1 -1
  486. package/es/useChartContextMenu-5de82cd7.js +2 -2
  487. package/es/{useChartDatatip-cba78e0f.js → useChartDatatip-8dd22b71.js} +4 -4
  488. package/es/{useChartDatatip-cba78e0f.js.map → useChartDatatip-8dd22b71.js.map} +1 -1
  489. package/es/{useColorScheme-67245285.js → useColorScheme-c4f6caab.js} +2 -2
  490. package/es/{useColorScheme-67245285.js.map → useColorScheme-c4f6caab.js.map} +1 -1
  491. package/es/useContextMenu-730d6c12.js +2 -2
  492. package/es/{useCssVars-048a52d8.js → useCssVars-bc2527ac.js} +5 -5
  493. package/es/{useCssVars-048a52d8.js.map → useCssVars-bc2527ac.js.map} +1 -1
  494. package/es/{useCurrentKey-38e5f097.js → useCurrentKey-5f865bbd.js} +2 -2
  495. package/es/{useCurrentKey-38e5f097.js.map → useCurrentKey-5f865bbd.js.map} +1 -1
  496. package/es/{useDatatip-ef5c47a7.js → useDatatip-4895a07a.js} +4 -4
  497. package/es/{useDatatip-ef5c47a7.js.map → useDatatip-4895a07a.js.map} +1 -1
  498. package/es/{useDensity-969273f3.js → useDensity-1acb0153.js} +2 -2
  499. package/es/{useDensity-969273f3.js.map → useDensity-1acb0153.js.map} +1 -1
  500. package/es/{useDisplayValue-5bbf2830.js → useDisplayValue-65bbc74e.js} +7 -7
  501. package/es/{useDisplayValue-5bbf2830.js.map → useDisplayValue-65bbc74e.js.map} +1 -1
  502. package/es/{useExpandCollapse-51f9bb4b.js → useExpandCollapse-5739cfd2.js} +2 -2
  503. package/es/{useExpandCollapse-51f9bb4b.js.map → useExpandCollapse-5739cfd2.js.map} +1 -1
  504. package/es/{useFloating-c74a7f54.js → useFloating-b9d680f7.js} +2 -2
  505. package/es/{useFloating-c74a7f54.js.map → useFloating-b9d680f7.js.map} +1 -1
  506. package/es/{useHiddenTestMethod-ec7b3989.js → useHiddenTestMethod-f3f25093.js} +2 -2
  507. package/es/{useHiddenTestMethod-ec7b3989.js.map → useHiddenTestMethod-f3f25093.js.map} +1 -1
  508. package/es/{useKeyboardEvents-a1495728.js → useKeyboardEvents-9aae7ea3.js} +2 -2
  509. package/es/{useKeyboardEvents-a1495728.js.map → useKeyboardEvents-9aae7ea3.js.map} +1 -1
  510. package/es/useLegendContextMenu-a678b26f.js +4 -4
  511. package/es/{useMeterDatatip-f61ca3e0.js → useMeterDatatip-538a4d53.js} +3 -3
  512. package/es/{useMeterDatatip-f61ca3e0.js.map → useMeterDatatip-538a4d53.js.map} +1 -1
  513. package/es/useNavigation-b257c33a.js +1 -1
  514. package/es/{useOutsideClick-01f3d3e1.js → useOutsideClick-b777a43e.js} +2 -2
  515. package/es/{useOutsideClick-01f3d3e1.js.map → useOutsideClick-b777a43e.js.map} +1 -1
  516. package/es/{useOutsideMousedown-e0866d58.js → useOutsideMousedown-c45c22c0.js} +2 -2
  517. package/es/{useOutsideMousedown-e0866d58.js.map → useOutsideMousedown-c45c22c0.js.map} +1 -1
  518. package/es/{usePopupAnimation-7c5db425.js → usePopupAnimation-96d2bc83.js} +2 -2
  519. package/es/{usePopupAnimation-7c5db425.js.map → usePopupAnimation-96d2bc83.js.map} +1 -1
  520. package/es/{usePrefixSuffix-95fc00fd.js → usePrefixSuffix-f981b65f.js} +2 -2
  521. package/es/{usePrefixSuffix-95fc00fd.js.map → usePrefixSuffix-f981b65f.js.map} +1 -1
  522. package/es/{useRadioFocusManager-d9eecfb4.js → useRadioFocusManager-36eb283e.js} +2 -2
  523. package/es/{useRadioFocusManager-d9eecfb4.js.map → useRadioFocusManager-36eb283e.js.map} +1 -1
  524. package/es/{useReorderableItem-06bd7a7b.js → useReorderableItem-857636b7.js} +3 -3
  525. package/es/{useReorderableItem-06bd7a7b.js.map → useReorderableItem-857636b7.js.map} +1 -1
  526. package/es/{useRovingTabIndexContainer-c0356f5d.js → useRovingTabIndexContainer-5992e107.js} +2 -2
  527. package/es/{useRovingTabIndexContainer-c0356f5d.js.map → useRovingTabIndexContainer-5992e107.js.map} +1 -1
  528. package/es/{useScale-93490e54.js → useScale-434ad939.js} +2 -2
  529. package/es/{useScale-93490e54.js.map → useScale-434ad939.js.map} +1 -1
  530. package/es/{useSelectCommon-309d0f07.js → useSelectCommon-a3c69d60.js} +13 -8
  531. package/es/useSelectCommon-a3c69d60.js.map +1 -0
  532. package/es/{useSelectDrill-2f855daa.js → useSelectDrill-f669e729.js} +3 -3
  533. package/es/{useSelectDrill-2f855daa.js.map → useSelectDrill-f669e729.js.map} +1 -1
  534. package/es/{useSelection-d6fefa3d.js → useSelection-65134722.js} +2 -2
  535. package/es/{useSelection-d6fefa3d.js.map → useSelection-65134722.js.map} +1 -1
  536. package/es/{useSelection-10ed8060.js → useSelection-82bec039.js} +6 -6
  537. package/es/{useSelection-10ed8060.js.map → useSelection-82bec039.js.map} +1 -1
  538. package/es/useTabBar-c5558e77.js +3 -3
  539. package/es/{useTestId-ab1bede6.js → useTestId-f24ac480.js} +2 -2
  540. package/es/{useTestId-ab1bede6.js.map → useTestId-f24ac480.js.map} +1 -1
  541. package/es/{useTheme-c2cfbc29.js → useTheme-0e7497db.js} +2 -2
  542. package/es/{useTheme-c2cfbc29.js.map → useTheme-0e7497db.js.map} +1 -1
  543. package/es/{useThemeInterpolations-5f358139.js → useThemeInterpolations-e144e8ec.js} +5 -5
  544. package/es/{useThemeInterpolations-5f358139.js.map → useThemeInterpolations-e144e8ec.js.map} +1 -1
  545. package/es/{useTooltip-ab739df0.js → useTooltip-94af94d4.js} +2 -2
  546. package/es/{useTooltip-ab739df0.js.map → useTooltip-94af94d4.js.map} +1 -1
  547. package/es/{useTooltipControlled-b7f30aee.js → useTooltipControlled-f2cfa454.js} +5 -5
  548. package/es/{useTooltipControlled-b7f30aee.js.map → useTooltipControlled-f2cfa454.js.map} +1 -1
  549. package/es/{useTooltipOnTruncation-31afc3f2.js → useTooltipOnTruncation-94282e75.js} +4 -4
  550. package/es/{useTooltipOnTruncation-31afc3f2.js.map → useTooltipOnTruncation-94282e75.js.map} +1 -1
  551. package/es/{useTranslationBundle-bc6e0896.js → useTranslationBundle-4822502f.js} +2 -2
  552. package/es/{useTranslationBundle-bc6e0896.js.map → useTranslationBundle-4822502f.js.map} +1 -1
  553. package/es/{useUser-e543b73c.js → useUser-06d34d19.js} +2 -2
  554. package/es/{useUser-e543b73c.js.map → useUser-06d34d19.js.map} +1 -1
  555. package/es/useVisDragModeControls-af64848c.js +1 -1
  556. package/es/{useVisEvents-0edc925f.js → useVisEvents-256dee29.js} +2 -2
  557. package/es/{useVisEvents-0edc925f.js.map → useVisEvents-256dee29.js.map} +1 -1
  558. package/es/utils/PRIVATE_collectionUtils.js +17 -17
  559. package/es/utils/PRIVATE_tabBarUtils.js +17 -17
  560. package/es/utils/PRIVATE_tooltipUtils.js +14 -14
  561. package/es/utils/PRIVATE_visTestUtils.js +4 -4
  562. package/es/utils/UNSAFE_popupUtils.js +8 -8
  563. package/es/{withDirectionIcon-b725a6d7.js → withDirectionIcon-a8d84a3d.js} +2 -2
  564. package/es/{withDirectionIcon-b725a6d7.js.map → withDirectionIcon-a8d84a3d.js.map} +1 -1
  565. package/es/withThemeProps-dbd4fedf.js +2 -2
  566. package/package.json +2 -2
  567. package/amd/CheckboxSet-f000e5c2.js +0 -2
  568. package/amd/CheckboxSet-f000e5c2.js.map +0 -1
  569. package/amd/ColorPicker-e3167e4c.js +0 -2
  570. package/amd/ExpandableList-233c279e.js +0 -2
  571. package/amd/InputDatePicker-030e345a.js +0 -2
  572. package/amd/ListView-02a92d18.js +0 -2
  573. package/amd/TextArea-345f89d4.js +0 -2
  574. package/amd/TextArea-345f89d4.js.map +0 -1
  575. package/amd/TextAreaAutosize-01dfd98e.js +0 -2
  576. package/amd/VirtualizedListView-a0f338c2.js +0 -2
  577. package/amd/useSelectCommon-28307b63.js +0 -2
  578. package/amd/useSelectCommon-28307b63.js.map +0 -1
  579. package/cjs/useSelectCommon-b0d7feb3.js.map +0 -1
  580. package/es/useSelectCommon-309d0f07.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ListView-02a92d18.js","sources":["../../src/UNSAFE_ListView/ListViewReorderableItem.tsx","../../src/UNSAFE_ListView/ListViewContextMenu.tsx","../../src/UNSAFE_ListView/useListViewContextMenu.ts","../../src/UNSAFE_ListView/ListView.tsx","../../src/UNSAFE_ListView/useListViewCurrentItemOverride.tsx","../../src/UNSAFE_ListView/useListViewReorder.ts"],"sourcesContent":["import { memo } from 'preact/compat';\nimport { useRef, useCallback } from 'preact/hooks';\nimport { useReorderableItem } from '../hooks/PRIVATE_useReorderable';\nimport { ReorderableItemProps } from '../UNSAFE_Collection/Reorderable.types';\nimport { LIST_ITEM_SELECTOR } from '../PRIVATE_List';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { styles } from './themes/ListViewStyles.css';\nimport { isKeyDefined } from '../utils/UNSAFE_keys';\n\nexport type ListReorderableItemProps<K> = ReorderableItemProps<K>;\n\n/**\n * A private item that will be used by ReorderableCardFlexView, location TBD (could be moved to PRIVATE_CardFlexView)\n */\nexport function ListViewReorderableItem<K extends string | number>({\n children,\n dragKey,\n setDragKey,\n onReorder,\n rootRef,\n itemKey\n}: ListReorderableItemProps<K> & { itemKey: K }) {\n const itemRef = useRef<HTMLDivElement | null>(null);\n const itemStyles = {\n itemOverlayFront: styles.reorderableItemOverlayFront,\n itemOverlayRear: styles.reorderableItemOverlayRear,\n itemDragger: styles.reorderableItemDragger\n };\n const getItem = () => itemRef?.current?.closest(LIST_ITEM_SELECTOR);\n const setTransferData = useCallback(\n (event: DragEvent) => {\n event.dataTransfer?.setData('text/listview-items-key', JSON.stringify(itemKey));\n },\n [itemKey]\n );\n const { rootProps, isDragged, overlayZoneBeforeProps, overlayZoneAfterProps } =\n useReorderableItem({\n isDisabled: onReorder ? false : true,\n dragKey,\n setDragKey,\n onReorder,\n rootRef,\n ref: itemRef,\n getItem,\n setTransferData,\n itemStyles,\n itemSelector: LIST_ITEM_SELECTOR,\n isVertical: true\n });\n const classes = classNames([rootProps?.class, styles.reorderableItemDnd]);\n\n return (\n <div {...rootProps} class={classes}>\n {children}\n {!isDragged && isKeyDefined(dragKey) && (\n <>\n <div {...overlayZoneBeforeProps}></div>\n <div {...overlayZoneAfterProps}></div>\n </>\n )}\n </div>\n );\n}\n\nexport const MemoizeListViewReorderableItem = memo(\n ListViewReorderableItem,\n <K,>(prev: ListReorderableItemProps<K>, next: ListReorderableItemProps<K>) => {\n if (prev && next) {\n return prev.children === next.children && prev.dragKey === next.dragKey;\n }\n return false;\n }\n);\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentChildren, ComponentProps } from 'preact';\n\nimport { ListItemContext } from '#UNSAFE_Collection';\nimport { Menu } from '#UNSAFE_Menu';\nimport { ListViewContextMenuConfig } from './List.types';\nimport { isMenuChildrenFalsy } from '#UNSAFE_Menu/menuUtils';\n\nexport type Props<K extends string | number, D> = Omit<ComponentProps<typeof Menu>, 'children'> & {\n contextMenuConfig: ListViewContextMenuConfig<K, D>;\n} & { contextMenuContext: ListItemContext<K, D> } & {\n testId: ComponentProps<typeof Menu>['testId'];\n};\n\n/**\n * The internal component used to render a custom context menu\n */\nexport function ListViewContextMenu<K extends string | number, D>({\n contextMenuConfig,\n testId,\n contextMenuContext,\n ...menuProps\n}: Props<K, D>) {\n const accessibleLabel = contextMenuConfig.accessibleLabel;\n\n let menuItems: ComponentChildren;\n // Important to call items renderer only when isOpen is true so we know there is a contextMenuContext\n if (menuProps.isOpen) {\n menuItems = contextMenuConfig.itemsRenderer(contextMenuContext);\n if (isMenuChildrenFalsy(menuItems)) {\n return null;\n }\n } else {\n menuItems = null;\n }\n\n return (\n <Menu\n {...menuProps}\n {...(accessibleLabel && {\n 'aria-label': accessibleLabel\n })}\n testId={testId}>\n {menuItems}\n </Menu>\n );\n}\n","import type { ComponentProps, RefObject } from 'preact';\nimport { useCallback, useState, useRef } from 'preact/hooks';\n\nimport { DataState, ListItemContext, CurrentKeyDetail } from '#UNSAFE_Collection';\nimport { Menu } from '#UNSAFE_Menu';\nimport { findItemContext } from '#hooks/PRIVATE_useItemAction';\nimport { useContextMenuGesture } from '#hooks/UNSAFE_useContextMenuGesture';\nimport { findElementByKey, keyExtractor } from '#utils/PRIVATE_collectionUtils';\nimport { ListView } from './ListView';\nimport { LIST_ITEM_SELECTOR } from '#PRIVATE_List';\n\ntype MenuProps = Pick<\n ComponentProps<typeof Menu>,\n 'anchorRef' | 'initialFocus' | 'placement' | 'offsetValue' | 'isOpen'\n>;\n\nconst TOUCH_OFFSET_VALUE = 40;\n\nconst menuPropGestureStates: Record<\n 'mouse' | 'keyboard' | 'touch',\n Omit<Required<MenuProps>, 'anchorRef' | 'isOpen'>\n> = {\n mouse: {\n initialFocus: 'menu',\n placement: 'bottom-start',\n offsetValue: 0\n },\n keyboard: {\n initialFocus: 'firstItem',\n placement: 'bottom-start',\n offsetValue: 0\n },\n touch: {\n initialFocus: 'firstItem',\n placement: 'end',\n offsetValue: TOUCH_OFFSET_VALUE\n }\n};\n\nconst initialMenuProps: MenuProps = {\n isOpen: false,\n initialFocus: 'menu',\n placement: 'bottom-start',\n offsetValue: 0,\n anchorRef: { current: null }\n};\n\ntype ListViewProps<K extends string | number, D> = ComponentProps<typeof ListView<K, D>>;\n\nexport const useListViewContextMenu = <K extends string | number, D>(\n dataState: DataState<K, D> | null,\n contextMenuConfig: ListViewProps<K, D>['contextMenuConfig'],\n scrollListRef: RefObject<HTMLElement | null>,\n updateCurrentKey: (key: K) => void\n) => {\n /*Context Menu section\n TODO: A version of context Menu listview will be merged using useContextMenuGesture instead. Once it's merged we\n can go back to this to create a hook or utility that could be share among all collection comps. JET-60320\n */\n\n /*\n Steps to open a menu:\n 1.- useContextMenu handler is called when menu is supposed to be opened.\n 2.- We set contextMenuContext when contextMenuRenderer is called.\n 3.- We dispatch opening the menu with the correct anchor.\n 5.- Menu receives updated props and updated contextMenuContext.\n 6.- Menu is opened.\n\n */\n\n //Supposed to be updated when menu is about to be opened\n //We set an initial key value for the context menu context, to allow user use object destructuring inside the\n //contextMenuRenderer. It doesn't matter if the key is not correct at the initial rendering since menu starts\n //being closed always\n const [contextMenuContext, setContextMenuContext] = useState<ListItemContext<K, D>>();\n\n const [menuProps, setMenuProps] = useState<MenuProps>(initialMenuProps);\n\n const currentKeyRef = useRef<K>();\n const notifyCurrentKeyChanged = (detail: CurrentKeyDetail<K>) => {\n currentKeyRef.current = detail.value;\n };\n\n const { triggerProps } = useContextMenuGesture(\n ({ gesture, anchor, target }) => {\n let anchorBasedOnGesture = anchor;\n if (gesture === 'keyboard') {\n //We find the element where the position of the menu is going to be based of\n const elem = findElementByKey(\n scrollListRef.current as HTMLElement,\n currentKeyRef.current as K,\n LIST_ITEM_SELECTOR\n );\n\n //We set the correct anchor\n anchorBasedOnGesture = elem ? elem : anchor;\n\n const context = findItemContext(\n currentKeyRef.current as K,\n dataState as DataState<string | number | null, D>\n );\n\n setContextMenuContext(context as ListItemContext<K, D>);\n } else {\n //We search for the key using the target of the event\n const key = keyExtractor(target as HTMLElement, LIST_ITEM_SELECTOR);\n\n const context = findItemContext(key, dataState as DataState<string | number | null, D>);\n\n setContextMenuContext(context as ListItemContext<K, D>);\n\n //We update the key so when we close logical focus is on the correct item\n updateCurrentKey(key as K);\n }\n setMenuProps({\n ...menuPropGestureStates[gesture],\n anchorRef: { current: anchorBasedOnGesture },\n isOpen: true\n });\n },\n {\n isDisabled: !contextMenuConfig //If there is no a context menu renderer we disable the hook\n }\n );\n\n const handleCloseContextMenu = useCallback<Required<ComponentProps<typeof Menu>>['onClose']>(\n (detail) => {\n /*\n TODO: Focus ring should be visible when context menu was closed because of selecting an item using keyboard,\n but should not be visible when the selection was done using mouse or touch. This would probably means menu\n onClose API is going to be changed a little bit so we can satisfy this requirement. JET-62372\n */\n //Focus has to be set on the current target that was obtained\n //during context menu gesture when menu is dismissed or item is \"selected\"\n if (detail.reason === 'dismissed' || detail.reason === 'itemAction') {\n scrollListRef.current?.focus({ preventScroll: true });\n }\n // We close the menu.The only prop that matters here is isOpen\n setMenuProps({ ...initialMenuProps });\n },\n [scrollListRef]\n );\n\n return {\n menuProps: { ...menuProps, onClose: handleCloseContextMenu },\n onClose: handleCloseContextMenu,\n contextMenuContext: contextMenuContext as ListItemContext<K, D>,\n triggerProps,\n notifyCurrentKeyChanged\n } as const;\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentChildren, JSX } from 'preact';\nimport { ForwardedRef, forwardRef } from 'preact/compat';\nimport { useCallback, useImperativeHandle, useRef } from 'preact/hooks';\nimport { ReorderableContext } from '../hooks/PRIVATE_useReorderable';\nimport { DataState, CurrentKeyDetail, ListItemRendererContext } from '../UNSAFE_Collection';\nimport { HiddenAccessible } from '../UNSAFE_HiddenAccessible';\nimport { List, SkeletonContainer } from '../PRIVATE_List';\nimport {\n ListProps,\n ListViewContextMenuConfig,\n ListViewHandle,\n SkeletonRendererContext\n} from './List.types';\nimport { getScrollPosition } from './ScrollPositionUtils';\nimport { MemoizeListViewReorderableItem } from './ListViewReorderableItem';\nimport { useListViewReorder } from './useListViewReorder';\nimport { ListViewContextMenu } from './ListViewContextMenu';\nimport { useListViewContextMenu } from './useListViewContextMenu';\nimport { useListViewCurrentItemOverride } from './useListViewCurrentItemOverride';\nimport { LOADMORE_STYLE_CLASS } from '../PRIVATE_LoadMoreCollection';\n\n/**\n * Props specific to non-virtualized ListView\n */\ntype NonVirtualizedListProps<K, D> = {\n /**\n * The data that is used to render each item in ListView. If the value is null, then ListView will show nothing\n * if hasMore is false, or loading indicator if hasMore is true.\n */\n data: D[] | null;\n /**\n * A callback function to extract the key which is used to identify the item.\n */\n getRowKey: (data: D) => K;\n /**\n * Whether there are more data available to load. By default this returns false.\n */\n hasMore?: boolean;\n /**\n * An optional callback function which is invoked when user scrolls to the end of the list.\n */\n onLoadMore?: () => void;\n\n /**\n * Configuration used to specify a context menu.\n */\n contextMenuConfig?: ListViewContextMenuConfig<K, D>;\n};\n\n/**\n * Props for the ListView Component\n */\nexport type Props<K, D> = Pick<\n ListProps<K, D>,\n | 'aria-label'\n | 'aria-labelledby'\n | 'aria-describedby'\n | 'children'\n | 'gridlines'\n | 'currentItemOverride'\n | 'onPersistCurrentItem'\n | 'onItemAction'\n | 'onSelectionChange'\n | 'promotedSection'\n | 'selectedKeys'\n | 'selectionMode'\n | 'viewportConfig'\n | 'testId'\n | 'scrollPositionOverride'\n | 'onReorder'\n | 'itemPadding'\n | 'itemEnterKeyFocusBehavior'\n | 'skeletonRenderer'\n> &\n NonVirtualizedListProps<K, D>;\n/**\n * A list view displays data items as a list or a grid with highly interactive features.\n */\nexport const ListView = forwardRef(\n <K extends string | number, D>(\n { children, ...props }: Props<K, D>,\n ref?: ForwardedRef<ListViewHandle<K>>\n ) => {\n const { contextMenuConfig } = props;\n const listRef = useRef<HTMLDivElement | null>(null);\n\n const { currentItemOverride, updateCurrentItemOverride } = useListViewCurrentItemOverride(\n props.currentItemOverride\n );\n\n const dataMetadata = props.data\n ? props.data.map((aData: D) => {\n const key = props.getRowKey(aData);\n return { data: aData, metadata: { key } };\n })\n : null;\n\n const loadRange = props.onLoadMore ? props.onLoadMore : () => {};\n const dataState = dataMetadata\n ? ({\n offset: 0,\n data: dataMetadata,\n sizePrecision: props.hasMore ? 'atLeast' : 'exact',\n totalSize: dataMetadata.length\n } as DataState<K, D>)\n : null;\n\n useImperativeHandle(ref!, () => ({\n getScrollPosition: () => {\n if (listRef.current) {\n return getScrollPosition(listRef.current);\n }\n return { y: 0 };\n },\n focus: () => {\n if (listRef.current) {\n listRef.current.focus();\n }\n }\n }));\n\n /**\n * Reorder Section\n */\n const isReorderEnabled = props.onReorder != undefined;\n const {\n reorderProps,\n reorderItemProps,\n reorderContext,\n reorderInstructionsId,\n reorderInstructions\n } = useListViewReorder({\n onReorder: props.onReorder,\n rootRef: listRef,\n viewportConfig: props.viewportConfig\n });\n\n const { triggerProps, menuProps, contextMenuContext, notifyCurrentKeyChanged } =\n useListViewContextMenu(dataState, contextMenuConfig, listRef, updateCurrentItemOverride);\n\n const onPersistCurrentItem = (detail: CurrentKeyDetail<K>) => {\n props.onPersistCurrentItem?.(detail);\n notifyCurrentKeyChanged(detail);\n };\n\n const reorderableItemRenderer = useCallback(\n (context: ListItemRendererContext<K, D>) => (\n <MemoizeListViewReorderableItem {...reorderItemProps} itemKey={context.metadata.key}>\n {children(context)}\n </MemoizeListViewReorderableItem>\n ),\n [children, reorderItemProps]\n );\n\n if (isReorderEnabled && reorderItemProps) {\n return (\n <>\n <ReorderableContext.Provider value={reorderContext}>\n <List\n {...props}\n aria-describedby={reorderInstructionsId}\n contextMenuTriggerProps={triggerProps}\n reorderProps={reorderProps}\n onLoadRange={loadRange}\n scrollerRef={listRef}\n data={dataState}\n currentItemOverride={currentItemOverride}\n onPersistCurrentItem={onPersistCurrentItem}>\n {reorderableItemRenderer}\n </List>\n <span id={reorderInstructionsId}>\n <HiddenAccessible>{reorderInstructions}</HiddenAccessible>\n </span>\n </ReorderableContext.Provider>\n {contextMenuConfig && (\n <ListViewContextMenu\n {...menuProps}\n testId={props.testId ? props.testId + '-menu' : undefined}\n contextMenuConfig={contextMenuConfig}\n contextMenuContext={contextMenuContext}\n />\n )}\n </>\n );\n }\n\n const customInitialSkeleton = (\n skeletonRenderer: (context: SkeletonRendererContext) => ComponentChildren\n ) => {\n return (\n <SkeletonContainer minimumCount={25}>\n {(index) => {\n const context: SkeletonRendererContext = {\n loadingStatus: 'initial',\n index: index\n };\n return skeletonRenderer(context);\n }}\n </SkeletonContainer>\n );\n };\n\n const customLoadMoreSkeleton = (\n skeletonRenderer: (context: SkeletonRendererContext) => ComponentChildren\n ) => {\n return (\n <div class={LOADMORE_STYLE_CLASS}>\n <SkeletonContainer minimumCount={3}>\n {(index) => {\n const context: SkeletonRendererContext = {\n loadingStatus: 'loadMore',\n index: index\n };\n return skeletonRenderer(context);\n }}\n </SkeletonContainer>\n </div>\n );\n };\n\n return (\n <>\n <List\n {...props}\n loadingIndicator={\n props.skeletonRenderer ? customInitialSkeleton(props.skeletonRenderer) : undefined\n }\n loadMoreIndicator={\n props.skeletonRenderer ? customLoadMoreSkeleton(props.skeletonRenderer) : undefined\n }\n onLoadRange={loadRange}\n scrollerRef={listRef}\n data={dataState}\n contextMenuTriggerProps={triggerProps}\n currentItemOverride={currentItemOverride}\n onPersistCurrentItem={onPersistCurrentItem}>\n {children}\n </List>\n {contextMenuConfig && (\n <ListViewContextMenu\n {...menuProps}\n contextMenuConfig={contextMenuConfig}\n contextMenuContext={contextMenuContext}\n testId={props.testId ? props.testId + '-menu' : undefined}\n />\n )}\n </>\n );\n }\n) as <K extends string | number, D>(\n props: Props<K, D> & { ref?: ForwardedRef<ListViewHandle<K>> }\n) => JSX.Element;\n","import { useCallback, useRef } from 'preact/hooks';\nimport { Item as CurrentItem } from '#UNSAFE_Collection';\nimport { ListProps } from './List.types';\n\n/**\n * This hook handles the currentItemOverride passing to PRIVATE_List layer.\n *\n * If the app provided new value for 'currentItemOverride', we pass that down to PRIVATE_List layer;\n * otherwise, we will pass down the value of internal override, which would be the value\n * updated by useListViewContextMenu hook\n *\n * @param currentItemOverride\n */\nexport const useListViewCurrentItemOverride = <K extends string | number, D>(\n currentItemOverride: ListProps<K, D>['currentItemOverride']\n) => {\n // the override that will be passed down to PRIVATE_List layer\n const listOverrideRef = useRef<CurrentItem<K>>();\n\n // track the currentItemOverride attribute set by app\n const appOverrideRef = useRef<CurrentItem<K>>();\n if (appOverrideRef.current !== currentItemOverride) {\n appOverrideRef.current = currentItemOverride;\n listOverrideRef.current = currentItemOverride;\n }\n\n // track the internal override updated by useListViewContextMenu hook\n // we can just update ref here since the hook will trigger a state update for its context, which will trigger a rerender\n const updateCurrentItemOverride = useCallback((key: K) => {\n listOverrideRef.current = { rowKey: key };\n }, []);\n\n return {\n currentItemOverride: listOverrideRef.current,\n updateCurrentItemOverride\n };\n};\n","import type { RefObject } from 'preact';\nimport { useMemo, useState, useEffect, useRef } from 'preact/hooks';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { dragToScroll, findElementByKey } from '../utils/PRIVATE_collectionUtils';\nimport { ViewportConfig } from '../hooks/UNSAFE_useViewportIntersect';\nimport { useReorderable } from '../hooks/PRIVATE_useReorderable';\nimport { scrollToVisible, LIST_ITEM_SELECTOR } from '../PRIVATE_List';\nimport { ListProps } from './List.types';\n\ntype useListViewReorderProps<K, D> = Pick<ListProps<K, D>, 'onReorder'> & {\n rootRef: RefObject<HTMLDivElement>;\n viewportConfig?: ViewportConfig;\n};\n\nexport const useListViewReorder = <K extends string | number, D>({\n onReorder,\n rootRef,\n viewportConfig\n}: useListViewReorderProps<K, D>) => {\n const isReorderEnabled = onReorder != undefined;\n\n const [dragKey, setDragKey] = useState<K | undefined>(undefined);\n const { reorderProps, reorderContext, reorderInstructionsId, reorderInstructions } =\n useReorderable({\n onReorder,\n rootRef,\n itemSelector: LIST_ITEM_SELECTOR,\n isDisabled: !isReorderEnabled,\n columns: 1\n });\n\n // ensure the current item is scrolled into view during keyboard reordering,\n // disable that during mouse reordering\n const reorderScrollIntoView = useRef(false);\n useEffect(() => {\n if (isReorderEnabled && reorderScrollIntoView.current) {\n const rootElement = rootRef.current as HTMLElement;\n const elem = findElementByKey(\n rootElement,\n reorderContext.currentItemKey.current as K,\n LIST_ITEM_SELECTOR\n );\n if (elem) {\n const scroller = viewportConfig?.scrollerRef.current || rootElement;\n // make sure item is visible\n scrollToVisible(elem, scroller, 0);\n reorderScrollIntoView.current = false;\n }\n }\n });\n\n const reorderItemProps = useMemo(() => {\n return { dragKey, setDragKey, onReorder, rootRef };\n }, [dragKey, onReorder, rootRef]);\n\n if (!isReorderEnabled) {\n return {\n reorderProps,\n reorderContext,\n reorderInstructionsId,\n reorderInstructions\n } as const;\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n // listview only do keyboard reordering with arrow up/down keys\n if (\n isReorderEnabled &&\n (event.key === 'ArrowUp' || event.key === 'ArrowDown') &&\n (event.metaKey || event.ctrlKey) &&\n event.shiftKey\n ) {\n reorderScrollIntoView.current = true;\n reorderProps.onKeyDown?.(event);\n }\n };\n\n const handleDragOver = (event: DragEvent) => {\n if (dragKey !== undefined) {\n reorderScrollIntoView.current = false;\n dragToScroll(event, dragKey !== undefined, rootRef.current);\n }\n };\n\n const reorderEventProps = mergeProps({ onKeyDown: handleKeyDown, onDragOver: handleDragOver });\n\n return {\n reorderProps: reorderEventProps,\n reorderItemProps,\n reorderContext,\n reorderInstructionsId,\n reorderInstructions\n } as const;\n};\n"],"names":["MemoizeListViewReorderableItem","memo","children","dragKey","setDragKey","onReorder","rootRef","itemKey","itemRef","useRef","itemStyles","itemOverlayFront","styles","reorderableItemOverlayFront","itemOverlayRear","reorderableItemOverlayRear","itemDragger","reorderableItemDragger","setTransferData","useCallback","event","dataTransfer","setData","JSON","stringify","rootProps","isDragged","overlayZoneBeforeProps","overlayZoneAfterProps","useReorderableItem","isDisabled","ref","getItem","current","closest","LIST_ITEM_SELECTOR","itemSelector","isVertical","classes","classNames","class","reorderableItemDnd","_jsxs","isKeyDefined","jsxs","_Fragment","Fragment","_jsx","jsx","prev","next","ListViewContextMenu","contextMenuConfig","testId","contextMenuContext","menuProps","accessibleLabel","menuItems","isOpen","itemsRenderer","isMenuChildrenFalsy","Menu","menuPropGestureStates","mouse","initialFocus","placement","offsetValue","keyboard","touch","initialMenuProps","anchorRef","ListView","forwardRef","props","listRef","currentItemOverride","updateCurrentItemOverride","listOverrideRef","appOverrideRef","key","rowKey","useListViewCurrentItemOverride","dataMetadata","data","map","aData","metadata","getRowKey","loadRange","onLoadMore","dataState","offset","sizePrecision","hasMore","totalSize","length","useImperativeHandle","getScrollPosition","y","focus","isReorderEnabled","undefined","reorderProps","reorderItemProps","reorderContext","reorderInstructionsId","reorderInstructions","viewportConfig","useState","useReorderable","columns","reorderScrollIntoView","useEffect","rootElement","elem","findElementByKey","currentItemKey","scroller","scrollerRef","scrollToVisible","useMemo","mergeProps","onKeyDown","metaKey","ctrlKey","shiftKey","onDragOver","dragToScroll","useListViewReorder","triggerProps","notifyCurrentKeyChanged","scrollListRef","updateCurrentKey","setContextMenuContext","setMenuProps","currentKeyRef","useContextMenuGesture","gesture","anchor","target","anchorBasedOnGesture","context","findItemContext","keyExtractor","handleCloseContextMenu","detail","reason","preventScroll","onClose","value","useListViewContextMenu","onPersistCurrentItem","reorderableItemRenderer","ReorderableContext","Provider","List","contextMenuTriggerProps","onLoadRange","id","HiddenAccessible","loadingIndicator","skeletonRenderer","SkeletonContainer","minimumCount","index","loadingStatus","loadMoreIndicator","LOADMORE_STYLE_CLASS","customLoadMoreSkeleton"],"mappings":"k2CAgEO,MAAMA,EAAiCC,EAAAA,MAlD9B,UAAmDC,SACjEA,EAAQC,QACRA,EAAOC,WACPA,EAAUC,UACVA,EAASC,QACTA,EAAOC,QACPA,IAEA,MAAMC,EAAUC,SAA8B,MACxCC,EAAa,CACjBC,iBAAkBC,EAAMA,OAACC,4BACzBC,gBAAiBF,EAAMA,OAACG,2BACxBC,YAAaJ,EAAMA,OAACK,wBAGhBC,EAAkBC,eACrBC,IACCA,EAAMC,cAAcC,QAAQ,0BAA2BC,KAAKC,UAAUjB,GAAS,GAEjF,CAACA,KAEGkB,UAAEA,EAASC,UAAEA,EAASC,uBAAEA,EAAsBC,sB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J,IAEHzG,EAAAA,YAAM+G,GAAIrD,EACRvG,SAAA6C,MAACgH,EAAAA,iBAAkB,CAAA7J,SAAAwG,SAGtBtD,GACCL,MAACI,EAAmB,IACdI,EACJF,OAAQoB,EAAMpB,OAASoB,EAAMpB,OAAS,aAAUgD,EAChDjD,kBAAmBA,EACnBE,mBAAoBA,OAyC9B,OACEZ,EACEE,KAAAC,EAAAC,SAAA,CAAA5C,SAAA,CAAA6C,EAAAA,IAAC4G,EAAAA,KAAI,IACClF,EACJuF,iBACEvF,EAAMwF,kBAtCZA,EAsCqDxF,EAAMwF,iBAnCzDlH,EAAAA,IAACmH,EAAAA,kBAAkB,CAAAC,aAAc,GAC9BjK,SAACkK,GAKOH,EAJkC,CACvCI,cAAe,UACfD,MAAOA,YA+BgE/D,EAE3EiE,kBACE7F,EAAMwF,iBA1BiB,CAC7BA,GAGElH,EAAKC,IAAA,MAAA,CAAAR,MAAO+H,EAAoBA,8BAC9BxH,MAACmH,EAAAA,kBAAkB,CAAAC,aAAc,EAACjK,SAC9BkK,GAKOH,EAJkC,CACvCI,cAAe,WACfD,MAAOA,QAiBcI,CAAuB/F,EAAMwF,uBAAoB5D,EAE5EwD,YAAarE,EACb8B,YAAa5C,EACbS,KAAMO,EACNkE,wBAAyB3B,EACzBtD,oBAAqBA,EACrB4E,qBAAsBA,WACrBrJ,IAEFkD,GACCL,EAAAA,IAACI,EAAmB,IACdI,EACJH,kBAAmBA,EACnBE,mBAAoBA,EACpBD,OAAQoB,EAAMpB,OAASoB,EAAMpB,OAAS,aAAUgD,OAzD1B,IAC5B4D,CA4DA"}
1
+ {"version":3,"file":"ListView-6d21e8f9.js","sources":["../../src/UNSAFE_ListView/ListViewReorderableItem.tsx","../../src/UNSAFE_ListView/ListViewContextMenu.tsx","../../src/UNSAFE_ListView/useListViewContextMenu.ts","../../src/UNSAFE_ListView/ListView.tsx","../../src/UNSAFE_ListView/useListViewCurrentItemOverride.tsx","../../src/UNSAFE_ListView/useListViewReorder.ts"],"sourcesContent":["import { memo } from 'preact/compat';\nimport { useRef, useCallback } from 'preact/hooks';\nimport { useReorderableItem } from '../hooks/PRIVATE_useReorderable';\nimport { ReorderableItemProps } from '../UNSAFE_Collection/Reorderable.types';\nimport { LIST_ITEM_SELECTOR } from '../PRIVATE_List';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { styles } from './themes/ListViewStyles.css';\nimport { isKeyDefined } from '../utils/UNSAFE_keys';\n\nexport type ListReorderableItemProps<K> = ReorderableItemProps<K>;\n\n/**\n * A private item that will be used by ReorderableCardFlexView, location TBD (could be moved to PRIVATE_CardFlexView)\n */\nexport function ListViewReorderableItem<K extends string | number>({\n children,\n dragKey,\n setDragKey,\n onReorder,\n rootRef,\n itemKey\n}: ListReorderableItemProps<K> & { itemKey: K }) {\n const itemRef = useRef<HTMLDivElement | null>(null);\n const itemStyles = {\n itemOverlayFront: styles.reorderableItemOverlayFront,\n itemOverlayRear: styles.reorderableItemOverlayRear,\n itemDragger: styles.reorderableItemDragger\n };\n const getItem = () => itemRef?.current?.closest(LIST_ITEM_SELECTOR);\n const setTransferData = useCallback(\n (event: DragEvent) => {\n event.dataTransfer?.setData('text/listview-items-key', JSON.stringify(itemKey));\n },\n [itemKey]\n );\n const { rootProps, isDragged, overlayZoneBeforeProps, overlayZoneAfterProps } =\n useReorderableItem({\n isDisabled: onReorder ? false : true,\n dragKey,\n setDragKey,\n onReorder,\n rootRef,\n ref: itemRef,\n getItem,\n setTransferData,\n itemStyles,\n itemSelector: LIST_ITEM_SELECTOR,\n isVertical: true\n });\n const classes = classNames([rootProps?.class, styles.reorderableItemDnd]);\n\n return (\n <div {...rootProps} class={classes}>\n {children}\n {!isDragged && isKeyDefined(dragKey) && (\n <>\n <div {...overlayZoneBeforeProps}></div>\n <div {...overlayZoneAfterProps}></div>\n </>\n )}\n </div>\n );\n}\n\nexport const MemoizeListViewReorderableItem = memo(\n ListViewReorderableItem,\n <K,>(prev: ListReorderableItemProps<K>, next: ListReorderableItemProps<K>) => {\n if (prev && next) {\n return prev.children === next.children && prev.dragKey === next.dragKey;\n }\n return false;\n }\n);\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentChildren, ComponentProps } from 'preact';\n\nimport { ListItemContext } from '#UNSAFE_Collection';\nimport { Menu } from '#UNSAFE_Menu';\nimport { ListViewContextMenuConfig } from './List.types';\nimport { isMenuChildrenFalsy } from '#UNSAFE_Menu/menuUtils';\n\nexport type Props<K extends string | number, D> = Omit<ComponentProps<typeof Menu>, 'children'> & {\n contextMenuConfig: ListViewContextMenuConfig<K, D>;\n} & { contextMenuContext: ListItemContext<K, D> } & {\n testId: ComponentProps<typeof Menu>['testId'];\n};\n\n/**\n * The internal component used to render a custom context menu\n */\nexport function ListViewContextMenu<K extends string | number, D>({\n contextMenuConfig,\n testId,\n contextMenuContext,\n ...menuProps\n}: Props<K, D>) {\n const accessibleLabel = contextMenuConfig.accessibleLabel;\n\n let menuItems: ComponentChildren;\n // Important to call items renderer only when isOpen is true so we know there is a contextMenuContext\n if (menuProps.isOpen) {\n menuItems = contextMenuConfig.itemsRenderer(contextMenuContext);\n if (isMenuChildrenFalsy(menuItems)) {\n return null;\n }\n } else {\n menuItems = null;\n }\n\n return (\n <Menu\n {...menuProps}\n {...(accessibleLabel && {\n 'aria-label': accessibleLabel\n })}\n testId={testId}>\n {menuItems}\n </Menu>\n );\n}\n","import type { ComponentProps, RefObject } from 'preact';\nimport { useCallback, useState, useRef } from 'preact/hooks';\n\nimport { DataState, ListItemContext, CurrentKeyDetail } from '#UNSAFE_Collection';\nimport { Menu } from '#UNSAFE_Menu';\nimport { findItemContext } from '#hooks/PRIVATE_useItemAction';\nimport { useContextMenuGesture } from '#hooks/UNSAFE_useContextMenuGesture';\nimport { findElementByKey, keyExtractor } from '#utils/PRIVATE_collectionUtils';\nimport { ListView } from './ListView';\nimport { LIST_ITEM_SELECTOR } from '#PRIVATE_List';\n\ntype MenuProps = Pick<\n ComponentProps<typeof Menu>,\n 'anchorRef' | 'initialFocus' | 'placement' | 'offsetValue' | 'isOpen'\n>;\n\nconst TOUCH_OFFSET_VALUE = 40;\n\nconst menuPropGestureStates: Record<\n 'mouse' | 'keyboard' | 'touch',\n Omit<Required<MenuProps>, 'anchorRef' | 'isOpen'>\n> = {\n mouse: {\n initialFocus: 'menu',\n placement: 'bottom-start',\n offsetValue: 0\n },\n keyboard: {\n initialFocus: 'firstItem',\n placement: 'bottom-start',\n offsetValue: 0\n },\n touch: {\n initialFocus: 'firstItem',\n placement: 'end',\n offsetValue: TOUCH_OFFSET_VALUE\n }\n};\n\nconst initialMenuProps: MenuProps = {\n isOpen: false,\n initialFocus: 'menu',\n placement: 'bottom-start',\n offsetValue: 0,\n anchorRef: { current: null }\n};\n\ntype ListViewProps<K extends string | number, D> = ComponentProps<typeof ListView<K, D>>;\n\nexport const useListViewContextMenu = <K extends string | number, D>(\n dataState: DataState<K, D> | null,\n contextMenuConfig: ListViewProps<K, D>['contextMenuConfig'],\n scrollListRef: RefObject<HTMLElement | null>,\n updateCurrentKey: (key: K) => void\n) => {\n /*Context Menu section\n TODO: A version of context Menu listview will be merged using useContextMenuGesture instead. Once it's merged we\n can go back to this to create a hook or utility that could be share among all collection comps. JET-60320\n */\n\n /*\n Steps to open a menu:\n 1.- useContextMenu handler is called when menu is supposed to be opened.\n 2.- We set contextMenuContext when contextMenuRenderer is called.\n 3.- We dispatch opening the menu with the correct anchor.\n 5.- Menu receives updated props and updated contextMenuContext.\n 6.- Menu is opened.\n\n */\n\n //Supposed to be updated when menu is about to be opened\n //We set an initial key value for the context menu context, to allow user use object destructuring inside the\n //contextMenuRenderer. It doesn't matter if the key is not correct at the initial rendering since menu starts\n //being closed always\n const [contextMenuContext, setContextMenuContext] = useState<ListItemContext<K, D>>();\n\n const [menuProps, setMenuProps] = useState<MenuProps>(initialMenuProps);\n\n const currentKeyRef = useRef<K>();\n const notifyCurrentKeyChanged = (detail: CurrentKeyDetail<K>) => {\n currentKeyRef.current = detail.value;\n };\n\n const { triggerProps } = useContextMenuGesture(\n ({ gesture, anchor, target }) => {\n let anchorBasedOnGesture = anchor;\n if (gesture === 'keyboard') {\n //We find the element where the position of the menu is going to be based of\n const elem = findElementByKey(\n scrollListRef.current as HTMLElement,\n currentKeyRef.current as K,\n LIST_ITEM_SELECTOR\n );\n\n //We set the correct anchor\n anchorBasedOnGesture = elem ? elem : anchor;\n\n const context = findItemContext(\n currentKeyRef.current as K,\n dataState as DataState<string | number | null, D>\n );\n\n setContextMenuContext(context as ListItemContext<K, D>);\n } else {\n //We search for the key using the target of the event\n const key = keyExtractor(target as HTMLElement, LIST_ITEM_SELECTOR);\n\n const context = findItemContext(key, dataState as DataState<string | number | null, D>);\n\n setContextMenuContext(context as ListItemContext<K, D>);\n\n //We update the key so when we close logical focus is on the correct item\n updateCurrentKey(key as K);\n }\n setMenuProps({\n ...menuPropGestureStates[gesture],\n anchorRef: { current: anchorBasedOnGesture },\n isOpen: true\n });\n },\n {\n isDisabled: !contextMenuConfig //If there is no a context menu renderer we disable the hook\n }\n );\n\n const handleCloseContextMenu = useCallback<Required<ComponentProps<typeof Menu>>['onClose']>(\n (detail) => {\n /*\n TODO: Focus ring should be visible when context menu was closed because of selecting an item using keyboard,\n but should not be visible when the selection was done using mouse or touch. This would probably means menu\n onClose API is going to be changed a little bit so we can satisfy this requirement. JET-62372\n */\n //Focus has to be set on the current target that was obtained\n //during context menu gesture when menu is dismissed or item is \"selected\"\n if (detail.reason === 'dismissed' || detail.reason === 'itemAction') {\n scrollListRef.current?.focus({ preventScroll: true });\n }\n // We close the menu.The only prop that matters here is isOpen\n setMenuProps({ ...initialMenuProps });\n },\n [scrollListRef]\n );\n\n return {\n menuProps: { ...menuProps, onClose: handleCloseContextMenu },\n onClose: handleCloseContextMenu,\n contextMenuContext: contextMenuContext as ListItemContext<K, D>,\n triggerProps,\n notifyCurrentKeyChanged\n } as const;\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentChildren, JSX } from 'preact';\nimport { ForwardedRef, forwardRef } from 'preact/compat';\nimport { useCallback, useImperativeHandle, useRef } from 'preact/hooks';\nimport { ReorderableContext } from '../hooks/PRIVATE_useReorderable';\nimport { DataState, CurrentKeyDetail, ListItemRendererContext } from '../UNSAFE_Collection';\nimport { HiddenAccessible } from '../UNSAFE_HiddenAccessible';\nimport { List, SkeletonContainer } from '../PRIVATE_List';\nimport {\n ListProps,\n ListViewContextMenuConfig,\n ListViewHandle,\n SkeletonRendererContext\n} from './List.types';\nimport { getScrollPosition } from './ScrollPositionUtils';\nimport { MemoizeListViewReorderableItem } from './ListViewReorderableItem';\nimport { useListViewReorder } from './useListViewReorder';\nimport { ListViewContextMenu } from './ListViewContextMenu';\nimport { useListViewContextMenu } from './useListViewContextMenu';\nimport { useListViewCurrentItemOverride } from './useListViewCurrentItemOverride';\nimport { LOADMORE_STYLE_CLASS } from '../PRIVATE_LoadMoreCollection';\n\n/**\n * Props specific to non-virtualized ListView\n */\ntype NonVirtualizedListProps<K, D> = {\n /**\n * The data that is used to render each item in ListView. If the value is null, then ListView will show nothing\n * if hasMore is false, or loading indicator if hasMore is true.\n */\n data: D[] | null;\n /**\n * A callback function to extract the key which is used to identify the item.\n */\n getRowKey: (data: D) => K;\n /**\n * Whether there are more data available to load. By default this returns false.\n */\n hasMore?: boolean;\n /**\n * An optional callback function which is invoked when user scrolls to the end of the list.\n */\n onLoadMore?: () => void;\n\n /**\n * Configuration used to specify a context menu.\n */\n contextMenuConfig?: ListViewContextMenuConfig<K, D>;\n};\n\n/**\n * Props for the ListView Component\n */\nexport type Props<K, D> = Pick<\n ListProps<K, D>,\n | 'aria-label'\n | 'aria-labelledby'\n | 'aria-describedby'\n | 'children'\n | 'gridlines'\n | 'currentItemOverride'\n | 'onPersistCurrentItem'\n | 'onItemAction'\n | 'onSelectionChange'\n | 'promotedSection'\n | 'selectedKeys'\n | 'selectionMode'\n | 'viewportConfig'\n | 'testId'\n | 'scrollPositionOverride'\n | 'onReorder'\n | 'itemPadding'\n | 'itemEnterKeyFocusBehavior'\n | 'skeletonRenderer'\n> &\n NonVirtualizedListProps<K, D>;\n/**\n * A list view displays data items as a list or a grid with highly interactive features.\n */\nexport const ListView = forwardRef(\n <K extends string | number, D>(\n { children, ...props }: Props<K, D>,\n ref?: ForwardedRef<ListViewHandle<K>>\n ) => {\n const { contextMenuConfig } = props;\n const listRef = useRef<HTMLDivElement | null>(null);\n\n const { currentItemOverride, updateCurrentItemOverride } = useListViewCurrentItemOverride(\n props.currentItemOverride\n );\n\n const dataMetadata = props.data\n ? props.data.map((aData: D) => {\n const key = props.getRowKey(aData);\n return { data: aData, metadata: { key } };\n })\n : null;\n\n const loadRange = props.onLoadMore ? props.onLoadMore : () => {};\n const dataState = dataMetadata\n ? ({\n offset: 0,\n data: dataMetadata,\n sizePrecision: props.hasMore ? 'atLeast' : 'exact',\n totalSize: dataMetadata.length\n } as DataState<K, D>)\n : null;\n\n useImperativeHandle(ref!, () => ({\n getScrollPosition: () => {\n if (listRef.current) {\n return getScrollPosition(listRef.current);\n }\n return { y: 0 };\n },\n focus: () => {\n if (listRef.current) {\n listRef.current.focus();\n }\n }\n }));\n\n /**\n * Reorder Section\n */\n const isReorderEnabled = props.onReorder != undefined;\n const {\n reorderProps,\n reorderItemProps,\n reorderContext,\n reorderInstructionsId,\n reorderInstructions\n } = useListViewReorder({\n onReorder: props.onReorder,\n rootRef: listRef,\n viewportConfig: props.viewportConfig\n });\n\n const { triggerProps, menuProps, contextMenuContext, notifyCurrentKeyChanged } =\n useListViewContextMenu(dataState, contextMenuConfig, listRef, updateCurrentItemOverride);\n\n const onPersistCurrentItem = (detail: CurrentKeyDetail<K>) => {\n props.onPersistCurrentItem?.(detail);\n notifyCurrentKeyChanged(detail);\n };\n\n const reorderableItemRenderer = useCallback(\n (context: ListItemRendererContext<K, D>) => (\n <MemoizeListViewReorderableItem {...reorderItemProps} itemKey={context.metadata.key}>\n {children(context)}\n </MemoizeListViewReorderableItem>\n ),\n [children, reorderItemProps]\n );\n\n if (isReorderEnabled && reorderItemProps) {\n return (\n <>\n <ReorderableContext.Provider value={reorderContext}>\n <List\n {...props}\n aria-describedby={reorderInstructionsId}\n contextMenuTriggerProps={triggerProps}\n reorderProps={reorderProps}\n onLoadRange={loadRange}\n scrollerRef={listRef}\n data={dataState}\n currentItemOverride={currentItemOverride}\n onPersistCurrentItem={onPersistCurrentItem}>\n {reorderableItemRenderer}\n </List>\n <span id={reorderInstructionsId}>\n <HiddenAccessible>{reorderInstructions}</HiddenAccessible>\n </span>\n </ReorderableContext.Provider>\n {contextMenuConfig && (\n <ListViewContextMenu\n {...menuProps}\n testId={props.testId ? props.testId + '-menu' : undefined}\n contextMenuConfig={contextMenuConfig}\n contextMenuContext={contextMenuContext}\n />\n )}\n </>\n );\n }\n\n const customInitialSkeleton = (\n skeletonRenderer: (context: SkeletonRendererContext) => ComponentChildren\n ) => {\n return (\n <SkeletonContainer minimumCount={25}>\n {(index) => {\n const context: SkeletonRendererContext = {\n loadingStatus: 'initial',\n index: index\n };\n return skeletonRenderer(context);\n }}\n </SkeletonContainer>\n );\n };\n\n const customLoadMoreSkeleton = (\n skeletonRenderer: (context: SkeletonRendererContext) => ComponentChildren\n ) => {\n return (\n <div class={LOADMORE_STYLE_CLASS}>\n <SkeletonContainer minimumCount={3}>\n {(index) => {\n const context: SkeletonRendererContext = {\n loadingStatus: 'loadMore',\n index: index\n };\n return skeletonRenderer(context);\n }}\n </SkeletonContainer>\n </div>\n );\n };\n\n return (\n <>\n <List\n {...props}\n loadingIndicator={\n props.skeletonRenderer ? customInitialSkeleton(props.skeletonRenderer) : undefined\n }\n loadMoreIndicator={\n props.skeletonRenderer ? customLoadMoreSkeleton(props.skeletonRenderer) : undefined\n }\n onLoadRange={loadRange}\n scrollerRef={listRef}\n data={dataState}\n contextMenuTriggerProps={triggerProps}\n currentItemOverride={currentItemOverride}\n onPersistCurrentItem={onPersistCurrentItem}>\n {children}\n </List>\n {contextMenuConfig && (\n <ListViewContextMenu\n {...menuProps}\n contextMenuConfig={contextMenuConfig}\n contextMenuContext={contextMenuContext}\n testId={props.testId ? props.testId + '-menu' : undefined}\n />\n )}\n </>\n );\n }\n) as <K extends string | number, D>(\n props: Props<K, D> & { ref?: ForwardedRef<ListViewHandle<K>> }\n) => JSX.Element;\n","import { useCallback, useRef } from 'preact/hooks';\nimport { Item as CurrentItem } from '#UNSAFE_Collection';\nimport { ListProps } from './List.types';\n\n/**\n * This hook handles the currentItemOverride passing to PRIVATE_List layer.\n *\n * If the app provided new value for 'currentItemOverride', we pass that down to PRIVATE_List layer;\n * otherwise, we will pass down the value of internal override, which would be the value\n * updated by useListViewContextMenu hook\n *\n * @param currentItemOverride\n */\nexport const useListViewCurrentItemOverride = <K extends string | number, D>(\n currentItemOverride: ListProps<K, D>['currentItemOverride']\n) => {\n // the override that will be passed down to PRIVATE_List layer\n const listOverrideRef = useRef<CurrentItem<K>>();\n\n // track the currentItemOverride attribute set by app\n const appOverrideRef = useRef<CurrentItem<K>>();\n if (appOverrideRef.current !== currentItemOverride) {\n appOverrideRef.current = currentItemOverride;\n listOverrideRef.current = currentItemOverride;\n }\n\n // track the internal override updated by useListViewContextMenu hook\n // we can just update ref here since the hook will trigger a state update for its context, which will trigger a rerender\n const updateCurrentItemOverride = useCallback((key: K) => {\n listOverrideRef.current = { rowKey: key };\n }, []);\n\n return {\n currentItemOverride: listOverrideRef.current,\n updateCurrentItemOverride\n };\n};\n","import type { RefObject } from 'preact';\nimport { useMemo, useState, useEffect, useRef } from 'preact/hooks';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { dragToScroll, findElementByKey } from '../utils/PRIVATE_collectionUtils';\nimport { ViewportConfig } from '../hooks/UNSAFE_useViewportIntersect';\nimport { useReorderable } from '../hooks/PRIVATE_useReorderable';\nimport { scrollToVisible, LIST_ITEM_SELECTOR } from '../PRIVATE_List';\nimport { ListProps } from './List.types';\n\ntype useListViewReorderProps<K, D> = Pick<ListProps<K, D>, 'onReorder'> & {\n rootRef: RefObject<HTMLDivElement>;\n viewportConfig?: ViewportConfig;\n};\n\nexport const useListViewReorder = <K extends string | number, D>({\n onReorder,\n rootRef,\n viewportConfig\n}: useListViewReorderProps<K, D>) => {\n const isReorderEnabled = onReorder != undefined;\n\n const [dragKey, setDragKey] = useState<K | undefined>(undefined);\n const { reorderProps, reorderContext, reorderInstructionsId, reorderInstructions } =\n useReorderable({\n onReorder,\n rootRef,\n itemSelector: LIST_ITEM_SELECTOR,\n isDisabled: !isReorderEnabled,\n columns: 1\n });\n\n // ensure the current item is scrolled into view during keyboard reordering,\n // disable that during mouse reordering\n const reorderScrollIntoView = useRef(false);\n useEffect(() => {\n if (isReorderEnabled && reorderScrollIntoView.current) {\n const rootElement = rootRef.current as HTMLElement;\n const elem = findElementByKey(\n rootElement,\n reorderContext.currentItemKey.current as K,\n LIST_ITEM_SELECTOR\n );\n if (elem) {\n const scroller = viewportConfig?.scrollerRef.current || rootElement;\n // make sure item is visible\n scrollToVisible(elem, scroller, 0);\n reorderScrollIntoView.current = false;\n }\n }\n });\n\n const reorderItemProps = useMemo(() => {\n return { dragKey, setDragKey, onReorder, rootRef };\n }, [dragKey, onReorder, rootRef]);\n\n if (!isReorderEnabled) {\n return {\n reorderProps,\n reorderContext,\n reorderInstructionsId,\n reorderInstructions\n } as const;\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n // listview only do keyboard reordering with arrow up/down keys\n if (\n isReorderEnabled &&\n (event.key === 'ArrowUp' || event.key === 'ArrowDown') &&\n (event.metaKey || event.ctrlKey) &&\n event.shiftKey\n ) {\n reorderScrollIntoView.current = true;\n reorderProps.onKeyDown?.(event);\n }\n };\n\n const handleDragOver = (event: DragEvent) => {\n if (dragKey !== undefined) {\n reorderScrollIntoView.current = false;\n dragToScroll(event, dragKey !== undefined, rootRef.current);\n }\n };\n\n const reorderEventProps = mergeProps({ onKeyDown: handleKeyDown, onDragOver: handleDragOver });\n\n return {\n reorderProps: reorderEventProps,\n reorderItemProps,\n reorderContext,\n reorderInstructionsId,\n reorderInstructions\n } as const;\n};\n"],"names":["MemoizeListViewReorderableItem","memo","children","dragKey","setDragKey","onReorder","rootRef","itemKey","itemRef","useRef","itemStyles","itemOverlayFront","styles","reorderableItemOverlayFront","itemOverlayRear","reorderableItemOverlayRear","itemDragger","reorderableItemDragger","setTransferData","useCallback","event","dataTransfer","setData","JSON","stringify","rootProps","isDragged","overlayZoneBeforeProps","overlayZoneAfterProps","useReorderableItem","isDisabled","ref","getItem","current","closest","LIST_ITEM_SELECTOR","itemSelector","isVertical","classes","classNames","class","reorderableItemDnd","_jsxs","isKeyDefined","jsxs","_Fragment","Fragment","_jsx","jsx","prev","next","ListViewContextMenu","contextMenuConfig","testId","contextMenuContext","menuProps","accessibleLabel","menuItems","isOpen","itemsRenderer","isMenuChildrenFalsy","Menu","menuPropGestureStates","mouse","initialFocus","placement","offsetValue","keyboard","touch","initialMenuProps","anchorRef","ListView","forwardRef","props","listRef","currentItemOverride","updateCurrentItemOverride","listOverrideRef","appOverrideRef","key","rowKey","useListViewCurrentItemOverride","dataMetadata","data","map","aData","metadata","getRowKey","loadRange","onLoadMore","dataState","offset","sizePrecision","hasMore","totalSize","length","useImperativeHandle","getScrollPosition","y","focus","isReorderEnabled","undefined","reorderProps","reorderItemProps","reorderContext","reorderInstructionsId","reorderInstructions","viewportConfig","useState","useReorderable","columns","reorderScrollIntoView","useEffect","rootElement","elem","findElementByKey","currentItemKey","scroller","scrollerRef","scrollToVisible","useMemo","mergeProps","onKeyDown","metaKey","ctrlKey","shiftKey","onDragOver","dragToScroll","useListViewReorder","triggerProps","notifyCurrentKeyChanged","scrollListRef","updateCurrentKey","setContextMenuContext","setMenuProps","currentKeyRef","useContextMenuGesture","gesture","anchor","target","anchorBasedOnGesture","context","findItemContext","keyExtractor","handleCloseContextMenu","detail","reason","preventScroll","onClose","value","useListViewContextMenu","onPersistCurrentItem","reorderableItemRenderer","ReorderableContext","Provider","List","contextMenuTriggerProps","onLoadRange","id","HiddenAccessible","loadingIndicator","skeletonRenderer","SkeletonContainer","minimumCount","index","loadingStatus","loadMoreIndicator","LOADMORE_STYLE_CLASS","customLoadMoreSkeleton"],"mappings":"gnDAgEO,MAAMA,EAAiCC,EAAAA,MAlD9B,UAAmDC,SACjEA,EAAQC,QACRA,EAAOC,WACPA,EAAUC,UACVA,EAASC,QACTA,EAAOC,QACPA,IAEA,MAAMC,EAAUC,SAA8B,MACxCC,EAAa,CACjBC,iBAAkBC,EAAMA,OAACC,4BACzBC,gBAAiBF,EAAMA,OAACG,2BACxBC,YAAaJ,EAAMA,OAACK,wBAGhBC,EAAkBC,eACrBC,IACCA,EAAMC,cAAcC,QAAQ,0BAA2BC,KAAKC,UAAUjB,GAAS,GAEjF,CAACA,KAEGkB,UAAEA,EAASC,UAAEA,EAASC,uBAAEA,EAAsBC,sBAAEA,GACpDC,EAAAA,mBAAmB,CACjBC,YAAYzB,EACZF,UACAC,aACAC,YACAC,UACAyB,IAAKvB,EACLwB,QAfY,IAAMxB,GAASyB,SAASC,QAAQC,EAAkBA,oBAgB9DjB,kBACAR,aACA0B,aAAcD,EAAkBA,mBAChCE,YAAY,IAEVC,EAAUC,EAAAA,WAAW,CAACd,GAAWe,MAAO5B,EAAMA,OAAC6B,qBAErD,OACEC,EAAAA,KAAA,MAAA,IAASjB,EAAWe,MAAOF,EAAOpC,SAAA,CAC/BA,GACCwB,GAAaiB,EAAAA,aAAaxC,IAC1BuC,EACEE,KAAAC,EAAAC,SAAA,CAAA5C,SAAA,CAAA6C,EAAAC,IAAA,MAAA,IAASrB,IACToB,EAASC,IAAA,MAAA,IAAApB,SAKnB,IAIE,CA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iE,kBACE7F,EAAMwF,iBA1BiB,CAC7BA,GAGElH,EAAKC,IAAA,MAAA,CAAAR,MAAO+H,EAAoBA,8BAC9BxH,MAACmH,EAAAA,kBAAkB,CAAAC,aAAc,EAACjK,SAC9BkK,GAKOH,EAJkC,CACvCI,cAAe,WACfD,MAAOA,QAiBcI,CAAuB/F,EAAMwF,uBAAoB5D,EAE5EwD,YAAarE,EACb8B,YAAa5C,EACbS,KAAMO,EACNkE,wBAAyB3B,EACzBtD,oBAAqBA,EACrB4E,qBAAsBA,WACrBrJ,IAEFkD,GACCL,EAAAA,IAACI,EAAmB,IACdI,EACJH,kBAAmBA,EACnBE,mBAAoBA,EACpBD,OAAQoB,EAAMpB,OAASoB,EAAMpB,OAAS,aAAUgD,OAzD1B,IAC5B4D,CA4DA"}
@@ -1,2 +1,2 @@
1
- define(['exports', './useSelectCommon-28307b63', './SelectMobileFieldInput-83f56b22', 'preact/jsx-runtime', './Flex-4b81b412', './useTestId-f4240cbd', './LayerHost-0b288129', 'preact', './index-055933ab', 'preact/compat', './UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./LayerHostStyles.styles.css', 'preact/hooks', './classNames-08d99695', './boxalignment-8d80de7e', './size-114c63df', './utils-9a3f9606', './themeContract.css-b6ec3943', './colorUtils-b9dc1bd1', './_curry1-df649359', './arrayUtils-6ee96a35', 'css!./boxalignment.styles.css', './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-84d30764', './dimensions-95c0c920', './flexbox-8521f6aa', 'css!./flexbox.styles.css', './flexitem-5db48325', 'css!./flexitem.styles.css', './mergeInterpolations-9ede4cf7', './mergeDeepWithKey-aaab9019', './_curry3-83878f86', './_curry2-86c52b86', './_isObject-42bafc94', 'css!./FlexStyles.styles.css', './HighlightText-ee76c447', 'css!./HighlightTextStyles.styles.css', './Grid-caac1c86', './grid-767b4587', 'css!./GridStyles.styles.css', 'css!./ListItemLayoutStyles.styles.css', './ListItemText-e9ce1931', './Text-31cabc49', './UNSAFE_Text/themes/TextStyles.css', 'css!./TextStyles.styles.css', './vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', './clientHints-6d361eaa', './TabbableModeContext-a9c97640', './useTabbableMode-0a9ef009', './useId-c9578d26', './logger-0f873e29', './PRIVATE_SelectCommon/themes/dropdownStyles.css', 'css!./dropdownStyles.styles2.css', './List-daac1169', './mergeProps-bcfa6a92', './keys-4755c121', './collectionUtils-77dc5fa1', './Selector-b38f6c0c', './BaseSelector-8252d4fc', './useActive-bb5dc069', './useToggle-a29f97af', './useFocus-4194fc59', './useHover-8b8a1496', './StyledCheckbox-368fed68', './Check-40a9a3e6', './Icon-234f9eb8', './useTooltip-3a2fd217', './useTooltipControlled-6449a7e9', './useTouch-37489bb5', './useAnimation-d90c433f', './useComponentTheme-5aa41a8f', './useThemeInterpolations-cc05b0f0', './useColorScheme-097c31ff', './useScale-04a448c3', './theme-a8f3d819', './Theme-d945adae', './useDensity-8a10fc70', './unsafeDomAccess-602c5dde', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css', 'css!./TooltipContentStyles.styles.css', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', 'css!./TooltipContentVariants.styles.css', './tooltipUtils-2bb62284', './EnvironmentProvider-403bf554', './LayerManager-426c669d', './Floating-c3558e44', './useFloating-5cb85d2b', './useUser-08901aba', './positionUtils-6e4daa31', './refUtils-77e97004', './useOutsideClick-e53a4b5a', './Layer-1971eddb', './UNSAFE_Layer/themes/LayerStyles.css', 'css!./LayerStyles.styles.css', './useModal-536cb7ff', './UNSAFE_Floating/themes/redwood/FloatingTheme', './UNSAFE_Floating/themes/FloatingStyles.css', 'css!./FloatingStyles.styles.css', './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', './UNSAFE_Floating/themes/redwood/FloatingVariants.css', './vanilla-extract-dynamic.esm-6065bbd7', './UNSAFE_Floating/themes/FloatingContract.css', './useUnsafeDomElementRef-75afb461', './UNSAFE_Icon/themes/IconStyle.css', 'css!./IconStyle.styles.css', './CheckboxOff-bf2be8d3', './CheckboxOn-0f83ba3d', './CheckboxMixed-7729bb05', './HiddenAccessible-037ef42d', 'css!./HiddenAccessibleStyles.styles.css', './UNSAFE_Checkbox/themes/CheckboxIconContract.css', './UNSAFE_Checkbox/themes/redwood/CheckboxIconTheme', './UNSAFE_Checkbox/themes/CheckboxIconStyles.css', 'css!./CheckboxIconStyles.styles.css', './UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.css', 'module', './UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css', 'css!./CheckboxIconVariants.styles.css', 'css!./StyledCheckbox.styles.css', './PRIVATE_BaseSelector/themes/SelectorStyles.css', 'css!./SelectorStyles.styles.css', './CollectionInteractionContext-0b4ed98b', './useCollectionInteractionContext-f345e8f7', './LoadMoreCollection-895f1ed5', './Collection-121694cb', './useViewportIntersect-dbf8f6f0', './VirtualizedCollection-967c8e06', './FocusTrap-038b32c3', './tabbableUtils-f95361a6', './head-9cb1a3da', './_arity-5a5f5f71', './_isArray-32602db6', './_isString-d0ada3cb', './FocusTracker-90de4e7f', './PRIVATE_FocusTracker/themes/FocusTrackerStyles.css', 'css!./FocusTrackerStyles.styles.css', './useNavigation-4d87e7e6', './useCurrentKey-5749e7fb', './useReorderableContext-a5453bd7', './ReorderableContext-6d10a1b7', './useCollectionFocusRing-ae19cd81', './useTabbableModeSet-7cea851f', './useInteractionStyle-15a2bdd0', './PRIVATE_List/themes/ListStyles.css', 'css!./ImageVars.styles.css', 'css!./ListStyles.styles.css', './Skeleton-3e52c94a', './borders-e15a6927', './UNSAFE_Skeleton/themes/redwood/SkeletonTheme', './UNSAFE_Skeleton/themes/SkeletonStyles.css', 'css!./SkeletonStyles.styles.css', './UNSAFE_Skeleton/themes/redwood/SkeletonBaseTheme.css', 'module', './UNSAFE_Skeleton/themes/redwood/SkeletonVariants.css', './ImageVars.css-17386400', './useTheme-da27e1d1', './useSelection-aecb6b23', './textSelectionUtils-3022f002', './useAdditiveSelection-4c04d01c', './useItemAction-3616efde', './Inset-36993577', './UNSAFE_Inset/themes/InsetStyles.css', 'css!./InsetStyles.styles.css', 'module', './usePress-949a0d03', './CaretDown-9961d246', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme', './UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css', 'css!./ButtonLabelLayoutStyles.styles.css', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.css', 'module', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css', 'css!./ButtonLabelLayoutVariants.styles.css', './UNSAFE_BaseButton/themes/redwood/BaseButtonTheme', './UNSAFE_BaseButton/themes/BaseButtonStyles.css', 'css!./BaseButtonStyles.styles.css', './UNSAFE_BaseButton/themes/redwood/BaseButtonVariants.css', 'module', './useTranslationBundle-e4dd341e', './keyboardUtils-fb6219eb', './useOutsideMousedown-cb88da60', './popupUtils-d42db8bf', './FormFieldContext-a024b891', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-a59440e5', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'css!./MessageBannerVariants.styles.css', './IconButton-dc1be00e', './BaseButton-5a0ad529', './BareButton-d02b4870', './useBareButton-0afa84c2', './usePressClick-b5bf4243', './buttonUtils-cbbb0130', './id-c70ab33c', './ButtonLabelLayout-6464870c', './useButtonLabelLayoutTheme-a30f5d8a', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-ea0be23e', './getLocale-ae79e654', './stringUtils-4ffd9d59', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './ComponentMessageContainer-35528366', './MessagesManager-99ed294b', './SuccessS-eb8fd915', './ErrorS-d91c3db2', './InformationS-53490112', './WarningS-98a81abe', './PRIVATE_Message/themes/MessageStyles.css', './soundUtils-f6535f03', './useMessagesContext-1395a997', './Transition-04efcc49', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageTheme', './UNSAFE_ComponentMessage/themes/ComponentMessageStyles.css', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.css', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme', './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.css', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './useFormFieldContext-9260f081', './InlineHelp-e872c36b', './InlineHelpSource-8d8b6a8b', './InputGroupContext-372087af', './useInputGroupContext-e6e19f4f', './Popup-6b57cc3e', './Modal-95bf034f', './UNSAFE_Modal/themes/ModalStyles.css', 'css!./ModalStyles.styles.css', './WindowOverlay-11d88211', './UNSAFE_WindowOverlay/themes/WindowOverlayStyles.css', 'css!./WindowOverlayStyles.styles.css', './UNSAFE_WindowOverlay/themes/WindowOverlayContract.css', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayTheme', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayBaseTheme.css', 'module', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayVariants.css', './usePopupAnimation-dc282b02', './useAnimationStatus-0cae3dff', './popupAnimationUtils-49b93365', './LiveRegion-dbefb95b', 'css!./LiveRegionStyles.styles.css', './UNSAFE_Popup/themes/PopupContract.css', './UNSAFE_Popup/themes/redwood/PopupTheme', './UNSAFE_Popup/themes/redwood/PopupBaseTheme.css', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', 'css!./PopupStyles.styles.css', './colors-a9482873', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./SeparatorStyles.styles.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './Link-a8fad252', './UNSAFE_Link/themes/redwood/LinkTheme', './UNSAFE_Link/themes/LinkStyles.css', 'css!./LinkStyles.styles.css', './UNSAFE_Link/themes/redwood/LinkBaseTheme.css', 'module', './UNSAFE_Link/themes/redwood/LinkVariants.css', 'css!./LinkVariants.styles.css', './useFocusWithin-5a504fca', './Separator-181f7541', './PRIVATE_SelectCommon/themes/mobileDropdownStyles.css', 'css!./mobileDropdownStyles.styles.css', './PRIVATE_SelectCommon/themes/selectMobileDropdownStyles.css', 'css!./selectMobileDropdownStyles.styles.css', './TextFieldUtils-f3868e96', './UNSAFE_TextField/themes/FormControlUtilsStyles.css', 'css!./FormControlUtilsStyles.styles.css', './UNSAFE_TextField/themes/redwood/TextFieldInputTheme', './UNSAFE_TextField/themes/TextFieldInputStyles.css', 'css!./TextFieldInputStyles.styles.css', './UNSAFE_TextField/themes/redwood/TextFieldInputVariants.css', 'css!./TextFieldInputVariants.styles.css', './useAccessibleContext-23e8a333', './formControlUtils-de035f75', './textAlign-ef924afd', 'css!./text.styles.css', './PRIVATE_SelectCommon/themes/SelectMobileFieldInputStyles.css', 'css!./SelectMobileFieldInputStyles.styles.css'], (function(e,s,t,o,a,l,n,c,r,i,d,m,S,y,b,u,h,F,p,A,U,T,f,C,_,E,w,x,B,L,N,g,k,I,M,V,v,D,P,O,R,W,H,G,K,j,z,q,J,Q,X,Y,Z,$,ee,se,te,oe,ae,le,ne,ce,re,ie,de,me,Se,ye,be,ue,he,Fe,pe,Ae,Ue,Te,fe,Ce,_e,Ee,we,xe,Be,Le,Ne,ge,ke,Ie,Me,Ve,ve,De,Pe,Oe,Re,We,He,Ge,Ke,je,ze,qe,Je,Qe,Xe,Ye,Ze,$e,es,ss,ts,os,as,ls,ns,cs,rs,is,ds,ms,Ss,ys,bs,us,hs,Fs,ps,As,Us,Ts,fs,Cs,_s,Es,ws,xs,Bs,Ls,Ns,gs,ks,Is,Ms,Vs,vs,Ds,Ps,Os,Rs,Ws,Hs,Gs,Ks,js,zs,qs,Js,Qs,Xs,Ys,Zs,$s,et,st,tt,ot,at,lt,nt,ct,rt,it,dt,mt,St,yt,bt,ut,ht,Ft,pt,At,Ut,Tt,ft,Ct,_t,Et,wt,xt,Bt,Lt,Nt,gt,kt,It,Mt,Vt,vt,Dt,Pt,Ot,Rt,Wt,Ht,Gt,Kt,jt,zt,qt,Jt,Qt,Xt,Yt,Zt,$t,eo,so,to,oo,ao,lo,no,co,ro,io,mo,So,yo,bo,uo,ho,Fo,po,Ao,Uo,To,fo,Co,_o,Eo,wo,xo,Bo,Lo,No,go,ko,Io,Mo,Vo,vo,Do,Po,Oo,Ro,Wo,Ho,Go,Ko,jo,zo,qo,Jo,Qo,Xo,Yo,Zo,$o,ea,sa,ta,oa,aa,la,na,ca,ra,ia,da,ma,Sa,ya,ba,ua,ha,Fa,pa,Aa,Ua,Ta,fa){"use strict";e.DefaultList=s.DefaultList,e.DropdownArrow=s.DropdownArrow,e.DropdownList=s.DropdownList,e.EmptyResults=s.EmptyResults,e.createKeysFromValueItems=s.createKeysFromValueItems,e.isBeforeDataFetch=s.isBeforeDataFetch,e.isMobile=s.isMobile,e.isPhone=s.isPhone,e.isSearchClearedFirstTime=s.isSearchClearedFirstTime,e.isSearchTextEmptyOrUndefined=s.isSearchTextEmptyOrUndefined,e.isSimpleClick=s.isSimpleClick,e.isTablet=s.isTablet,e.preventDefault=s.preventDefault,e.preventDefaultForCurrentTarget=s.preventDefaultForCurrentTarget,e.renderItemText=s.renderItemText,e.useCollectionRenderer=s.useCollectionRenderer,e.useSelectCommon=s.useSelectCommon,e.Dropdown=t.Dropdown,e.DropdownUserAssistance=t.DropdownUserAssistance,e.LinkItem=t.LinkItem,e.MobileDropdown=t.MobileDropdown,e.SelectMobileDropdown=t.SelectMobileDropdown,e.SelectMobileFieldInput=t.SelectMobileFieldInput,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(['exports', './useSelectCommon-a02ddf3c', './SelectMobileFieldInput-d499ef86', 'preact/jsx-runtime', './List-daac1169', 'preact/hooks', './classNames-08d99695', './mergeProps-bcfa6a92', './keys-4755c121', './collectionUtils-77dc5fa1', './clientHints-6d361eaa', './Selector-b38f6c0c', './BaseSelector-8252d4fc', './useActive-bb5dc069', './useToggle-a29f97af', './useFocus-4194fc59', './useTestId-f4240cbd', './LayerHost-0b288129', 'preact', './index-055933ab', 'preact/compat', './UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./LayerHostStyles.styles.css', './useHover-8b8a1496', './StyledCheckbox-368fed68', './Check-40a9a3e6', './Icon-234f9eb8', './size-114c63df', './utils-9a3f9606', './themeContract.css-b6ec3943', './colorUtils-b9dc1bd1', './_curry1-df649359', './useTooltip-3a2fd217', './useTooltipControlled-6449a7e9', './useId-c9578d26', './useTouch-37489bb5', './useAnimation-d90c433f', './useComponentTheme-5aa41a8f', './logger-0f873e29', './useThemeInterpolations-cc05b0f0', './useColorScheme-097c31ff', './useScale-04a448c3', './theme-a8f3d819', './Theme-d945adae', './mergeInterpolations-9ede4cf7', './mergeDeepWithKey-aaab9019', './_curry3-83878f86', './_curry2-86c52b86', './_isObject-42bafc94', './useDensity-8a10fc70', './unsafeDomAccess-602c5dde', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css', 'css!./TooltipContentStyles.styles.css', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', 'css!./TooltipContentVariants.styles.css', './vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', './tooltipUtils-2bb62284', './EnvironmentProvider-403bf554', './LayerManager-426c669d', './Floating-c3558e44', './useFloating-5cb85d2b', './useUser-08901aba', './positionUtils-6e4daa31', './refUtils-77e97004', './useOutsideClick-e53a4b5a', './arrayUtils-6ee96a35', './Layer-1971eddb', './UNSAFE_Layer/themes/LayerStyles.css', 'css!./LayerStyles.styles.css', './useModal-536cb7ff', './UNSAFE_Floating/themes/redwood/FloatingTheme', './UNSAFE_Floating/themes/FloatingStyles.css', 'css!./FloatingStyles.styles.css', './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', './UNSAFE_Floating/themes/redwood/FloatingVariants.css', './vanilla-extract-dynamic.esm-6065bbd7', './UNSAFE_Floating/themes/FloatingContract.css', './useUnsafeDomElementRef-75afb461', './UNSAFE_Icon/themes/IconStyle.css', 'css!./IconStyle.styles.css', './CheckboxOff-bf2be8d3', './CheckboxOn-0f83ba3d', './CheckboxMixed-7729bb05', './HiddenAccessible-037ef42d', 'css!./HiddenAccessibleStyles.styles.css', './UNSAFE_Checkbox/themes/CheckboxIconContract.css', './UNSAFE_Checkbox/themes/redwood/CheckboxIconTheme', './UNSAFE_Checkbox/themes/CheckboxIconStyles.css', 'css!./CheckboxIconStyles.styles.css', './UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.css', 'module', './UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css', 'css!./CheckboxIconVariants.styles.css', './TabbableModeContext-a9c97640', './useTabbableMode-0a9ef009', 'css!./StyledCheckbox.styles.css', './PRIVATE_BaseSelector/themes/SelectorStyles.css', 'css!./SelectorStyles.styles.css', './CollectionInteractionContext-0b4ed98b', './useCollectionInteractionContext-f345e8f7', './LoadMoreCollection-895f1ed5', './Collection-121694cb', './useViewportIntersect-dbf8f6f0', './VirtualizedCollection-967c8e06', './FocusTrap-038b32c3', './tabbableUtils-f95361a6', './head-9cb1a3da', './_arity-5a5f5f71', './_isArray-32602db6', './_isString-d0ada3cb', './FocusTracker-90de4e7f', './PRIVATE_FocusTracker/themes/FocusTrackerStyles.css', 'css!./FocusTrackerStyles.styles.css', './useNavigation-4d87e7e6', './useCurrentKey-5749e7fb', './useReorderableContext-a5453bd7', './ReorderableContext-6d10a1b7', './useCollectionFocusRing-ae19cd81', './useTabbableModeSet-7cea851f', './useInteractionStyle-15a2bdd0', './flexitem-5db48325', 'css!./flexitem.styles.css', './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-84d30764', './PRIVATE_List/themes/ListStyles.css', 'css!./ImageVars.styles.css', 'css!./ListStyles.styles.css', './Skeleton-3e52c94a', './dimensions-95c0c920', './borders-e15a6927', './UNSAFE_Skeleton/themes/redwood/SkeletonTheme', './UNSAFE_Skeleton/themes/SkeletonStyles.css', 'css!./SkeletonStyles.styles.css', './UNSAFE_Skeleton/themes/redwood/SkeletonBaseTheme.css', 'module', './UNSAFE_Skeleton/themes/redwood/SkeletonVariants.css', './Flex-4b81b412', './boxalignment-8d80de7e', 'css!./boxalignment.styles.css', './flexbox-8521f6aa', 'css!./flexbox.styles.css', 'css!./FlexStyles.styles.css', './ImageVars.css-17386400', './useTheme-da27e1d1', './useSelection-aecb6b23', './textSelectionUtils-3022f002', './useAdditiveSelection-4c04d01c', './useItemAction-3616efde', './Inset-36993577', './UNSAFE_Inset/themes/InsetStyles.css', 'css!./InsetStyles.styles.css', 'module', './UNSAFE_GroupedList/themes/GroupedListStyles.css', 'css!./GroupedListStyles.styles.css', 'module', './HighlightText-ee76c447', 'css!./HighlightTextStyles.styles.css', './Grid-caac1c86', './grid-767b4587', 'css!./GridStyles.styles.css', 'css!./ListItemLayoutStyles.styles.css', './ListItemText-e9ce1931', './Text-31cabc49', './UNSAFE_Text/themes/TextStyles.css', 'css!./TextStyles.styles.css', './PRIVATE_SelectCommon/themes/dropdownStyles.css', 'css!./dropdownStyles.styles2.css', './usePress-949a0d03', './CaretDown-9961d246', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme', './UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css', 'css!./ButtonLabelLayoutStyles.styles.css', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.css', 'module', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css', 'css!./ButtonLabelLayoutVariants.styles.css', './UNSAFE_BaseButton/themes/redwood/BaseButtonTheme', './UNSAFE_BaseButton/themes/BaseButtonStyles.css', 'css!./BaseButtonStyles.styles.css', './UNSAFE_BaseButton/themes/redwood/BaseButtonVariants.css', 'module', './useTranslationBundle-e4dd341e', './keyboardUtils-fb6219eb', './useOutsideMousedown-cb88da60', './popupUtils-d42db8bf', './FormFieldContext-a024b891', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-a59440e5', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'css!./MessageBannerVariants.styles.css', './IconButton-dc1be00e', './BaseButton-5a0ad529', './BareButton-d02b4870', './useBareButton-0afa84c2', './usePressClick-b5bf4243', './buttonUtils-cbbb0130', './id-c70ab33c', './ButtonLabelLayout-6464870c', './useButtonLabelLayoutTheme-a30f5d8a', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-ea0be23e', './getLocale-ae79e654', './stringUtils-4ffd9d59', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './ComponentMessageContainer-35528366', './MessagesManager-99ed294b', './SuccessS-eb8fd915', './ErrorS-d91c3db2', './InformationS-53490112', './WarningS-98a81abe', './PRIVATE_Message/themes/MessageStyles.css', './soundUtils-f6535f03', './useMessagesContext-1395a997', './Transition-04efcc49', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageTheme', './UNSAFE_ComponentMessage/themes/ComponentMessageStyles.css', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.css', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme', './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.css', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './useFormFieldContext-9260f081', './InlineHelp-e872c36b', './InlineHelpSource-8d8b6a8b', './InputGroupContext-372087af', './useInputGroupContext-e6e19f4f', './Popup-6b57cc3e', './Modal-95bf034f', './UNSAFE_Modal/themes/ModalStyles.css', 'css!./ModalStyles.styles.css', './WindowOverlay-11d88211', './UNSAFE_WindowOverlay/themes/WindowOverlayStyles.css', 'css!./WindowOverlayStyles.styles.css', './UNSAFE_WindowOverlay/themes/WindowOverlayContract.css', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayTheme', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayBaseTheme.css', 'module', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayVariants.css', './usePopupAnimation-dc282b02', './useAnimationStatus-0cae3dff', './popupAnimationUtils-49b93365', './LiveRegion-dbefb95b', 'css!./LiveRegionStyles.styles.css', './UNSAFE_Popup/themes/PopupContract.css', './UNSAFE_Popup/themes/redwood/PopupTheme', './UNSAFE_Popup/themes/redwood/PopupBaseTheme.css', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', 'css!./PopupStyles.styles.css', './colors-a9482873', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./SeparatorStyles.styles.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './Link-a8fad252', './UNSAFE_Link/themes/redwood/LinkTheme', './UNSAFE_Link/themes/LinkStyles.css', 'css!./LinkStyles.styles.css', './UNSAFE_Link/themes/redwood/LinkBaseTheme.css', 'module', './UNSAFE_Link/themes/redwood/LinkVariants.css', 'css!./LinkVariants.styles.css', './useFocusWithin-5a504fca', './Separator-181f7541', './PRIVATE_SelectCommon/themes/mobileDropdownStyles.css', 'css!./mobileDropdownStyles.styles.css', './PRIVATE_SelectCommon/themes/selectMobileDropdownStyles.css', 'css!./selectMobileDropdownStyles.styles.css', './TextFieldUtils-f3868e96', './UNSAFE_TextField/themes/FormControlUtilsStyles.css', 'css!./FormControlUtilsStyles.styles.css', './UNSAFE_TextField/themes/redwood/TextFieldInputTheme', './UNSAFE_TextField/themes/TextFieldInputStyles.css', 'css!./TextFieldInputStyles.styles.css', './UNSAFE_TextField/themes/redwood/TextFieldInputVariants.css', 'css!./TextFieldInputVariants.styles.css', './useAccessibleContext-23e8a333', './formControlUtils-de035f75', './textAlign-ef924afd', 'css!./text.styles.css', './PRIVATE_SelectCommon/themes/SelectMobileFieldInputStyles.css', 'css!./SelectMobileFieldInputStyles.styles.css'], (function(e,s,t,o,a,l,n,c,r,i,d,m,S,y,u,b,h,F,p,A,U,T,f,_,C,E,w,L,N,B,x,g,k,I,M,V,v,D,P,O,R,W,H,G,K,j,z,q,J,Q,X,Y,Z,$,ee,se,te,oe,ae,le,ne,ce,re,ie,de,me,Se,ye,ue,be,he,Fe,pe,Ae,Ue,Te,fe,_e,Ce,Ee,we,Le,Ne,Be,xe,ge,ke,Ie,Me,Ve,ve,De,Pe,Oe,Re,We,He,Ge,Ke,je,ze,qe,Je,Qe,Xe,Ye,Ze,$e,es,ss,ts,os,as,ls,ns,cs,rs,is,ds,ms,Ss,ys,us,bs,hs,Fs,ps,As,Us,Ts,fs,_s,Cs,Es,ws,Ls,Ns,Bs,xs,gs,ks,Is,Ms,Vs,vs,Ds,Ps,Os,Rs,Ws,Hs,Gs,Ks,js,zs,qs,Js,Qs,Xs,Ys,Zs,$s,et,st,tt,ot,at,lt,nt,ct,rt,it,dt,mt,St,yt,ut,bt,ht,Ft,pt,At,Ut,Tt,ft,_t,Ct,Et,wt,Lt,Nt,Bt,xt,gt,kt,It,Mt,Vt,vt,Dt,Pt,Ot,Rt,Wt,Ht,Gt,Kt,jt,zt,qt,Jt,Qt,Xt,Yt,Zt,$t,eo,so,to,oo,ao,lo,no,co,ro,io,mo,So,yo,uo,bo,ho,Fo,po,Ao,Uo,To,fo,_o,Co,Eo,wo,Lo,No,Bo,xo,go,ko,Io,Mo,Vo,vo,Do,Po,Oo,Ro,Wo,Ho,Go,Ko,jo,zo,qo,Jo,Qo,Xo,Yo,Zo,$o,ea,sa,ta,oa,aa,la,na,ca,ra,ia,da,ma,Sa,ya,ua,ba,ha,Fa,pa,Aa,Ua,Ta,fa,_a,Ca,Ea){"use strict";e.DefaultList=s.DefaultList,e.DropdownArrow=s.DropdownArrow,e.DropdownList=s.DropdownList,e.EmptyResults=s.EmptyResults,e.createKeysFromValueItems=s.createKeysFromValueItems,e.isBeforeDataFetch=s.isBeforeDataFetch,e.isMobile=s.isMobile,e.isPhone=s.isPhone,e.isSearchClearedFirstTime=s.isSearchClearedFirstTime,e.isSearchTextEmptyOrUndefined=s.isSearchTextEmptyOrUndefined,e.isSimpleClick=s.isSimpleClick,e.isTablet=s.isTablet,e.preventDefault=s.preventDefault,e.preventDefaultForCurrentTarget=s.preventDefaultForCurrentTarget,e.renderItemText=s.renderItemText,e.useCollectionRenderer=s.useCollectionRenderer,e.useSelectCommon=s.useSelectCommon,e.Dropdown=t.Dropdown,e.DropdownUserAssistance=t.DropdownUserAssistance,e.LinkItem=t.LinkItem,e.MobileDropdown=t.MobileDropdown,e.SelectMobileDropdown=t.SelectMobileDropdown,e.SelectMobileFieldInput=t.SelectMobileFieldInput,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=PRIVATE_SelectCommon.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', './Floating-c3558e44', './Layer-1971eddb', 'preact/compat', './LayerHost-0b288129', './keyboardUtils-fb6219eb', './useSelectCommon-28307b63', './PRIVATE_SelectCommon/themes/dropdownStyles.css', './useOutsideMousedown-cb88da60', './FormFieldContext-a024b891', './logger-0f873e29', './TabbableModeContext-a9c97640', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-a59440e5', './Flex-4b81b412', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-2bb62284', 'css!./IconStyle.styles.css', './IconButton-dc1be00e', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-ea0be23e', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./HiddenAccessibleStyles.styles.css', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './Popup-6b57cc3e', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './Link-a8fad252', './useFocusWithin-5a504fca', './useHover-8b8a1496', './classNames-08d99695', './Separator-181f7541', './WindowOverlay-11d88211', './PRIVATE_SelectCommon/themes/mobileDropdownStyles.css', './PRIVATE_SelectCommon/themes/selectMobileDropdownStyles.css', './stringUtils-4ffd9d59', './Text-31cabc49', './TextFieldUtils-f3868e96', './UNSAFE_TextField/themes/FormControlUtilsStyles.css', './UNSAFE_TextField/themes/redwood/TextFieldInputTheme', './useAccessibleContext-23e8a333', './useComponentTheme-5aa41a8f', './useFormFieldContext-9260f081', './useTabbableMode-0a9ef009', './formControlUtils-de035f75', './textAlign-ef924afd', './mergeInterpolations-9ede4cf7', './PRIVATE_SelectCommon/themes/SelectMobileFieldInputStyles.css'], (function(e,s,t,o,a,n,l,i,r,d,c,u,b,p,h,m,x,y,S,f,F,A,w,C,g,T,v,U,I,M,E,j,N,P,_,D,L,V,k,B,O,R,H,W,K,q,G,Y,z,$,J,Q,X,Z,ee,se,te,oe,ae,ne,le,ie,re,de,ce,ue){"use strict";const be="bottom-start",pe={mainAxis:4,crossAxis:0},he={isMaxHeightAdjusted:!0,maxHeightCeiling:400},me={mainAxis:!1};function xe({"aria-labelledby":e,children:t,id:o,isOpen:n}){return n?s.jsx(a.Layer,{children:s.jsx(J.WindowOverlay,{children:s.jsx("div",{id:o,class:Q.mobileDropdownStyles.base,role:"dialog","aria-modal":"true","aria-labelledby":e,children:s.jsx(S.Flex,{width:"100%",height:"100%",maxHeight:"100%",direction:"column",children:t})})})}):null}const ye=[...Object.values(de.textInterpolations)],Se=ce.mergeInterpolations(ye),fe=n.forwardRef((({"aria-controls":e,"aria-describedby":t,"aria-expanded":o,"aria-invalid":a,"aria-label":n,"aria-labelledby":l,displayValue:i,hasEmptyLabel:r,hasInsideLabel:d=!1,isRequired:c,onBlur:u,onFocus:b,placeholder:p,textAlign:h,variant:m="default"},x)=>{const{isDisabled:y,isFocused:S,hasValue:f=!1}=le.useFormFieldContext(),{isTabbable:F,tabbableModeProps:A}=ie.useTabbableMode(),w=se.isInputPlaceholderShown(d,f,S)?p:void 0,{UNSAFE_ariaLabelledBy:C}=ae.useAccessibleContext(),g=r?Z.l([l,C]):l,{class:T}=Se({textAlign:h}),{classes:v}=ne.useComponentTheme(oe.TextFieldInputRedwoodTheme,{type:"notPassword",styleVariant:re.isEmbeddedVariant(m)?"embedded":"default",textarea:"notTextArea",input:"isInput",prefix:"noPrefix",suffix:"noSuffix",startContent:"noStartContent",endContent:"hasEndContent",insideLabel:d?"hasInsideLabel":"noInsideLabel",value:f?"hasValue":"noValue",focused:S?"isFocused":"notFocused",disabled:y?"isDisabled":"notDisabled"}),U=z.classNames([ue.selectMobileFieldInputStyles.base,T,v,"legacyEmbedded"===m&&void 0===h&&te.formControlInheritTextAlign]);return s.jsx("div",{"aria-autocomplete":"list","aria-controls":e,"aria-describedby":t,"aria-expanded":o,"aria-invalid":a,"aria-label":n,"aria-labelledby":g,"aria-required":c?"true":void 0,class:U,onBlur:u,onFocus:b,ref:x,role:"combobox",...F&&A,children:s.jsx("div",{class:ue.selectMobileFieldInputStyles.content,children:s.jsx(ee.Text,{variant:i?"inherit":"secondary",children:i||w})})})}));e.Dropdown=function({anchorRef:e,children:n,dropdownRef:l,id:u,isOpen:b,onAutoDismiss:p,onPosition:h}){const[m,x]=t.useState(be),[y,S]=t.useState(b);y!==b&&(b||x(be),S(b));const f=t.useCallback((e=>{x(e.placement),h?.(e)}),[h,x]),F=t.useCallback((e=>{p?.(e)}),[p]),A=t.useCallback((e=>{if(!e.defaultPrevented&&!i.isControlOrFunctionKey(e))switch(e.code){case i.KEYS.ESC:case i.KEYS.TAB:F(e)}}),[F]);c.useOutsideMousedown({isDisabled:!b,ref:[e,l],handler:F});const w=b?{minWidth:`${e.current?.offsetWidth}px`}:{};return b?s.jsx(a.Layer,{logicalParentRef:e,children:s.jsx(o.Floating,{anchorRef:e,sizeOptions:he,shiftOptions:me,ref:l,placement:m,offsetValue:pe,onPosition:f,children:s.jsx("div",{class:d.dropdownStyles.base,id:u,style:w,onKeyDown:A,onMouseDown:r.preventDefaultForCurrentTarget,children:n})})}):null},e.DropdownUserAssistance=function(e){const o=t.useCallback((e=>{"A"!==e.target?.tagName&&e.preventDefault()}),[]);return s.jsx(u.FormFieldContext.Provider,{value:{isFocused:!0},children:s.jsx("div",{class:d.dropdownStyles.userAssistance,onMouseDown:o,children:s.jsx(y.InlineUserAssistance,{...e})})})},e.LinkItem=({children:e,isHighlighted:o,onAction:a})=>{const{isHover:n,hoverProps:l}=Y.useHover(),{isFocused:i,focusProps:r}=G.useFocusWithin(),c=t.useCallback((e=>(e.preventDefault(),a?.(),!1)),[a]),u=z.classNames([d.dropdownStyles.results.linkItemRoot,i?d.dropdownStyles.results.linkItemFocus:void 0]),b=z.classNames([d.dropdownStyles.results.extraItem,n||i||o?d.dropdownStyles.results.linkItemHighlight:void 0]);return s.jsx("div",{class:u,...r,children:s.jsx(q.Link,{href:"#",onClick:c,children:s.jsx("div",{class:b,...l,children:e})})})},e.MobileDropdown=xe,e.SelectMobileDropdown=function({children:e,footer:t,hasHeaderSeparator:o=!0,header:a,id:n,isOpen:l,labelId:i}){return s.jsxs(xe,{id:n,isOpen:l,"aria-labelledby":i,children:[a,o&&s.jsx($.Separator,{}),s.jsx("div",{class:X.selectMobileDropdownStyles.content,children:e}),s.jsx($.Separator,{}),t]})},e.SelectMobileFieldInput=fe}));
2
- //# sourceMappingURL=SelectMobileFieldInput-83f56b22.js.map
1
+ define(['exports', 'preact/jsx-runtime', 'preact/hooks', './Floating-c3558e44', './Layer-1971eddb', 'preact/compat', './LayerHost-0b288129', './keyboardUtils-fb6219eb', './useSelectCommon-a02ddf3c', './PRIVATE_SelectCommon/themes/dropdownStyles.css', './useOutsideMousedown-cb88da60', './FormFieldContext-a024b891', './logger-0f873e29', './TabbableModeContext-a9c97640', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-a59440e5', './Flex-4b81b412', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-2bb62284', 'css!./IconStyle.styles.css', './IconButton-dc1be00e', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-ea0be23e', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./HiddenAccessibleStyles.styles.css', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './Popup-6b57cc3e', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './Link-a8fad252', './useFocusWithin-5a504fca', './useHover-8b8a1496', './classNames-08d99695', './Separator-181f7541', './WindowOverlay-11d88211', './PRIVATE_SelectCommon/themes/mobileDropdownStyles.css', './PRIVATE_SelectCommon/themes/selectMobileDropdownStyles.css', './stringUtils-4ffd9d59', './Text-31cabc49', './TextFieldUtils-f3868e96', './UNSAFE_TextField/themes/FormControlUtilsStyles.css', './UNSAFE_TextField/themes/redwood/TextFieldInputTheme', './useAccessibleContext-23e8a333', './useComponentTheme-5aa41a8f', './useFormFieldContext-9260f081', './useTabbableMode-0a9ef009', './formControlUtils-de035f75', './textAlign-ef924afd', './mergeInterpolations-9ede4cf7', './PRIVATE_SelectCommon/themes/SelectMobileFieldInputStyles.css'], (function(e,s,t,o,a,n,l,i,r,d,c,u,b,p,h,m,x,y,S,f,F,A,w,C,g,T,v,U,I,M,E,j,N,P,_,D,L,V,k,B,O,R,H,W,K,q,G,Y,z,$,J,Q,X,Z,ee,se,te,oe,ae,ne,le,ie,re,de,ce,ue){"use strict";const be="bottom-start",pe={mainAxis:4,crossAxis:0},he={isMaxHeightAdjusted:!0,maxHeightCeiling:400},me={mainAxis:!1};function xe({"aria-labelledby":e,children:t,id:o,isOpen:n}){return n?s.jsx(a.Layer,{children:s.jsx(J.WindowOverlay,{children:s.jsx("div",{id:o,class:Q.mobileDropdownStyles.base,role:"dialog","aria-modal":"true","aria-labelledby":e,children:s.jsx(S.Flex,{width:"100%",height:"100%",maxHeight:"100%",direction:"column",children:t})})})}):null}const ye=[...Object.values(de.textInterpolations)],Se=ce.mergeInterpolations(ye),fe=n.forwardRef((({"aria-controls":e,"aria-describedby":t,"aria-expanded":o,"aria-invalid":a,"aria-label":n,"aria-labelledby":l,displayValue:i,hasEmptyLabel:r,hasInsideLabel:d=!1,isRequired:c,onBlur:u,onFocus:b,placeholder:p,textAlign:h,variant:m="default"},x)=>{const{isDisabled:y,isFocused:S,hasValue:f=!1}=le.useFormFieldContext(),{isTabbable:F,tabbableModeProps:A}=ie.useTabbableMode(),w=se.isInputPlaceholderShown(d,f,S)?p:void 0,{UNSAFE_ariaLabelledBy:C}=ae.useAccessibleContext(),g=r?Z.l([l,C]):l,{class:T}=Se({textAlign:h}),{classes:v}=ne.useComponentTheme(oe.TextFieldInputRedwoodTheme,{type:"notPassword",styleVariant:re.isEmbeddedVariant(m)?"embedded":"default",textarea:"notTextArea",input:"isInput",prefix:"noPrefix",suffix:"noSuffix",startContent:"noStartContent",endContent:"hasEndContent",insideLabel:d?"hasInsideLabel":"noInsideLabel",value:f?"hasValue":"noValue",focused:S?"isFocused":"notFocused",disabled:y?"isDisabled":"notDisabled"}),U=z.classNames([ue.selectMobileFieldInputStyles.base,T,v,"legacyEmbedded"===m&&void 0===h&&te.formControlInheritTextAlign]);return s.jsx("div",{"aria-autocomplete":"list","aria-controls":e,"aria-describedby":t,"aria-expanded":o,"aria-invalid":a,"aria-label":n,"aria-labelledby":g,"aria-required":c?"true":void 0,class:U,onBlur:u,onFocus:b,ref:x,role:"combobox",...F&&A,children:s.jsx("div",{class:ue.selectMobileFieldInputStyles.content,children:s.jsx(ee.Text,{variant:i?"inherit":"secondary",children:i||w})})})}));e.Dropdown=function({anchorRef:e,children:n,dropdownRef:l,id:u,isOpen:b,onAutoDismiss:p,onPosition:h}){const[m,x]=t.useState(be),[y,S]=t.useState(b);y!==b&&(b||x(be),S(b));const f=t.useCallback((e=>{x(e.placement),h?.(e)}),[h,x]),F=t.useCallback((e=>{p?.(e)}),[p]),A=t.useCallback((e=>{if(!e.defaultPrevented&&!i.isControlOrFunctionKey(e))switch(e.code){case i.KEYS.ESC:case i.KEYS.TAB:F(e)}}),[F]);c.useOutsideMousedown({isDisabled:!b,ref:[e,l],handler:F});const w=b?{minWidth:`${e.current?.offsetWidth}px`}:{};return b?s.jsx(a.Layer,{logicalParentRef:e,children:s.jsx(o.Floating,{anchorRef:e,sizeOptions:he,shiftOptions:me,ref:l,placement:m,offsetValue:pe,onPosition:f,children:s.jsx("div",{class:d.dropdownStyles.base,id:u,style:w,onKeyDown:A,onMouseDown:r.preventDefaultForCurrentTarget,children:n})})}):null},e.DropdownUserAssistance=function(e){const o=t.useCallback((e=>{"A"!==e.target?.tagName&&e.preventDefault()}),[]);return s.jsx(u.FormFieldContext.Provider,{value:{isFocused:!0},children:s.jsx("div",{class:d.dropdownStyles.userAssistance,onMouseDown:o,children:s.jsx(y.InlineUserAssistance,{...e})})})},e.LinkItem=({children:e,isHighlighted:o,onAction:a})=>{const{isHover:n,hoverProps:l}=Y.useHover(),{isFocused:i,focusProps:r}=G.useFocusWithin(),c=t.useCallback((e=>(e.preventDefault(),a?.(),!1)),[a]),u=z.classNames([d.dropdownStyles.results.linkItemRoot,i?d.dropdownStyles.results.linkItemFocus:void 0]),b=z.classNames([d.dropdownStyles.results.extraItem,n||i||o?d.dropdownStyles.results.linkItemHighlight:void 0]);return s.jsx("div",{class:u,...r,children:s.jsx(q.Link,{href:"#",onClick:c,children:s.jsx("div",{class:b,...l,children:e})})})},e.MobileDropdown=xe,e.SelectMobileDropdown=function({children:e,footer:t,hasHeaderSeparator:o=!0,header:a,id:n,isOpen:l,labelId:i}){return s.jsxs(xe,{id:n,isOpen:l,"aria-labelledby":i,children:[a,o&&s.jsx($.Separator,{}),s.jsx("div",{class:X.selectMobileDropdownStyles.content,children:e}),s.jsx($.Separator,{}),t]})},e.SelectMobileFieldInput=fe}));
2
+ //# sourceMappingURL=SelectMobileFieldInput-d499ef86.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectMobileFieldInput-83f56b22.js","sources":["../../src/PRIVATE_SelectCommon/Dropdown.tsx","../../src/PRIVATE_SelectCommon/MobileDropdown.tsx","../../src/PRIVATE_SelectCommon/SelectMobileFieldInput.tsx","../../src/PRIVATE_SelectCommon/DropdownUserAssistance.tsx","../../src/PRIVATE_SelectCommon/LinkItem.tsx","../../src/PRIVATE_SelectCommon/SelectMobileDropdown.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { 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// TODO: get dropdown y (mainAxis) offset from --oj-c-PRIVATE-DO-NOT-USE-private-core-global-dropdown-offset\nconst DROPDOWN_OFFSET: FloatingProps['offsetValue'] = { mainAxis: 4, crossAxis: 0 };\nconst DROPDOWN_SIZE_OPTIONS: FloatingProps['sizeOptions'] = {\n isMaxHeightAdjusted: true,\n maxHeightCeiling: 400\n};\nconst DROPDOWN_SHIFT_OPTIONS: FloatingProps['shiftOptions'] = {\n mainAxis: false\n};\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 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 setPrevIsOpen(isOpen);\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 const inlineStyle = isOpen\n ? {\n minWidth: `${anchorRef.current?.offsetWidth}px`\n }\n : {};\n\n return !isOpen ? null : (\n <Layer logicalParentRef={anchorRef}>\n <Floating\n anchorRef={anchorRef}\n sizeOptions={DROPDOWN_SIZE_OPTIONS}\n shiftOptions={DROPDOWN_SHIFT_OPTIONS}\n ref={dropdownRef}\n placement={placement}\n offsetValue={DROPDOWN_OFFSET}\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","import type { ComponentChildren, JSX } from 'preact';\nimport { Flex } from '../UNSAFE_Flex';\nimport { Layer } from '../UNSAFE_Layer';\nimport { WindowOverlay } from '../UNSAFE_WindowOverlay';\nimport type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/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'?: UnpackSignals<JSX.AriaAttributes>['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 type { ContextType, Ref, JSX } from 'preact';\nimport { forwardRef } from 'preact/compat';\n\nimport type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/attributeUtils';\nimport { merge } from '@oracle/oraclejet-internal-utilities/stringUtils';\n\nimport { Text } from '#UNSAFE_Text';\nimport { isInputPlaceholderShown } from '#UNSAFE_TextField/TextFieldUtils';\nimport { formControlInheritTextAlign } from '#UNSAFE_TextField/themes/FormControlUtilsStyles.css';\nimport type { TextFieldInputVariantOptions } from '#UNSAFE_TextField/themes/TextFieldInputStyles.css';\nimport { TextFieldInputRedwoodTheme } from '#UNSAFE_TextField/themes/redwood/TextFieldInputTheme';\nimport { useAccessibleContext } from '#hooks/UNSAFE_useAccessibleContext';\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport { useFormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { FormVariantContext } from '#hooks/UNSAFE_useFormVariantContext';\nimport { useTabbableMode } from '#hooks/UNSAFE_useTabbableMode';\nimport { isEmbeddedVariant } from '#utils/PRIVATE_formControlUtils';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { type TextProps, textInterpolations } from '#utils/UNSAFE_interpolations/text';\nimport { mergeInterpolations } from '#utils/UNSAFE_mergeInterpolations';\nimport { selectMobileFieldInputStyles } from './themes/SelectMobileFieldInputStyles.css';\n\ntype AriaProps = Pick<\n UnpackSignals<JSX.AriaAttributes>,\n | 'aria-controls'\n | 'aria-describedby'\n | 'aria-expanded'\n | 'aria-invalid'\n | 'aria-label'\n | 'aria-labelledby'\n>;\n\ntype EventProps = Pick<UnpackSignals<JSX.IntrinsicElements['div']>, '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?: ContextType<typeof FormVariantContext>;\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: isEmbeddedVariant(variant) ? 'embedded' : 'default',\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 // JET-72775 - Form control alignment in tables\n // When we are in legacy collection components, we want to inherit the text align\n // when it is not set explicitly.\n variant === 'legacyEmbedded' && textAlign === undefined && formControlInheritTextAlign\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 { 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 { 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([\n dropdownStyles.results.linkItemRoot,\n isFocused ? dropdownStyles.results.linkItemFocus : undefined\n ]);\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"],"names":["DEFAULT_PLACEMENT","DROPDOWN_OFFSET","mainAxis","crossAxis","DROPDOWN_SIZE_OPTIONS","isMaxHeightAdjusted","maxHeightCeiling","DROPDOWN_SHIFT_OPTIONS","MobileDropdown","ariaLabelledBy","children","id","isOpen","_jsx","jsx","Layer","WindowOverlay","class","mobileDropdownStyles","base","role","Flex","width","height","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","isEmbeddedVariant","textarea","input","prefix","suffix","startContent","endContent","insideLabel","value","focused","disabled","rootDivStyleClasses","classNames","selectMobileFieldInputStyles","formControlInheritTextAlign","content","Text","anchorRef","dropdownRef","onAutoDismiss","onPosition","placement","setPlacement","useState","prevIsOpen","setPrevIsOpen","handlePosition","useCallback","positionData","handleAutoDismiss","event","handleKeyDown","defaultPrevented","isControlOrFunctionKey","code","KEYS","ESC","TAB","useOutsideMousedown","handler","inlineStyle","minWidth","current","offsetWidth","logicalParentRef","Floating","sizeOptions","shiftOptions","offsetValue","dropdownStyles","style","onKeyDown","onMouseDown","preventDefaultForCurrentTarget","props","handleMouseDown","target","tagName","preventDefault","FormFieldContext","Provider","userAssistance","InlineUserAssistance","isHighlighted","onAction","isHover","hoverProps","useHover","focusProps","useFocusWithin","handleClick","e","rootClasses","results","linkItemRoot","linkItemFocus","linkClasses","extraItem","linkItemHighlight","Link","href","onClick","footer","hasHeaderSeparator","header","labelId","_jsxs","Separator","selectMobileDropdownStyles"],"mappings":"ujFA8BA,MAAMA,GAAoB,eAEpBC,GAAgD,CAAEC,SAAU,EAAGC,UAAW,GAC1EC,GAAsD,CAC1DC,qBAAqB,EACrBC,iBAAkB,KAEdC,GAAwD,CAC5DL,UAAU,GCTI,SAAAM,IAAiB,kBAAmBC,EAAcC,SAAEA,EAAQC,GAAEA,EAAEC,OAAEA,IAChF,OAAQA,EACNC,EAACC,IAAAC,EAAKA,MACJ,CAAAL,SAAAG,MAACG,EAAAA,cAAa,CAAAN,SACZG,EAAAA,IACE,MAAA,CAAAF,GAAIA,EACJM,MAAOC,EAAAA,qBAAqBC,KAC5BC,KAAK,SACM,aAAA,OACM,kBAAAX,EACjBC,SAAAG,EAAAC,IAACO,EAAIA,KAAA,CAACC,MAAM,OAAOC,OAAO,OAAOC,UAAU,OAAOC,UAAU,SAAQf,SACjEA,UAVM,IAgBnB,CCDA,MAAMgB,GAAiB,IAAIC,OAAOC,OAAOC,GAAAA,qBACnCC,GAAsBC,GAAAA,oBAA2BL,IAqB1CM,GAAyBC,EAAAA,YACpC,EAEI,gBAAiBC,EACjB,mBAAoBC,EACpB,gBAAiBC,EACjB,eAAgBC,EAChB,aAAcC,EACd,kBAAmB7B,EACnB8B,eACAC,gBACAC,kBAAiB,EACjBC,aACAC,SACAC,UACAC,cACAC,YACAC,UAAU,WAEZC,KAGA,MAAMC,WAAEA,EAAUC,UAAEA,EAASC,SAAEA,GAA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C,MAAMC,QAAEA,EAAOC,WAAEA,GAAeC,EAAQA,YAClCvF,UAAEA,EAASwF,WAAEA,GAAeC,EAAcA,iBAE1CC,EAAc3C,eACjB4C,IAECA,EAAEb,iBACFM,OACO,IAET,CAACA,IAGGQ,EAAc5D,EAAAA,WAAW,CAC7BqC,EAAcA,eAACwB,QAAQC,aACvB9F,EAAYqE,EAAcA,eAACwB,QAAQE,mBAAgBvF,IAG/CwF,EAAchE,EAAAA,WAAW,CAC7BqC,EAAcA,eAACwB,QAAQI,UACvBZ,GAAWrF,GAAamF,EAAgBd,EAAcA,eAACwB,QAAQK,uBAAoB1F,IAGrF,OACE7C,MAAA,MAAA,CAAKI,MAAO6H,KAAiBJ,EAAUhI,SACrCG,EAAAA,IAACwI,EAAAA,KAAK,CAAAC,KAAK,IAAIC,QAASX,EAAWlI,SACjCG,EAAKC,IAAA,MAAA,CAAAG,MAAOiI,KAAiBV,EAAU9H,SACpCA,OAIP,uDClCiCA,SACnCA,EAAQ8I,OACRA,EAAMC,mBACNA,GAAqB,EAAIC,OACzBA,EAAM/I,GACNA,EAAEC,OACFA,EAAM+I,QACNA,IAEA,OACEC,EAAAA,KAACpJ,GAAe,CAAAG,GAAIA,EAAIC,OAAQA,EAAyB,kBAAA+I,YACtDD,EACAD,GAAsB5I,EAAAA,IAACgJ,EAAAA,UAAS,CAAA,GAGjChJ,EAAKC,IAAA,MAAA,CAAAG,MAAO6I,EAAAA,2BAA2BzE,QAAU3E,SAAAA,IACjDG,EAAAA,IAACgJ,EAAAA,UAAS,CAAA,GACTL,IAGP"}
1
+ {"version":3,"file":"SelectMobileFieldInput-d499ef86.js","sources":["../../src/PRIVATE_SelectCommon/Dropdown.tsx","../../src/PRIVATE_SelectCommon/MobileDropdown.tsx","../../src/PRIVATE_SelectCommon/SelectMobileFieldInput.tsx","../../src/PRIVATE_SelectCommon/DropdownUserAssistance.tsx","../../src/PRIVATE_SelectCommon/LinkItem.tsx","../../src/PRIVATE_SelectCommon/SelectMobileDropdown.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { 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// TODO: get dropdown y (mainAxis) offset from --oj-c-PRIVATE-DO-NOT-USE-private-core-global-dropdown-offset\nconst DROPDOWN_OFFSET: FloatingProps['offsetValue'] = { mainAxis: 4, crossAxis: 0 };\nconst DROPDOWN_SIZE_OPTIONS: FloatingProps['sizeOptions'] = {\n isMaxHeightAdjusted: true,\n maxHeightCeiling: 400\n};\nconst DROPDOWN_SHIFT_OPTIONS: FloatingProps['shiftOptions'] = {\n mainAxis: false\n};\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 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 setPrevIsOpen(isOpen);\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 const inlineStyle = isOpen\n ? {\n minWidth: `${anchorRef.current?.offsetWidth}px`\n }\n : {};\n\n return !isOpen ? null : (\n <Layer logicalParentRef={anchorRef}>\n <Floating\n anchorRef={anchorRef}\n sizeOptions={DROPDOWN_SIZE_OPTIONS}\n shiftOptions={DROPDOWN_SHIFT_OPTIONS}\n ref={dropdownRef}\n placement={placement}\n offsetValue={DROPDOWN_OFFSET}\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","import type { ComponentChildren, JSX } from 'preact';\nimport { Flex } from '../UNSAFE_Flex';\nimport { Layer } from '../UNSAFE_Layer';\nimport { WindowOverlay } from '../UNSAFE_WindowOverlay';\nimport type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/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'?: UnpackSignals<JSX.AriaAttributes>['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 type { ContextType, Ref, JSX } from 'preact';\nimport { forwardRef } from 'preact/compat';\n\nimport type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/attributeUtils';\nimport { merge } from '@oracle/oraclejet-internal-utilities/stringUtils';\n\nimport { Text } from '#UNSAFE_Text';\nimport { isInputPlaceholderShown } from '#UNSAFE_TextField/TextFieldUtils';\nimport { formControlInheritTextAlign } from '#UNSAFE_TextField/themes/FormControlUtilsStyles.css';\nimport type { TextFieldInputVariantOptions } from '#UNSAFE_TextField/themes/TextFieldInputStyles.css';\nimport { TextFieldInputRedwoodTheme } from '#UNSAFE_TextField/themes/redwood/TextFieldInputTheme';\nimport { useAccessibleContext } from '#hooks/UNSAFE_useAccessibleContext';\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport { useFormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { FormVariantContext } from '#hooks/UNSAFE_useFormVariantContext';\nimport { useTabbableMode } from '#hooks/UNSAFE_useTabbableMode';\nimport { isEmbeddedVariant } from '#utils/PRIVATE_formControlUtils';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { type TextProps, textInterpolations } from '#utils/UNSAFE_interpolations/text';\nimport { mergeInterpolations } from '#utils/UNSAFE_mergeInterpolations';\nimport { selectMobileFieldInputStyles } from './themes/SelectMobileFieldInputStyles.css';\n\ntype AriaProps = Pick<\n UnpackSignals<JSX.AriaAttributes>,\n | 'aria-controls'\n | 'aria-describedby'\n | 'aria-expanded'\n | 'aria-invalid'\n | 'aria-label'\n | 'aria-labelledby'\n>;\n\ntype EventProps = Pick<UnpackSignals<JSX.IntrinsicElements['div']>, '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?: ContextType<typeof FormVariantContext>;\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: isEmbeddedVariant(variant) ? 'embedded' : 'default',\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 // JET-72775 - Form control alignment in tables\n // When we are in legacy collection components, we want to inherit the text align\n // when it is not set explicitly.\n variant === 'legacyEmbedded' && textAlign === undefined && formControlInheritTextAlign\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 { 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 { 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([\n dropdownStyles.results.linkItemRoot,\n isFocused ? dropdownStyles.results.linkItemFocus : undefined\n ]);\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"],"names":["DEFAULT_PLACEMENT","DROPDOWN_OFFSET","mainAxis","crossAxis","DROPDOWN_SIZE_OPTIONS","isMaxHeightAdjusted","maxHeightCeiling","DROPDOWN_SHIFT_OPTIONS","MobileDropdown","ariaLabelledBy","children","id","isOpen","_jsx","jsx","Layer","WindowOverlay","class","mobileDropdownStyles","base","role","Flex","width","height","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","isEmbeddedVariant","textarea","input","prefix","suffix","startContent","endContent","insideLabel","value","focused","disabled","rootDivStyleClasses","classNames","selectMobileFieldInputStyles","formControlInheritTextAlign","content","Text","anchorRef","dropdownRef","onAutoDismiss","onPosition","placement","setPlacement","useState","prevIsOpen","setPrevIsOpen","handlePosition","useCallback","positionData","handleAutoDismiss","event","handleKeyDown","defaultPrevented","isControlOrFunctionKey","code","KEYS","ESC","TAB","useOutsideMousedown","handler","inlineStyle","minWidth","current","offsetWidth","logicalParentRef","Floating","sizeOptions","shiftOptions","offsetValue","dropdownStyles","style","onKeyDown","onMouseDown","preventDefaultForCurrentTarget","props","handleMouseDown","target","tagName","preventDefault","FormFieldContext","Provider","userAssistance","InlineUserAssistance","isHighlighted","onAction","isHover","hoverProps","useHover","focusProps","useFocusWithin","handleClick","e","rootClasses","results","linkItemRoot","linkItemFocus","linkClasses","extraItem","linkItemHighlight","Link","href","onClick","footer","hasHeaderSeparator","header","labelId","_jsxs","Separator","selectMobileDropdownStyles"],"mappings":"ujFA8BA,MAAMA,GAAoB,eAEpBC,GAAgD,CAAEC,SAAU,EAAGC,UAAW,GAC1EC,GAAsD,CAC1DC,qBAAqB,EACrBC,iBAAkB,KAEdC,GAAwD,CAC5DL,UAAU,GCTI,SAAAM,IAAiB,kBAAmBC,EAAcC,SAAEA,EAAQC,GAAEA,EAAEC,OAAEA,IAChF,OAAQA,EACNC,EAACC,IAAAC,EAAKA,MACJ,CAAAL,SAAAG,MAACG,EAAAA,cAAa,CAAAN,SACZG,EAAAA,IACE,MAAA,CAAAF,GAAIA,EACJM,MAAOC,EAAAA,qBAAqBC,KAC5BC,KAAK,SACM,aAAA,OACM,kBAAAX,EACjBC,SAAAG,EAAAC,IAACO,EAAIA,KAAA,CAACC,MAAM,OAAOC,OAAO,OAAOC,UAAU,OAAOC,UAAU,SAAQf,SACjEA,UAVM,IAgBnB,CCDA,MAAMgB,GAAiB,IAAIC,OAAOC,OAAOC,GAAAA,qBACnCC,GAAs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A,GACTL,IAGP"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './Label-701506b1', './LiveRegion-dbefb95b', 'preact/hooks', './keyboardUtils-fb6219eb', './TextFieldInput-f8635c62', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-41384d7e', './StyledTextField-2b62c81d', './LayerHost-0b288129', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './FormFieldContext-a024b891', 'css!./LabelValueLayoutStyles.styles.css', './logger-0f873e29', './UNSAFE_TextField/themes/TextFieldStyles.css', 'css!./SkeletonStyles.styles.css', 'css!./TextFieldLoadingStyles.styles.css', 'css!./TextFieldStyles.styles.css', 'module', './UNSAFE_TextField/themes/redwood/TextFieldVariants.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './UNSAFE_TextField/themes/FormLayoutStyles.css', 'module', './Flex-4b81b412', 'css!./LayoutStyles.styles.css', './InputGroupContext-372087af', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-2bb62284', './formControlUtils-de035f75', './useTranslationBundle-e4dd341e', './TabbableModeContext-a9c97640', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-a59440e5', './CompactUserAssistance-fcc04dcc', 'css!./IconStyle.styles.css', './Popup-6b57cc3e', 'css!./HiddenAccessibleStyles.styles.css', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './useFocusableTextField-8b755b15', './useLoadingIndicatorTimer-20a3bf5f', './useTextField-3ab0a23b', './Separator-181f7541', './SelectMobileFieldInput-83f56b22', './useSelectCommon-28307b63', './useAccessibleContext-23e8a333', './useFormFieldContext-9260f081', './textAlign-ef924afd', 'css!./FormControlUtilsStyles.styles.css', 'css!./ReadonlyTextFieldInputStyles.styles.css', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputVariants.css', './TextField-c8c71735', 'css!./LiveRegionStyles.styles.css', './UNSAFE_SelectMultiple/themes/SelectedValuesCountStyles.css', './Chip-8280de2e', './IconButton-dc1be00e', './NavLeft-d270ba82', './useFocusWithin-5a504fca', './useUser-08901aba', './classNames-08d99695', './dimensions-95c0c920', './mergeInterpolations-9ede4cf7', './HiddenAccessible-037ef42d', './Text-31cabc49', './Close-36cbae0d', './useId-c9578d26', './UNSAFE_SelectMultiple/themes/TextTagStyles.css', './UNSAFE_SelectMultiple/themes/TextTagListStyles.css', './View-35699bb2', './Button-e5d7c0e3', './UNSAFE_SelectMultiple/themes/MobileDropdownFooterStyles.css', './useEffectEvent-6aa4d559', './equals-e73adbe3', './mergeProps-bcfa6a92', './stringUtils-4ffd9d59', './useHiddenTestMethod-8321d341'], (function(e,t,s,o,n,l,i,a,r,d,c,u,p,h,b,m,y,x,v,f,S,T,w,g,F,C,D,A,R,I,L,E,k,K,V,j,U,P,M,B,O,N,_,H,z,q,Y,W,$,G,Z,J,Q,X,ee,te,se,oe,ne,le,ie,ae,re,de,ce,ue,pe,he,be,me,ye,xe,ve,fe,Se,Te,we,ge,Fe,Ce,De,Ae,Re,Ie,Le,Ee){"use strict";function ke({assistiveText:e,collectionRenderer:s,collectionRendererContext:o,data:n,dropdownId:l,dropdownRef:i,helpSourceLink:a,helpSourceText:r,isAddToListShown:d,isDisabled:c,isDropdownAbove:u,isEmptyResults:p,isOpen:h,isReadonly:b,label:m,mainFieldRef:y,userAssistanceDensity:x,onAddToListAction:v,onAutoDismiss:f,onPosition:S}){const T=P.useTranslationBundle("@oracle/oraclejet-preact"),w=!h||u||c||b||!e&&!a||"efficient"!==x&&"reflow"!==x?void 0:t.jsx(M.TabbableModeContext.Provider,{value:{isTabbable:!1},children:t.jsx(X.DropdownUserAssistance,{assistiveText:e,fieldLabel:m,helpSourceLink:a,helpSourceText:r,userAssistanceDensity:x})}),g=p?d?void 0:t.jsx(ee.EmptyResults,{}):s(o),F=d?t.jsxs(t.Fragment,{children:[!p&&t.jsx("div",{onMouseDown:ee.preventDefault,children:t.jsx(Q.Separator,{})}),t.jsx(X.LinkItem,{isHighlighted:p,onAction:v,children:T.select_addToList()})]}):void 0;return t.jsxs(X.Dropdown,{dropdownRef:i,id:l,isOpen:h,anchorRef:y,onAutoDismiss:f,onPosition:S,children:[t.jsxs(ee.DropdownList,{hasBottomGap:void 0===w,isLoading:null===n,children:[g,F]}),w]})}function Ke({"aria-label":e,count:s=0,onKeyDown:o,onKeyUp:n,onMouseDown:l,...i}){const a=P.useTranslationBundle("@oracle/oraclejet-preact"),r=a.selectMultiple_showSelectedValues(),d=e?`${e}. `:"",c=a.selectMultiple_countPlus({COUNT:"99"}),u=s>99?`${c}`:`${s}`,p=`${d}${a.selectMultiple_valuesSelected({VALUE_COUNT:`${s}`})} ${r}`;return t.jsx("div",{class:de.selectedValueCountStyles.base,onKeyDown:o,onKeyUp:n,onMouseDown:l,children:t.jsx(ce.Chip,{"aria-label":p,...i,children:u})})}function Ve({children:e,columnSpan:s,fieldLabel:o,hasInsideLabel:n,isBackButtonShown:l,isClearButtonShown:i,isDropdownArrowShown:a,isDropdownSelectedOnlyView:r,isSelectedValuesCountShown:d,selectedValuesCount:c,onBackButtonClick:u,onClearButtonClick:p,onDropdownArrowClick:h,onSelectedValuesCountKeyDown:b,onSelectedValuesCountKeyUp:m,onSelectedValuesCountMouseDown:y,onSelectedValuesCountToggle:x,...v}){const{isDisabled:f,isLoading:S}=se.useFormFieldContext(),T=P.useTranslationBundle("@oracle/oraclejet-preact"),w=l?t.jsx(ue.IconButton,{"aria-label":T.selectMultiple_back(),size:"xs",variant:"ghost",onAction:u,children:t.jsx(pe.SvgNavLeft,{})}):null,g=i?t.jsx(ue.IconButton,{"aria-label":T.formControl_clear(),size:"sm",variant:"ghost",onAction:p,children:t.jsx(pe.SvgCancelS,{})}):null,F=a?t.jsx(ee.DropdownArrow,{isDisabled:f,onClick:h,testId:`${v.testId}_dropdownarrow`}):null,C=S?void 0:d?t.jsxs(I.Flex,{align:"center",justify:"center",gap:[0,"1x"],children:[t.jsx(Ke,{"aria-label":o,count:c,isDisabled:f,isSelected:r,onKeyDown:b,onKeyUp:m,onMouseDown:y,onToggle:x}),i&&g,a&&F]}):t.jsxs(t.Fragment,{children:[i&&g,a&&F]});return t.jsx(ae.TextField,{columnSpan:s,startContent:l&&w,mainContent:e,endContent:C,...v})}function je({children:e,removeIcon:s="never",isSelected:o=!1,onRemoveAction:n,onSelect:l,onRemoveIconClick:r,isFocused:d,value:c}){const u=P.useTranslationBundle("@oracle/oraclejet-preact"),p=i.useRef(null),h=Te.useId(),b=me.classNames([we.textTagStyles.base,o&&we.textTagStyles.selected]),m=i.useCallback((()=>{n?.(c)}),[c,n]),y=i.useCallback((()=>{l?.(c)}),[c,l]),x=i.useCallback((()=>{r?.(c)}),[c,r]),v=i.useCallback((e=>{a.isBackspaceOrDelete(e)&&m()}),[m]);return i.useEffect((()=>{d&&o&&(p.current?.focus(),p.current?.scrollIntoView({block:"nearest"}))}),[d,o]),t.jsxs(t.Fragment,{children:[t.jsxs("span",{ref:p,class:b,tabIndex:-1,onClick:y,onKeyUp:v,onMouseDown:ee.preventDefault,role:"option","aria-describedby":"never"===s?h:void 0,"aria-selected":o?"true":"false",children:[t.jsx(fe.Text,{size:"md",variant:"inherit",children:e}),"always"===s&&t.jsx(M.TabbableModeContext.Provider,{value:{isTabbable:!1},children:t.jsx(ue.IconButton,{size:"xs",variant:"ghost",onAction:x,children:t.jsx(Se.SvgClose,{})})})]}),"never"===s&&t.jsx(ve.HiddenAccessible,{id:h,children:u.selectMultiple_removeSelectedTagInstructionText()})]})}const Ue=Array.from(["maxWidth"],(e=>ye.dimensionInterpolations[e])),Pe=xe.mergeInterpolations(Ue);const Me=o.forwardRef((function(e,s=()=>{}){const{"aria-label":o,data:n,hasInsideLabel:l=!1,removeIcon:r="never",onExitNavigation:d,onRemove:c}=e,u=i.useRef(null),[p,h]=i.useState([]),{direction:b}=be.useUser(),m=i.useRef(-1),y=n.at(-1)?.value,x=i.useRef({value:y,index:n.length-1});x.current={value:y,index:n.length-1};const v=i.useCallback((e=>{const t=n.at(e)?.value;null!=t&&h([t])}),[n]),f=i.useCallback((()=>{h((e=>(m.current=-1,e.length?[]:e)))}),[]),S=i.useCallback((e=>{c?.([e]),d?.(),f()}),[f,d,c]),T=i.useCallback((e=>{const t=[...p];p.includes(e)||t.push(e),c?.(t),d?.(),f()}),[p,f,d,c]),w=i.useCallback((e=>{h([e]),m.current=n.findIndex((t=>t.value===e))}),[n,h]),g=i.useCallback((e=>{if(0!==n.length){if("ltr"===b&&"ArrowLeft"===e.code||"rtl"===b&&"ArrowRight"===e.code){if(0===m.current)return;return m.current-=1,void v(m.current)}return"ltr"===b&&"ArrowRight"===e.code||"rtl"===b&&"ArrowLeft"===e.code?m.current===n.length-1?void d?.():(m.current+=1,void v(m.current)):"Home"===e.code?(m.current=0,void v(m.current)):"End"===e.code?(m.current=n.length-1,void v(m.current)):a.isSelectAll(e)?(h(n.map((e=>e.value))),void e.preventDefault()):void 0}}),[n,b,d,v,h]),F=i.useCallback((()=>{h((e=>e.length||void 0===x.current.value?e:(m.current=x.current.index,[x.current.value])))}),[]),C=i.useCallback((()=>{f()}),[f]),{focusProps:D}=he.useFocusWithin({onBlurWithin:C});i.useImperativeHandle(s,(()=>({blur:C,focus:F})),[C,F]),i.useEffect((()=>{u.current?.scrollTo({left:u.current.scrollWidth*("ltr"===b?1:-1)})}),[n,b]);const A=Pe(e),R=me.classNames([ge.textTagListStyles.textTagListBase,l&&ge.textTagListStyles.textTagListInsideLabel]);return t.jsx("div",{class:R,ref:u,tabIndex:-1,onKeyDown:g,role:"listbox","aria-label":o,"aria-multiselectable":"true",style:A,...D,children:n.map(((e,s)=>t.jsx(je,{isFocused:m.current===s,isSelected:p.includes(e.value),onRemoveAction:T,onSelect:w,onRemoveIconClick:S,removeIcon:r,value:e.value,children:e.label},e.value)))})}));function Be({displayValue:e,isAddToListShown:s,isKeyboardNavigable:o,isTextTagListShown:n,isUserFiltering:a,liveRegionText:d,onExitNavigation:c,onRemove:u,removeIcon:p,selectedValuesDescriptionId:h,selectedValuesKeyboardNavDescriptionId:b,textTagListData:m,textTagListRef:y,userInput:x,virtualKeyboard:v,placeholder:f,...S}){const T=P.useTranslationBundle("@oracle/oraclejet-preact"),w=s?T.select_addToListAvailable():void 0,g=o&&e&&e.length>0?T.selectMultiple_highlightSelectedTagsInstructionText():void 0,{isInputFocused:F}=se.useFormFieldContext(),[C,D]=i.useState(g),[A,R]=i.useState(!1);return F&&n&&!C&&g&&!A?R(!0):F||!A||R(!1),C!==g&&D(g),t.jsxs(t.Fragment,{children:[n&&t.jsx(Me,{"aria-label":T.selectMultiple_selectedValues(),data:m,hasInsideLabel:S.hasInsideLabel,maxWidth:"50%",onExitNavigation:c,onRemove:u,ref:y,removeIcon:p}),t.jsx(I.Flex,{flex:1,children:t.jsx(r.TextFieldInput,{"aria-autocomplete":"list",autoComplete:"off",hasPrefix:n,role:"combobox",hasEndContent:!0,spellcheck:!1,type:"auto"===v?"search":v,value:a||n?x:e,placeholder:n?void 0:f,...S})}),n&&t.jsx(ve.HiddenAccessible,{id:h,isHidden:!0,children:e}),n&&g&&!A&&t.jsx(ve.HiddenAccessible,{id:b,isHidden:!0,children:g}),t.jsx(l.LiveRegion,{children:d}),n&&t.jsx(l.LiveRegion,{children:A?g:void 0}),s?t.jsx(l.LiveRegion,{children:w}):void 0]})}function Oe({onApply:e}){const s=P.useTranslationBundle("@oracle/oraclejet-preact");return t.jsx("div",{class:De.mobileDropdownFooterStyles.base,children:t.jsx(Ce.Button,{display:"label",edge:"bottom",label:s.selectMultiple_apply(),size:"sm",variant:"callToAction",onAction:e})})}function Ne(e,t){const s=P.useTranslationBundle("@oracle/oraclejet-preact").plural_separator();return{displayValue:i.useMemo((()=>{if(void 0===t)return"";const o=function(e,t){const s=t?[...t.values()]:[],o=t=>ee.renderItemText(t,e,"SelectMultiple"),n=s.map(o);return new Set(n)}(e,t),n=function(e,t){return Array.from(e.values()).join(t)}(o,s);return n}),[e,s,t]),textTags:i.useMemo((()=>void 0===t?[]:function(e,t=[]){return t.map((t=>({label:ee.renderItemText(t,e,"SelectMultiple")??"",value:t.key})))}(e,t)),[e,t])}}function _e({isDropdownSelectedOnlyView:e=!1,valueItems:t}){const s=Ae.useEffectEvent((e=>e&&t&&0!==t.length?{offset:0,totalSize:t.length,sizePrecision:"exact",data:t.map((e=>({data:e.data,metadata:e.metadata??{key:e.key}})))}:void 0));return{data:i.useMemo((()=>s(e)),[s,e]),onLoadRange:void 0}}const He=(e,t,s)=>t.data.forEach((t=>{s.has(t.metadata.key)&&e.set(t.metadata.key,{data:t.data,key:t.metadata.key,metadata:t.metadata})}));function ze({"aria-describedby":e,"aria-label":s,assistiveText:o,collectionRenderer:l,data:a,dropdownId:r,enabledElementRef:d,helpSourceLink:c,helpSourceText:u,isAddToListShown:p,isDisabled:h,isEmptyResults:b,isFocused:y,isLoading:x,isOpen:v,isReadonly:f,isRequired:S,isSelectedOnlyView:T,itemText:w,label:g,liveRegionText:F,placeholder:C,propIsLoading:D,selectedValuesDescriptionId:A,setDropdownOpen:R,setUserInput:I,stopFiltering:L,textAlign:E,textTagListRef:k,userAssistanceDensity:K,userInput:V,valueItems:j,virtualKeyboard:U,onAddToListAction:M,onCommit:B,onFieldBlur:O,onFieldFocus:N,onFieldInput:_,onFieldKeyDown:H,onFieldKeyUp:z}){const q=P.useTranslationBundle("@oracle/oraclejet-preact"),{collectionRendererContext:Y,footerProps:W,selectMultipleFieldInputProps:$,selectMultipleFieldProps:G,selectedValuesCountProps:Z}=function({data:e,inputRef:t,isDropdownOpen:s,isDropdownSelectedOnlyView:o,itemText:n,textTagListRef:l,userInput:a,valueItems:r,onCommit:d,setDropdownOpen:c,setUserInput:u,stopFiltering:p}){const[h,b]=i.useState({rowKey:void 0}),[m,y]=i.useState(ee.createKeysFromValueItems(r)),[x,v]=i.useState(o),f=i.useRef(new Map),S=i.useMemo((()=>{const e=[];return m?.forEach((t=>{const s=r?.find((e=>e.key===t));s?e.push(s):f.current.has(t)&&e.push(f.current.get(t))})),e}),[m,r]),{textTags:T,displayValue:w}=Ne(n,S),g=i.useRef(null),{data:F}=_e({isDropdownSelectedOnlyView:x,valueItems:S}),C=i.useCallback((e=>{b({rowKey:e.value})}),[b]),D=i.useCallback((t=>{y(t.value),u(""),e&&He(f.current,e,t.value)}),[e,y,u]),A=i.useCallback((({value:e=!1})=>{v((t=>(t!==e&&p(),e)))}),[v,p]),R=i.useCallback((()=>{y(ee.createKeysFromValueItems(r)),f.current.clear(),c(!1),p(),t.current?.focus()}),[t,c,p,r]),I=i.useCallback((()=>{d({previousValue:ee.createKeysFromValueItems(r),value:m}),R()}),[m,r,R,d]),L=i.useCallback((()=>{R()}),[R]),E=i.useCallback((()=>{y(new Set),p()}),[p]),k=i.useCallback((e=>{const t=new Set(m);e.forEach((e=>t.delete(e))),y(t)}),[m]),K=i.useCallback((()=>{setTimeout((()=>g.current?.focus()),0)}),[]);i.useEffect((()=>{s&&setTimeout((()=>g.current?.focus()),0)}),[s]);const[V,j]=i.useState(r);return V!==r&&(s||y((e=>{const t=ee.createKeysFromValueItems(r);return Re.equals(e,t)?e:t})),j(r)),{collectionRendererContext:ee.useCollectionRenderer({currentKey:h.rowKey,onCurrentKeyChange:C,onSelectedKeysChange:D,searchText:a,selectedKeys:m,selectedOnlyData:F}),footerProps:{onApply:I},selectMultipleFieldInputProps:{displayValue:w,hasEmptyLabel:!1,hasInsideLabel:!0,inputRef:g,isTextTagListShown:T.length>0,isUserFiltering:!0,removeIcon:"always",userInput:a,textTagListData:T,textTagListRef:l,onExitNavigation:K,onRemove:k},selectMultipleFieldProps:{hasInsideLabel:!0,isBackButtonShown:!0,isClearButtonShown:!ee.isSearchTextEmptyOrUndefined(a)||0!==T.length,isDropdownArrowShown:!1,isDropdownSelectedOnlyView:x,isSelectedValuesCountShown:(m?.size??0)>0||x,selectedValuesCount:m?.size??0,styleVariant:"embedded",onBackButtonClick:L,onClearButtonClick:E},selectedValuesCountProps:{onSelectedValuesCountToggle:A},isDropdownSelectedOnlyView:x}}({data:a,inputRef:d,isDropdownOpen:v,isDropdownSelectedOnlyView:T,itemText:w,textTagListRef:k,userInput:V,valueItems:j,onCommit:B,setDropdownOpen:R,setUserInput:I,stopFiltering:L}),{formFieldContext:te,inputProps:se,labelProps:oe,textFieldProps:ne,userAssistanceProps:le}=J.useTextField({ariaDescribedBy:e,helpSourceLink:c,helpSourceText:u,isDisabled:!1,isFocused:y,isLoading:x,isReadonly:!1,isRequiredShown:!1,labelEdge:"inside",styleVariant:"default",value:G.selectedValuesCount>0||void 0});te.hasValue=D||te.hasValue;const ie={label:t.jsx(n.Label,{...oe,children:g}),labelEdge:"inside"},ae=!v||h||f||!o&&!c||"efficient"!==K&&"reflow"!==K?void 0:t.jsx(X.DropdownUserAssistance,{assistiveText:o,fieldLabel:g,helpSourceLink:c,helpSourceText:u,userAssistanceDensity:K,...le}),re=b?p?void 0:t.jsx(ee.EmptyResults,{}):l(Y),de=p?t.jsxs(t.Fragment,{children:[t.jsx("div",{onMouseDown:ee.preventDefault,children:t.jsx(Q.Separator,{})}),t.jsx(X.LinkItem,{onAction:M,children:q.select_addToList()})]}):void 0;return t.jsx(X.SelectMobileDropdown,{header:t.jsxs(m.FormFieldContext.Provider,{value:te,children:[t.jsx(Fe.View,{children:t.jsx(Ve,{fieldLabel:g,onBlur:O,onFocus:N,...ie,...ne,...G,...Z,children:t.jsx(Be,{"aria-controls":r,"aria-expanded":v,"aria-label":s,isAddToListShown:p,isRequired:S,liveRegionText:F,placeholder:C,selectedValuesDescriptionId:A,textAlign:E,virtualKeyboard:U,onInput:_,onKeyDown:H,onKeyUp:z,...se,...$})})}),ae,de]}),footer:t.jsx(Oe,{...W}),id:r,isOpen:v,labelId:oe.id,children:t.jsx(ee.DropdownList,{hasTopGap:!de,hasBottomGap:!0,isLoading:null===a,children:re})})}const qe=o.forwardRef((({addToList:e="off","aria-describedby":r,assistiveText:d,collectionRenderer:p,columnSpan:h,data:y,helpSourceLink:x,helpSourceText:v,isDisabled:f,isLoading:S,isReadonly:T,isRequired:w,isRequiredShown:g,itemRenderer:F,itemText:C,label:D,labelEdge:A,labelStartWidth:R,messages:I,onAddToListAction:L,onCommit:E,onFilter:k,onLoadRange:K,placeholder:V,testId:j,textAlign:M,userAssistanceDensity:B,valueItems:O,variant:N="default",virtualKeyboard:z},q)=>{const{isDisabled:Y,isReadonly:W,labelEdge:$,labelStartWidth:Q,textAlign:te,userAssistanceDensity:se}=b.useFormContext(),oe=f??Y,ne=T??W,le=A??$,ie=R??Q,ae=M??te??U.defaultTextAlignForVariant(N),re=B??se,de=o.useRef(null),ce=o.useRef(null),{focusProps:ue,isFocused:pe,methods:he}=G.useFocusableTextField({isDisabled:oe,isReadonly:ne,enabledElementRef:de,readonlyElementRef:ce});o.useImperativeHandle(q,(()=>he),[he]);const{addToListEventHandlers:me,ariaProps:ye,collectionRendererContext:xe,data:ve,dropdownArrowEventHandlers:fe,dropdownEventHandlers:Se,dropdownRef:we,hasSelectedValuesCount:ge,inputEventHandlers:Fe,isAddToListShown:Ce,isDataFetched:De,isDropdownAbove:Ae,isDropdownOpen:Re,isDropdownSelectedOnlyView:Ke,isEmptyResults:je,isFocused:Ue,isUserFiltering:Pe,mainFieldRef:Me,mouseProps:Oe,selectedValuesCountProps:He,selectedValuesDescriptionId:qe,selectedValuesKeyboardNavDescriptionId:Ye,setDropdownOpen:We,setUserInput:$e,stopFiltering:Ge,textFieldRef:Ze,textTagListProps:Je,userInput:Qe}=function({addToList:e,ariaDescribedBy:t,data:s,inputRef:o,isDisabled:n,isFocused:l,isReadonly:r,onAddToListAction:d,onCommit:c,onFilter:u,valueItems:p}){const[h,b]=i.useState(!1),m=p?.length,y=void 0!==m&&m>0||h,x=_e({isDropdownSelectedOnlyView:h,valueItems:p}),v=h?x.data:s,f=i.useCallback((e=>{ee.isSearchTextEmptyOrUndefined(e.searchText)||b(!1),u?.(e)}),[u]),{currentRowKeyRef:S,currentRowOverride:T,dropdownRef:w,getDropdownTabbableElems:g,handleDropdownArrowClick:F,handleDropdownAutoDismiss:C,handleDropdownPosition:D,handleInput:A,handleMainFieldKeyDown:R,handleMainFieldKeyUp:I,handleUpDownArrowKeys:L,isDropdownAbove:E,isDropdownOpen:k,isFocused:K,isUserFiltering:V,mainFieldRef:j,onCurrentKeyChange:U,onMouseDown:P,searchText:M,setCurrentRowOverride:B,setDropdownOpen:O,setUserInput:N,stopFiltering:_,userInput:H}=ee.useSelectCommon({data:v,inputRef:o,isFocused:l,onFilter:f}),[z,q]=i.useState(k),[Y,W]=i.useState(p),[$,G]=i.useState(ee.createKeysFromValueItems(p)),Z=null!=v&&!ee.isBeforeDataFetch(v),J=Z&&0===v?.totalSize,Q="on"===e&&V&&null!=M&&M.length>0,X=i.useCallback((()=>{O(!1),_(),d?.({searchText:V?M:void 0})}),[V,d,M,O,_]),te=i.useRef(null),{direction:se}=be.useUser(),oe=Te.useId(),ne=Te.useId(),le=Le.l([K&&ne,K&&oe,t]),ie=i.useCallback((()=>{w.current?.parentElement?.removeChild(w.current)}),[w]),ae=i.useCallback((e=>V&&k&&!ee.isSearchTextEmptyOrUndefined(H)&&(v?.data.length??0)>0&&void 0!==e),[v,k,V,H]),re=i.useCallback((e=>{if($?.has(e))return;const t=void 0===$?new Set([e]):new Set([...$.values(),e]);c({previousValue:$,value:t}),G(t)}),[c,$,G]),de=i.useRef(null),ce=i.useCallback((e=>r||n?Promise.reject("Component is readonly or disabled"):(c({value:e,previousValue:$}),Promise.resolve())),[n,r,c,$]);Ee.useHiddenTestMethod({elementRef:r?j:de,method:ce,name:"_changeValue"});const ue=i.useCallback((e=>{if(k&&"keydown"===e?.type){const t=e;switch(t.code){case a.KEYS.TAB:{const e=t.shiftKey,s=g();if(s&&s.length>1){const t=s[0],o=s[s.length-1];if(!e&&document.activeElement!==o||e&&document.activeElement!==t)return void O(!0)}t.shiftKey||!y?o.current?.focus():he.current?.focus(),ie();break}}}}),[g,y,o,k,ie,O]),pe=i.useCallback((e=>{if(!a.isControlOrFunctionKey(e))switch(e.code){case a.KEYS.TAB:k&&(e.shiftKey||!y&&!e.shiftKey)&&(ie(),O(!1)),y&&!e.shiftKey&&e.stopPropagation();break;case a.KEYS.LEFT:"ltr"===se&&o.current instanceof HTMLInputElement&&0===o.current?.selectionStart&&0===o.current?.selectionEnd&&te.current?.focus();break;case a.KEYS.RIGHT:"rtl"===se&&o.current instanceof HTMLInputElement&&0===o.current?.selectionStart&&0===o.current?.selectionEnd&&te.current?.focus();break;case a.KEYS.ENTER:case a.KEYS.NUMPAD_ENTER:if(ee.isPhone())return;if(Q&&J)return void X();ae(S.current)&&(O(!1),_(),re(S.current))}}),[S,se,X,y,o,Q,k,J,ie,re,O,ae,_]);if(Y!==p){const e=ee.createKeysFromValueItems(p);G(e)}const he=i.useRef(null);i.useEffect((()=>{he.current=y&&j.current?.querySelector?j.current.querySelector('[role="switch"]'):null}),[y,n,r,j]);const me=i.useCallback((e=>{switch(e.code){case a.KEYS.TAB:k&&!e.shiftKey&&(ie(),O(!1)),e.shiftKey&&e.stopPropagation();break;case a.KEYS.UP:case a.KEYS.DOWN:e.preventDefault();break;case a.KEYS.ESC:k&&(O(!1),e.preventDefault(),e.stopPropagation());break;case a.KEYS.ENTER:e.stopPropagation()}}),[k,ie,O]),ye=i.useCallback((e=>{switch(e.code){case a.KEYS.UP:case a.KEYS.DOWN:L(e)}}),[L]),xe=i.useCallback((e=>{e.preventDefault(),he.current?.focus()}),[he]),ve=i.useCallback((e=>{k||O(!0);const t=e.value??!1;t!==h&&(b(t),t&&_())}),[k,h,O,_]);!k&&h&&b(!1);const fe=i.useCallback((e=>{G(e.value),N(""),c?.({value:e.value,previousValue:$})}),[c,$,G,N]),Se=i.useCallback((()=>{setTimeout((()=>o.current?.focus()),0)}),[o]),we=i.useCallback((e=>{const t=$,s=new Set($);e.forEach((e=>s.delete(e))),c?.({previousValue:t,value:s})}),[c,$]),ge=i.useMemo((()=>Ie.mergeProps({onAutoDismiss:C,onPosition:D},{onAutoDismiss:ue})),[C,D,ue]),Fe=i.useMemo((()=>Ie.mergeProps({onInput:A,onKeyDown:R,onKeyUp:I},{onKeyDown:pe})),[R,A,I,pe]),Ce=i.useMemo((()=>({textTagListRef:te,onExitNavigation:Se,onRemove:we})),[Se,we]),De=ee.useCollectionRenderer({currentKey:T.rowKey,onCurrentKeyChange:U,onSelectedKeysChange:fe,searchText:M,selectedKeys:$,selectedOnlyData:x.data});k&&!z&&B({rowKey:void 0}),z&&!k&&!H&&_();const Ae=i.useRef(v);if(Ae.current!==v){const e=v?.data[0]?.metadata.key;k&&V&&null!=e&&0===v?.offset&&B({rowKey:ee.isSearchTextEmptyOrUndefined(M)?void 0:e}),Ae.current=v}return z!==k&&q(k),Y!==p&&W(p),{addToListEventHandlers:{onAction:X},ariaProps:{ariaDescribedBy:le},collectionRendererContext:De,data:v,dropdownArrowEventHandlers:{onClick:F},dropdownEventHandlers:ge,dropdownRef:w,hasSelectedValuesCount:y,inputEventHandlers:Fe,inputRef:o,isAddToListShown:Q,isDataFetched:Z,isDropdownAbove:E,isDropdownOpen:k,isDropdownSelectedOnlyView:h,isEmptyResults:J,isFocused:K,isUserFiltering:V,mainFieldRef:j,mouseProps:n||r?{}:{onMouseDown:P},searchText:M,selectedValuesCountProps:{onKeyDown:me,onKeyUp:ye,onMouseDown:xe,onToggle:ve},selectedValuesDescriptionId:oe,selectedValuesKeyboardNavDescriptionId:ne,setDropdownOpen:O,setUserInput:N,stopFiltering:_,textFieldRef:de,textTagListProps:Ce,userInput:H}}({addToList:e,ariaDescribedBy:r,data:y,inputRef:de,isDisabled:oe,isFocused:pe,isReadonly:ne,onAddToListAction:L,onCommit:E,onFilter:k,valueItems:O}),Xe=Z.useLoadingIndicatorTimer(S??!1),{baseId:et,formFieldContext:tt,inputProps:st,labelProps:ot,textFieldProps:nt,userAssistanceProps:lt}=J.useTextField({ariaDescribedBy:ye.ariaDescribedBy,helpSourceLink:x,helpSourceText:v,isDisabled:oe,isFocused:Ue,isLoading:Xe,isReadonly:ne,isRequiredShown:g,labelEdge:le,messages:I,styleVariant:N,userAssistanceDensity:re,value:void 0!==O&&O.length>0||void 0});tt.hasValue=S||tt.hasValue;const it=`${et}-dropdown`,{displayValue:at,textTags:rt}=Ne(C,O),dt="none"!==le?t.jsx(n.Label,{...ot,...ee.isPhone()?{forId:void 0}:{},children:D}):void 0,ct={label:"none"!==le?dt:void 0,labelEdge:"none"!==le?le:void 0,labelStartWidth:"none"!==le?ie:void 0,labelText:"inside"!==le||oe?void 0:D},ut="none"===le?D:void 0,pt="efficient"===re||"reflow"===re?oe?"efficient"!==re?void 0:t.jsx(_.InlineUserAssistance,{userAssistanceDensity:re,...lt}):ne?t.jsx(_.InlineUserAssistance,{fieldLabel:D,messages:I,userAssistanceDensity:re,...lt}):t.jsx(_.InlineUserAssistance,{assistiveText:d,fieldLabel:D,helpSourceLink:x,helpSourceText:v,messages:I,isRequiredShown:g,userAssistanceDensity:re,...lt}):void 0,ht="compact"===re?t.jsx(H.CompactUserAssistance,{anchorRef:Me,messages:I,assistiveText:d,...lt}):void 0,bt=P.useTranslationBundle("@oracle/oraclejet-preact"),mt=o.useCallback((({currentRowKeyOverride:e,onPersistCurrentRowKey:s,onSelectedChange:o,searchText:n,selected:l,selectedOnlyData:i})=>t.jsx(ee.DefaultList,{"aria-label":D??"",componentName:"SelectMultiple",currentItemVariant:"highlight",currentKey:e,data:i??y,itemRenderer:F,itemText:C,searchText:i?void 0:Pe?n:void 0,selectedKeys:l,selectionMode:"multiple",onCurrentKeyChange:s,onLoadRange:i?void 0:K,onSelectionChange:o})),[Pe,F,C,D,K,y]);if(ne){const e=t.jsx(c.ReadonlyTextFieldInput,{"aria-describedby":st["aria-describedby"],"aria-label":ut,"aria-labelledby":ot.id,as:"div",elementRef:ce,formVariant:N,hasEmptyLabel:""===D&&"none"===le,hasInsideLabel:void 0!==D&&"inside"===le,onBlur:st.onBlur,onFocus:st.onFocus,textAlign:ae,value:at});return t.jsx(m.FormFieldContext.Provider,{value:tt,children:t.jsx(u.ReadonlyTextField,{role:"presentation",columnSpan:h,compactUserAssistance:ht,inlineUserAssistance:pt,onBlur:ue.onFocusOut,onFocus:ue.onFocusIn,ref:Me,mainContent:e,testId:j,...ct})})}const yt="inside"===le,xt=Re&&De?0===ve?.totalSize?bt.select_noMatchesFound():1===ve?.totalSize?bt.select_oneMatchFound():"exact"===ve?.sizePrecision?bt.select_sizeMatchesFound({TOTAL_SIZE:`${ve?.totalSize}`}):bt.select_sizeOrMoreMatchesFound({TOTAL_SIZE:`${ve?.totalSize}`}):"",vt=Re&&void 0!==ve&&(null===ve||ve.totalSize>0||ee.isBeforeDataFetch(ve)||je),ft=""===D&&"none"===le,St=ee.isPhone()&&!oe?t.jsx(X.SelectMobileFieldInput,{"aria-controls":it,"aria-describedby":st["aria-describedby"],"aria-expanded":Re,"aria-invalid":st["aria-invalid"],"aria-label":ut,"aria-labelledby":ot.id,displayValue:at,hasEmptyLabel:ft,hasInsideLabel:yt,isRequired:w,onBlur:st.onBlur,onFocus:st.onFocus,placeholder:V,ref:de,textAlign:ae,variant:st.variant}):t.jsx(Be,{"aria-controls":it,"aria-expanded":Re,"aria-label":ut,displayValue:at,hasEmptyLabel:ft,hasInsideLabel:yt,inputRef:de,isAddToListShown:Ce,isKeyboardNavigable:!oe&&!ee.isMobile(),isRequired:w,isTextTagListShown:Ue&&0!==rt.length,isUserFiltering:Pe,liveRegionText:xt,placeholder:V,removeIcon:ee.isTablet()?"always":"never",selectedValuesDescriptionId:qe,selectedValuesKeyboardNavDescriptionId:Ye,textAlign:ae,textTagListData:rt,userInput:Qe,virtualKeyboard:ee.isTablet()?z:void 0,...Fe,...st,...Je}),Tt=vt?ee.isPhone()?t.jsx(ze,{"aria-describedby":ye.ariaDescribedBy,"aria-label":ut,assistiveText:d,collectionRenderer:p??mt,data:y,dropdownId:it,enabledElementRef:de,helpSourceLink:x,helpSourceText:v,isAddToListShown:Ce,isDisabled:oe,isEmptyResults:je,isFocused:Ue,isLoading:Xe,isOpen:vt,isReadonly:ne,isRequired:w,isSelectedOnlyView:Ke,itemText:C,label:D,liveRegionText:xt,placeholder:V,propIsLoading:S,selectedValuesDescriptionId:qe,setDropdownOpen:We,setUserInput:$e,stopFiltering:Ge,textAlign:ae,textTagListRef:Je.textTagListRef,userAssistanceDensity:re,userInput:Qe,valueItems:O,virtualKeyboard:z,onAddToListAction:me.onAction,onCommit:E,onFieldBlur:ue.onFocusOut,onFieldFocus:ue.onFocusIn,onFieldInput:Fe.onInput,onFieldKeyDown:Fe.onKeyDown,onFieldKeyUp:Fe.onKeyUp}):t.jsx(ke,{...Se,assistiveText:d,collectionRenderer:p??mt,collectionRendererContext:xe,dropdownId:it,dropdownRef:we,helpSourceLink:x,helpSourceText:v,isAddToListShown:Ce,isDisabled:oe,isDropdownAbove:Ae,isEmptyResults:je,isOpen:vt,isReadonly:ne,label:D,mainFieldRef:Me,onAddToListAction:me.onAction,userAssistanceDensity:re}):null;return t.jsxs(s.Fragment,{children:[t.jsxs(m.FormFieldContext.Provider,{value:tt,children:[t.jsx(Ve,{columnSpan:h,compactUserAssistance:ht,fieldLabel:D,hasInsideLabel:yt,inlineUserAssistance:pt,isDropdownArrowShown:!0,isDropdownSelectedOnlyView:Ke,isSelectedValuesCountShown:ge,mainFieldRef:Me,onBlur:ue.onFocusOut,onFocus:ue.onFocusIn,onDropdownArrowClick:fe.onClick,onSelectedValuesCountKeyDown:He.onKeyDown,onSelectedValuesCountKeyUp:He.onKeyUp,onSelectedValuesCountMouseDown:He.onMouseDown,onSelectedValuesCountToggle:He.onToggle,rootRef:Ze,selectedValuesCount:O?.length,testId:j,...ct,...Oe,...nt,children:St}),!ee.isPhone()&&t.jsx(l.LiveRegion,{children:vt?bt.select_closeDropdown():void 0})]}),Tt]})}));e.SelectMultiple=qe}));
2
- //# sourceMappingURL=SelectMultiple-cb5fdd20.js.map
1
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './Label-701506b1', './LiveRegion-dbefb95b', 'preact/hooks', './keyboardUtils-fb6219eb', './TextFieldInput-f8635c62', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-41384d7e', './StyledTextField-2b62c81d', './LayerHost-0b288129', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './FormFieldContext-a024b891', 'css!./LabelValueLayoutStyles.styles.css', './logger-0f873e29', './UNSAFE_TextField/themes/TextFieldStyles.css', 'css!./SkeletonStyles.styles.css', 'css!./TextFieldLoadingStyles.styles.css', 'css!./TextFieldStyles.styles.css', 'module', './UNSAFE_TextField/themes/redwood/TextFieldVariants.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './UNSAFE_TextField/themes/FormLayoutStyles.css', 'module', './Flex-4b81b412', 'css!./LayoutStyles.styles.css', './InputGroupContext-372087af', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-2bb62284', './formControlUtils-de035f75', './useTranslationBundle-e4dd341e', './TabbableModeContext-a9c97640', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-a59440e5', './CompactUserAssistance-fcc04dcc', 'css!./IconStyle.styles.css', './Popup-6b57cc3e', 'css!./HiddenAccessibleStyles.styles.css', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './useFocusableTextField-8b755b15', './useLoadingIndicatorTimer-20a3bf5f', './useTextField-3ab0a23b', './Separator-181f7541', './SelectMobileFieldInput-d499ef86', './useSelectCommon-a02ddf3c', './useAccessibleContext-23e8a333', './useFormFieldContext-9260f081', './textAlign-ef924afd', 'css!./FormControlUtilsStyles.styles.css', 'css!./ReadonlyTextFieldInputStyles.styles.css', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputVariants.css', './TextField-c8c71735', 'css!./LiveRegionStyles.styles.css', './UNSAFE_SelectMultiple/themes/SelectedValuesCountStyles.css', './Chip-8280de2e', './IconButton-dc1be00e', './NavLeft-d270ba82', './useFocusWithin-5a504fca', './useUser-08901aba', './classNames-08d99695', './dimensions-95c0c920', './mergeInterpolations-9ede4cf7', './HiddenAccessible-037ef42d', './Text-31cabc49', './Close-36cbae0d', './useId-c9578d26', './UNSAFE_SelectMultiple/themes/TextTagStyles.css', './UNSAFE_SelectMultiple/themes/TextTagListStyles.css', './View-35699bb2', './Button-e5d7c0e3', './UNSAFE_SelectMultiple/themes/MobileDropdownFooterStyles.css', './useEffectEvent-6aa4d559', './equals-e73adbe3', './mergeProps-bcfa6a92', './stringUtils-4ffd9d59', './useHiddenTestMethod-8321d341'], (function(e,t,s,o,n,l,i,a,r,d,c,u,p,h,b,m,y,x,v,f,S,T,w,g,F,C,D,A,R,I,L,E,k,K,V,j,U,P,M,B,O,N,_,H,z,q,Y,W,$,G,Z,J,Q,X,ee,te,se,oe,ne,le,ie,ae,re,de,ce,ue,pe,he,be,me,ye,xe,ve,fe,Se,Te,we,ge,Fe,Ce,De,Ae,Re,Ie,Le,Ee){"use strict";function ke({assistiveText:e,collectionRenderer:s,collectionRendererContext:o,data:n,dropdownId:l,dropdownRef:i,helpSourceLink:a,helpSourceText:r,isAddToListShown:d,isDisabled:c,isDropdownAbove:u,isEmptyResults:p,isOpen:h,isReadonly:b,label:m,mainFieldRef:y,userAssistanceDensity:x,onAddToListAction:v,onAutoDismiss:f,onPosition:S}){const T=P.useTranslationBundle("@oracle/oraclejet-preact"),w=!h||u||c||b||!e&&!a||"efficient"!==x&&"reflow"!==x?void 0:t.jsx(M.TabbableModeContext.Provider,{value:{isTabbable:!1},children:t.jsx(X.DropdownUserAssistance,{assistiveText:e,fieldLabel:m,helpSourceLink:a,helpSourceText:r,userAssistanceDensity:x})}),g=p?d?void 0:t.jsx(ee.EmptyResults,{}):s(o),F=d?t.jsxs(t.Fragment,{children:[!p&&t.jsx("div",{onMouseDown:ee.preventDefault,children:t.jsx(Q.Separator,{})}),t.jsx(X.LinkItem,{isHighlighted:p,onAction:v,children:T.select_addToList()})]}):void 0;return t.jsxs(X.Dropdown,{dropdownRef:i,id:l,isOpen:h,anchorRef:y,onAutoDismiss:f,onPosition:S,children:[t.jsxs(ee.DropdownList,{hasBottomGap:void 0===w,isLoading:null===n,children:[g,F]}),w]})}function Ke({"aria-label":e,count:s=0,onKeyDown:o,onKeyUp:n,onMouseDown:l,...i}){const a=P.useTranslationBundle("@oracle/oraclejet-preact"),r=a.selectMultiple_showSelectedValues(),d=e?`${e}. `:"",c=a.selectMultiple_countPlus({COUNT:"99"}),u=s>99?`${c}`:`${s}`,p=`${d}${a.selectMultiple_valuesSelected({VALUE_COUNT:`${s}`})} ${r}`;return t.jsx("div",{class:de.selectedValueCountStyles.base,onKeyDown:o,onKeyUp:n,onMouseDown:l,children:t.jsx(ce.Chip,{"aria-label":p,...i,children:u})})}function Ve({children:e,columnSpan:s,fieldLabel:o,hasInsideLabel:n,isBackButtonShown:l,isClearButtonShown:i,isDropdownArrowShown:a,isDropdownSelectedOnlyView:r,isSelectedValuesCountShown:d,selectedValuesCount:c,onBackButtonClick:u,onClearButtonClick:p,onDropdownArrowClick:h,onSelectedValuesCountKeyDown:b,onSelectedValuesCountKeyUp:m,onSelectedValuesCountMouseDown:y,onSelectedValuesCountToggle:x,...v}){const{isDisabled:f,isLoading:S}=se.useFormFieldContext(),T=P.useTranslationBundle("@oracle/oraclejet-preact"),w=l?t.jsx(ue.IconButton,{"aria-label":T.selectMultiple_back(),size:"xs",variant:"ghost",onAction:u,children:t.jsx(pe.SvgNavLeft,{})}):null,g=i?t.jsx(ue.IconButton,{"aria-label":T.formControl_clear(),size:"sm",variant:"ghost",onAction:p,children:t.jsx(pe.SvgCancelS,{})}):null,F=a?t.jsx(ee.DropdownArrow,{isDisabled:f,onClick:h,testId:`${v.testId}_dropdownarrow`}):null,C=S?void 0:d?t.jsxs(I.Flex,{align:"center",justify:"center",gap:[0,"1x"],children:[t.jsx(Ke,{"aria-label":o,count:c,isDisabled:f,isSelected:r,onKeyDown:b,onKeyUp:m,onMouseDown:y,onToggle:x}),i&&g,a&&F]}):t.jsxs(t.Fragment,{children:[i&&g,a&&F]});return t.jsx(ae.TextField,{columnSpan:s,startContent:l&&w,mainContent:e,endContent:C,...v})}function je({children:e,removeIcon:s="never",isSelected:o=!1,onRemoveAction:n,onSelect:l,onRemoveIconClick:r,isFocused:d,value:c}){const u=P.useTranslationBundle("@oracle/oraclejet-preact"),p=i.useRef(null),h=Te.useId(),b=me.classNames([we.textTagStyles.base,o&&we.textTagStyles.selected]),m=i.useCallback((()=>{n?.(c)}),[c,n]),y=i.useCallback((()=>{l?.(c)}),[c,l]),x=i.useCallback((()=>{r?.(c)}),[c,r]),v=i.useCallback((e=>{a.isBackspaceOrDelete(e)&&m()}),[m]);return i.useEffect((()=>{d&&o&&(p.current?.focus(),p.current?.scrollIntoView({block:"nearest"}))}),[d,o]),t.jsxs(t.Fragment,{children:[t.jsxs("span",{ref:p,class:b,tabIndex:-1,onClick:y,onKeyUp:v,onMouseDown:ee.preventDefault,role:"option","aria-describedby":"never"===s?h:void 0,"aria-selected":o?"true":"false",children:[t.jsx(fe.Text,{size:"md",variant:"inherit",children:e}),"always"===s&&t.jsx(M.TabbableModeContext.Provider,{value:{isTabbable:!1},children:t.jsx(ue.IconButton,{size:"xs",variant:"ghost",onAction:x,children:t.jsx(Se.SvgClose,{})})})]}),"never"===s&&t.jsx(ve.HiddenAccessible,{id:h,children:u.selectMultiple_removeSelectedTagInstructionText()})]})}const Ue=Array.from(["maxWidth"],(e=>ye.dimensionInterpolations[e])),Pe=xe.mergeInterpolations(Ue);const Me=o.forwardRef((function(e,s=()=>{}){const{"aria-label":o,data:n,hasInsideLabel:l=!1,removeIcon:r="never",onExitNavigation:d,onRemove:c}=e,u=i.useRef(null),[p,h]=i.useState([]),{direction:b}=be.useUser(),m=i.useRef(-1),y=n.at(-1)?.value,x=i.useRef({value:y,index:n.length-1});x.current={value:y,index:n.length-1};const v=i.useCallback((e=>{const t=n.at(e)?.value;null!=t&&h([t])}),[n]),f=i.useCallback((()=>{h((e=>(m.current=-1,e.length?[]:e)))}),[]),S=i.useCallback((e=>{c?.([e]),d?.(),f()}),[f,d,c]),T=i.useCallback((e=>{const t=[...p];p.includes(e)||t.push(e),c?.(t),d?.(),f()}),[p,f,d,c]),w=i.useCallback((e=>{h([e]),m.current=n.findIndex((t=>t.value===e))}),[n,h]),g=i.useCallback((e=>{if(0!==n.length){if("ltr"===b&&"ArrowLeft"===e.code||"rtl"===b&&"ArrowRight"===e.code){if(0===m.current)return;return m.current-=1,void v(m.current)}return"ltr"===b&&"ArrowRight"===e.code||"rtl"===b&&"ArrowLeft"===e.code?m.current===n.length-1?void d?.():(m.current+=1,void v(m.current)):"Home"===e.code?(m.current=0,void v(m.current)):"End"===e.code?(m.current=n.length-1,void v(m.current)):a.isSelectAll(e)?(h(n.map((e=>e.value))),void e.preventDefault()):void 0}}),[n,b,d,v,h]),F=i.useCallback((()=>{h((e=>e.length||void 0===x.current.value?e:(m.current=x.current.index,[x.current.value])))}),[]),C=i.useCallback((()=>{f()}),[f]),{focusProps:D}=he.useFocusWithin({onBlurWithin:C});i.useImperativeHandle(s,(()=>({blur:C,focus:F})),[C,F]),i.useEffect((()=>{u.current?.scrollTo({left:u.current.scrollWidth*("ltr"===b?1:-1)})}),[n,b]);const A=Pe(e),R=me.classNames([ge.textTagListStyles.textTagListBase,l&&ge.textTagListStyles.textTagListInsideLabel]);return t.jsx("div",{class:R,ref:u,tabIndex:-1,onKeyDown:g,role:"listbox","aria-label":o,"aria-multiselectable":"true",style:A,...D,children:n.map(((e,s)=>t.jsx(je,{isFocused:m.current===s,isSelected:p.includes(e.value),onRemoveAction:T,onSelect:w,onRemoveIconClick:S,removeIcon:r,value:e.value,children:e.label},e.value)))})}));function Be({displayValue:e,isAddToListShown:s,isKeyboardNavigable:o,isTextTagListShown:n,isUserFiltering:a,liveRegionText:d,onExitNavigation:c,onRemove:u,removeIcon:p,selectedValuesDescriptionId:h,selectedValuesKeyboardNavDescriptionId:b,textTagListData:m,textTagListRef:y,userInput:x,virtualKeyboard:v,placeholder:f,...S}){const T=P.useTranslationBundle("@oracle/oraclejet-preact"),w=s?T.select_addToListAvailable():void 0,g=o&&e&&e.length>0?T.selectMultiple_highlightSelectedTagsInstructionText():void 0,{isInputFocused:F}=se.useFormFieldContext(),[C,D]=i.useState(g),[A,R]=i.useState(!1);return F&&n&&!C&&g&&!A?R(!0):F||!A||R(!1),C!==g&&D(g),t.jsxs(t.Fragment,{children:[n&&t.jsx(Me,{"aria-label":T.selectMultiple_selectedValues(),data:m,hasInsideLabel:S.hasInsideLabel,maxWidth:"50%",onExitNavigation:c,onRemove:u,ref:y,removeIcon:p}),t.jsx(I.Flex,{flex:1,children:t.jsx(r.TextFieldInput,{"aria-autocomplete":"list",autoComplete:"off",hasPrefix:n,role:"combobox",hasEndContent:!0,spellcheck:!1,type:"auto"===v?"search":v,value:a||n?x:e,placeholder:n?void 0:f,...S})}),n&&t.jsx(ve.HiddenAccessible,{id:h,isHidden:!0,children:e}),n&&g&&!A&&t.jsx(ve.HiddenAccessible,{id:b,isHidden:!0,children:g}),t.jsx(l.LiveRegion,{children:d}),n&&t.jsx(l.LiveRegion,{children:A?g:void 0}),s?t.jsx(l.LiveRegion,{children:w}):void 0]})}function Oe({onApply:e}){const s=P.useTranslationBundle("@oracle/oraclejet-preact");return t.jsx("div",{class:De.mobileDropdownFooterStyles.base,children:t.jsx(Ce.Button,{display:"label",edge:"bottom",label:s.selectMultiple_apply(),size:"sm",variant:"callToAction",onAction:e})})}function Ne(e,t){const s=P.useTranslationBundle("@oracle/oraclejet-preact").plural_separator();return{displayValue:i.useMemo((()=>{if(void 0===t)return"";const o=function(e,t){const s=t?[...t.values()]:[],o=t=>ee.renderItemText(t,e,"SelectMultiple"),n=s.map(o);return new Set(n)}(e,t),n=function(e,t){return Array.from(e.values()).join(t)}(o,s);return n}),[e,s,t]),textTags:i.useMemo((()=>void 0===t?[]:function(e,t=[]){return t.map((t=>({label:ee.renderItemText(t,e,"SelectMultiple")??"",value:t.key})))}(e,t)),[e,t])}}function _e({isDropdownSelectedOnlyView:e=!1,valueItems:t}){const s=Ae.useEffectEvent((e=>e&&t&&0!==t.length?{offset:0,totalSize:t.length,sizePrecision:"exact",data:t.map((e=>({data:e.data,metadata:e.metadata??{key:e.key}})))}:void 0));return{data:i.useMemo((()=>s(e)),[s,e]),onLoadRange:void 0}}const He=(e,t,s)=>t.data.forEach((t=>{s.has(t.metadata.key)&&e.set(t.metadata.key,{data:t.data,key:t.metadata.key,metadata:t.metadata})}));function ze({"aria-describedby":e,"aria-label":s,assistiveText:o,collectionRenderer:l,data:a,dropdownId:r,enabledElementRef:d,helpSourceLink:c,helpSourceText:u,isAddToListShown:p,isDisabled:h,isEmptyResults:b,isFocused:y,isLoading:x,isOpen:v,isReadonly:f,isRequired:S,isSelectedOnlyView:T,itemText:w,label:g,liveRegionText:F,placeholder:C,propIsLoading:D,selectedValuesDescriptionId:A,setDropdownOpen:R,setUserInput:I,stopFiltering:L,textAlign:E,textTagListRef:k,userAssistanceDensity:K,userInput:V,valueItems:j,virtualKeyboard:U,onAddToListAction:M,onCommit:B,onFieldBlur:O,onFieldFocus:N,onFieldInput:_,onFieldKeyDown:H,onFieldKeyUp:z}){const q=P.useTranslationBundle("@oracle/oraclejet-preact"),{collectionRendererContext:Y,footerProps:W,selectMultipleFieldInputProps:$,selectMultipleFieldProps:G,selectedValuesCountProps:Z}=function({data:e,inputRef:t,isDropdownOpen:s,isDropdownSelectedOnlyView:o,itemText:n,textTagListRef:l,userInput:a,valueItems:r,onCommit:d,setDropdownOpen:c,setUserInput:u,stopFiltering:p}){const[h,b]=i.useState({rowKey:void 0}),[m,y]=i.useState(ee.createKeysFromValueItems(r)),[x,v]=i.useState(o),f=i.useRef(new Map),S=i.useMemo((()=>{const e=[];return m?.forEach((t=>{const s=r?.find((e=>e.key===t));s?e.push(s):f.current.has(t)&&e.push(f.current.get(t))})),e}),[m,r]),{textTags:T,displayValue:w}=Ne(n,S),g=i.useRef(null),{data:F}=_e({isDropdownSelectedOnlyView:x,valueItems:S}),C=i.useCallback((e=>{b({rowKey:e.value})}),[b]),D=i.useCallback((t=>{y(t.value),u(""),e&&He(f.current,e,t.value)}),[e,y,u]),A=i.useCallback((({value:e=!1})=>{v((t=>(t!==e&&p(),e)))}),[v,p]),R=i.useCallback((()=>{y(ee.createKeysFromValueItems(r)),f.current.clear(),c(!1),p(),t.current?.focus()}),[t,c,p,r]),I=i.useCallback((()=>{d({previousValue:ee.createKeysFromValueItems(r),value:m}),R()}),[m,r,R,d]),L=i.useCallback((()=>{R()}),[R]),E=i.useCallback((()=>{y(new Set),p()}),[p]),k=i.useCallback((e=>{const t=new Set(m);e.forEach((e=>t.delete(e))),y(t)}),[m]),K=i.useCallback((()=>{setTimeout((()=>g.current?.focus()),0)}),[]);i.useEffect((()=>{s&&setTimeout((()=>g.current?.focus()),0)}),[s]);const[V,j]=i.useState(r);return V!==r&&(s||y((e=>{const t=ee.createKeysFromValueItems(r);return Re.equals(e,t)?e:t})),j(r)),{collectionRendererContext:ee.useCollectionRenderer({currentKey:h.rowKey,onCurrentKeyChange:C,onSelectedKeysChange:D,searchText:a,selectedKeys:m,selectedOnlyData:F}),footerProps:{onApply:I},selectMultipleFieldInputProps:{displayValue:w,hasEmptyLabel:!1,hasInsideLabel:!0,inputRef:g,isTextTagListShown:T.length>0,isUserFiltering:!0,removeIcon:"always",userInput:a,textTagListData:T,textTagListRef:l,onExitNavigation:K,onRemove:k},selectMultipleFieldProps:{hasInsideLabel:!0,isBackButtonShown:!0,isClearButtonShown:!ee.isSearchTextEmptyOrUndefined(a)||0!==T.length,isDropdownArrowShown:!1,isDropdownSelectedOnlyView:x,isSelectedValuesCountShown:(m?.size??0)>0||x,selectedValuesCount:m?.size??0,styleVariant:"embedded",onBackButtonClick:L,onClearButtonClick:E},selectedValuesCountProps:{onSelectedValuesCountToggle:A},isDropdownSelectedOnlyView:x}}({data:a,inputRef:d,isDropdownOpen:v,isDropdownSelectedOnlyView:T,itemText:w,textTagListRef:k,userInput:V,valueItems:j,onCommit:B,setDropdownOpen:R,setUserInput:I,stopFiltering:L}),{formFieldContext:te,inputProps:se,labelProps:oe,textFieldProps:ne,userAssistanceProps:le}=J.useTextField({ariaDescribedBy:e,helpSourceLink:c,helpSourceText:u,isDisabled:!1,isFocused:y,isLoading:x,isReadonly:!1,isRequiredShown:!1,labelEdge:"inside",styleVariant:"default",value:G.selectedValuesCount>0||void 0});te.hasValue=D||te.hasValue;const ie={label:t.jsx(n.Label,{...oe,children:g}),labelEdge:"inside"},ae=!v||h||f||!o&&!c||"efficient"!==K&&"reflow"!==K?void 0:t.jsx(X.DropdownUserAssistance,{assistiveText:o,fieldLabel:g,helpSourceLink:c,helpSourceText:u,userAssistanceDensity:K,...le}),re=b?p?void 0:t.jsx(ee.EmptyResults,{}):l(Y),de=p?t.jsxs(t.Fragment,{children:[t.jsx("div",{onMouseDown:ee.preventDefault,children:t.jsx(Q.Separator,{})}),t.jsx(X.LinkItem,{onAction:M,children:q.select_addToList()})]}):void 0;return t.jsx(X.SelectMobileDropdown,{header:t.jsxs(m.FormFieldContext.Provider,{value:te,children:[t.jsx(Fe.View,{children:t.jsx(Ve,{fieldLabel:g,onBlur:O,onFocus:N,...ie,...ne,...G,...Z,children:t.jsx(Be,{"aria-controls":r,"aria-expanded":v,"aria-label":s,isAddToListShown:p,isRequired:S,liveRegionText:F,placeholder:C,selectedValuesDescriptionId:A,textAlign:E,virtualKeyboard:U,onInput:_,onKeyDown:H,onKeyUp:z,...se,...$})})}),ae,de]}),footer:t.jsx(Oe,{...W}),id:r,isOpen:v,labelId:oe.id,children:t.jsx(ee.DropdownList,{hasTopGap:!de,hasBottomGap:!0,isLoading:null===a,children:re})})}const qe=o.forwardRef((({addToList:e="off","aria-describedby":r,assistiveText:d,collectionRenderer:p,columnSpan:h,data:y,helpSourceLink:x,helpSourceText:v,isDisabled:f,isLoading:S,isReadonly:T,isRequired:w,isRequiredShown:g,itemRenderer:F,itemText:C,label:D,labelEdge:A,labelStartWidth:R,messages:I,onAddToListAction:L,onCommit:E,onFilter:k,onLoadRange:K,placeholder:V,testId:j,textAlign:M,userAssistanceDensity:B,valueItems:O,variant:N="default",virtualKeyboard:z},q)=>{const{isDisabled:Y,isReadonly:W,labelEdge:$,labelStartWidth:Q,textAlign:te,userAssistanceDensity:se}=b.useFormContext(),oe=f??Y,ne=T??W,le=A??$,ie=R??Q,ae=M??te??U.defaultTextAlignForVariant(N),re=B??se,de=o.useRef(null),ce=o.useRef(null),{focusProps:ue,isFocused:pe,methods:he}=G.useFocusableTextField({isDisabled:oe,isReadonly:ne,enabledElementRef:de,readonlyElementRef:ce});o.useImperativeHandle(q,(()=>he),[he]);const{addToListEventHandlers:me,ariaProps:ye,collectionRendererContext:xe,data:ve,dropdownArrowEventHandlers:fe,dropdownEventHandlers:Se,dropdownRef:we,hasSelectedValuesCount:ge,inputEventHandlers:Fe,isAddToListShown:Ce,isDataFetched:De,isDropdownAbove:Ae,isDropdownOpen:Re,isDropdownSelectedOnlyView:Ke,isEmptyResults:je,isFocused:Ue,isUserFiltering:Pe,mainFieldRef:Me,mouseProps:Oe,selectedValuesCountProps:He,selectedValuesDescriptionId:qe,selectedValuesKeyboardNavDescriptionId:Ye,setDropdownOpen:We,setUserInput:$e,stopFiltering:Ge,textFieldRef:Ze,textTagListProps:Je,userInput:Qe}=function({addToList:e,ariaDescribedBy:t,data:s,inputRef:o,isDisabled:n,isFocused:l,isReadonly:r,onAddToListAction:d,onCommit:c,onFilter:u,valueItems:p}){const[h,b]=i.useState(!1),m=p?.length,y=void 0!==m&&m>0||h,x=_e({isDropdownSelectedOnlyView:h,valueItems:p}),v=h?x.data:s,f=i.useCallback((e=>{ee.isSearchTextEmptyOrUndefined(e.searchText)||b(!1),u?.(e)}),[u]),{currentRowKeyRef:S,currentRowOverride:T,dropdownRef:w,getDropdownTabbableElems:g,handleDropdownArrowClick:F,handleDropdownAutoDismiss:C,handleDropdownPosition:D,handleInput:A,handleMainFieldKeyDown:R,handleMainFieldKeyUp:I,handleUpDownArrowKeys:L,isDropdownAbove:E,isDropdownOpen:k,isFocused:K,isUserFiltering:V,mainFieldRef:j,onCurrentKeyChange:U,onMouseDown:P,searchText:M,setCurrentRowOverride:B,setDropdownOpen:O,setUserInput:N,stopFiltering:_,userInput:H}=ee.useSelectCommon({data:v,inputRef:o,isFocused:l,onFilter:f}),[z,q]=i.useState(k),[Y,W]=i.useState(p),[$,G]=i.useState(ee.createKeysFromValueItems(p)),Z=null!=v&&!ee.isBeforeDataFetch(v),J=Z&&0===v?.totalSize,Q="on"===e&&V&&null!=M&&M.length>0,X=i.useCallback((()=>{O(!1),_(),d?.({searchText:V?M:void 0})}),[V,d,M,O,_]),te=i.useRef(null),{direction:se}=be.useUser(),oe=Te.useId(),ne=Te.useId(),le=Le.l([K&&ne,K&&oe,t]),ie=i.useCallback((()=>{w.current?.parentElement?.removeChild(w.current)}),[w]),ae=i.useCallback((e=>V&&k&&!ee.isSearchTextEmptyOrUndefined(H)&&(v?.data.length??0)>0&&void 0!==e),[v,k,V,H]),re=i.useCallback((e=>{if($?.has(e))return;const t=void 0===$?new Set([e]):new Set([...$.values(),e]);c({previousValue:$,value:t}),G(t)}),[c,$,G]),de=i.useRef(null),ce=i.useCallback((e=>r||n?Promise.reject("Component is readonly or disabled"):(c({value:e,previousValue:$}),Promise.resolve())),[n,r,c,$]);Ee.useHiddenTestMethod({elementRef:r?j:de,method:ce,name:"_changeValue"});const ue=i.useCallback((e=>{if(k&&"keydown"===e?.type){const t=e;switch(t.code){case a.KEYS.TAB:{const e=t.shiftKey,s=g();if(s&&s.length>1){const t=s[0],o=s[s.length-1];if(!e&&document.activeElement!==o||e&&document.activeElement!==t)return void O(!0)}t.shiftKey||!y?o.current?.focus():he.current?.focus(),ie();break}}}}),[g,y,o,k,ie,O]),pe=i.useCallback((e=>{if(!a.isControlOrFunctionKey(e))switch(e.code){case a.KEYS.TAB:k&&(e.shiftKey||!y&&!e.shiftKey)&&(ie(),O(!1)),y&&!e.shiftKey&&e.stopPropagation();break;case a.KEYS.LEFT:"ltr"===se&&o.current instanceof HTMLInputElement&&0===o.current?.selectionStart&&0===o.current?.selectionEnd&&te.current?.focus();break;case a.KEYS.RIGHT:"rtl"===se&&o.current instanceof HTMLInputElement&&0===o.current?.selectionStart&&0===o.current?.selectionEnd&&te.current?.focus();break;case a.KEYS.ENTER:case a.KEYS.NUMPAD_ENTER:if(ee.isPhone())return;if(Q&&J)return void X();ae(S.current)&&(O(!1),_(),re(S.current))}}),[S,se,X,y,o,Q,k,J,ie,re,O,ae,_]);if(Y!==p){const e=ee.createKeysFromValueItems(p);G(e)}const he=i.useRef(null);i.useEffect((()=>{he.current=y&&j.current?.querySelector?j.current.querySelector('[role="switch"]'):null}),[y,n,r,j]);const me=i.useCallback((e=>{switch(e.code){case a.KEYS.TAB:k&&!e.shiftKey&&(ie(),O(!1)),e.shiftKey&&e.stopPropagation();break;case a.KEYS.UP:case a.KEYS.DOWN:e.preventDefault();break;case a.KEYS.ESC:k&&(O(!1),e.preventDefault(),e.stopPropagation());break;case a.KEYS.ENTER:e.stopPropagation()}}),[k,ie,O]),ye=i.useCallback((e=>{switch(e.code){case a.KEYS.UP:case a.KEYS.DOWN:L(e)}}),[L]),xe=i.useCallback((e=>{e.preventDefault(),he.current?.focus()}),[he]),ve=i.useCallback((e=>{k||O(!0);const t=e.value??!1;t!==h&&(b(t),t&&_())}),[k,h,O,_]);!k&&h&&b(!1);const fe=i.useCallback((e=>{G(e.value),N(""),c?.({value:e.value,previousValue:$})}),[c,$,G,N]),Se=i.useCallback((()=>{setTimeout((()=>o.current?.focus()),0)}),[o]),we=i.useCallback((e=>{const t=$,s=new Set($);e.forEach((e=>s.delete(e))),c?.({previousValue:t,value:s})}),[c,$]),ge=i.useMemo((()=>Ie.mergeProps({onAutoDismiss:C,onPosition:D},{onAutoDismiss:ue})),[C,D,ue]),Fe=i.useMemo((()=>Ie.mergeProps({onInput:A,onKeyDown:R,onKeyUp:I},{onKeyDown:pe})),[R,A,I,pe]),Ce=i.useMemo((()=>({textTagListRef:te,onExitNavigation:Se,onRemove:we})),[Se,we]),De=ee.useCollectionRenderer({currentKey:T.rowKey,onCurrentKeyChange:U,onSelectedKeysChange:fe,searchText:M,selectedKeys:$,selectedOnlyData:x.data});k&&!z&&B({rowKey:void 0}),z&&!k&&!H&&_();const Ae=i.useRef(v);if(Ae.current!==v){const e=v?.data[0]?.metadata.key;k&&V&&null!=e&&0===v?.offset&&B({rowKey:ee.isSearchTextEmptyOrUndefined(M)?void 0:e}),Ae.current=v}return z!==k&&q(k),Y!==p&&W(p),{addToListEventHandlers:{onAction:X},ariaProps:{ariaDescribedBy:le},collectionRendererContext:De,data:v,dropdownArrowEventHandlers:{onClick:F},dropdownEventHandlers:ge,dropdownRef:w,hasSelectedValuesCount:y,inputEventHandlers:Fe,inputRef:o,isAddToListShown:Q,isDataFetched:Z,isDropdownAbove:E,isDropdownOpen:k,isDropdownSelectedOnlyView:h,isEmptyResults:J,isFocused:K,isUserFiltering:V,mainFieldRef:j,mouseProps:n||r?{}:{onMouseDown:P},searchText:M,selectedValuesCountProps:{onKeyDown:me,onKeyUp:ye,onMouseDown:xe,onToggle:ve},selectedValuesDescriptionId:oe,selectedValuesKeyboardNavDescriptionId:ne,setDropdownOpen:O,setUserInput:N,stopFiltering:_,textFieldRef:de,textTagListProps:Ce,userInput:H}}({addToList:e,ariaDescribedBy:r,data:y,inputRef:de,isDisabled:oe,isFocused:pe,isReadonly:ne,onAddToListAction:L,onCommit:E,onFilter:k,valueItems:O}),Xe=Z.useLoadingIndicatorTimer(S??!1),{baseId:et,formFieldContext:tt,inputProps:st,labelProps:ot,textFieldProps:nt,userAssistanceProps:lt}=J.useTextField({ariaDescribedBy:ye.ariaDescribedBy,helpSourceLink:x,helpSourceText:v,isDisabled:oe,isFocused:Ue,isLoading:Xe,isReadonly:ne,isRequiredShown:g,labelEdge:le,messages:I,styleVariant:N,userAssistanceDensity:re,value:void 0!==O&&O.length>0||void 0});tt.hasValue=S||tt.hasValue;const it=`${et}-dropdown`,{displayValue:at,textTags:rt}=Ne(C,O),dt="none"!==le?t.jsx(n.Label,{...ot,...ee.isPhone()?{forId:void 0}:{},children:D}):void 0,ct={label:"none"!==le?dt:void 0,labelEdge:"none"!==le?le:void 0,labelStartWidth:"none"!==le?ie:void 0,labelText:"inside"!==le||oe?void 0:D},ut="none"===le?D:void 0,pt="efficient"===re||"reflow"===re?oe?"efficient"!==re?void 0:t.jsx(_.InlineUserAssistance,{userAssistanceDensity:re,...lt}):ne?t.jsx(_.InlineUserAssistance,{fieldLabel:D,messages:I,userAssistanceDensity:re,...lt}):t.jsx(_.InlineUserAssistance,{assistiveText:d,fieldLabel:D,helpSourceLink:x,helpSourceText:v,messages:I,isRequiredShown:g,userAssistanceDensity:re,...lt}):void 0,ht="compact"===re?t.jsx(H.CompactUserAssistance,{anchorRef:Me,messages:I,assistiveText:d,...lt}):void 0,bt=P.useTranslationBundle("@oracle/oraclejet-preact"),mt=o.useCallback((({currentRowKeyOverride:e,onPersistCurrentRowKey:s,onSelectedChange:o,searchText:n,selected:l,selectedOnlyData:i})=>t.jsx(ee.DefaultList,{"aria-label":D??"",componentName:"SelectMultiple",currentItemVariant:"highlight",currentKey:e,data:i??y,itemRenderer:F,itemText:C,searchText:i?void 0:Pe?n:void 0,selectedKeys:l,selectionMode:"multiple",onCurrentKeyChange:s,onLoadRange:i?void 0:K,onSelectionChange:o})),[Pe,F,C,D,K,y]);if(ne){const e=t.jsx(c.ReadonlyTextFieldInput,{"aria-describedby":st["aria-describedby"],"aria-label":ut,"aria-labelledby":ot.id,as:"div",elementRef:ce,formVariant:N,hasEmptyLabel:""===D&&"none"===le,hasInsideLabel:void 0!==D&&"inside"===le,onBlur:st.onBlur,onFocus:st.onFocus,textAlign:ae,value:at});return t.jsx(m.FormFieldContext.Provider,{value:tt,children:t.jsx(u.ReadonlyTextField,{role:"presentation",columnSpan:h,compactUserAssistance:ht,inlineUserAssistance:pt,onBlur:ue.onFocusOut,onFocus:ue.onFocusIn,ref:Me,mainContent:e,testId:j,...ct})})}const yt="inside"===le,xt=Re&&De?0===ve?.totalSize?bt.select_noMatchesFound():1===ve?.totalSize?bt.select_oneMatchFound():"exact"===ve?.sizePrecision?bt.select_sizeMatchesFound({TOTAL_SIZE:`${ve?.totalSize}`}):bt.select_sizeOrMoreMatchesFound({TOTAL_SIZE:`${ve?.totalSize}`}):"",vt=Re&&void 0!==ve&&(null===ve||ve.totalSize>0||ee.isBeforeDataFetch(ve)||je),ft=""===D&&"none"===le,St=ee.isPhone()&&!oe?t.jsx(X.SelectMobileFieldInput,{"aria-controls":it,"aria-describedby":st["aria-describedby"],"aria-expanded":Re,"aria-invalid":st["aria-invalid"],"aria-label":ut,"aria-labelledby":ot.id,displayValue:at,hasEmptyLabel:ft,hasInsideLabel:yt,isRequired:w,onBlur:st.onBlur,onFocus:st.onFocus,placeholder:V,ref:de,textAlign:ae,variant:st.variant}):t.jsx(Be,{"aria-controls":it,"aria-expanded":Re,"aria-label":ut,displayValue:at,hasEmptyLabel:ft,hasInsideLabel:yt,inputRef:de,isAddToListShown:Ce,isKeyboardNavigable:!oe&&!ee.isMobile(),isRequired:w,isTextTagListShown:Ue&&0!==rt.length,isUserFiltering:Pe,liveRegionText:xt,placeholder:V,removeIcon:ee.isTablet()?"always":"never",selectedValuesDescriptionId:qe,selectedValuesKeyboardNavDescriptionId:Ye,textAlign:ae,textTagListData:rt,userInput:Qe,virtualKeyboard:ee.isTablet()?z:void 0,...Fe,...st,...Je}),Tt=vt?ee.isPhone()?t.jsx(ze,{"aria-describedby":ye.ariaDescribedBy,"aria-label":ut,assistiveText:d,collectionRenderer:p??mt,data:y,dropdownId:it,enabledElementRef:de,helpSourceLink:x,helpSourceText:v,isAddToListShown:Ce,isDisabled:oe,isEmptyResults:je,isFocused:Ue,isLoading:Xe,isOpen:vt,isReadonly:ne,isRequired:w,isSelectedOnlyView:Ke,itemText:C,label:D,liveRegionText:xt,placeholder:V,propIsLoading:S,selectedValuesDescriptionId:qe,setDropdownOpen:We,setUserInput:$e,stopFiltering:Ge,textAlign:ae,textTagListRef:Je.textTagListRef,userAssistanceDensity:re,userInput:Qe,valueItems:O,virtualKeyboard:z,onAddToListAction:me.onAction,onCommit:E,onFieldBlur:ue.onFocusOut,onFieldFocus:ue.onFocusIn,onFieldInput:Fe.onInput,onFieldKeyDown:Fe.onKeyDown,onFieldKeyUp:Fe.onKeyUp}):t.jsx(ke,{...Se,assistiveText:d,collectionRenderer:p??mt,collectionRendererContext:xe,dropdownId:it,dropdownRef:we,helpSourceLink:x,helpSourceText:v,isAddToListShown:Ce,isDisabled:oe,isDropdownAbove:Ae,isEmptyResults:je,isOpen:vt,isReadonly:ne,label:D,mainFieldRef:Me,onAddToListAction:me.onAction,userAssistanceDensity:re}):null;return t.jsxs(s.Fragment,{children:[t.jsxs(m.FormFieldContext.Provider,{value:tt,children:[t.jsx(Ve,{columnSpan:h,compactUserAssistance:ht,fieldLabel:D,hasInsideLabel:yt,inlineUserAssistance:pt,isDropdownArrowShown:!0,isDropdownSelectedOnlyView:Ke,isSelectedValuesCountShown:ge,mainFieldRef:Me,onBlur:ue.onFocusOut,onFocus:ue.onFocusIn,onDropdownArrowClick:fe.onClick,onSelectedValuesCountKeyDown:He.onKeyDown,onSelectedValuesCountKeyUp:He.onKeyUp,onSelectedValuesCountMouseDown:He.onMouseDown,onSelectedValuesCountToggle:He.onToggle,rootRef:Ze,selectedValuesCount:O?.length,testId:j,...ct,...Oe,...nt,children:St}),!ee.isPhone()&&t.jsx(l.LiveRegion,{children:vt?bt.select_closeDropdown():void 0})]}),Tt]})}));e.SelectMultiple=qe}));
2
+ //# sourceMappingURL=SelectMultiple-cc9bffc6.js.map