@oracle/oraclejet-preact 19.0.2 → 19.0.3

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 (613) hide show
  1. package/amd/ActionCard-eb924a00.js +1 -1
  2. package/amd/{BarChart-8521c53a.js → BarChart-d94f9c56.js} +2 -2
  3. package/amd/{BarChart-8521c53a.js.map → BarChart-d94f9c56.js.map} +1 -1
  4. package/amd/{BaseButton-d69319ea.js → BaseButton-2c9850cb.js} +2 -2
  5. package/amd/{BaseButton-d69319ea.js.map → BaseButton-2c9850cb.js.map} +1 -1
  6. package/amd/BaseCardView-bc694015.js +1 -1
  7. package/amd/{BaseCardViewSelectionTest-4fae7370.js → BaseCardViewSelectionTest-edac2bbb.js} +2 -2
  8. package/amd/{BaseCardViewSelectionTest-4fae7370.js.map → BaseCardViewSelectionTest-edac2bbb.js.map} +1 -1
  9. package/amd/BaseNavigationListItem-cb5c260b.js +1 -1
  10. package/amd/BaseRichSelection-7f20b3af.js +1 -1
  11. package/amd/BaseSwatchView-4d204ce0.js +1 -1
  12. package/amd/BaseTabBarItem-cdec0e90.js +1 -1
  13. package/amd/Button-bd886c04.js +2 -0
  14. package/amd/{Button-d6bbc57f.js.map → Button-bd886c04.js.map} +1 -1
  15. package/amd/ButtonSet-ce95318d.js +1 -1
  16. package/amd/ButtonSetButton-af5f14b6.js +1 -1
  17. package/amd/ButtonSetIconButton-f3c6a05e.js +1 -1
  18. package/amd/Card-b62c2442.js +2 -0
  19. package/amd/{Card-6e7189a3.js.map → Card-b62c2442.js.map} +1 -1
  20. package/amd/{Center-50b6397c.js → Center-45b0c778.js} +2 -2
  21. package/amd/{Center-50b6397c.js.map → Center-45b0c778.js.map} +1 -1
  22. package/amd/{Chart-061335fe.js → Chart-3108fa88.js} +2 -2
  23. package/amd/{Chart-061335fe.js.map → Chart-3108fa88.js.map} +1 -1
  24. package/amd/Checkbox-8160d2e6.js +1 -1
  25. package/amd/CheckboxControl-c5240f9a.js +1 -1
  26. package/amd/CheckboxRadioField-18bf3cc2.js +1 -1
  27. package/amd/CheckboxRadioLabelValueLayout-edb44215.js +1 -1
  28. package/amd/Chip-b62a8126.js +1 -1
  29. package/amd/ClearIcon-13bd61d3.js +1 -1
  30. package/amd/CollapseIcon-8d26ba2a.js +1 -1
  31. package/amd/Collapsible-bf6945f6.js +1 -1
  32. package/amd/ColorPalette-b26f3861.js +1 -1
  33. package/amd/ColorPicker-8ef0b6e0.js +2 -0
  34. package/amd/{ColorPicker-d578df9c.js.map → ColorPicker-8ef0b6e0.js.map} +1 -1
  35. package/amd/ColorSwatch-57d78771.js +1 -1
  36. package/amd/{ComboChart-f3876b51.js → ComboChart-e61b5581.js} +2 -2
  37. package/amd/{ComboChart-f3876b51.js.map → ComboChart-e61b5581.js.map} +1 -1
  38. package/amd/CompactHelpSource-103a8263.js +1 -1
  39. package/amd/{CompactLabelAssistance-deb90940.js → CompactLabelAssistance-7ec99e08.js} +2 -2
  40. package/amd/{CompactLabelAssistance-deb90940.js.map → CompactLabelAssistance-7ec99e08.js.map} +1 -1
  41. package/amd/CompactUserAssistance-5ef03b0a.js +1 -1
  42. package/amd/ComponentMessageContainer-7d775a43.js +1 -1
  43. package/amd/ConveyorBelt-b9ab13cc.js +1 -1
  44. package/amd/{DatePicker-a07542a8.js → DatePicker-266c4b4e.js} +2 -2
  45. package/amd/{DatePicker-a07542a8.js.map → DatePicker-266c4b4e.js.map} +1 -1
  46. package/amd/DatePickerHeader-25b87f04.js +1 -1
  47. package/amd/Diagram-461719eb.js +1 -1
  48. package/amd/{Dialog-304ce274.js → Dialog-2e5ca26a.js} +2 -2
  49. package/amd/{Dialog-304ce274.js.map → Dialog-2e5ca26a.js.map} +1 -1
  50. package/amd/DirectionalCollapseArrowIcon-6777ae07.js +1 -1
  51. package/amd/DirectionalExpandArrowIcon-21d0b1d5.js +1 -1
  52. package/amd/{DragHandle-9d141cf3.js → DragHandle-68918f40.js} +2 -2
  53. package/amd/{DragHandle-9d141cf3.js.map → DragHandle-68918f40.js.map} +1 -1
  54. package/amd/{DrawerPopup-2b59d7f3.js → DrawerPopup-8d62ed90.js} +2 -2
  55. package/amd/{DrawerPopup-2b59d7f3.js.map → DrawerPopup-8d62ed90.js.map} +1 -1
  56. package/amd/{Dropdown-c119d072.js → Dropdown-9d52501e.js} +2 -2
  57. package/amd/{Dropdown-c119d072.js.map → Dropdown-9d52501e.js.map} +1 -1
  58. package/amd/{EmbeddedIconButton-23c53268.js → EmbeddedIconButton-7a2a1a8c.js} +2 -2
  59. package/amd/{EmbeddedIconButton-23c53268.js.map → EmbeddedIconButton-7a2a1a8c.js.map} +1 -1
  60. package/amd/{EnvironmentProvider-d538fcb2.js → EnvironmentProvider-fb09fcfb.js} +2 -2
  61. package/amd/{EnvironmentProvider-d538fcb2.js.map → EnvironmentProvider-fb09fcfb.js.map} +1 -1
  62. package/amd/ExpandableList-08269646.js +1 -1
  63. package/amd/Expander-9efeb845.js +1 -1
  64. package/amd/FilePicker-e5a20eaa.js +1 -1
  65. package/amd/FlatTreeView-6545afce.js +1 -1
  66. package/amd/{Flex-07d2aa5b.js → Flex-4bc3a394.js} +2 -2
  67. package/amd/{Flex-07d2aa5b.js.map → Flex-4bc3a394.js.map} +1 -1
  68. package/amd/{Floating-8192acb2.js → Floating-366a30f8.js} +2 -2
  69. package/amd/{Floating-8192acb2.js.map → Floating-366a30f8.js.map} +1 -1
  70. package/amd/FormLayout-ce4e956c.js +1 -1
  71. package/amd/Gantt-ad770490.js +1 -1
  72. package/amd/{Grid-d415ba8d.js → Grid-2ddec30a.js} +2 -2
  73. package/amd/{Grid-d415ba8d.js.map → Grid-2ddec30a.js.map} +1 -1
  74. package/amd/{Gridlines-c6c1fbb5.js → Gridlines-545ae30a.js} +2 -2
  75. package/amd/{Gridlines-c6c1fbb5.js.map → Gridlines-545ae30a.js.map} +1 -1
  76. package/amd/GroupLoadingIndicator-87f32efc.js +1 -1
  77. package/amd/{HighlightText-ecd2e5ce.js → HighlightText-ace1b6c4.js} +2 -2
  78. package/amd/{HighlightText-ecd2e5ce.js.map → HighlightText-ace1b6c4.js.map} +1 -1
  79. package/amd/Icon-865b3c78.js +1 -1
  80. package/amd/IconButton-232d63fc.js +1 -1
  81. package/amd/IconMenuButton-eef4b2da.js +1 -1
  82. package/amd/IconProgressButton-f9cdb23a.js +1 -1
  83. package/amd/IconSwitchButton-5be99684.js +1 -1
  84. package/amd/IconToggleButton-b783604a.js +1 -1
  85. package/amd/{IconUserAssistance-0c55d53f.js → IconUserAssistance-af9839fb.js} +2 -2
  86. package/amd/{IconUserAssistance-0c55d53f.js.map → IconUserAssistance-af9839fb.js.map} +1 -1
  87. package/amd/Indexer-bbb763a7.js +1 -1
  88. package/amd/InlineHelpSource-34ec0779.js +1 -1
  89. package/amd/InlineSelectSingle-bebf92d3.js +1 -1
  90. package/amd/InlineUserAssistance-e406e352.js +1 -1
  91. package/amd/{InputColor-192a309b.js → InputColor-5315b76a.js} +2 -2
  92. package/amd/{InputColor-192a309b.js.map → InputColor-5315b76a.js.map} +1 -1
  93. package/amd/InputDateMask-2fdb6f26.js +1 -1
  94. package/amd/InputDatePicker-a1eea599.js +1 -1
  95. package/amd/InputPassword-72147893.js +1 -1
  96. package/amd/InputSensitiveText-28cebe14.js +1 -1
  97. package/amd/InputText-83b55089.js +1 -1
  98. package/amd/Label-3c17bcc9.js +1 -1
  99. package/amd/LabelValueLayout-39dc1be3.js +1 -1
  100. package/amd/Layer-dc3c1ac9.js +2 -0
  101. package/amd/{Layer-c91c7141.js.map → Layer-dc3c1ac9.js.map} +1 -1
  102. package/amd/{LayerHost-daf96749.js → LayerHost-7d4aa6d3.js} +2 -2
  103. package/amd/{LayerHost-daf96749.js.map → LayerHost-7d4aa6d3.js.map} +1 -1
  104. package/amd/{LayerManager-8bad71b0.js → LayerManager-4983f21c.js} +2 -2
  105. package/amd/{LayerManager-8bad71b0.js.map → LayerManager-4983f21c.js.map} +1 -1
  106. package/amd/Legend-a8e9f523.js +1 -1
  107. package/amd/{LineAreaChart-07848f77.js → LineAreaChart-f8aefe07.js} +2 -2
  108. package/amd/{LineAreaChart-07848f77.js.map → LineAreaChart-f8aefe07.js.map} +1 -1
  109. package/amd/Link-c772dbef.js +1 -1
  110. package/amd/List-5b5b3bd7.js +1 -1
  111. package/amd/{ListItemLayout-50d0c8fa.js → ListItemLayout-83b78862.js} +2 -2
  112. package/amd/{ListItemLayout-50d0c8fa.js.map → ListItemLayout-83b78862.js.map} +1 -1
  113. package/amd/ListView-02b5ba6d.js +1 -1
  114. package/amd/LiveRegion-4b9317e5.js +2 -0
  115. package/amd/{LiveRegion-ef77cf92.js.map → LiveRegion-4b9317e5.js.map} +1 -1
  116. package/amd/{MaxLengthLiveRegion-04832e9d.js → MaxLengthLiveRegion-1f30f975.js} +2 -2
  117. package/amd/{MaxLengthLiveRegion-04832e9d.js.map → MaxLengthLiveRegion-1f30f975.js.map} +1 -1
  118. package/amd/Menu-45a26116.js +1 -1
  119. package/amd/MenuButton-0a9c6e8e.js +1 -1
  120. package/amd/MenuItem-ff1cd14d.js +1 -1
  121. package/amd/Message-d715942d.js +1 -1
  122. package/amd/{MessageLayer-5a8ba5af.js → MessageLayer-8df59ea9.js} +2 -2
  123. package/amd/{MessageLayer-5a8ba5af.js.map → MessageLayer-8df59ea9.js.map} +1 -1
  124. package/amd/MessageToast-44f7b49d.js +1 -1
  125. package/amd/MessagesManager-1a6283c1.js +1 -1
  126. package/amd/MeterBar-e417440c.js +1 -1
  127. package/amd/MeterCircle-d2ac0a67.js +1 -1
  128. package/amd/{Modal-1b3cd230.js → Modal-8d647f76.js} +2 -2
  129. package/amd/{Modal-1b3cd230.js.map → Modal-8d647f76.js.map} +1 -1
  130. package/amd/{MonthView-e2744696.js → MonthView-48d59de4.js} +2 -2
  131. package/amd/{MonthView-e2744696.js.map → MonthView-48d59de4.js.map} +1 -1
  132. package/amd/NavigationListItem-73686e95.js +1 -1
  133. package/amd/NavigationListLinkItem-87d5ca3d.js +1 -1
  134. package/amd/NumberInputText-01c1859f.js +1 -1
  135. package/amd/OverflowTabBarItem-b75ebe9b.js +1 -1
  136. package/amd/PRIVATE_BaseCardView.js +1 -1
  137. package/amd/PRIVATE_BaseSwatchView.js +1 -1
  138. package/amd/PRIVATE_Chart.js +1 -1
  139. package/amd/PRIVATE_CheckboxControl.js +1 -1
  140. package/amd/PRIVATE_CheckboxRadioField.js +1 -1
  141. package/amd/PRIVATE_ClearIcon.js +1 -1
  142. package/amd/PRIVATE_ContainerDiagram.js +1 -1
  143. package/amd/PRIVATE_DatePickerHeader.js +1 -1
  144. package/amd/PRIVATE_DatePickerLayout.js +1 -1
  145. package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
  146. package/amd/PRIVATE_Expander.js +1 -1
  147. package/amd/PRIVATE_FormControls.js +1 -1
  148. package/amd/PRIVATE_IconSwitchButton.js +1 -1
  149. package/amd/PRIVATE_Icons/CheckboxCrossed.js +1 -1
  150. package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
  151. package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
  152. package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
  153. package/amd/PRIVATE_Icons/DragV.js +1 -1
  154. package/amd/PRIVATE_Icons/None.js +1 -1
  155. package/amd/PRIVATE_List.js +1 -1
  156. package/amd/PRIVATE_Message.js +1 -1
  157. package/amd/PRIVATE_MessageLayer.js +1 -1
  158. package/amd/PRIVATE_MonthView.js +1 -1
  159. package/amd/PRIVATE_MonthYearGridView.js +1 -1
  160. package/amd/PRIVATE_PlotArea.js +1 -1
  161. package/amd/PRIVATE_RevealToggleIcon.js +1 -1
  162. package/amd/PRIVATE_RichSelectionCommon.js +1 -1
  163. package/amd/PRIVATE_SelectCommon.js +1 -1
  164. package/amd/PRIVATE_StyledCard.js +1 -1
  165. package/amd/PRIVATE_StyledCheckbox.js +1 -1
  166. package/amd/PRIVATE_SwatchFlexView.js +1 -1
  167. package/amd/PRIVATE_Table.js +1 -1
  168. package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
  169. package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
  170. package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
  171. package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
  172. package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
  173. package/amd/PRIVATE_ThemedIcons/CheckboxCrossedIcon.js +1 -1
  174. package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
  175. package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
  176. package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
  177. package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
  178. package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
  179. package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
  180. package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
  181. package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
  182. package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
  183. package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
  184. package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
  185. package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
  186. package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
  187. package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
  188. package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
  189. package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
  190. package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
  191. package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
  192. package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
  193. package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
  194. package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
  195. package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
  196. package/amd/PRIVATE_ThemedIcons/None.js +1 -1
  197. package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
  198. package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
  199. package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
  200. package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
  201. package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
  202. package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
  203. package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
  204. package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
  205. package/amd/PRIVATE_TimeComponent.js +1 -1
  206. package/amd/PRIVATE_VisOverview.js +1 -1
  207. package/amd/PRIVATE_VisTabularDatatip.js +1 -1
  208. package/amd/PictoChart-34f56e1c.js +1 -1
  209. package/amd/PieChart-c934e8f0.js +1 -1
  210. package/amd/{Popup-695781d6.js → Popup-062b66ff.js} +2 -2
  211. package/amd/{Popup-695781d6.js.map → Popup-062b66ff.js.map} +1 -1
  212. package/amd/{ProgressBar-70983add.js → ProgressBar-9aed0a47.js} +2 -2
  213. package/amd/{ProgressBar-70983add.js.map → ProgressBar-9aed0a47.js.map} +1 -1
  214. package/amd/ProgressButton-e6a1d457.js +1 -1
  215. package/amd/ProgressButtonLabelLayout-0931b1d5.js +1 -1
  216. package/amd/{ProgressCircle-551b98ed.js → ProgressCircle-0001dec1.js} +2 -2
  217. package/amd/{ProgressCircle-551b98ed.js.map → ProgressCircle-0001dec1.js.map} +1 -1
  218. package/amd/RadioItem-49626d64.js +1 -1
  219. package/amd/RatingGauge-e7a36731.js +1 -1
  220. package/amd/ReadonlyTextFieldInput-e5723c48.js +1 -1
  221. package/amd/RemovableTabBarItem-c7dd457b.js +1 -1
  222. package/amd/ReorderableTabBar-5d664f67.js +1 -1
  223. package/amd/RevealToggleIcon-28c5efc5.js +1 -1
  224. package/amd/{ScatterChart-292935ff.js → ScatterChart-1999acf0.js} +2 -2
  225. package/amd/{ScatterChart-292935ff.js.map → ScatterChart-1999acf0.js.map} +1 -1
  226. package/amd/SectionalLegend-a37ee0ec.js +1 -1
  227. package/amd/SectionedContent-bae8af88.js +2 -0
  228. package/amd/{SectionedContent-054e2fc2.js.map → SectionedContent-bae8af88.js.map} +1 -1
  229. package/amd/SelectMobileFieldInput-3650e1fe.js +1 -1
  230. package/amd/SelectMultiple-8dce10da.js +1 -1
  231. package/amd/SelectSingle-6d1f640f.js +1 -1
  232. package/amd/SelectionCard-e5665725.js +2 -0
  233. package/amd/{SelectionCard-601660df.js.map → SelectionCard-e5665725.js.map} +1 -1
  234. package/amd/Selector-470f114d.js +1 -1
  235. package/amd/{SelectorAll-82589ce2.js → SelectorAll-ac6005c5.js} +2 -2
  236. package/amd/{SelectorAll-82589ce2.js.map → SelectorAll-ac6005c5.js.map} +1 -1
  237. package/amd/{Sheet-c7f3fe2d.js → Sheet-fdd314ac.js} +2 -2
  238. package/amd/{Sheet-c7f3fe2d.js.map → Sheet-fdd314ac.js.map} +1 -1
  239. package/amd/SortControl-6d8e62c0.js +1 -1
  240. package/amd/SplitMenuButton-ba7fc113.js +1 -1
  241. package/amd/{StyledCard-8dbd5d58.js → StyledCard-f72bdcc4.js} +2 -2
  242. package/amd/{StyledCard-8dbd5d58.js.map → StyledCard-f72bdcc4.js.map} +1 -1
  243. package/amd/{StyledLabelValueLayout-5737d116.js → StyledLabelValueLayout-5a476d38.js} +2 -2
  244. package/amd/{StyledLabelValueLayout-5737d116.js.map → StyledLabelValueLayout-5a476d38.js.map} +1 -1
  245. package/amd/StyledTextField-5e554e5b.js +1 -1
  246. package/amd/Submenu-d0c548f0.js +1 -1
  247. package/amd/TabBar-fa06f492.js +1 -1
  248. package/amd/TabBarContextMenu-cad0a362.js +1 -1
  249. package/amd/TabBarLayout-9f802535.js +1 -1
  250. package/amd/TabBarMixed-2d5bc172.js +1 -1
  251. package/amd/TabBarMixedSeparator-4c6ad368.js +2 -0
  252. package/amd/{TabBarMixedSeparator-07022bdc.js.map → TabBarMixedSeparator-4c6ad368.js.map} +1 -1
  253. package/amd/Table-d0cc2468.js +1 -1
  254. package/amd/TagCloud-ccd75f37.js +1 -1
  255. package/amd/TextArea-ddd1d6b9.js +1 -1
  256. package/amd/TextAreaAutosize-3cf8e06c.js +1 -1
  257. package/amd/TextField-51b63f5f.js +1 -1
  258. package/amd/TextFieldInput-eb40adaa.js +1 -1
  259. package/amd/Theme-redwood/theme.css +194 -194
  260. package/amd/Theme-stable/theme.css +238 -238
  261. package/amd/TimeComponentCanvas2D-02d13a18.js +1 -1
  262. package/amd/ToggleButton-9201e07b.js +1 -1
  263. package/amd/Toolbar-4b2c5d5e.js +1 -1
  264. package/amd/TruncatingBadge-2d00ef48.js +1 -1
  265. package/amd/TruncatingText-459021db.js +1 -1
  266. package/amd/UNSAFE_ActionCard.js +1 -1
  267. package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
  268. package/amd/UNSAFE_BarChart.js +1 -1
  269. package/amd/UNSAFE_BareButton.js +1 -1
  270. package/amd/UNSAFE_BaseButton.js +1 -1
  271. package/amd/UNSAFE_Button.js +1 -1
  272. package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  273. package/amd/UNSAFE_ButtonSet.js +1 -1
  274. package/amd/UNSAFE_ButtonSetButton.js +1 -1
  275. package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
  276. package/amd/UNSAFE_ButtonSetItem.js +1 -1
  277. package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
  278. package/amd/UNSAFE_ButtonSetSingle.js +1 -1
  279. package/amd/UNSAFE_Card.js +1 -1
  280. package/amd/UNSAFE_CardFlexView.js +1 -1
  281. package/amd/UNSAFE_CardGridView.js +1 -1
  282. package/amd/UNSAFE_Center.js +1 -1
  283. package/amd/UNSAFE_Checkbox.js +1 -1
  284. package/amd/UNSAFE_CheckboxItem.js +1 -1
  285. package/amd/UNSAFE_CheckboxRadioField.js +1 -1
  286. package/amd/UNSAFE_CheckboxSet.js +1 -1
  287. package/amd/UNSAFE_Chip.js +1 -1
  288. package/amd/UNSAFE_Collapsible.js +1 -1
  289. package/amd/UNSAFE_ColorPalette.js +1 -1
  290. package/amd/UNSAFE_ColorPicker.js +1 -1
  291. package/amd/UNSAFE_ColorSwatch.js +1 -1
  292. package/amd/UNSAFE_ComboChart.js +1 -1
  293. package/amd/UNSAFE_ComponentMessage.js +1 -1
  294. package/amd/UNSAFE_ConveyorBelt.js +1 -1
  295. package/amd/UNSAFE_DatePicker.js +1 -1
  296. package/amd/UNSAFE_Diagram.js +1 -1
  297. package/amd/UNSAFE_Dialog.js +1 -1
  298. package/amd/UNSAFE_DragHandle.js +1 -1
  299. package/amd/UNSAFE_DrawerLayout.js +1 -1
  300. package/amd/UNSAFE_DrawerPopup.js +1 -1
  301. package/amd/UNSAFE_Dropdown.js +1 -1
  302. package/amd/UNSAFE_Environment.js +1 -1
  303. package/amd/UNSAFE_ExpandableList.js +1 -1
  304. package/amd/UNSAFE_FilePicker.js +1 -1
  305. package/amd/UNSAFE_FlatTreeView.js +1 -1
  306. package/amd/UNSAFE_Flex.js +1 -1
  307. package/amd/UNSAFE_Floating.js +1 -1
  308. package/amd/UNSAFE_FormLayout.js +1 -1
  309. package/amd/UNSAFE_Gantt.js +1 -1
  310. package/amd/UNSAFE_Grid.js +1 -1
  311. package/amd/UNSAFE_HighlightText.js +1 -1
  312. package/amd/UNSAFE_Icon.js +1 -1
  313. package/amd/UNSAFE_IconButton.js +1 -1
  314. package/amd/UNSAFE_IconMenuButton.js +1 -1
  315. package/amd/UNSAFE_IconProgressButton.js +1 -1
  316. package/amd/UNSAFE_IconToggleButton.js +1 -1
  317. package/amd/UNSAFE_Indexer.js +1 -1
  318. package/amd/UNSAFE_InlineSelectSingle.js +1 -1
  319. package/amd/UNSAFE_InputColor.js +1 -1
  320. package/amd/UNSAFE_InputDateMask.js +1 -1
  321. package/amd/UNSAFE_InputDatePicker.js +1 -1
  322. package/amd/UNSAFE_InputPassword.js +1 -1
  323. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  324. package/amd/UNSAFE_InputText.js +1 -1
  325. package/amd/UNSAFE_InputTimeMask.js +1 -1
  326. package/amd/UNSAFE_Label.js +1 -1
  327. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  328. package/amd/UNSAFE_LabelledLink.js +1 -1
  329. package/amd/UNSAFE_Layer.js +1 -1
  330. package/amd/UNSAFE_Legend.js +1 -1
  331. package/amd/UNSAFE_LineAreaChart.js +1 -1
  332. package/amd/UNSAFE_Link.js +1 -1
  333. package/amd/UNSAFE_ListItemLayout.js +1 -1
  334. package/amd/UNSAFE_ListView.js +1 -1
  335. package/amd/UNSAFE_LiveRegion.js +1 -1
  336. package/amd/UNSAFE_Menu.js +1 -1
  337. package/amd/UNSAFE_MenuButton.js +1 -1
  338. package/amd/UNSAFE_MessageBanner.js +1 -1
  339. package/amd/UNSAFE_MessageToast.js +1 -1
  340. package/amd/UNSAFE_MeterBar.js +1 -1
  341. package/amd/UNSAFE_MeterCircle.js +1 -1
  342. package/amd/UNSAFE_Modal.js +1 -1
  343. package/amd/UNSAFE_NavigationList.js +1 -1
  344. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  345. package/amd/UNSAFE_NumberInputText.js +1 -1
  346. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  347. package/amd/UNSAFE_PictoChart.js +1 -1
  348. package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
  349. package/amd/UNSAFE_PieChart.js +1 -1
  350. package/amd/UNSAFE_Popup.js +1 -1
  351. package/amd/UNSAFE_ProgressBar.js +1 -1
  352. package/amd/UNSAFE_ProgressButton.js +1 -1
  353. package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
  354. package/amd/UNSAFE_ProgressCircle.js +1 -1
  355. package/amd/UNSAFE_RadioItem.js +1 -1
  356. package/amd/UNSAFE_RadioSet.js +1 -1
  357. package/amd/UNSAFE_RatingGauge.js +1 -1
  358. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  359. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  360. package/amd/UNSAFE_RichRadioSet.js +1 -1
  361. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  362. package/amd/UNSAFE_ScatterChart.js +1 -1
  363. package/amd/UNSAFE_SectionalLegend.js +1 -1
  364. package/amd/UNSAFE_SelectMultiple.js +1 -1
  365. package/amd/UNSAFE_SelectSingle.js +1 -1
  366. package/amd/UNSAFE_SelectionCard.js +1 -1
  367. package/amd/UNSAFE_Selector.js +1 -1
  368. package/amd/UNSAFE_SelectorAll.js +1 -1
  369. package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
  370. package/amd/UNSAFE_Sheet.js +1 -1
  371. package/amd/UNSAFE_SortControl.js +1 -1
  372. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  373. package/amd/UNSAFE_TabBar.js +1 -1
  374. package/amd/UNSAFE_TabBarCommon.js +1 -1
  375. package/amd/UNSAFE_TabBarMixed.js +1 -1
  376. package/amd/UNSAFE_TableView.js +1 -1
  377. package/amd/UNSAFE_TagCloud.js +1 -1
  378. package/amd/UNSAFE_TextArea.js +1 -1
  379. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  380. package/amd/UNSAFE_TextField.js +1 -1
  381. package/amd/UNSAFE_ToggleButton.js +1 -1
  382. package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  383. package/amd/UNSAFE_Toolbar.js +1 -1
  384. package/amd/UNSAFE_Train.js +1 -1
  385. package/amd/UNSAFE_TruncatingBadge.js +1 -1
  386. package/amd/UNSAFE_TruncatingText.js +1 -1
  387. package/amd/UNSAFE_UserAssistance.js +1 -1
  388. package/amd/UNSAFE_View.js +1 -1
  389. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  390. package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
  391. package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
  392. package/amd/UNSAFE_VisStatusMessage.js +1 -1
  393. package/amd/UNSAFE_WindowOverlay.js +1 -1
  394. package/amd/{View-ab4d3a33.js → View-5520bcf5.js} +2 -2
  395. package/amd/{View-ab4d3a33.js.map → View-5520bcf5.js.map} +1 -1
  396. package/amd/{VisNoData-adbb8750.js → VisNoData-d70d0d82.js} +2 -2
  397. package/amd/{VisNoData-adbb8750.js.map → VisNoData-d70d0d82.js.map} +1 -1
  398. package/amd/{VisProgressiveLoader-e5f7abe1.js → VisProgressiveLoader-07978120.js} +2 -2
  399. package/amd/{VisProgressiveLoader-e5f7abe1.js.map → VisProgressiveLoader-07978120.js.map} +1 -1
  400. package/amd/{VisTabularDatatip-e95bbf79.js → VisTabularDatatip-ab3b0b91.js} +2 -2
  401. package/amd/{VisTabularDatatip-e95bbf79.js.map → VisTabularDatatip-ab3b0b91.js.map} +1 -1
  402. package/amd/{WindowOverlay-69da5337.js → WindowOverlay-bd810e3b.js} +2 -2
  403. package/amd/{WindowOverlay-69da5337.js.map → WindowOverlay-bd810e3b.js.map} +1 -1
  404. package/amd/{YearsGridView-855ba9af.js → YearsGridView-eae67964.js} +2 -2
  405. package/amd/{YearsGridView-855ba9af.js.map → YearsGridView-eae67964.js.map} +1 -1
  406. package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
  407. package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
  408. package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
  409. package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
  410. package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
  411. package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
  412. package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
  413. package/amd/hooks/PRIVATE_useCssVars.js +1 -1
  414. package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
  415. package/amd/hooks/PRIVATE_useDatatip.js +1 -1
  416. package/amd/hooks/PRIVATE_useFloating.js +1 -1
  417. package/amd/hooks/PRIVATE_useListCommon.js +1 -1
  418. package/amd/hooks/PRIVATE_useOutsideMousedown.js +1 -1
  419. package/amd/hooks/PRIVATE_useReorderable.js +1 -1
  420. package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
  421. package/amd/hooks/PRIVATE_useSelection.js +1 -1
  422. package/amd/hooks/PRIVATE_useTabBar.js +1 -1
  423. package/amd/hooks/PRIVATE_useTooltipOnTruncation.js +1 -1
  424. package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
  425. package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
  426. package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
  427. package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
  428. package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
  429. package/amd/hooks/UNSAFE_useBareButton.js +1 -1
  430. package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
  431. package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
  432. package/amd/hooks/UNSAFE_useDensity.js +1 -1
  433. package/amd/hooks/UNSAFE_useHiddenTestMethod.js +1 -1
  434. package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
  435. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  436. package/amd/hooks/UNSAFE_useScale.js +1 -1
  437. package/amd/hooks/UNSAFE_useTestId.js +1 -1
  438. package/amd/hooks/UNSAFE_useTheme.js +1 -1
  439. package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
  440. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  441. package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
  442. package/amd/hooks/UNSAFE_useUser.js +1 -1
  443. package/amd/{index-c11efa38.js → index-89934afc.js} +2 -2
  444. package/amd/index-89934afc.js.map +1 -0
  445. package/amd/listViewSelectionTests-a58ee4c0.js +1 -1
  446. package/amd/popupUtils-e19b93b5.js +2 -0
  447. package/amd/{popupUtils-019ff48f.js.map → popupUtils-e19b93b5.js.map} +1 -1
  448. package/amd/{render-7cdd2fd1.js → render-88108768.js} +2 -2
  449. package/amd/{render-7cdd2fd1.js.map → render-88108768.js.map} +1 -1
  450. package/amd/{tabbableUtils-b1a61a1b.js → tabbableUtils-147c1073.js} +2 -2
  451. package/amd/{tabbableUtils-b1a61a1b.js.map → tabbableUtils-147c1073.js.map} +1 -1
  452. package/amd/{testData-c9985c4d.js → testData-845e2489.js} +2 -2
  453. package/amd/{testData-c9985c4d.js.map → testData-845e2489.js.map} +1 -1
  454. package/amd/{tooltipUtils-ae57629b.js → tooltipUtils-3c8a0253.js} +2 -2
  455. package/amd/{tooltipUtils-ae57629b.js.map → tooltipUtils-3c8a0253.js.map} +1 -1
  456. package/amd/useBareButton-3f7e0c0c.js +1 -1
  457. package/amd/useCellNavigation-43a992b6.js +1 -1
  458. package/amd/useChartContextMenu-59688a67.js +1 -1
  459. package/amd/{useChartDatatip-7beb4b24.js → useChartDatatip-cdfc4089.js} +2 -2
  460. package/amd/{useChartDatatip-7beb4b24.js.map → useChartDatatip-cdfc4089.js.map} +1 -1
  461. package/amd/{useColorScheme-3022ec9a.js → useColorScheme-f2a81610.js} +2 -2
  462. package/amd/{useColorScheme-3022ec9a.js.map → useColorScheme-f2a81610.js.map} +1 -1
  463. package/amd/useContextMenu-4bd1c23a.js +1 -1
  464. package/amd/useCssVars-d782da3d.js +2 -0
  465. package/amd/{useCssVars-5b3bc31e.js.map → useCssVars-d782da3d.js.map} +1 -1
  466. package/amd/{useCurrentBgColor-11b82a49.js → useCurrentBgColor-4326d3d6.js} +2 -2
  467. package/amd/{useCurrentBgColor-11b82a49.js.map → useCurrentBgColor-4326d3d6.js.map} +1 -1
  468. package/amd/useCurrentKey-2f1ca19e.js +2 -0
  469. package/amd/{useCurrentKey-8e979c7a.js.map → useCurrentKey-2f1ca19e.js.map} +1 -1
  470. package/amd/{useDatatip-be0adcf0.js → useDatatip-36aa820b.js} +2 -2
  471. package/amd/{useDatatip-be0adcf0.js.map → useDatatip-36aa820b.js.map} +1 -1
  472. package/amd/{useDensity-cb21e58e.js → useDensity-bee3cef4.js} +2 -2
  473. package/amd/{useDensity-cb21e58e.js.map → useDensity-bee3cef4.js.map} +1 -1
  474. package/amd/useDisplayValue-fa0fbc23.js +1 -1
  475. package/amd/{useExpandCollapse-99ff9bec.js → useExpandCollapse-4478c2eb.js} +2 -2
  476. package/amd/{useExpandCollapse-99ff9bec.js.map → useExpandCollapse-4478c2eb.js.map} +1 -1
  477. package/amd/{useFloating-25daefd7.js → useFloating-0df4b3d3.js} +2 -2
  478. package/amd/{useFloating-25daefd7.js.map → useFloating-0df4b3d3.js.map} +1 -1
  479. package/amd/{useHiddenTestMethod-90b5bff5.js → useHiddenTestMethod-2f1d2e7e.js} +2 -2
  480. package/amd/{useHiddenTestMethod-90b5bff5.js.map → useHiddenTestMethod-2f1d2e7e.js.map} +1 -1
  481. package/amd/useKeyboardEvents-a684ba76.js +2 -0
  482. package/amd/{useKeyboardEvents-e4599671.js.map → useKeyboardEvents-a684ba76.js.map} +1 -1
  483. package/amd/useLegendContextMenu-acabb503.js +1 -1
  484. package/amd/useMeterDatatip-b7dc96a3.js +2 -0
  485. package/amd/{useMeterDatatip-934d034d.js.map → useMeterDatatip-b7dc96a3.js.map} +1 -1
  486. package/amd/useNavigation-a6a2218f.js +1 -1
  487. package/amd/{useOutsideClick-1b59c507.js → useOutsideClick-9c4ceb18.js} +2 -2
  488. package/amd/{useOutsideClick-1b59c507.js.map → useOutsideClick-9c4ceb18.js.map} +1 -1
  489. package/amd/{useOutsideMousedown-ce3f7207.js → useOutsideMousedown-b0021878.js} +2 -2
  490. package/amd/{useOutsideMousedown-ce3f7207.js.map → useOutsideMousedown-b0021878.js.map} +1 -1
  491. package/amd/{usePopupAnimation-f8e212f7.js → usePopupAnimation-9f80595b.js} +2 -2
  492. package/amd/{usePopupAnimation-f8e212f7.js.map → usePopupAnimation-9f80595b.js.map} +1 -1
  493. package/amd/usePrefixSuffix-66563417.js +2 -0
  494. package/amd/{usePrefixSuffix-b26030fe.js.map → usePrefixSuffix-66563417.js.map} +1 -1
  495. package/amd/{useReorderableItem-13c24764.js → useReorderableItem-013ac2e8.js} +2 -2
  496. package/amd/{useReorderableItem-13c24764.js.map → useReorderableItem-013ac2e8.js.map} +1 -1
  497. package/amd/{useRovingTabIndexContainer-be2d51cf.js → useRovingTabIndexContainer-b11a404b.js} +2 -2
  498. package/amd/{useRovingTabIndexContainer-be2d51cf.js.map → useRovingTabIndexContainer-b11a404b.js.map} +1 -1
  499. package/amd/{useScale-fa445112.js → useScale-5d246769.js} +2 -2
  500. package/amd/{useScale-fa445112.js.map → useScale-5d246769.js.map} +1 -1
  501. package/amd/useSelectCommon-f04454d2.js +1 -1
  502. package/amd/{useSelectDrill-3b31318e.js → useSelectDrill-05d4e28f.js} +2 -2
  503. package/amd/{useSelectDrill-3b31318e.js.map → useSelectDrill-05d4e28f.js.map} +1 -1
  504. package/amd/{useSelection-d2a32b37.js → useSelection-87a6bea9.js} +2 -2
  505. package/amd/{useSelection-d2a32b37.js.map → useSelection-87a6bea9.js.map} +1 -1
  506. package/amd/useSelection-bb7d04ee.js +2 -0
  507. package/amd/{useSelection-7638353f.js.map → useSelection-bb7d04ee.js.map} +1 -1
  508. package/amd/useTabBar-ce36c510.js +1 -1
  509. package/amd/{useTestId-9afc201a.js → useTestId-a2e433c2.js} +2 -2
  510. package/amd/{useTestId-9afc201a.js.map → useTestId-a2e433c2.js.map} +1 -1
  511. package/amd/{useTheme-0ee6fb01.js → useTheme-af7bfac1.js} +2 -2
  512. package/amd/{useTheme-0ee6fb01.js.map → useTheme-af7bfac1.js.map} +1 -1
  513. package/amd/useThemeInterpolations-1dff2f9d.js +2 -0
  514. package/amd/{useThemeInterpolations-14ffb628.js.map → useThemeInterpolations-1dff2f9d.js.map} +1 -1
  515. package/amd/useTooltip-e14d62f1.js +2 -0
  516. package/amd/{useTooltip-75a63697.js.map → useTooltip-e14d62f1.js.map} +1 -1
  517. package/amd/{useTooltipControlled-558b2a13.js → useTooltipControlled-f7e07ed4.js} +2 -2
  518. package/amd/{useTooltipControlled-558b2a13.js.map → useTooltipControlled-f7e07ed4.js.map} +1 -1
  519. package/amd/{useTooltipOnTruncation-7c9b6e6b.js → useTooltipOnTruncation-e6d20cc0.js} +2 -2
  520. package/amd/{useTooltipOnTruncation-7c9b6e6b.js.map → useTooltipOnTruncation-e6d20cc0.js.map} +1 -1
  521. package/amd/{useTranslationBundle-8e42d505.js → useTranslationBundle-27bf6340.js} +2 -2
  522. package/amd/{useTranslationBundle-8e42d505.js.map → useTranslationBundle-27bf6340.js.map} +1 -1
  523. package/amd/{useUser-12ec03f1.js → useUser-988f7da2.js} +2 -2
  524. package/amd/{useUser-12ec03f1.js.map → useUser-988f7da2.js.map} +1 -1
  525. package/amd/useVisDragModeControls-4fcf2261.js +1 -1
  526. package/amd/{useVisEvents-e7b8669b.js → useVisEvents-3839d74f.js} +2 -2
  527. package/amd/{useVisEvents-e7b8669b.js.map → useVisEvents-3839d74f.js.map} +1 -1
  528. package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
  529. package/amd/utils/PRIVATE_visTestUtils.js +1 -1
  530. package/amd/utils/UNSAFE_popupUtils.js +1 -1
  531. package/amd/{withDirectionIcon-170ce869.js → withDirectionIcon-2bb38763.js} +2 -2
  532. package/amd/{withDirectionIcon-170ce869.js.map → withDirectionIcon-2bb38763.js.map} +1 -1
  533. package/amd/withThemeProps-0ef51fd1.js +1 -1
  534. package/cjs/TextArea-8608dba1.js +187 -0
  535. package/cjs/TextArea-8608dba1.js.map +1 -0
  536. package/cjs/Theme-redwood/theme.css +222 -222
  537. package/cjs/Theme-stable/theme.css +174 -174
  538. package/cjs/UNSAFE_TextArea.js +106 -216
  539. package/cjs/UNSAFE_TextArea.js.map +1 -1
  540. package/cjs/UNSAFE_TextAreaAutosize.js +2 -2
  541. package/cjs/UNSAFE_TextAreaAutosize.js.map +1 -1
  542. package/es/CheckboxSet-751d4298.js +49 -0
  543. package/es/CheckboxSet-751d4298.js.map +1 -0
  544. package/es/{ColorPicker-94212b50.js → ColorPicker-c603ebc6.js} +2 -2
  545. package/es/{ColorPicker-94212b50.js.map → ColorPicker-c603ebc6.js.map} +1 -1
  546. package/es/FormLayoutVariants.styles.css +14 -14
  547. package/es/FormLayoutVariants.styles2.css +14 -14
  548. package/es/ProgressBarVariants.styles.css +1 -1
  549. package/es/ProgressBarVariants.styles2.css +1 -1
  550. package/es/SegmentStyles.styles.css +8 -11
  551. package/es/SegmentStyles.styles2.css +11 -8
  552. package/es/SplitMenuButtonTheme.styles.css +4 -4
  553. package/es/SplitMenuButtonTheme.styles2.css +4 -4
  554. package/es/TextArea-273e8ce4.js +184 -0
  555. package/es/TextArea-273e8ce4.js.map +1 -0
  556. package/es/Theme-redwood/theme.css +373 -373
  557. package/es/Theme-stable/theme.css +467 -467
  558. package/es/UNSAFE_CheckboxItem.js +101 -47
  559. package/es/UNSAFE_CheckboxItem.js.map +1 -1
  560. package/es/UNSAFE_CheckboxSet.js +10 -44
  561. package/es/UNSAFE_CheckboxSet.js.map +1 -1
  562. package/es/UNSAFE_ColorPicker.js +25 -25
  563. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutTheme.js +1 -1
  564. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutVariants.css.js +1 -1
  565. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutTheme.js +1 -1
  566. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutVariants.css.js +1 -1
  567. package/es/UNSAFE_FormLayout.js +1 -1
  568. package/es/UNSAFE_InputColor.js +2 -2
  569. package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
  570. package/es/UNSAFE_InputDateMask.js +1 -1
  571. package/es/UNSAFE_InputDatePicker.js +92 -92
  572. package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
  573. package/es/UNSAFE_InputTimeMask.js +1 -1
  574. package/es/UNSAFE_ProgressBar/themes/redwood/ProgressBarTheme.js +1 -1
  575. package/es/UNSAFE_ProgressBar/themes/redwood/ProgressBarVariants.css.js +1 -1
  576. package/es/UNSAFE_ProgressBar/themes/stable/ProgressBarTheme.js +1 -1
  577. package/es/UNSAFE_ProgressBar/themes/stable/ProgressBarVariants.css.js +1 -1
  578. package/es/UNSAFE_ProgressBar.js +1 -1
  579. package/es/UNSAFE_RichCheckboxSet.js +29 -25
  580. package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
  581. package/es/UNSAFE_RichSelectionItem.js +172 -29
  582. package/es/UNSAFE_RichSelectionItem.js.map +1 -1
  583. package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
  584. package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
  585. package/es/UNSAFE_SplitMenuButton.js +1 -1
  586. package/es/UNSAFE_TextArea.js +104 -219
  587. package/es/UNSAFE_TextArea.js.map +1 -1
  588. package/es/UNSAFE_TextAreaAutosize.js +1 -1
  589. package/package.json +2 -2
  590. package/amd/Button-d6bbc57f.js +0 -2
  591. package/amd/Card-6e7189a3.js +0 -2
  592. package/amd/ColorPicker-d578df9c.js +0 -2
  593. package/amd/Layer-c91c7141.js +0 -2
  594. package/amd/LiveRegion-ef77cf92.js +0 -2
  595. package/amd/SectionedContent-054e2fc2.js +0 -2
  596. package/amd/SelectionCard-601660df.js +0 -2
  597. package/amd/TabBarMixedSeparator-07022bdc.js +0 -2
  598. package/amd/index-c11efa38.js.map +0 -1
  599. package/amd/popupUtils-019ff48f.js +0 -2
  600. package/amd/useCssVars-5b3bc31e.js +0 -2
  601. package/amd/useCurrentKey-8e979c7a.js +0 -2
  602. package/amd/useKeyboardEvents-e4599671.js +0 -2
  603. package/amd/useMeterDatatip-934d034d.js +0 -2
  604. package/amd/usePrefixSuffix-b26030fe.js +0 -2
  605. package/amd/useSelection-7638353f.js +0 -2
  606. package/amd/useThemeInterpolations-14ffb628.js +0 -2
  607. package/amd/useTooltip-75a63697.js +0 -2
  608. package/cjs/MaxLengthCounter-39055ba1.js +0 -27
  609. package/cjs/MaxLengthCounter-39055ba1.js.map +0 -1
  610. package/es/CheckboxSetContext-1be56556.js +0 -9
  611. package/es/CheckboxSetContext-1be56556.js.map +0 -1
  612. package/es/MaxLengthCounter-d622f964.js +0 -25
  613. package/es/MaxLengthCounter-d622f964.js.map +0 -1
