@oracle/oraclejet-preact 18.0.7 → 18.0.9

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 (679) hide show
  1. package/amd/ActionCard-3f86f73f.js +1 -1
  2. package/amd/{BarChart-5e9f46b4.js → BarChart-077c5f02.js} +2 -2
  3. package/amd/{BarChart-5e9f46b4.js.map → BarChart-077c5f02.js.map} +1 -1
  4. package/amd/BarGroup-76ef0839.js +1 -1
  5. package/amd/BaseButton-19a622bc.js +1 -1
  6. package/amd/BaseCardView-ab799b69.js +1 -1
  7. package/amd/{BaseCardViewSelectionTest-d026d26c.js → BaseCardViewSelectionTest-0ec52156.js} +2 -2
  8. package/amd/{BaseCardViewSelectionTest-d026d26c.js.map → BaseCardViewSelectionTest-0ec52156.js.map} +1 -1
  9. package/amd/BaseNavigationListItem-fe9cb691.js +1 -1
  10. package/amd/BaseRichSelection-9d8f3ee4.js +1 -1
  11. package/amd/ButtonSet-d95872cc.js +1 -1
  12. package/amd/ButtonSetIconButton-7a2c113c.js +1 -1
  13. package/amd/{Card-8e081def.js → Card-f6f2dc90.js} +2 -2
  14. package/amd/{Card-8e081def.js.map → Card-f6f2dc90.js.map} +1 -1
  15. package/amd/{Center-9ec5524e.js → Center-b449a95c.js} +2 -2
  16. package/amd/{Center-9ec5524e.js.map → Center-b449a95c.js.map} +1 -1
  17. package/amd/{Chart-e2807ff7.js → Chart-3621e125.js} +2 -2
  18. package/amd/{Chart-e2807ff7.js.map → Chart-3621e125.js.map} +1 -1
  19. package/amd/CheckboxControl-83484a5a.js +1 -1
  20. package/amd/CheckboxRadioField-9733dd24.js +1 -1
  21. package/amd/CheckboxSet-4582f29e.js +2 -0
  22. package/{cjs/CheckboxSet-1bdbc419.js.map → amd/CheckboxSet-4582f29e.js.map} +1 -1
  23. package/amd/Chip-cd210507.js +1 -1
  24. package/amd/ClearIcon-de20285c.js +1 -1
  25. package/amd/CollapseIcon-e030531c.js +1 -1
  26. package/amd/Collapsible-924afd71.js +1 -1
  27. package/amd/{ComboChart-71c0f51f.js → ComboChart-fd7da90e.js} +2 -2
  28. package/amd/{ComboChart-71c0f51f.js.map → ComboChart-fd7da90e.js.map} +1 -1
  29. package/amd/CompactHelpSource-74498e92.js +1 -1
  30. package/amd/CompactLabelAssistance-44ba87b0.js +2 -0
  31. package/amd/{CompactLabelAssistance-c6928282.js.map → CompactLabelAssistance-44ba87b0.js.map} +1 -1
  32. package/amd/CompactUserAssistance-3370a318.js +1 -1
  33. package/amd/ComponentMessageContainer-8028ba70.js +1 -1
  34. package/amd/ConveyorBeltItem-08720127.js +1 -1
  35. package/amd/{DatePicker-bf0e0c69.js → DatePicker-2c94a3bb.js} +2 -2
  36. package/amd/{DatePicker-bf0e0c69.js.map → DatePicker-2c94a3bb.js.map} +1 -1
  37. package/amd/DatePickerHeader-f21e020d.js +1 -1
  38. package/amd/{Diagram-04db0931.js → Diagram-c3afb211.js} +2 -2
  39. package/amd/{Diagram-04db0931.js.map → Diagram-c3afb211.js.map} +1 -1
  40. package/amd/{Dialog-5f36f8aa.js → Dialog-53f92591.js} +2 -2
  41. package/amd/{Dialog-5f36f8aa.js.map → Dialog-53f92591.js.map} +1 -1
  42. package/amd/DirectionalCollapseArrowIcon-20cef34d.js +1 -1
  43. package/amd/DirectionalExpandArrowIcon-e9bdb06e.js +1 -1
  44. package/amd/{DragHandle-406d7f9a.js → DragHandle-699fefd6.js} +2 -2
  45. package/amd/{DragHandle-406d7f9a.js.map → DragHandle-699fefd6.js.map} +1 -1
  46. package/amd/{Dropdown-abcacf49.js → Dropdown-4b421eff.js} +2 -2
  47. package/amd/{Dropdown-abcacf49.js.map → Dropdown-4b421eff.js.map} +1 -1
  48. package/amd/{EnvironmentProvider-c0e1e39b.js → EnvironmentProvider-8f6fc388.js} +2 -2
  49. package/amd/{EnvironmentProvider-c0e1e39b.js.map → EnvironmentProvider-8f6fc388.js.map} +1 -1
  50. package/amd/ExpandableList-dd3a05b4.js +1 -1
  51. package/amd/FilePicker-4636b49b.js +1 -1
  52. package/amd/Flex-56ecdf4c.js +2 -0
  53. package/amd/{Flex-3421f0df.js.map → Flex-56ecdf4c.js.map} +1 -1
  54. package/amd/{Floating-5d98c1ca.js → Floating-1ec5ec2a.js} +2 -2
  55. package/amd/{Floating-5d98c1ca.js.map → Floating-1ec5ec2a.js.map} +1 -1
  56. package/amd/FormLayout-a4a29a2d.js +1 -1
  57. package/amd/Gantt-d94af58e.js +1 -1
  58. package/amd/{Grid-8911aa0f.js → Grid-160f4885.js} +2 -2
  59. package/amd/{Grid-8911aa0f.js.map → Grid-160f4885.js.map} +1 -1
  60. package/amd/{Gridlines-bef7bbfc.js → Gridlines-7851bb20.js} +2 -2
  61. package/amd/{Gridlines-bef7bbfc.js.map → Gridlines-7851bb20.js.map} +1 -1
  62. package/amd/GroupLoadingIndicator-6b2ab709.js +1 -1
  63. package/amd/HighlightText-bd4c0101.js +2 -0
  64. package/amd/{HighlightText-644bc74e.js.map → HighlightText-bd4c0101.js.map} +1 -1
  65. package/amd/Icon-2d38c876.js +1 -1
  66. package/amd/IconButton-ae9a01ce.js +1 -1
  67. package/amd/IconMenuButton-b0468fa8.js +1 -1
  68. package/amd/IconProgressButton-ff5372eb.js +1 -1
  69. package/amd/IconSwitchButton-22f907e7.js +1 -1
  70. package/amd/IconToggleButton-20d411e6.js +1 -1
  71. package/amd/{IconUserAssistance-37107cea.js → IconUserAssistance-d2bd2691.js} +2 -2
  72. package/amd/{IconUserAssistance-37107cea.js.map → IconUserAssistance-d2bd2691.js.map} +1 -1
  73. package/amd/Indexer-1531dbc3.js +1 -1
  74. package/amd/InlineHelpSource-85961e81.js +1 -1
  75. package/amd/InlineUserAssistance-4656c2a6.js +1 -1
  76. package/amd/InputDateMask-6d54c3e6.js +1 -1
  77. package/amd/InputDatePicker-fc39f0a6.js +1 -1
  78. package/amd/InputPassword-f6ea728a.js +1 -1
  79. package/amd/InputText-57f60b6f.js +1 -1
  80. package/amd/Label-3912beb2.js +1 -1
  81. package/amd/LabelValueLayout-194e64d9.js +1 -1
  82. package/amd/{Layer-6f29b67f.js → Layer-447c68e6.js} +2 -2
  83. package/amd/{Layer-6f29b67f.js.map → Layer-447c68e6.js.map} +1 -1
  84. package/amd/{LayerHost-639b3284.js → LayerHost-e95c5f30.js} +2 -2
  85. package/amd/{LayerHost-639b3284.js.map → LayerHost-e95c5f30.js.map} +1 -1
  86. package/amd/{LayerManager-2972de92.js → LayerManager-76fcfb58.js} +2 -2
  87. package/amd/{LayerManager-2972de92.js.map → LayerManager-76fcfb58.js.map} +1 -1
  88. package/amd/Legend-e4949499.js +1 -1
  89. package/amd/{LineAreaChart-2ba275ab.js → LineAreaChart-4140d004.js} +2 -2
  90. package/amd/{LineAreaChart-2ba275ab.js.map → LineAreaChart-4140d004.js.map} +1 -1
  91. package/amd/{LineSeries-797d8d16.js → LineSeries-a549e727.js} +2 -2
  92. package/amd/{LineSeries-797d8d16.js.map → LineSeries-a549e727.js.map} +1 -1
  93. package/amd/Link-c4a57187.js +1 -1
  94. package/amd/List-0b764e84.js +1 -1
  95. package/amd/{ListItemLayout-e0b2c71e.js → ListItemLayout-4208363c.js} +2 -2
  96. package/amd/{ListItemLayout-e0b2c71e.js.map → ListItemLayout-4208363c.js.map} +1 -1
  97. package/amd/ListView-5bb45f81.js +1 -1
  98. package/amd/LiveRegion-8142ed0d.js +2 -0
  99. package/amd/{LiveRegion-9a362373.js.map → LiveRegion-8142ed0d.js.map} +1 -1
  100. package/amd/MaxLengthLiveRegion-8954fc30.js +2 -0
  101. package/amd/{MaxLengthLiveRegion-bb956138.js.map → MaxLengthLiveRegion-8954fc30.js.map} +1 -1
  102. package/amd/Menu-5d447084.js +1 -1
  103. package/amd/MenuButton-410aa4e1.js +1 -1
  104. package/amd/MenuItem-87cd59b8.js +1 -1
  105. package/amd/Message-621fb578.js +1 -1
  106. package/amd/{MessageLayer-8bac8c50.js → MessageLayer-ba56f7e2.js} +2 -2
  107. package/amd/{MessageLayer-8bac8c50.js.map → MessageLayer-ba56f7e2.js.map} +1 -1
  108. package/amd/MessageToast-06773c79.js +1 -1
  109. package/amd/MessagesManager-d5686336.js +1 -1
  110. package/amd/MeterBar-e1b4a93b.js +1 -1
  111. package/amd/MeterCircle-9887cf28.js +1 -1
  112. package/amd/{Modal-7bece8d5.js → Modal-d6b2e905.js} +2 -2
  113. package/amd/{Modal-7bece8d5.js.map → Modal-d6b2e905.js.map} +1 -1
  114. package/amd/{MonthView-3d0968a1.js → MonthView-4a0401cd.js} +2 -2
  115. package/amd/{MonthView-3d0968a1.js.map → MonthView-4a0401cd.js.map} +1 -1
  116. package/amd/NavigationListItem-021b2d58.js +2 -0
  117. package/amd/{NavigationListItem-044a79fd.js.map → NavigationListItem-021b2d58.js.map} +1 -1
  118. package/amd/NumberInputText-cac12eb3.js +1 -1
  119. package/amd/{OverflowTabBar-339f34cf.js → OverflowTabBar-ea3a4742.js} +2 -2
  120. package/amd/{OverflowTabBar-339f34cf.js.map → OverflowTabBar-ea3a4742.js.map} +1 -1
  121. package/amd/{OverflowTabBarItem-c59db4a2.js → OverflowTabBarItem-763773c9.js} +2 -2
  122. package/amd/{OverflowTabBarItem-c59db4a2.js.map → OverflowTabBarItem-763773c9.js.map} +1 -1
  123. package/amd/PRIVATE_BaseCardView.js +1 -1
  124. package/amd/PRIVATE_Chart.js +1 -1
  125. package/amd/PRIVATE_CheckboxControl.js +1 -1
  126. package/amd/PRIVATE_CheckboxRadioField.js +1 -1
  127. package/amd/PRIVATE_ClearIcon.js +1 -1
  128. package/amd/PRIVATE_DatePickerHeader.js +1 -1
  129. package/amd/PRIVATE_DatePickerLayout.js +1 -1
  130. package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
  131. package/amd/PRIVATE_FormControls.js +1 -1
  132. package/amd/PRIVATE_IconSwitchButton.js +1 -1
  133. package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
  134. package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
  135. package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
  136. package/amd/PRIVATE_Icons/DragV.js +1 -1
  137. package/amd/PRIVATE_Icons/WarningS.js +1 -1
  138. package/amd/PRIVATE_List.js +1 -1
  139. package/amd/PRIVATE_Message.js +1 -1
  140. package/amd/PRIVATE_MessageLayer.js +1 -1
  141. package/amd/PRIVATE_MonthView.js +1 -1
  142. package/amd/PRIVATE_MonthYearGridView.js +1 -1
  143. package/amd/PRIVATE_PlotArea.js +1 -1
  144. package/amd/PRIVATE_RevealToggleIcon.js +1 -1
  145. package/amd/PRIVATE_RichSelectionCommon.js +1 -1
  146. package/amd/PRIVATE_SelectCommon.js +1 -1
  147. package/amd/PRIVATE_StyledCard.js +1 -1
  148. package/amd/PRIVATE_StyledCheckbox.js +1 -1
  149. package/amd/PRIVATE_Table.js +1 -1
  150. package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
  151. package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
  152. package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
  153. package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
  154. package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
  155. package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
  156. package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
  157. package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
  158. package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
  159. package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
  160. package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
  161. package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
  162. package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
  163. package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
  164. package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
  165. package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
  166. package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
  167. package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
  168. package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
  169. package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
  170. package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
  171. package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
  172. package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
  173. package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
  174. package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
  175. package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
  176. package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
  177. package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
  178. package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
  179. package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
  180. package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
  181. package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
  182. package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
  183. package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
  184. package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
  185. package/amd/PRIVATE_TimeComponent.js +1 -1
  186. package/amd/PRIVATE_VisOverview.js +1 -1
  187. package/amd/PRIVATE_VisTabularDatatip.js +1 -1
  188. package/amd/PictoChart-48a25c75.js +1 -1
  189. package/amd/PieChart-2197746d.js +1 -1
  190. package/amd/{Popup-66e79afa.js → Popup-d51bf3f4.js} +2 -2
  191. package/amd/{Popup-66e79afa.js.map → Popup-d51bf3f4.js.map} +1 -1
  192. package/amd/{ProgressBar-e72c5a67.js → ProgressBar-3f4cd8d6.js} +2 -2
  193. package/amd/{ProgressBar-e72c5a67.js.map → ProgressBar-3f4cd8d6.js.map} +1 -1
  194. package/amd/ProgressButton-f1d27773.js +1 -1
  195. package/amd/ProgressButtonLabelLayout-6df4290e.js +1 -1
  196. package/amd/{ProgressCircle-2b4ba9cd.js → ProgressCircle-74b6fc89.js} +2 -2
  197. package/amd/{ProgressCircle-2b4ba9cd.js.map → ProgressCircle-74b6fc89.js.map} +1 -1
  198. package/amd/RadioItem-b17c346c.js +1 -1
  199. package/amd/RatingGauge-539ede8e.js +1 -1
  200. package/amd/ReadonlyTextFieldInput-608bddc1.js +1 -1
  201. package/amd/RemovableNavigationListItem-e01b6693.js +1 -1
  202. package/amd/RemovableTabBarItem-29b54206.js +1 -1
  203. package/amd/ReorderableTabBar-462d357c.js +1 -1
  204. package/amd/RevealToggleIcon-f975229d.js +1 -1
  205. package/amd/{ScatterChart-7f0b817b.js → ScatterChart-88304601.js} +2 -2
  206. package/amd/{ScatterChart-7f0b817b.js.map → ScatterChart-88304601.js.map} +1 -1
  207. package/amd/SectionalLegend-8f203cac.js +1 -1
  208. package/amd/SectionedContent-2a261004.js +2 -0
  209. package/amd/{SectionedContent-19bef3cc.js.map → SectionedContent-2a261004.js.map} +1 -1
  210. package/amd/SelectMultiple-7e9bd455.js +1 -1
  211. package/amd/SelectSingle-466bcd67.js +1 -1
  212. package/amd/SelectionCard-895b014d.js +2 -0
  213. package/amd/{SelectionCard-13aac54a.js.map → SelectionCard-895b014d.js.map} +1 -1
  214. package/amd/Selector-2b0c34a7.js +1 -1
  215. package/amd/{SelectorAll-1c889a9c.js → SelectorAll-e884a225.js} +2 -2
  216. package/amd/{SelectorAll-1c889a9c.js.map → SelectorAll-e884a225.js.map} +1 -1
  217. package/amd/{Sheet-0b58b0a5.js → Sheet-46782f99.js} +2 -2
  218. package/amd/{Sheet-0b58b0a5.js.map → Sheet-46782f99.js.map} +1 -1
  219. package/amd/SplitMenuButton-031ae5e3.js +1 -1
  220. package/amd/{StyledCard-0da6f6b5.js → StyledCard-c4d0324d.js} +2 -2
  221. package/amd/{StyledCard-0da6f6b5.js.map → StyledCard-c4d0324d.js.map} +1 -1
  222. package/amd/StyledTextField-b4278437.js +1 -1
  223. package/amd/TabBar-d8890a47.js +1 -1
  224. package/amd/TabBarItem-547825e2.js +1 -1
  225. package/amd/TabBarLayout-685ac295.js +1 -1
  226. package/amd/TabBarMixed-a75796a6.js +1 -1
  227. package/amd/TabBarMixedSeparator-8c278254.js +2 -0
  228. package/amd/{TabBarMixedSeparator-ed764207.js.map → TabBarMixedSeparator-8c278254.js.map} +1 -1
  229. package/amd/Table-87f7e3c4.js +1 -1
  230. package/amd/TagCloud-5dc4b5ff.js +1 -1
  231. package/amd/TextArea-a7a3d82f.js +1 -1
  232. package/amd/TextAreaAutosize-9cd2c1e8.js +1 -1
  233. package/amd/TextField-1021f00b.js +1 -1
  234. package/amd/TextFieldInput-ba4e508c.js +1 -1
  235. package/amd/Theme-redwood/theme.css +338 -338
  236. package/amd/Theme-stable/theme.css +391 -391
  237. package/amd/TimeComponentCanvas2D-6b4e6ead.js +1 -1
  238. package/amd/Toolbar-05d42276.js +1 -1
  239. package/amd/TruncatingBadge-04f9ef4c.js +2 -0
  240. package/amd/{TruncatingBadge-7f66faaf.js.map → TruncatingBadge-04f9ef4c.js.map} +1 -1
  241. package/amd/{TruncatingText-69770aa9.js → TruncatingText-d18d41c5.js} +2 -2
  242. package/amd/{TruncatingText-69770aa9.js.map → TruncatingText-d18d41c5.js.map} +1 -1
  243. package/amd/UNSAFE_ActionCard.js +1 -1
  244. package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
  245. package/amd/UNSAFE_BarChart.js +1 -1
  246. package/amd/UNSAFE_BaseButton.js +1 -1
  247. package/amd/UNSAFE_Button.js +1 -1
  248. package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  249. package/amd/UNSAFE_ButtonSet.js +1 -1
  250. package/amd/UNSAFE_ButtonSetButton.js +1 -1
  251. package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
  252. package/amd/UNSAFE_ButtonSetItem.js +1 -1
  253. package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
  254. package/amd/UNSAFE_ButtonSetSingle.js +1 -1
  255. package/amd/UNSAFE_Card.js +1 -1
  256. package/amd/UNSAFE_CardFlexView.js +1 -1
  257. package/amd/UNSAFE_CardGridView.js +1 -1
  258. package/amd/UNSAFE_Center.js +1 -1
  259. package/amd/UNSAFE_ChartWithLegend.js +1 -1
  260. package/amd/UNSAFE_Checkbox.js +1 -1
  261. package/amd/UNSAFE_CheckboxItem.js +1 -1
  262. package/amd/UNSAFE_CheckboxItem.js.map +1 -1
  263. package/amd/UNSAFE_CheckboxSet.js +1 -1
  264. package/amd/UNSAFE_CheckboxSet.js.map +1 -1
  265. package/amd/UNSAFE_Chip.js +1 -1
  266. package/amd/UNSAFE_Collapsible.js +1 -1
  267. package/amd/UNSAFE_ComboChart.js +1 -1
  268. package/amd/UNSAFE_ComponentMessage.js +1 -1
  269. package/amd/UNSAFE_ConveyorBelt.js +1 -1
  270. package/amd/UNSAFE_DatePicker.js +1 -1
  271. package/amd/UNSAFE_Diagram.js +1 -1
  272. package/amd/UNSAFE_Dialog.js +1 -1
  273. package/amd/UNSAFE_DragHandle.js +1 -1
  274. package/amd/UNSAFE_DrawerLayout.js +1 -1
  275. package/amd/UNSAFE_DrawerPopup.js +1 -1
  276. package/amd/UNSAFE_Dropdown.js +1 -1
  277. package/amd/UNSAFE_Environment.js +1 -1
  278. package/amd/UNSAFE_ExpandableList.js +1 -1
  279. package/amd/UNSAFE_FilePicker.js +1 -1
  280. package/amd/UNSAFE_Flex.js +1 -1
  281. package/amd/UNSAFE_Floating.js +1 -1
  282. package/amd/UNSAFE_FormLayout.js +1 -1
  283. package/amd/UNSAFE_Gantt.js +1 -1
  284. package/amd/UNSAFE_Grid.js +1 -1
  285. package/amd/UNSAFE_HighlightText.js +1 -1
  286. package/amd/UNSAFE_Icon.js +1 -1
  287. package/amd/UNSAFE_IconButton.js +1 -1
  288. package/amd/UNSAFE_IconMenuButton.js +1 -1
  289. package/amd/UNSAFE_IconProgressButton.js +1 -1
  290. package/amd/UNSAFE_IconToggleButton.js +1 -1
  291. package/amd/UNSAFE_Indexer.js +1 -1
  292. package/amd/UNSAFE_InputDateMask.js +1 -1
  293. package/amd/UNSAFE_InputDatePicker.js +1 -1
  294. package/amd/UNSAFE_InputPassword.js +1 -1
  295. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  296. package/amd/UNSAFE_InputText.js +1 -1
  297. package/amd/UNSAFE_InputTimeMask.js +1 -1
  298. package/amd/UNSAFE_Label.js +1 -1
  299. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  300. package/amd/UNSAFE_LabelledLink.js +1 -1
  301. package/amd/UNSAFE_Layer.js +1 -1
  302. package/amd/UNSAFE_Legend.js +1 -1
  303. package/amd/UNSAFE_LineAreaChart.js +1 -1
  304. package/amd/UNSAFE_Link.js +1 -1
  305. package/amd/UNSAFE_ListItemLayout.js +1 -1
  306. package/amd/UNSAFE_ListView.js +1 -1
  307. package/amd/UNSAFE_LiveRegion.js +1 -1
  308. package/amd/UNSAFE_Menu.js +1 -1
  309. package/amd/UNSAFE_MenuButton.js +1 -1
  310. package/amd/UNSAFE_MessageBanner.js +1 -1
  311. package/amd/UNSAFE_MessageToast.js +1 -1
  312. package/amd/UNSAFE_MeterBar.js +1 -1
  313. package/amd/UNSAFE_MeterCircle.js +1 -1
  314. package/amd/UNSAFE_Modal.js +1 -1
  315. package/amd/UNSAFE_NavigationList.js +1 -1
  316. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  317. package/amd/UNSAFE_NumberInputText.js +1 -1
  318. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  319. package/amd/UNSAFE_PictoChart.js +1 -1
  320. package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
  321. package/amd/UNSAFE_PieChart.js +1 -1
  322. package/amd/UNSAFE_Popup.js +1 -1
  323. package/amd/UNSAFE_ProgressBar.js +1 -1
  324. package/amd/UNSAFE_ProgressButton.js +1 -1
  325. package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
  326. package/amd/UNSAFE_ProgressCircle.js +1 -1
  327. package/amd/UNSAFE_RadioItem.js +1 -1
  328. package/amd/UNSAFE_RadioSet.js +1 -1
  329. package/amd/UNSAFE_RatingGauge.js +1 -1
  330. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  331. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  332. package/amd/UNSAFE_RichCheckboxSet.js.map +1 -1
  333. package/amd/UNSAFE_RichRadioSet.js +1 -1
  334. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  335. package/amd/UNSAFE_RichSelectionItem.js.map +1 -1
  336. package/amd/UNSAFE_ScatterChart.js +1 -1
  337. package/amd/UNSAFE_SectionalLegend.js +1 -1
  338. package/amd/UNSAFE_SelectMultiple.js +1 -1
  339. package/amd/UNSAFE_SelectSingle.js +1 -1
  340. package/amd/UNSAFE_SelectionCard.js +1 -1
  341. package/amd/UNSAFE_Selector.js +1 -1
  342. package/amd/UNSAFE_SelectorAll.js +1 -1
  343. package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
  344. package/amd/UNSAFE_Sheet.js +1 -1
  345. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  346. package/amd/UNSAFE_TabBar.js +1 -1
  347. package/amd/UNSAFE_TabBarCommon.js +1 -1
  348. package/amd/UNSAFE_TabBarMixed.js +1 -1
  349. package/amd/UNSAFE_TableView.js +1 -1
  350. package/amd/UNSAFE_TagCloud.js +1 -1
  351. package/amd/UNSAFE_TextArea.js +1 -1
  352. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  353. package/amd/UNSAFE_TextField.js +1 -1
  354. package/amd/UNSAFE_ToggleButton.js +1 -1
  355. package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  356. package/amd/UNSAFE_Toolbar.js +1 -1
  357. package/amd/UNSAFE_Train.js +1 -1
  358. package/amd/UNSAFE_TruncatingBadge.js +1 -1
  359. package/amd/UNSAFE_TruncatingText.js +1 -1
  360. package/amd/UNSAFE_UserAssistance.js +1 -1
  361. package/amd/UNSAFE_View.js +1 -1
  362. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  363. package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
  364. package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
  365. package/amd/UNSAFE_VisStatusMessage.js +1 -1
  366. package/amd/UNSAFE_WindowOverlay.js +1 -1
  367. package/amd/{View-bd5c7fa7.js → View-ce970ed7.js} +2 -2
  368. package/amd/{View-bd5c7fa7.js.map → View-ce970ed7.js.map} +1 -1
  369. package/amd/VisNoData-6fa39277.js +2 -0
  370. package/amd/{VisNoData-10983ace.js.map → VisNoData-6fa39277.js.map} +1 -1
  371. package/amd/{VisProgressiveLoader-06a60c8f.js → VisProgressiveLoader-68d8d8b3.js} +2 -2
  372. package/amd/{VisProgressiveLoader-06a60c8f.js.map → VisProgressiveLoader-68d8d8b3.js.map} +1 -1
  373. package/amd/{VisTabularDatatip-55bbd19f.js → VisTabularDatatip-1051eaca.js} +2 -2
  374. package/amd/{VisTabularDatatip-55bbd19f.js.map → VisTabularDatatip-1051eaca.js.map} +1 -1
  375. package/amd/{WindowOverlay-43c10424.js → WindowOverlay-a2d80d55.js} +2 -2
  376. package/amd/{WindowOverlay-43c10424.js.map → WindowOverlay-a2d80d55.js.map} +1 -1
  377. package/amd/{YearsGridView-d7b2184e.js → YearsGridView-d799dc5c.js} +2 -2
  378. package/amd/{YearsGridView-d7b2184e.js.map → YearsGridView-d799dc5c.js.map} +1 -1
  379. package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
  380. package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
  381. package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
  382. package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
  383. package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
  384. package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
  385. package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
  386. package/amd/hooks/PRIVATE_useCssVars.js +1 -1
  387. package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
  388. package/amd/hooks/PRIVATE_useDatatip.js +1 -1
  389. package/amd/hooks/PRIVATE_useFloating.js +1 -1
  390. package/amd/hooks/PRIVATE_useReorderable.js +1 -1
  391. package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
  392. package/amd/hooks/PRIVATE_useSelection.js +1 -1
  393. package/amd/hooks/PRIVATE_useTabBar.js +1 -1
  394. package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
  395. package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
  396. package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
  397. package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
  398. package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
  399. package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
  400. package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
  401. package/amd/hooks/UNSAFE_useDensity.js +1 -1
  402. package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
  403. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  404. package/amd/hooks/UNSAFE_useScale.js +1 -1
  405. package/amd/hooks/UNSAFE_useTestId.js +1 -1
  406. package/amd/hooks/UNSAFE_useTheme.js +1 -1
  407. package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
  408. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  409. package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
  410. package/amd/hooks/UNSAFE_useUser.js +1 -1
  411. package/amd/{index-95227deb.js → index-b7b9300d.js} +2 -2
  412. package/amd/index-b7b9300d.js.map +1 -0
  413. package/amd/listViewSelectionTests-c9777ea8.js +1 -1
  414. package/amd/render-366c27ff.js +2 -0
  415. package/amd/{render-85c034d7.js.map → render-366c27ff.js.map} +1 -1
  416. package/amd/{tabbableUtils-591fdc8d.js → tabbableUtils-88d4fa35.js} +2 -2
  417. package/amd/{tabbableUtils-591fdc8d.js.map → tabbableUtils-88d4fa35.js.map} +1 -1
  418. package/amd/{testData-02652eda.js → testData-783b8823.js} +2 -2
  419. package/amd/{testData-02652eda.js.map → testData-783b8823.js.map} +1 -1
  420. package/amd/{tooltipUtils-e5bdb734.js → tooltipUtils-69ce0a2d.js} +2 -2
  421. package/amd/{tooltipUtils-e5bdb734.js.map → tooltipUtils-69ce0a2d.js.map} +1 -1
  422. package/amd/useCellNavigation-1feec094.js +1 -1
  423. package/amd/useChartContextMenu-8606bfa2.js +1 -1
  424. package/amd/useChartDatatip-ee3783af.js +2 -0
  425. package/amd/{useChartDatatip-947eeffe.js.map → useChartDatatip-ee3783af.js.map} +1 -1
  426. package/amd/{useColorScheme-443e7cc7.js → useColorScheme-10dc88de.js} +2 -2
  427. package/amd/{useColorScheme-443e7cc7.js.map → useColorScheme-10dc88de.js.map} +1 -1
  428. package/amd/useContextMenu-e08aad46.js +1 -1
  429. package/amd/{useCssVars-dc52806c.js → useCssVars-c043f8da.js} +2 -2
  430. package/amd/{useCssVars-dc52806c.js.map → useCssVars-c043f8da.js.map} +1 -1
  431. package/amd/{useCurrentBgColor-50142bd8.js → useCurrentBgColor-2426ee24.js} +2 -2
  432. package/amd/{useCurrentBgColor-50142bd8.js.map → useCurrentBgColor-2426ee24.js.map} +1 -1
  433. package/amd/useCurrentKey-31c18053.js +2 -0
  434. package/amd/{useCurrentKey-a993db56.js.map → useCurrentKey-31c18053.js.map} +1 -1
  435. package/amd/{useDatatip-9942601b.js → useDatatip-ac26447a.js} +2 -2
  436. package/amd/{useDatatip-9942601b.js.map → useDatatip-ac26447a.js.map} +1 -1
  437. package/amd/{useDensity-f0f7ae9a.js → useDensity-c83df7b4.js} +2 -2
  438. package/amd/{useDensity-f0f7ae9a.js.map → useDensity-c83df7b4.js.map} +1 -1
  439. package/amd/{useFloating-bf8ed6cb.js → useFloating-acd30a55.js} +2 -2
  440. package/amd/{useFloating-bf8ed6cb.js.map → useFloating-acd30a55.js.map} +1 -1
  441. package/amd/useKeyboardEvents-d87e3587.js +2 -0
  442. package/amd/{useKeyboardEvents-8ada7a1f.js.map → useKeyboardEvents-d87e3587.js.map} +1 -1
  443. package/amd/useLegendContextMenu-e629139a.js +1 -1
  444. package/amd/useMeterDatatip-fff3c329.js +2 -0
  445. package/amd/{useMeterDatatip-173593b4.js.map → useMeterDatatip-fff3c329.js.map} +1 -1
  446. package/amd/{useOutsideClick-76c1ff6e.js → useOutsideClick-f99b7a84.js} +2 -2
  447. package/amd/{useOutsideClick-76c1ff6e.js.map → useOutsideClick-f99b7a84.js.map} +1 -1
  448. package/amd/{usePopupAnimation-6e53a0fe.js → usePopupAnimation-f679a4b0.js} +2 -2
  449. package/amd/{usePopupAnimation-6e53a0fe.js.map → usePopupAnimation-f679a4b0.js.map} +1 -1
  450. package/amd/usePrefixSuffix-09bd5925.js +2 -0
  451. package/amd/{usePrefixSuffix-f7544e05.js.map → usePrefixSuffix-09bd5925.js.map} +1 -1
  452. package/amd/{useReorderableItem-726c3c03.js → useReorderableItem-4c4779f7.js} +2 -2
  453. package/amd/{useReorderableItem-726c3c03.js.map → useReorderableItem-4c4779f7.js.map} +1 -1
  454. package/amd/{useRovingTabIndexContainer-473f7e43.js → useRovingTabIndexContainer-955e23a8.js} +2 -2
  455. package/amd/{useRovingTabIndexContainer-473f7e43.js.map → useRovingTabIndexContainer-955e23a8.js.map} +1 -1
  456. package/amd/useScale-37d42c9d.js +2 -0
  457. package/amd/{useScale-e311d35f.js.map → useScale-37d42c9d.js.map} +1 -1
  458. package/amd/useSelectCommon-d9c4a7bd.js +1 -1
  459. package/amd/{useSelectDrill-216c007c.js → useSelectDrill-6361116b.js} +2 -2
  460. package/amd/{useSelectDrill-216c007c.js.map → useSelectDrill-6361116b.js.map} +1 -1
  461. package/amd/useSelection-af7b4b52.js +2 -0
  462. package/amd/{useSelection-01203394.js.map → useSelection-af7b4b52.js.map} +1 -1
  463. package/amd/{useSelection-4249360e.js → useSelection-f0c7d74d.js} +2 -2
  464. package/amd/{useSelection-4249360e.js.map → useSelection-f0c7d74d.js.map} +1 -1
  465. package/amd/useTabBar-2c4573fe.js +1 -1
  466. package/amd/{useTestId-b5cd4766.js → useTestId-3a316499.js} +2 -2
  467. package/amd/{useTestId-b5cd4766.js.map → useTestId-3a316499.js.map} +1 -1
  468. package/amd/{useTheme-a8334e06.js → useTheme-ac980f9a.js} +2 -2
  469. package/amd/{useTheme-a8334e06.js.map → useTheme-ac980f9a.js.map} +1 -1
  470. package/amd/useThemeInterpolations-6b2de213.js +2 -0
  471. package/amd/{useThemeInterpolations-ab618dee.js.map → useThemeInterpolations-6b2de213.js.map} +1 -1
  472. package/amd/useTooltip-7b11fd35.js +2 -0
  473. package/amd/{useTooltip-b43ad881.js.map → useTooltip-7b11fd35.js.map} +1 -1
  474. package/amd/{useTooltipControlled-ee3276de.js → useTooltipControlled-52183a08.js} +2 -2
  475. package/amd/{useTooltipControlled-ee3276de.js.map → useTooltipControlled-52183a08.js.map} +1 -1
  476. package/amd/{useTranslationBundle-d07d4b20.js → useTranslationBundle-516b1b83.js} +2 -2
  477. package/amd/{useTranslationBundle-d07d4b20.js.map → useTranslationBundle-516b1b83.js.map} +1 -1
  478. package/amd/{useUser-3ef25571.js → useUser-85c781ea.js} +2 -2
  479. package/amd/{useUser-3ef25571.js.map → useUser-85c781ea.js.map} +1 -1
  480. package/amd/useVisDragModeControls-a5685835.js +1 -1
  481. package/amd/{useVisEvents-dc86164f.js → useVisEvents-0166e4cc.js} +2 -2
  482. package/amd/{useVisEvents-dc86164f.js.map → useVisEvents-0166e4cc.js.map} +1 -1
  483. package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
  484. package/amd/utils/PRIVATE_visTestUtils.js +1 -1
  485. package/amd/{withDirectionIcon-74c39ee3.js → withDirectionIcon-ce0c7432.js} +2 -2
  486. package/amd/{withDirectionIcon-74c39ee3.js.map → withDirectionIcon-ce0c7432.js.map} +1 -1
  487. package/amd/withThemeProps-4c23997e.js +1 -1
  488. package/cjs/{BarChart-93a3813c.js → BarChart-ca7f8ed5.js} +2 -2
  489. package/cjs/{BarChart-93a3813c.js.map → BarChart-ca7f8ed5.js.map} +1 -1
  490. package/cjs/{Chart-40d95d14.js → Chart-fbbd3329.js} +2 -2
  491. package/cjs/{Chart-40d95d14.js.map → Chart-fbbd3329.js.map} +1 -1
  492. package/cjs/CheckboxSetContext-c62db26d.js +12 -0
  493. package/{amd/CheckboxSetContext-2e486ea8.js.map → cjs/CheckboxSetContext-c62db26d.js.map} +1 -1
  494. package/cjs/{ComboChart-cffd0759.js → ComboChart-95863e7a.js} +2 -2
  495. package/cjs/{ComboChart-cffd0759.js.map → ComboChart-95863e7a.js.map} +1 -1
  496. package/cjs/{InputDatePicker-bc2c534a.js → InputDatePicker-4d36637f.js} +2 -2
  497. package/cjs/{InputDatePicker-bc2c534a.js.map → InputDatePicker-4d36637f.js.map} +1 -1
  498. package/cjs/{LineAreaChart-bb1350fa.js → LineAreaChart-46dde5d3.js} +2 -2
  499. package/cjs/{LineAreaChart-bb1350fa.js.map → LineAreaChart-46dde5d3.js.map} +1 -1
  500. package/cjs/PRIVATE_Chart.js +4 -4
  501. package/cjs/{ScatterChart-763e1f3e.js → ScatterChart-0497f41a.js} +2 -2
  502. package/cjs/{ScatterChart-763e1f3e.js.map → ScatterChart-0497f41a.js.map} +1 -1
  503. package/cjs/Theme-redwood/theme.css +144 -144
  504. package/cjs/Theme-stable/theme.css +401 -401
  505. package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +5 -5
  506. package/cjs/UNSAFE_BarChart.js +5 -5
  507. package/cjs/UNSAFE_CheckboxItem.js +30 -81
  508. package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
  509. package/cjs/UNSAFE_CheckboxSet.js +44 -15
  510. package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
  511. package/cjs/UNSAFE_ComboChart.js +5 -5
  512. package/cjs/UNSAFE_InputDatePicker.js +90 -90
  513. package/cjs/UNSAFE_LineAreaChart.js +5 -5
  514. package/cjs/UNSAFE_RichCheckboxSet.js +13 -15
  515. package/cjs/UNSAFE_RichCheckboxSet.js.map +1 -1
  516. package/cjs/UNSAFE_RichSelectionItem.js +44 -181
  517. package/cjs/UNSAFE_RichSelectionItem.js.map +1 -1
  518. package/cjs/UNSAFE_ScatterChart.js +5 -5
  519. package/es/{BarChart-a3209793.js → BarChart-dd37d569.js} +2 -2
  520. package/es/{BarChart-a3209793.js.map → BarChart-dd37d569.js.map} +1 -1
  521. package/es/{BaseCardView-229fa119.js → BaseCardView-c5a8ee6a.js} +2 -2
  522. package/es/{BaseCardView-229fa119.js.map → BaseCardView-c5a8ee6a.js.map} +1 -1
  523. package/es/BaseNavigationListItem-f991e375.js +47 -0
  524. package/es/BaseNavigationListItem-f991e375.js.map +1 -0
  525. package/es/{CardFlexView-3ef6bf4d.js → CardFlexView-529906e0.js} +2 -2
  526. package/es/{CardFlexView-3ef6bf4d.js.map → CardFlexView-529906e0.js.map} +1 -1
  527. package/es/{CardGridView-e15226c9.js → CardGridView-ec18c929.js} +2 -2
  528. package/es/{CardGridView-e15226c9.js.map → CardGridView-ec18c929.js.map} +1 -1
  529. package/es/{Chart-b97e00f1.js → Chart-b046fb6a.js} +2 -2
  530. package/es/{Chart-b97e00f1.js.map → Chart-b046fb6a.js.map} +1 -1
  531. package/es/{ComboChart-b8c2be4d.js → ComboChart-58ac07b4.js} +2 -2
  532. package/es/{ComboChart-b8c2be4d.js.map → ComboChart-58ac07b4.js.map} +1 -1
  533. package/es/ExpandableList-478db30a.js +1 -1
  534. package/es/GroupLoadingIndicator-63035d08.js +1 -1
  535. package/es/{Indexer-eb00ba0b.js → Indexer-ba2c7593.js} +2 -2
  536. package/es/{Indexer-eb00ba0b.js.map → Indexer-ba2c7593.js.map} +1 -1
  537. package/es/LabelledLinkVariants.styles.css +3 -3
  538. package/es/LabelledLinkVariants.styles2.css +3 -3
  539. package/es/{LineAreaChart-d6924882.js → LineAreaChart-06eda855.js} +2 -2
  540. package/es/{LineAreaChart-d6924882.js.map → LineAreaChart-06eda855.js.map} +1 -1
  541. package/es/{List-e6886091.js → List-97b7be70.js} +4 -3
  542. package/es/{List-e6886091.js.map → List-97b7be70.js.map} +1 -1
  543. package/es/{ListView-137e31fd.js → ListView-936d8a4f.js} +2 -2
  544. package/es/{ListView-137e31fd.js.map → ListView-936d8a4f.js.map} +1 -1
  545. package/es/{LoadMoreCollection-7df1be36.js → LoadMoreCollection-95a49d2a.js} +2 -2
  546. package/es/{LoadMoreCollection-7df1be36.js.map → LoadMoreCollection-95a49d2a.js.map} +1 -1
  547. package/es/{NavigationListItem-5b25b2f5.js → NavigationList-a58dc41f.js} +3 -20
  548. package/es/NavigationList-a58dc41f.js.map +1 -0
  549. package/es/NavigationListItem-c93c4621.js +10 -0
  550. package/es/NavigationListItem-c93c4621.js.map +1 -0
  551. package/es/NavigationListItemVariants.styles.css +5 -5
  552. package/es/NavigationListItemVariants.styles2.css +5 -5
  553. package/es/{OverflowTabBar-47a03b1f.js → OverflowTabBar-c6c886c9.js} +3 -3
  554. package/es/{OverflowTabBar-47a03b1f.js.map → OverflowTabBar-c6c886c9.js.map} +1 -1
  555. package/es/{OverflowTabBarItem-08625093.js → OverflowTabBarItem-08b7755f.js} +4 -3
  556. package/es/{OverflowTabBarItem-08625093.js.map → OverflowTabBarItem-08b7755f.js.map} +1 -1
  557. package/es/PRIVATE_BaseCardView.js +3 -3
  558. package/es/PRIVATE_Chart.js +4 -4
  559. package/es/PRIVATE_List.js +4 -4
  560. package/es/PRIVATE_LoadMoreCollection.js +2 -2
  561. package/es/PRIVATE_SelectCommon.js +5 -5
  562. package/es/PRIVATE_Table.js +3 -3
  563. package/es/PRIVATE_VirtualizedCollection.js +2 -2
  564. package/es/{RemovableNavigationListItem-29fdaddc.js → RemovableNavigationListItem-94b3a33d.js} +3 -2
  565. package/es/{RemovableNavigationListItem-29fdaddc.js.map → RemovableNavigationListItem-94b3a33d.js.map} +1 -1
  566. package/es/{ReorderableTabBar-b9019d0a.js → ReorderableTabBar-50be617c.js} +2 -2
  567. package/es/{ReorderableTabBar-b9019d0a.js.map → ReorderableTabBar-50be617c.js.map} +1 -1
  568. package/es/{ScatterChart-d26d4ea9.js → ScatterChart-4bfeca5d.js} +2 -2
  569. package/es/{ScatterChart-d26d4ea9.js.map → ScatterChart-4bfeca5d.js.map} +1 -1
  570. package/es/SegmentStyles.styles.css +8 -8
  571. package/es/SegmentStyles.styles2.css +8 -8
  572. package/es/{SelectMultiple-488a49d1.js → SelectMultiple-ad8fc99a.js} +2 -2
  573. package/es/{SelectMultiple-488a49d1.js.map → SelectMultiple-ad8fc99a.js.map} +1 -1
  574. package/es/{SelectSingle-e8b9a33a.js → SelectSingle-abaf271c.js} +2 -2
  575. package/es/{SelectSingle-e8b9a33a.js.map → SelectSingle-abaf271c.js.map} +1 -1
  576. package/es/{TabBar-fb7f97d2.js → TabBar-eff22f9b.js} +6 -1
  577. package/es/{TabBar-fb7f97d2.js.map → TabBar-eff22f9b.js.map} +1 -1
  578. package/es/{TabBarMixed-f60c2c7a.js → TabBarMixed-e85a3682.js} +6 -1
  579. package/es/{TabBarMixed-f60c2c7a.js.map → TabBarMixed-e85a3682.js.map} +1 -1
  580. package/es/{Table-3cfb9443.js → Table-1ba124ec.js} +2 -2
  581. package/es/{Table-3cfb9443.js.map → Table-1ba124ec.js.map} +1 -1
  582. package/es/{TableView-fd5104cd.js → TableView-20223ba6.js} +2 -2
  583. package/es/{TableView-fd5104cd.js.map → TableView-20223ba6.js.map} +1 -1
  584. package/es/{TextArea-7230675f.js → TextArea-64b4e972.js} +25 -8
  585. package/es/TextArea-64b4e972.js.map +1 -0
  586. package/es/{TextAreaAutosize-0d293016.js → TextAreaAutosize-4e0f60ef.js} +2 -2
  587. package/es/{TextAreaAutosize-0d293016.js.map → TextAreaAutosize-4e0f60ef.js.map} +1 -1
  588. package/es/Theme-redwood/theme.css +452 -452
  589. package/es/Theme-stable/theme.css +454 -454
  590. package/es/TrainVariants.styles.css +6 -6
  591. package/es/TrainVariants.styles2.css +6 -6
  592. package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +5 -5
  593. package/es/UNSAFE_BarChart.js +5 -5
  594. package/es/UNSAFE_CardFlexView.js +4 -4
  595. package/es/UNSAFE_CardGridView.js +4 -4
  596. package/es/UNSAFE_ComboChart.js +5 -5
  597. package/es/UNSAFE_ExpandableList.js +3 -3
  598. package/es/UNSAFE_Indexer.js +2 -2
  599. package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
  600. package/es/UNSAFE_InputDateMask.js +1 -1
  601. package/es/UNSAFE_InputDatePicker.js +1 -1
  602. package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
  603. package/es/UNSAFE_InputTimeMask.js +1 -1
  604. package/es/UNSAFE_LabelledLink/themes/redwood/LabelledLinkTheme.js +1 -1
  605. package/es/UNSAFE_LabelledLink/themes/redwood/LabelledLinkVariants.css.js +1 -1
  606. package/es/UNSAFE_LabelledLink/themes/stable/LabelledLinkTheme.js +1 -1
  607. package/es/UNSAFE_LabelledLink/themes/stable/LabelledLinkVariants.css.js +1 -1
  608. package/es/UNSAFE_LabelledLink.js +1 -1
  609. package/es/UNSAFE_LineAreaChart.js +5 -5
  610. package/es/UNSAFE_ListView.js +5 -5
  611. package/es/UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css.js +1 -1
  612. package/es/UNSAFE_NavigationList/themes/stable/NavigationListItemTheme.js +1 -1
  613. package/es/UNSAFE_NavigationList/themes/stable/NavigationListItemVariants.css.js +1 -1
  614. package/es/UNSAFE_NavigationList.js +16 -14
  615. package/es/UNSAFE_NavigationList.js.map +1 -1
  616. package/es/UNSAFE_NavigationListCommon/themes/redwood/NavigationListItemTheme.js +1 -1
  617. package/es/UNSAFE_NavigationListCommon.js +55 -54
  618. package/es/UNSAFE_NavigationListCommon.js.map +1 -1
  619. package/es/UNSAFE_OverflowTabBar.js +29 -27
  620. package/es/UNSAFE_OverflowTabBar.js.map +1 -1
  621. package/es/UNSAFE_ReorderableTabBar.js +25 -14
  622. package/es/UNSAFE_ReorderableTabBar.js.map +1 -1
  623. package/es/UNSAFE_ScatterChart.js +5 -5
  624. package/es/UNSAFE_SelectMultiple.js +6 -6
  625. package/es/UNSAFE_SelectSingle.js +6 -6
  626. package/es/UNSAFE_TabBar.js +28 -26
  627. package/es/UNSAFE_TabBar.js.map +1 -1
  628. package/es/UNSAFE_TabBarCommon.js +20 -18
  629. package/es/UNSAFE_TabBarCommon.js.map +1 -1
  630. package/es/UNSAFE_TabBarMixed.js +39 -37
  631. package/es/UNSAFE_TabBarMixed.js.map +1 -1
  632. package/es/UNSAFE_TableView.js +4 -4
  633. package/es/UNSAFE_TextArea.js +2 -3
  634. package/es/UNSAFE_TextArea.js.map +1 -1
  635. package/es/UNSAFE_TextAreaAutosize.js +3 -3
  636. package/es/UNSAFE_Train/themes/redwood/TrainTheme.js +1 -1
  637. package/es/UNSAFE_Train/themes/redwood/TrainVariants.css.js +1 -1
  638. package/es/UNSAFE_Train/themes/stable/TrainTheme.js +1 -1
  639. package/es/UNSAFE_Train/themes/stable/TrainVariants.css.js +1 -1
  640. package/es/UNSAFE_Train.js +1 -1
  641. package/es/UNSAFE_VirtualizedListView.js +5 -5
  642. package/es/{VirtualizedCollection-f048fbb8.js → VirtualizedCollection-e73890a1.js} +2 -2
  643. package/es/{VirtualizedCollection-f048fbb8.js.map → VirtualizedCollection-e73890a1.js.map} +1 -1
  644. package/es/{VirtualizedListView-0532e46c.js → VirtualizedListView-3ef40bde.js} +2 -2
  645. package/es/{VirtualizedListView-0532e46c.js.map → VirtualizedListView-3ef40bde.js.map} +1 -1
  646. package/es/{BaseNavigationListItem-530bc3df.js → useNavigationListItem-4b7a666d.js} +3 -41
  647. package/es/useNavigationListItem-4b7a666d.js.map +1 -0
  648. package/es/{useSelectCommon-af8e715e.js → useSelectCommon-1dafa6f9.js} +2 -2
  649. package/es/{useSelectCommon-af8e715e.js.map → useSelectCommon-1dafa6f9.js.map} +1 -1
  650. package/package.json +2 -2
  651. package/amd/CheckboxSetContext-2e486ea8.js +0 -2
  652. package/amd/CompactLabelAssistance-c6928282.js +0 -2
  653. package/amd/Flex-3421f0df.js +0 -2
  654. package/amd/HighlightText-644bc74e.js +0 -2
  655. package/amd/LiveRegion-9a362373.js +0 -2
  656. package/amd/MaxLengthLiveRegion-bb956138.js +0 -2
  657. package/amd/NavigationListItem-044a79fd.js +0 -2
  658. package/amd/SectionedContent-19bef3cc.js +0 -2
  659. package/amd/SelectionCard-13aac54a.js +0 -2
  660. package/amd/TabBarMixedSeparator-ed764207.js +0 -2
  661. package/amd/TruncatingBadge-7f66faaf.js +0 -2
  662. package/amd/VisNoData-10983ace.js +0 -2
  663. package/amd/index-95227deb.js.map +0 -1
  664. package/amd/render-85c034d7.js +0 -2
  665. package/amd/useChartDatatip-947eeffe.js +0 -2
  666. package/amd/useCurrentKey-a993db56.js +0 -2
  667. package/amd/useKeyboardEvents-8ada7a1f.js +0 -2
  668. package/amd/useMeterDatatip-173593b4.js +0 -2
  669. package/amd/usePrefixSuffix-f7544e05.js +0 -2
  670. package/amd/useScale-e311d35f.js +0 -2
  671. package/amd/useSelection-01203394.js +0 -2
  672. package/amd/useThemeInterpolations-ab618dee.js +0 -2
  673. package/amd/useTooltip-b43ad881.js +0 -2
  674. package/cjs/CheckboxSet-1bdbc419.js +0 -53
  675. package/es/BaseNavigationListItem-530bc3df.js.map +0 -1
  676. package/es/MaxLengthCounter-181b4fc9.js +0 -25
  677. package/es/MaxLengthCounter-181b4fc9.js.map +0 -1
  678. package/es/NavigationListItem-5b25b2f5.js.map +0 -1
  679. package/es/TextArea-7230675f.js.map +0 -1
@@ -1,2 +1,2 @@
1
- define(['exports', './VisTabularDatatip-55bbd19f', 'preact/jsx-runtime', './classNames-08d99695', './PRIVATE_VisTabularDatatip/themes/VisTabularDatatipStyles.css', 'css!./VisTabularDatatipStyles.styles.css', './useUser-3ef25571', 'preact/hooks', './LayerHost-639b3284', 'preact', './Common/themes/redwood/theme', './Common/themes/themeContract.css', 'preact/compat'], (function(e,t,a,s,r,i,o,c,p,l,m,u,b){"use strict";e.VisTabularDatatip=t.VisTabularDatatip,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(['exports', './VisTabularDatatip-1051eaca', 'preact/jsx-runtime', './classNames-08d99695', './PRIVATE_VisTabularDatatip/themes/VisTabularDatatipStyles.css', 'css!./VisTabularDatatipStyles.styles.css', './useUser-85c781ea', 'preact/hooks', './LayerHost-e95c5f30', './Common/themes/redwood/theme', './Common/themes/themeContract.css', 'preact', 'preact/compat'], (function(a,e,t,s,r,i,c,o,p,l,m,u,n){"use strict";a.VisTabularDatatip=e.VisTabularDatatip,Object.defineProperty(a,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=PRIVATE_VisTabularDatatip.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './TrackResizeContainer-2b033ae7', 'preact', 'preact/hooks', './UNSAFE_PictoChart/themes/PictoChartStyles.css', './classNames-08d99695', './useSelection-01203394', './useTranslationBundle-d07d4b20', './mergeProps-bcfa6a92', './Common/themes/themeContract.css', './utils-5077c092', './SvgSymbol-328be71d', './accUtils-530bdb90', './useUser-3ef25571', './layoutUtils-8805fc5b', './eventsUtils-edf8f4e5', './useVisHover-28319fef', './useVisDrill-7f811101', './useDatatip-9942601b', './useItemFocus-75d6510d', './LayerHost-639b3284', 'preact/compat', './datatipUtils-01750311', './useTestId-b5cd4766', './useVisTouchResponse-88a7bb09', './stringUtils-0ae982c2'], (function(e,t,o,n,r,i,s,a,c,l,d,u,m,f,h,p,g,I,b,C,x,v,S,w,y,R,F){"use strict";const P=n.createContext({}),k=.25;function M(e,t){return Math.ceil(e/t)*t}const D=e=>"bottomStart"===e||"bottomEnd"===e,T=e=>"topEnd"===e||"bottomEnd"===e,V=(e,t,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)if(e[o+i][t+r])return!1;return!0},$=(e,t,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)e[o+i][t+r]=!0},E=(e,t,o,n,r,i)=>{if(i){const i=E(e,o,t,r,n,!1);return i?{col:i.row,row:i.col}:void 0}for(let i=0;i<r-o+1;i++)for(let r=0;r<n-t+1;r++)if(V(e,r,i,t,o))return $(e,r,i,t,o),{col:r,row:i}};function U(e){const t=e.dataset.idx;if(void 0!==t)return{idx:Number(t)}}function H(e,t,o,n,r,i,s,a,c){let l=!1;if(!n){const e=!!s&&t===s.idx,o=!!r&&t===r.idx;l=!!(e&&s?.isCurrent||o&&r?.isCurrent)}const d=function(e,t){return!t||0===t.length||new Set(t).has(e)}(e.id,a),u=function(e,t){return!(!t||0===t.length)&&new Set(t).has(e)}(e.id,i);return{isCurrent:l,isHighlighted:d,isSelected:u,hasSelection:i&&0!==i.length,isFocused:!!s&&A(s,t),key:e.id,itemIdx:t,countIdx:o,activeId:l?c:void 0,isReadOnly:n,item:e}}function j(e,t){return e?.idx===t?.idx}function A(e,t){return!!e.isFocusVisible&&e.idx===t}function N(e,t,o){return`${o?.vis_labelCountWithTotal({itemCount:e.toString(),totalCount:t.toString()})}`}const B=({context:e,markerProps:o})=>{const{supportsSelection:n}=r.useContext(P),i=function(e,t,o,n,r,i){const s="human"===e,a=o||r&&i,c="ellipse"===e||"rectangle"===e;t=""!==t?t:u.rgba(d.colorSchemeVars.palette.neutral[190],.15);const l=n?d.colorSchemeVars.textIcon.primary:a?t:"";return{markerShape:e,tx:s?70:void 0,ty:s?60:void 0,markerColor:t,borderColor:n||a?u.rgb(d.colorSchemeVars.palette.neutral[0]):t,outerBorderColor:l,markerScale:c&&!l?1:.85,setAspectRatioNone:!!c}}(o.shape,o.color,e.state.focused,e.state.selected,e.state.hovered,n);return t.jsx(m.SvgSymbol,{...i})};function L(e,t){const{idx:o}=e;return t[o]}function W(e){return{getItem:t=>L(t,e),getDetailFromInfo:t=>{if(!t)return{id:void 0,data:void 0};const o=L(t,e);return{id:o?o.id:void 0,data:o}},getPrevItemInfo:e=>function(e){let t=e.idx;return t=Math.max(0,t-1),{idx:t}}(e),getNextItemInfo:t=>function(e,t){let o=e.idx;return o=Math.min(t.length-1,o+1),{idx:o}}(t,e)}}const q=({touchResponse:e,content:t,borderColor:o,width:n,focusedItemRef:r,focusedItemInfo:i})=>{const{direction:s}=h.useUser(),a="rtl"===s,c=r.current?.getBoundingClientRect(),{datatipContent:l,datatipProps:d}=C.useDatatip({content:t,placement:"top-start",offset:p.calculateOffset(a,n,i.isCurrent?c:void 0),borderColor:o,anchor:i?.isCurrent?"element":"pointer",touchResponse:e});return{datatipContent:l,datatipProps:d}},O=e=>{const o=e.supportsSelection||e.supportsDrill,{dimmedItemStyle:n,interactiveItemStyle:r}=i.styles,a=s.classNames([o&&r,!e.isHighlighted&&n]),c=0===e.countIdx,l=c&&function(e,t,o,n,r,i,s,a,c){const l=r?N(e,t,r):"";return a=a||`${n?n+": ":""}${l}`,{"aria-label":f.generateAriaLabel(r,a,{isSelected:o||s?i:void 0})||void 0,role:"img",id:c}}(e.item.count||1,e.totalCount,!!e.supportsSelection,e.item.label,e.translations,e.isSelected,e.hasSelection,e.item.accessibleLabel,e.activeId)||{};return t.jsx("div",{ref:c?e.focusedItemRef:void 0,id:e.activeId,"data-idx":e.itemIdx,"data-count-idx":e.countIdx,style:{gridRow:`${e.row+1} / span ${e.item.rowSpan||1}`,gridColumn:`${e.column+1} / span ${e.item.columnSpan||1}`},class:a,...l,children:e.children})};function _({width:e,height:o,columnWidth:n,rowHeight:m,items:f,columnCount:C,rowCount:v,layout:S,layoutOrigin:w="topStart",selectionMode:P="none",highlightedIds:V=[],selectedIds:$=[],drilling:A="off",onItemDrill:B,onItemHover:L,isFlowingWidth:_,isFlowingHeight:z,onItemFocus:G,...K}){const Z=0!==f.length,J=function(e){let t=0;for(let o=0;o<e.length;o++)t+=e[o].count||1;return t}(f),Q=c.useTranslationBundle("@oracle/oraclejet-preact"),X=!(!P||"none"===P),Y=null!=B,ee=!X&&!Y&&null===L&&null===G,te=y.useTestId(K.testId),oe=new Map(f.map((e=>[e.id,e]))),{getItem:ne,getDetailFromInfo:re,getPrevItemInfo:ie,getNextItemInfo:se}=W(f),{touchResponse:ae,touchResponseStyle:ce}=R.useVisTouchResponse({type:"touchStart"}),{hoveredItemInfo:le,focusedItemInfo:de,activeId:ue,eventsProps:me}=function(e,t,o,n,i,s,a,c,d,u){const[m,f]=r.useState({idx:0}),[C,x]=r.useState(),v=r.useRef(),{direction:S}=h.useUser(),w="rtl"===S,y=I.useVisHover((e=>{const o=U(e.target);j(o,C)||(x(o&&{...o,isCurrent:!0}),v.current=p.getRandomId(),t&&(f({...m,isCurrent:!1}),d?.(n(o))))}),void 0,(()=>{x(void 0),v.current=void 0,t&&d?.(n())}),e),R=r.useCallback((e=>{const{id:t,data:o}=n(e);null!=t&&o&&(c?.({id:t,data:o}),v.current=p.getRandomId())}),[n,c]),F=r.useCallback((e=>{"keydown"===e.type?"on"==a&&R(m):R(U(e.target))}),[a,m,R]),P=b.useVisDrill(o,F);if(!t)return{focusedItemInfo:m,hoveredItemInfo:C,eventsProps:y};function k(e){u?.(n(e)),v.current=p.getRandomId(),f(e)}function M(e){j(e,m)||(e.isCurrent=!0,e.isFocusVisible=!0,C&&x({...C,isCurrent:!1}),k(e))}return{focusedItemInfo:m,hoveredItemInfo:C,activeId:v.current,eventsProps:l.mergeProps(P,y,{onKeyUp:e=>{"Tab"===e.code&&(k({...m,isCurrent:!0,isFocusVisible:!0}),g.cancelEvent(e))},onKeyDown:e=>{switch(e.key){case"Tab":return;case"ArrowDown":M(s(m)),g.cancelEvent(e);break;case"ArrowUp":M(i(m)),g.cancelEvent(e);break;case"ArrowRight":M(w?i(m):s(m)),g.cancelEvent(e);break;case"ArrowLeft":M(w?s(m):i(m)),g.cancelEvent(e)}},onBlur:()=>{(null!=C||m.isCurrent)&&u?.(n(void 0));const e={...m,isCurrent:!1,isFocusVisible:!1};f(e)}})}}(ae,!ee&&Z,P,re,ie,se,A,B,L,G),{selectionContent:fe,selectionProps:he}=a.useSelection({idExtracter:e=>{const t="keyup"===e.type?de:U(e.target);return re(t).id},isDrillEnabled:"off"!=A,selection:$,selectionMode:P,getDataById:e=>oe.get(e),onChange:K.onSelectionChange}),pe=n&&parseFloat(n),ge=m&&parseFloat(m),Ie=s.classNames([i.baseStyles]),{focusedItemRef:be}=x.useItemFocus(de),{content:Ce,borderColor:xe}=function(e,t,o,n,r,i,s){let a;const c=r?.isCurrent;let l,m;c&&null!=e[r.idx].id&&(a=r),n&&n.isCurrent&&(a=n);let f=u.rgba(d.colorSchemeVars.palette.neutral[190],.15);const h=a&&t(a,e);if(h&&i){const e=h&&{data:h},{content:t,borderColor:n}=i(e);l=t,f=n||f,m=s?N(h.count||1,o,s):""}return{borderColor:f,content:l||a&&t(a,e)?.accessibleLabel||a&&t(a,e)?.label+": "+m||m}}(f,ne,J,de,le,K.datatip,Q),{calcColCount:ve,calcRowCount:Se,calcColWidth:we,calcRowHeight:ye,gridGap:Re}=function(e,t,o,n,r,s,a,c,l,d){let u=0,m=1,f=1,h=1/0;for(let t=0;t<e.length;t++){const o=e[t],n=o.columnSpan||1,r=o.rowSpan||1;n<=0||r<=0||(n>m&&(m=n),r>f&&(f=r),n<h&&(h=n),r<h&&(h=r),u+=n*r*(o.count||1))}if(0===u)return{};(r||s)&&(l||(l=d||i.DEFAULT_SIZE),d||(d=l)),a||c||(r||s?r?s?t?c=M(Math.sqrt(u),f):a=M(Math.sqrt(u),m):c=Math.max(Math.floor(n/(d||1)),1):a=Math.max(Math.floor(o/(l||1)),1):t?c=M(Math.sqrt(u*n/o),f):a=M(Math.sqrt(u*o/n),m)),a?c||(c=M(u/a,f)):a=M(u/(c||1),m);const p=k*h;return r||s||(l||(l=d||Math.min(o/a,n/(c||1))),d||(d=l)),a<=0||!c||c<=0||!l||l<=0||!d||d<=0?{}:{calcColCount:a,calcRowCount:c,calcColWidth:l?l-p:l,calcRowHeight:d?d-p:d,gridGap:p}}(f,"vertical"===S,e,o,_,z,C,v,pe,ge),{datatipContent:Fe,datatipProps:{"aria-describedby":Pe,...ke}}=q({touchResponse:ae,content:Ce,width:e,borderColor:xe,focusedItemRef:be,focusedItemInfo:de});if(!ve)return null;const Me=function(e,t,o,n,r){const i=t,s=o,a=D(n),c=T(n),l=[],d=new Array(i);for(let e=0;e<i;e++)d[e]=new Array(s).fill(!1);for(let t=0;t<e.length;t++){const o=e[t];let n=0;const u=o.rowSpan??1,m=o.columnSpan??1,f=o.count??1;for(;n<f;){const e=E(d,m,u,s,i,r);void 0!==e&&l.push({row:a?i-e.row-u:e.row,col:c?s-e.col-m:e.col,countIdx:n,itemIdx:t,item:o}),n+=1}}return l}(f,Se,ve,w,"vertical"===S),De=l.mergeProps(me,ke,he);return t.jsxs("div",{tabIndex:0,"aria-label":K["aria-label"],"aria-describedby":F.merge([K["aria-describedby"],Pe]),"aria-labelledby":K["aria-labelledby"],"aria-activedescendant":ue,role:"application",style:{width:_?"max-content":`${e}px`,height:z?"max-content":`${o}px`,gridTemplateRows:`repeat(${Se}, ${ye}px)`,gridTemplateColumns:`repeat(${ve}, ${we}px)`,gap:`${Re}px`,...ce},class:Ie,...te,...De,children:[Me.map((e=>{const o=de.idx===e.itemIdx,n=H(e.item,e.itemIdx,e.countIdx,ee,le,$,de,V,ue),r={data:e.item,state:{selected:n.isSelected,focused:n.isFocused,hovered:n.isCurrent}};return t.jsx(O,{focusedItemRef:o?be:void 0,row:e.row,column:e.col,supportsSelection:X,supportsDrill:Y,translations:Q,totalCount:J,...n,children:K.children(r)})})),Fe,fe]})}e.PictoChart=function({width:e,height:n,...r}){const i=!(!r.selectionMode||"none"===r.selectionMode),s=void 0===e,a=void 0===n;return t.jsx(P.Provider,{value:{supportsSelection:i},children:t.jsx(o.TrackResizeContainer,{width:s?"initial":e,height:a?"initial":n,children:(e,o)=>t.jsx(_,{width:e,height:o,isFlowingWidth:s,isFlowingHeight:a,...r})})})},e.getPictoDefaultRenderers=function(e){return{markerRenderer:o=>{const n=e(o.data);return t.jsx(B,{context:o,markerProps:n})},datatipRenderer:t=>({borderColor:e(t.data).color})}}}));
1
+ define(['exports', 'preact/jsx-runtime', './TrackResizeContainer-2b033ae7', 'preact', 'preact/hooks', './UNSAFE_PictoChart/themes/PictoChartStyles.css', './classNames-08d99695', './useSelection-af7b4b52', './useTranslationBundle-516b1b83', './mergeProps-bcfa6a92', './Common/themes/themeContract.css', './utils-5077c092', './SvgSymbol-328be71d', './accUtils-530bdb90', './useUser-85c781ea', './layoutUtils-8805fc5b', './eventsUtils-edf8f4e5', './useVisHover-28319fef', './useVisDrill-7f811101', './useDatatip-ac26447a', './useItemFocus-75d6510d', './LayerHost-e95c5f30', 'preact/compat', './datatipUtils-01750311', './useTestId-3a316499', './useVisTouchResponse-88a7bb09', './stringUtils-0ae982c2'], (function(e,t,o,n,r,i,s,a,c,l,d,u,m,f,h,p,g,I,b,C,x,v,S,w,y,R,F){"use strict";const P=n.createContext({}),k=.25;function M(e,t){return Math.ceil(e/t)*t}const D=e=>"bottomStart"===e||"bottomEnd"===e,T=e=>"topEnd"===e||"bottomEnd"===e,V=(e,t,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)if(e[o+i][t+r])return!1;return!0},$=(e,t,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)e[o+i][t+r]=!0},E=(e,t,o,n,r,i)=>{if(i){const i=E(e,o,t,r,n,!1);return i?{col:i.row,row:i.col}:void 0}for(let i=0;i<r-o+1;i++)for(let r=0;r<n-t+1;r++)if(V(e,r,i,t,o))return $(e,r,i,t,o),{col:r,row:i}};function U(e){const t=e.dataset.idx;if(void 0!==t)return{idx:Number(t)}}function H(e,t,o,n,r,i,s,a,c){let l=!1;if(!n){const e=!!s&&t===s.idx,o=!!r&&t===r.idx;l=!!(e&&s?.isCurrent||o&&r?.isCurrent)}const d=function(e,t){return!t||0===t.length||new Set(t).has(e)}(e.id,a),u=function(e,t){return!(!t||0===t.length)&&new Set(t).has(e)}(e.id,i);return{isCurrent:l,isHighlighted:d,isSelected:u,hasSelection:i&&0!==i.length,isFocused:!!s&&A(s,t),key:e.id,itemIdx:t,countIdx:o,activeId:l?c:void 0,isReadOnly:n,item:e}}function j(e,t){return e?.idx===t?.idx}function A(e,t){return!!e.isFocusVisible&&e.idx===t}function N(e,t,o){return`${o?.vis_labelCountWithTotal({itemCount:e.toString(),totalCount:t.toString()})}`}const B=({context:e,markerProps:o})=>{const{supportsSelection:n}=r.useContext(P),i=function(e,t,o,n,r,i){const s="human"===e,a=o||r&&i,c="ellipse"===e||"rectangle"===e;t=""!==t?t:u.rgba(d.colorSchemeVars.palette.neutral[190],.15);const l=n?d.colorSchemeVars.textIcon.primary:a?t:"";return{markerShape:e,tx:s?70:void 0,ty:s?60:void 0,markerColor:t,borderColor:n||a?u.rgb(d.colorSchemeVars.palette.neutral[0]):t,outerBorderColor:l,markerScale:c&&!l?1:.85,setAspectRatioNone:!!c}}(o.shape,o.color,e.state.focused,e.state.selected,e.state.hovered,n);return t.jsx(m.SvgSymbol,{...i})};function L(e,t){const{idx:o}=e;return t[o]}function W(e){return{getItem:t=>L(t,e),getDetailFromInfo:t=>{if(!t)return{id:void 0,data:void 0};const o=L(t,e);return{id:o?o.id:void 0,data:o}},getPrevItemInfo:e=>function(e){let t=e.idx;return t=Math.max(0,t-1),{idx:t}}(e),getNextItemInfo:t=>function(e,t){let o=e.idx;return o=Math.min(t.length-1,o+1),{idx:o}}(t,e)}}const q=({touchResponse:e,content:t,borderColor:o,width:n,focusedItemRef:r,focusedItemInfo:i})=>{const{direction:s}=h.useUser(),a="rtl"===s,c=r.current?.getBoundingClientRect(),{datatipContent:l,datatipProps:d}=C.useDatatip({content:t,placement:"top-start",offset:p.calculateOffset(a,n,i.isCurrent?c:void 0),borderColor:o,anchor:i?.isCurrent?"element":"pointer",touchResponse:e});return{datatipContent:l,datatipProps:d}},O=e=>{const o=e.supportsSelection||e.supportsDrill,{dimmedItemStyle:n,interactiveItemStyle:r}=i.styles,a=s.classNames([o&&r,!e.isHighlighted&&n]),c=0===e.countIdx,l=c&&function(e,t,o,n,r,i,s,a,c){const l=r?N(e,t,r):"";return a=a||`${n?n+": ":""}${l}`,{"aria-label":f.generateAriaLabel(r,a,{isSelected:o||s?i:void 0})||void 0,role:"img",id:c}}(e.item.count||1,e.totalCount,!!e.supportsSelection,e.item.label,e.translations,e.isSelected,e.hasSelection,e.item.accessibleLabel,e.activeId)||{};return t.jsx("div",{ref:c?e.focusedItemRef:void 0,id:e.activeId,"data-idx":e.itemIdx,"data-count-idx":e.countIdx,style:{gridRow:`${e.row+1} / span ${e.item.rowSpan||1}`,gridColumn:`${e.column+1} / span ${e.item.columnSpan||1}`},class:a,...l,children:e.children})};function _({width:e,height:o,columnWidth:n,rowHeight:m,items:f,columnCount:C,rowCount:v,layout:S,layoutOrigin:w="topStart",selectionMode:P="none",highlightedIds:V=[],selectedIds:$=[],drilling:A="off",onItemDrill:B,onItemHover:L,isFlowingWidth:_,isFlowingHeight:z,onItemFocus:G,...K}){const Z=0!==f.length,J=function(e){let t=0;for(let o=0;o<e.length;o++)t+=e[o].count||1;return t}(f),Q=c.useTranslationBundle("@oracle/oraclejet-preact"),X=!(!P||"none"===P),Y=null!=B,ee=!X&&!Y&&null===L&&null===G,te=y.useTestId(K.testId),oe=new Map(f.map((e=>[e.id,e]))),{getItem:ne,getDetailFromInfo:re,getPrevItemInfo:ie,getNextItemInfo:se}=W(f),{touchResponse:ae,touchResponseStyle:ce}=R.useVisTouchResponse({type:"touchStart"}),{hoveredItemInfo:le,focusedItemInfo:de,activeId:ue,eventsProps:me}=function(e,t,o,n,i,s,a,c,d,u){const[m,f]=r.useState({idx:0}),[C,x]=r.useState(),v=r.useRef(),{direction:S}=h.useUser(),w="rtl"===S,y=I.useVisHover((e=>{const o=U(e.target);j(o,C)||(x(o&&{...o,isCurrent:!0}),v.current=p.getRandomId(),t&&(f({...m,isCurrent:!1}),d?.(n(o))))}),void 0,(()=>{x(void 0),v.current=void 0,t&&d?.(n())}),e),R=r.useCallback((e=>{const{id:t,data:o}=n(e);null!=t&&o&&(c?.({id:t,data:o}),v.current=p.getRandomId())}),[n,c]),F=r.useCallback((e=>{"keydown"===e.type?"on"==a&&R(m):R(U(e.target))}),[a,m,R]),P=b.useVisDrill(o,F);if(!t)return{focusedItemInfo:m,hoveredItemInfo:C,eventsProps:y};function k(e){u?.(n(e)),v.current=p.getRandomId(),f(e)}function M(e){j(e,m)||(e.isCurrent=!0,e.isFocusVisible=!0,C&&x({...C,isCurrent:!1}),k(e))}return{focusedItemInfo:m,hoveredItemInfo:C,activeId:v.current,eventsProps:l.mergeProps(P,y,{onKeyUp:e=>{"Tab"===e.code&&(k({...m,isCurrent:!0,isFocusVisible:!0}),g.cancelEvent(e))},onKeyDown:e=>{switch(e.key){case"Tab":return;case"ArrowDown":M(s(m)),g.cancelEvent(e);break;case"ArrowUp":M(i(m)),g.cancelEvent(e);break;case"ArrowRight":M(w?i(m):s(m)),g.cancelEvent(e);break;case"ArrowLeft":M(w?s(m):i(m)),g.cancelEvent(e)}},onBlur:()=>{(null!=C||m.isCurrent)&&u?.(n(void 0));const e={...m,isCurrent:!1,isFocusVisible:!1};f(e)}})}}(ae,!ee&&Z,P,re,ie,se,A,B,L,G),{selectionContent:fe,selectionProps:he}=a.useSelection({idExtracter:e=>{const t="keyup"===e.type?de:U(e.target);return re(t).id},isDrillEnabled:"off"!=A,selection:$,selectionMode:P,getDataById:e=>oe.get(e),onChange:K.onSelectionChange}),pe=n&&parseFloat(n),ge=m&&parseFloat(m),Ie=s.classNames([i.baseStyles]),{focusedItemRef:be}=x.useItemFocus(de),{content:Ce,borderColor:xe}=function(e,t,o,n,r,i,s){let a;const c=r?.isCurrent;let l,m;c&&null!=e[r.idx].id&&(a=r),n&&n.isCurrent&&(a=n);let f=u.rgba(d.colorSchemeVars.palette.neutral[190],.15);const h=a&&t(a,e);if(h&&i){const e=h&&{data:h},{content:t,borderColor:n}=i(e);l=t,f=n||f,m=s?N(h.count||1,o,s):""}return{borderColor:f,content:l||a&&t(a,e)?.accessibleLabel||a&&t(a,e)?.label+": "+m||m}}(f,ne,J,de,le,K.datatip,Q),{calcColCount:ve,calcRowCount:Se,calcColWidth:we,calcRowHeight:ye,gridGap:Re}=function(e,t,o,n,r,s,a,c,l,d){let u=0,m=1,f=1,h=1/0;for(let t=0;t<e.length;t++){const o=e[t],n=o.columnSpan||1,r=o.rowSpan||1;n<=0||r<=0||(n>m&&(m=n),r>f&&(f=r),n<h&&(h=n),r<h&&(h=r),u+=n*r*(o.count||1))}if(0===u)return{};(r||s)&&(l||(l=d||i.DEFAULT_SIZE),d||(d=l)),a||c||(r||s?r?s?t?c=M(Math.sqrt(u),f):a=M(Math.sqrt(u),m):c=Math.max(Math.floor(n/(d||1)),1):a=Math.max(Math.floor(o/(l||1)),1):t?c=M(Math.sqrt(u*n/o),f):a=M(Math.sqrt(u*o/n),m)),a?c||(c=M(u/a,f)):a=M(u/(c||1),m);const p=k*h;return r||s||(l||(l=d||Math.min(o/a,n/(c||1))),d||(d=l)),a<=0||!c||c<=0||!l||l<=0||!d||d<=0?{}:{calcColCount:a,calcRowCount:c,calcColWidth:l?l-p:l,calcRowHeight:d?d-p:d,gridGap:p}}(f,"vertical"===S,e,o,_,z,C,v,pe,ge),{datatipContent:Fe,datatipProps:{"aria-describedby":Pe,...ke}}=q({touchResponse:ae,content:Ce,width:e,borderColor:xe,focusedItemRef:be,focusedItemInfo:de});if(!ve)return null;const Me=function(e,t,o,n,r){const i=t,s=o,a=D(n),c=T(n),l=[],d=new Array(i);for(let e=0;e<i;e++)d[e]=new Array(s).fill(!1);for(let t=0;t<e.length;t++){const o=e[t];let n=0;const u=o.rowSpan??1,m=o.columnSpan??1,f=o.count??1;for(;n<f;){const e=E(d,m,u,s,i,r);void 0!==e&&l.push({row:a?i-e.row-u:e.row,col:c?s-e.col-m:e.col,countIdx:n,itemIdx:t,item:o}),n+=1}}return l}(f,Se,ve,w,"vertical"===S),De=l.mergeProps(me,ke,he);return t.jsxs("div",{tabIndex:0,"aria-label":K["aria-label"],"aria-describedby":F.merge([K["aria-describedby"],Pe]),"aria-labelledby":K["aria-labelledby"],"aria-activedescendant":ue,role:"application",style:{width:_?"max-content":`${e}px`,height:z?"max-content":`${o}px`,gridTemplateRows:`repeat(${Se}, ${ye}px)`,gridTemplateColumns:`repeat(${ve}, ${we}px)`,gap:`${Re}px`,...ce},class:Ie,...te,...De,children:[Me.map((e=>{const o=de.idx===e.itemIdx,n=H(e.item,e.itemIdx,e.countIdx,ee,le,$,de,V,ue),r={data:e.item,state:{selected:n.isSelected,focused:n.isFocused,hovered:n.isCurrent}};return t.jsx(O,{focusedItemRef:o?be:void 0,row:e.row,column:e.col,supportsSelection:X,supportsDrill:Y,translations:Q,totalCount:J,...n,children:K.children(r)})})),Fe,fe]})}e.PictoChart=function({width:e,height:n,...r}){const i=!(!r.selectionMode||"none"===r.selectionMode),s=void 0===e,a=void 0===n;return t.jsx(P.Provider,{value:{supportsSelection:i},children:t.jsx(o.TrackResizeContainer,{width:s?"initial":e,height:a?"initial":n,children:(e,o)=>t.jsx(_,{width:e,height:o,isFlowingWidth:s,isFlowingHeight:a,...r})})})},e.getPictoDefaultRenderers=function(e){return{markerRenderer:o=>{const n=e(o.data);return t.jsx(B,{context:o,markerProps:n})},datatipRenderer:t=>({borderColor:e(t.data).color})}}}));
2
2
  //# sourceMappingURL=PictoChart-48a25c75.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './UNSAFE_PieChart/themes/PieChartStyles.css', './TrackResizeContainer-2b033ae7', './pathUtils-ec75f879', './layoutUtils-c2938c54', './classNames-08d99695', './usePieChartNav-c5c26d6b', './useDatatip-9942601b', './layoutUtils-8805fc5b', './mergeProps-bcfa6a92', './VisTabularDatatip-55bbd19f', './colorUtils-a785c4c4', './accUtils-530bdb90', './useUser-3ef25571', './useTestId-b5cd4766', './useVisTouchResponse-88a7bb09', 'preact/hooks', './stringUtils-0ae982c2', './useContextMenu-e08aad46', './Menu-5d447084', './MenuItem-87cd59b8', 'preact', './logger-0f873e29', './LayerHost-639b3284', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-e5bdb734', 'css!./IconStyle.styles.css', './SelectMenuGroupContext-67f24a8f', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./MenuSeparatorStyles.styles.css', 'module', './UNSAFE_Menu/themes/redwood/MenuSeparatorVariants.css', './eventsUtils-edf8f4e5'], (function(e,t,s,n,o,a,i,r,l,c,d,u,h,b,f,p,x,m,M,g,y,I,v,C,T,S,w,R,j,A,P,U,V,L,N,D,E){"use strict";const F=.45,k=.38,O=3,_=1.5,B=90;function q(e){return e*(Math.PI/180)}function H(e,t,s,n){const o=Math.atan2(n,s)-Math.atan2(t,e);return o<0?o+2*Math.PI:o}function z(e,t,s,n,a,i,r,l,c){const d=Math.max(n-e,0),u=Math.max(a-e,0),h=360==r||d<e?0:l+2*e,b=i?i+e:0,f=q(360==r?359.99:r),p=q(c),x=h/2,m=x<d?Math.asin(x/d):0,M=-f/2-p,g=Math.min(5*x,f>0?Math.abs(x/Math.sin(f/2)):0),y=0==d?g:g*u/d,I=t+Math.cos(M)*g,v=s+Math.sin(M)*y,C=t+Math.cos(-m-p)*d,T=s+Math.sin(-m-p)*u,S=t+Math.cos(-p-f+m)*d,w=s+Math.sin(-p-f+m)*u;let R,j=H(S-t,w-s,C-t,T-s);if(j=Math.min(j,f),b>0){const e=x<b?Math.asin(x/b):0,n=t+Math.cos(-e-p)*b,a=s+Math.sin(-e-p)*b,i=t+Math.cos(-p-f+e)*b,l=s+Math.sin(-p-f+e)*b;let c=H(i-t,l-s,n-t,a-s);c=Math.min(c,j,f),360==r?(R=o.moveTo(S,w),R+=o.arcTo(d,u,f,1,C,T),R+=o.lineTo(S,w),R+=o.moveTo(n,a),R+=o.arcTo(b,b,f,0,i,l)):(R=o.moveTo(i,l),R+=o.lineTo(S,w),R+=o.arcTo(d,u,j,1,C,T),R+=o.lineTo(n,a),R+=o.arcTo(b,b,c,0,i,l))}else 360==r?(R=o.moveTo(S,w),R+=o.arcTo(d,u,f,1,C,T)):(R=o.moveTo(I,v),R+=o.lineTo(S,w),R+=o.arcTo(d,u,j,1,C,T));return R+=o.closePath(),R}function G(e,t,s){return{innerBounds:{width:Math.sqrt(2)*s,height:Math.sqrt(2)*s,x:e-s/Math.sqrt(2),y:t-s/Math.sqrt(2)},outerBounds:{width:2*s,height:2*s,x:e-s,y:t-s}}}function J(e,t,s,n,o,a){return a?function(e,t,s,n,o,a){const i=(e+t/2)/180*Math.PI,r=(o+a)/2;return{x:s+r*Math.cos(i),y:n-r*Math.sin(i),width:0,height:0}}(e[a.itemIndex].startAngle,e[a.itemIndex].angleExtent,t,s,n,o):void 0}function K(e,t,s){return s?.color||null!=t?.itemIndex?e[t.itemIndex]:void 0}function Q({cx:e,cy:n,r:o,startAngle:a,angleExtent:r,gap:l,innerRadius:c,color:d,id:u,itemIndex:h,isFocused:b=!1,isHovered:f=!1,...p}){const x=z(0,e,n,o,o,c,r,l,a);let m;return b?(m=z(2,e,n,o,o,c,r,l,a),t.jsxs("g",{id:u,role:p.accessibleLabel?"img":void 0,"data-oj-item-index":h,"data-oj-object":"pieSlice","aria-label":p.accessibleLabel,children:[t.jsx("path",{d:x,fill:d,stroke:d,className:s.styles.innerShapes}),t.jsx("path",{d:m,fill:d,className:i.classNames([s.styles.contrastBorder,s.styles.innerShapes])})]})):t.jsx("path",{role:p.accessibleLabel?"img":void 0,"aria-label":p.accessibleLabel,d:x,"data-oj-object":"pieSlice",fill:d,id:u,"data-oj-item-index":h})}const W=({offset:e,rootRef:t,contextMenuConfig:s,focusedItemInfo:n,items:o,onContextMenuDismissed:a,width:i,isRtl:r})=>{const{contextMenuProps:l,contextMenuContent:c}=g.useContextMenu({onContextMenuHandler:({gesture:s,target:a})=>{if("keyboard"===s){const t=n.itemIndex;return{type:"offset",context:{type:"item",data:o[t]},offsetValue:e,isRtl:r,width:i}}const l=E.getInfo(t,a)?.itemIndex,c=void 0!==l?o[l]:null;let d;return d=c?{type:"item",data:c}:t.current?.children[1].contains(a)?{type:"centerLabel"}:{type:"background"},{type:"pointer",context:d}},contextMenuOptions:{isDisabled:!s},rootRef:t,contextMenuConfig:s,onContextMenuDismissed:a});return{contextMenuContent:c,contextMenuProps:l}},X=100;function Y({width:e,height:n,testId:o,innerRadius:i=0,contextMenuConfig:b,...g}){const y=m.useRef(null),I=h.getColorRamp(),{totalValue:v,isLabelOutside:C}=g.data.reduce((({totalValue:e,isLabelOutside:t},s)=>({totalValue:e+s.value,isLabelOutside:t})),{totalValue:0,isLabelOutside:!1});const T=function(e,t){let s,n=B;const o=[];for(let a=0;a<e.length;a++){const i=e[a],r=i.value;s=r===t?100:0===t?0:Math.min(r/t*100,99.99);const l=3.6*s;let c=n-l;c<0&&(c+=360),o.push({index:a,startAngle:c,angleExtent:l,...i}),n=c}return o}(g.data,v),S=g.data.length>0,w=function(e){return O*e}(.5),R=g.data.length>X,{direction:j}=f.useUser(),A=p.useTestId(o),P=a.getAvailSpace(e,n),{cx:U,cy:V}=function(e){return{cx:e.x+Math.floor(e.width/2),cy:e.y+Math.floor(e.height/2)}}(P),L=function(e,t){const s=t?k:F;return Math.floor(Math.min(e.width,e.height)*s)}(P,C),N=i*L,D=function(e,t,s){if(!t)return e;const n=2*Math.PI*s;let o=0;return e.filter((({startAngle:e,angleExtent:t})=>{const s=(t+e)/360*n;return!(t/360*n<_&&Math.abs(o-s)<_||(o=s,0))}))}(T,R,L),E=function(e,t){return({itemIndex:s},n)=>{let o=s;return o=t&&("ArrowRight"===n||"ArrowUp"===n)||!t&&("ArrowLeft"===n||"ArrowDown"===n)?s-1:s+1,{itemIndex:(o%e.length+e.length)%e.length}}}(D,"rtl"===j),{touchResponse:q,touchResponseStyle:H}=x.useVisTouchResponse({type:"auto",supportsTouchDragGestures:!1,rootRef:y}),{activeId:z,navProps:Y,focusedItemInfo:Z,hoveredItemInfo:$,onContextMenuDismissed:ee}=r.usePieChartNav({touchResponse:q,getNextChartItem:E}),te=Z.isFocusVisible?Z:$,se=te?g.data[D[te.itemIndex].index]:void 0,{content:ne,borderColor:oe}=se&&g.datatip?g.datatip({data:se}):((e,s)=>e?e.accessibleLabel?{content:e.accessibleLabel,borderColor:K(I,s,e)}:{content:t.jsx(u.VisTabularDatatip,{tableData:[{key:"Value",value:e.value}]}),borderColor:K(I,s,e)}:{content:void 0,borderColor:void 0})(se,te),ae=Z.isFocusVisible?"element":"pointer",ie=te?.isFocusVisible?J(D,U,V,N,L,te):void 0,re="rtl"===j,le=c.calculateOffset(re,e,ie),{datatipContent:ce,datatipProps:de}=l.useDatatip({content:ne,offset:le,anchor:ae,placement:"top-start",borderColor:oe,touchResponse:q});de["aria-describedby"]=M.merge([g["aria-describedby"],de["aria-describedby"]]);const{contextMenuContent:ue,contextMenuProps:he}=W({offset:le,rootRef:y,contextMenuConfig:S?b:void 0,onContextMenuDismissed:ee,focusedItemInfo:Z,items:T,width:e,isRtl:re}),be=d.mergeProps(Y,de,he);return t.jsxs("div",{ref:y,tabIndex:0,"aria-label":g["aria-label"],"aria-labelledby":g["aria-labelledby"],"aria-activedescendant":z,role:"application",...be,...A,className:s.styles.chart,style:{width:e,height:n,...H},children:[D.length>0&&t.jsx("svg",{className:s.styles.svg,children:D.map(((e,s)=>t.jsx(Q,{cx:U,cy:V,itemIndex:s,id:te?.itemIndex===s?z:void 0,isFocused:Z?.itemIndex===s&&Z?.isFocusVisible,isHovered:$?.itemIndex===s,r:L,startAngle:e.startAngle,gap:w,innerRadius:N,angleExtent:e.angleExtent,color:e.color||I[s%I.length],accessibleLabel:e.accessibleLabel},e.id)))}),g.children?.(G(U,V,N)),ce,ue]})}e.PieChart=function({width:e,height:o,...a}){return t.jsx(n.TrackResizeContainer,{width:e,height:o,class:s.dimensionStyle,children:(e,s)=>t.jsx(Y,{width:e,height:s,...a})})}}));
1
+ define(['exports', 'preact/jsx-runtime', './UNSAFE_PieChart/themes/PieChartStyles.css', './TrackResizeContainer-2b033ae7', './pathUtils-ec75f879', './layoutUtils-c2938c54', './classNames-08d99695', './usePieChartNav-c5c26d6b', './useDatatip-ac26447a', './layoutUtils-8805fc5b', './mergeProps-bcfa6a92', './VisTabularDatatip-1051eaca', './colorUtils-a785c4c4', './accUtils-530bdb90', './useUser-85c781ea', './useTestId-3a316499', './useVisTouchResponse-88a7bb09', 'preact/hooks', './stringUtils-0ae982c2', './useContextMenu-e08aad46', './Menu-5d447084', './MenuItem-87cd59b8', 'preact', './logger-0f873e29', './LayerHost-e95c5f30', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-69ce0a2d', 'css!./IconStyle.styles.css', './SelectMenuGroupContext-67f24a8f', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./MenuSeparatorStyles.styles.css', 'module', './UNSAFE_Menu/themes/redwood/MenuSeparatorVariants.css', './eventsUtils-edf8f4e5'], (function(e,t,s,n,o,a,i,r,c,l,d,u,h,p,f,x,m,b,M,g,y,I,v,C,T,S,w,R,j,A,P,U,V,L,N,D,E){"use strict";const F=.45,k=.38,O=3,_=1.5,B=90;function q(e){return e*(Math.PI/180)}function H(e,t,s,n){const o=Math.atan2(n,s)-Math.atan2(t,e);return o<0?o+2*Math.PI:o}function z(e,t,s,n,a,i,r,c,l){const d=Math.max(n-e,0),u=Math.max(a-e,0),h=360==r||d<e?0:c+2*e,p=i?i+e:0,f=q(360==r?359.99:r),x=q(l),m=h/2,b=m<d?Math.asin(m/d):0,M=-f/2-x,g=Math.min(5*m,f>0?Math.abs(m/Math.sin(f/2)):0),y=0==d?g:g*u/d,I=t+Math.cos(M)*g,v=s+Math.sin(M)*y,C=t+Math.cos(-b-x)*d,T=s+Math.sin(-b-x)*u,S=t+Math.cos(-x-f+b)*d,w=s+Math.sin(-x-f+b)*u;let R,j=H(S-t,w-s,C-t,T-s);if(j=Math.min(j,f),p>0){const e=m<p?Math.asin(m/p):0,n=t+Math.cos(-e-x)*p,a=s+Math.sin(-e-x)*p,i=t+Math.cos(-x-f+e)*p,c=s+Math.sin(-x-f+e)*p;let l=H(i-t,c-s,n-t,a-s);l=Math.min(l,j,f),360==r?(R=o.moveTo(S,w),R+=o.arcTo(d,u,f,1,C,T),R+=o.lineTo(S,w),R+=o.moveTo(n,a),R+=o.arcTo(p,p,f,0,i,c)):(R=o.moveTo(i,c),R+=o.lineTo(S,w),R+=o.arcTo(d,u,j,1,C,T),R+=o.lineTo(n,a),R+=o.arcTo(p,p,l,0,i,c))}else 360==r?(R=o.moveTo(S,w),R+=o.arcTo(d,u,f,1,C,T)):(R=o.moveTo(I,v),R+=o.lineTo(S,w),R+=o.arcTo(d,u,j,1,C,T));return R+=o.closePath(),R}function G(e,t,s){return{innerBounds:{width:Math.sqrt(2)*s,height:Math.sqrt(2)*s,x:e-s/Math.sqrt(2),y:t-s/Math.sqrt(2)},outerBounds:{width:2*s,height:2*s,x:e-s,y:t-s}}}function J(e,t,s,n,o,a){return a?function(e,t,s,n,o,a){const i=(e+t/2)/180*Math.PI,r=(o+a)/2;return{x:s+r*Math.cos(i),y:n-r*Math.sin(i),width:0,height:0}}(e[a.itemIndex].startAngle,e[a.itemIndex].angleExtent,t,s,n,o):void 0}function K(e,t,s){return s?.color||null!=t?.itemIndex?e[t.itemIndex]:void 0}function Q({cx:e,cy:n,r:o,startAngle:a,angleExtent:r,gap:c,innerRadius:l,color:d,id:u,itemIndex:h,isFocused:p=!1,isHovered:f=!1,...x}){const m=z(0,e,n,o,o,l,r,c,a);let b;return p?(b=z(2,e,n,o,o,l,r,c,a),t.jsxs("g",{id:u,role:x.accessibleLabel?"img":void 0,"data-oj-item-index":h,"data-oj-object":"pieSlice","aria-label":x.accessibleLabel,children:[t.jsx("path",{d:m,fill:d,stroke:d,className:s.styles.innerShapes}),t.jsx("path",{d:b,fill:d,className:i.classNames([s.styles.contrastBorder,s.styles.innerShapes])})]})):t.jsx("path",{role:x.accessibleLabel?"img":void 0,"aria-label":x.accessibleLabel,d:m,"data-oj-object":"pieSlice",fill:d,id:u,"data-oj-item-index":h})}const W=({offset:e,rootRef:t,contextMenuConfig:s,focusedItemInfo:n,items:o,onContextMenuDismissed:a,width:i,isRtl:r})=>{const{contextMenuProps:c,contextMenuContent:l}=g.useContextMenu({onContextMenuHandler:({gesture:s,target:a})=>{if("keyboard"===s){const t=n.itemIndex;return{type:"offset",context:{type:"item",data:o[t]},offsetValue:e,isRtl:r,width:i}}const c=E.getInfo(t,a)?.itemIndex,l=void 0!==c?o[c]:null;let d;return d=l?{type:"item",data:l}:t.current?.children[1].contains(a)?{type:"centerLabel"}:{type:"background"},{type:"pointer",context:d}},contextMenuOptions:{isDisabled:!s},rootRef:t,contextMenuConfig:s,onContextMenuDismissed:a});return{contextMenuContent:l,contextMenuProps:c}},X=100;function Y({width:e,height:n,testId:o,innerRadius:i=0,contextMenuConfig:p,...g}){const y=b.useRef(null),I=h.getColorRamp(),{totalValue:v,isLabelOutside:C}=g.data.reduce((({totalValue:e,isLabelOutside:t},s)=>({totalValue:e+s.value,isLabelOutside:t})),{totalValue:0,isLabelOutside:!1});const T=function(e,t){let s,n=B;const o=[];for(let a=0;a<e.length;a++){const i=e[a],r=i.value;s=r===t?100:0===t?0:Math.min(r/t*100,99.99);const c=3.6*s;let l=n-c;l<0&&(l+=360),o.push({index:a,startAngle:l,angleExtent:c,...i}),n=l}return o}(g.data,v),S=g.data.length>0,w=function(e){return O*e}(.5),R=g.data.length>X,{direction:j}=f.useUser(),A=x.useTestId(o),P=a.getAvailSpace(e,n),{cx:U,cy:V}=function(e){return{cx:e.x+Math.floor(e.width/2),cy:e.y+Math.floor(e.height/2)}}(P),L=function(e,t){const s=t?k:F;return Math.floor(Math.min(e.width,e.height)*s)}(P,C),N=i*L,D=function(e,t,s){if(!t)return e;const n=2*Math.PI*s;let o=0;return e.filter((({startAngle:e,angleExtent:t})=>{const s=(t+e)/360*n;return!(t/360*n<_&&Math.abs(o-s)<_||(o=s,0))}))}(T,R,L),E=function(e,t){return({itemIndex:s},n)=>{let o=s;return o=t&&("ArrowRight"===n||"ArrowUp"===n)||!t&&("ArrowLeft"===n||"ArrowDown"===n)?s-1:s+1,{itemIndex:(o%e.length+e.length)%e.length}}}(D,"rtl"===j),{touchResponse:q,touchResponseStyle:H}=m.useVisTouchResponse({type:"auto",supportsTouchDragGestures:!1,rootRef:y}),{activeId:z,navProps:Y,focusedItemInfo:Z,hoveredItemInfo:$,onContextMenuDismissed:ee}=r.usePieChartNav({touchResponse:q,getNextChartItem:E}),te=Z.isFocusVisible?Z:$,se=te?g.data[D[te.itemIndex].index]:void 0,{content:ne,borderColor:oe}=se&&g.datatip?g.datatip({data:se}):((e,s)=>e?e.accessibleLabel?{content:e.accessibleLabel,borderColor:K(I,s,e)}:{content:t.jsx(u.VisTabularDatatip,{tableData:[{key:"Value",value:e.value}]}),borderColor:K(I,s,e)}:{content:void 0,borderColor:void 0})(se,te),ae=Z.isFocusVisible?"element":"pointer",ie=te?.isFocusVisible?J(D,U,V,N,L,te):void 0,re="rtl"===j,ce=l.calculateOffset(re,e,ie),{datatipContent:le,datatipProps:de}=c.useDatatip({content:ne,offset:ce,anchor:ae,placement:"top-start",borderColor:oe,touchResponse:q});de["aria-describedby"]=M.merge([g["aria-describedby"],de["aria-describedby"]]);const{contextMenuContent:ue,contextMenuProps:he}=W({offset:ce,rootRef:y,contextMenuConfig:S?p:void 0,onContextMenuDismissed:ee,focusedItemInfo:Z,items:T,width:e,isRtl:re}),pe=d.mergeProps(Y,de,he);return t.jsxs("div",{ref:y,tabIndex:0,"aria-label":g["aria-label"],"aria-labelledby":g["aria-labelledby"],"aria-activedescendant":z,role:"application",...pe,...A,className:s.styles.chart,style:{width:e,height:n,...H},children:[D.length>0&&t.jsx("svg",{className:s.styles.svg,children:D.map(((e,s)=>t.jsx(Q,{cx:U,cy:V,itemIndex:s,id:te?.itemIndex===s?z:void 0,isFocused:Z?.itemIndex===s&&Z?.isFocusVisible,isHovered:$?.itemIndex===s,r:L,startAngle:e.startAngle,gap:w,innerRadius:N,angleExtent:e.angleExtent,color:e.color||I[s%I.length],accessibleLabel:e.accessibleLabel},e.id)))}),g.children?.(G(U,V,N)),le,ue]})}e.PieChart=function({width:e,height:o,...a}){return t.jsx(n.TrackResizeContainer,{width:e,height:o,class:s.dimensionStyle,children:(e,s)=>t.jsx(Y,{width:e,height:s,...a})})}}));
2
2
  //# sourceMappingURL=PieChart-2197746d.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', './Floating-5d98c1ca', './tabbableUtils-85aa6918', './refUtils-d354a169', './FocusTrap-60520575', './Layer-6f29b67f', 'preact/compat', './LayerHost-639b3284', './Modal-7bece8d5', './WindowOverlay-43c10424', './usePopupAnimation-6e53a0fe', './useTestId-b5cd4766', './useOutsideClick-76c1ff6e', './useComponentTheme-5aa41a8f', './UNSAFE_Popup/themes/PopupContract.css', './stringUtils-0ae982c2', './classNames-08d99695', './UNSAFE_Popup/themes/redwood/PopupTheme', './dimensions-60420dbb', './mergeInterpolations-9ede4cf7'], (function(e,n,t,s,o,r,a,i,c,l,u,d,p,m,f,b,h,y,A,g,x,E){"use strict";const O=c.forwardRef((({anchorRef:e,launcherRef:c,children:l,isOpen:O=!1,modality:v="modeless",offset:F={mainAxis:0,crossAxis:0},flipOptions:P={mainAxis:!0,crossAxis:!0},shiftOptions:C={mainAxis:!1,crossAxis:!1},onClickOutside:T,onClose:k,initialFocus:R="auto",placement:j=(e?"top":"center"),tail:w="none",onTransitionEnd:I,onFocusSet:L,role:N=("modeless"===v?"tooltip":"dialog"),"aria-label":S,"aria-labelledby":U,"aria-describedby":D,testId:M,...V},W)=>{const K=t.useRef(null),[_,H]=t.useState(),q=t.useRef(null),z=m.useTestId(M);f.useOutsideClick({isDisabled:!(O&&q.current),ref:q,handler:e=>{T?.(e)}});const B=t.useCallback((e=>{K.current===o.getActiveElement()&&"F6"===e.code&&"modeless"===v&&(e.preventDefault(),e.stopPropagation(),o.focusWithin(q.current),L?.())}),[v]),{setAnimationElementRef:G,status:J,onPosition:Q}=p.usePopupAnimation({isOpen:O,isAnimatedOnMount:!0,onTransitionEnd:e=>{e?(Z(),I?.(!0)):("modal"===v&&setTimeout((()=>Y()),0),I?.(!1))},placement:j}),X=t.useMemo((()=>r.mergeRefs(q,W)),[q,W]),Y=t.useCallback((()=>{const n=K.current,t=e?.current;n?o.focusOn(n):t&&t instanceof Element&&o.focusOn(t)}),[K,e]);t.useEffect((()=>{O||"opening"!==J||"modal"===v||q.current?.contains(o.getActiveElement())&&Y()}),[O,J,Y,v]),t.useEffect((()=>(O&&(c?.current&&c.current instanceof Element?K.current=document.body.contains(c.current)?c.current:o.getActiveElement():K.current=o.getActiveElement(),K.current?.addEventListener("keydown",B)),()=>{K.current?.removeEventListener("keydown",B)})),[O,c,B]);const Z=()=>{let e=R;"auto"===R&&(e="modal"===v?"firstFocusable":"none"),"popup"===e&&(o.focusOn(q.current),L?.(),I?.(!1)),"firstFocusable"===e&&(o.focusWithin(q.current),L?.())},$={mainAxis:(e=>{let n=0;return e&&(n="number"==typeof e?e:e.mainAxis||0,"simple"===w&&(n+=5)),n})(F),crossAxis:(e=>e?"number"==typeof e?0:e.crossAxis||0:0)(F)},ee=e=>{const n=o.getActiveElement(),t=q.current,s=K.current;if(t===n||t?.contains(n))switch(e.code){case"Escape":k?.({reason:"escapeKey"});break;case"F6":e.preventDefault(),e.stopPropagation(),s&&"modeless"===v&&o.focusOn(s)}};t.useLayoutEffect((()=>{if("unmounted"===J||null==q.current||null!=_||"none"===w)return;const e=y.getVarName(h.popupVars.backgroundColor),n=getComputedStyle(q.current);H(n.getPropertyValue(e))}),[J,q,_,w]);const{baseTheme:ne,classes:te}=b.useComponentTheme(g.PopupRedwoodTheme),se="unmounted"!==J,oe=[...Object.values(x.dimensionInterpolations)],re=E.mergeInterpolations(oe),{...ae}=re(V),ie=()=>n.jsx("div",{ref:X,tabIndex:-1,role:N,className:A.classNames([ne,te]),style:ae,onKeyDown:ee,"aria-label":S,"aria-labelledby":U,"aria-describedby":D,...z,children:n.jsx(a.FocusTrap,{restoreFocusRef:!1,children:l})}),ce=()=>e&&e.current?n.jsx(s.Floating,{ref:G,backgroundColor:_,anchorRef:e,placement:j,offsetValue:$,flipOptions:P,shiftOptions:C,tail:w,onPosition:Q,children:ie()}):n.jsx(d.WindowOverlay,{placement:j,offset:$,children:n.jsx("div",{ref:G,children:ie()})});return se?"modal"===v?n.jsx(u.Modal,{isOpen:se,children:ce()}):n.jsx(i.Layer,{children:ce()}):null}));e.Popup=O}));
2
- //# sourceMappingURL=Popup-66e79afa.js.map
1
+ define(['exports', 'preact/jsx-runtime', 'preact/hooks', './Floating-1ec5ec2a', './tabbableUtils-85aa6918', './refUtils-d354a169', './FocusTrap-60520575', './Layer-447c68e6', 'preact/compat', './LayerHost-e95c5f30', './Modal-d6b2e905', './WindowOverlay-a2d80d55', './usePopupAnimation-f679a4b0', './useTestId-3a316499', './useOutsideClick-f99b7a84', './useComponentTheme-5aa41a8f', './UNSAFE_Popup/themes/PopupContract.css', './stringUtils-0ae982c2', './classNames-08d99695', './UNSAFE_Popup/themes/redwood/PopupTheme', './dimensions-60420dbb', './mergeInterpolations-9ede4cf7'], (function(e,n,t,s,o,r,a,i,c,l,u,d,p,m,f,b,h,y,A,g,x,E){"use strict";const O=c.forwardRef((({anchorRef:e,launcherRef:c,children:l,isOpen:O=!1,modality:v="modeless",offset:F={mainAxis:0,crossAxis:0},flipOptions:P={mainAxis:!0,crossAxis:!0},shiftOptions:C={mainAxis:!1,crossAxis:!1},onClickOutside:T,onClose:k,initialFocus:R="auto",placement:j=(e?"top":"center"),tail:w="none",onTransitionEnd:I,onFocusSet:L,role:N=("modeless"===v?"tooltip":"dialog"),"aria-label":S,"aria-labelledby":U,"aria-describedby":D,testId:M,...V},W)=>{const K=t.useRef(null),[_,H]=t.useState(),q=t.useRef(null),z=m.useTestId(M);f.useOutsideClick({isDisabled:!(O&&q.current),ref:q,handler:e=>{T?.(e)}});const B=t.useCallback((e=>{K.current===o.getActiveElement()&&"F6"===e.code&&"modeless"===v&&(e.preventDefault(),e.stopPropagation(),o.focusWithin(q.current),L?.())}),[v]),{setAnimationElementRef:G,status:J,onPosition:Q}=p.usePopupAnimation({isOpen:O,isAnimatedOnMount:!0,onTransitionEnd:e=>{e?(Z(),I?.(!0)):("modal"===v&&setTimeout((()=>Y()),0),I?.(!1))},placement:j}),X=t.useMemo((()=>r.mergeRefs(q,W)),[q,W]),Y=t.useCallback((()=>{const n=K.current,t=e?.current;n?o.focusOn(n):t&&t instanceof Element&&o.focusOn(t)}),[K,e]);t.useEffect((()=>{O||"opening"!==J||"modal"===v||q.current?.contains(o.getActiveElement())&&Y()}),[O,J,Y,v]),t.useEffect((()=>(O&&(c?.current&&c.current instanceof Element?K.current=document.body.contains(c.current)?c.current:o.getActiveElement():K.current=o.getActiveElement(),K.current?.addEventListener("keydown",B)),()=>{K.current?.removeEventListener("keydown",B)})),[O,c,B]);const Z=()=>{let e=R;"auto"===R&&(e="modal"===v?"firstFocusable":"none"),"popup"===e&&(o.focusOn(q.current),L?.(),I?.(!1)),"firstFocusable"===e&&(o.focusWithin(q.current),L?.())},$={mainAxis:(e=>{let n=0;return e&&(n="number"==typeof e?e:e.mainAxis||0,"simple"===w&&(n+=5)),n})(F),crossAxis:(e=>e?"number"==typeof e?0:e.crossAxis||0:0)(F)},ee=e=>{const n=o.getActiveElement(),t=q.current,s=K.current;if(t===n||t?.contains(n))switch(e.code){case"Escape":k?.({reason:"escapeKey"});break;case"F6":e.preventDefault(),e.stopPropagation(),s&&"modeless"===v&&o.focusOn(s)}};t.useLayoutEffect((()=>{if("unmounted"===J||null==q.current||null!=_||"none"===w)return;const e=y.getVarName(h.popupVars.backgroundColor),n=getComputedStyle(q.current);H(n.getPropertyValue(e))}),[J,q,_,w]);const{baseTheme:ne,classes:te}=b.useComponentTheme(g.PopupRedwoodTheme),se="unmounted"!==J,oe=[...Object.values(x.dimensionInterpolations)],re=E.mergeInterpolations(oe),{...ae}=re(V),ie=()=>n.jsx("div",{ref:X,tabIndex:-1,role:N,className:A.classNames([ne,te]),style:ae,onKeyDown:ee,"aria-label":S,"aria-labelledby":U,"aria-describedby":D,...z,children:n.jsx(a.FocusTrap,{restoreFocusRef:!1,children:l})}),ce=()=>e&&e.current?n.jsx(s.Floating,{ref:G,backgroundColor:_,anchorRef:e,placement:j,offsetValue:$,flipOptions:P,shiftOptions:C,tail:w,onPosition:Q,children:ie()}):n.jsx(d.WindowOverlay,{placement:j,offset:$,children:n.jsx("div",{ref:G,children:ie()})});return se?"modal"===v?n.jsx(u.Modal,{isOpen:se,children:ce()}):n.jsx(i.Layer,{children:ce()}):null}));e.Popup=O}));
2
+ //# sourceMappingURL=Popup-d51bf3f4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popup-66e79afa.js","sources":["../../src/UNSAFE_Popup/Popup.tsx"],"sourcesContent":["import { JSX, RefObject } from 'preact';\nimport { useState, useEffect, useLayoutEffect, useMemo, useRef, useCallback } from 'preact/hooks';\nimport { Floating, Offset, Placement, Coords, FlipOptions, ShiftOptions } from '../UNSAFE_Floating';\nimport {\n FocusableElement,\n focusOn,\n focusWithin,\n getActiveElement\n} from '../utils/PRIVATE_tabbableUtils';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport { FocusTrap } from '../UNSAFE_FocusTrap';\nimport { Layer } from '../UNSAFE_Layer';\nimport { Modal } from '../UNSAFE_Modal';\nimport { WindowOverlay, WindowOverlayPlacement } from '../UNSAFE_WindowOverlay';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { usePopupAnimation } from './usePopupAnimation';\nimport { useTestId, TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { useOutsideClick } from '../hooks/UNSAFE_useOutsideClick';\n\n// Style imports\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { popupVars } from './themes/PopupContract.css';\nimport { getVarName } from '../utils/UNSAFE_stringUtils';\nimport { Property } from 'csstype';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { PopupRedwoodTheme } from './themes/redwood/PopupTheme';\nimport { dimensionInterpolations, DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\n\ntype IntrinsicProps = Pick<JSX.HTMLAttributes<HTMLDivElement>, 'children'>;\n\nexport type PopupPlacement = Placement | WindowOverlayPlacement;\nexport type OnCloseDetail = {\n reason: 'escapeKey';\n};\nexport type InitialFocus = 'auto' | 'none' | 'popup' | 'firstFocusable';\nexport type Tail = 'none' | 'simple';\nexport type Modality = 'modal' | 'modeless';\n\ntype Props = IntrinsicProps &\n DimensionProps &\n TestIdProps & {\n /**\n * Specifies whether the Popup is open.\n */\n isOpen: boolean;\n /**\n * Specifies Popup's anchor. Popup is placed relatively to its anchor.\n */\n anchorRef?: RefObject<Element | Coords>;\n /**\n * Specifies Popup's launcher. After Popup closes, it returns focus to the launcher.\n */\n launcherRef?: RefObject<HTMLElement>;\n /**\n * Specifies placement of the Popup relative to the anchor.\n */\n placement?: PopupPlacement;\n /**\n * Specifies displacement of the Popup from the anchor element placement along the specified axes.\n * The offset object consists of mainAxis and crossAxis properties. The direction in which these properties\n * are applied depends on the current value of the position property.\n *\n * The <code>mainAxis</code> property represents the distance between the Popup and the anchor.\n * The <code>crossAxis</code> property represents the deviation in the opposite axis to the main axis - the skidding between the Popup and the anchor.\n */\n offset?: Offset;\n /**\n * Specifies modality of the Popup.\n */\n modality?: Modality;\n /**\n * Specifies whether a floating Popup changes placement to the opposite side to be kept in view when a collision is detected.\n *\n * The flipOptions object consists of mainAxis and crossAxis properties.\n * The <code>mainAxis</code> runs along the side of the Popup element.\n * The <code>crossAxis</code> runs along the alignment of the Popup element.\n */\n flipOptions?: FlipOptions;\n /**\n * Specifies whether a floating Popup shifts along axis to be kept in view when a collision is detected.\n * Note that if both 'flip' and 'shift' are enabled on respective axis, the flip will take precedence.\n *\n * The shiftOptions object consists of mainAxis and crossAxis properties.\n * The <code>mainAxis</code> runs along the side of the Popup element.\n * The <code>crossAxis</code> runs along the alignment of the Popup element.\n */\n shiftOptions?: ShiftOptions;\n /**\n * Specifies if the Popup sets focus to its content when initially open.\n * A value of none prevents the popup from setting focus when open.\n *\n * <code>auto</code> in modeless mode resolves to none.\n * <code>none</code> prevents the popup from setting focus when open.\n * <code>popup</code> sets focus to the root popup container (good choice for touch platforms).\n * <code>firstFocusable</code> defines that a popup should set focus to the first focusable element within the popup's content.\n */\n initialFocus?: InitialFocus;\n /**\n * Specifies callback triggered when a user clicks outside Popup.\n */\n onClickOutside?: (event: MouseEvent) => void;\n /**\n * Specifies callback triggered when a user tries to close a Popup through UI interaction.\n * The parent should listen to this event and close the Popup. If the parent fails to remove\n * the Popup, then no change will be done in the UI by the component.\n */\n onClose?: (detail: OnCloseDetail) => void;\n /**\n * Specifies callback triggered when initial focus is set or when Popup receives it via F6 key.\n */\n onFocusSet?: () => void;\n /**\n * Specifies Popup's tail. Simple tail is an arrow pointing to Popup's anchor.\n */\n tail?: Tail;\n /**\n * Specifies callback triggered after the animation ends.\n */\n onTransitionEnd?: (value: boolean) => void;\n /**\n * Specifies the ARIA role type. Depending on how the popup is used in the page, the page developer should choose from the following:\n * <code>tooltip</code> defines contextual popup that displays a description for an element. This is added automatically if not already specified.\n * <code>dialog</code> defines an application window that is designed to interrupt the current processing of an application in order to prompt the user to enter information or require a response.\n * <code>alertdialog</code> defines type of dialog that contains an alert message, where initial focus goes to an element within the dialog.\n */\n role?: HTMLAttributesSignalExcluded['role'];\n /**\n * Specifies guidance for screen readers.\n */\n 'aria-label'?: string;\n /**\n * Specifies ID of an element used for guidance for screen readers.\n */\n 'aria-labelledby'?: string;\n /**\n * Specifies ID of an element (or space separated IDs of multiple elements) that\n * describes the Drawer.\n */\n 'aria-describedby'?: string;\n };\n\n/**\n * A popup temporarily 'pops up' content in the foreground.\n */\nexport const Popup = forwardRef(\n (\n {\n anchorRef,\n launcherRef,\n children,\n isOpen = false,\n modality = 'modeless',\n offset = { mainAxis: 0, crossAxis: 0 },\n flipOptions = { mainAxis: true, crossAxis: true },\n shiftOptions = { mainAxis: false, crossAxis: false },\n onClickOutside,\n onClose,\n initialFocus = 'auto',\n placement = anchorRef ? 'top' : 'center',\n tail = 'none',\n onTransitionEnd,\n onFocusSet,\n role = modality === 'modeless' ? 'tooltip' : 'dialog',\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-describedby': ariaDescribedBy,\n testId,\n ...props\n }: Props,\n ref: ForwardedRef<HTMLElement | null>\n ) => {\n const localLauncherRef = useRef<HTMLElement | null>(null);\n const [popupBgColor, setPopupBgColor] = useState<Property.BackgroundColor>();\n\n const contentWrapperRef = useRef<HTMLDivElement | null>(null);\n\n // testId support\n const testIdProps = useTestId(testId);\n\n // We can not merge outsideClick to onClose event with {reason: 'outsideClick'} payload\n // The reason is that we allow outsideClick/autodismiss in modeless mode and\n // we need to detect outsideClick which is\n useOutsideClick({\n isDisabled: !(isOpen && contentWrapperRef.current),\n ref: contentWrapperRef,\n handler: (event) => {\n onClickOutside?.(event);\n }\n });\n\n const launcherKeyDownCallback = useCallback(\n (event: KeyboardEvent): void => {\n if (\n localLauncherRef.current === getActiveElement() &&\n event.code === 'F6' &&\n modality === 'modeless'\n ) {\n // Prevent default F6 handlers.\n // F6 is a standard Chrome address bar shortcut on Windows.\n event.preventDefault();\n event.stopPropagation();\n\n focusWithin(contentWrapperRef.current as HTMLElement);\n onFocusSet?.();\n }\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [modality]\n );\n\n const _onTransitionEnd = (isOpen: boolean) => {\n if (isOpen) {\n setInitialFocus();\n onTransitionEnd?.(true);\n } else {\n // JET-71010 - for modal popups, the focus cannot be moved until the modal overlay is gone\n if (modality === 'modal') {\n setTimeout(() => returnFocus(), 0);\n }\n onTransitionEnd?.(false);\n }\n };\n\n // Animation\n const { setAnimationElementRef, status, onPosition } = usePopupAnimation({\n isOpen,\n isAnimatedOnMount: true,\n onTransitionEnd: _onTransitionEnd,\n placement: placement\n });\n const stableRef = useMemo(() => mergeRefs(contentWrapperRef, ref), [contentWrapperRef, ref]);\n\n const returnFocus = useCallback((): void => {\n // Try to return focus to 1.launcher or 2.anchor\n const launcherEl = localLauncherRef.current;\n const anchorEl = anchorRef?.current;\n\n if (launcherEl) {\n focusOn(launcherEl);\n // Checking instanceof to avoid Coords type that can not be focused\n } else if (anchorEl && anchorEl instanceof Element) {\n focusOn(anchorEl as FocusableElement);\n }\n }, [localLauncherRef, anchorRef]);\n\n useEffect(() => {\n // Init closing\n // JET-71010 - for modal popups, the focus cannot be moved until the modal overlay is gone\n if (!isOpen && status === 'opening' && modality !== 'modal') {\n // Only actively return focus to the launcher or anchor if the popup contained focus.\n // Otherwise, focus is already elsewhere on the page and should not be forced back\n // because that could reopen the popup again, which essentially prevents the user from\n // moving focus out of the launcher.\n if (contentWrapperRef.current?.contains(getActiveElement())) {\n returnFocus();\n }\n }\n }, [isOpen, status, returnFocus, modality]);\n\n // Initialize launcher\n useEffect(() => {\n if (isOpen) {\n if (!launcherRef?.current) {\n // 1. If launcher is not defined, most frequent scenario is,\n // that element, that has focus before opening a popup is considered launcher\n localLauncherRef.current = getActiveElement() as HTMLElement;\n } else if (launcherRef.current instanceof Element) {\n // 2. launcherRef element was provided.\n // Verify, if it exists in DOM, otherwise use the last active element\n localLauncherRef.current = document.body.contains(launcherRef.current)\n ? launcherRef.current\n : (getActiveElement() as HTMLElement);\n } else {\n localLauncherRef.current = getActiveElement() as HTMLElement;\n }\n // Register F6 key handler to enter the Popup\n localLauncherRef.current?.addEventListener('keydown', launcherKeyDownCallback);\n }\n return () => {\n // Deregister F6 key handler\n localLauncherRef.current?.removeEventListener('keydown', launcherKeyDownCallback);\n };\n }, [isOpen, launcherRef, launcherKeyDownCallback]);\n // Note: unlike oj-c-popup we do not default anchorRef to launcherRef in Preact Popup\n // If anchorRef is undefined, we use WindowOverlay as anchor\n\n const setInitialFocus = () => {\n let derivedInitialFocus = initialFocus;\n if (initialFocus === 'auto') {\n if (modality === 'modal') {\n // modal mode - set focus to first focusable\n derivedInitialFocus = 'firstFocusable';\n } else {\n // modeless mode - do not steal focus by default\n derivedInitialFocus = 'none';\n }\n }\n\n // Case: 'popup'\n // Focus on Popup container\n if (derivedInitialFocus === 'popup') {\n focusOn(contentWrapperRef.current as HTMLElement);\n onFocusSet?.();\n onTransitionEnd?.(false);\n }\n\n // Case: 'firstFocusable'\n // Focus on first tabbable in the Popup container or container itself if there is none\n if (derivedInitialFocus === 'firstFocusable') {\n focusWithin(contentWrapperRef.current as HTMLElement);\n onFocusSet?.();\n }\n };\n\n const getMainAxisOffset = (offset?: Offset) => {\n let calcOffset = 0;\n if (offset) {\n // @ts-ignore as OffsetFunction is going to be removed\n // Property 'mainAxis' does not exist on type 'OffsetFunction'.\n calcOffset = typeof offset === 'number' ? offset : offset.mainAxis || 0;\n if (tail === 'simple') {\n calcOffset += 5;\n }\n }\n return calcOffset;\n };\n\n const getCrossAxisOffset = (offset?: Offset) => {\n if (!offset) {\n return 0;\n } else {\n // @ts-ignore as OffsetFunction is going to be removed\n // Property 'crossAxis' does not exist on type 'OffsetFunction'.\n return typeof offset === 'number' ? 0 : offset.crossAxis || 0;\n }\n };\n\n const finalOffset = {\n mainAxis: getMainAxisOffset(offset),\n crossAxis: getCrossAxisOffset(offset)\n };\n\n const handlePopupKeyDown = (event: KeyboardEvent) => {\n const currentlyFocusedEl = getActiveElement();\n const wrapperEl = contentWrapperRef.current;\n const launcherEl = localLauncherRef.current;\n if (wrapperEl === currentlyFocusedEl || wrapperEl?.contains(currentlyFocusedEl)) {\n switch (event.code) {\n case 'Escape': {\n // Trigger onClose event with outside click detail\n onClose?.({ reason: 'escapeKey' });\n break;\n }\n case 'F6':\n // Prevent default F6 handlers.\n // F6 is a standard Chrome address bar shortcut on Windows.\n event.preventDefault();\n event.stopPropagation();\n\n // Focus launcher\n if (launcherEl && modality === 'modeless') {\n focusOn(launcherEl);\n }\n break;\n }\n }\n };\n\n useLayoutEffect(() => {\n if (\n status === 'unmounted' ||\n contentWrapperRef.current == null ||\n popupBgColor != null ||\n tail === 'none'\n )\n return;\n\n const backgroundColorVar = getVarName(popupVars.backgroundColor);\n const computedStyle = getComputedStyle(contentWrapperRef.current!);\n setPopupBgColor(computedStyle.getPropertyValue(backgroundColorVar));\n }, [status, contentWrapperRef, popupBgColor, tail]);\n\n // Styles\n const { baseTheme, classes } = useComponentTheme(PopupRedwoodTheme);\n const isMounted = status !== 'unmounted';\n\n const interpolations = [...Object.values(dimensionInterpolations)];\n const styleInterpolations = mergeInterpolations<DimensionProps>(interpolations);\n const { ...styles } = styleInterpolations(props);\n\n const renderPopup = () => {\n return (\n <div\n ref={stableRef}\n tabIndex={-1}\n role={role}\n className={classNames([baseTheme, classes])}\n style={styles}\n onKeyDown={handlePopupKeyDown}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedBy}\n {...testIdProps}>\n {/*Setting restoreFocusRef to false because otherwise FocusTrap is stealing the focus back when :*/}\n {/*we click outside of modeless Popup (that keeps being open).*/}\n <FocusTrap restoreFocusRef={false}>{children}</FocusTrap>\n </div>\n );\n };\n\n const renderFloatingOrOverlayPopup = () => {\n if (!anchorRef || !anchorRef.current) {\n return (\n <WindowOverlay placement={placement as WindowOverlayPlacement} offset={finalOffset}>\n <div ref={setAnimationElementRef}>{renderPopup()}</div>\n </WindowOverlay>\n );\n } else {\n return (\n <Floating\n ref={setAnimationElementRef}\n backgroundColor={popupBgColor}\n anchorRef={anchorRef}\n placement={placement as Placement}\n offsetValue={finalOffset}\n flipOptions={flipOptions}\n shiftOptions={shiftOptions}\n tail={tail}\n onPosition={onPosition}>\n {renderPopup()}\n </Floating>\n );\n }\n };\n\n if (isMounted) {\n if (modality === 'modal') {\n return <Modal isOpen={isMounted}>{renderFloatingOrOverlayPopup()}</Modal>;\n } else {\n return <Layer>{renderFloatingOrOverlayPopup()}</Layer>;\n }\n } else return null;\n }\n);\n"],"names":["Popup","forwardRef","anchorRef","launcherRef","children","isOpen","modality","offset","mainAxis","crossAxis","flipOptions","shiftOptions","onClickOutside","onClose","initialFocus","placement","tail","onTransitionEnd","onFocusSet","role","ariaLabel","ariaLabelledBy","ariaDescribedBy","testId","props","ref","localLauncherRef","useRef","popupBgColor","setPopupBgColor","useState","contentWrapperRef","testIdProps","useTestId","useOutsideClick","isDisabled","current","handler","event","launcherKeyDownCallback","useCallback","getActiveElement","code","preventDefault","stopPropagation","focusWithin","setAnimationElementRef","status","onPosition","usePopupAnimation","isAnimatedOnMount","setInitialFocus","setTimeout","returnFocus","stableRef","useMemo","mergeRefs","launcherEl","anchorEl","focusOn","Element","useEffect","contains","document","body","addEventListener","removeEventListener","derivedInitialFocus","finalOffset","calcOffset","getMainAxisOffset","getCrossAxisOffset","handlePopupKeyDown","currentlyFocusedEl","wrapperEl","reason","useLayoutEffect","backgroundColorVar","getVarName","popupVars","backgroundColor","computedStyle","getComputedStyle","getPropertyValue","baseTheme","classes","useComponentTheme","PopupRedwoodTheme","isMounted","interpolations","Object","values","dimensionInterpolations","styleInterpolations","mergeInterpolations","styles","renderPopup","_jsx","tabIndex","className","classNames","style","onKeyDown","FocusTrap","restoreFocusRef","renderFloatingOrOverlayPopup","Floating","offsetValue","WindowOverlay","jsx","Modal","Layer"],"mappings":"knBAkJa,MAAAA,EAAQC,EAAAA,YACnB,EAEIC,YACAC,cACAC,WACAC,UAAS,EACTC,WAAW,WACXC,SAAS,CAAEC,SAAU,EAAGC,UAAW,GACnCC,cAAc,CAAEF,UAAU,EAAMC,WAAW,GAC3CE,eAAe,CAAEH,UAAU,EAAOC,WAAW,GAC7CG,iBACAC,UACAC,eAAe,OACfC,aAAYb,EAAY,MAAQ,UAChCc,OAAO,OACPC,kBACAC,aACAC,QAAoB,aAAbb,EAA0B,UAAY,UAC7C,aAAcc,EACd,kBAAmBC,EACnB,mBAAoBC,EACpBC,YACGC,GAELC,KAEA,MAAMC,EAAmBC,SAA2B,OAC7CC,EAAcC,GAAmBC,EAAQA,WAE1CC,EAAoBJ,SAA8B,MAGlDK,EAAcC,YAAUV,GAK9BW,kBAAgB,CACdC,aAAc9B,GAAU0B,EAAkBK,SAC1CX,IAAKM,EACLM,QAAUC,IACR1B,IAAiB0B,EAAM,IAI3B,MAAMC,EAA0BC,eAC7BF,IAEGZ,EAAiBU,UAAYK,sBACd,OAAfH,EAAMI,MACO,aAAbpC,IAIAgC,EAAMK,iBACNL,EAAMM,kBAENC,cAAYd,EAAkBK,SAC9BlB,MACD,GAGH,CAACZ,KAiBGwC,uBAAEA,EAAsBC,OAAEA,EAAMC,WAAEA,GAAeC,EAAAA,kBAAkB,CACvE5C,SACA6C,mBAAmB,EACnBjC,gBAjBwBZ,IACpBA,GACF8C,IACAlC,KAAkB,KAGD,UAAbX,GACF8C,YAAW,IAAMC,KAAe,GAElCpC,KAAkB,GACnB,EAQDF,UAAWA,IAEPuC,EAAYC,WAAQ,IAAMC,YAAUzB,EAAmBN,IAAM,CAACM,EAAmBN,IAEjF4B,EAAcb,EAAAA,aAAY,KAE9B,MAAMiB,EAAa/B,EAAiBU,QAC9BsB,EAAWxD,GAAWkC,QAExBqB,EACFE,EAAOA,QAACF,GAECC,GAAYA,aAAoBE,SACzCD,EAAOA,QAACD,EACT,GACA,CAAChC,EAAkBxB,IAEtB2D,EAAAA,WAAU,KAGHxD,GAAqB,YAAX0C,GAAqC,UAAbzC,GAKjCyB,EAAkBK,SAAS0B,SAASrB,EAAAA,qBACtCY,GAEH,GACA,CAAChD,EAAQ0C,EAAQM,EAAa/C,IAGjCuD,EAAAA,WAAU,KACJxD,IACGF,GAAaiC,SAIPjC,EAAYiC,mBAAmBwB,QAGxClC,EAAiBU,QAAU2B,SAASC,KAAKF,SAAS3D,EAAYiC,SAC1DjC,EAAYiC,QACXK,EAAAA,mBANLf,EAAiBU,QAAUK,EAAAA,mBAW7Bf,EAAiBU,SAAS6B,iBAAiB,UAAW1B,IAEjD,KAELb,EAAiBU,SAAS8B,oBAAoB,UAAW3B,EAAwB,IAElF,CAAClC,EAAQF,EAAaoC,IAIzB,MAAMY,EAAkB,KACtB,IAAIgB,EAAsBrD,EACL,SAAjBA,IAGAqD,EAFe,UAAb7D,EAEoB,iBAGA,QAME,UAAxB6D,IACFR,UAAQ5B,EAAkBK,SAC1BlB,MACAD,KAAkB,IAKQ,mBAAxBkD,IACFtB,cAAYd,EAAkBK,SAC9BlB,MACD,EA0BGkD,EAAc,CAClB5D,SAxBwB,CAACD,IACzB,IAAI8D,EAAa,EASjB,OARI9D,IAGF8D,EAA+B,iBAAX9D,EAAsBA,EAASA,EAAOC,UAAY,EACzD,WAATQ,IACFqD,GAAc,IAGXA,CAAU,EAcPC,CAAkB/D,GAC5BE,UAZyB,CAACF,GACrBA,EAKsB,iBAAXA,EAAsB,EAAIA,EAAOE,WAAa,EAJrD,EAUE8D,CAAmBhE,IAG1BiE,GAAsBlC,IAC1B,MAAMmC,EAAqBhC,EAAAA,mBACrBiC,EAAY3C,EAAkBK,QAC9BqB,EAAa/B,EAAiBU,QACpC,GAAIsC,IAAcD,GAAsBC,GAAWZ,SAASW,GAC1D,OAAQnC,EAAMI,MACZ,IAAK,SAEH7B,IAAU,CAAE8D,OAAQ,cACpB,MAEF,IAAK,KAGHrC,EAAMK,iBACNL,EAAMM,kBAGFa,GAA2B,aAAbnD,GAChBqD,EAAOA,QAACF,GAIf,EAGHmB,EAAAA,iBAAgB,KACd,GACa,cAAX7B,GAC6B,MAA7BhB,EAAkBK,SACF,MAAhBR,GACS,SAATZ,EAEA,OAEF,MAAM6D,EAAqBC,EAAAA,WAAWC,EAASA,UAACC,iBAC1CC,EAAgBC,iBAAiBnD,EAAkBK,SACzDP,EAAgBoD,EAAcE,iBAAiBN,GAAoB,GAClE,CAAC9B,EAAQhB,EAAmBH,EAAcZ,IAG7C,MAAMoE,UAAEA,GAASC,QAAEA,IAAYC,EAAiBA,kBAACC,EAAiBA,mBAC5DC,GAAuB,cAAXzC,EAEZ0C,GAAiB,IAAIC,OAAOC,OAAOC,EAAAA,0BACnCC,GAAsBC,sBAAoCL,QACrDM,IAAWF,GAAoBrE,GAEpCwE,GAAc,IAEhBC,EAAAA,IACE,MAAA,CAAAxE,IAAK6B,EACL4C,UAAW,EACX/E,KAAMA,EACNgF,UAAWC,EAAAA,WAAW,CAAChB,GAAWC,KAClCgB,MAAON,GACPO,UAAW9B,gBACCpD,EAAS,kBACJC,EAAc,mBACbC,KACdU,EAGJ5B,SAAA6F,EAAAA,IAACM,EAAAA,UAAS,CAACC,iBAAiB,EAAKpG,SAAGA,MAKpCqG,GAA+B,IAC9BvG,GAAcA,EAAUkC,QAQzB6D,MAACS,EAAAA,SAAQ,CACPjF,IAAKqB,EACLkC,gBAAiBpD,EACjB1B,UAAWA,EACXa,UAAWA,EACX4F,YAAavC,EACb1D,YAAaA,EACbC,aAAcA,EACdK,KAAMA,EACNgC,WAAYA,EAAU5C,SACrB4F,OAhBHC,EAAAA,IAACW,EAAAA,cAAa,CAAC7F,UAAWA,EAAqCR,OAAQ6D,WACrE6B,EAAKY,IAAA,MAAA,CAAApF,IAAKqB,EAAsB1C,SAAG4F,SAqB3C,OAAIR,GACe,UAAblF,EACK2F,EAAAY,IAACC,EAAKA,MAAA,CAACzG,OAAQmF,GAAYpF,SAAAqG,OAE3BR,EAAAA,IAACc,EAAAA,MAAK,CAAA3G,SAAEqG,OAEL,IAAI"}
1
+ {"version":3,"file":"Popup-d51bf3f4.js","sources":["../../src/UNSAFE_Popup/Popup.tsx"],"sourcesContent":["import { JSX, RefObject } from 'preact';\nimport { useState, useEffect, useLayoutEffect, useMemo, useRef, useCallback } from 'preact/hooks';\nimport { Floating, Offset, Placement, Coords, FlipOptions, ShiftOptions } from '../UNSAFE_Floating';\nimport {\n FocusableElement,\n focusOn,\n focusWithin,\n getActiveElement\n} from '../utils/PRIVATE_tabbableUtils';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport { FocusTrap } from '../UNSAFE_FocusTrap';\nimport { Layer } from '../UNSAFE_Layer';\nimport { Modal } from '../UNSAFE_Modal';\nimport { WindowOverlay, WindowOverlayPlacement } from '../UNSAFE_WindowOverlay';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { usePopupAnimation } from './usePopupAnimation';\nimport { useTestId, TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { useOutsideClick } from '../hooks/UNSAFE_useOutsideClick';\n\n// Style imports\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { popupVars } from './themes/PopupContract.css';\nimport { getVarName } from '../utils/UNSAFE_stringUtils';\nimport { Property } from 'csstype';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { PopupRedwoodTheme } from './themes/redwood/PopupTheme';\nimport { dimensionInterpolations, DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\n\ntype IntrinsicProps = Pick<JSX.HTMLAttributes<HTMLDivElement>, 'children'>;\n\nexport type PopupPlacement = Placement | WindowOverlayPlacement;\nexport type OnCloseDetail = {\n reason: 'escapeKey';\n};\nexport type InitialFocus = 'auto' | 'none' | 'popup' | 'firstFocusable';\nexport type Tail = 'none' | 'simple';\nexport type Modality = 'modal' | 'modeless';\n\ntype Props = IntrinsicProps &\n DimensionProps &\n TestIdProps & {\n /**\n * Specifies whether the Popup is open.\n */\n isOpen: boolean;\n /**\n * Specifies Popup's anchor. Popup is placed relatively to its anchor.\n */\n anchorRef?: RefObject<Element | Coords>;\n /**\n * Specifies Popup's launcher. After Popup closes, it returns focus to the launcher.\n */\n launcherRef?: RefObject<HTMLElement>;\n /**\n * Specifies placement of the Popup relative to the anchor.\n */\n placement?: PopupPlacement;\n /**\n * Specifies displacement of the Popup from the anchor element placement along the specified axes.\n * The offset object consists of mainAxis and crossAxis properties. The direction in which these properties\n * are applied depends on the current value of the position property.\n *\n * The <code>mainAxis</code> property represents the distance between the Popup and the anchor.\n * The <code>crossAxis</code> property represents the deviation in the opposite axis to the main axis - the skidding between the Popup and the anchor.\n */\n offset?: Offset;\n /**\n * Specifies modality of the Popup.\n */\n modality?: Modality;\n /**\n * Specifies whether a floating Popup changes placement to the opposite side to be kept in view when a collision is detected.\n *\n * The flipOptions object consists of mainAxis and crossAxis properties.\n * The <code>mainAxis</code> runs along the side of the Popup element.\n * The <code>crossAxis</code> runs along the alignment of the Popup element.\n */\n flipOptions?: FlipOptions;\n /**\n * Specifies whether a floating Popup shifts along axis to be kept in view when a collision is detected.\n * Note that if both 'flip' and 'shift' are enabled on respective axis, the flip will take precedence.\n *\n * The shiftOptions object consists of mainAxis and crossAxis properties.\n * The <code>mainAxis</code> runs along the side of the Popup element.\n * The <code>crossAxis</code> runs along the alignment of the Popup element.\n */\n shiftOptions?: ShiftOptions;\n /**\n * Specifies if the Popup sets focus to its content when initially open.\n * A value of none prevents the popup from setting focus when open.\n *\n * <code>auto</code> in modeless mode resolves to none.\n * <code>none</code> prevents the popup from setting focus when open.\n * <code>popup</code> sets focus to the root popup container (good choice for touch platforms).\n * <code>firstFocusable</code> defines that a popup should set focus to the first focusable element within the popup's content.\n */\n initialFocus?: InitialFocus;\n /**\n * Specifies callback triggered when a user clicks outside Popup.\n */\n onClickOutside?: (event: MouseEvent) => void;\n /**\n * Specifies callback triggered when a user tries to close a Popup through UI interaction.\n * The parent should listen to this event and close the Popup. If the parent fails to remove\n * the Popup, then no change will be done in the UI by the component.\n */\n onClose?: (detail: OnCloseDetail) => void;\n /**\n * Specifies callback triggered when initial focus is set or when Popup receives it via F6 key.\n */\n onFocusSet?: () => void;\n /**\n * Specifies Popup's tail. Simple tail is an arrow pointing to Popup's anchor.\n */\n tail?: Tail;\n /**\n * Specifies callback triggered after the animation ends.\n */\n onTransitionEnd?: (value: boolean) => void;\n /**\n * Specifies the ARIA role type. Depending on how the popup is used in the page, the page developer should choose from the following:\n * <code>tooltip</code> defines contextual popup that displays a description for an element. This is added automatically if not already specified.\n * <code>dialog</code> defines an application window that is designed to interrupt the current processing of an application in order to prompt the user to enter information or require a response.\n * <code>alertdialog</code> defines type of dialog that contains an alert message, where initial focus goes to an element within the dialog.\n */\n role?: HTMLAttributesSignalExcluded['role'];\n /**\n * Specifies guidance for screen readers.\n */\n 'aria-label'?: string;\n /**\n * Specifies ID of an element used for guidance for screen readers.\n */\n 'aria-labelledby'?: string;\n /**\n * Specifies ID of an element (or space separated IDs of multiple elements) that\n * describes the Drawer.\n */\n 'aria-describedby'?: string;\n };\n\n/**\n * A popup temporarily 'pops up' content in the foreground.\n */\nexport const Popup = forwardRef(\n (\n {\n anchorRef,\n launcherRef,\n children,\n isOpen = false,\n modality = 'modeless',\n offset = { mainAxis: 0, crossAxis: 0 },\n flipOptions = { mainAxis: true, crossAxis: true },\n shiftOptions = { mainAxis: false, crossAxis: false },\n onClickOutside,\n onClose,\n initialFocus = 'auto',\n placement = anchorRef ? 'top' : 'center',\n tail = 'none',\n onTransitionEnd,\n onFocusSet,\n role = modality === 'modeless' ? 'tooltip' : 'dialog',\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-describedby': ariaDescribedBy,\n testId,\n ...props\n }: Props,\n ref: ForwardedRef<HTMLElement | null>\n ) => {\n const localLauncherRef = useRef<HTMLElement | null>(null);\n const [popupBgColor, setPopupBgColor] = useState<Property.BackgroundColor>();\n\n const contentWrapperRef = useRef<HTMLDivElement | null>(null);\n\n // testId support\n const testIdProps = useTestId(testId);\n\n // We can not merge outsideClick to onClose event with {reason: 'outsideClick'} payload\n // The reason is that we allow outsideClick/autodismiss in modeless mode and\n // we need to detect outsideClick which is\n useOutsideClick({\n isDisabled: !(isOpen && contentWrapperRef.current),\n ref: contentWrapperRef,\n handler: (event) => {\n onClickOutside?.(event);\n }\n });\n\n const launcherKeyDownCallback = useCallback(\n (event: KeyboardEvent): void => {\n if (\n localLauncherRef.current === getActiveElement() &&\n event.code === 'F6' &&\n modality === 'modeless'\n ) {\n // Prevent default F6 handlers.\n // F6 is a standard Chrome address bar shortcut on Windows.\n event.preventDefault();\n event.stopPropagation();\n\n focusWithin(contentWrapperRef.current as HTMLElement);\n onFocusSet?.();\n }\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [modality]\n );\n\n const _onTransitionEnd = (isOpen: boolean) => {\n if (isOpen) {\n setInitialFocus();\n onTransitionEnd?.(true);\n } else {\n // JET-71010 - for modal popups, the focus cannot be moved until the modal overlay is gone\n if (modality === 'modal') {\n setTimeout(() => returnFocus(), 0);\n }\n onTransitionEnd?.(false);\n }\n };\n\n // Animation\n const { setAnimationElementRef, status, onPosition } = usePopupAnimation({\n isOpen,\n isAnimatedOnMount: true,\n onTransitionEnd: _onTransitionEnd,\n placement: placement\n });\n const stableRef = useMemo(() => mergeRefs(contentWrapperRef, ref), [contentWrapperRef, ref]);\n\n const returnFocus = useCallback((): void => {\n // Try to return focus to 1.launcher or 2.anchor\n const launcherEl = localLauncherRef.current;\n const anchorEl = anchorRef?.current;\n\n if (launcherEl) {\n focusOn(launcherEl);\n // Checking instanceof to avoid Coords type that can not be focused\n } else if (anchorEl && anchorEl instanceof Element) {\n focusOn(anchorEl as FocusableElement);\n }\n }, [localLauncherRef, anchorRef]);\n\n useEffect(() => {\n // Init closing\n // JET-71010 - for modal popups, the focus cannot be moved until the modal overlay is gone\n if (!isOpen && status === 'opening' && modality !== 'modal') {\n // Only actively return focus to the launcher or anchor if the popup contained focus.\n // Otherwise, focus is already elsewhere on the page and should not be forced back\n // because that could reopen the popup again, which essentially prevents the user from\n // moving focus out of the launcher.\n if (contentWrapperRef.current?.contains(getActiveElement())) {\n returnFocus();\n }\n }\n }, [isOpen, status, returnFocus, modality]);\n\n // Initialize launcher\n useEffect(() => {\n if (isOpen) {\n if (!launcherRef?.current) {\n // 1. If launcher is not defined, most frequent scenario is,\n // that element, that has focus before opening a popup is considered launcher\n localLauncherRef.current = getActiveElement() as HTMLElement;\n } else if (launcherRef.current instanceof Element) {\n // 2. launcherRef element was provided.\n // Verify, if it exists in DOM, otherwise use the last active element\n localLauncherRef.current = document.body.contains(launcherRef.current)\n ? launcherRef.current\n : (getActiveElement() as HTMLElement);\n } else {\n localLauncherRef.current = getActiveElement() as HTMLElement;\n }\n // Register F6 key handler to enter the Popup\n localLauncherRef.current?.addEventListener('keydown', launcherKeyDownCallback);\n }\n return () => {\n // Deregister F6 key handler\n localLauncherRef.current?.removeEventListener('keydown', launcherKeyDownCallback);\n };\n }, [isOpen, launcherRef, launcherKeyDownCallback]);\n // Note: unlike oj-c-popup we do not default anchorRef to launcherRef in Preact Popup\n // If anchorRef is undefined, we use WindowOverlay as anchor\n\n const setInitialFocus = () => {\n let derivedInitialFocus = initialFocus;\n if (initialFocus === 'auto') {\n if (modality === 'modal') {\n // modal mode - set focus to first focusable\n derivedInitialFocus = 'firstFocusable';\n } else {\n // modeless mode - do not steal focus by default\n derivedInitialFocus = 'none';\n }\n }\n\n // Case: 'popup'\n // Focus on Popup container\n if (derivedInitialFocus === 'popup') {\n focusOn(contentWrapperRef.current as HTMLElement);\n onFocusSet?.();\n onTransitionEnd?.(false);\n }\n\n // Case: 'firstFocusable'\n // Focus on first tabbable in the Popup container or container itself if there is none\n if (derivedInitialFocus === 'firstFocusable') {\n focusWithin(contentWrapperRef.current as HTMLElement);\n onFocusSet?.();\n }\n };\n\n const getMainAxisOffset = (offset?: Offset) => {\n let calcOffset = 0;\n if (offset) {\n // @ts-ignore as OffsetFunction is going to be removed\n // Property 'mainAxis' does not exist on type 'OffsetFunction'.\n calcOffset = typeof offset === 'number' ? offset : offset.mainAxis || 0;\n if (tail === 'simple') {\n calcOffset += 5;\n }\n }\n return calcOffset;\n };\n\n const getCrossAxisOffset = (offset?: Offset) => {\n if (!offset) {\n return 0;\n } else {\n // @ts-ignore as OffsetFunction is going to be removed\n // Property 'crossAxis' does not exist on type 'OffsetFunction'.\n return typeof offset === 'number' ? 0 : offset.crossAxis || 0;\n }\n };\n\n const finalOffset = {\n mainAxis: getMainAxisOffset(offset),\n crossAxis: getCrossAxisOffset(offset)\n };\n\n const handlePopupKeyDown = (event: KeyboardEvent) => {\n const currentlyFocusedEl = getActiveElement();\n const wrapperEl = contentWrapperRef.current;\n const launcherEl = localLauncherRef.current;\n if (wrapperEl === currentlyFocusedEl || wrapperEl?.contains(currentlyFocusedEl)) {\n switch (event.code) {\n case 'Escape': {\n // Trigger onClose event with outside click detail\n onClose?.({ reason: 'escapeKey' });\n break;\n }\n case 'F6':\n // Prevent default F6 handlers.\n // F6 is a standard Chrome address bar shortcut on Windows.\n event.preventDefault();\n event.stopPropagation();\n\n // Focus launcher\n if (launcherEl && modality === 'modeless') {\n focusOn(launcherEl);\n }\n break;\n }\n }\n };\n\n useLayoutEffect(() => {\n if (\n status === 'unmounted' ||\n contentWrapperRef.current == null ||\n popupBgColor != null ||\n tail === 'none'\n )\n return;\n\n const backgroundColorVar = getVarName(popupVars.backgroundColor);\n const computedStyle = getComputedStyle(contentWrapperRef.current!);\n setPopupBgColor(computedStyle.getPropertyValue(backgroundColorVar));\n }, [status, contentWrapperRef, popupBgColor, tail]);\n\n // Styles\n const { baseTheme, classes } = useComponentTheme(PopupRedwoodTheme);\n const isMounted = status !== 'unmounted';\n\n const interpolations = [...Object.values(dimensionInterpolations)];\n const styleInterpolations = mergeInterpolations<DimensionProps>(interpolations);\n const { ...styles } = styleInterpolations(props);\n\n const renderPopup = () => {\n return (\n <div\n ref={stableRef}\n tabIndex={-1}\n role={role}\n className={classNames([baseTheme, classes])}\n style={styles}\n onKeyDown={handlePopupKeyDown}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedBy}\n {...testIdProps}>\n {/*Setting restoreFocusRef to false because otherwise FocusTrap is stealing the focus back when :*/}\n {/*we click outside of modeless Popup (that keeps being open).*/}\n <FocusTrap restoreFocusRef={false}>{children}</FocusTrap>\n </div>\n );\n };\n\n const renderFloatingOrOverlayPopup = () => {\n if (!anchorRef || !anchorRef.current) {\n return (\n <WindowOverlay placement={placement as WindowOverlayPlacement} offset={finalOffset}>\n <div ref={setAnimationElementRef}>{renderPopup()}</div>\n </WindowOverlay>\n );\n } else {\n return (\n <Floating\n ref={setAnimationElementRef}\n backgroundColor={popupBgColor}\n anchorRef={anchorRef}\n placement={placement as Placement}\n offsetValue={finalOffset}\n flipOptions={flipOptions}\n shiftOptions={shiftOptions}\n tail={tail}\n onPosition={onPosition}>\n {renderPopup()}\n </Floating>\n );\n }\n };\n\n if (isMounted) {\n if (modality === 'modal') {\n return <Modal isOpen={isMounted}>{renderFloatingOrOverlayPopup()}</Modal>;\n } else {\n return <Layer>{renderFloatingOrOverlayPopup()}</Layer>;\n }\n } else return null;\n }\n);\n"],"names":["Popup","forwardRef","anchorRef","launcherRef","children","isOpen","modality","offset","mainAxis","crossAxis","flipOptions","shiftOptions","onClickOutside","onClose","initialFocus","placement","tail","onTransitionEnd","onFocusSet","role","ariaLabel","ariaLabelledBy","ariaDescribedBy","testId","props","ref","localLauncherRef","useRef","popupBgColor","setPopupBgColor","useState","contentWrapperRef","testIdProps","useTestId","useOutsideClick","isDisabled","current","handler","event","launcherKeyDownCallback","useCallback","getActiveElement","code","preventDefault","stopPropagation","focusWithin","setAnimationElementRef","status","onPosition","usePopupAnimation","isAnimatedOnMount","setInitialFocus","setTimeout","returnFocus","stableRef","useMemo","mergeRefs","launcherEl","anchorEl","focusOn","Element","useEffect","contains","document","body","addEventListener","removeEventListener","derivedInitialFocus","finalOffset","calcOffset","getMainAxisOffset","getCrossAxisOffset","handlePopupKeyDown","currentlyFocusedEl","wrapperEl","reason","useLayoutEffect","backgroundColorVar","getVarName","popupVars","backgroundColor","computedStyle","getComputedStyle","getPropertyValue","baseTheme","classes","useComponentTheme","PopupRedwoodTheme","isMounted","interpolations","Object","values","dimensionInterpolations","styleInterpolations","mergeInterpolations","styles","renderPopup","_jsx","tabIndex","className","classNames","style","onKeyDown","FocusTrap","restoreFocusRef","renderFloatingOrOverlayPopup","Floating","offsetValue","WindowOverlay","jsx","Modal","Layer"],"mappings":"knBAkJa,MAAAA,EAAQC,EAAAA,YACnB,EAEIC,YACAC,cACAC,WACAC,UAAS,EACTC,WAAW,WACXC,SAAS,CAAEC,SAAU,EAAGC,UAAW,GACnCC,cAAc,CAAEF,UAAU,EAAMC,WAAW,GAC3CE,eAAe,CAAEH,UAAU,EAAOC,WAAW,GAC7CG,iBACAC,UACAC,eAAe,OACfC,aAAYb,EAAY,MAAQ,UAChCc,OAAO,OACPC,kBACAC,aACAC,QAAoB,aAAbb,EAA0B,UAAY,UAC7C,aAAcc,EACd,kBAAmBC,EACnB,mBAAoBC,EACpBC,YACGC,GAELC,KAEA,MAAMC,EAAmBC,SAA2B,OAC7CC,EAAcC,GAAmBC,EAAQA,WAE1CC,EAAoBJ,SAA8B,MAGlDK,EAAcC,YAAUV,GAK9BW,kBAAgB,CACdC,aAAc9B,GAAU0B,EAAkBK,SAC1CX,IAAKM,EACLM,QAAUC,IACR1B,IAAiB0B,EAAM,IAI3B,MAAMC,EAA0BC,eAC7BF,IAEGZ,EAAiBU,UAAYK,sBACd,OAAfH,EAAMI,MACO,aAAbpC,IAIAgC,EAAMK,iBACNL,EAAMM,kBAENC,cAAYd,EAAkBK,SAC9BlB,MACD,GAGH,CAACZ,KAiBGwC,uBAAEA,EAAsBC,OAAEA,EAAMC,WAAEA,GAAeC,EAAAA,kBAAkB,CACvE5C,SACA6C,mBAAmB,EACnBjC,gBAjBwBZ,IACpBA,GACF8C,IACAlC,KAAkB,KAGD,UAAbX,GACF8C,YAAW,IAAMC,KAAe,GAElCpC,KAAkB,GACnB,EAQDF,UAAWA,IAEPuC,EAAYC,WAAQ,IAAMC,YAAUzB,EAAmBN,IAAM,CAACM,EAAmBN,IAEjF4B,EAAcb,EAAAA,aAAY,KAE9B,MAAMiB,EAAa/B,EAAiBU,QAC9BsB,EAAWxD,GAAWkC,QAExBqB,EACFE,EAAOA,QAACF,GAECC,GAAYA,aAAoBE,SACzCD,EAAOA,QAACD,EACT,GACA,CAAChC,EAAkBxB,IAEtB2D,EAAAA,WAAU,KAGHxD,GAAqB,YAAX0C,GAAqC,UAAbzC,GAKjCyB,EAAkBK,SAAS0B,SAASrB,EAAAA,qBACtCY,GAEH,GACA,CAAChD,EAAQ0C,EAAQM,EAAa/C,IAGjCuD,EAAAA,WAAU,KACJxD,IACGF,GAAaiC,SAIPjC,EAAYiC,mBAAmBwB,QAGxClC,EAAiBU,QAAU2B,SAASC,KAAKF,SAAS3D,EAAYiC,SAC1DjC,EAAYiC,QACXK,EAAAA,mBANLf,EAAiBU,QAAUK,EAAAA,mBAW7Bf,EAAiBU,SAAS6B,iBAAiB,UAAW1B,IAEjD,KAELb,EAAiBU,SAAS8B,oBAAoB,UAAW3B,EAAwB,IAElF,CAAClC,EAAQF,EAAaoC,IAIzB,MAAMY,EAAkB,KACtB,IAAIgB,EAAsBrD,EACL,SAAjBA,IAGAqD,EAFe,UAAb7D,EAEoB,iBAGA,QAME,UAAxB6D,IACFR,UAAQ5B,EAAkBK,SAC1BlB,MACAD,KAAkB,IAKQ,mBAAxBkD,IACFtB,cAAYd,EAAkBK,SAC9BlB,MACD,EA0BGkD,EAAc,CAClB5D,SAxBwB,CAACD,IACzB,IAAI8D,EAAa,EASjB,OARI9D,IAGF8D,EAA+B,iBAAX9D,EAAsBA,EAASA,EAAOC,UAAY,EACzD,WAATQ,IACFqD,GAAc,IAGXA,CAAU,EAcPC,CAAkB/D,GAC5BE,UAZyB,CAACF,GACrBA,EAKsB,iBAAXA,EAAsB,EAAIA,EAAOE,WAAa,EAJrD,EAUE8D,CAAmBhE,IAG1BiE,GAAsBlC,IAC1B,MAAMmC,EAAqBhC,EAAAA,mBACrBiC,EAAY3C,EAAkBK,QAC9BqB,EAAa/B,EAAiBU,QACpC,GAAIsC,IAAcD,GAAsBC,GAAWZ,SAASW,GAC1D,OAAQnC,EAAMI,MACZ,IAAK,SAEH7B,IAAU,CAAE8D,OAAQ,cACpB,MAEF,IAAK,KAGHrC,EAAMK,iBACNL,EAAMM,kBAGFa,GAA2B,aAAbnD,GAChBqD,EAAOA,QAACF,GAIf,EAGHmB,EAAAA,iBAAgB,KACd,GACa,cAAX7B,GAC6B,MAA7BhB,EAAkBK,SACF,MAAhBR,GACS,SAATZ,EAEA,OAEF,MAAM6D,EAAqBC,EAAAA,WAAWC,EAASA,UAACC,iBAC1CC,EAAgBC,iBAAiBnD,EAAkBK,SACzDP,EAAgBoD,EAAcE,iBAAiBN,GAAoB,GAClE,CAAC9B,EAAQhB,EAAmBH,EAAcZ,IAG7C,MAAMoE,UAAEA,GAASC,QAAEA,IAAYC,EAAiBA,kBAACC,EAAiBA,mBAC5DC,GAAuB,cAAXzC,EAEZ0C,GAAiB,IAAIC,OAAOC,OAAOC,EAAAA,0BACnCC,GAAsBC,sBAAoCL,QACrDM,IAAWF,GAAoBrE,GAEpCwE,GAAc,IAEhBC,EAAAA,IACE,MAAA,CAAAxE,IAAK6B,EACL4C,UAAW,EACX/E,KAAMA,EACNgF,UAAWC,EAAAA,WAAW,CAAChB,GAAWC,KAClCgB,MAAON,GACPO,UAAW9B,gBACCpD,EAAS,kBACJC,EAAc,mBACbC,KACdU,EAGJ5B,SAAA6F,EAAAA,IAACM,EAAAA,UAAS,CAACC,iBAAiB,EAAKpG,SAAGA,MAKpCqG,GAA+B,IAC9BvG,GAAcA,EAAUkC,QAQzB6D,MAACS,EAAAA,SAAQ,CACPjF,IAAKqB,EACLkC,gBAAiBpD,EACjB1B,UAAWA,EACXa,UAAWA,EACX4F,YAAavC,EACb1D,YAAaA,EACbC,aAAcA,EACdK,KAAMA,EACNgC,WAAYA,EAAU5C,SACrB4F,OAhBHC,EAAAA,IAACW,EAAAA,cAAa,CAAC7F,UAAWA,EAAqCR,OAAQ6D,WACrE6B,EAAKY,IAAA,MAAA,CAAApF,IAAKqB,EAAsB1C,SAAG4F,SAqB3C,OAAIR,GACe,UAAblF,EACK2F,EAAAY,IAACC,EAAKA,MAAA,CAACzG,OAAQmF,GAAYpF,SAAAqG,OAE3BR,EAAAA,IAACc,EAAAA,MAAK,CAAA3G,SAAEqG,OAEL,IAAI"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './useUser-3ef25571', './useTranslationBundle-d07d4b20', './useComponentTheme-5aa41a8f', './UNSAFE_ProgressBar/themes/redwood/ProgressBarTheme', './LinearMeter-d1e744c1'], (function(e,a,r,s,l,o,n,t){"use strict";const i=({id:e,width:i,edge:d="none",...c})=>{const{classes:u,styles:{valueStyle:m,indeterminate:g,animationStyleLTR:h,animationStyleRTL:v,highContrastValueStyle:b,trackBorderEdgeNone:x,trackBorderEdgeTop:B}}=o.useComponentTheme(n.ProgressBarRedwoodTheme,{edge:"none"===d?d:void 0}),{direction:T,forcedColors:p}=s.useUser(),y=r.classNames([m,g,"rtl"===T?v:h,"active"===p?b:""]),j=l.useTranslationBundle("@oracle/oraclejet-preact"),N={"aria-valuetext":c["aria-valuetext"]||j.progressIndeterminate(),"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],role:"progressbar"},f="active"===p?void 0:"none"===d?x:B;return a.jsx(t.BarTrack,{id:e,ariaProps:N,class:r.classNames([u,f]),length:i,children:a.jsx(t.BarValue,{class:y})})},d=({value:e=0,max:l=100,id:i,width:d,edge:c="none",...u})=>{const{forcedColors:m}=s.useUser(),{classes:g,styles:{valueStyle:h,highContrastValueStyle:v,trackBorderEdgeNone:b,trackBorderEdgeTop:x}}=o.useComponentTheme(n.ProgressBarRedwoodTheme,{edge:"none"===c?c:void 0}),B=r.classNames([h,"active"===m?v:""]),T=100*Math.min(Math.max(0,e/l),1)+"%",p={};return p["aria-valuemin"]=null!=e?0:void 0,p["aria-valuemax"]=null!=e?l:void 0,p["aria-valuenow"]=null!=e?e:void 0,p.role="progressbar",p["aria-label"]=u["aria-label"],p["aria-labelledby"]=u["aria-labelledby"],a.jsx(t.BarTrack,{ariaProps:p,id:i,length:d,class:r.classNames([g,"none"===c?b:x]),children:a.jsx(t.BarValue,{class:B,length:T})})};e.ProgressBar=function({value:e,max:r,...s}){return"indeterminate"===e?a.jsx(i,{...s}):a.jsx(d,{value:e,max:r,...s})}}));
2
- //# sourceMappingURL=ProgressBar-e72c5a67.js.map
1
+ define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './useUser-85c781ea', './useTranslationBundle-516b1b83', './useComponentTheme-5aa41a8f', './UNSAFE_ProgressBar/themes/redwood/ProgressBarTheme', './LinearMeter-d1e744c1'], (function(e,a,r,s,l,o,n,t){"use strict";const i=({id:e,width:i,edge:d="none",...c})=>{const{classes:u,styles:{valueStyle:m,indeterminate:g,animationStyleLTR:h,animationStyleRTL:v,highContrastValueStyle:b,trackBorderEdgeNone:x,trackBorderEdgeTop:B}}=o.useComponentTheme(n.ProgressBarRedwoodTheme,{edge:"none"===d?d:void 0}),{direction:T,forcedColors:p}=s.useUser(),y=r.classNames([m,g,"rtl"===T?v:h,"active"===p?b:""]),j=l.useTranslationBundle("@oracle/oraclejet-preact"),N={"aria-valuetext":c["aria-valuetext"]||j.progressIndeterminate(),"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],role:"progressbar"},C="active"===p?void 0:"none"===d?x:B;return a.jsx(t.BarTrack,{id:e,ariaProps:N,class:r.classNames([u,C]),length:i,children:a.jsx(t.BarValue,{class:y})})},d=({value:e=0,max:l=100,id:i,width:d,edge:c="none",...u})=>{const{forcedColors:m}=s.useUser(),{classes:g,styles:{valueStyle:h,highContrastValueStyle:v,trackBorderEdgeNone:b,trackBorderEdgeTop:x}}=o.useComponentTheme(n.ProgressBarRedwoodTheme,{edge:"none"===c?c:void 0}),B=r.classNames([h,"active"===m?v:""]),T=100*Math.min(Math.max(0,e/l),1)+"%",p={};return p["aria-valuemin"]=null!=e?0:void 0,p["aria-valuemax"]=null!=e?l:void 0,p["aria-valuenow"]=null!=e?e:void 0,p.role="progressbar",p["aria-label"]=u["aria-label"],p["aria-labelledby"]=u["aria-labelledby"],a.jsx(t.BarTrack,{ariaProps:p,id:i,length:d,class:r.classNames([g,"none"===c?b:x]),children:a.jsx(t.BarValue,{class:B,length:T})})};e.ProgressBar=function({value:e,max:r,...s}){return"indeterminate"===e?a.jsx(i,{...s}):a.jsx(d,{value:e,max:r,...s})}}));
2
+ //# sourceMappingURL=ProgressBar-3f4cd8d6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar-e72c5a67.js","sources":["../../src/UNSAFE_ProgressBar/ProgressBar.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentProps } from 'preact';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '#resources/nls/bundle';\nimport { BarTrack, BarValue } from '#PRIVATE_Meter';\nimport { HTMLAttributesSignalExcluded } from '#utils/UNSAFE_attributeUtils';\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport { ProgressBarStyles, ProgressBarVariantOptions } from './themes/ProgressBarStyles.css';\nimport { ProgressBarRedwoodTheme } from './themes/redwood/ProgressBarTheme';\n\ntype ariaPropsType = ComponentProps<typeof BarTrack>['ariaProps'];\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'class'>;\n\ntype ProgressBarProps = IntrinsicProps & {\n /**\n * Specifies the id of the progress bar. If the progress bar is being used to describe the loading process of a particular region\n * of the page, then the aria-describedby attribute of the region must point to the id of the ProgressBar\n */\n id?: HTMLAttributesSignalExcluded<HTMLDivElement>['id'];\n /**\n * The value of the progress bar. If the value is 'indeterminate', an indeterminate progress bar will be shown.\n */\n value?: 'indeterminate' | number;\n\n /**\n * Whether the progress bar is positioned at the top edge of a container or not.\n * If set to 'top', the curved borders will be removed.\n */\n edge?: 'none' | 'top';\n\n /**\n * The maximum value of the progress bar.\n */\n max?: number;\n /**\n * The width of the progress bar. This will use the CSS lengths styling.\n */\n // TODO: use the dimensions work the Jeanne is doing JET-49961\n width?: string;\n\n /**\n * A label to be used for accessibility purposes when value is set to 'indeterminate'. This will be used for the aria-valuetext of the DOM element.\n */\n 'aria-valuetext'?: string;\n /**\n * A label to be used for accessibility purposes. This will be used for the aria-label of the DOM element.\n */\n 'aria-label'?: string;\n\n /**\n * One or more ids (separated by spaces) of elements that label the progress bar. This will be used for the aria-labelledby of the DOM element.\n */\n 'aria-labelledby'?: string;\n};\n/**\n * A progress bar allows the user to visualize the progression of an extended computer operation.\n */\nexport function ProgressBar({ value, max, ...otherProps }: ProgressBarProps) {\n return value === 'indeterminate' ? (\n <IndeterminateProgressBar {...otherProps} />\n ) : (\n <DeterminateProgressBar value={value} max={max} {...otherProps} />\n );\n}\n\ntype IndeterminateProps = Omit<ProgressBarProps, 'value' | 'max'>;\n\nconst IndeterminateProgressBar = ({ id, width, edge = 'none', ...props }: IndeterminateProps) => {\n const {\n classes,\n styles: {\n valueStyle,\n indeterminate,\n animationStyleLTR,\n animationStyleRTL,\n highContrastValueStyle,\n trackBorderEdgeNone,\n trackBorderEdgeTop\n }\n } = useComponentTheme<ProgressBarVariantOptions, ProgressBarStyles>(ProgressBarRedwoodTheme, {\n edge: edge === 'none' ? edge : undefined\n });\n\n const { direction, forcedColors } = useUser();\n const barValueClasses = classNames([\n valueStyle,\n indeterminate,\n direction === 'rtl' ? animationStyleRTL : animationStyleLTR,\n forcedColors === 'active' ? highContrastValueStyle : ''\n ]);\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const ariaProps: ariaPropsType = {\n 'aria-valuetext': props['aria-valuetext'] || translations.progressIndeterminate(),\n 'aria-label': props['aria-label'],\n 'aria-labelledby': props['aria-labelledby'],\n role: 'progressbar'\n };\n const trackBorderClass =\n forcedColors === 'active'\n ? undefined\n : edge === 'none'\n ? trackBorderEdgeNone\n : trackBorderEdgeTop;\n return (\n <BarTrack\n id={id}\n ariaProps={ariaProps}\n class={classNames([classes, trackBorderClass])}\n length={width}>\n <BarValue class={barValueClasses} />\n </BarTrack>\n );\n};\n\ntype DeterminateProps = Omit<ProgressBarProps, 'aria-valuetext'> & {\n value?: number;\n};\n\nconst DeterminateProgressBar = ({\n value = 0,\n max = 100,\n id,\n width,\n edge = 'none',\n ...props\n}: DeterminateProps) => {\n const { forcedColors } = useUser();\n const {\n classes,\n styles: { valueStyle, highContrastValueStyle, trackBorderEdgeNone, trackBorderEdgeTop }\n } = useComponentTheme<ProgressBarVariantOptions, ProgressBarStyles>(ProgressBarRedwoodTheme, {\n edge: edge === 'none' ? edge : undefined\n });\n\n const barValueClasses = classNames([\n valueStyle,\n forcedColors === 'active' ? highContrastValueStyle : ''\n ]);\n\n const percentage = `${Math.min(Math.max(0, value / max), 1) * 100}%`;\n const ariaProps: ariaPropsType = {};\n ariaProps['aria-valuemin'] = value != null ? 0 : undefined;\n ariaProps['aria-valuemax'] = value != null ? max : undefined;\n ariaProps['aria-valuenow'] = value != null ? value : undefined;\n ariaProps['role'] = 'progressbar';\n (ariaProps['aria-label'] = props['aria-label']),\n (ariaProps['aria-labelledby'] = props['aria-labelledby']);\n return (\n <BarTrack\n ariaProps={ariaProps}\n id={id}\n length={width}\n class={classNames([classes, edge === 'none' ? trackBorderEdgeNone : trackBorderEdgeTop])}>\n <BarValue class={barValueClasses} length={percentage} />\n </BarTrack>\n );\n};\n"],"names":["IndeterminateProgressBar","id","width","edge","props","classes","styles","valueStyle","indeterminate","animationStyleLTR","animationStyleRTL","highContrastValueStyle","trackBorderEdgeNone","trackBorderEdgeTop","useComponentTheme","ProgressBarRedwoodTheme","undefined","direction","forcedColors","useUser","barValueClasses","classNames","translations","useTranslationBundle","ariaProps","progressIndeterminate","role","trackBorderClass","_jsx","jsx","BarTrack","class","length","children","BarValue","DeterminateProgressBar","value","max","percentage","Math","min","otherProps"],"mappings":"8QA4EA,MAAMA,EAA2B,EAAGC,KAAIC,QAAOC,OAAO,UAAWC,MAC/D,MAAMC,QACJA,EACAC,QAAQC,WACNA,EAAUC,cACVA,EAAaC,kBACbA,EAAiBC,kBACjBA,EAAiBC,uBACjBA,EAAsBC,oBACtBA,EAAmBC,mBACnBA,IAEAC,EAAAA,kBAAgEC,EAAAA,wBAAyB,CAC3FZ,KAAe,SAATA,EAAkBA,OAAOa,KAG3BC,UAAEA,EAASC,aAAEA,GAAiBC,EAAOA,UACrCC,EAAkBC,EAAAA,WAAW,CACjCd,EACAC,EACc,QAAdS,EAAsBP,EAAoBD,EACzB,WAAjBS,EAA4BP,EAAyB,KAEjDW,EAAeC,uBAAiC,4BAChDC,EAA2B,CAC/B,iBAAkBpB,EAAM,mBAAqBkB,EAAaG,wBAC1D,aAAcrB,EAAM,cACpB,kBAAmBA,EAAM,mBACzBsB,KAAM,eAEFC,EACa,WAAjBT,OACIF,EACS,SAATb,EACAS,EACAC,EACN,OACEe,EAACC,IAAAC,WACC,CAAA7B,GAAIA,EACJuB,UAAWA,EACXO,MAAOV,EAAUA,WAAC,CAAChB,EAASsB,IAC5BK,OAAQ9B,EACR+B,SAAAL,EAAAC,IAACK,WAAQ,CAACH,MAAOX,KAEnB,EAOEe,EAAyB,EAC7BC,QAAQ,EACRC,MAAM,IACNpC,KACAC,QACAC,OAAO,UACJC,MAEH,MAAMc,aAAEA,GAAiBC,EAAAA,WACnBd,QACJA,EACAC,QAAQC,WAAEA,EAAUI,uBAAEA,EAAsBC,oBAAEA,EAAmBC,mBAAEA,IACjEC,EAAiBA,kBAA+CC,0BAAyB,CAC3FZ,KAAe,SAATA,EAAkBA,OAAOa,IAG3BI,EAAkBC,EAAAA,WAAW,CACjCd,EACiB,WAAjBW,EAA4BP,EAAyB,KAGjD2B,EAAwD,IAAxCC,KAAKC,IAAID,KAAKF,IAAI,EAAGD,EAAQC,GAAM,GAAtC,IACbb,EAA2B,CAAA,EAOjC,OANAA,EAAU,iBAA4B,MAATY,EAAgB,OAAIpB,EACjDQ,EAAU,iBAA4B,MAATY,EAAgBC,OAAMrB,EACnDQ,EAAU,iBAA4B,MAATY,EAAgBA,OAAQpB,EACrDQ,EAAgB,KAAI,cACnBA,EAAU,cAAgBpB,EAAM,cAC9BoB,EAAU,mBAAqBpB,EAAM,mBAEtCwB,MAACE,EAAQA,SAAA,CACPN,UAAWA,EACXvB,GAAIA,EACJ+B,OAAQ9B,EACR6B,MAAOV,EAAUA,WAAC,CAAChB,EAAkB,SAATF,EAAkBS,EAAsBC,IACpEoB,SAAAL,EAAAA,IAACM,EAAAA,SAAS,CAAAH,MAAOX,EAAiBY,OAAQM,KAE5C,gBAlGE,UAAsBF,MAAEA,EAAKC,IAAEA,KAAQI,IAC3C,MAAiB,kBAAVL,EACLR,EAAAC,IAAC7B,EAAwB,IAAKyC,IAE9Bb,EAAAA,IAACO,EAAuB,CAAAC,MAAOA,EAAOC,IAAKA,KAASI,GAExD"}
1
+ {"version":3,"file":"ProgressBar-3f4cd8d6.js","sources":["../../src/UNSAFE_ProgressBar/ProgressBar.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentProps } from 'preact';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '#resources/nls/bundle';\nimport { BarTrack, BarValue } from '#PRIVATE_Meter';\nimport { HTMLAttributesSignalExcluded } from '#utils/UNSAFE_attributeUtils';\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport { ProgressBarStyles, ProgressBarVariantOptions } from './themes/ProgressBarStyles.css';\nimport { ProgressBarRedwoodTheme } from './themes/redwood/ProgressBarTheme';\n\ntype ariaPropsType = ComponentProps<typeof BarTrack>['ariaProps'];\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'class'>;\n\ntype ProgressBarProps = IntrinsicProps & {\n /**\n * Specifies the id of the progress bar. If the progress bar is being used to describe the loading process of a particular region\n * of the page, then the aria-describedby attribute of the region must point to the id of the ProgressBar\n */\n id?: HTMLAttributesSignalExcluded<HTMLDivElement>['id'];\n /**\n * The value of the progress bar. If the value is 'indeterminate', an indeterminate progress bar will be shown.\n */\n value?: 'indeterminate' | number;\n\n /**\n * Whether the progress bar is positioned at the top edge of a container or not.\n * If set to 'top', the curved borders will be removed.\n */\n edge?: 'none' | 'top';\n\n /**\n * The maximum value of the progress bar.\n */\n max?: number;\n /**\n * The width of the progress bar. This will use the CSS lengths styling.\n */\n // TODO: use the dimensions work the Jeanne is doing JET-49961\n width?: string;\n\n /**\n * A label to be used for accessibility purposes when value is set to 'indeterminate'. This will be used for the aria-valuetext of the DOM element.\n */\n 'aria-valuetext'?: string;\n /**\n * A label to be used for accessibility purposes. This will be used for the aria-label of the DOM element.\n */\n 'aria-label'?: string;\n\n /**\n * One or more ids (separated by spaces) of elements that label the progress bar. This will be used for the aria-labelledby of the DOM element.\n */\n 'aria-labelledby'?: string;\n};\n/**\n * A progress bar allows the user to visualize the progression of an extended computer operation.\n */\nexport function ProgressBar({ value, max, ...otherProps }: ProgressBarProps) {\n return value === 'indeterminate' ? (\n <IndeterminateProgressBar {...otherProps} />\n ) : (\n <DeterminateProgressBar value={value} max={max} {...otherProps} />\n );\n}\n\ntype IndeterminateProps = Omit<ProgressBarProps, 'value' | 'max'>;\n\nconst IndeterminateProgressBar = ({ id, width, edge = 'none', ...props }: IndeterminateProps) => {\n const {\n classes,\n styles: {\n valueStyle,\n indeterminate,\n animationStyleLTR,\n animationStyleRTL,\n highContrastValueStyle,\n trackBorderEdgeNone,\n trackBorderEdgeTop\n }\n } = useComponentTheme<ProgressBarVariantOptions, ProgressBarStyles>(ProgressBarRedwoodTheme, {\n edge: edge === 'none' ? edge : undefined\n });\n\n const { direction, forcedColors } = useUser();\n const barValueClasses = classNames([\n valueStyle,\n indeterminate,\n direction === 'rtl' ? animationStyleRTL : animationStyleLTR,\n forcedColors === 'active' ? highContrastValueStyle : ''\n ]);\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const ariaProps: ariaPropsType = {\n 'aria-valuetext': props['aria-valuetext'] || translations.progressIndeterminate(),\n 'aria-label': props['aria-label'],\n 'aria-labelledby': props['aria-labelledby'],\n role: 'progressbar'\n };\n const trackBorderClass =\n forcedColors === 'active'\n ? undefined\n : edge === 'none'\n ? trackBorderEdgeNone\n : trackBorderEdgeTop;\n return (\n <BarTrack\n id={id}\n ariaProps={ariaProps}\n class={classNames([classes, trackBorderClass])}\n length={width}>\n <BarValue class={barValueClasses} />\n </BarTrack>\n );\n};\n\ntype DeterminateProps = Omit<ProgressBarProps, 'aria-valuetext'> & {\n value?: number;\n};\n\nconst DeterminateProgressBar = ({\n value = 0,\n max = 100,\n id,\n width,\n edge = 'none',\n ...props\n}: DeterminateProps) => {\n const { forcedColors } = useUser();\n const {\n classes,\n styles: { valueStyle, highContrastValueStyle, trackBorderEdgeNone, trackBorderEdgeTop }\n } = useComponentTheme<ProgressBarVariantOptions, ProgressBarStyles>(ProgressBarRedwoodTheme, {\n edge: edge === 'none' ? edge : undefined\n });\n\n const barValueClasses = classNames([\n valueStyle,\n forcedColors === 'active' ? highContrastValueStyle : ''\n ]);\n\n const percentage = `${Math.min(Math.max(0, value / max), 1) * 100}%`;\n const ariaProps: ariaPropsType = {};\n ariaProps['aria-valuemin'] = value != null ? 0 : undefined;\n ariaProps['aria-valuemax'] = value != null ? max : undefined;\n ariaProps['aria-valuenow'] = value != null ? value : undefined;\n ariaProps['role'] = 'progressbar';\n (ariaProps['aria-label'] = props['aria-label']),\n (ariaProps['aria-labelledby'] = props['aria-labelledby']);\n return (\n <BarTrack\n ariaProps={ariaProps}\n id={id}\n length={width}\n class={classNames([classes, edge === 'none' ? trackBorderEdgeNone : trackBorderEdgeTop])}>\n <BarValue class={barValueClasses} length={percentage} />\n </BarTrack>\n );\n};\n"],"names":["IndeterminateProgressBar","id","width","edge","props","classes","styles","valueStyle","indeterminate","animationStyleLTR","animationStyleRTL","highContrastValueStyle","trackBorderEdgeNone","trackBorderEdgeTop","useComponentTheme","ProgressBarRedwoodTheme","undefined","direction","forcedColors","useUser","barValueClasses","classNames","translations","useTranslationBundle","ariaProps","progressIndeterminate","role","trackBorderClass","_jsx","jsx","BarTrack","class","length","children","BarValue","DeterminateProgressBar","value","max","percentage","Math","min","otherProps"],"mappings":"8QA4EA,MAAMA,EAA2B,EAAGC,KAAIC,QAAOC,OAAO,UAAWC,MAC/D,MAAMC,QACJA,EACAC,QAAQC,WACNA,EAAUC,cACVA,EAAaC,kBACbA,EAAiBC,kBACjBA,EAAiBC,uBACjBA,EAAsBC,oBACtBA,EAAmBC,mBACnBA,IAEAC,EAAAA,kBAAgEC,EAAAA,wBAAyB,CAC3FZ,KAAe,SAATA,EAAkBA,OAAOa,KAG3BC,UAAEA,EAASC,aAAEA,GAAiBC,EAAOA,UACrCC,EAAkBC,EAAAA,WAAW,CACjCd,EACAC,EACc,QAAdS,EAAsBP,EAAoBD,EACzB,WAAjBS,EAA4BP,EAAyB,KAEjDW,EAAeC,uBAAiC,4BAChDC,EAA2B,CAC/B,iBAAkBpB,EAAM,mBAAqBkB,EAAaG,wBAC1D,aAAcrB,EAAM,cACpB,kBAAmBA,EAAM,mBACzBsB,KAAM,eAEFC,EACa,WAAjBT,OACIF,EACS,SAATb,EACAS,EACAC,EACN,OACEe,EAACC,IAAAC,WACC,CAAA7B,GAAIA,EACJuB,UAAWA,EACXO,MAAOV,EAAUA,WAAC,CAAChB,EAASsB,IAC5BK,OAAQ9B,EACR+B,SAAAL,EAAAC,IAACK,WAAQ,CAACH,MAAOX,KAEnB,EAOEe,EAAyB,EAC7BC,QAAQ,EACRC,MAAM,IACNpC,KACAC,QACAC,OAAO,UACJC,MAEH,MAAMc,aAAEA,GAAiBC,EAAAA,WACnBd,QACJA,EACAC,QAAQC,WAAEA,EAAUI,uBAAEA,EAAsBC,oBAAEA,EAAmBC,mBAAEA,IACjEC,EAAiBA,kBAA+CC,0BAAyB,CAC3FZ,KAAe,SAATA,EAAkBA,OAAOa,IAG3BI,EAAkBC,EAAAA,WAAW,CACjCd,EACiB,WAAjBW,EAA4BP,EAAyB,KAGjD2B,EAAwD,IAAxCC,KAAKC,IAAID,KAAKF,IAAI,EAAGD,EAAQC,GAAM,GAAtC,IACbb,EAA2B,CAAA,EAOjC,OANAA,EAAU,iBAA4B,MAATY,EAAgB,OAAIpB,EACjDQ,EAAU,iBAA4B,MAATY,EAAgBC,OAAMrB,EACnDQ,EAAU,iBAA4B,MAATY,EAAgBA,OAAQpB,EACrDQ,EAAgB,KAAI,cACnBA,EAAU,cAAgBpB,EAAM,cAC9BoB,EAAU,mBAAqBpB,EAAM,mBAEtCwB,MAACE,EAAQA,SAAA,CACPN,UAAWA,EACXvB,GAAIA,EACJ+B,OAAQ9B,EACR6B,MAAOV,EAAUA,WAAC,CAAChB,EAAkB,SAATF,EAAkBS,EAAsBC,IACpEoB,SAAAL,EAAAA,IAACM,EAAAA,SAAS,CAAAH,MAAOX,EAAiBY,OAAQM,KAE5C,gBAlGE,UAAsBF,MAAEA,EAAKC,IAAEA,KAAQI,IAC3C,MAAiB,kBAAVL,EACLR,EAAAC,IAAC7B,EAAwB,IAAKyC,IAE9Bb,EAAAA,IAACO,EAAuB,CAAAC,MAAOA,EAAOC,IAAKA,KAASI,GAExD"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-19a622bc', './ProgressButtonLabelLayout-6df4290e', 'preact/compat', './useTooltip-b43ad881', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-639b3284', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-e5bdb734', './buttonUtils-97878e90', './resources/nls/en/bundle'], (function(e,t,o,s,a,l,i,n,r,d,c,b,u,p,g,y,m){"use strict";const L=l.forwardRef((({variant:e="outlined",isLoading:l=!1,isDisabled:n=!1,size:d="md",display:c="all",type:b="button",startIcon:u,edge:p,testId:g,onAction:L,label:f="",tooltip:h,"aria-describedby":B,width:P,...T},v)=>{const{globalEventProps:A}=y.processGlobals(T),x=!n&&l,C=m.default.accButtonProgressStatus({label:f}),w=m.default.accButtonProgressComplete({label:f}),j=x&&("label"==c||!u)?h||f:h,{tooltipContent:D,tooltipProps:I}=i.useTooltip({text:j,isDisabled:n}),S=!u||"label"===c,U={type:"button",buttonType:b},k=t.jsx(a.ProgressButtonLabelLayout,{display:c,isLoadingContrast:"callToAction"===e,startIcon:u,accessibleLoadedLabel:w,accessibleLoadingLabel:C,size:d,isLoading:x,children:f}),{"aria-describedby":z,...E}=I;return t.jsxs(o.Fragment,{children:[t.jsx(s.BaseButton,{...r.mergeProps(E,A),ref:v,elementDetails:U,isDisabled:n,isReadOnly:x,size:d,width:P,edge:p,variant:e,styling:S?x?["default","hiddenLabel","noHoverActive"]:["default"]:x?["noHoverActive","min"]:["min"],onAction:L,"aria-label":f,testId:g,children:k}),D]})}));L.displayName="ProgressButton",e.ProgressButton=L}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-19a622bc', './ProgressButtonLabelLayout-6df4290e', 'preact/compat', './useTooltip-7b11fd35', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-e95c5f30', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-69ce0a2d', './buttonUtils-97878e90', './resources/nls/en/bundle'], (function(e,t,o,s,a,l,i,n,r,d,c,b,u,p,g,y,f){"use strict";const m=l.forwardRef((({variant:e="outlined",isLoading:l=!1,isDisabled:n=!1,size:d="md",display:c="all",type:b="button",startIcon:u,edge:p,testId:g,onAction:m,label:L="",tooltip:h,"aria-describedby":B,width:P,...T},v)=>{const{globalEventProps:A}=y.processGlobals(T),x=!n&&l,C=f.default.accButtonProgressStatus({label:L}),w=f.default.accButtonProgressComplete({label:L}),j=x&&("label"==c||!u)?h||L:h,{tooltipContent:D,tooltipProps:I}=i.useTooltip({text:j,isDisabled:n}),S=!u||"label"===c,U={type:"button",buttonType:b},k=t.jsx(a.ProgressButtonLabelLayout,{display:c,isLoadingContrast:"callToAction"===e,startIcon:u,accessibleLoadedLabel:w,accessibleLoadingLabel:C,size:d,isLoading:x,children:L}),{"aria-describedby":z,...E}=I;return t.jsxs(o.Fragment,{children:[t.jsx(s.BaseButton,{...r.mergeProps(E,A),ref:v,elementDetails:U,isDisabled:n,isReadOnly:x,size:d,width:P,edge:p,variant:e,styling:S?x?["default","hiddenLabel","noHoverActive"]:["default"]:x?["noHoverActive","min"]:["min"],onAction:m,"aria-label":L,testId:g,children:k}),D]})}));m.displayName="ProgressButton",e.ProgressButton=m}));
2
2
  //# sourceMappingURL=ProgressButton-f1d27773.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './useProgressButtonLabelLayoutTheme-8893dd91', './classNames-08d99695', './ProgressCircle-2b4ba9cd', './withThemeProps-4c23997e', './View-bd5c7fa7', './useColorScheme-443e7cc7', 'preact/hooks', './HiddenAccessible-037ef42d'], (function(s,e,a,i,t,n,r,o,l,c){"use strict";function d({isLoadingContrast:s=!1}){const a=n.withThemeProps(r.View),i=o.useColorScheme(),l=i&&"light"!==i?"light":"dark";return s?e.jsx(a,{colorScheme:l,children:e.jsx(t.ProgressCircle,{size:"sm",value:"indeterminate"})}):e.jsx(t.ProgressCircle,{size:"sm",value:"indeterminate"})}function h({size:s="md",display:t="all",styling:n="default",isLoadingContrast:r=!1,isLoading:o=!1,children:h,startIcon:u,accessibleLoadedLabel:g,accessibleLoadingLabel:m}){const{startIconClasses:L,labelClasses:b,labelStyles:p,progressIconClasses:x,containerClasses:C,isShowIcons:j,isShowText:y,hasTextStartIcon:P}=a.useProgressButtonLabelLayoutTheme({display:t,size:s,styling:n,isLoading:o,startIcon:u,children:h}),S="label"===t||!u,f=i.classNames([C,o?x:void 0]),[v,I]=l.useState(!1),[T,w]=l.useState(!1);return o&&!v&&w(!0),!o&&T&&(I(!0),w(!1),setTimeout((()=>{I(!1)}),500)),e.jsxs("span",{class:f,children:[j&&u&&e.jsx("span",{class:L,"aria-hidden":!0,children:o?e.jsx(d,{isLoadingContrast:r}):u}),y&&h&&e.jsxs("span",{"aria-hidden":!0,class:S?void 0:b,children:[" ",h," "]}),y&&h&&o&&!P&&e.jsx("span",{class:p.floatingIcon,"aria-hidden":!0,children:e.jsx(d,{isLoadingContrast:r})}),g?e.jsx("span",{"aria-live":"assertive",children:e.jsx(c.HiddenAccessible,{children:v?g:o?m:void 0})}):void 0]})}d.displayName="AdjustedProgressCircle",h.displayName="ProgressButtonLabelLayout",s.ProgressButtonLabelLayout=h}));
1
+ define(['exports', 'preact/jsx-runtime', './useProgressButtonLabelLayoutTheme-8893dd91', './classNames-08d99695', './ProgressCircle-74b6fc89', './withThemeProps-4c23997e', './View-ce970ed7', './useColorScheme-10dc88de', 'preact/hooks', './HiddenAccessible-037ef42d'], (function(s,e,a,i,t,n,r,o,l,c){"use strict";function d({isLoadingContrast:s=!1}){const a=n.withThemeProps(r.View),i=o.useColorScheme(),l=i&&"light"!==i?"light":"dark";return s?e.jsx(a,{colorScheme:l,children:e.jsx(t.ProgressCircle,{size:"sm",value:"indeterminate"})}):e.jsx(t.ProgressCircle,{size:"sm",value:"indeterminate"})}function h({size:s="md",display:t="all",styling:n="default",isLoadingContrast:r=!1,isLoading:o=!1,children:h,startIcon:u,accessibleLoadedLabel:g,accessibleLoadingLabel:m}){const{startIconClasses:L,labelClasses:p,labelStyles:x,progressIconClasses:b,containerClasses:C,isShowIcons:j,isShowText:y,hasTextStartIcon:P}=a.useProgressButtonLabelLayoutTheme({display:t,size:s,styling:n,isLoading:o,startIcon:u,children:h}),S="label"===t||!u,f=i.classNames([C,o?b:void 0]),[v,I]=l.useState(!1),[T,w]=l.useState(!1);return o&&!v&&w(!0),!o&&T&&(I(!0),w(!1),setTimeout((()=>{I(!1)}),500)),e.jsxs("span",{class:f,children:[j&&u&&e.jsx("span",{class:L,"aria-hidden":!0,children:o?e.jsx(d,{isLoadingContrast:r}):u}),y&&h&&e.jsxs("span",{"aria-hidden":!0,class:S?void 0:p,children:[" ",h," "]}),y&&h&&o&&!P&&e.jsx("span",{class:x.floatingIcon,"aria-hidden":!0,children:e.jsx(d,{isLoadingContrast:r})}),g?e.jsx("span",{"aria-live":"assertive",children:e.jsx(c.HiddenAccessible,{children:v?g:o?m:void 0})}):void 0]})}d.displayName="AdjustedProgressCircle",h.displayName="ProgressButtonLabelLayout",s.ProgressButtonLabelLayout=h}));
2
2
  //# sourceMappingURL=ProgressButtonLabelLayout-6df4290e.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './meterUtils-9d026b15', './circleUtils-1886e5b4', './useTranslationBundle-d07d4b20', './useComponentTheme-5aa41a8f', './UNSAFE_ProgressCircle/themes/redwood/ProgressCircleTheme', './CircularMeter-b754580a'], (function(e,a,r,s,l,i,t,n,o){"use strict";const c=({id:e,size:r,...s})=>{const{classes:l,styles:{indeterminate:c}}=t.useComponentTheme(n.ProgressCircleRedwoodTheme,{size:r,type:"indeterminate"}),d=i.useTranslationBundle("@oracle/oraclejet-preact"),m={"aria-valuetext":s["aria-valuetext"]||d.progressIndeterminate(),"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"],role:"progressbar"};return a.jsx(o.CircleWrapper,{id:e,ariaProps:m,class:l,children:a.jsx(o.CircleInner,{class:c})})},d=({value:e=0,max:s=100,id:i,size:c,...d})=>{const{classes:m,styles:{determinate:u,track:b,valueStyle:p}}=t.useComponentTheme(n.ProgressCircleRedwoodTheme,{size:c}),x=Math.min(Math.max(0,e/s),1),C=l.getProgressClipPath(x),h={};return h["aria-valuemin"]=null!=e?0:void 0,h["aria-valuemax"]=null!=e?s:void 0,h["aria-valuenow"]=null!=e?e:void 0,h.role="progressbar",h["aria-label"]=d["aria-label"],h["aria-labelledby"]=d["aria-labelledby"],a.jsxs(o.CircleWrapper,{id:i,ariaProps:h,class:m,children:[a.jsx(o.CircleInner,{class:r.classNames([u,b])}),a.jsx(o.CircleInner,{class:r.classNames([u,p]),clipPath:C})]})};e.ProgressCircle=function({value:e,max:r,...s}){return"indeterminate"===e?a.jsx(c,{...s}):a.jsx(d,{value:e,max:r,...s})}}));
2
- //# sourceMappingURL=ProgressCircle-2b4ba9cd.js.map
1
+ define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './meterUtils-9d026b15', './circleUtils-1886e5b4', './useTranslationBundle-516b1b83', './useComponentTheme-5aa41a8f', './UNSAFE_ProgressCircle/themes/redwood/ProgressCircleTheme', './CircularMeter-b754580a'], (function(e,a,r,s,l,i,t,n,o){"use strict";const c=({id:e,size:r,...s})=>{const{classes:l,styles:{indeterminate:c}}=t.useComponentTheme(n.ProgressCircleRedwoodTheme,{size:r,type:"indeterminate"}),d=i.useTranslationBundle("@oracle/oraclejet-preact"),m={"aria-valuetext":s["aria-valuetext"]||d.progressIndeterminate(),"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"],role:"progressbar"};return a.jsx(o.CircleWrapper,{id:e,ariaProps:m,class:l,children:a.jsx(o.CircleInner,{class:c})})},d=({value:e=0,max:s=100,id:i,size:c,...d})=>{const{classes:m,styles:{determinate:u,track:b,valueStyle:p}}=t.useComponentTheme(n.ProgressCircleRedwoodTheme,{size:c}),x=Math.min(Math.max(0,e/s),1),C=l.getProgressClipPath(x),h={};return h["aria-valuemin"]=null!=e?0:void 0,h["aria-valuemax"]=null!=e?s:void 0,h["aria-valuenow"]=null!=e?e:void 0,h.role="progressbar",h["aria-label"]=d["aria-label"],h["aria-labelledby"]=d["aria-labelledby"],a.jsxs(o.CircleWrapper,{id:i,ariaProps:h,class:m,children:[a.jsx(o.CircleInner,{class:r.classNames([u,b])}),a.jsx(o.CircleInner,{class:r.classNames([u,p]),clipPath:C})]})};e.ProgressCircle=function({value:e,max:r,...s}){return"indeterminate"===e?a.jsx(c,{...s}):a.jsx(d,{value:e,max:r,...s})}}));
2
+ //# sourceMappingURL=ProgressCircle-74b6fc89.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressCircle-2b4ba9cd.js","sources":["../../src/UNSAFE_ProgressCircle/ProgressCircle.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentChildren, ComponentProps } from 'preact';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { CircleWrapper, CircleInner } from '#PRIVATE_Meter';\nimport { getProgressClipPath } from '#utils/PRIVATE_meterUtils';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '#resources/nls/bundle';\nimport { HTMLAttributesSignalExcluded } from '#utils/UNSAFE_attributeUtils';\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport {\n ProgressCircleStyles,\n ProgressCircleVariantOptions\n} from './themes/ProgressCircleStyles.css';\nimport { ProgressCircleRedwoodTheme } from './themes/redwood/ProgressCircleTheme';\ntype ariaPropsType = ComponentProps<typeof CircleWrapper>['ariaProps'];\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'class'>;\n\ntype ProgressCircleProps = IntrinsicProps & {\n /**\n * Specifies the id of the progress circle. If the progress circle is being used to describe the loading process of a particular region\n * of the page, then the aria-describedby attribute of the region must point to the id of the ProgressCircle\n */\n id?: HTMLAttributesSignalExcluded<HTMLDivElement>['id'];\n /**\n * The value of the progress circle. If the value is 'indeterminate', an indeterminate progress circle will be shown.\n */\n value?: 'indeterminate' | number;\n\n /**\n * The maximum value of the progress circle.\n */\n max?: number;\n /**\n * The size of the progress circle. The default value of this property is theme driven.\n */\n size?: 'sm' | 'md' | 'lg';\n\n /**\n * A label to be used for accessibility purposes when value is set to 'indeterminate'. This will be used for the aria-valuetext of the DOM element.\n */\n 'aria-valuetext'?: string;\n /**\n * Specifies the children.\n */\n children?: ComponentChildren;\n /**\n * A label to be used for accessibility purposes. This will be used for the aria-label of the DOM element.\n */\n 'aria-label'?: string;\n\n /**\n * One or more ids (separated by spaces) of elements that label the progress bar. This will be used for the aria-labelledby of the DOM element.\n */\n 'aria-labelledby'?: string;\n};\n/**\n * A progress circle allows the user to visualize the progression of an extended computer operation.\n */\nexport function ProgressCircle({ value, max, ...otherProps }: ProgressCircleProps) {\n return value === 'indeterminate' ? (\n <IndeterminateProgressCircle {...otherProps}></IndeterminateProgressCircle>\n ) : (\n <DeterminateProgressCircle value={value} max={max} {...otherProps}></DeterminateProgressCircle>\n );\n}\n\ntype IndeterminateProps = Omit<ProgressCircleProps, 'value' | 'max'>;\n\nconst IndeterminateProgressCircle = ({ id, size, ...props }: IndeterminateProps) => {\n const {\n classes,\n styles: { indeterminate }\n } = useComponentTheme<ProgressCircleVariantOptions, ProgressCircleStyles>(\n ProgressCircleRedwoodTheme,\n {\n size,\n type: 'indeterminate'\n }\n );\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const ariaProps: ariaPropsType = {\n 'aria-valuetext': props['aria-valuetext'] || translations.progressIndeterminate(),\n 'aria-label': props['aria-label'],\n 'aria-labelledby': props['aria-labelledby'],\n role: 'progressbar'\n };\n return (\n <CircleWrapper id={id} ariaProps={ariaProps} class={classes}>\n <CircleInner class={indeterminate} />\n </CircleWrapper>\n );\n};\n\ntype DeterminateProps = Omit<ProgressCircleProps, 'aria-valuetext'> & {\n value?: number;\n};\n\nconst DeterminateProgressCircle = ({\n value = 0,\n max = 100,\n id,\n size,\n ...props\n}: DeterminateProps) => {\n const {\n classes,\n styles: { determinate, track, valueStyle }\n } = useComponentTheme<ProgressCircleVariantOptions, ProgressCircleStyles>(\n ProgressCircleRedwoodTheme,\n {\n size\n }\n );\n\n const percentage = Math.min(Math.max(0, value / max), 1);\n const clipPath = getProgressClipPath(percentage);\n\n const ariaProps: ariaPropsType = {};\n ariaProps['aria-valuemin'] = value != null ? 0 : undefined;\n ariaProps['aria-valuemax'] = value != null ? max : undefined;\n ariaProps['aria-valuenow'] = value != null ? value : undefined;\n ariaProps['role'] = 'progressbar';\n (ariaProps['aria-label'] = props['aria-label']),\n (ariaProps['aria-labelledby'] = props['aria-labelledby']);\n return (\n <CircleWrapper id={id} ariaProps={ariaProps} class={classes}>\n <CircleInner class={classNames([determinate, track])} />\n <CircleInner class={classNames([determinate, valueStyle])} clipPath={clipPath} />\n </CircleWrapper>\n );\n};\n"],"names":["IndeterminateProgressCircle","id","size","props","classes","styles","indeterminate","useComponentTheme","ProgressCircleRedwoodTheme","type","translations","useTranslationBundle","ariaProps","progressIndeterminate","role","_jsx","CircleWrapper","class","children","jsx","CircleInner","DeterminateProgressCircle","value","max","determinate","track","valueStyle","percentage","Math","min","clipPath","getProgressClipPath","undefined","_jsxs","classNames","otherProps"],"mappings":"oTA0EA,MAAMA,EAA8B,EAAGC,KAAIC,UAASC,MAClD,MAAMC,QACJA,EACAC,QAAQC,cAAEA,IACRC,EAAiBA,kBACnBC,6BACA,CACEN,OACAO,KAAM,kBAIJC,EAAeC,uBAAiC,4BAChDC,EAA2B,CAC/B,iBAAkBT,EAAM,mBAAqBO,EAAaG,wBAC1D,aAAcV,EAAM,cACpB,kBAAmBA,EAAM,mBACzBW,KAAM,eAER,OACEC,EAAAA,IAACC,EAAAA,cAAc,CAAAf,GAAIA,EAAIW,UAAWA,EAAWK,MAAOb,EAClDc,SAAAH,EAAAI,IAACC,cAAW,CAACH,MAAOX,KAEtB,EAOEe,EAA4B,EAChCC,QAAQ,EACRC,MAAM,IACNtB,KACAC,UACGC,MAEH,MAAMC,QACJA,EACAC,QAAQmB,YAAEA,EAAWC,MAAEA,EAAKC,WAAEA,IAC5BnB,EAAiBA,kBACnBC,6BACA,CACEN,SAIEyB,EAAaC,KAAKC,IAAID,KAAKL,IAAI,EAAGD,EAAQC,GAAM,GAChDO,EAAWC,sBAAoBJ,GAE/Bf,EAA2B,CAAA,EAOjC,OANAA,EAAU,iBAA4B,MAATU,EAAgB,OAAIU,EACjDpB,EAAU,iBAA4B,MAATU,EAAgBC,OAAMS,EACnDpB,EAAU,iBAA4B,MAATU,EAAgBA,OAAQU,EACrDpB,EAAgB,KAAI,cACnBA,EAAU,cAAgBT,EAAM,cAC9BS,EAAU,mBAAqBT,EAAM,mBAEtC8B,EAAAA,KAACjB,EAAAA,cAAa,CAACf,GAAIA,EAAIW,UAAWA,EAAWK,MAAOb,EAAOc,SAAA,CACzDH,EAAAA,IAACK,EAAAA,aAAYH,MAAOiB,aAAW,CAACV,EAAaC,MAC7CV,EAAAI,IAACC,EAAWA,YAAC,CAAAH,MAAOiB,EAAUA,WAAC,CAACV,EAAaE,IAAcI,SAAUA,MAEvE,mBAxEE,UAAyBR,MAAEA,EAAKC,IAAEA,KAAQY,IAC9C,MAAiB,kBAAVb,EACLP,EAAAI,IAACnB,EAA2B,IAAKmC,IAEjCpB,EAAAA,IAACM,EAA0B,CAAAC,MAAOA,EAAOC,IAAKA,KAASY,GAE3D"}
1
+ {"version":3,"file":"ProgressCircle-74b6fc89.js","sources":["../../src/UNSAFE_ProgressCircle/ProgressCircle.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentChildren, ComponentProps } from 'preact';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { CircleWrapper, CircleInner } from '#PRIVATE_Meter';\nimport { getProgressClipPath } from '#utils/PRIVATE_meterUtils';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '#resources/nls/bundle';\nimport { HTMLAttributesSignalExcluded } from '#utils/UNSAFE_attributeUtils';\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport {\n ProgressCircleStyles,\n ProgressCircleVariantOptions\n} from './themes/ProgressCircleStyles.css';\nimport { ProgressCircleRedwoodTheme } from './themes/redwood/ProgressCircleTheme';\ntype ariaPropsType = ComponentProps<typeof CircleWrapper>['ariaProps'];\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'class'>;\n\ntype ProgressCircleProps = IntrinsicProps & {\n /**\n * Specifies the id of the progress circle. If the progress circle is being used to describe the loading process of a particular region\n * of the page, then the aria-describedby attribute of the region must point to the id of the ProgressCircle\n */\n id?: HTMLAttributesSignalExcluded<HTMLDivElement>['id'];\n /**\n * The value of the progress circle. If the value is 'indeterminate', an indeterminate progress circle will be shown.\n */\n value?: 'indeterminate' | number;\n\n /**\n * The maximum value of the progress circle.\n */\n max?: number;\n /**\n * The size of the progress circle. The default value of this property is theme driven.\n */\n size?: 'sm' | 'md' | 'lg';\n\n /**\n * A label to be used for accessibility purposes when value is set to 'indeterminate'. This will be used for the aria-valuetext of the DOM element.\n */\n 'aria-valuetext'?: string;\n /**\n * Specifies the children.\n */\n children?: ComponentChildren;\n /**\n * A label to be used for accessibility purposes. This will be used for the aria-label of the DOM element.\n */\n 'aria-label'?: string;\n\n /**\n * One or more ids (separated by spaces) of elements that label the progress bar. This will be used for the aria-labelledby of the DOM element.\n */\n 'aria-labelledby'?: string;\n};\n/**\n * A progress circle allows the user to visualize the progression of an extended computer operation.\n */\nexport function ProgressCircle({ value, max, ...otherProps }: ProgressCircleProps) {\n return value === 'indeterminate' ? (\n <IndeterminateProgressCircle {...otherProps}></IndeterminateProgressCircle>\n ) : (\n <DeterminateProgressCircle value={value} max={max} {...otherProps}></DeterminateProgressCircle>\n );\n}\n\ntype IndeterminateProps = Omit<ProgressCircleProps, 'value' | 'max'>;\n\nconst IndeterminateProgressCircle = ({ id, size, ...props }: IndeterminateProps) => {\n const {\n classes,\n styles: { indeterminate }\n } = useComponentTheme<ProgressCircleVariantOptions, ProgressCircleStyles>(\n ProgressCircleRedwoodTheme,\n {\n size,\n type: 'indeterminate'\n }\n );\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const ariaProps: ariaPropsType = {\n 'aria-valuetext': props['aria-valuetext'] || translations.progressIndeterminate(),\n 'aria-label': props['aria-label'],\n 'aria-labelledby': props['aria-labelledby'],\n role: 'progressbar'\n };\n return (\n <CircleWrapper id={id} ariaProps={ariaProps} class={classes}>\n <CircleInner class={indeterminate} />\n </CircleWrapper>\n );\n};\n\ntype DeterminateProps = Omit<ProgressCircleProps, 'aria-valuetext'> & {\n value?: number;\n};\n\nconst DeterminateProgressCircle = ({\n value = 0,\n max = 100,\n id,\n size,\n ...props\n}: DeterminateProps) => {\n const {\n classes,\n styles: { determinate, track, valueStyle }\n } = useComponentTheme<ProgressCircleVariantOptions, ProgressCircleStyles>(\n ProgressCircleRedwoodTheme,\n {\n size\n }\n );\n\n const percentage = Math.min(Math.max(0, value / max), 1);\n const clipPath = getProgressClipPath(percentage);\n\n const ariaProps: ariaPropsType = {};\n ariaProps['aria-valuemin'] = value != null ? 0 : undefined;\n ariaProps['aria-valuemax'] = value != null ? max : undefined;\n ariaProps['aria-valuenow'] = value != null ? value : undefined;\n ariaProps['role'] = 'progressbar';\n (ariaProps['aria-label'] = props['aria-label']),\n (ariaProps['aria-labelledby'] = props['aria-labelledby']);\n return (\n <CircleWrapper id={id} ariaProps={ariaProps} class={classes}>\n <CircleInner class={classNames([determinate, track])} />\n <CircleInner class={classNames([determinate, valueStyle])} clipPath={clipPath} />\n </CircleWrapper>\n );\n};\n"],"names":["IndeterminateProgressCircle","id","size","props","classes","styles","indeterminate","useComponentTheme","ProgressCircleRedwoodTheme","type","translations","useTranslationBundle","ariaProps","progressIndeterminate","role","_jsx","CircleWrapper","class","children","jsx","CircleInner","DeterminateProgressCircle","value","max","determinate","track","valueStyle","percentage","Math","min","clipPath","getProgressClipPath","undefined","_jsxs","classNames","otherProps"],"mappings":"oTA0EA,MAAMA,EAA8B,EAAGC,KAAIC,UAASC,MAClD,MAAMC,QACJA,EACAC,QAAQC,cAAEA,IACRC,EAAiBA,kBACnBC,6BACA,CACEN,OACAO,KAAM,kBAIJC,EAAeC,uBAAiC,4BAChDC,EAA2B,CAC/B,iBAAkBT,EAAM,mBAAqBO,EAAaG,wBAC1D,aAAcV,EAAM,cACpB,kBAAmBA,EAAM,mBACzBW,KAAM,eAER,OACEC,EAAAA,IAACC,EAAAA,cAAc,CAAAf,GAAIA,EAAIW,UAAWA,EAAWK,MAAOb,EAClDc,SAAAH,EAAAI,IAACC,cAAW,CAACH,MAAOX,KAEtB,EAOEe,EAA4B,EAChCC,QAAQ,EACRC,MAAM,IACNtB,KACAC,UACGC,MAEH,MAAMC,QACJA,EACAC,QAAQmB,YAAEA,EAAWC,MAAEA,EAAKC,WAAEA,IAC5BnB,EAAiBA,kBACnBC,6BACA,CACEN,SAIEyB,EAAaC,KAAKC,IAAID,KAAKL,IAAI,EAAGD,EAAQC,GAAM,GAChDO,EAAWC,sBAAoBJ,GAE/Bf,EAA2B,CAAA,EAOjC,OANAA,EAAU,iBAA4B,MAATU,EAAgB,OAAIU,EACjDpB,EAAU,iBAA4B,MAATU,EAAgBC,OAAMS,EACnDpB,EAAU,iBAA4B,MAATU,EAAgBA,OAAQU,EACrDpB,EAAgB,KAAI,cACnBA,EAAU,cAAgBT,EAAM,cAC9BS,EAAU,mBAAqBT,EAAM,mBAEtC8B,EAAAA,KAACjB,EAAAA,cAAa,CAACf,GAAIA,EAAIW,UAAWA,EAAWK,MAAOb,EAAOc,SAAA,CACzDH,EAAAA,IAACK,EAAAA,aAAYH,MAAOiB,aAAW,CAACV,EAAaC,MAC7CV,EAAAI,IAACC,EAAWA,YAAC,CAAAH,MAAOiB,EAAUA,WAAC,CAACV,EAAaE,IAAcI,SAAUA,MAEvE,mBAxEE,UAAyBR,MAAEA,EAAKC,IAAEA,KAAQY,IAC9C,MAAiB,kBAAVb,EACLP,EAAAI,IAACnB,EAA2B,IAAKmC,IAEjCpB,EAAAA,IAACM,EAA0B,CAAAC,MAAOA,EAAOC,IAAKA,KAASY,GAE3D"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/compat', './useComponentTheme-5aa41a8f', './useFocus-4194fc59', './FormContext-5130e198', './useFormContext-30acdd33', './FormFieldContext-3c44aaaa', './useFormFieldContext-8196183c', './useId-c9578d26', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useInteractionStyle-76a64325', './useTranslationBundle-d07d4b20', './CheckboxRadioContext-6a0fead0', './Check-99925738', './RadioButtonOff-021206c5', './RadioButtonOn-1b94c270', './HiddenAccessible-037ef42d', './RadioItemContext-70878de8', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', 'preact/hooks', './Flex-3421f0df', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', './LayerHost-639b3284', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-e5bdb734', 'css!./IconStyle.styles.css', './IconButton-ae9a01ce', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-2e19d8de', './logger-0f873e29', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './InputGroupContext-372087af', './Popup-66e79afa', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './IconUserAssistance-37107cea', './UNSAFE_RadioItem/themes/RadioIconContract.css', './UNSAFE_RadioItem/themes/redwood/RadioIconTheme', './UNSAFE_RadioItem/themes/redwood/RadioTheme'], (function(e,s,o,t,a,n,i,d,c,l,r,u,m,b,h,p,S,y,C,x,F,A,R,T,f,g,U,I,v,B,w,M,E,_,N,j,k,L,V,D,H,O,P,z,G,$,q,J,K,Q,W,X,Y,Z){"use strict";e.RadioItem=({value:e,children:n,...d})=>{const{isReadonly:r,isDisabled:F}=i.useFormContext(),{isDisabled:A,isReadonly:R}=c.useFormFieldContext(),{name:T,value:f,onCommit:g}=x.useRadioSetContext(),{isFocusRingShown:U}=h.useCheckboxRadioContext(),{index:I}=x.useRadioItemContext(),{isTabbable:v}=u.useTabbableMode(),B=l.useId(),{isFocus:w,focusProps:M}=a.useFocus(),E=o.createRef(),_=f===e,N=A??F,j=R??r,{interactionProps:k,applyActiveStyle:L}=m.useInteractionStyle(),{classes:V,styles:{valueLabelStyle:D}}=t.useComponentTheme(Z.RadioRedwoodTheme,{disabled:N?"isDisabled":"notDisabled",focused:w&&U?"isFocused":""}),{classes:H}=t.useComponentTheme(Y.RadioIconRedwoodTheme,{disabled:N?"isDisabled":"notDisabled",selected:_?"isSelected":"notSelected",readonly:j?"isReadonly":"notReadonly",active:L?"isActive":"notActive"});o.useEffect((()=>{w&&U&&E?.current?.scrollIntoView({block:"nearest"})}),[w,U,E]);const{assistiveText:O,helpSourceLink:P}=d,z=!(N||j||!O&&!P),G=z?`${B}-help-available`:void 0,$=z?`${B}-icon-ua`:void 0,q=b.useTranslationBundle("@oracle/oraclejet-preact").formControl_helpAvailable(),J=j?_?p.SvgCheck:S.SvgRadioButtonOff:_?y.SvgRadioButtonOn:S.SvgRadioButtonOff,K=!1!==v&&(0===I&&!f||_)?0:-1;return s.jsx("div",{children:s.jsxs("label",{class:V,ref:E,children:[s.jsxs(C.HiddenAccessible,{children:[s.jsx("input",{type:"radio",name:T,id:B,value:e,...!j&&!N&&{onChange:s=>{s.stopPropagation(),g?.({previousValue:f,value:e})}},checked:_,disabled:N,"aria-describedby":G,tabIndex:K,...M}),z&&s.jsx(C.HiddenAccessible,{id:G,isHidden:!0,children:q})]}),s.jsx("span",{"aria-hidden":"true",class:H,...k,children:s.jsx(J,{size:X.radioIconVars.iconSize,color:"currentColor"})}),s.jsxs("span",{class:D,children:[s.jsx("span",{...k,children:n}),z&&s.jsx(W.IconUserAssistance,{...d,isTabbable:v&&w,id:$})]})]})})}}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact/compat', './useComponentTheme-5aa41a8f', './useFocus-4194fc59', './FormContext-5130e198', './useFormContext-30acdd33', './FormFieldContext-3c44aaaa', './useFormFieldContext-8196183c', './useId-c9578d26', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useInteractionStyle-76a64325', './useTranslationBundle-516b1b83', './CheckboxRadioContext-6a0fead0', './Check-99925738', './RadioButtonOff-021206c5', './RadioButtonOn-1b94c270', './HiddenAccessible-037ef42d', './RadioItemContext-70878de8', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', 'preact/hooks', './Flex-56ecdf4c', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', './LayerHost-e95c5f30', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-69ce0a2d', 'css!./IconStyle.styles.css', './IconButton-ae9a01ce', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-2e19d8de', './logger-0f873e29', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './InputGroupContext-372087af', './Popup-d51bf3f4', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './IconUserAssistance-d2bd2691', './UNSAFE_RadioItem/themes/RadioIconContract.css', './UNSAFE_RadioItem/themes/redwood/RadioIconTheme', './UNSAFE_RadioItem/themes/redwood/RadioTheme'], (function(e,s,o,t,a,n,d,i,c,l,r,u,m,b,h,p,S,y,C,x,F,A,R,T,f,g,U,I,v,B,w,M,E,_,N,j,k,L,V,D,H,O,P,z,G,$,q,J,K,Q,W,X,Y,Z){"use strict";e.RadioItem=({value:e,children:n,...i})=>{const{isReadonly:r,isDisabled:F}=d.useFormContext(),{isDisabled:A,isReadonly:R}=c.useFormFieldContext(),{name:T,value:f,onCommit:g}=x.useRadioSetContext(),{isFocusRingShown:U}=h.useCheckboxRadioContext(),{index:I}=x.useRadioItemContext(),{isTabbable:v}=u.useTabbableMode(),B=l.useId(),{isFocus:w,focusProps:M}=a.useFocus(),E=o.createRef(),_=f===e,N=A??F,j=R??r,{interactionProps:k,applyActiveStyle:L}=m.useInteractionStyle(),{classes:V,styles:{valueLabelStyle:D}}=t.useComponentTheme(Z.RadioRedwoodTheme,{disabled:N?"isDisabled":"notDisabled",focused:w&&U?"isFocused":""}),{classes:H}=t.useComponentTheme(Y.RadioIconRedwoodTheme,{disabled:N?"isDisabled":"notDisabled",selected:_?"isSelected":"notSelected",readonly:j?"isReadonly":"notReadonly",active:L?"isActive":"notActive"});o.useEffect((()=>{w&&U&&E?.current?.scrollIntoView({block:"nearest"})}),[w,U,E]);const{assistiveText:O,helpSourceLink:P}=i,z=!(N||j||!O&&!P),G=z?`${B}-help-available`:void 0,$=z?`${B}-icon-ua`:void 0,q=b.useTranslationBundle("@oracle/oraclejet-preact").formControl_helpAvailable(),J=j?_?p.SvgCheck:S.SvgRadioButtonOff:_?y.SvgRadioButtonOn:S.SvgRadioButtonOff,K=!1!==v&&(0===I&&!f||_)?0:-1;return s.jsx("div",{children:s.jsxs("label",{class:V,ref:E,children:[s.jsxs(C.HiddenAccessible,{children:[s.jsx("input",{type:"radio",name:T,id:B,value:e,...!j&&!N&&{onChange:s=>{s.stopPropagation(),g?.({previousValue:f,value:e})}},checked:_,disabled:N,"aria-describedby":G,tabIndex:K,...M}),z&&s.jsx(C.HiddenAccessible,{id:G,isHidden:!0,children:q})]}),s.jsx("span",{"aria-hidden":"true",class:H,...k,children:s.jsx(J,{size:X.radioIconVars.iconSize,color:"currentColor"})}),s.jsxs("span",{class:D,children:[s.jsx("span",{...k,children:n}),z&&s.jsx(W.IconUserAssistance,{...i,isTabbable:v&&w,id:$})]})]})})}}));
2
2
  //# sourceMappingURL=RadioItem-b17c346c.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/hooks', './classNames-08d99695', './UNSAFE_RatingGauge/themes/RatingGaugeContract.css', './useComponentTheme-5aa41a8f', './useUser-3ef25571', './vanilla-extract-dynamic.esm-eceadd82', './UNSAFE_RatingGauge/themes/redwood/RatingGaugeTheme', './useKeyboardEvents-8ada7a1f', 'preact/compat', './LayerHost-639b3284', 'css!./LayerStyles.styles.css', './Floating-5d98c1ca', 'css!./useDatatip.styles.css', './datatipUtils-01750311', './meterUtils-9d026b15', './useDatatip-9942601b', './useTooltipControlled-ee3276de', './mergeProps-bcfa6a92', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useTestId-b5cd4766'], (function(e,t,s,a,o,i,n,l,r,d,c,u,h,p,b,g,m,y,R,x,S,v,f,C){"use strict";function D(e,t,s,a,o){const i=a.current;if(!i||0===i.width)return-1;const n=e-i.x,l=t*(o?i.width-n:n)/i.width/s;return l<.5?0:Math.min(t,Math.ceil(l)*s)}function w(e){if(!e)return{width:0,x:0};const t=e.getBoundingClientRect();return{width:t.width,x:t.x+window.scrollX}}const T=({isSelected:e,isDisabled:s,isReadOnly:a,color:c="neutral"})=>{const{forcedColors:u}=l.useUser(),h="active"===u,p=h&&s,b=function(e){return"neutral"===e||"gold"===e||"danger"===e||"warning"===e||"success"===e?e:void 0}(c),g=r.assignInlineVars({[i.ratingGaugeVars.colorSelected]:c,[i.ratingGaugeVars.borderColorSelected]:c,[i.ratingGaugeVars.colorSelectedReadonly]:c}),{variantClasses:m,styles:{ratingStarBaseStyle:y,innerRatingStarColor:R,outerRatingStarColor:x,outerDisabledHighContrastBaseStyle:S,outerDisabledHighContrastSelectedStyle:v,outerDisabledHighContrastUnselectedStyle:f}}=n.useComponentTheme(d.RatingGaugeRedwoodTheme,{color:b,selectionState:e?"isSelected":"isNotSelected",disabledState:s?"isDisabled":"isNotDisabled",readonlyState:a?"isReadonly":"isNotReadonly",highContrastState:h?"isHighContrast":"isNotHighContrast"});return t.jsx("svg",{viewBox:"0 0 36 36",height:"100%",width:"100%",style:b?void 0:g,class:o.classNames([y,b?m:""]),children:t.jsxs("g",{children:[t.jsx("path",{class:R,d:"m18 1 5.0061 11.9524 12.9939 1.0344-9.9 8.4215 3.0246 12.5917-11.1246-6.7476-11.12461 6.7476 3.02461-12.5917-9.9-8.4215 12.9939-1.0344z"}),t.jsx("path",{class:o.classNames([x,p?S:"",p?e?v:f:""]),d:"m23.0061 12.9524-5.0061-11.9524-5.0061 11.9524-12.9939 1.0344 9.9 8.4215-3.02461 12.5917 11.12461-6.7476 11.1246 6.7476-3.0246-12.5917 9.9-8.4215zm10.5043 1.8394-8.5262 7.2528 2.6077 10.8562-9.5919-5.818-9.59192 5.818 2.60772-10.8562-8.52615-7.2528 11.19115-.891 4.3192-10.31227 4.3192 10.31227z"})]})})},j=({fillRatio:e,isDisabled:a,isReadonly:o,color:i})=>{const{direction:r}=l.useUser(),c="rtl"===r,{styles:{fractionalStarBaseStyle:u}}=n.useComponentTheme(d.RatingGaugeRedwoodTheme);return 1===e||0===e?t.jsx(T,{isSelected:1===e,isDisabled:a,isReadOnly:o,color:i}):t.jsxs(s.Fragment,{children:[t.jsx("div",{class:u,style:{clipPath:`inset(0% ${c?100*(1-e):0}% 0% ${c?0:100*e}%)`},children:t.jsx(T,{isSelected:!1,isDisabled:a,isReadOnly:o,color:i})}),t.jsx("div",{class:u,style:{clipPath:`inset(0% ${c?0:100*(1-e)}% 0% ${c?100*(1-e):0}%)`},children:t.jsx(T,{isSelected:!0,isDisabled:a,isReadOnly:o,color:i})})]})};e.RatingGauge=function({max:e=5,value:i=0,size:r,color:u="neutral",step:h=1,isReadonly:p,isDisabled:b,testId:g,...m}){const v=C.useTestId(g);y.validateRange(0,e,i,h);const T=a.useRef(null),P=a.useRef(w(null)),M=!p&&!b;a.useEffect((()=>{P.current=w(T.current)}),[r,e]);const N=((e,t,s,o,i,n,r,d)=>{const u=a.useRef(),{direction:h}=l.useUser(),p="rtl"===h,b=e=>{d?.({value:e}),u.current=e},g=c.useKeyboardEvents(s,0,e,t,u,r,d);return n?{onPointerUp:s=>{const a=D(s.pageX,e,t,i,p);-1!==a&&r?.({value:a})},onBlur:()=>{r?.({value:s})},onPointerMove:s=>{const a=D(s.pageX,e,t,i,p);-1!==a&&a!=u.current&&b(a)},onKeyUp:g.onKeyUp,onKeyDown:g.onKeyDown,onPointerLeave:()=>{b(void 0)},onPointerEnter:()=>{i.current=w(o.current)}}:{}})(e,h,i,T,P,M,m.onCommit,m.onInput),{datatipContent:U,datatipProps:G}=function({max:e,value:t,isDisabled:s,isReadonly:a,datatip:o,thresholds:i,width:n}){const l=(Math.max(1,Math.ceil(t))-Math.ceil(e/2))*n/e,r=o||!i||s?o:y.findThreshold(t,i)?.accessibleLabel,{datatipContent:d,datatipProps:c}=R.useDatatip({content:s||a?null:r,anchor:"element",offset:{mainAxis:8,crossAxis:l},placement:"bottom",touchResponse:"touchStart"});return{datatipContent:d,datatipProps:a&&!s?{"aria-describedby":void 0}:c}}({max:e,value:i,isDisabled:b,isReadonly:p,datatip:m.datatip,thresholds:m.thresholds,width:P.current.width}),{tooltipContent:B,tooltipProps:z}=function({isReadonly:e,isDisabled:t,tooltip:s}){const[o,i]=a.useState(!1),n=e&&!t?s:"",{tooltipContent:l,tooltipProps:r}=x.useTooltipControlled({text:n,isOpen:o,anchor:{x:"element",y:"element"},position:"bottom",isDisabled:t,onToggle:({value:e})=>i(e),variant:"tooltip"});return{tooltipContent:l,tooltipProps:!t&&e?r:{"aria-describedby":void 0}}}({isReadonly:p,isDisabled:b,tooltip:m.tooltip}),A=y.getMeterAriaProps(i,0,e,m["aria-label"],m["aria-labelledby"],m.thresholds,b,p,m.tooltip),{"aria-describedby":E,...F}=G,{"aria-describedby":H,...I}=z,K=S.mergeProps(N,F,I),O=[E,H,m["aria-describedby"]].filter(Boolean).join(" "),V=y.getThresholdColorFromValue(i,u,m.thresholds),{isTabbable:L}=f.useTabbableMode(),{classes:$,styles:{baseStyle:X,interactiveStyle:_,itemStyle:k,sizeStyle:q}}=n.useComponentTheme(d.RatingGaugeRedwoodTheme,{size:r});return t.jsxs(s.Fragment,{children:[t.jsx("div",{...v,...A,ref:T,class:o.classNames([$,X,M?_:void 0]),tabIndex:L&&!b?0:-1,...K,"aria-describedby":O,children:[...Array(e)].map(((e,s)=>{const a=Math.min(Math.max(0,i-s),1);return t.jsx("div",{className:o.classNames([q,k]),children:t.jsx(j,{fillRatio:a,isDisabled:b,isReadonly:p,color:V})})}))}),U,B]})}}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/hooks', './classNames-08d99695', './UNSAFE_RatingGauge/themes/RatingGaugeContract.css', './useComponentTheme-5aa41a8f', './useUser-85c781ea', './vanilla-extract-dynamic.esm-eceadd82', './UNSAFE_RatingGauge/themes/redwood/RatingGaugeTheme', './useKeyboardEvents-d87e3587', 'preact/compat', './LayerHost-e95c5f30', 'css!./LayerStyles.styles.css', './Floating-1ec5ec2a', 'css!./useDatatip.styles.css', './datatipUtils-01750311', './meterUtils-9d026b15', './useDatatip-ac26447a', './useTooltipControlled-52183a08', './mergeProps-bcfa6a92', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useTestId-3a316499'], (function(e,t,s,a,o,i,n,l,r,d,c,u,h,p,b,g,m,y,R,x,S,v,C,f){"use strict";function D(e,t,s,a,o){const i=a.current;if(!i||0===i.width)return-1;const n=e-i.x,l=t*(o?i.width-n:n)/i.width/s;return l<.5?0:Math.min(t,Math.ceil(l)*s)}function w(e){if(!e)return{width:0,x:0};const t=e.getBoundingClientRect();return{width:t.width,x:t.x+window.scrollX}}const T=({isSelected:e,isDisabled:s,isReadOnly:a,color:c="neutral"})=>{const{forcedColors:u}=l.useUser(),h="active"===u,p=h&&s,b=function(e){return"neutral"===e||"gold"===e||"danger"===e||"warning"===e||"success"===e?e:void 0}(c),g=r.assignInlineVars({[i.ratingGaugeVars.colorSelected]:c,[i.ratingGaugeVars.borderColorSelected]:c,[i.ratingGaugeVars.colorSelectedReadonly]:c}),{variantClasses:m,styles:{ratingStarBaseStyle:y,innerRatingStarColor:R,outerRatingStarColor:x,outerDisabledHighContrastBaseStyle:S,outerDisabledHighContrastSelectedStyle:v,outerDisabledHighContrastUnselectedStyle:C}}=n.useComponentTheme(d.RatingGaugeRedwoodTheme,{color:b,selectionState:e?"isSelected":"isNotSelected",disabledState:s?"isDisabled":"isNotDisabled",readonlyState:a?"isReadonly":"isNotReadonly",highContrastState:h?"isHighContrast":"isNotHighContrast"});return t.jsx("svg",{viewBox:"0 0 36 36",height:"100%",width:"100%",style:b?void 0:g,class:o.classNames([y,b?m:""]),children:t.jsxs("g",{children:[t.jsx("path",{class:R,d:"m18 1 5.0061 11.9524 12.9939 1.0344-9.9 8.4215 3.0246 12.5917-11.1246-6.7476-11.12461 6.7476 3.02461-12.5917-9.9-8.4215 12.9939-1.0344z"}),t.jsx("path",{class:o.classNames([x,p?S:"",p?e?v:C:""]),d:"m23.0061 12.9524-5.0061-11.9524-5.0061 11.9524-12.9939 1.0344 9.9 8.4215-3.02461 12.5917 11.12461-6.7476 11.1246 6.7476-3.0246-12.5917 9.9-8.4215zm10.5043 1.8394-8.5262 7.2528 2.6077 10.8562-9.5919-5.818-9.59192 5.818 2.60772-10.8562-8.52615-7.2528 11.19115-.891 4.3192-10.31227 4.3192 10.31227z"})]})})},j=({fillRatio:e,isDisabled:a,isReadonly:o,color:i})=>{const{direction:r}=l.useUser(),c="rtl"===r,{styles:{fractionalStarBaseStyle:u}}=n.useComponentTheme(d.RatingGaugeRedwoodTheme);return 1===e||0===e?t.jsx(T,{isSelected:1===e,isDisabled:a,isReadOnly:o,color:i}):t.jsxs(s.Fragment,{children:[t.jsx("div",{class:u,style:{clipPath:`inset(0% ${c?100*(1-e):0}% 0% ${c?0:100*e}%)`},children:t.jsx(T,{isSelected:!1,isDisabled:a,isReadOnly:o,color:i})}),t.jsx("div",{class:u,style:{clipPath:`inset(0% ${c?0:100*(1-e)}% 0% ${c?100*(1-e):0}%)`},children:t.jsx(T,{isSelected:!0,isDisabled:a,isReadOnly:o,color:i})})]})};e.RatingGauge=function({max:e=5,value:i=0,size:r,color:u="neutral",step:h=1,isReadonly:p,isDisabled:b,testId:g,...m}){const v=f.useTestId(g);y.validateRange(0,e,i,h);const T=a.useRef(null),P=a.useRef(w(null)),M=!p&&!b;a.useEffect((()=>{P.current=w(T.current)}),[r,e]);const N=((e,t,s,o,i,n,r,d)=>{const u=a.useRef(),{direction:h}=l.useUser(),p="rtl"===h,b=e=>{d?.({value:e}),u.current=e},g=c.useKeyboardEvents(s,0,e,t,u,r,d);return n?{onPointerUp:s=>{const a=D(s.pageX,e,t,i,p);-1!==a&&r?.({value:a})},onBlur:()=>{r?.({value:s})},onPointerMove:s=>{const a=D(s.pageX,e,t,i,p);-1!==a&&a!=u.current&&b(a)},onKeyUp:g.onKeyUp,onKeyDown:g.onKeyDown,onPointerLeave:()=>{b(void 0)},onPointerEnter:()=>{i.current=w(o.current)}}:{}})(e,h,i,T,P,M,m.onCommit,m.onInput),{datatipContent:U,datatipProps:G}=function({max:e,value:t,isDisabled:s,isReadonly:a,datatip:o,thresholds:i,width:n}){const l=(Math.max(1,Math.ceil(t))-Math.ceil(e/2))*n/e,r=o||!i||s?o:y.findThreshold(t,i)?.accessibleLabel,{datatipContent:d,datatipProps:c}=R.useDatatip({content:s||a?null:r,anchor:"element",offset:{mainAxis:8,crossAxis:l},placement:"bottom",touchResponse:"touchStart"});return{datatipContent:d,datatipProps:a&&!s?{"aria-describedby":void 0}:c}}({max:e,value:i,isDisabled:b,isReadonly:p,datatip:m.datatip,thresholds:m.thresholds,width:P.current.width}),{tooltipContent:B,tooltipProps:z}=function({isReadonly:e,isDisabled:t,tooltip:s}){const[o,i]=a.useState(!1),n=e&&!t?s:"",{tooltipContent:l,tooltipProps:r}=x.useTooltipControlled({text:n,isOpen:o,anchor:{x:"element",y:"element"},position:"bottom",isDisabled:t,onToggle:({value:e})=>i(e),variant:"tooltip"});return{tooltipContent:l,tooltipProps:!t&&e?r:{"aria-describedby":void 0}}}({isReadonly:p,isDisabled:b,tooltip:m.tooltip}),A=y.getMeterAriaProps(i,0,e,m["aria-label"],m["aria-labelledby"],m.thresholds,b,p,m.tooltip),{"aria-describedby":E,...F}=G,{"aria-describedby":H,...I}=z,K=S.mergeProps(N,F,I),O=[E,H,m["aria-describedby"]].filter(Boolean).join(" "),V=y.getThresholdColorFromValue(i,u,m.thresholds),{isTabbable:L}=C.useTabbableMode(),{classes:$,styles:{baseStyle:X,interactiveStyle:_,itemStyle:k,sizeStyle:q}}=n.useComponentTheme(d.RatingGaugeRedwoodTheme,{size:r});return t.jsxs(s.Fragment,{children:[t.jsx("div",{...v,...A,ref:T,class:o.classNames([$,X,M?_:void 0]),tabIndex:L&&!b?0:-1,...K,"aria-describedby":O,children:[...Array(e)].map(((e,s)=>{const a=Math.min(Math.max(0,i-s),1);return t.jsx("div",{className:o.classNames([q,k]),children:t.jsx(j,{fillRatio:a,isDisabled:b,isReadonly:p,color:V})})}))}),U,B]})}}));
2
2
  //# sourceMappingURL=RatingGauge-539ede8e.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './useAccessibleContext-23e8a333', './FormContext-5130e198', './useFormContext-30acdd33', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './classNames-08d99695', './textAlign-ef924afd', './mergeInterpolations-9ede4cf7', './FormFieldContext-3c44aaaa', './useFormFieldContext-8196183c', './useComponentTheme-5aa41a8f', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputTheme', './useTranslationBundle-d07d4b20'], (function(e,a,o,t,l,s,n,r,i,d,b,u,c,m,x){"use strict";e.ReadonlyTextFieldInput=function({"aria-describedby":e,"aria-label":t,"aria-labelledby":s,autoFocus:b,as:y="div",elementRef:F,hasEmptyLabel:f,hasInsideLabel:p=!1,inlineUserAssistance:T,innerReadonlyField:C,rows:L,type:h,value:I="",variant:R,...A}){const j=x.useTranslationBundle("@oracle/oraclejet-preact").formControl_loading(),{isFormLayout:v,isReadonly:g}=l.useFormContext(),{isLoading:w}=u.useFormFieldContext(),B=w?j:t,M=[...Object.values(i.textInterpolations)],N=d.mergeInterpolations(M),{class:E}=N(A),{classes:U}=c.useComponentTheme(m.ReadonlyTextFieldInputRedwoodTheme,{textarea:"textarea"===R?"isTextArea":"notTextArea",formLayout:v?"isFormLayout":"notFormLayout",readonlyForm:g?"isReadonlyForm":"notReadonlyForm",insideLabel:p?"hasInsideLabel":"noInsideLabel"}),_=r.classNames([U,E]),{isTabbable:S,tabbableModeProps:O}=n.useTabbableMode(),{UNSAFE_ariaLabelledBy:P}=o.useAccessibleContext(),k=f?function(...e){return e.filter(Boolean).join(" ")||void 0}(s,P):s;return"input"===y?a.jsx("input",{"aria-describedby":e,"aria-label":B,"aria-labelledby":k,autofocus:b,class:_,readonly:!0,ref:F,type:h,value:I,...!S&&O}):"textarea"===y?a.jsx("textarea",{"aria-describedby":e,"aria-label":B,"aria-labelledby":k,autofocus:b,class:_,readonly:!0,ref:F,rows:L,...!S&&O,children:I}):a.jsx("div",{"aria-describedby":e,"aria-label":B,"aria-labelledby":k,"aria-readonly":!0,autofocus:b,class:_,ref:F,role:"textbox",...O,children:I})}}));
1
+ define(['exports', 'preact/jsx-runtime', './useAccessibleContext-23e8a333', './FormContext-5130e198', './useFormContext-30acdd33', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './classNames-08d99695', './textAlign-ef924afd', './mergeInterpolations-9ede4cf7', './FormFieldContext-3c44aaaa', './useFormFieldContext-8196183c', './useComponentTheme-5aa41a8f', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputTheme', './useTranslationBundle-516b1b83'], (function(e,a,o,t,l,s,n,r,i,d,b,u,c,m,x){"use strict";e.ReadonlyTextFieldInput=function({"aria-describedby":e,"aria-label":t,"aria-labelledby":s,autoFocus:b,as:y="div",elementRef:F,hasEmptyLabel:f,hasInsideLabel:p=!1,inlineUserAssistance:T,innerReadonlyField:C,rows:L,type:h,value:I="",variant:R,...A}){const j=x.useTranslationBundle("@oracle/oraclejet-preact").formControl_loading(),{isFormLayout:v,isReadonly:g}=l.useFormContext(),{isLoading:w}=u.useFormFieldContext(),B=w?j:t,M=[...Object.values(i.textInterpolations)],N=d.mergeInterpolations(M),{class:E}=N(A),{classes:U}=c.useComponentTheme(m.ReadonlyTextFieldInputRedwoodTheme,{textarea:"textarea"===R?"isTextArea":"notTextArea",formLayout:v?"isFormLayout":"notFormLayout",readonlyForm:g?"isReadonlyForm":"notReadonlyForm",insideLabel:p?"hasInsideLabel":"noInsideLabel"}),_=r.classNames([U,E]),{isTabbable:S,tabbableModeProps:O}=n.useTabbableMode(),{UNSAFE_ariaLabelledBy:P}=o.useAccessibleContext(),k=f?function(...e){return e.filter(Boolean).join(" ")||void 0}(s,P):s;return"input"===y?a.jsx("input",{"aria-describedby":e,"aria-label":B,"aria-labelledby":k,autofocus:b,class:_,readonly:!0,ref:F,type:h,value:I,...!S&&O}):"textarea"===y?a.jsx("textarea",{"aria-describedby":e,"aria-label":B,"aria-labelledby":k,autofocus:b,class:_,readonly:!0,ref:F,rows:L,...!S&&O,children:I}):a.jsx("div",{"aria-describedby":e,"aria-label":B,"aria-labelledby":k,"aria-readonly":!0,autofocus:b,class:_,ref:F,role:"textbox",...O,children:I})}}));
2
2
  //# sourceMappingURL=ReadonlyTextFieldInput-608bddc1.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './BaseNavigationListItem-fe9cb691', './Close-04d8a398', 'preact/hooks', './useHover-7964884c', './useTranslationBundle-d07d4b20', './EmbeddedIconButton-bad166c7'], (function(e,t,a,i,o,n,s,r){"use strict";e.RemovableNavigationListItem=function({itemKey:e,label:c,badge:l,metadata:d,severity:v}){const{selection:u,currentKey:m,onRemove:b}=a.useNavigationListContext(),x=u===e,g=m===e,j=o.useCallback((()=>{b?.({value:e})}),[b,e]),{hoverProps:B,isHover:p}=n.useHover({}),I=s.useTranslationBundle("@oracle/oraclejet-preact");return t.jsx("div",{...B,children:t.jsx(a.BaseNavigationListItem,{itemKey:e,label:c,badge:l,metadata:d,severity:v,removeIcon:t.jsx("span",{"data-oj-navigationlist-item-remove-icon":!0,children:t.jsx(r.EmbeddedIconButton,{"aria-label":I.tabBarNavigationList_removeCueText(),size:"xs",onAction:j,children:(p||x||g)&&t.jsx(i.SvgClose,{})})})})})}}));
1
+ define(['exports', 'preact/jsx-runtime', './BaseNavigationListItem-fe9cb691', './Close-04d8a398', 'preact/hooks', './useHover-7964884c', './useTranslationBundle-516b1b83', './EmbeddedIconButton-bad166c7'], (function(e,t,a,i,o,n,s,r){"use strict";e.RemovableNavigationListItem=function({itemKey:e,label:c,badge:l,metadata:d,severity:v}){const{selection:u,currentKey:m,onRemove:b}=a.useNavigationListContext(),x=u===e,g=m===e,j=o.useCallback((()=>{b?.({value:e})}),[b,e]),{hoverProps:B,isHover:p}=n.useHover({}),I=s.useTranslationBundle("@oracle/oraclejet-preact");return t.jsx("div",{...B,children:t.jsx(a.BaseNavigationListItem,{itemKey:e,label:c,badge:l,metadata:d,severity:v,removeIcon:t.jsx("span",{"data-oj-navigationlist-item-remove-icon":!0,children:t.jsx(r.EmbeddedIconButton,{"aria-label":I.tabBarNavigationList_removeCueText(),size:"xs",onAction:j,children:(p||x||g)&&t.jsx(i.SvgClose,{})})})})})}}));
2
2
  //# sourceMappingURL=RemovableNavigationListItem-e01b6693.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', './useHover-7964884c', './Close-04d8a398', './Flex-3421f0df', './mergeInterpolations-9ede4cf7', './flexitem-5db48325', './useTabBarContext-15a23bb6', './TabBarItem-547825e2', './useTranslationBundle-d07d4b20', './EmbeddedIconButton-bad166c7'], (function(e,a,t,o,r,n,s,l,i,c,d,b){"use strict";e.RemovableTabBarItem=function({itemKey:e,label:u,icon:m,badge:x,metadata:v,severity:B,labelMaxWidth:j,"aria-controls":f}){const{selection:h,currentKey:p,layout:I,onRemove:T}=i.useTabBarContext(),y=h===e,g=p===e,C=t.useCallback((()=>{T?.({value:e})}),[T,e]),{hoverProps:H,isHover:K}=o.useHover({}),k=s.mergeInterpolations([...Object.values(l.flexitemInterpolations)])({flex:"stretch"===I?"1 0 auto":"0 0 auto"}),E=d.useTranslationBundle("@oracle/oraclejet-preact");return a.jsx("div",{...H,style:k,children:a.jsx(n.Flex,{children:a.jsx(c.BaseTabBarItem,{"aria-controls":f,itemKey:e,label:u,icon:m,badge:x,metadata:v,severity:B,labelMaxWidth:j,removeIcon:a.jsx("span",{"data-oj-tabbar-item-remove-icon":"true",children:a.jsx(b.EmbeddedIconButton,{"aria-label":E.tabBarNavigationList_removeCueText(),size:"xs",onAction:C,children:(K||y||g)&&a.jsx(r.SvgClose,{})})})})})})}}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact/hooks', './useHover-7964884c', './Close-04d8a398', './Flex-56ecdf4c', './mergeInterpolations-9ede4cf7', './flexitem-5db48325', './useTabBarContext-15a23bb6', './TabBarItem-547825e2', './useTranslationBundle-516b1b83', './EmbeddedIconButton-bad166c7'], (function(e,a,t,o,r,n,s,l,i,c,b,d){"use strict";e.RemovableTabBarItem=function({itemKey:e,label:u,icon:m,badge:x,metadata:v,severity:B,labelMaxWidth:j,"aria-controls":h}){const{selection:p,currentKey:I,layout:f,onRemove:T}=i.useTabBarContext(),y=p===e,g=I===e,C=t.useCallback((()=>{T?.({value:e})}),[T,e]),{hoverProps:H,isHover:K}=o.useHover({}),k=s.mergeInterpolations([...Object.values(l.flexitemInterpolations)])({flex:"stretch"===f?"1 0 auto":"0 0 auto"}),E=b.useTranslationBundle("@oracle/oraclejet-preact");return a.jsx("div",{...H,style:k,children:a.jsx(n.Flex,{children:a.jsx(c.BaseTabBarItem,{"aria-controls":h,itemKey:e,label:u,icon:m,badge:x,metadata:v,severity:B,labelMaxWidth:j,removeIcon:a.jsx("span",{"data-oj-tabbar-item-remove-icon":"true",children:a.jsx(d.EmbeddedIconButton,{"aria-label":E.tabBarNavigationList_removeCueText(),size:"xs",onAction:C,children:(K||y||g)&&a.jsx(r.SvgClose,{})})})})})})}}));
2
2
  //# sourceMappingURL=RemovableTabBarItem-29b54206.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', 'preact/hooks', './HiddenAccessible-037ef42d', './LiveRegion-9a362373', './TabBar-d8890a47', './mergeInterpolations-9ede4cf7', './flexitem-5db48325', './collectionUtils-17f5cc64', './LayerHost-639b3284', './useReorderableItem-726c3c03', './ReorderableContext-6d10a1b7', './UNSAFE_ReorderableTabBar/themes/ReorderableTabBarItemStyles.css', './keys-4755c121', 'css!./DragAndDropStyles.styles.css', 'css!./ReorderableItemStyles.styles.css'], (function(e,r,t,s,a,o,l,d,n,i,c,b,y,u,f,R,m,g){"use strict";const p='[role="tab"]';function x({children:e,dragKey:t,setDragKey:s,onReorder:o,layout:l,rootRef:d}){const b=a.useRef(null),u=a.useCallback((()=>b?.current?.querySelector(p)),[]),m=a.useCallback((e=>{e.dataTransfer?.setData("text/tabbar-item-key",c.getKey(u())+"")}),[u]),{rootProps:g,isDragged:x,overlayZoneBeforeProps:h,overlayZoneAfterProps:v}=y.useReorderableItem({isDisabled:!o,dragKey:t,setDragKey:s,onReorder:o,rootRef:d,ref:b,getItem:u,setTransferData:m,itemStyles:f.styles,itemSelector:p}),j=n.mergeInterpolations([...Object.values(i.flexitemInterpolations)])({flex:"stretch"===l?"1 0 auto":"0 0 auto"});return r.jsxs("div",{...g,draggable:!!o,style:j,children:[e,!x&&R.isKeyDefined(t)&&r.jsxs(r.Fragment,{children:[r.jsx("div",{...h}),r.jsx("div",{...v})]})]})}const h=s.forwardRef((({"aria-label":e,"aria-labelledby":s,children:n,layout:i="stretch",display:c="standard",size:b="md",edge:f="top",selection:R,onSelect:m,onRemove:g,onReorder:h,testId:v},j)=>{const I=a.useRef(null),[S,D]=a.useState(void 0),K="stacked"===c?{display:c}:{display:c,size:b},{reorderProps:T,reorderContext:k,reorderInstructionsId:A,reorderStatus:B,reorderInstructions:C}=y.useReorderable({onReorder:h,rootRef:I,itemSelector:p});return r.jsxs("div",{ref:I,...T,children:[r.jsx(u.ReorderableContext.Provider,{value:k,children:r.jsx(d.TabBar,{ref:j,"aria-label":e,"aria-labelledby":s,layout:i,edge:f,selection:R,onSelect:m,onRemove:g,testId:v,...K,"aria-describedby":A,children:t.toChildArray(n).map((e=>r.jsx(x,{dragKey:S,setDragKey:D,onReorder:h,layout:i,rootRef:I,children:e})))})}),r.jsx("span",{id:A,children:r.jsx(o.HiddenAccessible,{children:C})}),r.jsx(l.LiveRegion,{children:B})]})}));e.ReorderableTabBar=h}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', 'preact/hooks', './HiddenAccessible-037ef42d', './LiveRegion-8142ed0d', './TabBar-d8890a47', './mergeInterpolations-9ede4cf7', './flexitem-5db48325', './collectionUtils-17f5cc64', './LayerHost-e95c5f30', './useReorderableItem-4c4779f7', './ReorderableContext-6d10a1b7', './UNSAFE_ReorderableTabBar/themes/ReorderableTabBarItemStyles.css', './keys-4755c121', 'css!./DragAndDropStyles.styles.css', 'css!./ReorderableItemStyles.styles.css'], (function(e,r,t,s,a,o,l,d,n,i,c,b,y,u,f,R,m,g){"use strict";const p='[role="tab"]';function x({children:e,dragKey:t,setDragKey:s,onReorder:o,layout:l,rootRef:d}){const b=a.useRef(null),u=a.useCallback((()=>b?.current?.querySelector(p)),[]),m=a.useCallback((e=>{e.dataTransfer?.setData("text/tabbar-item-key",c.getKey(u())+"")}),[u]),{rootProps:g,isDragged:x,overlayZoneBeforeProps:h,overlayZoneAfterProps:v}=y.useReorderableItem({isDisabled:!o,dragKey:t,setDragKey:s,onReorder:o,rootRef:d,ref:b,getItem:u,setTransferData:m,itemStyles:f.styles,itemSelector:p}),j=n.mergeInterpolations([...Object.values(i.flexitemInterpolations)])({flex:"stretch"===l?"1 0 auto":"0 0 auto"});return r.jsxs("div",{...g,draggable:!!o,style:j,children:[e,!x&&R.isKeyDefined(t)&&r.jsxs(r.Fragment,{children:[r.jsx("div",{...h}),r.jsx("div",{...v})]})]})}const h=s.forwardRef((({"aria-label":e,"aria-labelledby":s,children:n,layout:i="stretch",display:c="standard",size:b="md",edge:f="top",selection:R,onSelect:m,onRemove:g,onReorder:h,testId:v},j)=>{const I=a.useRef(null),[S,D]=a.useState(void 0),K="stacked"===c?{display:c}:{display:c,size:b},{reorderProps:T,reorderContext:k,reorderInstructionsId:A,reorderStatus:B,reorderInstructions:C}=y.useReorderable({onReorder:h,rootRef:I,itemSelector:p});return r.jsxs("div",{ref:I,...T,children:[r.jsx(u.ReorderableContext.Provider,{value:k,children:r.jsx(d.TabBar,{ref:j,"aria-label":e,"aria-labelledby":s,layout:i,edge:f,selection:R,onSelect:m,onRemove:g,testId:v,...K,"aria-describedby":A,children:t.toChildArray(n).map((e=>r.jsx(x,{dragKey:S,setDragKey:D,onReorder:h,layout:i,rootRef:I,children:e})))})}),r.jsx("span",{id:A,children:r.jsx(o.HiddenAccessible,{children:C})}),r.jsx(l.LiveRegion,{children:B})]})}));e.ReorderableTabBar=h}));
2
2
  //# sourceMappingURL=ReorderableTabBar-462d357c.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './ViewHide-6fda5b25', './View-5da481d6', './useTranslationBundle-d07d4b20', './IconSwitchButton-22f907e7'], (function(e,o,t,i,n,s){"use strict";e.RevealToggleIcon=function({accessibleLabel:e,isRevealed:l,onToggle:c,testId:d,tooltipHide:a,tooltipShow:r}){const u=n.useTranslationBundle("@oracle/oraclejet-preact"),g=a||u.formControl_hide(),w=r||u.formControl_show();return o.jsx(s.IconSwitchButton,{tooltip:l?g:w,accessibleLabel:e,isSelected:!l,onToggle:c,testId:d,size:"sm",children:l?o.jsx(t.SvgViewHide,{}):o.jsx(i.SvgView,{})})}}));
1
+ define(['exports', 'preact/jsx-runtime', './ViewHide-6fda5b25', './View-5da481d6', './useTranslationBundle-516b1b83', './IconSwitchButton-22f907e7'], (function(e,o,t,i,n,s){"use strict";e.RevealToggleIcon=function({accessibleLabel:e,isRevealed:l,onToggle:c,testId:a,tooltipHide:r,tooltipShow:d}){const u=n.useTranslationBundle("@oracle/oraclejet-preact"),g=r||u.formControl_hide(),w=d||u.formControl_show();return o.jsx(s.IconSwitchButton,{tooltip:l?g:w,accessibleLabel:e,isSelected:!l,onToggle:c,testId:a,size:"sm",children:l?o.jsx(t.SvgViewHide,{}):o.jsx(i.SvgView,{})})}}));
2
2
  //# sourceMappingURL=RevealToggleIcon-f975229d.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './layoutUtils-c2938c54', './useChartDnd-947ed9e4', './LineSeries-797d8d16', './dataStyleUtils-7ba616b8', './useUser-3ef25571', './colorUtils-a785c4c4', './accUtils-530bdb90', './Chart-e2807ff7'], (function(e,t,i,n,r,s,o,a,d,l){"use strict";e.ScatterChart=function({width:e,height:d,selectedIds:h=[],hiddenIds:g=[],highlightedIds:c,hideAndShowBehavior:I="none",orientation:x="vertical",yAxis:f,series:u,groups:m,getDataItem:S,selectionMode:v="none",drilling:y="off",dataLabelEffect:p="outline",lineType:C="none",...D}){const{direction:b,forcedColors:A}=o.useUser(),w="active"===A,L=void 0!==D.testId,M="rtl"===b,T="log"===f?.scale,U=D.xAxis?.timeAxisType,E=new Set(g),j=new Set(h),k=new Set(c),F="horizontal"===x,z=a.getColorRamp(),N=n.getSeriesData(u?.length,m?.length,S,E,T),P=(e,t)=>S(e,t),R=n.getMarkers();return t.jsx(l.Chart,{width:e,height:d,selectedIds:j,hiddenIds:g,hideAndShowBehavior:I,orientation:x,yAxis:f,series:u,groups:m,overview:"off",defaultOverviewContentRenderer:()=>null,selectionMode:v,drilling:y,getDataItem:S,findNearest:(e,t)=>i.findNearestDataPoint(u,m,e,t,P,!1,(()=>({offset:0,dataWidth:0})),((e,t)=>t.transform(e)),T,0,E,U),getDataItemPos:(e,t)=>(i,n)=>{const r=N[i][n];if(null==r?.x&&r?.y)return;return{x:e.transform(r?.x),y:t.transform(r?.y),height:0,width:0}},getMarkerInfo:(e,t)=>({color:s.getItemColor(e,t,u,S),type:s.getMarkerType(e,t,S)}),renderGridLinesInFront:!0,isDataXAxis:!0,getNavUtil:(e,t)=>s.getLineAreaChartNavUtil(S,u.length,e,t,!1,M,F),getGapRatio:()=>1,offset:.2,isRtl:M,...D,children:({xStartIndex:e,xEndIndex:i,xScale:s,yScale:o,activeId:a,focusedItemInfo:d,hoveredItemInfo:l,isPointInsideMarquee:h,defaultFontSize:g,getTextDimensions:I})=>t.jsx(t.Fragment,{children:N.map(((f,b)=>{if(0===f.length)return;const A=u[b],M="none"!==C,E=n.getLineAreaSegments(o,s,f,e,i,F,T,m,b,P,U,!0),N=void 0===c||0===c.length||k.has(A.id);return t.jsxs(t.Fragment,{children:[M&&t.jsx(r.LineSeries,{lineType:C,lineColor:A.lineColor,lineWidth:A.lineWidth,lineStyle:A.lineStyle,color:A.lineColor||z[b%z.length],lineSegmentCoords:E,isHorizontal:F,isHighlighted:N,seriesIndex:b}),t.jsx(r.MarkersWithLabel,{yScale:o,xScale:s,groups:m,series:A,timeAxisType:U,color:A.lineColor||z[b%z.length],seriesIndex:b,startIndex:e,endIndex:i,markerType:R[b%R.length],orientation:x,isLog:T,activeId:a,getDataItem:S,isPointInsideMarquee:h,selectedIds:j,highlightedIds:void 0!==c?k:void 0,focusedItemIndex:d.seriesIndex!==b||!d.isFocusVisible||D.isDataCursorEnabled&&D.dataCursorStyle?.isMarkerDisplayed?void 0:d.groupIndex,hoveredItemIndex:l?.isCurrent&&l.seriesIndex===b?l.groupIndex:void 0,isSelectionEnabled:"single"===v||"multiple"===v,isDrillEnabled:"on"===y,defaultFontSize:g,dataLabelEffect:p,isHighContrast:w,isTestEnv:L,isDataXAxis:!0,getTextDimensions:I})]})}))})})}}));
2
- //# sourceMappingURL=ScatterChart-7f0b817b.js.map
1
+ define(['exports', 'preact/jsx-runtime', './layoutUtils-c2938c54', './useChartDnd-947ed9e4', './LineSeries-a549e727', './dataStyleUtils-7ba616b8', './useUser-85c781ea', './colorUtils-a785c4c4', './accUtils-530bdb90', './Chart-3621e125'], (function(e,t,i,n,r,s,o,a,l,d){"use strict";e.ScatterChart=function({width:e,height:l,selectedIds:h=[],hiddenIds:g=[],highlightedIds:c,hideAndShowBehavior:I="none",orientation:x="vertical",yAxis:u,series:f,groups:m,getDataItem:S,selectionMode:v="none",drilling:y="off",dataLabelEffect:p="outline",lineType:C="none",...D}){const{direction:b,forcedColors:A}=o.useUser(),w="active"===A,L=void 0!==D.testId,M="rtl"===b,T="log"===u?.scale,U=D.xAxis?.timeAxisType,E=new Set(g),j=new Set(h),k=new Set(c),F="horizontal"===x,z=a.getColorRamp(),N=n.getSeriesData(f?.length,m?.length,S,E,T),P=(e,t)=>S(e,t),R=n.getMarkers();return t.jsx(d.Chart,{width:e,height:l,selectedIds:j,hiddenIds:g,hideAndShowBehavior:I,orientation:x,yAxis:u,series:f,groups:m,overview:"off",defaultOverviewContentRenderer:()=>null,selectionMode:v,drilling:y,getDataItem:S,findNearest:(e,t)=>i.findNearestDataPoint(f,m,e,t,P,!1,(()=>({offset:0,dataWidth:0})),((e,t)=>t.transform(e)),T,0,E,U),getDataItemPos:(e,t)=>(i,n)=>{const r=N[i][n];if(null==r?.x&&r?.y)return;return{x:e.transform(r?.x),y:t.transform(r?.y),height:0,width:0}},getMarkerInfo:(e,t)=>({color:s.getItemColor(e,t,f,S),type:s.getMarkerType(e,t,S)}),renderGridLinesInFront:!0,isDataXAxis:!0,getNavUtil:(e,t)=>s.getLineAreaChartNavUtil(S,f.length,e,t,!1,M,F),getGapRatio:()=>1,offset:.2,isRtl:M,...D,children:({xStartIndex:e,xEndIndex:i,xScale:s,yScale:o,activeId:a,focusedItemInfo:l,hoveredItemInfo:d,isPointInsideMarquee:h,defaultFontSize:g,getTextDimensions:I})=>t.jsx(t.Fragment,{children:N.map(((u,b)=>{if(0===u.length)return;const A=f[b],M="none"!==C,E=n.getLineAreaSegments(o,s,u,e,i,F,T,m,b,P,U,!0),N=void 0===c||0===c.length||k.has(A.id);return t.jsxs(t.Fragment,{children:[M&&t.jsx(r.LineSeries,{lineType:C,lineColor:A.lineColor,lineWidth:A.lineWidth,lineStyle:A.lineStyle,color:A.lineColor||z[b%z.length],lineSegmentCoords:E,isHorizontal:F,isHighlighted:N,seriesIndex:b}),t.jsx(r.MarkersWithLabel,{yScale:o,xScale:s,groups:m,series:A,timeAxisType:U,color:A.lineColor||z[b%z.length],seriesIndex:b,startIndex:e,endIndex:i,markerType:R[b%R.length],orientation:x,isLog:T,activeId:a,getDataItem:S,isPointInsideMarquee:h,selectedIds:j,highlightedIds:void 0!==c?k:void 0,focusedItemIndex:l.seriesIndex!==b||!l.isFocusVisible||D.isDataCursorEnabled&&D.dataCursorStyle?.isMarkerDisplayed?void 0:l.groupIndex,hoveredItemIndex:d?.isCurrent&&d.seriesIndex===b?d.groupIndex:void 0,isSelectionEnabled:"single"===v||"multiple"===v,isDrillEnabled:"on"===y,defaultFontSize:g,dataLabelEffect:p,isHighContrast:w,isTestEnv:L,isDataXAxis:!0,getTextDimensions:I})]})}))})})}}));
2
+ //# sourceMappingURL=ScatterChart-88304601.js.map