@@ -1,2 +1,2 @@
1
- define(['exports', './TimeComponentCanvas2D-02d13a18', 'preact/jsx-runtime', './PRIVATE_TimeComponent/themes/TimeComponentStyles.css', 'css!./TimeComponentStyles.styles.css', './classNames-08d99695', 'preact/hooks', './TrackResizeContainer-a4999df9', './useSize-165f7da4', './useResizeObserver-25032462', './useAddBusyState-8ed5cc58', './BusyStateContext-ab2c549a', 'preact', './useBusyStateContext-26bb2acb', './unsafeDomAccess-602c5dde', './size-0127b66b', './utils-ad4761c9', './themeContract.css-2e4b066d', './colorUtils-b9dc1bd1', './_curry1-df649359', './Flex-07d2aa5b', './useTestId-9afc201a', './LayerHost-daf96749', './index-f7ad24df', 'preact/compat', './UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./LayerHostStyles.styles.css', './boxalignment-6cee1ef3', './arrayUtils-6ee96a35', 'css!./boxalignment.styles.css', './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-84d30764', './dimensions-f24f9a2b', './flexbox-8521f6aa', 'css!./flexbox.styles.css', './flexitem-5db48325', 'css!./flexitem.styles.css', './mergeInterpolations-9ede4cf7', './mergeDeepWithKey-aaab9019', './_curry3-83878f86', './_curry2-86c52b86', './_isObject-42bafc94', 'css!./FlexStyles.styles.css', './BaseButton-d69319ea', './useHover-8b8a1496', './useToggle-a29f97af', './useActive-bb5dc069', './useColorScheme-3022ec9a', './clientHints-6d361eaa', './mergeProps-bcfa6a92', './UNSAFE_BaseButton/themes/redwood/BaseButtonTheme', './UNSAFE_BaseButton/themes/BaseButtonStyles.css', 'css!./BaseButtonStyles.styles.css', './UNSAFE_BaseButton/themes/redwood/BaseButtonVariants.css', './vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', 'module', './useComponentTheme-5aa41a8f', './logger-0f873e29', './BareButton-7b68bbbf', './useBareButton-3f7e0c0c', './usePress-949a0d03', './usePressClick-b5bf4243', './TabbableModeContext-a9c97640', './useTabbableMode-df433329', './useId-c9578d26', './buttonUtils-cbbb0130', './id-c70ab33c', './ButtonLabelLayout-9cc087dc', './Text-9e32c423', './UNSAFE_Text/themes/TextStyles.css', 'css!./TextStyles.styles.css', './useButtonLabelLayoutTheme-3237026f', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme', './UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css', 'css!./ButtonLabelLayoutStyles.styles.css', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.css', 'module', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css', 'css!./ButtonLabelLayoutVariants.styles.css', './useTooltip-75a63697', './useTooltipControlled-558b2a13', './useFocus-4194fc59', './useTouch-37489bb5', './useAnimation-5a74955f', './useThemeInterpolations-14ffb628', './useScale-fa445112', './theme-a8f3d819', './Theme-d945adae', './useDensity-cb21e58e', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css', 'css!./TooltipContentStyles.styles.css', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', 'css!./TooltipContentVariants.styles.css', './tooltipUtils-ae57629b', './EnvironmentProvider-d538fcb2', './LayerManager-8bad71b0', './Floating-8192acb2', './useFloating-25daefd7', './useUser-12ec03f1', './positionUtils-6e4daa31', './refUtils-77e97004', './useOutsideClick-1b59c507', './Layer-c91c7141', './UNSAFE_Layer/themes/LayerStyles.css', 'css!./LayerStyles.styles.css', './useModal-536cb7ff', './UNSAFE_Floating/themes/redwood/FloatingTheme', './UNSAFE_Floating/themes/FloatingStyles.css', 'css!./FloatingStyles.styles.css', './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', './UNSAFE_Floating/themes/redwood/FloatingVariants.css', './vanilla-extract-dynamic.esm-6065bbd7', './UNSAFE_Floating/themes/FloatingContract.css', './useUnsafeDomElementRef-75afb461', './Plus-0108d400', './Icon-865b3c78', './UNSAFE_Icon/themes/IconStyle.css', 'css!./IconStyle.styles.css', './getFormatParse-7ea0c25b', './types-2446783b', './useTranslationBundle-8e42d505', './Minus-6ab20a15', './usePointerGesture-1c1dd806'], (function(e,t,s,o,a,n,l,i,r,c,m,u,d,b,y,T,S,p,C,h,B,f,F,L,U,A,_,E,g,x,N,w,v,k,V,H,P,z,I,D,M,O,R,Z,j,G,K,W,q,J,Q,X,Y,$,ee,te,se,oe,ae,ne,le,ie,re,ce,me,ue,de,be,ye,Te,Se,pe,Ce,he,Be,fe,Fe,Le,Ue,Ae,_e,Ee,ge,xe,Ne,we,ve,ke,Ve,He,Pe,ze,Ie,De,Me,Oe,Re,Ze,je,Ge,Ke,We,qe,Je,Qe,Xe,Ye,$e,et,tt,st,ot,at,nt,lt,it,rt,ct,mt,ut,dt,bt,yt,Tt,St,pt){"use strict";e.TimeComponentCanvas2D=t.TimeComponentCanvas2D,e.TimeComponentHorizontalScrollbar=t.TimeComponentHorizontalScrollbar,e.TimeComponentHorizontalScrollbarContainer=t.TimeComponentHorizontalScrollbarContainer,e.TimeComponentHorizontalTimeAxis=t.TimeComponentHorizontalTimeAxis,e.TimeComponentLayersStack=t.TimeComponentLayersStack,e.TimeComponentOverlayControlsContainer=t.TimeComponentOverlayControlsContainer,e.TimeComponentPanZoomLayout=t.TimeComponentPanZoomLayout,e.TimeComponentVerticalGridlines=t.TimeComponentVerticalGridlines,e.TimeComponentVerticalScrollbar=t.TimeComponentVerticalScrollbar,e.TimeComponentVerticalScrollbarContainer=t.TimeComponentVerticalScrollbarContainer,e.TimeComponentZoomControls=t.TimeComponentZoomControls,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(['exports', './TimeComponentCanvas2D-02d13a18', 'preact/jsx-runtime', './PRIVATE_TimeComponent/themes/TimeComponentStyles.css', 'css!./TimeComponentStyles.styles.css', './classNames-08d99695', 'preact/hooks', './TrackResizeContainer-a4999df9', './useSize-165f7da4', './useResizeObserver-25032462', './useAddBusyState-8ed5cc58', './BusyStateContext-ab2c549a', 'preact', './useBusyStateContext-26bb2acb', './unsafeDomAccess-602c5dde', './size-0127b66b', './utils-ad4761c9', './themeContract.css-2e4b066d', './colorUtils-b9dc1bd1', './_curry1-df649359', './Flex-4bc3a394', './useTestId-a2e433c2', './LayerHost-7d4aa6d3', './index-f7ad24df', 'preact/compat', './UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./LayerHostStyles.styles.css', './boxalignment-6cee1ef3', './arrayUtils-6ee96a35', 'css!./boxalignment.styles.css', './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-84d30764', './dimensions-f24f9a2b', './flexbox-8521f6aa', 'css!./flexbox.styles.css', './flexitem-5db48325', 'css!./flexitem.styles.css', './mergeInterpolations-9ede4cf7', './mergeDeepWithKey-aaab9019', './_curry3-83878f86', './_curry2-86c52b86', './_isObject-42bafc94', 'css!./FlexStyles.styles.css', './BaseButton-2c9850cb', './useHover-8b8a1496', './useToggle-a29f97af', './useActive-bb5dc069', './useColorScheme-f2a81610', './clientHints-6d361eaa', './mergeProps-bcfa6a92', './UNSAFE_BaseButton/themes/redwood/BaseButtonTheme', './UNSAFE_BaseButton/themes/BaseButtonStyles.css', 'css!./BaseButtonStyles.styles.css', './UNSAFE_BaseButton/themes/redwood/BaseButtonVariants.css', './vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', 'module', './useComponentTheme-5aa41a8f', './logger-0f873e29', './BareButton-7b68bbbf', './useBareButton-3f7e0c0c', './usePress-949a0d03', './usePressClick-b5bf4243', './TabbableModeContext-a9c97640', './useTabbableMode-df433329', './useId-c9578d26', './buttonUtils-cbbb0130', './id-c70ab33c', './ButtonLabelLayout-9cc087dc', './Text-9e32c423', './UNSAFE_Text/themes/TextStyles.css', 'css!./TextStyles.styles.css', './useButtonLabelLayoutTheme-3237026f', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme', './UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css', 'css!./ButtonLabelLayoutStyles.styles.css', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.css', 'module', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css', 'css!./ButtonLabelLayoutVariants.styles.css', './useTooltip-e14d62f1', './useTooltipControlled-f7e07ed4', './useFocus-4194fc59', './useTouch-37489bb5', './useAnimation-5a74955f', './useThemeInterpolations-1dff2f9d', './useScale-5d246769', './theme-a8f3d819', './Theme-d945adae', './useDensity-bee3cef4', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css', 'css!./TooltipContentStyles.styles.css', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', 'css!./TooltipContentVariants.styles.css', './tooltipUtils-3c8a0253', './EnvironmentProvider-fb09fcfb', './LayerManager-4983f21c', './Floating-366a30f8', './useFloating-0df4b3d3', './useUser-988f7da2', './positionUtils-6e4daa31', './refUtils-77e97004', './useOutsideClick-9c4ceb18', './Layer-dc3c1ac9', './UNSAFE_Layer/themes/LayerStyles.css', 'css!./LayerStyles.styles.css', './useModal-536cb7ff', './UNSAFE_Floating/themes/redwood/FloatingTheme', './UNSAFE_Floating/themes/FloatingStyles.css', 'css!./FloatingStyles.styles.css', './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', './UNSAFE_Floating/themes/redwood/FloatingVariants.css', './vanilla-extract-dynamic.esm-6065bbd7', './UNSAFE_Floating/themes/FloatingContract.css', './useUnsafeDomElementRef-75afb461', './Plus-0108d400', './Icon-865b3c78', './UNSAFE_Icon/themes/IconStyle.css', 'css!./IconStyle.styles.css', './getFormatParse-7ea0c25b', './types-2446783b', './useTranslationBundle-27bf6340', './Minus-6ab20a15', './usePointerGesture-1c1dd806'], (function(e,t,s,o,a,n,l,i,c,r,m,u,d,b,y,T,S,p,C,f,h,B,F,L,U,A,_,E,g,x,N,w,v,k,V,H,P,z,I,D,M,O,R,Z,j,G,K,W,q,J,Q,X,Y,$,ee,te,se,oe,ae,ne,le,ie,ce,re,me,ue,de,be,ye,Te,Se,pe,Ce,fe,he,Be,Fe,Le,Ue,Ae,_e,Ee,ge,xe,Ne,we,ve,ke,Ve,He,Pe,ze,Ie,De,Me,Oe,Re,Ze,je,Ge,Ke,We,qe,Je,Qe,Xe,Ye,$e,et,tt,st,ot,at,nt,lt,it,ct,rt,mt,ut,dt,bt,yt,Tt,St,pt){"use strict";e.TimeComponentCanvas2D=t.TimeComponentCanvas2D,e.TimeComponentHorizontalScrollbar=t.TimeComponentHorizontalScrollbar,e.TimeComponentHorizontalScrollbarContainer=t.TimeComponentHorizontalScrollbarContainer,e.TimeComponentHorizontalTimeAxis=t.TimeComponentHorizontalTimeAxis,e.TimeComponentLayersStack=t.TimeComponentLayersStack,e.TimeComponentOverlayControlsContainer=t.TimeComponentOverlayControlsContainer,e.TimeComponentPanZoomLayout=t.TimeComponentPanZoomLayout,e.TimeComponentVerticalGridlines=t.TimeComponentVerticalGridlines,e.TimeComponentVerticalScrollbar=t.TimeComponentVerticalScrollbar,e.TimeComponentVerticalScrollbarContainer=t.TimeComponentVerticalScrollbarContainer,e.TimeComponentZoomControls=t.TimeComponentZoomControls,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=PRIVATE_TimeComponent.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', './OverviewSlidingWindow-366528eb', 'preact/jsx-runtime', 'preact/hooks', './PRIVATE_VisOverview/themes/VisOverview.css', 'css!./VisOverview.styles.css', './eventsUtils-5fb81c3e', './accUtils-acd70e81', './clientHints-6d361eaa', './DragH-c1224a99', './Icon-865b3c78', 'preact', './size-0127b66b', './utils-ad4761c9', './themeContract.css-2e4b066d', './colorUtils-b9dc1bd1', './_curry1-df649359', './useTooltip-75a63697', './useTooltipControlled-558b2a13', './useId-c9578d26', './useHover-8b8a1496', './useToggle-a29f97af', './useFocus-4194fc59', './useTouch-37489bb5', './mergeProps-bcfa6a92', './useAnimation-5a74955f', './useComponentTheme-5aa41a8f', './logger-0f873e29', './useTestId-9afc201a', './LayerHost-daf96749', './index-f7ad24df', 'preact/compat', './UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./LayerHostStyles.styles.css', './useThemeInterpolations-14ffb628', './useColorScheme-3022ec9a', './useScale-fa445112', './theme-a8f3d819', './Theme-d945adae', './mergeInterpolations-9ede4cf7', './classNames-08d99695', './mergeDeepWithKey-aaab9019', './_curry3-83878f86', './_curry2-86c52b86', './_isObject-42bafc94', './useDensity-cb21e58e', './unsafeDomAccess-602c5dde', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css', 'css!./TooltipContentStyles.styles.css', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', 'css!./TooltipContentVariants.styles.css', './vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', './tooltipUtils-ae57629b', './EnvironmentProvider-d538fcb2', './LayerManager-8bad71b0', './Floating-8192acb2', './useFloating-25daefd7', './useUser-12ec03f1', './positionUtils-6e4daa31', './refUtils-77e97004', './useOutsideClick-1b59c507', './arrayUtils-6ee96a35', './Layer-c91c7141', './UNSAFE_Layer/themes/LayerStyles.css', 'css!./LayerStyles.styles.css', './useModal-536cb7ff', './UNSAFE_Floating/themes/redwood/FloatingTheme', './UNSAFE_Floating/themes/FloatingStyles.css', 'css!./FloatingStyles.styles.css', './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', './UNSAFE_Floating/themes/redwood/FloatingVariants.css', './vanilla-extract-dynamic.esm-6065bbd7', './UNSAFE_Floating/themes/FloatingContract.css', './useUnsafeDomElementRef-75afb461', './UNSAFE_Icon/themes/IconStyle.css', 'css!./IconStyle.styles.css', './clientUtils-df9caee0'], (function(e,s,t,o,a,i,c,l,n,r,d,m,u,y,h,f,F,b,p,S,g,T,U,_,v,w,A,E,N,C,I,L,O,k,V,H,x,D,B,P,W,j,M,R,z,K,q,G,J,Q,X,Y,Z,$,ee,se,te,oe,ae,ie,ce,le,ne,re,de,me,ue,ye,he,fe,Fe,be,pe,Se,ge,Te,Ue,_e,ve,we,Ae){"use strict";e.OverviewSlidingWindow=s.OverviewSlidingWindow,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(['exports', './OverviewSlidingWindow-366528eb', 'preact/jsx-runtime', 'preact/hooks', './PRIVATE_VisOverview/themes/VisOverview.css', 'css!./VisOverview.styles.css', './eventsUtils-5fb81c3e', './accUtils-acd70e81', './clientHints-6d361eaa', './DragH-c1224a99', './Icon-865b3c78', 'preact', './size-0127b66b', './utils-ad4761c9', './themeContract.css-2e4b066d', './colorUtils-b9dc1bd1', './_curry1-df649359', './useTooltip-e14d62f1', './useTooltipControlled-f7e07ed4', './useId-c9578d26', './useHover-8b8a1496', './useToggle-a29f97af', './useFocus-4194fc59', './useTouch-37489bb5', './mergeProps-bcfa6a92', './useAnimation-5a74955f', './useComponentTheme-5aa41a8f', './logger-0f873e29', './useTestId-a2e433c2', './LayerHost-7d4aa6d3', './index-f7ad24df', 'preact/compat', './UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./LayerHostStyles.styles.css', './useThemeInterpolations-1dff2f9d', './useColorScheme-f2a81610', './useScale-5d246769', './theme-a8f3d819', './Theme-d945adae', './mergeInterpolations-9ede4cf7', './classNames-08d99695', './mergeDeepWithKey-aaab9019', './_curry3-83878f86', './_curry2-86c52b86', './_isObject-42bafc94', './useDensity-bee3cef4', './unsafeDomAccess-602c5dde', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css', 'css!./TooltipContentStyles.styles.css', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', 'css!./TooltipContentVariants.styles.css', './vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', './tooltipUtils-3c8a0253', './EnvironmentProvider-fb09fcfb', './LayerManager-4983f21c', './Floating-366a30f8', './useFloating-0df4b3d3', './useUser-988f7da2', './positionUtils-6e4daa31', './refUtils-77e97004', './useOutsideClick-9c4ceb18', './arrayUtils-6ee96a35', './Layer-dc3c1ac9', './UNSAFE_Layer/themes/LayerStyles.css', 'css!./LayerStyles.styles.css', './useModal-536cb7ff', './UNSAFE_Floating/themes/redwood/FloatingTheme', './UNSAFE_Floating/themes/FloatingStyles.css', 'css!./FloatingStyles.styles.css', './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', './UNSAFE_Floating/themes/redwood/FloatingVariants.css', './vanilla-extract-dynamic.esm-6065bbd7', './UNSAFE_Floating/themes/FloatingContract.css', './useUnsafeDomElementRef-75afb461', './UNSAFE_Icon/themes/IconStyle.css', 'css!./IconStyle.styles.css', './clientUtils-df9caee0'], (function(e,s,t,o,a,i,c,l,n,r,d,m,f,u,y,h,F,p,S,g,T,b,U,_,v,w,A,E,N,C,I,L,O,k,V,H,x,D,B,P,W,j,M,R,z,K,q,G,J,Q,X,Y,Z,$,ee,se,te,oe,ae,ie,ce,le,ne,re,de,me,fe,ue,ye,he,Fe,pe,Se,ge,Te,be,Ue,_e,ve,we,Ae){"use strict";e.OverviewSlidingWindow=s.OverviewSlidingWindow,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=PRIVATE_VisOverview.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', './VisTabularDatatip-e95bbf79', 'preact/jsx-runtime', './classNames-08d99695', './PRIVATE_VisTabularDatatip/themes/VisTabularDatatipStyles.css', 'css!./VisTabularDatatipStyles.styles.css', './useUser-12ec03f1', 'preact/hooks', './LayerHost-daf96749', 'preact', './index-f7ad24df', 'preact/compat', './UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./LayerHostStyles.styles.css'], (function(a,s,e,t,r,i,l,c,p,u,y,o,b,d){"use strict";a.VisTabularDatatip=s.VisTabularDatatip,Object.defineProperty(a,"__esModule",{value:!0})}));
1
+ define(['exports', './VisTabularDatatip-ab3b0b91', 'preact/jsx-runtime', './classNames-08d99695', './PRIVATE_VisTabularDatatip/themes/VisTabularDatatipStyles.css', 'css!./VisTabularDatatipStyles.styles.css', './useUser-988f7da2', 'preact/hooks', './LayerHost-7d4aa6d3', './index-f7ad24df', 'preact', 'preact/compat', './UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./LayerHostStyles.styles.css'], (function(a,s,t,e,r,i,l,c,p,u,y,b,d,o){"use strict";a.VisTabularDatatip=s.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-a4999df9', 'preact', 'preact/hooks', './UNSAFE_PictoChart/themes/PictoChartStyles.css', './classNames-08d99695', './useSelection-7638353f', './useTranslationBundle-8e42d505', './mergeProps-bcfa6a92', './themeContract.css-2e4b066d', './utils-ad4761c9', './SvgSymbol-b672024f', './accUtils-acd70e81', './useUser-12ec03f1', './layoutUtils-641af87a', './eventsUtils-5fb81c3e', './useVisHover-28319fef', './useVisDrill-b08ba7e5', './useDatatip-be0adcf0', './useItemFocus-75d6510d', './LayerHost-daf96749', 'preact/compat', './datatipUtils-6846028e', './useTestId-9afc201a', './useVisTouchResponse-88a7bb09', './stringUtils-4ffd9d59', './useContextMenu-4bd1c23a', './Menu-45a26116', './MenuItem-ff1cd14d', './logger-0f873e29', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-ae57629b', 'css!./IconStyle.styles.css', './SelectMenuGroupContext-67f24a8f', './UNSAFE_Menu/themes/MenuItemStyles.css', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./MenuSeparatorStyles.styles.css', 'module', './UNSAFE_Menu/themes/redwood/MenuSeparatorVariants.css', 'css!./MenuStyles.styles.css'], (function(t,e,o,n,r,i,s,c,a,l,u,d,f,m,p,h,g,x,I,S,C,b,y,w,v,M,R,E,$,F,k,P,D,T,U,V,A,N,H,j,_,B,L){"use strict";const O=n.createContext({});function W(t,e){return Math.ceil(t/e)*e}const q=(t,e,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)if(t[o+i][e+r])return!1;return!0},G=(t,e,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)t[o+i][e+r]=!0},z=(t,e,o,n,r,i)=>{if(i){for(let i=0;i<=n-e;i++)for(let n=0;n<=r-o;n++)if(q(t,i,n,e,o))return G(t,i,n,e,o),{col:i,row:n}}else for(let i=0;i<r-o+1;i++)for(let r=0;r<n-e+1;r++)if(q(t,r,i,e,o))return G(t,r,i,e,o),{col:r,row:i}};function K(t){const e=t.dataset.idx;if(void 0!==e)return{idx:Number(e)}}function Z(t,e,o,n,r,i,s,c,a,l,u){let d=!1;if(!n){const t=!!s&&e===s.idx,o=!!r&&e===r.idx;d=!!(t&&s?.isCurrent||o&&r?.isCurrent)}const f=function(t,e){return!e||0===e.length||new Set(e).has(t)}(t.id,c),m=function(t,e){return!(!e||0===e.length)&&new Set(e).has(t)}(t.id,i);return{isCurrent:d,isHighlighted:f,isSelected:m,hasSelection:i&&0!==i.length,isFocused:!!s&&Q(s,e),key:t.id,itemIdx:e,countIdx:o,activeId:d?a:void 0,isReadOnly:n,item:t,isVerticalLayout:l,layoutOrigin:u}}function J(t,e){return t?.idx===e?.idx}function Q(t,e){return!!t.isFocusVisible&&t.idx===e}function X(t,e,o){return`${o?.vis_labelCountWithTotal({itemCount:t.toString(),totalCount:e.toString()})}`}const Y=({context:t,markerProps:o})=>{const{supportsSelection:n}=r.useContext(O),i=function(t,e,o,n,r,i){const s="human"===t,c=o||r&&i,a="ellipse"===t||"rectangle"===t;e=""!==e?e:d.rgba(u.colorSchemeVars.palette.neutral[190],.15);const l=n?u.colorSchemeVars.textIcon.primary:c?e:"";return{markerShape:t,tx:s?70:void 0,ty:s?60:void 0,markerColor:e,borderColor:n||c?d.rgb(u.colorSchemeVars.palette.neutral[0]):e,outerBorderColor:l,markerScale:a&&!l?1:.85,setAspectRatioNone:!!a}}(o.shape,o.color,t.state.focused,t.state.selected,t.state.hovered,n);return e.jsx(f.SvgSymbol,{...i})};function tt(t,e){const{idx:o}=t;return e[o]}function et(t){return{getItem:e=>tt(e,t),getDetailFromInfo:e=>{if(!e)return{id:void 0,data:void 0};const o=tt(e,t);return{id:o?o.id:void 0,data:o}},getPrevItemInfo:t=>function(t){let e=t.idx;return e=Math.max(0,e-1),{idx:e}}(t),getNextItemInfo:e=>function(t,e){let o=t.idx;return o=Math.min(e.length-1,o+1),{idx:o}}(e,t)}}const ot=t=>{const{direction:o}=p.useUser(),n="rtl"===o,r=t.isVerticalLayout;let c=t.fractionalStart??0,a=t.fractionalEnd??1;const l=t.layoutOrigin;r?"bottomStart"!==l&&"bottomEnd"!==l||([c,a]=[1-a,1-c]):"bottomEnd"!==l&&"topEnd"!==l||([c,a]=[1-a,1-c]);const u=0!==c||1!==a?r?`polygon(0% ${100*c}%, 100% ${100*c}%, 100% ${100*a}%, 0% ${100*a}%)`:n?`polygon(${100-100*a}% 0%, ${100-100*c}% 0%, ${100-100*c}% 100%, ${100-100*a}% 100%)`:`polygon(${100*c}% 0%, ${100*a}% 0%, ${100*a}% 100%, ${100*c}% 100%)`:void 0,d=t.supportsSelection||t.supportsDrill,{dimmedItemStyle:f,interactiveItemStyle:h}=i.styles,g=s.classNames([d&&h,!t.isHighlighted&&f]),x=0===t.countIdx,I=x&&function(t,e,o,n,r,i,s,c,a){const l=r?X(t,e,r):"";return c=c||`${n?n+": ":""}${l}`,{"aria-label":m.generateAriaLabel(r,c,{isSelected:o||s?i:void 0})||void 0,role:"img",id:a}}(t.item.count||1,t.totalCount,!!t.supportsSelection,t.item.label,t.translations,t.isSelected,t.hasSelection,t.item.accessibleLabel,t.activeId)||{};return e.jsx("div",{ref:x?t.focusedItemRef:void 0,id:t.activeId,"data-idx":t.itemIdx,"data-count-idx":t.countIdx,style:{gridRow:`${t.row+1} / span ${t.item.rowSpan||1}`,gridColumn:`${t.column+1} / span ${t.item.columnSpan||1}`,clipPath:u},class:g,...I,children:t.children})};function nt({width:t,height:o,columnWidth:n,rowHeight:f,items:m,columnCount:b,rowCount:y,layout:w,layoutOrigin:$="topStart",selectionMode:F="none",highlightedIds:k=[],selectedIds:P=[],drilling:D="off",onItemDrill:T,onItemHover:U,isFlowingWidth:V,isFlowingHeight:A,onItemFocus:N,contextMenuConfig:H,...j}){const _=r.useRef(null),B=0!==m.length,L=function(t){let e=0;for(let o=0;o<t.length;o++)e+=t[o].count||1;return e}(m),O=a.useTranslationBundle("@oracle/oraclejet-preact"),q=!(!F||"none"===F),G=null!=T,Q=!q&&!G&&null===U&&null===N,Y=v.useTestId(j.testId),tt=new Map(m.map((t=>[t.id,t]))),{getItem:nt,getDetailFromInfo:rt,getPrevItemInfo:it,getNextItemInfo:st}=et(m),{touchResponse:ct,touchResponseStyle:at}=M.useVisTouchResponse({type:"touchStart"}),{hoveredItemInfo:lt,focusedItemInfo:ut,activeId:dt,eventsProps:ft,onContextMenuDismissed:mt}=function(t,e,o,n,i,s,c,a,u,d){const[f,m]=r.useState({idx:0}),[S,C]=r.useState(),b=r.useRef(),{direction:y}=p.useUser(),w="rtl"===y,v=x.useVisHover((t=>{const o=K(t.target);J(o,S)||(C(o&&{...o,isCurrent:!0}),b.current=h.getRandomId(),e&&(m({...f,isCurrent:!1}),u?.(n(o))))}),void 0,(()=>{C(void 0),b.current=void 0,e&&u?.(n())}),t),M=r.useCallback((t=>{const{id:e,data:o}=n(t);null!=e&&o&&(a?.({id:e,data:o}),b.current=h.getRandomId())}),[n,a]),R=r.useCallback((t=>{"keydown"===t.type?"on"==c&&M(f):M(K(t.target))}),[c,f,M]),E=I.useVisDrill(o,R);if(!e)return{focusedItemInfo:f,hoveredItemInfo:S,eventsProps:v};function $(t){d?.(n(t)),b.current=h.getRandomId(),m(t)}function F(t){J(t,f)||(t.isCurrent=!0,t.isFocusVisible=!0,S&&C({...S,isCurrent:!1}),$(t))}return{focusedItemInfo:f,hoveredItemInfo:S,activeId:b.current,onContextMenuDismissed:t=>{"keyboard"===t&&$({...f,isFocusVisible:!0,isCurrent:!0})},eventsProps:l.mergeProps(E,v,{onKeyUp:t=>{"Tab"===t.code&&($({...f,isCurrent:!0,isFocusVisible:!0}),g.cancelEvent(t))},onKeyDown:t=>{switch(t.key){case"Tab":return;case"ArrowDown":F(s(f)),g.cancelEvent(t);break;case"ArrowUp":F(i(f)),g.cancelEvent(t);break;case"ArrowRight":F(w?i(f):s(f)),g.cancelEvent(t);break;case"ArrowLeft":F(w?s(f):i(f)),g.cancelEvent(t)}},onBlur:()=>{(null!=S||f.isCurrent)&&d?.(n(void 0));const t={...f,isCurrent:!1,isFocusVisible:!1};m(t)}})}}(ct,!Q&&B,F,rt,it,st,D,T,U,N),{selectionContent:pt,selectionProps:ht}=c.useSelection({idExtracter:t=>{const e="keyup"===t.type?ut:K(t.target);return rt(e).id},isDrillEnabled:"off"!=D,selection:P,selectionMode:F,getDataById:t=>tt.get(t),onChange:j.onSelectionChange}),gt=n&&parseFloat(n),xt=f&&parseFloat(f),It=s.classNames([i.baseStyles]),{focusedItemRef:St}=C.useItemFocus(ut),{content:Ct,borderColor:bt}=function(t,e,o,n,r,i,s){let c;const a=r?.isCurrent;let l,f;a&&null!=t[r.idx].id&&(c=r),n&&n.isCurrent&&(c=n);let m=d.rgba(u.colorSchemeVars.palette.neutral[190],.15);const p=c&&e(c,t);if(p&&i){const t=p&&{data:p},{content:e,borderColor:n}=i(t);l=e,m=n||m,f=s?X(p.count||1,o,s):""}return{borderColor:m,content:l||c&&e(c,t)?.accessibleLabel||c&&e(c,t)?.label+": "+f||f}}(m,nt,L,ut,lt,j.datatip,O),{calcColCount:yt,calcRowCount:wt,calcColWidth:vt,calcRowHeight:Mt,gridGap:Rt}=function(t,e,o,n,r,s,c,a,l,u){let d=0,f=1,m=1,p=1/0;for(let e=0;e<t.length;e++){const o=t[e],n=o.columnSpan||1,r=o.rowSpan||1;n<=0||r<=0||(n>f&&(f=n),r>m&&(m=r),n<p&&(p=n),r<p&&(p=r),d+=n*r*(o.count||1))}if(0===d)return{};(r||s)&&(l||(l=u||i.DEFAULT_SIZE),u||(u=l)),c||a||(r||s?r?s?e?a=W(Math.sqrt(d),m):c=W(Math.sqrt(d),f):a=Math.max(Math.floor(n/(u||1)),1):c=Math.max(Math.floor(o/(l||1)),1):e?a=W(Math.sqrt(d*n/o),m):c=W(Math.sqrt(d*o/n),f)),c?a||(a=W(d/c,m)):c=W(d/(a||1),f);const h=.25*p;return r||s||(l||(l=u||Math.min(o/c,n/(a||1))),u||(u=l)),c<=0||!a||a<=0||!l||l<=0||!u||u<=0?{}:{calcColCount:c,calcRowCount:a,calcColWidth:l?l-h:l,calcRowHeight:u?u-h:u,gridGap:h}}(m,"vertical"===w,t,o,V,A,b,y,gt,xt),{datatipContent:Et,datatipProps:{"aria-describedby":$t,...Ft}}=(({touchResponse:t,content:e,borderColor:o,width:n,focusedItemRef:r,focusedItemInfo:i})=>{const{direction:s}=p.useUser(),c="rtl"===s,a=r.current?.getBoundingClientRect(),{datatipContent:l,datatipProps:u}=S.useDatatip({content:e,placement:"top-start",offset:h.calculateOffset(c,n,i.isCurrent?a:void 0),borderColor:o,anchor:i?.isCurrent?"element":"pointer",touchResponse:t});return{datatipContent:l,datatipProps:u}})({touchResponse:ct,content:Ct,width:t,borderColor:bt,focusedItemRef:St,focusedItemInfo:ut}),{contextMenuContent:kt,contextMenuProps:Pt}=(({rootRef:t,contextMenuConfig:e,focusedItemInfo:o,items:n,onContextMenuDismissed:r,getItemInfo:i})=>{const{contextMenuProps:s,contextMenuContent:c}=E.useContextMenu({onContextMenuHandler:({gesture:e,target:r})=>{if("keyboard"===e){const e=o.idx,r=t.current?.querySelector(`[data-idx="${e}"]`)||null;return{type:"element",context:{type:"item",data:n[e]},elem:r}}const s=i(r)?.idx,c=void 0!==s?n[s]:null;return c?{type:"pointer",context:{type:"item",data:c}}:{type:"pointer",context:{type:"background"}}},contextMenuOptions:{isDisabled:!e},rootRef:t,contextMenuConfig:e,onContextMenuDismissed:r});return{contextMenuContent:c,contextMenuProps:s}})({getItemInfo:K,focusedItemInfo:ut,rootRef:_,contextMenuConfig:B?H:void 0,items:m,onContextMenuDismissed:mt});if(!yt)return null;const Dt=function(t,e,o,n,r){const i=e,s=o,c="bottomStart"===(a=n)||"bottomEnd"===a;var a;const l=(t=>"topEnd"===t||"bottomEnd"===t)(n),u=[],d=new Array(i);for(let t=0;t<i;t++)d[t]=new Array(s).fill(!1);const f=!0;let m={row:-1,col:-1,count:0,direction:f,rowSpan:1,columnSpan:1};for(let e=0;e<t.length;e++){const o=t[e],n=o.rowSpan??1,a=o.columnSpan??1;let p=o.count??1;if(m.count>0&&m.count<1&&m.rowSpan===n&&m.columnSpan===a){const t=1-m.count,r=Math.min(t,p),d=c?i-m.row-n:m.row,h=l?s-m.col-a:m.col;if(u.push({row:d,col:h,countIdx:e,itemIdx:e,item:o,fractionalStart:m.count,fractionalEnd:m.count+r}),m.count+=r,p-=r,!(m.count>=1))continue;m={row:-1,col:-1,count:0,direction:f,rowSpan:n,columnSpan:a}}const h=Math.floor(p);for(let t=0;t<h;t++){const f=z(d,a,n,s,i,r);if(f){const r=c?i-f.row-n:f.row,d=l?s-f.col-a:f.col;u.push({row:r,col:d,countIdx:t,itemIdx:e,item:o,fractionalStart:0,fractionalEnd:1})}}const g=p-h;if(g>0&&g<1){const t=z(d,a,n,s,i,r);if(t){m={row:t.row,col:t.col,count:g,direction:!0,rowSpan:n,columnSpan:a};const r=c?i-t.row-n:t.row,d=l?s-t.col-a:t.col;u.push({row:r,col:d,countIdx:g,itemIdx:e,item:o,fractionalStart:0,fractionalEnd:g})}}}return u}(m,wt,yt,$,"vertical"===w),Tt=l.mergeProps(ft,Ft,ht,Pt);return e.jsxs("div",{ref:_,tabIndex:0,"aria-label":j["aria-label"],"aria-describedby":R.l([j["aria-describedby"],$t]),"aria-labelledby":j["aria-labelledby"],"aria-activedescendant":dt,role:"application",style:{width:V?"max-content":`${t}px`,height:A?"max-content":`${o}px`,gridTemplateRows:`repeat(${wt}, ${Mt}px)`,gridTemplateColumns:`repeat(${yt}, ${vt}px)`,gap:`${Rt}px`,...at},class:It,...Y,...Tt,children:[Dt.map((t=>{const o=ut.idx===t.itemIdx,n=Z(t.item,t.itemIdx,t.countIdx,Q,lt,P,ut,k,dt,"vertical"===w,$),r={data:t.item,state:{selected:n.isSelected,focused:n.isFocused,hovered:n.isCurrent}};return e.jsx(ot,{focusedItemRef:o?St:void 0,row:t.row,column:t.col,supportsSelection:q,supportsDrill:G,translations:O,totalCount:L,fractionalStart:t.fractionalStart,fractionalEnd:t.fractionalEnd,...n,children:j.children(r)})})),Et,kt,pt]})}t.PictoChart=function({width:t,height:n,...r}){const i=!(!r.selectionMode||"none"===r.selectionMode),s=void 0===t,c=void 0===n;return e.jsx(O.Provider,{value:{supportsSelection:i},children:e.jsx(o.TrackResizeContainer,{width:s?"initial":t,height:c?"initial":n,children:(t,o)=>e.jsx(nt,{width:t,height:o,isFlowingWidth:s,isFlowingHeight:c,...r})})})},t.getPictoDefaultRenderers=function(t){return{markerRenderer:o=>{const n=t(o.data);return e.jsx(Y,{context:o,markerProps:n})},datatipRenderer:e=>({borderColor:t(e.data).color})}}}));
1
+ define(['exports', 'preact/jsx-runtime', './TrackResizeContainer-a4999df9', 'preact', 'preact/hooks', './UNSAFE_PictoChart/themes/PictoChartStyles.css', './classNames-08d99695', './useSelection-bb7d04ee', './useTranslationBundle-27bf6340', './mergeProps-bcfa6a92', './themeContract.css-2e4b066d', './utils-ad4761c9', './SvgSymbol-b672024f', './accUtils-acd70e81', './useUser-988f7da2', './layoutUtils-641af87a', './eventsUtils-5fb81c3e', './useVisHover-28319fef', './useVisDrill-b08ba7e5', './useDatatip-36aa820b', './useItemFocus-75d6510d', './LayerHost-7d4aa6d3', 'preact/compat', './datatipUtils-6846028e', './useTestId-a2e433c2', './useVisTouchResponse-88a7bb09', './stringUtils-4ffd9d59', './useContextMenu-4bd1c23a', './Menu-45a26116', './MenuItem-ff1cd14d', './logger-0f873e29', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-3c8a0253', 'css!./IconStyle.styles.css', './SelectMenuGroupContext-67f24a8f', './UNSAFE_Menu/themes/MenuItemStyles.css', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./MenuSeparatorStyles.styles.css', 'module', './UNSAFE_Menu/themes/redwood/MenuSeparatorVariants.css', 'css!./MenuStyles.styles.css'], (function(t,e,o,n,r,i,s,a,c,l,u,d,f,m,p,h,g,x,I,S,C,b,y,w,v,M,R,E,$,F,k,P,D,T,U,V,A,N,H,j,_,B,L){"use strict";const O=n.createContext({});function W(t,e){return Math.ceil(t/e)*e}const q=(t,e,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)if(t[o+i][e+r])return!1;return!0},G=(t,e,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)t[o+i][e+r]=!0},z=(t,e,o,n,r,i)=>{if(i){for(let i=0;i<=n-e;i++)for(let n=0;n<=r-o;n++)if(q(t,i,n,e,o))return G(t,i,n,e,o),{col:i,row:n}}else for(let i=0;i<r-o+1;i++)for(let r=0;r<n-e+1;r++)if(q(t,r,i,e,o))return G(t,r,i,e,o),{col:r,row:i}};function K(t){const e=t.dataset.idx;if(void 0!==e)return{idx:Number(e)}}function Z(t,e,o,n,r,i,s,a,c,l,u){let d=!1;if(!n){const t=!!s&&e===s.idx,o=!!r&&e===r.idx;d=!!(t&&s?.isCurrent||o&&r?.isCurrent)}const f=function(t,e){return!e||0===e.length||new Set(e).has(t)}(t.id,a),m=function(t,e){return!(!e||0===e.length)&&new Set(e).has(t)}(t.id,i);return{isCurrent:d,isHighlighted:f,isSelected:m,hasSelection:i&&0!==i.length,isFocused:!!s&&Q(s,e),key:t.id,itemIdx:e,countIdx:o,activeId:d?c:void 0,isReadOnly:n,item:t,isVerticalLayout:l,layoutOrigin:u}}function J(t,e){return t?.idx===e?.idx}function Q(t,e){return!!t.isFocusVisible&&t.idx===e}function X(t,e,o){return`${o?.vis_labelCountWithTotal({itemCount:t.toString(),totalCount:e.toString()})}`}const Y=({context:t,markerProps:o})=>{const{supportsSelection:n}=r.useContext(O),i=function(t,e,o,n,r,i){const s="human"===t,a=o||r&&i,c="ellipse"===t||"rectangle"===t;e=""!==e?e:d.rgba(u.colorSchemeVars.palette.neutral[190],.15);const l=n?u.colorSchemeVars.textIcon.primary:a?e:"";return{markerShape:t,tx:s?70:void 0,ty:s?60:void 0,markerColor:e,borderColor:n||a?d.rgb(u.colorSchemeVars.palette.neutral[0]):e,outerBorderColor:l,markerScale:c&&!l?1:.85,setAspectRatioNone:!!c}}(o.shape,o.color,t.state.focused,t.state.selected,t.state.hovered,n);return e.jsx(f.SvgSymbol,{...i})};function tt(t,e){const{idx:o}=t;return e[o]}function et(t){return{getItem:e=>tt(e,t),getDetailFromInfo:e=>{if(!e)return{id:void 0,data:void 0};const o=tt(e,t);return{id:o?o.id:void 0,data:o}},getPrevItemInfo:t=>function(t){let e=t.idx;return e=Math.max(0,e-1),{idx:e}}(t),getNextItemInfo:e=>function(t,e){let o=t.idx;return o=Math.min(e.length-1,o+1),{idx:o}}(e,t)}}const ot=t=>{const{direction:o}=p.useUser(),n="rtl"===o,r=t.isVerticalLayout;let a=t.fractionalStart??0,c=t.fractionalEnd??1;const l=t.layoutOrigin;r?"bottomStart"!==l&&"bottomEnd"!==l||([a,c]=[1-c,1-a]):"bottomEnd"!==l&&"topEnd"!==l||([a,c]=[1-c,1-a]);const u=0!==a||1!==c?r?`polygon(0% ${100*a}%, 100% ${100*a}%, 100% ${100*c}%, 0% ${100*c}%)`:n?`polygon(${100-100*c}% 0%, ${100-100*a}% 0%, ${100-100*a}% 100%, ${100-100*c}% 100%)`:`polygon(${100*a}% 0%, ${100*c}% 0%, ${100*c}% 100%, ${100*a}% 100%)`:void 0,d=t.supportsSelection||t.supportsDrill,{dimmedItemStyle:f,interactiveItemStyle:h}=i.styles,g=s.classNames([d&&h,!t.isHighlighted&&f]),x=0===t.countIdx,I=x&&function(t,e,o,n,r,i,s,a,c){const l=r?X(t,e,r):"";return a=a||`${n?n+": ":""}${l}`,{"aria-label":m.generateAriaLabel(r,a,{isSelected:o||s?i:void 0})||void 0,role:"img",id:c}}(t.item.count||1,t.totalCount,!!t.supportsSelection,t.item.label,t.translations,t.isSelected,t.hasSelection,t.item.accessibleLabel,t.activeId)||{};return e.jsx("div",{ref:x?t.focusedItemRef:void 0,id:t.activeId,"data-idx":t.itemIdx,"data-count-idx":t.countIdx,style:{gridRow:`${t.row+1} / span ${t.item.rowSpan||1}`,gridColumn:`${t.column+1} / span ${t.item.columnSpan||1}`,clipPath:u},class:g,...I,children:t.children})};function nt({width:t,height:o,columnWidth:n,rowHeight:f,items:m,columnCount:b,rowCount:y,layout:w,layoutOrigin:$="topStart",selectionMode:F="none",highlightedIds:k=[],selectedIds:P=[],drilling:D="off",onItemDrill:T,onItemHover:U,isFlowingWidth:V,isFlowingHeight:A,onItemFocus:N,contextMenuConfig:H,...j}){const _=r.useRef(null),B=0!==m.length,L=function(t){let e=0;for(let o=0;o<t.length;o++)e+=t[o].count||1;return e}(m),O=c.useTranslationBundle("@oracle/oraclejet-preact"),q=!(!F||"none"===F),G=null!=T,Q=!q&&!G&&null===U&&null===N,Y=v.useTestId(j.testId),tt=new Map(m.map((t=>[t.id,t]))),{getItem:nt,getDetailFromInfo:rt,getPrevItemInfo:it,getNextItemInfo:st}=et(m),{touchResponse:at,touchResponseStyle:ct}=M.useVisTouchResponse({type:"touchStart"}),{hoveredItemInfo:lt,focusedItemInfo:ut,activeId:dt,eventsProps:ft,onContextMenuDismissed:mt}=function(t,e,o,n,i,s,a,c,u,d){const[f,m]=r.useState({idx:0}),[S,C]=r.useState(),b=r.useRef(),{direction:y}=p.useUser(),w="rtl"===y,v=x.useVisHover((t=>{const o=K(t.target);J(o,S)||(C(o&&{...o,isCurrent:!0}),b.current=h.getRandomId(),e&&(m({...f,isCurrent:!1}),u?.(n(o))))}),void 0,(()=>{C(void 0),b.current=void 0,e&&u?.(n())}),t),M=r.useCallback((t=>{const{id:e,data:o}=n(t);null!=e&&o&&(c?.({id:e,data:o}),b.current=h.getRandomId())}),[n,c]),R=r.useCallback((t=>{"keydown"===t.type?"on"==a&&M(f):M(K(t.target))}),[a,f,M]),E=I.useVisDrill(o,R);if(!e)return{focusedItemInfo:f,hoveredItemInfo:S,eventsProps:v};function $(t){d?.(n(t)),b.current=h.getRandomId(),m(t)}function F(t){J(t,f)||(t.isCurrent=!0,t.isFocusVisible=!0,S&&C({...S,isCurrent:!1}),$(t))}return{focusedItemInfo:f,hoveredItemInfo:S,activeId:b.current,onContextMenuDismissed:t=>{"keyboard"===t&&$({...f,isFocusVisible:!0,isCurrent:!0})},eventsProps:l.mergeProps(E,v,{onKeyUp:t=>{"Tab"===t.code&&($({...f,isCurrent:!0,isFocusVisible:!0}),g.cancelEvent(t))},onKeyDown:t=>{switch(t.key){case"Tab":return;case"ArrowDown":F(s(f)),g.cancelEvent(t);break;case"ArrowUp":F(i(f)),g.cancelEvent(t);break;case"ArrowRight":F(w?i(f):s(f)),g.cancelEvent(t);break;case"ArrowLeft":F(w?s(f):i(f)),g.cancelEvent(t)}},onBlur:()=>{(null!=S||f.isCurrent)&&d?.(n(void 0));const t={...f,isCurrent:!1,isFocusVisible:!1};m(t)}})}}(at,!Q&&B,F,rt,it,st,D,T,U,N),{selectionContent:pt,selectionProps:ht}=a.useSelection({idExtracter:t=>{const e="keyup"===t.type?ut:K(t.target);return rt(e).id},isDrillEnabled:"off"!=D,selection:P,selectionMode:F,getDataById:t=>tt.get(t),onChange:j.onSelectionChange}),gt=n&&parseFloat(n),xt=f&&parseFloat(f),It=s.classNames([i.baseStyles]),{focusedItemRef:St}=C.useItemFocus(ut),{content:Ct,borderColor:bt}=function(t,e,o,n,r,i,s){let a;const c=r?.isCurrent;let l,f;c&&null!=t[r.idx].id&&(a=r),n&&n.isCurrent&&(a=n);let m=d.rgba(u.colorSchemeVars.palette.neutral[190],.15);const p=a&&e(a,t);if(p&&i){const t=p&&{data:p},{content:e,borderColor:n}=i(t);l=e,m=n||m,f=s?X(p.count||1,o,s):""}return{borderColor:m,content:l||a&&e(a,t)?.accessibleLabel||a&&e(a,t)?.label+": "+f||f}}(m,nt,L,ut,lt,j.datatip,O),{calcColCount:yt,calcRowCount:wt,calcColWidth:vt,calcRowHeight:Mt,gridGap:Rt}=function(t,e,o,n,r,s,a,c,l,u){let d=0,f=1,m=1,p=1/0;for(let e=0;e<t.length;e++){const o=t[e],n=o.columnSpan||1,r=o.rowSpan||1;n<=0||r<=0||(n>f&&(f=n),r>m&&(m=r),n<p&&(p=n),r<p&&(p=r),d+=n*r*(o.count||1))}if(0===d)return{};(r||s)&&(l||(l=u||i.DEFAULT_SIZE),u||(u=l)),a||c||(r||s?r?s?e?c=W(Math.sqrt(d),m):a=W(Math.sqrt(d),f):c=Math.max(Math.floor(n/(u||1)),1):a=Math.max(Math.floor(o/(l||1)),1):e?c=W(Math.sqrt(d*n/o),m):a=W(Math.sqrt(d*o/n),f)),a?c||(c=W(d/a,m)):a=W(d/(c||1),f);const h=.25*p;return r||s||(l||(l=u||Math.min(o/a,n/(c||1))),u||(u=l)),a<=0||!c||c<=0||!l||l<=0||!u||u<=0?{}:{calcColCount:a,calcRowCount:c,calcColWidth:l?l-h:l,calcRowHeight:u?u-h:u,gridGap:h}}(m,"vertical"===w,t,o,V,A,b,y,gt,xt),{datatipContent:Et,datatipProps:{"aria-describedby":$t,...Ft}}=(({touchResponse:t,content:e,borderColor:o,width:n,focusedItemRef:r,focusedItemInfo:i})=>{const{direction:s}=p.useUser(),a="rtl"===s,c=r.current?.getBoundingClientRect(),{datatipContent:l,datatipProps:u}=S.useDatatip({content:e,placement:"top-start",offset:h.calculateOffset(a,n,i.isCurrent?c:void 0),borderColor:o,anchor:i?.isCurrent?"element":"pointer",touchResponse:t});return{datatipContent:l,datatipProps:u}})({touchResponse:at,content:Ct,width:t,borderColor:bt,focusedItemRef:St,focusedItemInfo:ut}),{contextMenuContent:kt,contextMenuProps:Pt}=(({rootRef:t,contextMenuConfig:e,focusedItemInfo:o,items:n,onContextMenuDismissed:r,getItemInfo:i})=>{const{contextMenuProps:s,contextMenuContent:a}=E.useContextMenu({onContextMenuHandler:({gesture:e,target:r})=>{if("keyboard"===e){const e=o.idx,r=t.current?.querySelector(`[data-idx="${e}"]`)||null;return{type:"element",context:{type:"item",data:n[e]},elem:r}}const s=i(r)?.idx,a=void 0!==s?n[s]:null;return a?{type:"pointer",context:{type:"item",data:a}}:{type:"pointer",context:{type:"background"}}},contextMenuOptions:{isDisabled:!e},rootRef:t,contextMenuConfig:e,onContextMenuDismissed:r});return{contextMenuContent:a,contextMenuProps:s}})({getItemInfo:K,focusedItemInfo:ut,rootRef:_,contextMenuConfig:B?H:void 0,items:m,onContextMenuDismissed:mt});if(!yt)return null;const Dt=function(t,e,o,n,r){const i=e,s=o,a="bottomStart"===(c=n)||"bottomEnd"===c;var c;const l=(t=>"topEnd"===t||"bottomEnd"===t)(n),u=[],d=new Array(i);for(let t=0;t<i;t++)d[t]=new Array(s).fill(!1);const f=!0;let m={row:-1,col:-1,count:0,direction:f,rowSpan:1,columnSpan:1};for(let e=0;e<t.length;e++){const o=t[e],n=o.rowSpan??1,c=o.columnSpan??1;let p=o.count??1;if(m.count>0&&m.count<1&&m.rowSpan===n&&m.columnSpan===c){const t=1-m.count,r=Math.min(t,p),d=a?i-m.row-n:m.row,h=l?s-m.col-c:m.col;if(u.push({row:d,col:h,countIdx:e,itemIdx:e,item:o,fractionalStart:m.count,fractionalEnd:m.count+r}),m.count+=r,p-=r,!(m.count>=1))continue;m={row:-1,col:-1,count:0,direction:f,rowSpan:n,columnSpan:c}}const h=Math.floor(p);for(let t=0;t<h;t++){const f=z(d,c,n,s,i,r);if(f){const r=a?i-f.row-n:f.row,d=l?s-f.col-c:f.col;u.push({row:r,col:d,countIdx:t,itemIdx:e,item:o,fractionalStart:0,fractionalEnd:1})}}const g=p-h;if(g>0&&g<1){const t=z(d,c,n,s,i,r);if(t){m={row:t.row,col:t.col,count:g,direction:!0,rowSpan:n,columnSpan:c};const r=a?i-t.row-n:t.row,d=l?s-t.col-c:t.col;u.push({row:r,col:d,countIdx:g,itemIdx:e,item:o,fractionalStart:0,fractionalEnd:g})}}}return u}(m,wt,yt,$,"vertical"===w),Tt=l.mergeProps(ft,Ft,ht,Pt);return e.jsxs("div",{ref:_,tabIndex:0,"aria-label":j["aria-label"],"aria-describedby":R.l([j["aria-describedby"],$t]),"aria-labelledby":j["aria-labelledby"],"aria-activedescendant":dt,role:"application",style:{width:V?"max-content":`${t}px`,height:A?"max-content":`${o}px`,gridTemplateRows:`repeat(${wt}, ${Mt}px)`,gridTemplateColumns:`repeat(${yt}, ${vt}px)`,gap:`${Rt}px`,...ct},class:It,...Y,...Tt,children:[Dt.map((t=>{const o=ut.idx===t.itemIdx,n=Z(t.item,t.itemIdx,t.countIdx,Q,lt,P,ut,k,dt,"vertical"===w,$),r={data:t.item,state:{selected:n.isSelected,focused:n.isFocused,hovered:n.isCurrent}};return e.jsx(ot,{focusedItemRef:o?St:void 0,row:t.row,column:t.col,supportsSelection:q,supportsDrill:G,translations:O,totalCount:L,fractionalStart:t.fractionalStart,fractionalEnd:t.fractionalEnd,...n,children:j.children(r)})})),Et,kt,pt]})}t.PictoChart=function({width:t,height:n,...r}){const i=!(!r.selectionMode||"none"===r.selectionMode),s=void 0===t,a=void 0===n;return e.jsx(O.Provider,{value:{supportsSelection:i},children:e.jsx(o.TrackResizeContainer,{width:s?"initial":t,height:a?"initial":n,children:(t,o)=>e.jsx(nt,{width:t,height:o,isFlowingWidth:s,isFlowingHeight:a,...r})})})},t.getPictoDefaultRenderers=function(t){return{markerRenderer:o=>{const n=t(o.data);return e.jsx(Y,{context:o,markerProps:n})},datatipRenderer:e=>({borderColor:t(e.data).color})}}}));
2
2
  //# sourceMappingURL=PictoChart-34f56e1c.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './UNSAFE_PieChart/themes/PieChartStyles.css', './TrackResizeContainer-a4999df9', './datatipUtils-6846028e', './accUtils-acd70e81', './lineUtils-81206f70', './utils-8ccd1b88', './classNames-08d99695', './usePieChartNav-339488db', './useDatatip-be0adcf0', './layoutUtils-641af87a', './mergeProps-bcfa6a92', './VisTabularDatatip-e95bbf79', './useUser-12ec03f1', './useTestId-9afc201a', './useVisTouchResponse-88a7bb09', 'preact/hooks', './stringUtils-4ffd9d59', './useContextMenu-4bd1c23a', './Menu-45a26116', './MenuItem-ff1cd14d', 'preact', './logger-0f873e29', './LayerHost-daf96749', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-ae57629b', 'css!./IconStyle.styles.css', './SelectMenuGroupContext-67f24a8f', './UNSAFE_Menu/themes/MenuItemStyles.css', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./MenuSeparatorStyles.styles.css', 'module', './UNSAFE_Menu/themes/redwood/MenuSeparatorVariants.css', 'css!./MenuStyles.styles.css', './eventsUtils-5fb81c3e', './utils-cd60c9d4', './useTextDimensions-f254e8f5', './useCssVars-5b3bc31e', './cssUtils-1609d0af', './colorUtils-b9dc1bd1'], (function(e,t,n,s,i,o,a,l,r,c,h,d,u,f,x,g,y,b,m,M,p,I,v,S,C,P,T,w,F,L,j,A,R,N,V,U,D,E,z,k,_,B,O,Y){"use strict";function q(e){return e*(Math.PI/180)}function H(e,t,n,s){const i=Math.atan2(s,n)-Math.atan2(t,e);return i<0?i+2*Math.PI:i}function G(e,t,n,s,i,o,l,r,c){const h=Math.max(s-e,0),d=Math.max(i-e,0),u=360==l||h<e?0:r+2*e,f=o?o+e:0,x=q(360==l?359.99:l),g=q(c),y=u/2,b=y<h?Math.asin(y/h):0,m=-x/2-g,M=Math.min(5*y,x>0?Math.abs(y/Math.sin(x/2)):0),p=0==h?M:M*d/h,I=t+Math.cos(m)*M,v=n+Math.sin(m)*p,S=t+Math.cos(-b-g)*h,C=n+Math.sin(-b-g)*d,P=t+Math.cos(-g-x+b)*h,T=n+Math.sin(-g-x+b)*d;let w,F=H(P-t,T-n,S-t,C-n);if(F=Math.min(F,x),f>0){const e=y<f?Math.asin(y/f):0,s=t+Math.cos(-e-g)*f,i=n+Math.sin(-e-g)*f,o=t+Math.cos(-g-x+e)*f,r=n+Math.sin(-g-x+e)*f;let c=H(o-t,r-n,s-t,i-n);c=Math.min(c,F,x),360==l?(w=a.moveTo(P,T),w+=a.arcTo(h,d,x,1,S,C),w+=a.lineTo(P,T),w+=a.moveTo(s,i),w+=a.arcTo(f,f,x,0,o,r)):(w=a.moveTo(o,r),w+=a.lineTo(P,T),w+=a.arcTo(h,d,F,1,S,C),w+=a.lineTo(s,i),w+=a.arcTo(f,f,c,0,o,r))}else 360==l?(w=a.moveTo(P,T),w+=a.arcTo(h,d,x,1,S,C)):(w=a.moveTo(I,v),w+=a.lineTo(P,T),w+=a.arcTo(h,d,F,1,S,C));return w+=a.closePath(),w}function W(e,t,n){return{innerBounds:{width:Math.sqrt(2)*n,height:Math.sqrt(2)*n,x:e-n/Math.sqrt(2),y:t-n/Math.sqrt(2)},outerBounds:{width:2*n,height:2*n,x:e-n,y:t-n}}}function $(e,t,n,s,i,o){return o?function(e,t,n,s,i,o){const a=(e+t/2)/180*Math.PI,l=(i+o)/2;return{x:n+l*Math.cos(a),y:s-l*Math.sin(a),width:0,height:0}}(e[o.itemIndex].startAngle,e[o.itemIndex].angleExtent,t,n,s,i):void 0}function J(e,t,n){return n?.color||null!=t?.itemIndex?e[t.itemIndex]:void 0}function K({cx:e,cy:s,r:i,startAngle:o,angleExtent:a,gap:l,innerRadius:c,color:h,id:d,itemIndex:u,isFocused:f=!1,isInteractive:x,...g}){const{interactiveItemStyle:y,contrastBorder:b,innerShapes:m}=n.styles,M=r.classNames([x&&y,b,m]),p=G(0,e,s,i,i,c,a,l,o);let I;return f?(I=G(2,e,s,i,i,c,a,l,o),t.jsxs("g",{id:d,role:g.accessibleLabel?"img":void 0,"data-oj-private-item-index":u,"data-oj-private-object":"pieSlice","aria-label":g.accessibleLabel,children:[t.jsx("path",{d:p,fill:h,stroke:h,className:n.styles.innerShapes}),t.jsx("path",{d:I,fill:h,className:M})]})):t.jsx("path",{role:g.accessibleLabel?"img":void 0,"aria-label":g.accessibleLabel,d:p,"data-oj-private-object":"pieSlice",fill:h,id:d,"data-oj-private-item-index":u,className:x?y:void 0})}const Q=1.04,X=.1;function Z(e,t,n,s,i){const o=(360-e)*(Math.PI/180);return{x:t+Math.cos(o)*s,y:n+Math.sin(o)*i}}function ee(e,t){const{angleExtent:n}=e;return n<3&&t>120}function te(e,t,n,s,i,o,a){const{angleExtent:l,startAngle:r}=e,c=o,h=(t-s)/a,d=(n-i)/a;let u=-Math.atan2(d,h)*(180/Math.PI);for(;u<r;)u+=360;for(;u-r>=360;)u-=360;const f=Math.pow(h,2)+Math.pow(d,2);return Math.sqrt(f)>c/a&&f<=1&&u<=r+l}const ne=(e,t,n,s,i,o,a)=>{const[l,r]=function(e,t,n,s,i,o){const a=[],l=new Set,{cx:r,cy:c}=s;for(const h of e){const{labelPosition:d,startAngle:u,angleExtent:f,label:x,labelStyle:g}=h,y=d||"auto";if("none"===y)continue;if("outside"===y||ee(h,e.length)||null==x){l.add(h.index);continue}const b=u+f/2,m=t,M=s;let p,I;if(1===e.length)p=M.cx,I=M.cy;else{const e=Math.max(.45,.65-.45*m/Math.max(n,.001)),t=Z(b,M.cx,M.cy,m+(n-m)*e,m+(n-m)*e);p=t.x,I=t.y}const v={x:p,y:I},S=o(x,{fontSize:i,...g});let C=p,P=p;const T=I-S.height/2,w=I+S.height/2;for(;te(h,C,T,r,c,t,n)&&te(h,C,w,r,c,t,n);)C--;for(;te(h,P,T,r,c,t,n)&&te(h,P,w,r,c,t,n);)P++;C=Math.ceil(C+3),P=Math.floor(P-3);let F=2*Math.min(p-C,P-p);if(F<S.width&&(v.x=(C+P)/2,F=P-C),"inside"===y)S.width<F&&a.push({position:b,angle:b,slice:h,textInfo:k.getTextInfo(x,{fontSize:i,...g},F,S.height,!1,x.length,o),...S,...v});else{const e=x.length,t=k.getTextInfo(x,{fontSize:i,...g},F,S.height,!1,e,o);t.didNotFit?l.add(h.index):a.push({position:b,angle:b,slice:h,textInfo:t,...S,...v})}}return[a,l]}(e,n,s,t,a,o),{leftLabels:c,rightLabels:h}=function(e,t,n,s,i,o,a){const l=[],r=[],{cx:c,cy:h}=s;for(let s=0;s<e.length;s++){const d=e[s],{labelPosition:u,startAngle:f,angleExtent:x,label:g,labelStyle:y}=d;if(null==g||"none"==u||"inside"==u||ee(e[s],e.length)||!t.has(d.index))continue;let b=f+x/2;b>360&&(b-=360),b<0&&(b+=360);const m=Z(b,c,h,i*Q,i*Q),M=b>=90&&b<270,p=se(n,m.x,M),I=k.getTextInfo(g,{fontSize:o,...y},p,1/0,!0,1,a),v={x:I.width,y:I.height},S=15;if(b<180-S&&b>S?m.y-=1*v.y:b<S||b>360-S?(m.y-=.5*v.y,m.x+=.2*v.y):b>180-S&&b<180+S&&(m.y-=.5*v.y,m.x-=.2*v.y),1==e.length&&(m.x-=v.x/2),m.y<n.y||m.y+v.y>n.y+n.height)continue;let C;b>=90&&b<270?(C=b-90,ie(d,b,C,v,m,I,l)):(C=b<=90?Math.abs(90-b):180-(b-270),ie(d,b,C,v,m,I,r))}return{leftLabels:l,rightLabels:r}}(e,r,i,t,s,a,o),d=oe(e,s,t,i,c,"left"),u=oe(e,s,t,i,h,"right");return 1===d&&0!==u&&re(e,i,t,s,c,!0,!0,!0),0!==d&&1===u&&re(e,i,t,s,h,!1,!0,!0),ce(c,i,t,s,"left",{fontSize:a},o),ce(h,i,t,s,"right",{fontSize:a},o),{insideLabels:l,rightLabels:h,leftLabels:c}};function se(e,t,n){return n?t-e.x:e.x+e.width-t}function ie(e,t,n,s,i,o,a){let l=-1;for(let e=0;e<a.length;e++){const t=a[e];if(t.position&&t.position>n){l=e;break}}-1==l&&(l=a.length);const r={position:n,angle:t,width:s.x,height:s.y,x:i.x,y:i.y,slice:e,textInfo:o};a.splice(l,0,r)}function oe(e,t,n,s,i,o){if(i.length<1)return;let a,l,r=s.y,c=!1,h=!1,d=!1,u=0,f=!1,x=!1;const g="left"==o;for(let e=0;e<i.length;e++)a=i[e],l=f,a.position>90&&(f=!0),u=a.y+a.height,x=r-a.y>1,x&&(f?l?d=!0:h=!0:c=!0),u>r&&(r=u);return c&&d||h?(re(e,s,n,t,i,g,!0,!0),2):c?(re(e,s,n,t,i,g,!0,!1),1):d?(re(e,s,n,t,i,g,!1,!0),1):0}function ae(e,t,n,s,i){const o=Z(e.angle,i.cx,i.cy,s,s);return Math.atan2(Math.abs(t-o.x),o.y-n)}function le(e,t,n,s){t.x=n;const i=1.1*e,o=q(t.position),a=i*Math.cos(o);let l=s.cy-a-.5*t.height+0;const r=t.minY,c=t.maxY;r<=c&&(l=Math.max(l,r),l=Math.min(l,c)),t.y=l}function re(e,t,n,s,i,o,a,l){const r=t;let c,h,d,u,f=r.y,x=r.y+r.height,g=0,y=n.cx;const b=1.2000000000000002*s;for(o?(y-=b,u=y+s*X):(y+=b,u=y-s*X),c=0;c<i.length;c++)h=i[c],g=q(h.position),d=ae(h,u,f,s,n),d-g>.45*Math.PI||ee(i[c].slice,e.length)?(i.splice(c,1),c--):(i[c].minY=f,f+=i[c].height);for(c=i.length-1;c>=0;c--){h=i[c];g=q(h.position),d=ae(h,u,x,s,n),g-d>.45*Math.PI||ee(i[c].slice,e.length)?i.splice(c,1):(x-=i[c].height,i[c].maxY=x)}if(0==i.length)return;const m=function(e){let t=91,n=-1;for(let s=0;s<e.length;s++){const i=e[s].position;Math.abs(i-90)<t&&(t=Math.abs(i-90),n=s)}return n}(i),M=i[m];a&&!l&&M.minY+M.height>n.cy&&(l=!0),l&&!a&&M.maxY<n.cy&&(a=!0);const p=M.position;(l&&a||p>90&&l||p<=90&&a)&&(le(s,M,y,n),M.slice.hasFeelers=!0);let I,v,S=M.y,C=M.y+M.height;if(a)for(c=m-1;c>=0;c--)h=i[c],v=h.height,le(s,h,y,n),h.slice.hasFeelers=!0,I=h.y,I+v<S?S=I:S-=v,h.y=S;if(l)for(c=m+1;c<i.length;c++)h=i[c],v=h.height,le(s,h,y,n),h.slice.hasFeelers=!0,I=h.y,I>C?C=I+v:C+=v,h.y=C-v}function ce(e,t,n,s,i,o,a){if(null==e||e.length<=0)return;let l,r,c;const h="left"===i,d=t;let u,f=1/0;for(l=0;l<e.length;l++){const i=e[l],r={...o,...i.slice.labelStyle};if(i.slice.hasFeelers){u=he(i,n,s,h);const e=a("MW",r).height,o=i.width,l=Math.min(2*e,o);if(se(t,i.x,h)+u<l||0==i.width){i.textInfo=void 0,i.slice.hasFeelers=!1;continue}f=Math.min(f,u)}else i.slice.hasFeelers=!1}for(l=0;l<e.length;l++){const i=e[l];if(r=i.slice,c=i.slice.label,c)if(i.slice.hasFeelers&&(i.x=h?i.x+f:i.x-f,he(i,n,s,h)),i.y<d.y||i.y+i.height>d.y+d.height)r.label="",r.hasFeelers=!1;else{const e=se(t,i.x,h),n=i.textInfo&&k.getTextInfo(i.slice.label,{...o,...i.slice.labelStyle},e,i.textInfo.height,!0,1,a);i.textInfo=n,0!==i.height&&0!==i.width||(r.label="",r.hasFeelers=!1)}}}function he(e,t,n,s){const{x:i,y:o,height:a}=e;let l=i;const r=o+.5*a,c=X*n;let h;s?(l+=3,h=l+c):(l-=3,h=l-c);const d={x:h,y:r},u={x:l,y:r},f=Z(e.angle,t.cx,t.cy,n,n),x=q(e.position),g=Math.abs(Math.atan2(d.x-f.x,f.y-d.y)),y=(f.y-d.y)*Math.tan(x);return(x>Math.PI/2&&g>Math.PI/2&&g<x||x<Math.PI/2&&g<Math.PI/2&&g>x)&&(d.x=s?f.x-y:f.x+y),e.startPt=f,e.midPt=d,e.endPt=u,Math.abs(u.x-d.x)-c}function de({pieLabelInfo:e,labelPos:s,fontSize:i,isRtl:o}){const{x:a,y:l,textInfo:r,slice:c,startPt:h,midPt:d,endPt:u}=e,f=c.color,x="inside"===s?Y.getContrastingTextColor(f):void 0;return t.jsx(t.Fragment,{children:r?.lines.map(((e,f)=>{const g=a,y=l+(f+.5)*r.dims[f].height,b=o&&"left"===s||!o&&"right"===s?"start":"inside"===s?"middle":"end";return t.jsxs(t.Fragment,{children:[c.label&&t.jsx("text",{className:n.styles.labelStyle,x:g,y:y,textAnchor:b,dominantBaseline:"inside"===s?"center":"middle",style:{fill:x,fontSize:i},children:e}),c.hasFeelers&&h&&d&&u&&t.jsxs(t.Fragment,{children:[t.jsx("line",{x1:h.x,x2:d.x,y1:h.y,y2:d.y,className:n.styles.fillerLineStyle}),t.jsx("line",{x1:u.x,x2:d.x,y1:u.y,y2:d.y,className:n.styles.fillerLineStyle})]})]})}))})}const ue=O.getChartVars();function fe({width:e,height:s,testId:i,innerRadius:o=0,contextMenuConfig:a,drilling:r="off",selectionMode:p="none",onItemDrill:I,onItemHover:v,onItemFocus:S,...C}){const P=b.useRef(null),{direction:T}=x.useUser(),w="rtl"===T,{resolvedVars:F,cssContent:L}=B.useCssVars(ue),j=Array.from(Array(12)).map(((e,t)=>F[`color${t+1}`])),A=w?C.data.slice().reverse():C.data,{totalValue:R,isLabelOutside:N}=A.reduce((({totalValue:e,isLabelOutside:t},n)=>({totalValue:e+n.value,isLabelOutside:t||!!n.label&&("outside"===n.labelPosition||"auto"===n.labelPosition)})),{totalValue:0,isLabelOutside:!1});const V=function(e,t,n,s){let i,o=90;const a=[];for(let l=0;l<e.length;l++){const r=e[l],c=r.value;i=c===t?100:0===t?0:Math.min(c/t*100,99.99);const h=3.6*i;let d=o-h;d<0&&(d+=360),a.push({color:n[(s?e.length-1-l:l)%n.length],index:l,startAngle:d,angleExtent:h,...r}),o=d}return a}(A,R,j,w),U=A.length>0,D=function(e){return 3*e}(.5),E=A.length>100,k=g.useTestId(i),O=l.getAvailSpace(e,s,!1),{cx:Y,cy:q}=function(e){return{cx:e.x+Math.floor(e.width/2),cy:e.y+Math.floor(e.height/2)}}(O),H=function(e,t){const n=t?.38:.45;return Math.floor(Math.min(e.width,e.height)*n)}(O,N),G=o*H,Q=function(e,t,n){if(!t)return e;const s=2*Math.PI*n;let i=0;return e.filter((({startAngle:e,angleExtent:t})=>{const n=(t+e)/360*s;return!(t/360*s<1.5&&Math.abs(i-n)<1.5||(i=n,0))}))}(V,E,H),{getDetailFromInfo:X,getNextChartItem:Z}=function(e,t){return{getNextChartItem:({itemIndex:n},s)=>{let i=n;return i=t&&("ArrowRight"===s||"ArrowUp"===s)||!t&&("ArrowLeft"===s||"ArrowDown"===s)?n-1:n+1,{itemIndex:(i%e.length+e.length)%e.length}},getDetailFromInfo:t=>{if(!t)return{id:void 0,data:void 0};const n=function(e,t){const{itemIndex:n}=e;return t[n]}(t,e);return{id:n?n.id:void 0,data:n}}}}(A,"rtl"===T),{textMeasureContent:ee,getTextDimensions:te}=_.useTextDimensions(),se=!(!p||"none"===p),ie="on"===r,{touchResponse:oe,touchResponseStyle:ae}=y.useVisTouchResponse({type:"auto",supportsTouchDragGestures:!1,rootRef:P}),{activeId:le,focusedItemInfo:re,hoveredItemInfo:ce,eventsProps:he,onContextMenuDismissed:fe}=c.usePieChartNav(oe,X,Z,r,I),xe=re.isFocusVisible?re:ce,ge=xe?A[Q[xe.itemIndex].index]:void 0,{content:ye,borderColor:be}=ge&&C.datatip?C.datatip({data:ge}):((e,n)=>e?e.accessibleLabel?{content:e.accessibleLabel,borderColor:J(j,n,e)}:{content:t.jsx(f.VisTabularDatatip,{tableData:[{key:"Value",value:e.value}]}),borderColor:J(j,n,e)}:{content:void 0,borderColor:void 0})(ge,xe),me=re.isFocusVisible?"element":"pointer",Me=xe?.isFocusVisible?$(Q,Y,q,G,H,xe):void 0,pe=d.calculateOffset(w,e,Me),{datatipContent:Ie,datatipProps:ve}=h.useDatatip({content:ye,offset:pe,anchor:me,placement:"top-start",borderColor:be,touchResponse:oe});ve["aria-describedby"]=m.l([C["aria-describedby"],ve["aria-describedby"]]);const{contextMenuContent:Se,contextMenuProps:Ce}=(({offset:e,rootRef:t,contextMenuConfig:n,focusedItemInfo:s,items:i,onContextMenuDismissed:o,width:a,isRtl:l})=>{const{contextMenuProps:r,contextMenuContent:c}=M.useContextMenu({onContextMenuHandler:({gesture:n,target:o})=>{if("keyboard"===n){const t=s.itemIndex;return{type:"offset",context:{type:"item",data:i[t]},offsetValue:e,isRtl:l,width:a}}const r=z.getInfo(t,o)?.itemIndex,c=void 0!==r?i[r]:null;let h;return h=c?{type:"item",data:c}:t.current?.children[1].contains(o)?{type:"centerLabel"}:{type:"background"},{type:"pointer",context:h}},contextMenuOptions:{isDisabled:!n},rootRef:t,contextMenuConfig:n,onContextMenuDismissed:o});return{contextMenuContent:c,contextMenuProps:r}})({offset:pe,rootRef:P,contextMenuConfig:U?a:void 0,onContextMenuDismissed:fe,focusedItemInfo:re,items:V,width:e,isRtl:w}),Pe=u.mergeProps(he,ve,Ce);let Te=[],we=[],Fe=[];const Le=F.labelFontSize;if(te){const e=ne(Q,{cx:Y,cy:q},G,H,O,te,Le);Te=e.insideLabels,we=e.rightLabels,Fe=e.leftLabels}return t.jsxs("div",{ref:P,tabIndex:0,"aria-label":C["aria-label"],"aria-labelledby":C["aria-labelledby"],"aria-activedescendant":le,role:"application",...Pe,...k,className:n.styles.chart,style:{width:e,height:s,...ae},children:[Q.length>0&&t.jsxs("svg",{className:n.styles.svg,children:[Q.map(((e,n)=>t.jsx(K,{isInteractive:se||ie,cx:Y,cy:q,itemIndex:n,id:xe?.itemIndex===n?le:void 0,isFocused:re?.itemIndex===n&&re?.isFocusVisible,isHovered:ce?.itemIndex===n,r:H,startAngle:e.startAngle,gap:D,innerRadius:G,angleExtent:e.angleExtent,color:e.color,accessibleLabel:e.accessibleLabel},e.id))),Te?.map((e=>t.jsx(de,{isRtl:w,pieLabelInfo:e,labelPos:"inside",fontSize:Le}))),Fe?.map((e=>t.jsx(de,{isRtl:w,pieLabelInfo:e,labelPos:"left",fontSize:Le}))),we?.map((e=>t.jsx(de,{isRtl:w,pieLabelInfo:e,labelPos:"right",fontSize:Le})))]}),C.children?.(W(Y,q,G)),Ie,L,Se,ee]})}e.PieChart=function({width:e,height:i,...o}){return t.jsx(s.TrackResizeContainer,{width:e,height:i,class:n.dimensionStyle,children:(e,n)=>t.jsx(fe,{width:e,height:n,...o})})}}));
1
+ define(['exports', 'preact/jsx-runtime', './UNSAFE_PieChart/themes/PieChartStyles.css', './TrackResizeContainer-a4999df9', './datatipUtils-6846028e', './accUtils-acd70e81', './lineUtils-81206f70', './utils-8ccd1b88', './classNames-08d99695', './usePieChartNav-339488db', './useDatatip-36aa820b', './layoutUtils-641af87a', './mergeProps-bcfa6a92', './VisTabularDatatip-ab3b0b91', './useUser-988f7da2', './useTestId-a2e433c2', './useVisTouchResponse-88a7bb09', 'preact/hooks', './stringUtils-4ffd9d59', './useContextMenu-4bd1c23a', './Menu-45a26116', './MenuItem-ff1cd14d', 'preact', './logger-0f873e29', './LayerHost-7d4aa6d3', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-3c8a0253', 'css!./IconStyle.styles.css', './SelectMenuGroupContext-67f24a8f', './UNSAFE_Menu/themes/MenuItemStyles.css', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./MenuSeparatorStyles.styles.css', 'module', './UNSAFE_Menu/themes/redwood/MenuSeparatorVariants.css', 'css!./MenuStyles.styles.css', './eventsUtils-5fb81c3e', './utils-cd60c9d4', './useTextDimensions-f254e8f5', './useCssVars-d782da3d', './cssUtils-1609d0af', './colorUtils-b9dc1bd1'], (function(e,t,n,s,i,o,a,l,r,c,h,d,u,f,x,g,y,b,m,M,p,I,v,S,C,P,T,w,F,L,j,A,R,N,V,U,D,E,z,k,_,B,O,Y){"use strict";function q(e){return e*(Math.PI/180)}function H(e,t,n,s){const i=Math.atan2(s,n)-Math.atan2(t,e);return i<0?i+2*Math.PI:i}function G(e,t,n,s,i,o,l,r,c){const h=Math.max(s-e,0),d=Math.max(i-e,0),u=360==l||h<e?0:r+2*e,f=o?o+e:0,x=q(360==l?359.99:l),g=q(c),y=u/2,b=y<h?Math.asin(y/h):0,m=-x/2-g,M=Math.min(5*y,x>0?Math.abs(y/Math.sin(x/2)):0),p=0==h?M:M*d/h,I=t+Math.cos(m)*M,v=n+Math.sin(m)*p,S=t+Math.cos(-b-g)*h,C=n+Math.sin(-b-g)*d,P=t+Math.cos(-g-x+b)*h,T=n+Math.sin(-g-x+b)*d;let w,F=H(P-t,T-n,S-t,C-n);if(F=Math.min(F,x),f>0){const e=y<f?Math.asin(y/f):0,s=t+Math.cos(-e-g)*f,i=n+Math.sin(-e-g)*f,o=t+Math.cos(-g-x+e)*f,r=n+Math.sin(-g-x+e)*f;let c=H(o-t,r-n,s-t,i-n);c=Math.min(c,F,x),360==l?(w=a.moveTo(P,T),w+=a.arcTo(h,d,x,1,S,C),w+=a.lineTo(P,T),w+=a.moveTo(s,i),w+=a.arcTo(f,f,x,0,o,r)):(w=a.moveTo(o,r),w+=a.lineTo(P,T),w+=a.arcTo(h,d,F,1,S,C),w+=a.lineTo(s,i),w+=a.arcTo(f,f,c,0,o,r))}else 360==l?(w=a.moveTo(P,T),w+=a.arcTo(h,d,x,1,S,C)):(w=a.moveTo(I,v),w+=a.lineTo(P,T),w+=a.arcTo(h,d,F,1,S,C));return w+=a.closePath(),w}function W(e,t,n){return{innerBounds:{width:Math.sqrt(2)*n,height:Math.sqrt(2)*n,x:e-n/Math.sqrt(2),y:t-n/Math.sqrt(2)},outerBounds:{width:2*n,height:2*n,x:e-n,y:t-n}}}function $(e,t,n,s,i,o){return o?function(e,t,n,s,i,o){const a=(e+t/2)/180*Math.PI,l=(i+o)/2;return{x:n+l*Math.cos(a),y:s-l*Math.sin(a),width:0,height:0}}(e[o.itemIndex].startAngle,e[o.itemIndex].angleExtent,t,n,s,i):void 0}function J(e,t,n){return n?.color||null!=t?.itemIndex?e[t.itemIndex]:void 0}function K({cx:e,cy:s,r:i,startAngle:o,angleExtent:a,gap:l,innerRadius:c,color:h,id:d,itemIndex:u,isFocused:f=!1,isInteractive:x,...g}){const{interactiveItemStyle:y,contrastBorder:b,innerShapes:m}=n.styles,M=r.classNames([x&&y,b,m]),p=G(0,e,s,i,i,c,a,l,o);let I;return f?(I=G(2,e,s,i,i,c,a,l,o),t.jsxs("g",{id:d,role:g.accessibleLabel?"img":void 0,"data-oj-private-item-index":u,"data-oj-private-object":"pieSlice","aria-label":g.accessibleLabel,children:[t.jsx("path",{d:p,fill:h,stroke:h,className:n.styles.innerShapes}),t.jsx("path",{d:I,fill:h,className:M})]})):t.jsx("path",{role:g.accessibleLabel?"img":void 0,"aria-label":g.accessibleLabel,d:p,"data-oj-private-object":"pieSlice",fill:h,id:d,"data-oj-private-item-index":u,className:x?y:void 0})}const Q=1.04,X=.1;function Z(e,t,n,s,i){const o=(360-e)*(Math.PI/180);return{x:t+Math.cos(o)*s,y:n+Math.sin(o)*i}}function ee(e,t){const{angleExtent:n}=e;return n<3&&t>120}function te(e,t,n,s,i,o,a){const{angleExtent:l,startAngle:r}=e,c=o,h=(t-s)/a,d=(n-i)/a;let u=-Math.atan2(d,h)*(180/Math.PI);for(;u<r;)u+=360;for(;u-r>=360;)u-=360;const f=Math.pow(h,2)+Math.pow(d,2);return Math.sqrt(f)>c/a&&f<=1&&u<=r+l}const ne=(e,t,n,s,i,o,a)=>{const[l,r]=function(e,t,n,s,i,o){const a=[],l=new Set,{cx:r,cy:c}=s;for(const h of e){const{labelPosition:d,startAngle:u,angleExtent:f,label:x,labelStyle:g}=h,y=d||"auto";if("none"===y)continue;if("outside"===y||ee(h,e.length)||null==x){l.add(h.index);continue}const b=u+f/2,m=t,M=s;let p,I;if(1===e.length)p=M.cx,I=M.cy;else{const e=Math.max(.45,.65-.45*m/Math.max(n,.001)),t=Z(b,M.cx,M.cy,m+(n-m)*e,m+(n-m)*e);p=t.x,I=t.y}const v={x:p,y:I},S=o(x,{fontSize:i,...g});let C=p,P=p;const T=I-S.height/2,w=I+S.height/2;for(;te(h,C,T,r,c,t,n)&&te(h,C,w,r,c,t,n);)C--;for(;te(h,P,T,r,c,t,n)&&te(h,P,w,r,c,t,n);)P++;C=Math.ceil(C+3),P=Math.floor(P-3);let F=2*Math.min(p-C,P-p);if(F<S.width&&(v.x=(C+P)/2,F=P-C),"inside"===y)S.width<F&&a.push({position:b,angle:b,slice:h,textInfo:k.getTextInfo(x,{fontSize:i,...g},F,S.height,!1,x.length,o),...S,...v});else{const e=x.length,t=k.getTextInfo(x,{fontSize:i,...g},F,S.height,!1,e,o);t.didNotFit?l.add(h.index):a.push({position:b,angle:b,slice:h,textInfo:t,...S,...v})}}return[a,l]}(e,n,s,t,a,o),{leftLabels:c,rightLabels:h}=function(e,t,n,s,i,o,a){const l=[],r=[],{cx:c,cy:h}=s;for(let s=0;s<e.length;s++){const d=e[s],{labelPosition:u,startAngle:f,angleExtent:x,label:g,labelStyle:y}=d;if(null==g||"none"==u||"inside"==u||ee(e[s],e.length)||!t.has(d.index))continue;let b=f+x/2;b>360&&(b-=360),b<0&&(b+=360);const m=Z(b,c,h,i*Q,i*Q),M=b>=90&&b<270,p=se(n,m.x,M),I=k.getTextInfo(g,{fontSize:o,...y},p,1/0,!0,1,a),v={x:I.width,y:I.height},S=15;if(b<180-S&&b>S?m.y-=1*v.y:b<S||b>360-S?(m.y-=.5*v.y,m.x+=.2*v.y):b>180-S&&b<180+S&&(m.y-=.5*v.y,m.x-=.2*v.y),1==e.length&&(m.x-=v.x/2),m.y<n.y||m.y+v.y>n.y+n.height)continue;let C;b>=90&&b<270?(C=b-90,ie(d,b,C,v,m,I,l)):(C=b<=90?Math.abs(90-b):180-(b-270),ie(d,b,C,v,m,I,r))}return{leftLabels:l,rightLabels:r}}(e,r,i,t,s,a,o),d=oe(e,s,t,i,c,"left"),u=oe(e,s,t,i,h,"right");return 1===d&&0!==u&&re(e,i,t,s,c,!0,!0,!0),0!==d&&1===u&&re(e,i,t,s,h,!1,!0,!0),ce(c,i,t,s,"left",{fontSize:a},o),ce(h,i,t,s,"right",{fontSize:a},o),{insideLabels:l,rightLabels:h,leftLabels:c}};function se(e,t,n){return n?t-e.x:e.x+e.width-t}function ie(e,t,n,s,i,o,a){let l=-1;for(let e=0;e<a.length;e++){const t=a[e];if(t.position&&t.position>n){l=e;break}}-1==l&&(l=a.length);const r={position:n,angle:t,width:s.x,height:s.y,x:i.x,y:i.y,slice:e,textInfo:o};a.splice(l,0,r)}function oe(e,t,n,s,i,o){if(i.length<1)return;let a,l,r=s.y,c=!1,h=!1,d=!1,u=0,f=!1,x=!1;const g="left"==o;for(let e=0;e<i.length;e++)a=i[e],l=f,a.position>90&&(f=!0),u=a.y+a.height,x=r-a.y>1,x&&(f?l?d=!0:h=!0:c=!0),u>r&&(r=u);return c&&d||h?(re(e,s,n,t,i,g,!0,!0),2):c?(re(e,s,n,t,i,g,!0,!1),1):d?(re(e,s,n,t,i,g,!1,!0),1):0}function ae(e,t,n,s,i){const o=Z(e.angle,i.cx,i.cy,s,s);return Math.atan2(Math.abs(t-o.x),o.y-n)}function le(e,t,n,s){t.x=n;const i=1.1*e,o=q(t.position),a=i*Math.cos(o);let l=s.cy-a-.5*t.height+0;const r=t.minY,c=t.maxY;r<=c&&(l=Math.max(l,r),l=Math.min(l,c)),t.y=l}function re(e,t,n,s,i,o,a,l){const r=t;let c,h,d,u,f=r.y,x=r.y+r.height,g=0,y=n.cx;const b=1.2000000000000002*s;for(o?(y-=b,u=y+s*X):(y+=b,u=y-s*X),c=0;c<i.length;c++)h=i[c],g=q(h.position),d=ae(h,u,f,s,n),d-g>.45*Math.PI||ee(i[c].slice,e.length)?(i.splice(c,1),c--):(i[c].minY=f,f+=i[c].height);for(c=i.length-1;c>=0;c--){h=i[c];g=q(h.position),d=ae(h,u,x,s,n),g-d>.45*Math.PI||ee(i[c].slice,e.length)?i.splice(c,1):(x-=i[c].height,i[c].maxY=x)}if(0==i.length)return;const m=function(e){let t=91,n=-1;for(let s=0;s<e.length;s++){const i=e[s].position;Math.abs(i-90)<t&&(t=Math.abs(i-90),n=s)}return n}(i),M=i[m];a&&!l&&M.minY+M.height>n.cy&&(l=!0),l&&!a&&M.maxY<n.cy&&(a=!0);const p=M.position;(l&&a||p>90&&l||p<=90&&a)&&(le(s,M,y,n),M.slice.hasFeelers=!0);let I,v,S=M.y,C=M.y+M.height;if(a)for(c=m-1;c>=0;c--)h=i[c],v=h.height,le(s,h,y,n),h.slice.hasFeelers=!0,I=h.y,I+v<S?S=I:S-=v,h.y=S;if(l)for(c=m+1;c<i.length;c++)h=i[c],v=h.height,le(s,h,y,n),h.slice.hasFeelers=!0,I=h.y,I>C?C=I+v:C+=v,h.y=C-v}function ce(e,t,n,s,i,o,a){if(null==e||e.length<=0)return;let l,r,c;const h="left"===i,d=t;let u,f=1/0;for(l=0;l<e.length;l++){const i=e[l],r={...o,...i.slice.labelStyle};if(i.slice.hasFeelers){u=he(i,n,s,h);const e=a("MW",r).height,o=i.width,l=Math.min(2*e,o);if(se(t,i.x,h)+u<l||0==i.width){i.textInfo=void 0,i.slice.hasFeelers=!1;continue}f=Math.min(f,u)}else i.slice.hasFeelers=!1}for(l=0;l<e.length;l++){const i=e[l];if(r=i.slice,c=i.slice.label,c)if(i.slice.hasFeelers&&(i.x=h?i.x+f:i.x-f,he(i,n,s,h)),i.y<d.y||i.y+i.height>d.y+d.height)r.label="",r.hasFeelers=!1;else{const e=se(t,i.x,h),n=i.textInfo&&k.getTextInfo(i.slice.label,{...o,...i.slice.labelStyle},e,i.textInfo.height,!0,1,a);i.textInfo=n,0!==i.height&&0!==i.width||(r.label="",r.hasFeelers=!1)}}}function he(e,t,n,s){const{x:i,y:o,height:a}=e;let l=i;const r=o+.5*a,c=X*n;let h;s?(l+=3,h=l+c):(l-=3,h=l-c);const d={x:h,y:r},u={x:l,y:r},f=Z(e.angle,t.cx,t.cy,n,n),x=q(e.position),g=Math.abs(Math.atan2(d.x-f.x,f.y-d.y)),y=(f.y-d.y)*Math.tan(x);return(x>Math.PI/2&&g>Math.PI/2&&g<x||x<Math.PI/2&&g<Math.PI/2&&g>x)&&(d.x=s?f.x-y:f.x+y),e.startPt=f,e.midPt=d,e.endPt=u,Math.abs(u.x-d.x)-c}function de({pieLabelInfo:e,labelPos:s,fontSize:i,isRtl:o}){const{x:a,y:l,textInfo:r,slice:c,startPt:h,midPt:d,endPt:u}=e,f=c.color,x="inside"===s?Y.getContrastingTextColor(f):void 0;return t.jsx(t.Fragment,{children:r?.lines.map(((e,f)=>{const g=a,y=l+(f+.5)*r.dims[f].height,b=o&&"left"===s||!o&&"right"===s?"start":"inside"===s?"middle":"end";return t.jsxs(t.Fragment,{children:[c.label&&t.jsx("text",{className:n.styles.labelStyle,x:g,y:y,textAnchor:b,dominantBaseline:"inside"===s?"center":"middle",style:{fill:x,fontSize:i},children:e}),c.hasFeelers&&h&&d&&u&&t.jsxs(t.Fragment,{children:[t.jsx("line",{x1:h.x,x2:d.x,y1:h.y,y2:d.y,className:n.styles.fillerLineStyle}),t.jsx("line",{x1:u.x,x2:d.x,y1:u.y,y2:d.y,className:n.styles.fillerLineStyle})]})]})}))})}const ue=O.getChartVars();function fe({width:e,height:s,testId:i,innerRadius:o=0,contextMenuConfig:a,drilling:r="off",selectionMode:p="none",onItemDrill:I,onItemHover:v,onItemFocus:S,...C}){const P=b.useRef(null),{direction:T}=x.useUser(),w="rtl"===T,{resolvedVars:F,cssContent:L}=B.useCssVars(ue),j=Array.from(Array(12)).map(((e,t)=>F[`color${t+1}`])),A=w?C.data.slice().reverse():C.data,{totalValue:R,isLabelOutside:N}=A.reduce((({totalValue:e,isLabelOutside:t},n)=>({totalValue:e+n.value,isLabelOutside:t||!!n.label&&("outside"===n.labelPosition||"auto"===n.labelPosition)})),{totalValue:0,isLabelOutside:!1});const V=function(e,t,n,s){let i,o=90;const a=[];for(let l=0;l<e.length;l++){const r=e[l],c=r.value;i=c===t?100:0===t?0:Math.min(c/t*100,99.99);const h=3.6*i;let d=o-h;d<0&&(d+=360),a.push({color:n[(s?e.length-1-l:l)%n.length],index:l,startAngle:d,angleExtent:h,...r}),o=d}return a}(A,R,j,w),U=A.length>0,D=function(e){return 3*e}(.5),E=A.length>100,k=g.useTestId(i),O=l.getAvailSpace(e,s,!1),{cx:Y,cy:q}=function(e){return{cx:e.x+Math.floor(e.width/2),cy:e.y+Math.floor(e.height/2)}}(O),H=function(e,t){const n=t?.38:.45;return Math.floor(Math.min(e.width,e.height)*n)}(O,N),G=o*H,Q=function(e,t,n){if(!t)return e;const s=2*Math.PI*n;let i=0;return e.filter((({startAngle:e,angleExtent:t})=>{const n=(t+e)/360*s;return!(t/360*s<1.5&&Math.abs(i-n)<1.5||(i=n,0))}))}(V,E,H),{getDetailFromInfo:X,getNextChartItem:Z}=function(e,t){return{getNextChartItem:({itemIndex:n},s)=>{let i=n;return i=t&&("ArrowRight"===s||"ArrowUp"===s)||!t&&("ArrowLeft"===s||"ArrowDown"===s)?n-1:n+1,{itemIndex:(i%e.length+e.length)%e.length}},getDetailFromInfo:t=>{if(!t)return{id:void 0,data:void 0};const n=function(e,t){const{itemIndex:n}=e;return t[n]}(t,e);return{id:n?n.id:void 0,data:n}}}}(A,"rtl"===T),{textMeasureContent:ee,getTextDimensions:te}=_.useTextDimensions(),se=!(!p||"none"===p),ie="on"===r,{touchResponse:oe,touchResponseStyle:ae}=y.useVisTouchResponse({type:"auto",supportsTouchDragGestures:!1,rootRef:P}),{activeId:le,focusedItemInfo:re,hoveredItemInfo:ce,eventsProps:he,onContextMenuDismissed:fe}=c.usePieChartNav(oe,X,Z,r,I),xe=re.isFocusVisible?re:ce,ge=xe?A[Q[xe.itemIndex].index]:void 0,{content:ye,borderColor:be}=ge&&C.datatip?C.datatip({data:ge}):((e,n)=>e?e.accessibleLabel?{content:e.accessibleLabel,borderColor:J(j,n,e)}:{content:t.jsx(f.VisTabularDatatip,{tableData:[{key:"Value",value:e.value}]}),borderColor:J(j,n,e)}:{content:void 0,borderColor:void 0})(ge,xe),me=re.isFocusVisible?"element":"pointer",Me=xe?.isFocusVisible?$(Q,Y,q,G,H,xe):void 0,pe=d.calculateOffset(w,e,Me),{datatipContent:Ie,datatipProps:ve}=h.useDatatip({content:ye,offset:pe,anchor:me,placement:"top-start",borderColor:be,touchResponse:oe});ve["aria-describedby"]=m.l([C["aria-describedby"],ve["aria-describedby"]]);const{contextMenuContent:Se,contextMenuProps:Ce}=(({offset:e,rootRef:t,contextMenuConfig:n,focusedItemInfo:s,items:i,onContextMenuDismissed:o,width:a,isRtl:l})=>{const{contextMenuProps:r,contextMenuContent:c}=M.useContextMenu({onContextMenuHandler:({gesture:n,target:o})=>{if("keyboard"===n){const t=s.itemIndex;return{type:"offset",context:{type:"item",data:i[t]},offsetValue:e,isRtl:l,width:a}}const r=z.getInfo(t,o)?.itemIndex,c=void 0!==r?i[r]:null;let h;return h=c?{type:"item",data:c}:t.current?.children[1].contains(o)?{type:"centerLabel"}:{type:"background"},{type:"pointer",context:h}},contextMenuOptions:{isDisabled:!n},rootRef:t,contextMenuConfig:n,onContextMenuDismissed:o});return{contextMenuContent:c,contextMenuProps:r}})({offset:pe,rootRef:P,contextMenuConfig:U?a:void 0,onContextMenuDismissed:fe,focusedItemInfo:re,items:V,width:e,isRtl:w}),Pe=u.mergeProps(he,ve,Ce);let Te=[],we=[],Fe=[];const Le=F.labelFontSize;if(te){const e=ne(Q,{cx:Y,cy:q},G,H,O,te,Le);Te=e.insideLabels,we=e.rightLabels,Fe=e.leftLabels}return t.jsxs("div",{ref:P,tabIndex:0,"aria-label":C["aria-label"],"aria-labelledby":C["aria-labelledby"],"aria-activedescendant":le,role:"application",...Pe,...k,className:n.styles.chart,style:{width:e,height:s,...ae},children:[Q.length>0&&t.jsxs("svg",{className:n.styles.svg,children:[Q.map(((e,n)=>t.jsx(K,{isInteractive:se||ie,cx:Y,cy:q,itemIndex:n,id:xe?.itemIndex===n?le:void 0,isFocused:re?.itemIndex===n&&re?.isFocusVisible,isHovered:ce?.itemIndex===n,r:H,startAngle:e.startAngle,gap:D,innerRadius:G,angleExtent:e.angleExtent,color:e.color,accessibleLabel:e.accessibleLabel},e.id))),Te?.map((e=>t.jsx(de,{isRtl:w,pieLabelInfo:e,labelPos:"inside",fontSize:Le}))),Fe?.map((e=>t.jsx(de,{isRtl:w,pieLabelInfo:e,labelPos:"left",fontSize:Le}))),we?.map((e=>t.jsx(de,{isRtl:w,pieLabelInfo:e,labelPos:"right",fontSize:Le})))]}),C.children?.(W(Y,q,G)),Ie,L,Se,ee]})}e.PieChart=function({width:e,height:i,...o}){return t.jsx(s.TrackResizeContainer,{width:e,height:i,class:n.dimensionStyle,children:(e,n)=>t.jsx(fe,{width:e,height:n,...o})})}}));
2
2
  //# sourceMappingURL=PieChart-c934e8f0.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', './Floating-8192acb2', './tabbableUtils-9101c0e5', './refUtils-77e97004', './FocusTrap-d06ac102', './Layer-c91c7141', 'preact/compat', './LayerHost-daf96749', './Modal-1b3cd230', './WindowOverlay-69da5337', './usePopupAnimation-f8e212f7', './useTestId-9afc201a', './useOutsideClick-1b59c507', './clientHints-6d361eaa', './LiveRegion-ef77cf92', './HiddenAccessible-037ef42d', './useTranslationBundle-8e42d505', './useComponentTheme-5aa41a8f', './UNSAFE_Popup/themes/PopupContract.css', './stringUtils-4ffd9d59', './classNames-08d99695', './UNSAFE_Popup/themes/redwood/PopupTheme', './dimensions-f24f9a2b', './colors-17f17162', './mergeInterpolations-9ede4cf7', './unsafeDomAccess-602c5dde'], (function(e,n,t,s,o,r,i,a,c,l,u,d,p,f,m,b,g,h,x,A,y,v,E,O,k,C,F,_){"use strict";function j({message:e,callback:s}){const o=t.useRef(null),r=e=>{"Enter"===e.code&&(e.stopPropagation(),e.preventDefault())};return n.jsx("div",{ref:o,children:n.jsx(h.HiddenAccessible,{children:n.jsx("a",{onClick:s,tabIndex:-1,href:"#",role:"button",onKeyDown:r,onKeyUp:r,onKeyPress:r,children:e})})})}const R=c.forwardRef((({anchorRef:e,launcherRef:c,children:l,isOpen:h=!1,modality:R="modeless",offset:P={mainAxis:0,crossAxis:0},flipOptions:T={mainAxis:!0,crossAxis:!0},shiftOptions:S={mainAxis:!1,crossAxis:!1},onClickOutside:w,onClose:L,initialFocus:D="auto",placement:I=(e?"top":"center"),tail:U="none",onTransitionEnd:N,onFocusSet:M,variant:H="standard",role:K="dialog","aria-label":W,"aria-labelledby":V,"aria-describedby":B,testId:$,...q},z)=>{const G=t.useRef(null),[J,Q]=t.useState(),X=t.useRef(null),Y=t.useRef("unmounted"),Z=f.useTestId($),ee=[X];G.current&&G.current!==document.body&&ee.push(G);const ne=x.useTranslationBundle("@oracle/oraclejet-preact"),te=t.useCallback((()=>"modal"===R),[R]);m.useOutsideClick({isDisabled:!(h&&X.current),ref:ee,handler:e=>{w?.(e)}});const se=t.useCallback((e=>{G.current!==o.getActiveElement()||"F6"!==e.code||te()||(e.preventDefault(),e.stopPropagation(),o.focusWithin(X.current),M?.())}),[te]),{setAnimationElementRef:oe,status:re,onPosition:ie}=p.usePopupAnimation({isOpen:h,isAnimatedOnMount:!0,onTransitionEnd:e=>{e?(le(),N?.(!0)):N?.(!1)},placement:I}),ae=t.useMemo((()=>r.mergeRefs(X,z)),[X,z]),ce=t.useCallback((()=>{const n=G.current,t=e?.current;if(n)o.focusOn(n);else if(t){let e=null;t instanceof Element?e=t:t[_.UNSAFE_DOM_ACCESS]&&(e=t[_.UNSAFE_DOM_ACCESS]),e&&o.focusOn(e)}}),[G,e]);t.useEffect((()=>(h||"opening"!==re||te()?!h&&"unmounted"===re&&te()&&re!==Y.current&&ce():X.current?.contains(o.getActiveElement())&&ce(),()=>{Y.current=re})),[h,re,ce,te]),t.useEffect((()=>(h&&(c?.current&&c.current instanceof Element?G.current=document.body.contains(c.current)?c.current:o.getActiveElement():G.current=o.getActiveElement(),G.current?.addEventListener("keydown",se)),()=>{G.current?.removeEventListener("keydown",se)})),[h,c,se]);const le=()=>{let e=D;"auto"===D&&(e=te()?"firstFocusable":"none"),"popup"===e&&(o.focusOn(X.current),M?.()),"firstFocusable"===e&&(o.focusWithin(X.current),M?.())},ue={mainAxis:(e=>{let n=0;return e&&(n="number"==typeof e?e:e.mainAxis||0,"simple"===U&&(n+=5)),n})(P),crossAxis:(e=>e?"number"==typeof e?0:e.crossAxis||0:0)(P)},de=e=>{const n=o.getActiveElement(),t=X.current,s=G.current;if(t===n||t?.contains(n))switch(e.code){case"Escape":L?.({reason:"escapeKey"});break;case"F6":e.preventDefault(),e.stopPropagation(),s&&!te()&&o.focusOn(s)}};t.useLayoutEffect((()=>{if("unmounted"===re||null==X.current||null!=J||"none"===U)return;const e=v.g(y.popupVars.backgroundColor),n=getComputedStyle(X.current);Q(q.backgroundColor||n.getPropertyValue(e))}),[re,X,J,U,q.backgroundColor]);const pe=b.getClientHints(),fe=["ios","android"].indexOf(pe.platform)>-1,me="opening"===re,{baseTheme:be,classes:ge}=A.useComponentTheme(O.PopupRedwoodTheme),he="unmounted"!==re,xe=[...Object.values(k.dimensionInterpolations),...Object.values(C.colorInterpolations)],Ae=F.mergeInterpolations(xe),{...ye}=Ae(q),ve=()=>{L?.({reason:"closeSkipLink"})},Ee=()=>n.jsxs(n.Fragment,{children:[n.jsx(i.FocusTrap,{restoreFocusRef:!1,children:n.jsxs("div",{ref:ae,tabIndex:-1,role:K,className:E.classNames([be,"unstyled"===H?null:ge]),style:ye,onKeyDown:de,"aria-label":W,"aria-labelledby":V,"aria-describedby":B,...Z,children:[!te()&&fe&&me&&n.jsx(j,{callback:ve,message:`${ne.popup_close_skipLink}`}),l]})}),!te()&&!fe&&n.jsx(g.LiveRegion,{children:`${-1!=["auto","none"].indexOf(D)?ne.popup_liveRegion_F6_initial_focus_none:ne.popup_liveRegion_F6_initial_focus_firstFocusable}`})]}),Oe=()=>e&&e.current?n.jsx(s.Floating,{ref:oe,backgroundColor:J,anchorRef:e,placement:I,offsetValue:ue,flipOptions:T,shiftOptions:S,tail:U,onPosition:ie,children:Ee()}):n.jsx(d.WindowOverlay,{placement:I,offset:ue,children:n.jsx("div",{ref:oe,children:Ee()})});return he?te()?n.jsx(u.Modal,{isOpen:he,children:Oe()}):n.jsx(a.Layer,{children:Oe()}):null}));e.Popup=R}));
2
- //# sourceMappingURL=Popup-695781d6.js.map
1
+ define(['exports', 'preact/jsx-runtime', 'preact/hooks', './Floating-366a30f8', './tabbableUtils-9101c0e5', './refUtils-77e97004', './FocusTrap-d06ac102', './Layer-dc3c1ac9', 'preact/compat', './LayerHost-7d4aa6d3', './Modal-8d647f76', './WindowOverlay-bd810e3b', './usePopupAnimation-9f80595b', './useTestId-a2e433c2', './useOutsideClick-9c4ceb18', './clientHints-6d361eaa', './LiveRegion-4b9317e5', './HiddenAccessible-037ef42d', './useTranslationBundle-27bf6340', './useComponentTheme-5aa41a8f', './UNSAFE_Popup/themes/PopupContract.css', './stringUtils-4ffd9d59', './classNames-08d99695', './UNSAFE_Popup/themes/redwood/PopupTheme', './dimensions-f24f9a2b', './colors-17f17162', './mergeInterpolations-9ede4cf7', './unsafeDomAccess-602c5dde'], (function(e,n,t,s,o,r,i,a,c,l,u,d,p,f,m,b,g,h,x,A,y,v,E,O,k,C,F,_){"use strict";function j({message:e,callback:s}){const o=t.useRef(null),r=e=>{"Enter"===e.code&&(e.stopPropagation(),e.preventDefault())};return n.jsx("div",{ref:o,children:n.jsx(h.HiddenAccessible,{children:n.jsx("a",{onClick:s,tabIndex:-1,href:"#",role:"button",onKeyDown:r,onKeyUp:r,onKeyPress:r,children:e})})})}const R=c.forwardRef((({anchorRef:e,launcherRef:c,children:l,isOpen:h=!1,modality:R="modeless",offset:P={mainAxis:0,crossAxis:0},flipOptions:T={mainAxis:!0,crossAxis:!0},shiftOptions:S={mainAxis:!1,crossAxis:!1},onClickOutside:w,onClose:L,initialFocus:D="auto",placement:I=(e?"top":"center"),tail:U="none",onTransitionEnd:N,onFocusSet:M,variant:H="standard",role:K="dialog","aria-label":W,"aria-labelledby":V,"aria-describedby":B,testId:$,...q},z)=>{const G=t.useRef(null),[J,Q]=t.useState(),X=t.useRef(null),Y=t.useRef("unmounted"),Z=f.useTestId($),ee=[X];G.current&&G.current!==document.body&&ee.push(G);const ne=x.useTranslationBundle("@oracle/oraclejet-preact"),te=t.useCallback((()=>"modal"===R),[R]);m.useOutsideClick({isDisabled:!(h&&X.current),ref:ee,handler:e=>{w?.(e)}});const se=t.useCallback((e=>{G.current!==o.getActiveElement()||"F6"!==e.code||te()||(e.preventDefault(),e.stopPropagation(),o.focusWithin(X.current),M?.())}),[te]),{setAnimationElementRef:oe,status:re,onPosition:ie}=p.usePopupAnimation({isOpen:h,isAnimatedOnMount:!0,onTransitionEnd:e=>{e?(le(),N?.(!0)):N?.(!1)},placement:I}),ae=t.useMemo((()=>r.mergeRefs(X,z)),[X,z]),ce=t.useCallback((()=>{const n=G.current,t=e?.current;if(n)o.focusOn(n);else if(t){let e=null;t instanceof Element?e=t:t[_.UNSAFE_DOM_ACCESS]&&(e=t[_.UNSAFE_DOM_ACCESS]),e&&o.focusOn(e)}}),[G,e]);t.useEffect((()=>(h||"opening"!==re||te()?!h&&"unmounted"===re&&te()&&re!==Y.current&&ce():X.current?.contains(o.getActiveElement())&&ce(),()=>{Y.current=re})),[h,re,ce,te]),t.useEffect((()=>(h&&(c?.current&&c.current instanceof Element?G.current=document.body.contains(c.current)?c.current:o.getActiveElement():G.current=o.getActiveElement(),G.current?.addEventListener("keydown",se)),()=>{G.current?.removeEventListener("keydown",se)})),[h,c,se]);const le=()=>{let e=D;"auto"===D&&(e=te()?"firstFocusable":"none"),"popup"===e&&(o.focusOn(X.current),M?.()),"firstFocusable"===e&&(o.focusWithin(X.current),M?.())},ue={mainAxis:(e=>{let n=0;return e&&(n="number"==typeof e?e:e.mainAxis||0,"simple"===U&&(n+=5)),n})(P),crossAxis:(e=>e?"number"==typeof e?0:e.crossAxis||0:0)(P)},de=e=>{const n=o.getActiveElement(),t=X.current,s=G.current;if(t===n||t?.contains(n))switch(e.code){case"Escape":L?.({reason:"escapeKey"});break;case"F6":e.preventDefault(),e.stopPropagation(),s&&!te()&&o.focusOn(s)}};t.useLayoutEffect((()=>{if("unmounted"===re||null==X.current||null!=J||"none"===U)return;const e=v.g(y.popupVars.backgroundColor),n=getComputedStyle(X.current);Q(q.backgroundColor||n.getPropertyValue(e))}),[re,X,J,U,q.backgroundColor]);const pe=b.getClientHints(),fe=["ios","android"].indexOf(pe.platform)>-1,me="opening"===re,{baseTheme:be,classes:ge}=A.useComponentTheme(O.PopupRedwoodTheme),he="unmounted"!==re,xe=[...Object.values(k.dimensionInterpolations),...Object.values(C.colorInterpolations)],Ae=F.mergeInterpolations(xe),{...ye}=Ae(q),ve=()=>{L?.({reason:"closeSkipLink"})},Ee=()=>n.jsxs(n.Fragment,{children:[n.jsx(i.FocusTrap,{restoreFocusRef:!1,children:n.jsxs("div",{ref:ae,tabIndex:-1,role:K,className:E.classNames([be,"unstyled"===H?null:ge]),style:ye,onKeyDown:de,"aria-label":W,"aria-labelledby":V,"aria-describedby":B,...Z,children:[!te()&&fe&&me&&n.jsx(j,{callback:ve,message:`${ne.popup_close_skipLink}`}),l]})}),!te()&&!fe&&n.jsx(g.LiveRegion,{children:`${-1!=["auto","none"].indexOf(D)?ne.popup_liveRegion_F6_initial_focus_none:ne.popup_liveRegion_F6_initial_focus_firstFocusable}`})]}),Oe=()=>e&&e.current?n.jsx(s.Floating,{ref:oe,backgroundColor:J,anchorRef:e,placement:I,offsetValue:ue,flipOptions:T,shiftOptions:S,tail:U,onPosition:ie,children:Ee()}):n.jsx(d.WindowOverlay,{placement:I,offset:ue,children:n.jsx("div",{ref:oe,children:Ee()})});return he?te()?n.jsx(u.Modal,{isOpen:he,children:Oe()}):n.jsx(a.Layer,{children:Oe()}):null}));e.Popup=R}));
2
+ //# sourceMappingURL=Popup-062b66ff.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popup-695781d6.js","sources":["../../src/UNSAFE_Popup/PopupSkipLink.tsx","../../src/UNSAFE_Popup/Popup.tsx"],"sourcesContent":["import { JSX } from 'preact';\nimport { useRef } from 'preact/hooks';\nimport { HiddenAccessible } from '../UNSAFE_HiddenAccessible';\n\ntype IntrinsicProps = Pick<JSX.HTMLAttributes<HTMLDivElement>, 'children'>;\n\ntype SkipLinkProps = IntrinsicProps & {\n message?: string;\n callback?: () => void;\n};\n\nexport function PopupSkipLink({ message, callback }: SkipLinkProps) {\n const hiddenAccessibleRef = useRef<HTMLDivElement | null>(null);\n\n const handleKey = (event: KeyboardEvent) => {\n // Prevent click generated from an \"enter\" key press by eating the event.\n // This could only happen in some kind of simulator as this skip link is only used on the iOS platform.\n if (event.code === 'Enter') {\n event.stopPropagation();\n event.preventDefault();\n }\n };\n\n return (\n <div ref={hiddenAccessibleRef}>\n <HiddenAccessible>\n <a\n onClick={callback}\n tabIndex={-1}\n href=\"#\"\n role=\"button\"\n onKeyDown={handleKey}\n onKeyUp={handleKey}\n onKeyPress={handleKey}>\n {message}\n </a>\n </HiddenAccessible>\n </div>\n );\n}\n","import type { 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 type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/attributeUtils';\nimport { usePopupAnimation } from './usePopupAnimation';\nimport { AnimationStatus } from '../hooks/PRIVATE_useAnimationStatus';\nimport { useTestId, TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { useOutsideClick } from '../hooks/UNSAFE_useOutsideClick';\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport { PopupSkipLink } from './PopupSkipLink';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\n\n// Style imports\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { popupVars } from './themes/PopupContract.css';\nimport { getVarName } from '@oracle/oraclejet-internal-utilities/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 { colorInterpolations, ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\n\nimport type { UnsafeDomHandle } from '#utils/UNSAFE_unsafeDomAccess';\nimport { UNSAFE_DOM_ACCESS } from '#utils/UNSAFE_unsafeDomAccess';\n\ntype IntrinsicProps = Pick<JSX.HTMLAttributes<HTMLDivElement>, 'children'>;\n\nexport type PopupPlacement = Placement | WindowOverlayPlacement;\nexport type OnCloseDetail = {\n reason: 'escapeKey' | 'closeSkipLink';\n};\nexport type InitialFocus = 'auto' | 'none' | 'popup' | 'firstFocusable';\nexport type Tail = 'none' | 'simple';\nexport type Modality = 'modal' | 'modeless';\nexport type Variant = 'standard' | 'unstyled';\n\ntype Props = IntrinsicProps &\n Pick<ColorProps, 'backgroundColor'> &\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 | UnsafeDomHandle<Element>>;\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 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 styling variant. If <code>unstyled</code> is set, standard styles are not applied.\n */\n variant?: Variant;\n /**\n * Specifies the ARIA role type.\n */\n role?: UnpackSignals<JSX.HTMLAttributes['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 variant = 'standard',\n role = '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 const prevStatusRef = useRef<AnimationStatus>('unmounted');\n\n // testId support\n const testIdProps = useTestId(testId);\n\n const insideRefs: RefObject<HTMLElement>[] = [contentWrapperRef];\n // launcher should be considered an \"inside\" element\n if (localLauncherRef.current && localLauncherRef.current !== document.body) {\n insideRefs.push(localLauncherRef);\n }\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n const isModal = useCallback(() => {\n return modality === 'modal';\n }, [modality]);\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: insideRefs,\n handler: (event) => {\n onClickOutside?.(event);\n }\n });\n\n const launcherKeyDownCallback = useCallback(\n (event: KeyboardEvent): void => {\n if (localLauncherRef.current === getActiveElement() && event.code === 'F6' && !isModal()) {\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 [isModal]\n );\n\n const _onTransitionEnd = (isOpen: boolean) => {\n if (isOpen) {\n setInitialFocus();\n onTransitionEnd?.(true);\n } else {\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\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 anchor = anchorRef?.current;\n\n if (launcherEl) {\n focusOn(launcherEl);\n } else if (anchor) {\n let anchorElement: FocusableElement | null = null;\n\n // Checking instanceof to avoid Coords type that can not be focused\n if (anchor instanceof Element) {\n anchorElement = anchor as FocusableElement;\n } else if ((anchor as UnsafeDomHandle)[UNSAFE_DOM_ACCESS]) {\n anchorElement = (anchor as UnsafeDomHandle)[UNSAFE_DOM_ACCESS];\n }\n\n if (anchorElement) {\n focusOn(anchorElement);\n }\n }\n }, [localLauncherRef, anchorRef]);\n\n useEffect(() => {\n // Init closing\n if (!isOpen && status === 'opening' && !isModal()) {\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 // JET-71010 - for modal popups, the focus cannot be moved until the modal overlay is gone\n else if (!isOpen && status === 'unmounted' && isModal()) {\n // avoid returning focus on initial render\n if (status !== prevStatusRef.current) {\n returnFocus();\n }\n }\n return () => {\n prevStatusRef.current = status;\n };\n }, [isOpen, status, returnFocus, isModal]);\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 (isModal()) {\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 }\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 && !isModal()) {\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(props.backgroundColor || computedStyle.getPropertyValue(backgroundColorVar));\n }, [status, contentWrapperRef, popupBgColor, tail, props.backgroundColor]);\n\n const clientHints = getClientHints();\n const isVOSupported = ['ios', 'android'].indexOf(clientHints.platform) > -1;\n // Note: Popup does not have 'open' status. It is 'opening' even when open.\n const renderVOSupport = status === 'opening';\n\n // Styles\n const { baseTheme, classes } = useComponentTheme(PopupRedwoodTheme);\n const isMounted = status !== 'unmounted';\n\n const interpolations = [\n ...Object.values(dimensionInterpolations),\n ...Object.values(colorInterpolations)\n ];\n const styleInterpolations = mergeInterpolations<DimensionProps & ColorProps>(interpolations);\n const { ...styles } = styleInterpolations(props);\n\n const closeSkipLinkCallback = () => {\n // Trigger onClose event with outside click detail\n onClose?.({ reason: 'closeSkipLink' });\n };\n\n const renderPopup = () => {\n return (\n <>\n <FocusTrap restoreFocusRef={false}>\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 <div\n ref={stableRef}\n tabIndex={-1}\n role={role}\n className={classNames([baseTheme, variant === 'unstyled' ? null : classes])}\n style={styles}\n onKeyDown={handlePopupKeyDown}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedBy}\n {...testIdProps}>\n {/* Acc: Close SkipLink */}\n {!isModal() && isVOSupported && renderVOSupport && (\n <PopupSkipLink\n callback={closeSkipLinkCallback}\n message={`${translations.popup_close_skipLink}`}></PopupSkipLink>\n )}\n {children}\n </div>\n </FocusTrap>\n\n {/* Acc: LiveRegion */}\n {!isModal() &&\n // Render on non-mobile only.\n !isVOSupported && (\n <LiveRegion>\n {`${\n ['auto', 'none'].indexOf(initialFocus) != -1\n ? translations.popup_liveRegion_F6_initial_focus_none\n : translations.popup_liveRegion_F6_initial_focus_firstFocusable\n }`}\n </LiveRegion>\n )}\n </>\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 (isModal()) {\n return <Modal isOpen={isMounted}>{renderFloatingOrOverlayPopup()}</Modal>;\n } else {\n return <Layer>{renderFloatingOrOverlayPopup()}</Layer>;\n }\n } else return null;\n }\n);\n"],"names":["PopupSkipLink","message","callback","hiddenAccessibleRef","useRef","handleKey","event","code","stopPropagation","preventDefault","_jsx","ref","children","jsx","HiddenAccessible","onClick","tabIndex","href","role","onKeyDown","onKeyUp","onKeyPress","Popup","forwardRef","anchorRef","launcherRef","isOpen","modality","offset","mainAxis","crossAxis","flipOptions","shiftOptions","onClickOutside","onClose","initialFocus","placement","tail","onTransitionEnd","onFocusSet","variant","ariaLabel","ariaLabelledBy","ariaDescribedBy","testId","props","localLauncherRef","popupBgColor","setPopupBgColor","useState","contentWrapperRef","prevStatusRef","testIdProps","useTestId","insideRefs","current","document","body","push","translations","useTranslationBundle","isModal","useCallback","useOutsideClick","isDisabled","handler","launcherKeyDownCallback","getActiveElement","focusWithin","setAnimationElementRef","status","onPosition","usePopupAnimation","isAnimatedOnMount","setInitialFocus","stableRef","useMemo","mergeRefs","returnFocus","launcherEl","anchor","focusOn","anchorElement","Element","UNSAFE_DOM_ACCESS","useEffect","contains","addEventListener","removeEventListener","derivedInitialFocus","finalOffset","calcOffset","getMainAxisOffset","getCrossAxisOffset","handlePopupKeyDown","currentlyFocusedEl","wrapperEl","reason","useLayoutEffect","backgroundColorVar","getVarName","popupVars","backgroundColor","computedStyle","getComputedStyle","getPropertyValue","clientHints","getClientHints","isVOSupported","indexOf","platform","renderVOSupport","baseTheme","classes","useComponentTheme","PopupRedwoodTheme","isMounted","interpolations","Object","values","dimensionInterpolations","colorInterpolations","styleInterpolations","mergeInterpolations","styles","closeSkipLinkCallback","renderPopup","_jsxs","FocusTrap","restoreFocusRef","className","classNames","style","popup_close_skipLink","LiveRegion","popup_liveRegion_F6_initial_focus_none","popup_liveRegion_F6_initial_focus_firstFocusable","renderFloatingOrOverlayPopup","Floating","offsetValue","WindowOverlay","Modal","Layer"],"mappings":"yyBAWgBA,GAAcC,QAAEA,EAAOC,SAAEA,IACvC,MAAMC,EAAsBC,SAA8B,MAEpDC,EAAaC,IAGE,UAAfA,EAAMC,OACRD,EAAME,kBACNF,EAAMG,iBACP,EAGH,OACEC,EAAAA,WAAKC,IAAKR,EACRS,SAAAF,EAAAG,IAACC,EAAgBA,iBACf,CAAAF,SAAAF,EAAAA,IAAA,IAAA,CACEK,QAASb,EACTc,UAAW,EACXC,KAAK,IACLC,KAAK,SACLC,UAAWd,EACXe,QAASf,EACTgB,WAAYhB,EACXO,SAAAX,OAKX,CCwHa,MAAAqB,EAAQC,EAAUA,YAC7B,EAEIC,YACAC,cACAb,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,aAAYZ,EAAY,MAAQ,UAChCa,OAAO,OACPC,kBACAC,aACAC,UAAU,WACVtB,OAAO,SACP,aAAcuB,EACd,kBAAmBC,EACnB,mBAAoBC,EACpBC,YACGC,GAELlC,KAEA,MAAMmC,EAAmB1C,SAA2B,OAC7C2C,EAAcC,GAAmBC,EAAQA,WAE1CC,EAAoB9C,SAA8B,MAElD+C,EAAgB/C,SAAwB,aAGxCgD,EAAcC,YAAUT,GAExBU,GAAuC,CAACJ,GAE1CJ,EAAiBS,SAAWT,EAAiBS,UAAYC,SAASC,MACpEH,GAAWI,KAAKZ,GAGlB,MAAMa,GAAeC,uBAAiC,4BAEhDC,GAAUC,EAAAA,aAAY,IACN,UAAbnC,GACN,CAACA,IAKJoC,kBAAgB,CACdC,aAActC,GAAUwB,EAAkBK,SAC1C5C,IAAK2C,GACLW,QAAU3D,IACR2B,IAAiB3B,EAAM,IAI3B,MAAM4D,GAA0BJ,eAC7BxD,IACKwC,EAAiBS,UAAYY,sBAAqC,OAAf7D,EAAMC,MAAkBsD,OAG7EvD,EAAMG,iBACNH,EAAME,kBAEN4D,cAAYlB,EAAkBK,SAC9BhB,MACD,GAGH,CAACsB,MAaGQ,uBAAEA,GAAsBC,OAAEA,GAAMC,WAAEA,IAAeC,EAAAA,kBAAkB,CACvE9C,SACA+C,mBAAmB,EACnBnC,gBAbwBZ,IACpBA,GACFgD,KACApC,KAAkB,IAElBA,KAAkB,EACnB,EAQDF,UAAWA,IAGPuC,GAAYC,WAAQ,IAAMC,YAAU3B,EAAmBvC,IAAM,CAACuC,EAAmBvC,IAEjFmE,GAAchB,EAAAA,aAAY,KAE9B,MAAMiB,EAAajC,EAAiBS,QAC9ByB,EAASxD,GAAW+B,QAE1B,GAAIwB,EACFE,EAAOA,QAACF,QACH,GAAIC,EAAQ,CACjB,IAAIE,EAAyC,KAGzCF,aAAkBG,QACpBD,EAAgBF,EACNA,EAA2BI,EAAAA,qBACrCF,EAAiBF,EAA2BI,EAAAA,oBAG1CF,GACFD,EAAOA,QAACC,EAEX,IACA,CAACpC,EAAkBtB,IAEtB6D,EAAAA,WAAU,KAEH3D,GAAqB,YAAX4C,IAAyBT,MAU9BnC,GAAqB,cAAX4C,IAA0BT,MAExCS,KAAWnB,EAAcI,SAC3BuB,KARE5B,EAAkBK,SAAS+B,SAASnB,EAAAA,qBACtCW,KAUG,KACL3B,EAAcI,QAAUe,EAAM,IAE/B,CAAC5C,EAAQ4C,GAAQQ,GAAajB,KAGjCwB,EAAAA,WAAU,KACJ3D,IACGD,GAAa8B,SAIP9B,EAAY8B,mBAAmB4B,QAGxCrC,EAAiBS,QAAUC,SAASC,KAAK6B,SAAS7D,EAAY8B,SAC1D9B,EAAY8B,QACXY,EAAAA,mBANLrB,EAAiBS,QAAUY,EAAAA,mBAW7BrB,EAAiBS,SAASgC,iBAAiB,UAAWrB,KAEjD,KAELpB,EAAiBS,SAASiC,oBAAoB,UAAWtB,GAAwB,IAElF,CAACxC,EAAQD,EAAayC,KAIzB,MAAMQ,GAAkB,KACtB,IAAIe,EAAsBtD,EACL,SAAjBA,IAGAsD,EAFE5B,KAEoB,iBAGA,QAME,UAAxB4B,IACFR,UAAQ/B,EAAkBK,SAC1BhB,OAK0B,mBAAxBkD,IACFrB,cAAYlB,EAAkBK,SAC9BhB,MACD,EA0BGmD,GAAc,CAClB7D,SAxBwB,CAACD,IACzB,IAAI+D,EAAa,EASjB,OARI/D,IAGF+D,EAA+B,iBAAX/D,EAAsBA,EAASA,EAAOC,UAAY,EACzD,WAATQ,IACFsD,GAAc,IAGXA,CAAU,EAcPC,CAAkBhE,GAC5BE,UAZyB,CAACF,GACrBA,EAKsB,iBAAXA,EAAsB,EAAIA,EAAOE,WAAa,EAJrD,EAUE+D,CAAmBjE,IAG1BkE,GAAsBxF,IAC1B,MAAMyF,EAAqB5B,EAAAA,mBACrB6B,EAAY9C,EAAkBK,QAC9BwB,EAAajC,EAAiBS,QACpC,GAAIyC,IAAcD,GAAsBC,GAAWV,SAASS,GAC1D,OAAQzF,EAAMC,MACZ,IAAK,SAEH2B,IAAU,CAAE+D,OAAQ,cACpB,MAEF,IAAK,KAGH3F,EAAMG,iBACNH,EAAME,kBAGFuE,IAAelB,MACjBoB,EAAOA,QAACF,GAIf,EAGHmB,EAAAA,iBAAgB,KACd,GACa,cAAX5B,IAC6B,MAA7BpB,EAAkBK,SACF,MAAhBR,GACS,SAATV,EAEA,OAEF,MAAM8D,EAAqBC,EAAAA,EAAWC,EAASA,UAACC,iBAC1CC,EAAgBC,iBAAiBtD,EAAkBK,SACzDP,EAAgBH,EAAMyD,iBAAmBC,EAAcE,iBAAiBN,GAAoB,GAC3F,CAAC7B,GAAQpB,EAAmBH,EAAcV,EAAMQ,EAAMyD,kBAEzD,MAAMI,GAAcC,EAAAA,iBACdC,GAAgB,CAAC,MAAO,WAAWC,QAAQH,GAAYI,WAAa,EAEpEC,GAA6B,YAAXzC,IAGlB0C,UAAEA,GAASC,QAAEA,IAAYC,EAAiBA,kBAACC,EAAiBA,mBAC5DC,GAAuB,cAAX9C,GAEZ+C,GAAiB,IAClBC,OAAOC,OAAOC,8BACdF,OAAOC,OAAOE,wBAEbC,GAAsBC,sBAAiDN,QAClEO,IAAWF,GAAoB7E,GAEpCgF,GAAwB,KAE5B3F,IAAU,CAAE+D,OAAQ,iBAAkB,EAGlC6B,GAAc,IAEhBC,6BACErH,EAACG,IAAAmH,EAASA,WAACC,iBAAiB,EAG1BrH,SAAAmH,EAAAA,KAAA,MAAA,CACEpH,IAAKgE,GACL3D,UAAW,EACXE,KAAMA,EACNgH,UAAWC,EAAUA,WAAC,CAACnB,GAAuB,aAAZxE,EAAyB,KAAOyE,KAClEmB,MAAOR,GACPzG,UAAW2E,GAAkB,aACjBrD,EACK,kBAAAC,qBACCC,KACdS,EAEHxC,SAAA,EAACiD,MAAa+C,IAAiBG,IAC9BrG,EAAAG,IAACb,EACC,CAAAE,SAAU2H,GACV5H,QAAS,GAAG0D,GAAa0E,yBAE5BzH,QAKHiD,OAEC+C,IACClG,MAAC4H,aAAU,CAAA1H,SACR,IAC4C,GAA3C,CAAC,OAAQ,QAAQiG,QAAQ1E,GACrBwB,GAAa4E,uCACb5E,GAAa6E,wDAQzBC,GAA+B,IAC9BjH,GAAcA,EAAU+B,QAQzB7C,MAACgI,EAAAA,SAAQ,CACP/H,IAAK0D,GACLiC,gBAAiBvD,EACjBvB,UAAWA,EACXY,UAAWA,EACXuG,YAAajD,GACb3D,YAAaA,EACbC,aAAcA,EACdK,KAAMA,EACNkC,WAAYA,GAAU3D,SACrBkH,OAhBHpH,EAAAA,IAACkI,EAAAA,cAAa,CAACxG,UAAWA,EAAqCR,OAAQ8D,YACrEhF,EAAKG,IAAA,MAAA,CAAAF,IAAK0D,GAAsBzD,SAAGkH,SAqB3C,OAAIV,GACEvD,KACKnD,EAAAG,IAACgI,EAAKA,MAAA,CAACnH,OAAQ0F,GAAYxG,SAAA6H,OAE3B/H,EAAAA,IAACoI,EAAAA,MAAK,CAAAlI,SAAE6H,OAEL,IAAI"}
1
+ {"version":3,"file":"Popup-062b66ff.js","sources":["../../src/UNSAFE_Popup/PopupSkipLink.tsx","../../src/UNSAFE_Popup/Popup.tsx"],"sourcesContent":["import { JSX } from 'preact';\nimport { useRef } from 'preact/hooks';\nimport { HiddenAccessible } from '../UNSAFE_HiddenAccessible';\n\ntype IntrinsicProps = Pick<JSX.HTMLAttributes<HTMLDivElement>, 'children'>;\n\ntype SkipLinkProps = IntrinsicProps & {\n message?: string;\n callback?: () => void;\n};\n\nexport function PopupSkipLink({ message, callback }: SkipLinkProps) {\n const hiddenAccessibleRef = useRef<HTMLDivElement | null>(null);\n\n const handleKey = (event: KeyboardEvent) => {\n // Prevent click generated from an \"enter\" key press by eating the event.\n // This could only happen in some kind of simulator as this skip link is only used on the iOS platform.\n if (event.code === 'Enter') {\n event.stopPropagation();\n event.preventDefault();\n }\n };\n\n return (\n <div ref={hiddenAccessibleRef}>\n <HiddenAccessible>\n <a\n onClick={callback}\n tabIndex={-1}\n href=\"#\"\n role=\"button\"\n onKeyDown={handleKey}\n onKeyUp={handleKey}\n onKeyPress={handleKey}>\n {message}\n </a>\n </HiddenAccessible>\n </div>\n );\n}\n","import type { 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 type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/attributeUtils';\nimport { usePopupAnimation } from './usePopupAnimation';\nimport { AnimationStatus } from '../hooks/PRIVATE_useAnimationStatus';\nimport { useTestId, TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { useOutsideClick } from '../hooks/UNSAFE_useOutsideClick';\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport { PopupSkipLink } from './PopupSkipLink';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\n\n// Style imports\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { popupVars } from './themes/PopupContract.css';\nimport { getVarName } from '@oracle/oraclejet-internal-utilities/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 { colorInterpolations, ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\n\nimport type { UnsafeDomHandle } from '#utils/UNSAFE_unsafeDomAccess';\nimport { UNSAFE_DOM_ACCESS } from '#utils/UNSAFE_unsafeDomAccess';\n\ntype IntrinsicProps = Pick<JSX.HTMLAttributes<HTMLDivElement>, 'children'>;\n\nexport type PopupPlacement = Placement | WindowOverlayPlacement;\nexport type OnCloseDetail = {\n reason: 'escapeKey' | 'closeSkipLink';\n};\nexport type InitialFocus = 'auto' | 'none' | 'popup' | 'firstFocusable';\nexport type Tail = 'none' | 'simple';\nexport type Modality = 'modal' | 'modeless';\nexport type Variant = 'standard' | 'unstyled';\n\ntype Props = IntrinsicProps &\n Pick<ColorProps, 'backgroundColor'> &\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 | UnsafeDomHandle<Element>>;\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 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 styling variant. If <code>unstyled</code> is set, standard styles are not applied.\n */\n variant?: Variant;\n /**\n * Specifies the ARIA role type.\n */\n role?: UnpackSignals<JSX.HTMLAttributes['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 variant = 'standard',\n role = '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 const prevStatusRef = useRef<AnimationStatus>('unmounted');\n\n // testId support\n const testIdProps = useTestId(testId);\n\n const insideRefs: RefObject<HTMLElement>[] = [contentWrapperRef];\n // launcher should be considered an \"inside\" element\n if (localLauncherRef.current && localLauncherRef.current !== document.body) {\n insideRefs.push(localLauncherRef);\n }\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n const isModal = useCallback(() => {\n return modality === 'modal';\n }, [modality]);\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: insideRefs,\n handler: (event) => {\n onClickOutside?.(event);\n }\n });\n\n const launcherKeyDownCallback = useCallback(\n (event: KeyboardEvent): void => {\n if (localLauncherRef.current === getActiveElement() && event.code === 'F6' && !isModal()) {\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 [isModal]\n );\n\n const _onTransitionEnd = (isOpen: boolean) => {\n if (isOpen) {\n setInitialFocus();\n onTransitionEnd?.(true);\n } else {\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\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 anchor = anchorRef?.current;\n\n if (launcherEl) {\n focusOn(launcherEl);\n } else if (anchor) {\n let anchorElement: FocusableElement | null = null;\n\n // Checking instanceof to avoid Coords type that can not be focused\n if (anchor instanceof Element) {\n anchorElement = anchor as FocusableElement;\n } else if ((anchor as UnsafeDomHandle)[UNSAFE_DOM_ACCESS]) {\n anchorElement = (anchor as UnsafeDomHandle)[UNSAFE_DOM_ACCESS];\n }\n\n if (anchorElement) {\n focusOn(anchorElement);\n }\n }\n }, [localLauncherRef, anchorRef]);\n\n useEffect(() => {\n // Init closing\n if (!isOpen && status === 'opening' && !isModal()) {\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 // JET-71010 - for modal popups, the focus cannot be moved until the modal overlay is gone\n else if (!isOpen && status === 'unmounted' && isModal()) {\n // avoid returning focus on initial render\n if (status !== prevStatusRef.current) {\n returnFocus();\n }\n }\n return () => {\n prevStatusRef.current = status;\n };\n }, [isOpen, status, returnFocus, isModal]);\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 (isModal()) {\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 }\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 && !isModal()) {\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(props.backgroundColor || computedStyle.getPropertyValue(backgroundColorVar));\n }, [status, contentWrapperRef, popupBgColor, tail, props.backgroundColor]);\n\n const clientHints = getClientHints();\n const isVOSupported = ['ios', 'android'].indexOf(clientHints.platform) > -1;\n // Note: Popup does not have 'open' status. It is 'opening' even when open.\n const renderVOSupport = status === 'opening';\n\n // Styles\n const { baseTheme, classes } = useComponentTheme(PopupRedwoodTheme);\n const isMounted = status !== 'unmounted';\n\n const interpolations = [\n ...Object.values(dimensionInterpolations),\n ...Object.values(colorInterpolations)\n ];\n const styleInterpolations = mergeInterpolations<DimensionProps & ColorProps>(interpolations);\n const { ...styles } = styleInterpolations(props);\n\n const closeSkipLinkCallback = () => {\n // Trigger onClose event with outside click detail\n onClose?.({ reason: 'closeSkipLink' });\n };\n\n const renderPopup = () => {\n return (\n <>\n <FocusTrap restoreFocusRef={false}>\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 <div\n ref={stableRef}\n tabIndex={-1}\n role={role}\n className={classNames([baseTheme, variant === 'unstyled' ? null : classes])}\n style={styles}\n onKeyDown={handlePopupKeyDown}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedBy}\n {...testIdProps}>\n {/* Acc: Close SkipLink */}\n {!isModal() && isVOSupported && renderVOSupport && (\n <PopupSkipLink\n callback={closeSkipLinkCallback}\n message={`${translations.popup_close_skipLink}`}></PopupSkipLink>\n )}\n {children}\n </div>\n </FocusTrap>\n\n {/* Acc: LiveRegion */}\n {!isModal() &&\n // Render on non-mobile only.\n !isVOSupported && (\n <LiveRegion>\n {`${\n ['auto', 'none'].indexOf(initialFocus) != -1\n ? translations.popup_liveRegion_F6_initial_focus_none\n : translations.popup_liveRegion_F6_initial_focus_firstFocusable\n }`}\n </LiveRegion>\n )}\n </>\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 (isModal()) {\n return <Modal isOpen={isMounted}>{renderFloatingOrOverlayPopup()}</Modal>;\n } else {\n return <Layer>{renderFloatingOrOverlayPopup()}</Layer>;\n }\n } else return null;\n }\n);\n"],"names":["PopupSkipLink","message","callback","hiddenAccessibleRef","useRef","handleKey","event","code","stopPropagation","preventDefault","_jsx","ref","children","jsx","HiddenAccessible","onClick","tabIndex","href","role","onKeyDown","onKeyUp","onKeyPress","Popup","forwardRef","anchorRef","launcherRef","isOpen","modality","offset","mainAxis","crossAxis","flipOptions","shiftOptions","onClickOutside","onClose","initialFocus","placement","tail","onTransitionEnd","onFocusSet","variant","ariaLabel","ariaLabelledBy","ariaDescribedBy","testId","props","localLauncherRef","popupBgColor","setPopupBgColor","useState","contentWrapperRef","prevStatusRef","testIdProps","useTestId","insideRefs","current","document","body","push","translations","useTranslationBundle","isModal","useCallback","useOutsideClick","isDisabled","handler","launcherKeyDownCallback","getActiveElement","focusWithin","setAnimationElementRef","status","onPosition","usePopupAnimation","isAnimatedOnMount","setInitialFocus","stableRef","useMemo","mergeRefs","returnFocus","launcherEl","anchor","focusOn","anchorElement","Element","UNSAFE_DOM_ACCESS","useEffect","contains","addEventListener","removeEventListener","derivedInitialFocus","finalOffset","calcOffset","getMainAxisOffset","getCrossAxisOffset","handlePopupKeyDown","currentlyFocusedEl","wrapperEl","reason","useLayoutEffect","backgroundColorVar","getVarName","popupVars","backgroundColor","computedStyle","getComputedStyle","getPropertyValue","clientHints","getClientHints","isVOSupported","indexOf","platform","renderVOSupport","baseTheme","classes","useComponentTheme","PopupRedwoodTheme","isMounted","interpolations","Object","values","dimensionInterpolations","colorInterpolations","styleInterpolations","mergeInterpolations","styles","closeSkipLinkCallback","renderPopup","_jsxs","FocusTrap","restoreFocusRef","className","classNames","style","popup_close_skipLink","LiveRegion","popup_liveRegion_F6_initial_focus_none","popup_liveRegion_F6_initial_focus_firstFocusable","renderFloatingOrOverlayPopup","Floating","offsetValue","WindowOverlay","Modal","Layer"],"mappings":"yyBAWgBA,GAAcC,QAAEA,EAAOC,SAAEA,IACvC,MAAMC,EAAsBC,SAA8B,MAEpDC,EAAaC,IAGE,UAAfA,EAAMC,OACRD,EAAME,kBACNF,EAAMG,iBACP,EAGH,OACEC,EAAAA,WAAKC,IAAKR,EACRS,SAAAF,EAAAG,IAACC,EAAgBA,iBACf,CAAAF,SAAAF,EAAAA,IAAA,IAAA,CACEK,QAASb,EACTc,UAAW,EACXC,KAAK,IACLC,KAAK,SACLC,UAAWd,EACXe,QAASf,EACTgB,WAAYhB,EACXO,SAAAX,OAKX,CCwHa,MAAAqB,EAAQC,EAAUA,YAC7B,EAEIC,YACAC,cACAb,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,aAAYZ,EAAY,MAAQ,UAChCa,OAAO,OACPC,kBACAC,aACAC,UAAU,WACVtB,OAAO,SACP,aAAcuB,EACd,kBAAmBC,EACnB,mBAAoBC,EACpBC,YACGC,GAELlC,KAEA,MAAMmC,EAAmB1C,SAA2B,OAC7C2C,EAAcC,GAAmBC,EAAQA,WAE1CC,EAAoB9C,SAA8B,MAElD+C,EAAgB/C,SAAwB,aAGxCgD,EAAcC,YAAUT,GAExBU,GAAuC,CAACJ,GAE1CJ,EAAiBS,SAAWT,EAAiBS,UAAYC,SAASC,MACpEH,GAAWI,KAAKZ,GAGlB,MAAMa,GAAeC,uBAAiC,4BAEhDC,GAAUC,EAAAA,aAAY,IACN,UAAbnC,GACN,CAACA,IAKJoC,kBAAgB,CACdC,aAActC,GAAUwB,EAAkBK,SAC1C5C,IAAK2C,GACLW,QAAU3D,IACR2B,IAAiB3B,EAAM,IAI3B,MAAM4D,GAA0BJ,eAC7BxD,IACKwC,EAAiBS,UAAYY,sBAAqC,OAAf7D,EAAMC,MAAkBsD,OAG7EvD,EAAMG,iBACNH,EAAME,kBAEN4D,cAAYlB,EAAkBK,SAC9BhB,MACD,GAGH,CAACsB,MAaGQ,uBAAEA,GAAsBC,OAAEA,GAAMC,WAAEA,IAAeC,EAAAA,kBAAkB,CACvE9C,SACA+C,mBAAmB,EACnBnC,gBAbwBZ,IACpBA,GACFgD,KACApC,KAAkB,IAElBA,KAAkB,EACnB,EAQDF,UAAWA,IAGPuC,GAAYC,WAAQ,IAAMC,YAAU3B,EAAmBvC,IAAM,CAACuC,EAAmBvC,IAEjFmE,GAAchB,EAAAA,aAAY,KAE9B,MAAMiB,EAAajC,EAAiBS,QAC9ByB,EAASxD,GAAW+B,QAE1B,GAAIwB,EACFE,EAAOA,QAACF,QACH,GAAIC,EAAQ,CACjB,IAAIE,EAAyC,KAGzCF,aAAkBG,QACpBD,EAAgBF,EACNA,EAA2BI,EAAAA,qBACrCF,EAAiBF,EAA2BI,EAAAA,oBAG1CF,GACFD,EAAOA,QAACC,EAEX,IACA,CAACpC,EAAkBtB,IAEtB6D,EAAAA,WAAU,KAEH3D,GAAqB,YAAX4C,IAAyBT,MAU9BnC,GAAqB,cAAX4C,IAA0BT,MAExCS,KAAWnB,EAAcI,SAC3BuB,KARE5B,EAAkBK,SAAS+B,SAASnB,EAAAA,qBACtCW,KAUG,KACL3B,EAAcI,QAAUe,EAAM,IAE/B,CAAC5C,EAAQ4C,GAAQQ,GAAajB,KAGjCwB,EAAAA,WAAU,KACJ3D,IACGD,GAAa8B,SAIP9B,EAAY8B,mBAAmB4B,QAGxCrC,EAAiBS,QAAUC,SAASC,KAAK6B,SAAS7D,EAAY8B,SAC1D9B,EAAY8B,QACXY,EAAAA,mBANLrB,EAAiBS,QAAUY,EAAAA,mBAW7BrB,EAAiBS,SAASgC,iBAAiB,UAAWrB,KAEjD,KAELpB,EAAiBS,SAASiC,oBAAoB,UAAWtB,GAAwB,IAElF,CAACxC,EAAQD,EAAayC,KAIzB,MAAMQ,GAAkB,KACtB,IAAIe,EAAsBtD,EACL,SAAjBA,IAGAsD,EAFE5B,KAEoB,iBAGA,QAME,UAAxB4B,IACFR,UAAQ/B,EAAkBK,SAC1BhB,OAK0B,mBAAxBkD,IACFrB,cAAYlB,EAAkBK,SAC9BhB,MACD,EA0BGmD,GAAc,CAClB7D,SAxBwB,CAACD,IACzB,IAAI+D,EAAa,EASjB,OARI/D,IAGF+D,EAA+B,iBAAX/D,EAAsBA,EAASA,EAAOC,UAAY,EACzD,WAATQ,IACFsD,GAAc,IAGXA,CAAU,EAcPC,CAAkBhE,GAC5BE,UAZyB,CAACF,GACrBA,EAKsB,iBAAXA,EAAsB,EAAIA,EAAOE,WAAa,EAJrD,EAUE+D,CAAmBjE,IAG1BkE,GAAsBxF,IAC1B,MAAMyF,EAAqB5B,EAAAA,mBACrB6B,EAAY9C,EAAkBK,QAC9BwB,EAAajC,EAAiBS,QACpC,GAAIyC,IAAcD,GAAsBC,GAAWV,SAASS,GAC1D,OAAQzF,EAAMC,MACZ,IAAK,SAEH2B,IAAU,CAAE+D,OAAQ,cACpB,MAEF,IAAK,KAGH3F,EAAMG,iBACNH,EAAME,kBAGFuE,IAAelB,MACjBoB,EAAOA,QAACF,GAIf,EAGHmB,EAAAA,iBAAgB,KACd,GACa,cAAX5B,IAC6B,MAA7BpB,EAAkBK,SACF,MAAhBR,GACS,SAATV,EAEA,OAEF,MAAM8D,EAAqBC,EAAAA,EAAWC,EAASA,UAACC,iBAC1CC,EAAgBC,iBAAiBtD,EAAkBK,SACzDP,EAAgBH,EAAMyD,iBAAmBC,EAAcE,iBAAiBN,GAAoB,GAC3F,CAAC7B,GAAQpB,EAAmBH,EAAcV,EAAMQ,EAAMyD,kBAEzD,MAAMI,GAAcC,EAAAA,iBACdC,GAAgB,CAAC,MAAO,WAAWC,QAAQH,GAAYI,WAAa,EAEpEC,GAA6B,YAAXzC,IAGlB0C,UAAEA,GAASC,QAAEA,IAAYC,EAAiBA,kBAACC,EAAiBA,mBAC5DC,GAAuB,cAAX9C,GAEZ+C,GAAiB,IAClBC,OAAOC,OAAOC,8BACdF,OAAOC,OAAOE,wBAEbC,GAAsBC,sBAAiDN,QAClEO,IAAWF,GAAoB7E,GAEpCgF,GAAwB,KAE5B3F,IAAU,CAAE+D,OAAQ,iBAAkB,EAGlC6B,GAAc,IAEhBC,6BACErH,EAACG,IAAAmH,EAASA,WAACC,iBAAiB,EAG1BrH,SAAAmH,EAAAA,KAAA,MAAA,CACEpH,IAAKgE,GACL3D,UAAW,EACXE,KAAMA,EACNgH,UAAWC,EAAUA,WAAC,CAACnB,GAAuB,aAAZxE,EAAyB,KAAOyE,KAClEmB,MAAOR,GACPzG,UAAW2E,GAAkB,aACjBrD,EACK,kBAAAC,qBACCC,KACdS,EAEHxC,SAAA,EAACiD,MAAa+C,IAAiBG,IAC9BrG,EAAAG,IAACb,EACC,CAAAE,SAAU2H,GACV5H,QAAS,GAAG0D,GAAa0E,yBAE5BzH,QAKHiD,OAEC+C,IACClG,MAAC4H,aAAU,CAAA1H,SACR,IAC4C,GAA3C,CAAC,OAAQ,QAAQiG,QAAQ1E,GACrBwB,GAAa4E,uCACb5E,GAAa6E,wDAQzBC,GAA+B,IAC9BjH,GAAcA,EAAU+B,QAQzB7C,MAACgI,EAAAA,SAAQ,CACP/H,IAAK0D,GACLiC,gBAAiBvD,EACjBvB,UAAWA,EACXY,UAAWA,EACXuG,YAAajD,GACb3D,YAAaA,EACbC,aAAcA,EACdK,KAAMA,EACNkC,WAAYA,GAAU3D,SACrBkH,OAhBHpH,EAAAA,IAACkI,EAAAA,cAAa,CAACxG,UAAWA,EAAqCR,OAAQ8D,YACrEhF,EAAKG,IAAA,MAAA,CAAAF,IAAK0D,GAAsBzD,SAAGkH,SAqB3C,OAAIV,GACEvD,KACKnD,EAAAG,IAACgI,EAAKA,MAAA,CAACnH,OAAQ0F,GAAYxG,SAAA6H,OAE3B/H,EAAAA,IAACoI,EAAAA,MAAK,CAAAlI,SAAE6H,OAEL,IAAI"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './useUser-12ec03f1', './useTranslationBundle-8e42d505', './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:x,trackBorderEdgeNone:B,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?x:""]),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?B: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:x,trackBorderEdgeTop:B}}=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?x:B]),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-70983add.js.map
1
+ define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './useUser-988f7da2', './useTranslationBundle-27bf6340', './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:""]),f=l.useTranslationBundle("@oracle/oraclejet-preact"),j={"aria-valuetext":c["aria-valuetext"]||f.progressIndeterminate(),"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],role:"progressbar"},N="active"===p?void 0:"none"===d?x:B;return a.jsx(t.BarTrack,{id:e,ariaProps:j,class:r.classNames([u,N]),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-9aed0a47.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar-70983add.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 type { ComponentProps, JSX } 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 type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/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<UnpackSignals<JSX.IntrinsicElements['div']>, '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?: UnpackSignals<JSX.IntrinsicElements['div']>['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-9aed0a47.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 type { ComponentProps, JSX } 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 type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/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<UnpackSignals<JSX.IntrinsicElements['div']>, '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?: UnpackSignals<JSX.IntrinsicElements['div']>['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-d69319ea', './ProgressButtonLabelLayout-0931b1d5', 'preact/compat', './useTooltip-75a63697', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-daf96749', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-ae57629b', './buttonUtils-cbbb0130', './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-2c9850cb', './ProgressButtonLabelLayout-0931b1d5', 'preact/compat', './useTooltip-e14d62f1', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-7d4aa6d3', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-3c8a0253', './buttonUtils-cbbb0130', './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}));
2
2
  //# sourceMappingURL=ProgressButton-e6a1d457.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './useProgressButtonLabelLayoutTheme-8893dd91', './classNames-08d99695', './ProgressCircle-551b98ed', './withThemeProps-0ef51fd1', './View-ab4d3a33', './useColorScheme-3022ec9a', 'preact/hooks', './HiddenAccessible-037ef42d'], (function(s,e,a,i,t,n,r,o,l,d){"use strict";function c({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}),f="label"===t||!u,S=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:S,children:[j&&u&&e.jsx("span",{class:L,"aria-hidden":!0,children:o?e.jsx(c,{isLoadingContrast:r}):u}),y&&h&&e.jsxs("span",{"aria-hidden":!0,class:f?void 0:b,children:[" ",h," "]}),y&&h&&o&&!P&&e.jsx("span",{class:p.floatingIcon,"aria-hidden":!0,children:e.jsx(c,{isLoadingContrast:r})}),g?e.jsx("span",{"aria-live":"assertive",children:e.jsx(d.HiddenAccessible,{children:v?g:o?m:void 0})}):void 0]})}c.displayName="AdjustedProgressCircle",h.displayName="ProgressButtonLabelLayout",s.ProgressButtonLabelLayout=h}));
1
+ define(['exports', 'preact/jsx-runtime', './useProgressButtonLabelLayoutTheme-8893dd91', './classNames-08d99695', './ProgressCircle-0001dec1', './withThemeProps-0ef51fd1', './View-5520bcf5', './useColorScheme-f2a81610', 'preact/hooks', './HiddenAccessible-037ef42d'], (function(s,e,a,i,t,n,r,o,l,d){"use strict";function c({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:f,hasTextStartIcon:y}=a.useProgressButtonLabelLayoutTheme({display:t,size:s,styling:n,isLoading:o,startIcon:u,children:h}),P="label"===t||!u,S=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:S,children:[j&&u&&e.jsx("span",{class:L,"aria-hidden":!0,children:o?e.jsx(c,{isLoadingContrast:r}):u}),f&&h&&e.jsxs("span",{"aria-hidden":!0,class:P?void 0:p,children:[" ",h," "]}),f&&h&&o&&!y&&e.jsx("span",{class:x.floatingIcon,"aria-hidden":!0,children:e.jsx(c,{isLoadingContrast:r})}),g?e.jsx("span",{"aria-live":"assertive",children:e.jsx(d.HiddenAccessible,{children:v?g:o?m:void 0})}):void 0]})}c.displayName="AdjustedProgressCircle",h.displayName="ProgressButtonLabelLayout",s.ProgressButtonLabelLayout=h}));
2
2
  //# sourceMappingURL=ProgressButtonLabelLayout-0931b1d5.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './meterUtils-ec7ab29c', './circleUtils-1886e5b4', './useTranslationBundle-8e42d505', './useComponentTheme-5aa41a8f', './UNSAFE_ProgressCircle/themes/redwood/ProgressCircleTheme', './CircularMeter-b754580a'], (function(e,a,r,s,l,i,t,n,c){"use strict";const o=({id:e,size:r,...s})=>{const{classes:l,styles:{indeterminate:o}}=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(c.CircleWrapper,{id:e,ariaProps:m,class:l,children:a.jsx(c.CircleInner,{class:o})})},d=({value:e=0,max:s=100,id:i,size:o,...d})=>{const{classes:m,styles:{determinate:u,track:p,valueStyle:b}}=t.useComponentTheme(n.ProgressCircleRedwoodTheme,{size:o}),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(c.CircleWrapper,{id:i,ariaProps:h,class:m,children:[a.jsx(c.CircleInner,{class:r.classNames([u,p])}),a.jsx(c.CircleInner,{class:r.classNames([u,b]),clipPath:C})]})};e.ProgressCircle=function({value:e,max:r,...s}){return"indeterminate"===e?a.jsx(o,{...s}):a.jsx(d,{value:e,max:r,...s})}}));
2
- //# sourceMappingURL=ProgressCircle-551b98ed.js.map
1
+ define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './meterUtils-ec7ab29c', './circleUtils-1886e5b4', './useTranslationBundle-27bf6340', './useComponentTheme-5aa41a8f', './UNSAFE_ProgressCircle/themes/redwood/ProgressCircleTheme', './CircularMeter-b754580a'], (function(e,a,r,s,l,i,t,n,c){"use strict";const o=({id:e,size:r,...s})=>{const{classes:l,styles:{indeterminate:o}}=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(c.CircleWrapper,{id:e,ariaProps:m,class:l,children:a.jsx(c.CircleInner,{class:o})})},d=({value:e=0,max:s=100,id:i,size:o,...d})=>{const{classes:m,styles:{determinate:u,track:b,valueStyle:p}}=t.useComponentTheme(n.ProgressCircleRedwoodTheme,{size:o}),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(c.CircleWrapper,{id:i,ariaProps:h,class:m,children:[a.jsx(c.CircleInner,{class:r.classNames([u,b])}),a.jsx(c.CircleInner,{class:r.classNames([u,p]),clipPath:C})]})};e.ProgressCircle=function({value:e,max:r,...s}){return"indeterminate"===e?a.jsx(o,{...s}):a.jsx(d,{value:e,max:r,...s})}}));
2
+ //# sourceMappingURL=ProgressCircle-0001dec1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressCircle-551b98ed.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 type { ComponentChildren, ComponentProps, JSX } 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 type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/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<UnpackSignals<JSX.IntrinsicElements['div']>, '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?: UnpackSignals<JSX.IntrinsicElements['div']>['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-0001dec1.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 type { ComponentChildren, ComponentProps, JSX } 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 type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/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<UnpackSignals<JSX.IntrinsicElements['div']>, '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?: UnpackSignals<JSX.IntrinsicElements['div']>['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"}