@oracle/oraclejet-preact 18.0.6 → 18.0.7

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-3f86f73f.js +1 -1
  2. package/amd/{BarChart-077c5f02.js → BarChart-5e9f46b4.js} +2 -2
  3. package/amd/{BarChart-077c5f02.js.map → BarChart-5e9f46b4.js.map} +1 -1
  4. package/amd/BarGroup-76ef0839.js +1 -1
  5. package/amd/BaseButton-19a622bc.js +1 -1
  6. package/amd/{BaseCardView-70b177ed.js → BaseCardView-ab799b69.js} +2 -2
  7. package/amd/{BaseCardView-70b177ed.js.map → BaseCardView-ab799b69.js.map} +1 -1
  8. package/amd/{BaseCardViewSelectionTest-0ec52156.js → BaseCardViewSelectionTest-d026d26c.js} +2 -2
  9. package/amd/{BaseCardViewSelectionTest-0ec52156.js.map → BaseCardViewSelectionTest-d026d26c.js.map} +1 -1
  10. package/amd/BaseNavigationListItem-fe9cb691.js +1 -1
  11. package/amd/BaseRichSelection-9d8f3ee4.js +1 -1
  12. package/amd/ButtonSet-d95872cc.js +1 -1
  13. package/amd/ButtonSetIconButton-7a2c113c.js +1 -1
  14. package/amd/{Card-f6f2dc90.js → Card-8e081def.js} +2 -2
  15. package/amd/{Card-f6f2dc90.js.map → Card-8e081def.js.map} +1 -1
  16. package/amd/CardFlexView-296f97f5.js +2 -0
  17. package/amd/{CardFlexView-bb5c4369.js.map → CardFlexView-296f97f5.js.map} +1 -1
  18. package/amd/{CardGridView-c28ff2f7.js → CardGridView-054ffc3f.js} +2 -2
  19. package/amd/{CardGridView-c28ff2f7.js.map → CardGridView-054ffc3f.js.map} +1 -1
  20. package/amd/{Center-b449a95c.js → Center-9ec5524e.js} +2 -2
  21. package/amd/{Center-b449a95c.js.map → Center-9ec5524e.js.map} +1 -1
  22. package/amd/{Chart-3621e125.js → Chart-e2807ff7.js} +2 -2
  23. package/amd/{Chart-3621e125.js.map → Chart-e2807ff7.js.map} +1 -1
  24. package/amd/CheckboxControl-83484a5a.js +1 -1
  25. package/amd/CheckboxRadioField-9733dd24.js +1 -1
  26. package/amd/Chip-cd210507.js +1 -1
  27. package/amd/ClearIcon-de20285c.js +1 -1
  28. package/amd/CollapseIcon-e030531c.js +1 -1
  29. package/amd/Collapsible-924afd71.js +1 -1
  30. package/amd/{ComboChart-fd7da90e.js → ComboChart-71c0f51f.js} +2 -2
  31. package/amd/{ComboChart-fd7da90e.js.map → ComboChart-71c0f51f.js.map} +1 -1
  32. package/amd/CompactHelpSource-74498e92.js +1 -1
  33. package/amd/CompactLabelAssistance-c6928282.js +2 -0
  34. package/amd/{CompactLabelAssistance-44ba87b0.js.map → CompactLabelAssistance-c6928282.js.map} +1 -1
  35. package/amd/CompactUserAssistance-3370a318.js +1 -1
  36. package/amd/ComponentMessageContainer-8028ba70.js +1 -1
  37. package/amd/ConveyorBeltItem-08720127.js +1 -1
  38. package/amd/{DatePicker-2c94a3bb.js → DatePicker-bf0e0c69.js} +2 -2
  39. package/amd/{DatePicker-2c94a3bb.js.map → DatePicker-bf0e0c69.js.map} +1 -1
  40. package/amd/DatePickerHeader-f21e020d.js +1 -1
  41. package/amd/{Diagram-c3afb211.js → Diagram-04db0931.js} +2 -2
  42. package/amd/{Diagram-c3afb211.js.map → Diagram-04db0931.js.map} +1 -1
  43. package/amd/{Dialog-53f92591.js → Dialog-5f36f8aa.js} +2 -2
  44. package/amd/{Dialog-53f92591.js.map → Dialog-5f36f8aa.js.map} +1 -1
  45. package/amd/DirectionalCollapseArrowIcon-20cef34d.js +1 -1
  46. package/amd/DirectionalExpandArrowIcon-e9bdb06e.js +1 -1
  47. package/amd/{DragHandle-699fefd6.js → DragHandle-406d7f9a.js} +2 -2
  48. package/amd/{DragHandle-699fefd6.js.map → DragHandle-406d7f9a.js.map} +1 -1
  49. package/amd/{Dropdown-4b421eff.js → Dropdown-abcacf49.js} +2 -2
  50. package/amd/{Dropdown-4b421eff.js.map → Dropdown-abcacf49.js.map} +1 -1
  51. package/amd/{EnvironmentProvider-8f6fc388.js → EnvironmentProvider-c0e1e39b.js} +2 -2
  52. package/amd/{EnvironmentProvider-8f6fc388.js.map → EnvironmentProvider-c0e1e39b.js.map} +1 -1
  53. package/amd/ExpandableList-dd3a05b4.js +1 -1
  54. package/amd/FilePicker-4636b49b.js +1 -1
  55. package/amd/Flex-3421f0df.js +2 -0
  56. package/amd/{Flex-56ecdf4c.js.map → Flex-3421f0df.js.map} +1 -1
  57. package/amd/{Floating-1ec5ec2a.js → Floating-5d98c1ca.js} +2 -2
  58. package/amd/{Floating-1ec5ec2a.js.map → Floating-5d98c1ca.js.map} +1 -1
  59. package/amd/FormLayout-a4a29a2d.js +1 -1
  60. package/amd/Gantt-d94af58e.js +1 -1
  61. package/amd/{Grid-160f4885.js → Grid-8911aa0f.js} +2 -2
  62. package/amd/{Grid-160f4885.js.map → Grid-8911aa0f.js.map} +1 -1
  63. package/amd/{Gridlines-7851bb20.js → Gridlines-bef7bbfc.js} +2 -2
  64. package/amd/{Gridlines-7851bb20.js.map → Gridlines-bef7bbfc.js.map} +1 -1
  65. package/amd/GroupLoadingIndicator-6b2ab709.js +1 -1
  66. package/amd/HighlightText-644bc74e.js +2 -0
  67. package/amd/{HighlightText-bd4c0101.js.map → HighlightText-644bc74e.js.map} +1 -1
  68. package/amd/Icon-2d38c876.js +1 -1
  69. package/amd/IconButton-ae9a01ce.js +1 -1
  70. package/amd/IconMenuButton-b0468fa8.js +1 -1
  71. package/amd/IconProgressButton-ff5372eb.js +1 -1
  72. package/amd/IconSwitchButton-22f907e7.js +1 -1
  73. package/amd/IconToggleButton-20d411e6.js +1 -1
  74. package/amd/{IconUserAssistance-d2bd2691.js → IconUserAssistance-37107cea.js} +2 -2
  75. package/amd/{IconUserAssistance-d2bd2691.js.map → IconUserAssistance-37107cea.js.map} +1 -1
  76. package/amd/{Indexer-357554c4.js → Indexer-1531dbc3.js} +2 -2
  77. package/amd/{Indexer-357554c4.js.map → Indexer-1531dbc3.js.map} +1 -1
  78. package/amd/InlineHelpSource-85961e81.js +1 -1
  79. package/amd/InlineUserAssistance-4656c2a6.js +1 -1
  80. package/amd/InputDateMask-6d54c3e6.js +1 -1
  81. package/amd/InputDatePicker-fc39f0a6.js +1 -1
  82. package/amd/InputPassword-f6ea728a.js +1 -1
  83. package/amd/InputText-57f60b6f.js +1 -1
  84. package/amd/Label-3912beb2.js +1 -1
  85. package/amd/LabelValueLayout-194e64d9.js +1 -1
  86. package/amd/{Layer-447c68e6.js → Layer-6f29b67f.js} +2 -2
  87. package/amd/{Layer-447c68e6.js.map → Layer-6f29b67f.js.map} +1 -1
  88. package/amd/{LayerHost-e95c5f30.js → LayerHost-639b3284.js} +2 -2
  89. package/amd/{LayerHost-e95c5f30.js.map → LayerHost-639b3284.js.map} +1 -1
  90. package/amd/{LayerManager-76fcfb58.js → LayerManager-2972de92.js} +2 -2
  91. package/amd/{LayerManager-76fcfb58.js.map → LayerManager-2972de92.js.map} +1 -1
  92. package/amd/Legend-e4949499.js +1 -1
  93. package/amd/{LineAreaChart-4140d004.js → LineAreaChart-2ba275ab.js} +2 -2
  94. package/amd/{LineAreaChart-4140d004.js.map → LineAreaChart-2ba275ab.js.map} +1 -1
  95. package/amd/{LineSeries-a549e727.js → LineSeries-797d8d16.js} +2 -2
  96. package/amd/{LineSeries-a549e727.js.map → LineSeries-797d8d16.js.map} +1 -1
  97. package/amd/Link-c4a57187.js +1 -1
  98. package/amd/List-0b764e84.js +2 -0
  99. package/amd/{List-04c4fed0.js.map → List-0b764e84.js.map} +1 -1
  100. package/amd/{ListItemLayout-4208363c.js → ListItemLayout-e0b2c71e.js} +2 -2
  101. package/amd/{ListItemLayout-4208363c.js.map → ListItemLayout-e0b2c71e.js.map} +1 -1
  102. package/amd/{ListView-bf740071.js → ListView-5bb45f81.js} +2 -2
  103. package/amd/{ListView-bf740071.js.map → ListView-5bb45f81.js.map} +1 -1
  104. package/amd/LiveRegion-9a362373.js +2 -0
  105. package/amd/{LiveRegion-8142ed0d.js.map → LiveRegion-9a362373.js.map} +1 -1
  106. package/amd/LoadMoreCollection-83413a59.js +2 -0
  107. package/amd/{LoadMoreCollection-a6adbc3f.js.map → LoadMoreCollection-83413a59.js.map} +1 -1
  108. package/amd/MaxLengthLiveRegion-bb956138.js +2 -0
  109. package/amd/{MaxLengthLiveRegion-8954fc30.js.map → MaxLengthLiveRegion-bb956138.js.map} +1 -1
  110. package/amd/Menu-5d447084.js +1 -1
  111. package/amd/MenuButton-410aa4e1.js +1 -1
  112. package/amd/MenuItem-87cd59b8.js +1 -1
  113. package/amd/Message-621fb578.js +1 -1
  114. package/amd/{MessageLayer-ba56f7e2.js → MessageLayer-8bac8c50.js} +2 -2
  115. package/amd/{MessageLayer-ba56f7e2.js.map → MessageLayer-8bac8c50.js.map} +1 -1
  116. package/amd/MessageToast-06773c79.js +1 -1
  117. package/amd/MessagesManager-d5686336.js +1 -1
  118. package/amd/MeterBar-e1b4a93b.js +1 -1
  119. package/amd/MeterCircle-9887cf28.js +1 -1
  120. package/amd/{Modal-d6b2e905.js → Modal-7bece8d5.js} +2 -2
  121. package/amd/{Modal-d6b2e905.js.map → Modal-7bece8d5.js.map} +1 -1
  122. package/amd/{MonthView-4a0401cd.js → MonthView-3d0968a1.js} +2 -2
  123. package/amd/{MonthView-4a0401cd.js.map → MonthView-3d0968a1.js.map} +1 -1
  124. package/amd/NavigationListItem-044a79fd.js +1 -1
  125. package/amd/NumberInputText-cac12eb3.js +1 -1
  126. package/amd/OverflowTabBarItem-c59db4a2.js +1 -1
  127. package/amd/PRIVATE_BaseCardView.js +1 -1
  128. package/amd/PRIVATE_Chart.js +1 -1
  129. package/amd/PRIVATE_CheckboxControl.js +1 -1
  130. package/amd/PRIVATE_CheckboxRadioField.js +1 -1
  131. package/amd/PRIVATE_ClearIcon.js +1 -1
  132. package/amd/PRIVATE_DatePickerHeader.js +1 -1
  133. package/amd/PRIVATE_DatePickerLayout.js +1 -1
  134. package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
  135. package/amd/PRIVATE_FormControls.js +1 -1
  136. package/amd/PRIVATE_IconSwitchButton.js +1 -1
  137. package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
  138. package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
  139. package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
  140. package/amd/PRIVATE_Icons/DragV.js +1 -1
  141. package/amd/PRIVATE_Icons/WarningS.js +1 -1
  142. package/amd/PRIVATE_List.js +1 -1
  143. package/amd/PRIVATE_LoadMoreCollection.js +1 -1
  144. package/amd/PRIVATE_Message.js +1 -1
  145. package/amd/PRIVATE_MessageLayer.js +1 -1
  146. package/amd/PRIVATE_MonthView.js +1 -1
  147. package/amd/PRIVATE_MonthYearGridView.js +1 -1
  148. package/amd/PRIVATE_PlotArea.js +1 -1
  149. package/amd/PRIVATE_RevealToggleIcon.js +1 -1
  150. package/amd/PRIVATE_RichSelectionCommon.js +1 -1
  151. package/amd/PRIVATE_SelectCommon.js +1 -1
  152. package/amd/PRIVATE_StyledCard.js +1 -1
  153. package/amd/PRIVATE_StyledCheckbox.js +1 -1
  154. package/amd/PRIVATE_Table.js +1 -1
  155. package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
  156. package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
  157. package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
  158. package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
  159. package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
  160. package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
  161. package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
  162. package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
  163. package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
  164. package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
  165. package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
  166. package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
  167. package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
  168. package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
  169. package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
  170. package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
  171. package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
  172. package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
  173. package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
  174. package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
  175. package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
  176. package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
  177. package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
  178. package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
  179. package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
  180. package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
  181. package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
  182. package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
  183. package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
  184. package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
  185. package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
  186. package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
  187. package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
  188. package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
  189. package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
  190. package/amd/PRIVATE_TimeComponent.js +1 -1
  191. package/amd/PRIVATE_VirtualizedCollection.js +1 -1
  192. package/amd/PRIVATE_VisOverview.js +1 -1
  193. package/amd/PRIVATE_VisTabularDatatip.js +1 -1
  194. package/amd/PictoChart-48a25c75.js +1 -1
  195. package/amd/PieChart-2197746d.js +1 -1
  196. package/amd/{Popup-d51bf3f4.js → Popup-66e79afa.js} +2 -2
  197. package/amd/{Popup-d51bf3f4.js.map → Popup-66e79afa.js.map} +1 -1
  198. package/amd/{ProgressBar-3f4cd8d6.js → ProgressBar-e72c5a67.js} +2 -2
  199. package/amd/{ProgressBar-3f4cd8d6.js.map → ProgressBar-e72c5a67.js.map} +1 -1
  200. package/amd/ProgressButton-f1d27773.js +1 -1
  201. package/amd/ProgressButtonLabelLayout-6df4290e.js +1 -1
  202. package/amd/{ProgressCircle-74b6fc89.js → ProgressCircle-2b4ba9cd.js} +2 -2
  203. package/amd/{ProgressCircle-74b6fc89.js.map → ProgressCircle-2b4ba9cd.js.map} +1 -1
  204. package/amd/RadioItem-b17c346c.js +1 -1
  205. package/amd/RatingGauge-539ede8e.js +1 -1
  206. package/amd/ReadonlyTextFieldInput-608bddc1.js +1 -1
  207. package/amd/RemovableNavigationListItem-e01b6693.js +1 -1
  208. package/amd/RemovableTabBarItem-29b54206.js +1 -1
  209. package/amd/ReorderableTabBar-462d357c.js +1 -1
  210. package/amd/RevealToggleIcon-f975229d.js +1 -1
  211. package/amd/{ScatterChart-88304601.js → ScatterChart-7f0b817b.js} +2 -2
  212. package/amd/{ScatterChart-88304601.js.map → ScatterChart-7f0b817b.js.map} +1 -1
  213. package/amd/SectionalLegend-8f203cac.js +1 -1
  214. package/amd/SectionedContent-19bef3cc.js +2 -0
  215. package/amd/{SectionedContent-2a261004.js.map → SectionedContent-19bef3cc.js.map} +1 -1
  216. package/amd/{SelectMultiple-e3a6732b.js → SelectMultiple-7e9bd455.js} +2 -2
  217. package/amd/{SelectMultiple-e3a6732b.js.map → SelectMultiple-7e9bd455.js.map} +1 -1
  218. package/amd/{SelectSingle-9d0dca8f.js → SelectSingle-466bcd67.js} +2 -2
  219. package/amd/{SelectSingle-9d0dca8f.js.map → SelectSingle-466bcd67.js.map} +1 -1
  220. package/amd/SelectionCard-13aac54a.js +2 -0
  221. package/amd/{SelectionCard-895b014d.js.map → SelectionCard-13aac54a.js.map} +1 -1
  222. package/amd/Selector-2b0c34a7.js +1 -1
  223. package/amd/{SelectorAll-e884a225.js → SelectorAll-1c889a9c.js} +2 -2
  224. package/amd/{SelectorAll-e884a225.js.map → SelectorAll-1c889a9c.js.map} +1 -1
  225. package/amd/{Sheet-46782f99.js → Sheet-0b58b0a5.js} +2 -2
  226. package/amd/{Sheet-46782f99.js.map → Sheet-0b58b0a5.js.map} +1 -1
  227. package/amd/SplitMenuButton-031ae5e3.js +1 -1
  228. package/amd/{StyledCard-c4d0324d.js → StyledCard-0da6f6b5.js} +2 -2
  229. package/amd/{StyledCard-c4d0324d.js.map → StyledCard-0da6f6b5.js.map} +1 -1
  230. package/amd/StyledTextField-b4278437.js +1 -1
  231. package/amd/TabBar-d8890a47.js +1 -1
  232. package/amd/TabBarItem-547825e2.js +1 -1
  233. package/amd/TabBarLayout-685ac295.js +1 -1
  234. package/amd/TabBarMixed-a75796a6.js +1 -1
  235. package/amd/TabBarMixedSeparator-ed764207.js +2 -0
  236. package/amd/{TabBarMixedSeparator-8c278254.js.map → TabBarMixedSeparator-ed764207.js.map} +1 -1
  237. package/amd/{Table-31cc83c6.js → Table-87f7e3c4.js} +2 -2
  238. package/amd/{Table-31cc83c6.js.map → Table-87f7e3c4.js.map} +1 -1
  239. package/amd/{TableView-ab5d0c12.js → TableView-2b884e2c.js} +2 -2
  240. package/amd/{TableView-ab5d0c12.js.map → TableView-2b884e2c.js.map} +1 -1
  241. package/amd/TagCloud-5dc4b5ff.js +1 -1
  242. package/amd/TextArea-a7a3d82f.js +2 -0
  243. package/amd/TextArea-a7a3d82f.js.map +1 -0
  244. package/amd/TextAreaAutosize-9cd2c1e8.js +2 -0
  245. package/amd/{TextAreaAutosize-81449e46.js.map → TextAreaAutosize-9cd2c1e8.js.map} +1 -1
  246. package/amd/TextField-1021f00b.js +1 -1
  247. package/amd/TextFieldInput-ba4e508c.js +1 -1
  248. package/amd/Theme-redwood/theme.css +230 -230
  249. package/amd/Theme-stable/theme.css +342 -342
  250. package/amd/TimeComponentCanvas2D-6b4e6ead.js +1 -1
  251. package/amd/Toolbar-05d42276.js +1 -1
  252. package/amd/TruncatingBadge-7f66faaf.js +2 -0
  253. package/amd/{TruncatingBadge-04f9ef4c.js.map → TruncatingBadge-7f66faaf.js.map} +1 -1
  254. package/amd/{TruncatingText-d18d41c5.js → TruncatingText-69770aa9.js} +2 -2
  255. package/amd/{TruncatingText-d18d41c5.js.map → TruncatingText-69770aa9.js.map} +1 -1
  256. package/amd/UNSAFE_ActionCard.js +1 -1
  257. package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
  258. package/amd/UNSAFE_BarChart.js +1 -1
  259. package/amd/UNSAFE_BaseButton.js +1 -1
  260. package/amd/UNSAFE_Button.js +1 -1
  261. package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  262. package/amd/UNSAFE_ButtonSet.js +1 -1
  263. package/amd/UNSAFE_ButtonSetButton.js +1 -1
  264. package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
  265. package/amd/UNSAFE_ButtonSetItem.js +1 -1
  266. package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
  267. package/amd/UNSAFE_ButtonSetSingle.js +1 -1
  268. package/amd/UNSAFE_Card.js +1 -1
  269. package/amd/UNSAFE_CardFlexView.js +1 -1
  270. package/amd/UNSAFE_CardGridView.js +1 -1
  271. package/amd/UNSAFE_Center.js +1 -1
  272. package/amd/UNSAFE_ChartWithLegend.js +1 -1
  273. package/amd/UNSAFE_Checkbox.js +1 -1
  274. package/amd/UNSAFE_CheckboxItem.js +1 -1
  275. package/amd/UNSAFE_CheckboxSet.js +1 -1
  276. package/amd/UNSAFE_Chip.js +1 -1
  277. package/amd/UNSAFE_Collapsible.js +1 -1
  278. package/amd/UNSAFE_ComboChart.js +1 -1
  279. package/amd/UNSAFE_ComponentMessage.js +1 -1
  280. package/amd/UNSAFE_ConveyorBelt.js +1 -1
  281. package/amd/UNSAFE_DatePicker.js +1 -1
  282. package/amd/UNSAFE_Diagram.js +1 -1
  283. package/amd/UNSAFE_Dialog.js +1 -1
  284. package/amd/UNSAFE_DragHandle.js +1 -1
  285. package/amd/UNSAFE_DrawerLayout.js +1 -1
  286. package/amd/UNSAFE_DrawerPopup.js +1 -1
  287. package/amd/UNSAFE_Dropdown.js +1 -1
  288. package/amd/UNSAFE_Environment.js +1 -1
  289. package/amd/UNSAFE_ExpandableList.js +1 -1
  290. package/amd/UNSAFE_FilePicker.js +1 -1
  291. package/amd/UNSAFE_Flex.js +1 -1
  292. package/amd/UNSAFE_Floating.js +1 -1
  293. package/amd/UNSAFE_FormLayout.js +1 -1
  294. package/amd/UNSAFE_Gantt.js +1 -1
  295. package/amd/UNSAFE_Grid.js +1 -1
  296. package/amd/UNSAFE_HighlightText.js +1 -1
  297. package/amd/UNSAFE_Icon.js +1 -1
  298. package/amd/UNSAFE_IconButton.js +1 -1
  299. package/amd/UNSAFE_IconMenuButton.js +1 -1
  300. package/amd/UNSAFE_IconProgressButton.js +1 -1
  301. package/amd/UNSAFE_IconToggleButton.js +1 -1
  302. package/amd/UNSAFE_Indexer.js +1 -1
  303. package/amd/UNSAFE_InputDateMask.js +1 -1
  304. package/amd/UNSAFE_InputDatePicker.js +1 -1
  305. package/amd/UNSAFE_InputPassword.js +1 -1
  306. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  307. package/amd/UNSAFE_InputText.js +1 -1
  308. package/amd/UNSAFE_InputTimeMask.js +1 -1
  309. package/amd/UNSAFE_Label.js +1 -1
  310. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  311. package/amd/UNSAFE_LabelledLink.js +1 -1
  312. package/amd/UNSAFE_Layer.js +1 -1
  313. package/amd/UNSAFE_Legend.js +1 -1
  314. package/amd/UNSAFE_LineAreaChart.js +1 -1
  315. package/amd/UNSAFE_Link.js +1 -1
  316. package/amd/UNSAFE_ListItemLayout.js +1 -1
  317. package/amd/UNSAFE_ListView.js +1 -1
  318. package/amd/UNSAFE_LiveRegion.js +1 -1
  319. package/amd/UNSAFE_Menu.js +1 -1
  320. package/amd/UNSAFE_MenuButton.js +1 -1
  321. package/amd/UNSAFE_MessageBanner.js +1 -1
  322. package/amd/UNSAFE_MessageToast.js +1 -1
  323. package/amd/UNSAFE_MeterBar.js +1 -1
  324. package/amd/UNSAFE_MeterCircle.js +1 -1
  325. package/amd/UNSAFE_Modal.js +1 -1
  326. package/amd/UNSAFE_NavigationList.js +1 -1
  327. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  328. package/amd/UNSAFE_NumberInputText.js +1 -1
  329. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  330. package/amd/UNSAFE_PictoChart.js +1 -1
  331. package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
  332. package/amd/UNSAFE_PieChart.js +1 -1
  333. package/amd/UNSAFE_Popup.js +1 -1
  334. package/amd/UNSAFE_ProgressBar.js +1 -1
  335. package/amd/UNSAFE_ProgressButton.js +1 -1
  336. package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
  337. package/amd/UNSAFE_ProgressCircle.js +1 -1
  338. package/amd/UNSAFE_RadioItem.js +1 -1
  339. package/amd/UNSAFE_RadioSet.js +1 -1
  340. package/amd/UNSAFE_RatingGauge.js +1 -1
  341. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  342. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  343. package/amd/UNSAFE_RichRadioSet.js +1 -1
  344. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  345. package/amd/UNSAFE_ScatterChart.js +1 -1
  346. package/amd/UNSAFE_SectionalLegend.js +1 -1
  347. package/amd/UNSAFE_SelectMultiple.js +1 -1
  348. package/amd/UNSAFE_SelectSingle.js +1 -1
  349. package/amd/UNSAFE_SelectionCard.js +1 -1
  350. package/amd/UNSAFE_Selector.js +1 -1
  351. package/amd/UNSAFE_SelectorAll.js +1 -1
  352. package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
  353. package/amd/UNSAFE_Sheet.js +1 -1
  354. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  355. package/amd/UNSAFE_TabBar.js +1 -1
  356. package/amd/UNSAFE_TabBarCommon.js +1 -1
  357. package/amd/UNSAFE_TabBarMixed.js +1 -1
  358. package/amd/UNSAFE_TableView.js +1 -1
  359. package/amd/UNSAFE_TagCloud.js +1 -1
  360. package/amd/UNSAFE_TextArea.js +1 -1
  361. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  362. package/amd/UNSAFE_TextField.js +1 -1
  363. package/amd/UNSAFE_ToggleButton.js +1 -1
  364. package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  365. package/amd/UNSAFE_Toolbar.js +1 -1
  366. package/amd/UNSAFE_Train.js +1 -1
  367. package/amd/UNSAFE_TruncatingBadge.js +1 -1
  368. package/amd/UNSAFE_TruncatingText.js +1 -1
  369. package/amd/UNSAFE_UserAssistance.js +1 -1
  370. package/amd/UNSAFE_View.js +1 -1
  371. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  372. package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
  373. package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
  374. package/amd/UNSAFE_VisStatusMessage.js +1 -1
  375. package/amd/UNSAFE_WindowOverlay.js +1 -1
  376. package/amd/{View-ce970ed7.js → View-bd5c7fa7.js} +2 -2
  377. package/amd/{View-ce970ed7.js.map → View-bd5c7fa7.js.map} +1 -1
  378. package/amd/{VirtualizedCollection-63223f5e.js → VirtualizedCollection-897516a5.js} +2 -2
  379. package/amd/{VirtualizedCollection-63223f5e.js.map → VirtualizedCollection-897516a5.js.map} +1 -1
  380. package/amd/{VirtualizedListView-554eaee6.js → VirtualizedListView-cbe87ec2.js} +2 -2
  381. package/amd/{VirtualizedListView-554eaee6.js.map → VirtualizedListView-cbe87ec2.js.map} +1 -1
  382. package/amd/VisNoData-10983ace.js +2 -0
  383. package/amd/{VisNoData-6fa39277.js.map → VisNoData-10983ace.js.map} +1 -1
  384. package/amd/{VisProgressiveLoader-68d8d8b3.js → VisProgressiveLoader-06a60c8f.js} +2 -2
  385. package/amd/{VisProgressiveLoader-68d8d8b3.js.map → VisProgressiveLoader-06a60c8f.js.map} +1 -1
  386. package/amd/{VisTabularDatatip-1051eaca.js → VisTabularDatatip-55bbd19f.js} +2 -2
  387. package/amd/{VisTabularDatatip-1051eaca.js.map → VisTabularDatatip-55bbd19f.js.map} +1 -1
  388. package/amd/{WindowOverlay-a2d80d55.js → WindowOverlay-43c10424.js} +2 -2
  389. package/amd/{WindowOverlay-a2d80d55.js.map → WindowOverlay-43c10424.js.map} +1 -1
  390. package/amd/{YearsGridView-d799dc5c.js → YearsGridView-d7b2184e.js} +2 -2
  391. package/amd/{YearsGridView-d799dc5c.js.map → YearsGridView-d7b2184e.js.map} +1 -1
  392. package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
  393. package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
  394. package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
  395. package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
  396. package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
  397. package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
  398. package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
  399. package/amd/hooks/PRIVATE_useCssVars.js +1 -1
  400. package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
  401. package/amd/hooks/PRIVATE_useDatatip.js +1 -1
  402. package/amd/hooks/PRIVATE_useFloating.js +1 -1
  403. package/amd/hooks/PRIVATE_useReorderable.js +1 -1
  404. package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
  405. package/amd/hooks/PRIVATE_useSelection.js +1 -1
  406. package/amd/hooks/PRIVATE_useTabBar.js +1 -1
  407. package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
  408. package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
  409. package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
  410. package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
  411. package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
  412. package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
  413. package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
  414. package/amd/hooks/UNSAFE_useDensity.js +1 -1
  415. package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
  416. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  417. package/amd/hooks/UNSAFE_useScale.js +1 -1
  418. package/amd/hooks/UNSAFE_useTestId.js +1 -1
  419. package/amd/hooks/UNSAFE_useTheme.js +1 -1
  420. package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
  421. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  422. package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
  423. package/amd/hooks/UNSAFE_useUser.js +1 -1
  424. package/amd/{index-b7b9300d.js → index-95227deb.js} +2 -2
  425. package/amd/index-95227deb.js.map +1 -0
  426. package/amd/listViewSelectionTests-c9777ea8.js +1 -1
  427. package/amd/render-85c034d7.js +2 -0
  428. package/amd/{render-366c27ff.js.map → render-85c034d7.js.map} +1 -1
  429. package/amd/{tabbableUtils-88d4fa35.js → tabbableUtils-591fdc8d.js} +2 -2
  430. package/amd/{tabbableUtils-88d4fa35.js.map → tabbableUtils-591fdc8d.js.map} +1 -1
  431. package/amd/{testData-783b8823.js → testData-02652eda.js} +2 -2
  432. package/amd/{testData-783b8823.js.map → testData-02652eda.js.map} +1 -1
  433. package/amd/{tooltipUtils-69ce0a2d.js → tooltipUtils-e5bdb734.js} +2 -2
  434. package/amd/{tooltipUtils-69ce0a2d.js.map → tooltipUtils-e5bdb734.js.map} +1 -1
  435. package/amd/useCellNavigation-1feec094.js +1 -1
  436. package/amd/useChartContextMenu-8606bfa2.js +1 -1
  437. package/amd/useChartDatatip-947eeffe.js +2 -0
  438. package/amd/{useChartDatatip-ee3783af.js.map → useChartDatatip-947eeffe.js.map} +1 -1
  439. package/amd/{useColorScheme-10dc88de.js → useColorScheme-443e7cc7.js} +2 -2
  440. package/amd/{useColorScheme-10dc88de.js.map → useColorScheme-443e7cc7.js.map} +1 -1
  441. package/amd/useContextMenu-e08aad46.js +1 -1
  442. package/amd/{useCssVars-c043f8da.js → useCssVars-dc52806c.js} +2 -2
  443. package/amd/{useCssVars-c043f8da.js.map → useCssVars-dc52806c.js.map} +1 -1
  444. package/amd/{useCurrentBgColor-2426ee24.js → useCurrentBgColor-50142bd8.js} +2 -2
  445. package/amd/{useCurrentBgColor-2426ee24.js.map → useCurrentBgColor-50142bd8.js.map} +1 -1
  446. package/amd/useCurrentKey-a993db56.js +2 -0
  447. package/amd/{useCurrentKey-31c18053.js.map → useCurrentKey-a993db56.js.map} +1 -1
  448. package/amd/{useDatatip-ac26447a.js → useDatatip-9942601b.js} +2 -2
  449. package/amd/{useDatatip-ac26447a.js.map → useDatatip-9942601b.js.map} +1 -1
  450. package/amd/{useDensity-c83df7b4.js → useDensity-f0f7ae9a.js} +2 -2
  451. package/amd/{useDensity-c83df7b4.js.map → useDensity-f0f7ae9a.js.map} +1 -1
  452. package/amd/{useFloating-acd30a55.js → useFloating-bf8ed6cb.js} +2 -2
  453. package/amd/{useFloating-acd30a55.js.map → useFloating-bf8ed6cb.js.map} +1 -1
  454. package/amd/useKeyboardEvents-8ada7a1f.js +2 -0
  455. package/amd/{useKeyboardEvents-d87e3587.js.map → useKeyboardEvents-8ada7a1f.js.map} +1 -1
  456. package/amd/useLegendContextMenu-e629139a.js +1 -1
  457. package/amd/useMeterDatatip-173593b4.js +2 -0
  458. package/amd/{useMeterDatatip-fff3c329.js.map → useMeterDatatip-173593b4.js.map} +1 -1
  459. package/amd/{useOutsideClick-f99b7a84.js → useOutsideClick-76c1ff6e.js} +2 -2
  460. package/amd/{useOutsideClick-f99b7a84.js.map → useOutsideClick-76c1ff6e.js.map} +1 -1
  461. package/amd/{usePopupAnimation-f679a4b0.js → usePopupAnimation-6e53a0fe.js} +2 -2
  462. package/amd/{usePopupAnimation-f679a4b0.js.map → usePopupAnimation-6e53a0fe.js.map} +1 -1
  463. package/amd/usePrefixSuffix-f7544e05.js +2 -0
  464. package/amd/{usePrefixSuffix-09bd5925.js.map → usePrefixSuffix-f7544e05.js.map} +1 -1
  465. package/amd/{useReorderableItem-4c4779f7.js → useReorderableItem-726c3c03.js} +2 -2
  466. package/amd/{useReorderableItem-4c4779f7.js.map → useReorderableItem-726c3c03.js.map} +1 -1
  467. package/amd/{useRovingTabIndexContainer-955e23a8.js → useRovingTabIndexContainer-473f7e43.js} +2 -2
  468. package/amd/{useRovingTabIndexContainer-955e23a8.js.map → useRovingTabIndexContainer-473f7e43.js.map} +1 -1
  469. package/amd/useScale-e311d35f.js +2 -0
  470. package/amd/{useScale-37d42c9d.js.map → useScale-e311d35f.js.map} +1 -1
  471. package/amd/{useSelectCommon-e7f123ce.js → useSelectCommon-d9c4a7bd.js} +2 -2
  472. package/amd/{useSelectCommon-e7f123ce.js.map → useSelectCommon-d9c4a7bd.js.map} +1 -1
  473. package/amd/{useSelectDrill-6361116b.js → useSelectDrill-216c007c.js} +2 -2
  474. package/amd/{useSelectDrill-6361116b.js.map → useSelectDrill-216c007c.js.map} +1 -1
  475. package/amd/useSelection-01203394.js +2 -0
  476. package/amd/{useSelection-af7b4b52.js.map → useSelection-01203394.js.map} +1 -1
  477. package/amd/{useSelection-f0c7d74d.js → useSelection-4249360e.js} +2 -2
  478. package/amd/{useSelection-f0c7d74d.js.map → useSelection-4249360e.js.map} +1 -1
  479. package/amd/useTabBar-2c4573fe.js +1 -1
  480. package/amd/{useTestId-3a316499.js → useTestId-b5cd4766.js} +2 -2
  481. package/amd/{useTestId-3a316499.js.map → useTestId-b5cd4766.js.map} +1 -1
  482. package/amd/{useTheme-ac980f9a.js → useTheme-a8334e06.js} +2 -2
  483. package/amd/{useTheme-ac980f9a.js.map → useTheme-a8334e06.js.map} +1 -1
  484. package/amd/useThemeInterpolations-ab618dee.js +2 -0
  485. package/amd/{useThemeInterpolations-6b2de213.js.map → useThemeInterpolations-ab618dee.js.map} +1 -1
  486. package/amd/useTooltip-b43ad881.js +2 -0
  487. package/amd/{useTooltip-7b11fd35.js.map → useTooltip-b43ad881.js.map} +1 -1
  488. package/amd/{useTooltipControlled-52183a08.js → useTooltipControlled-ee3276de.js} +2 -2
  489. package/amd/{useTooltipControlled-52183a08.js.map → useTooltipControlled-ee3276de.js.map} +1 -1
  490. package/amd/{useTranslationBundle-516b1b83.js → useTranslationBundle-d07d4b20.js} +2 -2
  491. package/amd/{useTranslationBundle-516b1b83.js.map → useTranslationBundle-d07d4b20.js.map} +1 -1
  492. package/amd/{useUser-85c781ea.js → useUser-3ef25571.js} +2 -2
  493. package/amd/{useUser-85c781ea.js.map → useUser-3ef25571.js.map} +1 -1
  494. package/amd/useVisDragModeControls-a5685835.js +1 -1
  495. package/amd/{useVisEvents-0166e4cc.js → useVisEvents-dc86164f.js} +2 -2
  496. package/amd/{useVisEvents-0166e4cc.js.map → useVisEvents-dc86164f.js.map} +1 -1
  497. package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
  498. package/amd/utils/PRIVATE_visTestUtils.js +1 -1
  499. package/amd/{withDirectionIcon-ce0c7432.js → withDirectionIcon-74c39ee3.js} +2 -2
  500. package/amd/{withDirectionIcon-ce0c7432.js.map → withDirectionIcon-74c39ee3.js.map} +1 -1
  501. package/amd/withThemeProps-4c23997e.js +1 -1
  502. package/cjs/{BarChart-ca7f8ed5.js → BarChart-93a3813c.js} +2 -2
  503. package/cjs/{BarChart-ca7f8ed5.js.map → BarChart-93a3813c.js.map} +1 -1
  504. package/cjs/{Chart-fbbd3329.js → Chart-40d95d14.js} +2 -2
  505. package/cjs/{Chart-fbbd3329.js.map → Chart-40d95d14.js.map} +1 -1
  506. package/cjs/{ComboChart-95863e7a.js → ComboChart-cffd0759.js} +2 -2
  507. package/cjs/{ComboChart-95863e7a.js.map → ComboChart-cffd0759.js.map} +1 -1
  508. package/cjs/{InputDatePicker-4d36637f.js → InputDatePicker-bc2c534a.js} +2 -2
  509. package/cjs/{InputDatePicker-4d36637f.js.map → InputDatePicker-bc2c534a.js.map} +1 -1
  510. package/cjs/{LineAreaChart-46dde5d3.js → LineAreaChart-bb1350fa.js} +2 -2
  511. package/cjs/{LineAreaChart-46dde5d3.js.map → LineAreaChart-bb1350fa.js.map} +1 -1
  512. package/cjs/PRIVATE_Chart.js +4 -4
  513. package/cjs/{ScatterChart-0497f41a.js → ScatterChart-763e1f3e.js} +2 -2
  514. package/cjs/{ScatterChart-0497f41a.js.map → ScatterChart-763e1f3e.js.map} +1 -1
  515. package/cjs/Theme-redwood/theme.css +305 -305
  516. package/cjs/Theme-stable/theme.css +401 -401
  517. package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +5 -5
  518. package/cjs/UNSAFE_BarChart.js +5 -5
  519. package/cjs/UNSAFE_ComboChart.js +5 -5
  520. package/cjs/UNSAFE_InputDatePicker.js +90 -90
  521. package/cjs/UNSAFE_LineAreaChart.js +5 -5
  522. package/cjs/UNSAFE_ScatterChart.js +5 -5
  523. package/es/{BaseCardView-c5a8ee6a.js → BaseCardView-229fa119.js} +2 -2
  524. package/es/{BaseCardView-c5a8ee6a.js.map → BaseCardView-229fa119.js.map} +1 -1
  525. package/es/{CardFlexView-529906e0.js → CardFlexView-3ef6bf4d.js} +2 -2
  526. package/es/{CardFlexView-529906e0.js.map → CardFlexView-3ef6bf4d.js.map} +1 -1
  527. package/es/{CardGridView-ec18c929.js → CardGridView-e15226c9.js} +2 -2
  528. package/es/{CardGridView-ec18c929.js.map → CardGridView-e15226c9.js.map} +1 -1
  529. package/es/ExpandableList-478db30a.js +1 -1
  530. package/es/GroupLoadingIndicator-63035d08.js +1 -1
  531. package/es/{Indexer-ba2c7593.js → Indexer-eb00ba0b.js} +2 -2
  532. package/es/{Indexer-ba2c7593.js.map → Indexer-eb00ba0b.js.map} +1 -1
  533. package/es/{List-97b7be70.js → List-e6886091.js} +3 -4
  534. package/es/{List-97b7be70.js.map → List-e6886091.js.map} +1 -1
  535. package/es/{ListView-936d8a4f.js → ListView-137e31fd.js} +2 -2
  536. package/es/{ListView-936d8a4f.js.map → ListView-137e31fd.js.map} +1 -1
  537. package/es/{LoadMoreCollection-95a49d2a.js → LoadMoreCollection-7df1be36.js} +2 -2
  538. package/es/{LoadMoreCollection-95a49d2a.js.map → LoadMoreCollection-7df1be36.js.map} +1 -1
  539. package/es/PRIVATE_BaseCardView.js +3 -3
  540. package/es/PRIVATE_List.js +4 -4
  541. package/es/PRIVATE_LoadMoreCollection.js +2 -2
  542. package/es/PRIVATE_SelectCommon.js +5 -5
  543. package/es/PRIVATE_Table.js +3 -3
  544. package/es/PRIVATE_VirtualizedCollection.js +2 -2
  545. package/es/SegmentStyles.styles.css +8 -8
  546. package/es/SegmentStyles.styles2.css +8 -8
  547. package/es/{SelectMultiple-ad8fc99a.js → SelectMultiple-488a49d1.js} +2 -2
  548. package/es/{SelectMultiple-ad8fc99a.js.map → SelectMultiple-488a49d1.js.map} +1 -1
  549. package/es/{SelectSingle-abaf271c.js → SelectSingle-e8b9a33a.js} +2 -2
  550. package/es/{SelectSingle-abaf271c.js.map → SelectSingle-e8b9a33a.js.map} +1 -1
  551. package/es/SplitMenuButtonTheme.styles.css +4 -4
  552. package/es/SplitMenuButtonTheme.styles2.css +4 -4
  553. package/es/{Table-1ba124ec.js → Table-3cfb9443.js} +2 -2
  554. package/es/{Table-1ba124ec.js.map → Table-3cfb9443.js.map} +1 -1
  555. package/es/{TableView-20223ba6.js → TableView-fd5104cd.js} +2 -2
  556. package/es/{TableView-20223ba6.js.map → TableView-fd5104cd.js.map} +1 -1
  557. package/es/Theme-redwood/theme.css +326 -326
  558. package/es/Theme-stable/theme.css +540 -540
  559. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  560. package/es/UNSAFE_CardFlexView.js +4 -4
  561. package/es/UNSAFE_CardGridView.js +4 -4
  562. package/es/UNSAFE_ExpandableList.js +3 -3
  563. package/es/UNSAFE_Indexer.js +2 -2
  564. package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
  565. package/es/UNSAFE_InputDateMask.js +1 -1
  566. package/es/UNSAFE_InputDatePicker.js +1 -1
  567. package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
  568. package/es/UNSAFE_InputTimeMask.js +1 -1
  569. package/es/UNSAFE_ListView.js +5 -5
  570. package/es/UNSAFE_SelectMultiple.js +6 -6
  571. package/es/UNSAFE_SelectSingle.js +6 -6
  572. package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
  573. package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
  574. package/es/UNSAFE_SplitMenuButton.js +1 -1
  575. package/es/UNSAFE_TableView.js +4 -4
  576. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  577. package/es/UNSAFE_VirtualizedListView.js +5 -5
  578. package/es/{VirtualizedCollection-e73890a1.js → VirtualizedCollection-f048fbb8.js} +2 -2
  579. package/es/{VirtualizedCollection-e73890a1.js.map → VirtualizedCollection-f048fbb8.js.map} +1 -1
  580. package/es/{VirtualizedListView-3ef40bde.js → VirtualizedListView-0532e46c.js} +2 -2
  581. package/es/{VirtualizedListView-3ef40bde.js.map → VirtualizedListView-0532e46c.js.map} +1 -1
  582. package/es/{useSelectCommon-1dafa6f9.js → useSelectCommon-af8e715e.js} +2 -2
  583. package/es/{useSelectCommon-1dafa6f9.js.map → useSelectCommon-af8e715e.js.map} +1 -1
  584. package/package.json +2 -2
  585. package/amd/CardFlexView-bb5c4369.js +0 -2
  586. package/amd/CompactLabelAssistance-44ba87b0.js +0 -2
  587. package/amd/Flex-56ecdf4c.js +0 -2
  588. package/amd/HighlightText-bd4c0101.js +0 -2
  589. package/amd/List-04c4fed0.js +0 -2
  590. package/amd/LiveRegion-8142ed0d.js +0 -2
  591. package/amd/LoadMoreCollection-a6adbc3f.js +0 -2
  592. package/amd/MaxLengthCounter-9a95922c.js +0 -2
  593. package/amd/MaxLengthCounter-9a95922c.js.map +0 -1
  594. package/amd/MaxLengthLiveRegion-8954fc30.js +0 -2
  595. package/amd/SectionedContent-2a261004.js +0 -2
  596. package/amd/SelectionCard-895b014d.js +0 -2
  597. package/amd/TabBarMixedSeparator-8c278254.js +0 -2
  598. package/amd/TextArea-89b9ed65.js +0 -2
  599. package/amd/TextArea-89b9ed65.js.map +0 -1
  600. package/amd/TextAreaAutosize-81449e46.js +0 -2
  601. package/amd/TruncatingBadge-04f9ef4c.js +0 -2
  602. package/amd/VisNoData-6fa39277.js +0 -2
  603. package/amd/index-b7b9300d.js.map +0 -1
  604. package/amd/render-366c27ff.js +0 -2
  605. package/amd/useChartDatatip-ee3783af.js +0 -2
  606. package/amd/useCurrentKey-31c18053.js +0 -2
  607. package/amd/useKeyboardEvents-d87e3587.js +0 -2
  608. package/amd/useMeterDatatip-fff3c329.js +0 -2
  609. package/amd/usePrefixSuffix-09bd5925.js +0 -2
  610. package/amd/useScale-37d42c9d.js +0 -2
  611. package/amd/useSelection-af7b4b52.js +0 -2
  612. package/amd/useThemeInterpolations-6b2de213.js +0 -2
  613. package/amd/useTooltip-7b11fd35.js +0 -2
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './TrackResizeContainer-2b033ae7', './classNames-08d99695', './mergeProps-bcfa6a92', 'preact/hooks', './useUser-85c781ea', './useMeterDatatip-fff3c329', './useKeyboardEvents-d87e3587', './meterUtils-9d026b15', './utils-5077c092', './UNSAFE_MeterBar/themes/MeterBarContract.css', './size-a75b3f13', './UNSAFE_MeterBar/themes/MeterBarStyles.css', './utils-a4c75cb2', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useComponentTheme-5aa41a8f', './UNSAFE_MeterBar/themes/redwood/MeterBarTheme', './useTestId-3a316499', './useTextDimensions-83dd9415', './useCssVars-c043f8da', './Common/themes/themeContract.css', './LinearMeter-d1e744c1'], (function(e,t,r,a,i,n,s,o,l,c,h,d,u,m,x,f,p,g,$,b,S,y,z,v){"use strict";const T=15,C=5,k=4;function M(e){if(!e)return{width:0,height:0};const t=e.getBoundingClientRect();return{width:t.width,height:t.height}}const B=function(e,t,r,a,i,n){const s=[];return e.start&&s.push(t?r:a),e.end&&s.push(t?i:n),s},L=function(e,t,r,a){return r&&(e.start&&!a&&(r-=16),e.end&&!a&&(r-=16)),t&&r&&(r-=2*t+2*k),r},V=function(e,t,r,a){return r&&(e.start&&a&&(r-=16),e.end&&a&&(r-=16)),t&&r&&(r-=2*t+2*k),r},w=function(e,t,r){const a=`${h.xUnits(4)} + ${k}px`;return r?`calc(${a} + ${t}px) 0 calc(${a} + ${t}px) 0`:`0 calc(${a} + ${e}px) 0 calc(${a} + ${e}px)`};function j(e,t,r,a,i,n,s){const o=n||h.xUnits(C),l=`calc(${o} - ${s||d.meterBarVars.size})`;return r?i?`${e?"-50%":"50%"} calc(-100% - ${l} - ${k}px)`:`${e?"-50%":"50%"} calc(${o} + ${k}px)`:a?i?`calc(100% + ${l} + ${k}px) ${t?"50%":"-50%"}`:`calc(0px - ${o} - ${k}px) ${t?"50%":"-50%"}`:i?`calc(-100% - ${l} - ${k}px) ${t?"50%":"-50%"}`:`calc(${o} + ${k}px) ${t?"50%":"-50%"}`}function R(e,t,r,a,i){const n=`calc(${h.xUnits(C)} - ${d.meterBarVars.size})`,s=k,o=e.start&&e.end;if(a)return t?`calc(${i.height+s}px + ${n}) 0 calc(${i.height+s}px + ${n}) 0`:`0 calc(${i.width+s}px + ${n}) 0 calc(${i.width+s}px + ${n})`;if(r){if(o)return t?`${n} 0 ${n}`:`0 ${n} 0 ${n}`;if(e.start&&!e.end)return t?`${n} 0 0 0`:`0 ${n} 0 0`;if(!e.start&&e.end)return t?`0 0 ${n} 0`:`0 0 0 ${n}`}}function F(e,t,r,a,i,n){return{width:e?n:t?u.sizeToCSS(r):void 0,height:e?i:t?void 0:u.sizeToCSS(r),margin:e?w(a.width,a.height,t):void 0}}function H(e,t,r,a){return{left:e?`max(${r}px, ${t?100-a:a}%)`:void 0,right:e?void 0:`max(${r}px, ${t?a:100-a}%)`}}function U(e,t,r){if(0!==r||t)return 100===r?t?e?"3px":"0 3px":e?"-2px":"0 2px":e?t?"1px 0":"-1px 0":t?"0 -1px":"0 1px"}function D(e,t,r,a,i,n,s){return{...e?H(t,a,n/2,i):{},bottom:e?void 0:r?`max(${s/2-k}px, ${i}%)`:void 0,top:e||r?void 0:`max(${s/2-k}px, ${100-i}%)`,maxWidth:e?void 0:h.xUnits(T)}}function I({orientation:e,percent:r,color:i,position:n,length:o,label:l,maxLabelWidth:c,maxLabelHeight:h,trackSize:d,labelStyle:u}){const f="horizontal"===e,{direction:p}=s.useUser(),g="rtl"===p,$="start"===n,b=`${r}%`,S=f?void 0:o,y=f?o:void 0,z=r<50&&!g||r>50&&g,v=r<50;return t.jsxs(t.Fragment,{children:[t.jsx("div",{class:a.classNames([m.styles.referenceLinesBaseStyle,f?m.styles.referenceLinesHorizontalStyle:m.styles.referenceLinesVerticalStyle,$?f?m.styles.referenceLinesHoriontalStartStyle:g?m.styles.referenceLinesVerticalStartRtlStyle:m.styles.referenceLinesVerticalStartLtrStyle:""]),style:{left:f&&!g?b:void 0,right:f&&g?b:void 0,bottom:f?void 0:b,backgroundColor:x.getVisThresholdColor(i),width:S,height:y,translate:U(f,g,r)}}),l&&t.jsx("div",{className:m.styles.labelDivStyle,style:{...D(f,z,v,g,r,c,h),translate:j(z,v,f,g,$,o,d),...u},children:l})]})}function N({color:e,length:r,orientation:i,...n}){const{direction:o}=s.useUser(),l="horizontal"===i,c="rtl"===o;return t.jsx("div",{class:a.classNames([m.styles.thresholdBarBaseStyle,l?c?m.styles.thresholdBarHorizontalBarTrackSectionRtlStyle:m.styles.thresholdBarHorizontalBarTrackSectionLtrStyle:m.styles.thresholdBarVerticalBarTrackSectionStyle,n.class]),style:{width:l?r:"100%",height:l?"100%":r,backgroundColor:x.getVisThresholdColor(e)}})}function E({max:e=100,min:r=0,value:u=0,step:m=1,length:x="100%",width:f,height:T,size:C,orientation:k="horizontal",isTrackRendered:w=!0,thresholdDisplay:j="all",indicatorSize:H=1,testId:U,baseline:D,...E}){const P=b.useTestId(U);c.validateRange(r,e,u,m,D);const A=n.useRef(),W="horizontal"===k,_=n.useRef(null),K=n.useRef(M(null)),{direction:X,forcedColors:Y}=s.useUser(),q="rtl"===X;n.useEffect((()=>{(E.onCommit||E.onInput)&&(K.current=M(_.current))}),[C,x,k,E.onCommit,E.onInput]);const{textMeasureContent:G,getTextDimensions:J}=S.useTextDimensions(),O=n.useRef(!1),Q=o.usePointerEvents(u,(t=>{if(t.target==_.current)return function(e,t,r,a,i,n,s){const o=t.current;if(!o||0===o.width)return;let l;if("horizontal"===n){const t=e.offsetX;l=r+(a-r)*(s?o.width-t:t)/o.width}else l=r+(a-r)*(o.height-e.offsetY)/o.height;return l=Math.round(l/i)*i,Math.max(r,Math.min(a,l))}(t,K,r,e,m,k,q)}),_,A,O,E.onCommit,E.onInput),Z=l.useKeyboardEvents(u,r,e,m,A,E.onCommit,E.onInput),{datatipContent:ee,datatipProps:te}=o.useMeterDatatip(u,O,E.datatip,E["aria-describedby"]),re=c.getMeterAriaProps(u,r,e,E["aria-label"],E["aria-labelledby"],E.thresholds),ae=i.mergeProps(Q,Z,te,re),ie=100*((void 0!==D?Math.max(r,Math.min(D,e)):r)-r)/(e-r),ne=100*(u-r)/(e-r),se=Math.min(ie,ne),oe=`${Math.abs(ie-ne)}%`,le=100*Math.max(0,Math.min(1,H))+"%",{trackColor:ce,indicatorColor:he}=c.getTrackAndIndicatorColor(u,j,E.trackColor,E.indicatorColor,E.thresholds),de=function(e){let t={start:!1,end:!1};return e&&(t=e.reduce(((e,t)=>(e.start=e.start||"start"===t.position,e.end=e.end||"end"===t.position||null==t.position,e)),t)),t}(E.referenceLines),ue=E.onCommit||E.onInput,{isTabbable:me}=p.useTabbableMode(),{classes:xe,styles:{interactiveStyle:fe,barValueBaseStyle:pe,barValueVerticalStyle:ge,barValueHorizontalStyle:$e,barValueHighContrastStyle:be,barTrackBaseStyle:Se,barTrackHorizontalSizeStyle:ye,barTrackVerticalSizeStyle:ze,barTrackBorderStyle:ve,barTrackMarginTopFitStyle:Te,barTrackMarginStartFitStyle:Ce,barTrackMarginBottomFitStyle:ke,barTrackMarginEndFitStyle:Me,trackSectionHorizontalFirstStyle:Be,trackSectionHorizontalLastStyle:Le,trackSectionVerticalFirstStyle:Ve,trackSectionVerticalLastStyle:we,trackSectionRoundedCornersStyle:je}}=g.useComponentTheme($.MeterBarRedwoodTheme,{size:C,orientation:k}),Re="fit"===C,Fe=c.hasLabelledReferenceLine(E.referenceLines),He=c.getDefaultReferenceLineLabelFontSize("sm"),Ue=n.useMemo((()=>[{tokenVar:He,key:"labelFontSize",cssProp:"font-size"},{tokenVar:z.typographyVars.body.md.lineHeight,key:"lineHeight",cssProp:"line-height"}]),[He]),{resolvedVars:De,cssContent:Ie}=y.useCssVars(Ue),{dims:Ne,maxRefLabelDims:Ee}=c.getMaxRefLabelDims(De.fontSize,De.lineHeight,E.referenceLines,J),Pe=L(de,Ee.width,f,W),Ae=V(de,Ee.height,T,W),We=W?Ae:Pe;return t.jsxs(t.Fragment,{children:[t.jsx("div",{tabIndex:me?0:-1,...P,...ae,style:F(Re,W,x,Ee,Ae,Pe),class:a.classNames([xe,...Re?B(de,W,Te,Ce,ke,Me):[]]),children:t.jsxs(v.BarTrack,{ref:_,orientation:k,color:!w||"all"===j&&E.thresholds?"transparent":ce,class:a.classNames([Se,ue?fe:"",W?ye:ze,!w||"all"===j&&E.thresholds?void 0:ve]),style:{margin:Re?void 0:R(de,W,!!E.referenceLines?.length,Fe,Ee)},children:["all"===j&&E.thresholds?.filter((t=>t.max>r&&t.max<=e)).sort(((e,t)=>e.max-t.max)).map(((a,i,n)=>{const s=0===i?a.max-r:a.max-n[i-1].max,o=W?Le:we;let l=0===i?W?Be:Ve:"";return a.max===e&&(l=0===i?je:o),t.jsxs(t.Fragment,{children:[t.jsx(N,{class:l,orientation:k,length:100*s/(e-r)+"%",color:a.color}),w&&i===n.length-1&&a.max<e?t.jsx(N,{class:o,color:ce,orientation:k,length:100*(e-n[i].max)/(e-r)+"%"}):""]})})),t.jsx(v.BarValue,{left:W&&!q?`${se}%`:void 0,bottom:W?void 0:`${se}%`,right:W&&q?`${se}%`:void 0,width:W?oe:"100%",height:W?"100%":oe,length:oe,size:le,orientation:k,class:a.classNames([pe,W?$e:ge,"active"===Y?be:""]),color:he}),E.referenceLines?.map(((a,i)=>t.jsx(I,{label:a.label,labelStyle:{fontSize:De.labelFontSize,...a.labelStyle},color:a.color,maxLabelWidth:Ne[i]?.width,maxLabelHeight:Ne[i]?.height,orientation:k,percent:100*(a.value-r)/(e-r),position:a.position,trackSize:Re?`${We}px`:d.meterBarVars.size,length:Re?`calc(${h.xUnits(4)} + ${We}px)`:void 0})))]})}),Ie,ee,G]})}e.MeterBar=function({orientation:e,length:a,size:i,...n}){return t.jsx(t.Fragment,{children:"fit"===i?t.jsx(r.TrackResizeContainer,{width:"100%",height:"100%",children:(r,a)=>t.jsx(E,{width:r,height:a,orientation:e,size:i,...n})}):t.jsx(E,{size:i,length:a,orientation:e,...n})})}}));
1
+ define(['exports', 'preact/jsx-runtime', './TrackResizeContainer-2b033ae7', './classNames-08d99695', './mergeProps-bcfa6a92', 'preact/hooks', './useUser-3ef25571', './useMeterDatatip-173593b4', './useKeyboardEvents-8ada7a1f', './meterUtils-9d026b15', './utils-5077c092', './UNSAFE_MeterBar/themes/MeterBarContract.css', './size-a75b3f13', './UNSAFE_MeterBar/themes/MeterBarStyles.css', './utils-a4c75cb2', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useComponentTheme-5aa41a8f', './UNSAFE_MeterBar/themes/redwood/MeterBarTheme', './useTestId-b5cd4766', './useTextDimensions-83dd9415', './useCssVars-dc52806c', './Common/themes/themeContract.css', './LinearMeter-d1e744c1'], (function(e,t,r,a,i,n,s,o,l,c,h,d,u,m,x,f,p,b,g,$,S,y,z,v){"use strict";const T=15,C=5,k=4;function M(e){if(!e)return{width:0,height:0};const t=e.getBoundingClientRect();return{width:t.width,height:t.height}}const B=function(e,t,r,a,i,n){const s=[];return e.start&&s.push(t?r:a),e.end&&s.push(t?i:n),s},L=function(e,t,r,a){return r&&(e.start&&!a&&(r-=16),e.end&&!a&&(r-=16)),t&&r&&(r-=2*t+2*k),r},V=function(e,t,r,a){return r&&(e.start&&a&&(r-=16),e.end&&a&&(r-=16)),t&&r&&(r-=2*t+2*k),r},w=function(e,t,r){const a=`${h.xUnits(4)} + ${k}px`;return r?`calc(${a} + ${t}px) 0 calc(${a} + ${t}px) 0`:`0 calc(${a} + ${e}px) 0 calc(${a} + ${e}px)`};function j(e,t,r,a,i,n,s){const o=n||h.xUnits(C),l=`calc(${o} - ${s||d.meterBarVars.size})`;return r?i?`${e?"-50%":"50%"} calc(-100% - ${l} - ${k}px)`:`${e?"-50%":"50%"} calc(${o} + ${k}px)`:a?i?`calc(100% + ${l} + ${k}px) ${t?"50%":"-50%"}`:`calc(0px - ${o} - ${k}px) ${t?"50%":"-50%"}`:i?`calc(-100% - ${l} - ${k}px) ${t?"50%":"-50%"}`:`calc(${o} + ${k}px) ${t?"50%":"-50%"}`}function R(e,t,r,a,i){const n=`calc(${h.xUnits(C)} - ${d.meterBarVars.size})`,s=k,o=e.start&&e.end;if(a)return t?`calc(${i.height+s}px + ${n}) 0 calc(${i.height+s}px + ${n}) 0`:`0 calc(${i.width+s}px + ${n}) 0 calc(${i.width+s}px + ${n})`;if(r){if(o)return t?`${n} 0 ${n}`:`0 ${n} 0 ${n}`;if(e.start&&!e.end)return t?`${n} 0 0 0`:`0 ${n} 0 0`;if(!e.start&&e.end)return t?`0 0 ${n} 0`:`0 0 0 ${n}`}}function F(e,t,r,a,i,n){return{width:e?n:t?u.sizeToCSS(r):void 0,height:e?i:t?void 0:u.sizeToCSS(r),margin:e?w(a.width,a.height,t):void 0}}function H(e,t,r,a){return{left:e?`max(${r}px, ${t?100-a:a}%)`:void 0,right:e?void 0:`max(${r}px, ${t?a:100-a}%)`}}function U(e,t,r){if(0!==r||t)return 100===r?t?e?"3px":"0 3px":e?"-2px":"0 2px":e?t?"1px 0":"-1px 0":t?"0 -1px":"0 1px"}function D(e,t,r,a,i,n,s){return{...e?H(t,a,n/2,i):{},bottom:e?void 0:r?`max(${s/2-k}px, ${i}%)`:void 0,top:e||r?void 0:`max(${s/2-k}px, ${100-i}%)`,maxWidth:e?void 0:h.xUnits(T)}}function I({orientation:e,percent:r,color:i,position:n,length:o,label:l,maxLabelWidth:c,maxLabelHeight:h,trackSize:d,labelStyle:u}){const f="horizontal"===e,{direction:p}=s.useUser(),b="rtl"===p,g="start"===n,$=`${r}%`,S=f?void 0:o,y=f?o:void 0,z=r<50&&!b||r>50&&b,v=r<50;return t.jsxs(t.Fragment,{children:[t.jsx("div",{class:a.classNames([m.styles.referenceLinesBaseStyle,f?m.styles.referenceLinesHorizontalStyle:m.styles.referenceLinesVerticalStyle,g?f?m.styles.referenceLinesHoriontalStartStyle:b?m.styles.referenceLinesVerticalStartRtlStyle:m.styles.referenceLinesVerticalStartLtrStyle:""]),style:{left:f&&!b?$:void 0,right:f&&b?$:void 0,bottom:f?void 0:$,backgroundColor:x.getVisThresholdColor(i),width:S,height:y,translate:U(f,b,r)}}),l&&t.jsx("div",{className:m.styles.labelDivStyle,style:{...D(f,z,v,b,r,c,h),translate:j(z,v,f,b,g,o,d),...u},children:l})]})}function N({color:e,length:r,orientation:i,...n}){const{direction:o}=s.useUser(),l="horizontal"===i,c="rtl"===o;return t.jsx("div",{class:a.classNames([m.styles.thresholdBarBaseStyle,l?c?m.styles.thresholdBarHorizontalBarTrackSectionRtlStyle:m.styles.thresholdBarHorizontalBarTrackSectionLtrStyle:m.styles.thresholdBarVerticalBarTrackSectionStyle,n.class]),style:{width:l?r:"100%",height:l?"100%":r,backgroundColor:x.getVisThresholdColor(e)}})}function E({max:e=100,min:r=0,value:u=0,step:m=1,length:x="100%",width:f,height:T,size:C,orientation:k="horizontal",isTrackRendered:w=!0,thresholdDisplay:j="all",indicatorSize:H=1,testId:U,baseline:D,...E}){const P=$.useTestId(U);c.validateRange(r,e,u,m,D);const A=n.useRef(),W="horizontal"===k,_=n.useRef(null),K=n.useRef(M(null)),{direction:X,forcedColors:Y}=s.useUser(),q="rtl"===X;n.useEffect((()=>{(E.onCommit||E.onInput)&&(K.current=M(_.current))}),[C,x,k,E.onCommit,E.onInput]);const{textMeasureContent:G,getTextDimensions:J}=S.useTextDimensions(),O=n.useRef(!1),Q=o.usePointerEvents(u,(t=>{if(t.target==_.current)return function(e,t,r,a,i,n,s){const o=t.current;if(!o||0===o.width)return;let l;if("horizontal"===n){const t=e.offsetX;l=r+(a-r)*(s?o.width-t:t)/o.width}else l=r+(a-r)*(o.height-e.offsetY)/o.height;return l=Math.round(l/i)*i,Math.max(r,Math.min(a,l))}(t,K,r,e,m,k,q)}),_,A,O,E.onCommit,E.onInput),Z=l.useKeyboardEvents(u,r,e,m,A,E.onCommit,E.onInput),{datatipContent:ee,datatipProps:te}=o.useMeterDatatip(u,O,E.datatip,E["aria-describedby"]),re=c.getMeterAriaProps(u,r,e,E["aria-label"],E["aria-labelledby"],E.thresholds),ae=i.mergeProps(Q,Z,te,re),ie=100*((void 0!==D?Math.max(r,Math.min(D,e)):r)-r)/(e-r),ne=100*(u-r)/(e-r),se=Math.min(ie,ne),oe=`${Math.abs(ie-ne)}%`,le=100*Math.max(0,Math.min(1,H))+"%",{trackColor:ce,indicatorColor:he}=c.getTrackAndIndicatorColor(u,j,E.trackColor,E.indicatorColor,E.thresholds),de=function(e){let t={start:!1,end:!1};return e&&(t=e.reduce(((e,t)=>(e.start=e.start||"start"===t.position,e.end=e.end||"end"===t.position||null==t.position,e)),t)),t}(E.referenceLines),ue=E.onCommit||E.onInput,{isTabbable:me}=p.useTabbableMode(),{classes:xe,styles:{interactiveStyle:fe,barValueBaseStyle:pe,barValueVerticalStyle:be,barValueHorizontalStyle:ge,barValueHighContrastStyle:$e,barTrackBaseStyle:Se,barTrackHorizontalSizeStyle:ye,barTrackVerticalSizeStyle:ze,barTrackBorderStyle:ve,barTrackMarginTopFitStyle:Te,barTrackMarginStartFitStyle:Ce,barTrackMarginBottomFitStyle:ke,barTrackMarginEndFitStyle:Me,trackSectionHorizontalFirstStyle:Be,trackSectionHorizontalLastStyle:Le,trackSectionVerticalFirstStyle:Ve,trackSectionVerticalLastStyle:we,trackSectionRoundedCornersStyle:je}}=b.useComponentTheme(g.MeterBarRedwoodTheme,{size:C,orientation:k}),Re="fit"===C,Fe=c.hasLabelledReferenceLine(E.referenceLines),He=c.getDefaultReferenceLineLabelFontSize("sm"),Ue=n.useMemo((()=>[{tokenVar:He,key:"labelFontSize",cssProp:"font-size"},{tokenVar:z.typographyVars.body.md.lineHeight,key:"lineHeight",cssProp:"line-height"}]),[He]),{resolvedVars:De,cssContent:Ie}=y.useCssVars(Ue),{dims:Ne,maxRefLabelDims:Ee}=c.getMaxRefLabelDims(De.fontSize,De.lineHeight,E.referenceLines,J),Pe=L(de,Ee.width,f,W),Ae=V(de,Ee.height,T,W),We=W?Ae:Pe;return t.jsxs(t.Fragment,{children:[t.jsx("div",{tabIndex:me?0:-1,...P,...ae,style:F(Re,W,x,Ee,Ae,Pe),class:a.classNames([xe,...Re?B(de,W,Te,Ce,ke,Me):[]]),children:t.jsxs(v.BarTrack,{ref:_,orientation:k,color:!w||"all"===j&&E.thresholds?"transparent":ce,class:a.classNames([Se,ue?fe:"",W?ye:ze,!w||"all"===j&&E.thresholds?void 0:ve]),style:{margin:Re?void 0:R(de,W,!!E.referenceLines?.length,Fe,Ee)},children:["all"===j&&E.thresholds?.filter((t=>t.max>r&&t.max<=e)).sort(((e,t)=>e.max-t.max)).map(((a,i,n)=>{const s=0===i?a.max-r:a.max-n[i-1].max,o=W?Le:we;let l=0===i?W?Be:Ve:"";return a.max===e&&(l=0===i?je:o),t.jsxs(t.Fragment,{children:[t.jsx(N,{class:l,orientation:k,length:100*s/(e-r)+"%",color:a.color}),w&&i===n.length-1&&a.max<e?t.jsx(N,{class:o,color:ce,orientation:k,length:100*(e-n[i].max)/(e-r)+"%"}):""]})})),t.jsx(v.BarValue,{left:W&&!q?`${se}%`:void 0,bottom:W?void 0:`${se}%`,right:W&&q?`${se}%`:void 0,width:W?oe:"100%",height:W?"100%":oe,length:oe,size:le,orientation:k,class:a.classNames([pe,W?ge:be,"active"===Y?$e:""]),color:he}),E.referenceLines?.map(((a,i)=>t.jsx(I,{label:a.label,labelStyle:{fontSize:De.labelFontSize,...a.labelStyle},color:a.color,maxLabelWidth:Ne[i]?.width,maxLabelHeight:Ne[i]?.height,orientation:k,percent:100*(a.value-r)/(e-r),position:a.position,trackSize:Re?`${We}px`:d.meterBarVars.size,length:Re?`calc(${h.xUnits(4)} + ${We}px)`:void 0})))]})}),Ie,ee,G]})}e.MeterBar=function({orientation:e,length:a,size:i,...n}){return t.jsx(t.Fragment,{children:"fit"===i?t.jsx(r.TrackResizeContainer,{width:"100%",height:"100%",children:(r,a)=>t.jsx(E,{width:r,height:a,orientation:e,size:i,...n})}):t.jsx(E,{size:i,length:a,orientation:e,...n})})}}));
2
2
  //# sourceMappingURL=MeterBar-e1b4a93b.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './useUser-85c781ea', 'preact/hooks', './mergeProps-bcfa6a92', './classNames-08d99695', './meterUtils-9d026b15', './circleUtils-1886e5b4', './utils-a4c75cb2', './UNSAFE_MeterCircle/themes/MeterCircleStyles.css', './UNSAFE_MeterCircle/themes/MeterCircleContract.css', './Common/themes/themeContract.css', './utils-5077c092', './TrackResizeContainer-2b033ae7', './useMeterDatatip-fff3c329', './useKeyboardEvents-d87e3587', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useComponentTheme-5aa41a8f', './UNSAFE_MeterCircle/themes/redwood/MeterCircleTheme', './useTestId-3a316499', './useCssVars-c043f8da', './useTextDimensions-83dd9415', './CircularMeter-b754580a'], (function(e,t,n,s,i,r,a,l,c,o,h,u,d,f,m,g,x,p,$,C,b,y,R,M){"use strict";function S(e,t){if(!e)return{width:0,height:0,innerRadius:0,outerRadius:0};const n=e.children[0],s=n.getBoundingClientRect();return{width:Math.round(s.width),height:Math.round(s.height),...v(n,s,t)}}function v(e,t,n){const s=e.clientWidth,i=e.clientHeight;return"bottom"===n||"top"===n?{outerRadius:t.width/2,innerRadius:i}:"left"===n||"right"===n?{outerRadius:t.height/2,innerRadius:s}:{innerRadius:s/2,outerRadius:t.width/2}}function z(e,t,n,s,i,r,a,c,o){const h=i.current;if(!h)return;const u=l.getCenterCoord(c),{angle:d}=l.convertToPolar(h.width*u.x,h.height*u.y,e.offsetX,e.offsetY),f=l.getPositiveAngle(d);let m;if(o&&r+a>f&&(m=l.getPositiveAngle(d-r)/a*(n-t)),!o){const e=l.getPositiveAngle(r-f);e<=a&&(m=e*(n-t)/a)}return null!=m&&(m=Math.round(m/s)*s,m=Math.max(Math.min(n,m),t)),m}function P(e,t,n,s){return e*s/(n-t)}function T(e,t,n,s,i,r){return s+(r?1:-1)*P(e-t,t,n,i)}function I(e,t){const n=e.current;if(!n)return;const s=l.getCenterCoord(t),i=s.x*n.width,r=s.y*n.height;let a,c,o,h,u,d,f,m;return"top"===t||"bottom"===t||"full"===t?(f=2*n.innerRadius,m="full"===t?2*n.innerRadius:n.innerRadius,u=i-n.innerRadius,d="bottom"===t?0:r-n.innerRadius,o=Math.sqrt(2)*n.innerRadius,h="full"===t?o:n.innerRadius/Math.sqrt(2),a=i-n.innerRadius/Math.sqrt(2),c="bottom"===t?0:r-n.innerRadius/Math.sqrt(2)):(m=2*n.innerRadius,f=n.innerRadius,u="left"===t?i-n.innerRadius:0,d=r-n.innerRadius,h=Math.sqrt(2)*n.innerRadius,o=n.innerRadius/Math.sqrt(2),a="left"===t?i-n.innerRadius/Math.sqrt(2):0,c=r-n.innerRadius/Math.sqrt(2)),{outerBounds:{x:u,y:d,width:f,height:m},innerBounds:{x:a,y:c,width:o,height:h}}}const k=d.xUnits(2),w=d.xUnits(7.5),A=16;function L(e,t){return e?"fit"===e?`${t}px`:h.meterCircleVars.sizes[e]:h.meterCircleVars.size}function V(e){return e?h.meterCircleVars.trackSizes[e]:h.meterCircleVars.trackSize}function j(e,t,n){return null!=t?`(${L(e,n)} * ${t/2})`:`(${L(e,n)} * 0.5 - ${V(e)})`}function D(e,t,n){return null!=t?`(${L(e,n)} * ${1-t} / 2)`:V(e)}function E(e,t,n,s,i,r){const{min:a,max:o,startAngle:h,angleExtent:u,size:d,section:f,isRtl:m,innerRadius:g}=e,x=`calc(${D(d,i,r)})`,p=[],$=t.filter((e=>e.max>a&&e.max<=o)).sort(((e,t)=>e.max-t.max)),C=$.length;for(let e=0;e<C;e++){const t=$[e],i=0===e?a:$[e-1].max,r=0===e?t.max:t.max-$[e-1].max;let d=T(i,a,o,h,u,m),b=P(r,a,o,u);const{startOffset:y,extentOffset:R}=F(g,u,0===e,t.max===o,m),M=l.getClipPath(d+y,b+R,m,f);if(p.push({clipPath:M,color:c.getVisThresholdColor(t.color),size:x,section:f}),e===C-1&&t.max<o&&n){d+=(m?1:-1)*b,b=P(o-t.max,a,o,u);const{startOffset:e,extentOffset:n}=F(g,u,!1,!0,m);p.push({clipPath:l.getClipPath(d+e,b+n,m,f),color:s,size:x,section:f})}}return p}function O(e,t,n,s,i,r,a){const{startAngle:c,angleExtent:o,size:h,section:d,isRtl:f}=e;return{section:d,color:t?"all"===n&&r?`${u.colorSchemeVars.dvt.contrastLine}`:s:"transparent",clipPath:l.getClipPath(c,o,f,d),size:`calc(${D(h,i,a)})`}}function N(e,t,n,s){const{value:i,min:r,max:a,startAngle:c,angleExtent:o,size:h,section:u,isRtl:d}=e,f=(i-r)*o/(a-r),m=Math.min(Math.max(0,t),1),g="left"===u||"right"===u,x="top"===u||"bottom"===u,p=`calc(${D(h,n,s)} * ${m})`,$=`${L(h,s)} - ((1 - ${m}) * ${D(h,n,s)})`,C=`(${$}) / 2`;return{section:u,width:g?`calc(${C})`:`calc(${$})`,height:x?`calc(${C})`:`calc(${$})`,size:p,clipPath:l.getClipPath(c,f,d,u)}}function F(e,t,n,s,i){if(!e)return{startOffset:0,extentOffset:0};const r=360/(2*Math.PI*e);let a=r/2*(i?1:-1),l=-1*r;return n&&t<360&&(a=0,l=-.5*r),s&&t<360&&(l=-.5*r),{startOffset:a,extentOffset:l}}function U(e,t,n){return"top"===n||"bottom"===n?{height:Math.min(t,e/2),width:2*Math.min(t,e/2)}:"left"===n||"right"===n?{width:Math.min(e,t/2),height:2*Math.min(e,t/2)}:{width:Math.min(e,t),height:Math.min(e,t)}}function B(e,t,n){const s=`calc(${100*e.y}% - ((${Math.sin(2*t*Math.PI/360)} * ${n} )))`;return{xOffset:`calc(${100*e.x}% + ((${Math.cos(2*t*Math.PI/360)} * ${n} )))`,yOffset:s}}function H(e,t,n){let s="-50%";const i=l.getPositiveAngle(e);return 90!==i&&270!==i||(n="string"==typeof n?n:`${Math.abs(n)}px`,"left"===t?s=`min(-50%, calc(-100% + ${n}))`:"right"===t&&(s=`max(-50%, calc(-1 * ${n}))`)),i<=72||i>=288?"0 -50%":i>=108&&i<=252?"-100% -50%":i<=108&&i>=72?`${s} -100%`:`${s} 0`}function W(e,t,n){return(t=l.getPositiveAngle(t))<108&&t>72||t<288&&t>252?`calc(${e} * 1.4)`:`calc( (${e} * 0.7 ) - (${Math.abs(Math.cos(2*t*Math.PI/360))} * ${n} ))`}function q(e,t,n,s,i){let r="";return n||n?(s?r=`calc(${h.meterCircleVars.size} / ${"lg"===e||"md"===e?3:2} )`:n&&("sm"===e?r=d.xUnits(4):"md"===e?r=d.xUnits(3):"lg"===e&&(r=d.xUnits(2))),"bottom"===t?`${i.height/2}px ${r} ${r} ${r}`:"top"===t?`${r} ${r} ${i.height/2}px ${r}`:"left"===t?`${r} ${w} ${r} ${r}`:"right"===t?`${r} ${r} ${r} ${w}`:r):""}function K(e,t,n){const s="full"===e?t/2:t;return"top"===e?n?"50% -50%":"-50%, -50%":n?`calc(50% + ${s}px), calc(-50% - ${s}px)`:`calc(-50% - ${s}px), calc(-50% - ${s}px)`}function _(e,t,n,s){return(e-t)/2+(!s&&"right"===n||s&&"left"===n?-.5:.5)*A}function X({color:e,angle:n,radius:s,length:i,section:a="full",label:h,labelMaxWidth:u,labelOffset:d,labelStyle:f,halfMeterOffset:m}){const g=l.getCenterCoord(a),{xOffset:x,yOffset:p}=B(g,n,s),{xOffset:$,yOffset:C}=B(g,n,`calc(${i} + ${s} + ${d}px)`);return t.jsxs(t.Fragment,{children:[t.jsx("div",{class:r.classNames([o.styles.referenceBaseLineStyle,e?void 0:o.styles.referenceBorderStyle]),style:{left:x,top:p,width:`calc(${i})`,transform:`translate(0, -1px) rotate(${360-n}deg)`,backgroundColor:e?c.getVisThresholdColor(e):void 0}}),h&&t.jsx("div",{className:o.styles.referenceLineLabelContainerStyle,style:{left:$,top:C,maxWidth:u,translate:H(n,a,m),...f},children:h})]})}const Y=4;function G(e,t,n,s){return`${D(e,t,s)} + ${d.xUnits("fit"!==e||n?2:4)}`}function J(e,t,n,s,i){const{min:r,max:a,startAngle:l,angleExtent:c,size:o,isRtl:h}=e;return{radius:j(o,n,i),length:G(o,n,s,i),angle:T(t.value,r,a,l,c,h),color:t.color}}function Q(e,t,n,s,i,r){if(!n)return{width:e,height:t,overHang:0};const a=function(e){return"min"===e||"xs"===e?2*Y:4*Y}(s),l=Z(s);return{width:e*(i?.6:1)-2*a,height:t-2*a-2*(r.height+l),overHang:a}}function Z(e,t){const n="min"===e||"xs"===e;return null!=t&&(t<108&&t>72||t<288&&t>252)?n?0:Y:null==t||t<108&&t>72&&!(t<288&&t>252)?n?Y/2:Y:1.5*Y}const ee=.8,te=8;function ne({max:e=100,min:c=0,value:o=0,step:h=1,size:d="fit",startAngle:x=90,angleExtent:v=360,isTrackRendered:P=!0,thresholdDisplay:T="all",indicatorSize:w=1,testId:A,...L}){const V=b.useTestId(A);a.validateRange(c,e,o,h);const j=L.onCommit||L.onInput,{classes:D,styles:F}=$.useComponentTheme(C.MeterCircleRedwoodTheme,{size:d,interaction:j?"isInteractive":void 0});return t.jsx(f.TrackResizeContainer,{class:r.classNames([D,F.textAlignCenter]),width:"100%",height:"100%",children:function(f,$){f-=te,$-=te;const C=a.hasLabelledReferenceLine(L.referenceLines),{textMeasureContent:b,getTextDimensions:A}=R.useTextDimensions(),{direction:B}=n.useUser(),H="rtl"===B;let W=x;H&&(W=l.getPositiveAngle(180-W));const q=l.getCircleSection(W,v,H),{width:Y,height:G}=U(f,$,q),ne=function(e){return e<200?"min":e<320?"xs":e<360?"sm":"md"}(Math.max(Y,G)),se=a.getDefaultReferenceLineLabelFontSize(ne),ie=s.useMemo((()=>[{tokenVar:se,key:"labelFontSize",cssProp:"font-size"},{tokenVar:u.typographyVars.body.md.lineHeight,key:"lineHeight",cssProp:"line-height"}]),[se]),{resolvedVars:re,cssContent:ae}=y.useCssVars(ie),{maxRefLabelDims:le}=a.getMaxRefLabelDims(re.fontSize,re.lineHeight,L.referenceLines,A),ce="xs"===ne||"min"===ne,oe=L.innerRadius??ee,{width:he,height:ue,overHang:de}=Q(f,$,!!L.referenceLines?.length,ne,C,le),{width:fe,height:me}=U(he,ue,q),ge="full"===q?Math.min(fe,me)/2:Math.min(fe,me),xe=2*ge,pe=s.useRef(),$e=s.useRef(S(null,q)),Ce=s.useRef(null),[be,ye]=s.useState(!1);s.useEffect((()=>{(L.onCommit||L.onInput||L.children)&&($e.current=S(Ce.current,q),ye(!0))}),[q]);const Re=s.useRef(!1),Me=m.usePointerEvents(o,(t=>{const n=Ce.current;if(t.target==n)return z(t,c,e,h,$e,W,v,q,H)}),Ce,pe,Re,L.onCommit,L.onInput),Se=g.useKeyboardEvents(o,c,e,h,pe,L.onCommit,L.onInput),{datatipContent:ve,datatipProps:ze}=m.useMeterDatatip(o,Re,L.datatip,L["aria-describedby"]),Pe=a.getMeterAriaProps(o,c,e,L["aria-label"],L["aria-labelledby"],L.thresholds),Te=i.mergeProps(Me,Se,ze,Pe),{trackColor:Ie,indicatorColor:ke}=a.getTrackAndIndicatorColor(o,T,L.trackColor,L.indicatorColor,L.thresholds),we={min:c,max:e,value:o,startAngle:W,angleExtent:v,size:d,section:q,isRtl:H,innerRadius:$e.current.innerRadius},{isTabbable:Ae}=p.useTabbableMode(),Le=I($e,q);return t.jsxs(t.Fragment,{children:[t.jsx("div",{class:r.classNames([D,"full"===q?F.meterCircleFullSizeStyle:"",F.textAlignInitial]),style:{width:f,height:$},tabIndex:Ae?0:-1,...V,...Te,children:t.jsxs(M.CircleWrapper,{wrapperRef:Ce,class:r.classNames([F.circleWrapperBaseStyle,j?F.interactiveStyle:"",L.referenceLines&&L.referenceLines.length>0?d&&F[`${q}Fit${ce?"Sm":"Lg"}Style`]:"",H?F.centerDivRtl:F.centerDivLtr]),style:{width:`${fe}px`,height:`${me}px`,transform:`translate(${K(q,de,H)})`},children:[t.jsx(M.CircleInner,{width:`${fe}px`,height:`${me}px`,class:r.classNames([F.circleTrackBaseStyle,F[`${q}Style`]]),...O(we,P,T,Ie,oe,L.thresholds,xe)}),"all"===T&&L.thresholds&&E(we,L.thresholds,P,Ie,oe,xe).map((e=>t.jsx(M.CircleInner,{class:r.classNames([F.circleTrackBaseStyle,F[`${q}Style`]]),...e,width:`${fe}px`,height:`${me}px`}))),t.jsx(M.CircleInner,{color:ke,class:r.classNames([F.circleValueBaseStyle,F[`circleValue${q}Style`],F[`${q}Style`]]),...N(we,w,oe,2*ge)}),L.referenceLines?.map((e=>{const{radius:n,length:s,angle:i,color:r}=J(we,e,oe,ce,xe),a=function(e,t,n,s){return n=l.getPositiveAngle(n),"full"===e||"bottom"===e||"top"===e?n<108&&n>72||n<288&&n>252?`calc(${t}px - ${k})`:`calc(${t/2-Math.abs(Math.cos(2*n*Math.PI/360))*s}px - ${k})`:90===n||270===n?`calc(${t}px - ${k})`:`calc(${t/2+s/2-s*Math.abs(Math.cos(2*n*Math.PI/360))}px - ${k})`}(q,f,i,xe/2+de+Z(ne,i));return t.jsx(X,{label:e.label,labelStyle:{fontSize:re.labelFontSize,lineHeight:u.typographyVars.body.md.lineHeight,...e.labelStyle},labelMaxWidth:a,radius:n,length:s,angle:i,labelOffset:Z(ne,i),color:r,section:q,halfMeterOffset:_(f,xe/2,q,H)})})),be&&L.children&&Le&&t.jsx("div",{class:r.classNames([F.meterCircleCenterContent]),children:L.children(Le)})]})}),ve,b,ae]})}})}function se({max:e=100,min:c=0,value:o=0,step:d=1,size:f="lg",startAngle:x=90,angleExtent:v=360,isTrackRendered:P=!0,thresholdDisplay:T="all",indicatorSize:k=1,testId:A,...L}){const V=b.useTestId(A);a.validateRange(c,e,o,d);const j=s.useRef(),{direction:D}=n.useUser(),F="rtl"===D;let U=x;F&&(U=l.getPositiveAngle(180-U));const B=l.getCircleSection(U,v,F),H=s.useRef(S(null,B)),K=s.useRef(null),[_,Y]=s.useState(!1);s.useEffect((()=>{(L.onCommit||L.onInput||L.children)&&(H.current=S(K.current,B),Y(!0))}),[f,B,L.onCommit,L.onInput,L.children]);const{textMeasureContent:G,getTextDimensions:Q}=R.useTextDimensions(),ee=s.useRef(!1),te=m.usePointerEvents(o,(t=>{const n=K.current;if(t.target==n)return z(t,c,e,d,H,U,v,B,F)}),K,j,ee,L.onCommit,L.onInput),ne=g.useKeyboardEvents(o,c,e,d,j,L.onCommit,L.onInput),{datatipContent:se,datatipProps:ie}=m.useMeterDatatip(o,ee,L.datatip,L["aria-describedby"]),re=a.getMeterAriaProps(o,c,e,L["aria-label"],L["aria-labelledby"],L.thresholds),ae=i.mergeProps(te,ne,ie,re),{trackColor:le,indicatorColor:ce}=a.getTrackAndIndicatorColor(o,T,L.trackColor,L.indicatorColor,L.thresholds),oe="bottom"===B||"top"===B?"Horizontal":"left"===B||"right"===B?"Vertical":"Full",he={min:c,max:e,value:o,startAngle:U,angleExtent:v,size:f,section:B,isRtl:F,innerRadius:H.current.innerRadius},ue=L.onCommit||L.onInput,{classes:de,styles:fe}=$.useComponentTheme(C.MeterCircleRedwoodTheme,{size:f,interaction:ue?"isInteractive":void 0}),{isTabbable:me}=p.useTabbableMode(),ge=I(H,B),xe=N(he,k,L.innerRadius),pe=a.hasLabelledReferenceLine(L.referenceLines),$e="lg"===f?"sm":"min",Ce=a.getDefaultReferenceLineLabelFontSize($e),be=s.useMemo((()=>[{tokenVar:Ce,key:"labelFontSize",cssProp:"font-size"},{tokenVar:u.typographyVars.body.md.lineHeight,key:"lineHeight",cssProp:"line-height"}]),[Ce]),{resolvedVars:ye,cssContent:Re}=y.useCssVars(be),{maxRefLabelDims:Me}=a.getMaxRefLabelDims(ye.fontSize,ye.lineHeight,L.referenceLines,Q),Se=O(he,P,T,le,L.innerRadius,L.thresholds);return t.jsxs(t.Fragment,{children:[t.jsx("div",{class:r.classNames([de]),tabIndex:me?0:-1,...V,...ae,children:t.jsxs(M.CircleWrapper,{wrapperRef:K,class:r.classNames([fe.circleWrapperBaseStyle,ue?fe.interactiveStyle:"",fe[`meterCircle${oe}SizeStyle`]]),style:{margin:q(f,B,!!L.referenceLines?.length,pe,Me)},children:[t.jsx(M.CircleInner,{class:r.classNames([fe.circleTrackBaseStyle,fe[`${B}Style`]]),...Se}),"all"===T&&L.thresholds&&E(he,L.thresholds,P,le,L.innerRadius).map((e=>t.jsx(M.CircleInner,{class:r.classNames([fe.circleTrackBaseStyle,fe[`${B}Style`]]),...e}))),t.jsx(M.CircleInner,{color:ce,class:r.classNames([fe.circleValueBaseStyle,fe[`circleValue${B}Style`],fe[`${B}Style`]]),...xe}),L.referenceLines?.map((e=>{const{radius:n,length:s,angle:i,color:r}=J(he,e,L.innerRadius);return t.jsx(X,{label:e.label,labelStyle:{fontSize:ye.labelFontSize,...e.labelStyle},labelMaxWidth:W(h.meterCircleVars.size,i,`calc( ${n} + ${s} - ${Se.size} + ${Z($e,i)}px)`),radius:n,labelOffset:Z($e,i),length:s,angle:i,color:r,halfMeterOffset:w,section:B})})),_&&L.children&&ge&&t.jsx("div",{class:r.classNames([fe.meterCircleCenterContent]),children:L.children(ge)})]})}),se,G,Re]})}e.MeterCircle=function({size:e,max:n=100,min:s=0,value:i=0,step:r=1,startAngle:a=90,angleExtent:l=360,isTrackRendered:c=!0,thresholdDisplay:o="all",indicatorSize:h=1,...u}){return"fit"===e?t.jsx(ne,{min:s,value:i,max:n,step:r,startAngle:a,angleExtent:l,isTrackRendered:c,thresholdDisplay:o,indicatorSize:h,...u}):t.jsx(se,{size:e||"lg",min:s,value:i,max:n,step:r,startAngle:a,angleExtent:l,isTrackRendered:c,thresholdDisplay:o,indicatorSize:h,...u})}}));
1
+ define(['exports', 'preact/jsx-runtime', './useUser-3ef25571', 'preact/hooks', './mergeProps-bcfa6a92', './classNames-08d99695', './meterUtils-9d026b15', './circleUtils-1886e5b4', './utils-a4c75cb2', './UNSAFE_MeterCircle/themes/MeterCircleStyles.css', './UNSAFE_MeterCircle/themes/MeterCircleContract.css', './Common/themes/themeContract.css', './utils-5077c092', './TrackResizeContainer-2b033ae7', './useMeterDatatip-173593b4', './useKeyboardEvents-8ada7a1f', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useComponentTheme-5aa41a8f', './UNSAFE_MeterCircle/themes/redwood/MeterCircleTheme', './useTestId-b5cd4766', './useCssVars-dc52806c', './useTextDimensions-83dd9415', './CircularMeter-b754580a'], (function(e,t,n,s,i,r,a,l,c,o,h,u,d,f,m,g,x,p,$,b,C,y,R,M){"use strict";function S(e,t){if(!e)return{width:0,height:0,innerRadius:0,outerRadius:0};const n=e.children[0],s=n.getBoundingClientRect();return{width:Math.round(s.width),height:Math.round(s.height),...v(n,s,t)}}function v(e,t,n){const s=e.clientWidth,i=e.clientHeight;return"bottom"===n||"top"===n?{outerRadius:t.width/2,innerRadius:i}:"left"===n||"right"===n?{outerRadius:t.height/2,innerRadius:s}:{innerRadius:s/2,outerRadius:t.width/2}}function z(e,t,n,s,i,r,a,c,o){const h=i.current;if(!h)return;const u=l.getCenterCoord(c),{angle:d}=l.convertToPolar(h.width*u.x,h.height*u.y,e.offsetX,e.offsetY),f=l.getPositiveAngle(d);let m;if(o&&r+a>f&&(m=l.getPositiveAngle(d-r)/a*(n-t)),!o){const e=l.getPositiveAngle(r-f);e<=a&&(m=e*(n-t)/a)}return null!=m&&(m=Math.round(m/s)*s,m=Math.max(Math.min(n,m),t)),m}function P(e,t,n,s){return e*s/(n-t)}function T(e,t,n,s,i,r){return s+(r?1:-1)*P(e-t,t,n,i)}function I(e,t){const n=e.current;if(!n)return;const s=l.getCenterCoord(t),i=s.x*n.width,r=s.y*n.height;let a,c,o,h,u,d,f,m;return"top"===t||"bottom"===t||"full"===t?(f=2*n.innerRadius,m="full"===t?2*n.innerRadius:n.innerRadius,u=i-n.innerRadius,d="bottom"===t?0:r-n.innerRadius,o=Math.sqrt(2)*n.innerRadius,h="full"===t?o:n.innerRadius/Math.sqrt(2),a=i-n.innerRadius/Math.sqrt(2),c="bottom"===t?0:r-n.innerRadius/Math.sqrt(2)):(m=2*n.innerRadius,f=n.innerRadius,u="left"===t?i-n.innerRadius:0,d=r-n.innerRadius,h=Math.sqrt(2)*n.innerRadius,o=n.innerRadius/Math.sqrt(2),a="left"===t?i-n.innerRadius/Math.sqrt(2):0,c=r-n.innerRadius/Math.sqrt(2)),{outerBounds:{x:u,y:d,width:f,height:m},innerBounds:{x:a,y:c,width:o,height:h}}}const k=d.xUnits(2),w=d.xUnits(7.5),A=16;function L(e,t){return e?"fit"===e?`${t}px`:h.meterCircleVars.sizes[e]:h.meterCircleVars.size}function V(e){return e?h.meterCircleVars.trackSizes[e]:h.meterCircleVars.trackSize}function j(e,t,n){return null!=t?`(${L(e,n)} * ${t/2})`:`(${L(e,n)} * 0.5 - ${V(e)})`}function D(e,t,n){return null!=t?`(${L(e,n)} * ${1-t} / 2)`:V(e)}function E(e,t,n,s,i,r){const{min:a,max:o,startAngle:h,angleExtent:u,size:d,section:f,isRtl:m,innerRadius:g}=e,x=`calc(${D(d,i,r)})`,p=[],$=t.filter((e=>e.max>a&&e.max<=o)).sort(((e,t)=>e.max-t.max)),b=$.length;for(let e=0;e<b;e++){const t=$[e],i=0===e?a:$[e-1].max,r=0===e?t.max:t.max-$[e-1].max;let d=T(i,a,o,h,u,m),C=P(r,a,o,u);const{startOffset:y,extentOffset:R}=F(g,u,0===e,t.max===o,m),M=l.getClipPath(d+y,C+R,m,f);if(p.push({clipPath:M,color:c.getVisThresholdColor(t.color),size:x,section:f}),e===b-1&&t.max<o&&n){d+=(m?1:-1)*C,C=P(o-t.max,a,o,u);const{startOffset:e,extentOffset:n}=F(g,u,!1,!0,m);p.push({clipPath:l.getClipPath(d+e,C+n,m,f),color:s,size:x,section:f})}}return p}function O(e,t,n,s,i,r,a){const{startAngle:c,angleExtent:o,size:h,section:d,isRtl:f}=e;return{section:d,color:t?"all"===n&&r?`${u.colorSchemeVars.dvt.contrastLine}`:s:"transparent",clipPath:l.getClipPath(c,o,f,d),size:`calc(${D(h,i,a)})`}}function N(e,t,n,s){const{value:i,min:r,max:a,startAngle:c,angleExtent:o,size:h,section:u,isRtl:d}=e,f=(i-r)*o/(a-r),m=Math.min(Math.max(0,t),1),g="left"===u||"right"===u,x="top"===u||"bottom"===u,p=`calc(${D(h,n,s)} * ${m})`,$=`${L(h,s)} - ((1 - ${m}) * ${D(h,n,s)})`,b=`(${$}) / 2`;return{section:u,width:g?`calc(${b})`:`calc(${$})`,height:x?`calc(${b})`:`calc(${$})`,size:p,clipPath:l.getClipPath(c,f,d,u)}}function F(e,t,n,s,i){if(!e)return{startOffset:0,extentOffset:0};const r=360/(2*Math.PI*e);let a=r/2*(i?1:-1),l=-1*r;return n&&t<360&&(a=0,l=-.5*r),s&&t<360&&(l=-.5*r),{startOffset:a,extentOffset:l}}function U(e,t,n){return"top"===n||"bottom"===n?{height:Math.min(t,e/2),width:2*Math.min(t,e/2)}:"left"===n||"right"===n?{width:Math.min(e,t/2),height:2*Math.min(e,t/2)}:{width:Math.min(e,t),height:Math.min(e,t)}}function B(e,t,n){const s=`calc(${100*e.y}% - ((${Math.sin(2*t*Math.PI/360)} * ${n} )))`;return{xOffset:`calc(${100*e.x}% + ((${Math.cos(2*t*Math.PI/360)} * ${n} )))`,yOffset:s}}function H(e,t,n){let s="-50%";const i=l.getPositiveAngle(e);return 90!==i&&270!==i||(n="string"==typeof n?n:`${Math.abs(n)}px`,"left"===t?s=`min(-50%, calc(-100% + ${n}))`:"right"===t&&(s=`max(-50%, calc(-1 * ${n}))`)),i<=72||i>=288?"0 -50%":i>=108&&i<=252?"-100% -50%":i<=108&&i>=72?`${s} -100%`:`${s} 0`}function W(e,t,n){return(t=l.getPositiveAngle(t))<108&&t>72||t<288&&t>252?`calc(${e} * 1.4)`:`calc( (${e} * 0.7 ) - (${Math.abs(Math.cos(2*t*Math.PI/360))} * ${n} ))`}function q(e,t,n,s,i){let r="";return n||n?(s?r=`calc(${h.meterCircleVars.size} / ${"lg"===e||"md"===e?3:2} )`:n&&("sm"===e?r=d.xUnits(4):"md"===e?r=d.xUnits(3):"lg"===e&&(r=d.xUnits(2))),"bottom"===t?`${i.height/2}px ${r} ${r} ${r}`:"top"===t?`${r} ${r} ${i.height/2}px ${r}`:"left"===t?`${r} ${w} ${r} ${r}`:"right"===t?`${r} ${r} ${r} ${w}`:r):""}function K(e,t,n){const s="full"===e?t/2:t;return"top"===e?n?"50% -50%":"-50%, -50%":n?`calc(50% + ${s}px), calc(-50% - ${s}px)`:`calc(-50% - ${s}px), calc(-50% - ${s}px)`}function _(e,t,n,s){return(e-t)/2+(!s&&"right"===n||s&&"left"===n?-.5:.5)*A}function X({color:e,angle:n,radius:s,length:i,section:a="full",label:h,labelMaxWidth:u,labelOffset:d,labelStyle:f,halfMeterOffset:m}){const g=l.getCenterCoord(a),{xOffset:x,yOffset:p}=B(g,n,s),{xOffset:$,yOffset:b}=B(g,n,`calc(${i} + ${s} + ${d}px)`);return t.jsxs(t.Fragment,{children:[t.jsx("div",{class:r.classNames([o.styles.referenceBaseLineStyle,e?void 0:o.styles.referenceBorderStyle]),style:{left:x,top:p,width:`calc(${i})`,transform:`translate(0, -1px) rotate(${360-n}deg)`,backgroundColor:e?c.getVisThresholdColor(e):void 0}}),h&&t.jsx("div",{className:o.styles.referenceLineLabelContainerStyle,style:{left:$,top:b,maxWidth:u,translate:H(n,a,m),...f},children:h})]})}const Y=4;function G(e,t,n,s){return`${D(e,t,s)} + ${d.xUnits("fit"!==e||n?2:4)}`}function J(e,t,n,s,i){const{min:r,max:a,startAngle:l,angleExtent:c,size:o,isRtl:h}=e;return{radius:j(o,n,i),length:G(o,n,s,i),angle:T(t.value,r,a,l,c,h),color:t.color}}function Q(e,t,n,s,i,r){if(!n)return{width:e,height:t,overHang:0};const a=function(e){return"min"===e||"xs"===e?2*Y:4*Y}(s),l=Z(s);return{width:e*(i?.6:1)-2*a,height:t-2*a-2*(r.height+l),overHang:a}}function Z(e,t){const n="min"===e||"xs"===e;return null!=t&&(t<108&&t>72||t<288&&t>252)?n?0:Y:null==t||t<108&&t>72&&!(t<288&&t>252)?n?Y/2:Y:1.5*Y}const ee=.8,te=8;function ne({max:e=100,min:c=0,value:o=0,step:h=1,size:d="fit",startAngle:x=90,angleExtent:v=360,isTrackRendered:P=!0,thresholdDisplay:T="all",indicatorSize:w=1,testId:A,...L}){const V=C.useTestId(A);a.validateRange(c,e,o,h);const j=L.onCommit||L.onInput,{classes:D,styles:F}=$.useComponentTheme(b.MeterCircleRedwoodTheme,{size:d,interaction:j?"isInteractive":void 0});return t.jsx(f.TrackResizeContainer,{class:r.classNames([D,F.textAlignCenter]),width:"100%",height:"100%",children:function(f,$){f-=te,$-=te;const b=a.hasLabelledReferenceLine(L.referenceLines),{textMeasureContent:C,getTextDimensions:A}=R.useTextDimensions(),{direction:B}=n.useUser(),H="rtl"===B;let W=x;H&&(W=l.getPositiveAngle(180-W));const q=l.getCircleSection(W,v,H),{width:Y,height:G}=U(f,$,q),ne=function(e){return e<200?"min":e<320?"xs":e<360?"sm":"md"}(Math.max(Y,G)),se=a.getDefaultReferenceLineLabelFontSize(ne),ie=s.useMemo((()=>[{tokenVar:se,key:"labelFontSize",cssProp:"font-size"},{tokenVar:u.typographyVars.body.md.lineHeight,key:"lineHeight",cssProp:"line-height"}]),[se]),{resolvedVars:re,cssContent:ae}=y.useCssVars(ie),{maxRefLabelDims:le}=a.getMaxRefLabelDims(re.fontSize,re.lineHeight,L.referenceLines,A),ce="xs"===ne||"min"===ne,oe=L.innerRadius??ee,{width:he,height:ue,overHang:de}=Q(f,$,!!L.referenceLines?.length,ne,b,le),{width:fe,height:me}=U(he,ue,q),ge="full"===q?Math.min(fe,me)/2:Math.min(fe,me),xe=2*ge,pe=s.useRef(),$e=s.useRef(S(null,q)),be=s.useRef(null),[Ce,ye]=s.useState(!1);s.useEffect((()=>{(L.onCommit||L.onInput||L.children)&&($e.current=S(be.current,q),ye(!0))}),[q]);const Re=s.useRef(!1),Me=m.usePointerEvents(o,(t=>{const n=be.current;if(t.target==n)return z(t,c,e,h,$e,W,v,q,H)}),be,pe,Re,L.onCommit,L.onInput),Se=g.useKeyboardEvents(o,c,e,h,pe,L.onCommit,L.onInput),{datatipContent:ve,datatipProps:ze}=m.useMeterDatatip(o,Re,L.datatip,L["aria-describedby"]),Pe=a.getMeterAriaProps(o,c,e,L["aria-label"],L["aria-labelledby"],L.thresholds),Te=i.mergeProps(Me,Se,ze,Pe),{trackColor:Ie,indicatorColor:ke}=a.getTrackAndIndicatorColor(o,T,L.trackColor,L.indicatorColor,L.thresholds),we={min:c,max:e,value:o,startAngle:W,angleExtent:v,size:d,section:q,isRtl:H,innerRadius:$e.current.innerRadius},{isTabbable:Ae}=p.useTabbableMode(),Le=I($e,q);return t.jsxs(t.Fragment,{children:[t.jsx("div",{class:r.classNames([D,"full"===q?F.meterCircleFullSizeStyle:"",F.textAlignInitial]),style:{width:f,height:$},tabIndex:Ae?0:-1,...V,...Te,children:t.jsxs(M.CircleWrapper,{wrapperRef:be,class:r.classNames([F.circleWrapperBaseStyle,j?F.interactiveStyle:"",L.referenceLines&&L.referenceLines.length>0?d&&F[`${q}Fit${ce?"Sm":"Lg"}Style`]:"",H?F.centerDivRtl:F.centerDivLtr]),style:{width:`${fe}px`,height:`${me}px`,transform:`translate(${K(q,de,H)})`},children:[t.jsx(M.CircleInner,{width:`${fe}px`,height:`${me}px`,class:r.classNames([F.circleTrackBaseStyle,F[`${q}Style`]]),...O(we,P,T,Ie,oe,L.thresholds,xe)}),"all"===T&&L.thresholds&&E(we,L.thresholds,P,Ie,oe,xe).map((e=>t.jsx(M.CircleInner,{class:r.classNames([F.circleTrackBaseStyle,F[`${q}Style`]]),...e,width:`${fe}px`,height:`${me}px`}))),t.jsx(M.CircleInner,{color:ke,class:r.classNames([F.circleValueBaseStyle,F[`circleValue${q}Style`],F[`${q}Style`]]),...N(we,w,oe,2*ge)}),L.referenceLines?.map((e=>{const{radius:n,length:s,angle:i,color:r}=J(we,e,oe,ce,xe),a=function(e,t,n,s){return n=l.getPositiveAngle(n),"full"===e||"bottom"===e||"top"===e?n<108&&n>72||n<288&&n>252?`calc(${t}px - ${k})`:`calc(${t/2-Math.abs(Math.cos(2*n*Math.PI/360))*s}px - ${k})`:90===n||270===n?`calc(${t}px - ${k})`:`calc(${t/2+s/2-s*Math.abs(Math.cos(2*n*Math.PI/360))}px - ${k})`}(q,f,i,xe/2+de+Z(ne,i));return t.jsx(X,{label:e.label,labelStyle:{fontSize:re.labelFontSize,lineHeight:u.typographyVars.body.md.lineHeight,...e.labelStyle},labelMaxWidth:a,radius:n,length:s,angle:i,labelOffset:Z(ne,i),color:r,section:q,halfMeterOffset:_(f,xe/2,q,H)})})),Ce&&L.children&&Le&&t.jsx("div",{class:r.classNames([F.meterCircleCenterContent]),children:L.children(Le)})]})}),ve,C,ae]})}})}function se({max:e=100,min:c=0,value:o=0,step:d=1,size:f="lg",startAngle:x=90,angleExtent:v=360,isTrackRendered:P=!0,thresholdDisplay:T="all",indicatorSize:k=1,testId:A,...L}){const V=C.useTestId(A);a.validateRange(c,e,o,d);const j=s.useRef(),{direction:D}=n.useUser(),F="rtl"===D;let U=x;F&&(U=l.getPositiveAngle(180-U));const B=l.getCircleSection(U,v,F),H=s.useRef(S(null,B)),K=s.useRef(null),[_,Y]=s.useState(!1);s.useEffect((()=>{(L.onCommit||L.onInput||L.children)&&(H.current=S(K.current,B),Y(!0))}),[f,B,L.onCommit,L.onInput,L.children]);const{textMeasureContent:G,getTextDimensions:Q}=R.useTextDimensions(),ee=s.useRef(!1),te=m.usePointerEvents(o,(t=>{const n=K.current;if(t.target==n)return z(t,c,e,d,H,U,v,B,F)}),K,j,ee,L.onCommit,L.onInput),ne=g.useKeyboardEvents(o,c,e,d,j,L.onCommit,L.onInput),{datatipContent:se,datatipProps:ie}=m.useMeterDatatip(o,ee,L.datatip,L["aria-describedby"]),re=a.getMeterAriaProps(o,c,e,L["aria-label"],L["aria-labelledby"],L.thresholds),ae=i.mergeProps(te,ne,ie,re),{trackColor:le,indicatorColor:ce}=a.getTrackAndIndicatorColor(o,T,L.trackColor,L.indicatorColor,L.thresholds),oe="bottom"===B||"top"===B?"Horizontal":"left"===B||"right"===B?"Vertical":"Full",he={min:c,max:e,value:o,startAngle:U,angleExtent:v,size:f,section:B,isRtl:F,innerRadius:H.current.innerRadius},ue=L.onCommit||L.onInput,{classes:de,styles:fe}=$.useComponentTheme(b.MeterCircleRedwoodTheme,{size:f,interaction:ue?"isInteractive":void 0}),{isTabbable:me}=p.useTabbableMode(),ge=I(H,B),xe=N(he,k,L.innerRadius),pe=a.hasLabelledReferenceLine(L.referenceLines),$e="lg"===f?"sm":"min",be=a.getDefaultReferenceLineLabelFontSize($e),Ce=s.useMemo((()=>[{tokenVar:be,key:"labelFontSize",cssProp:"font-size"},{tokenVar:u.typographyVars.body.md.lineHeight,key:"lineHeight",cssProp:"line-height"}]),[be]),{resolvedVars:ye,cssContent:Re}=y.useCssVars(Ce),{maxRefLabelDims:Me}=a.getMaxRefLabelDims(ye.fontSize,ye.lineHeight,L.referenceLines,Q),Se=O(he,P,T,le,L.innerRadius,L.thresholds);return t.jsxs(t.Fragment,{children:[t.jsx("div",{class:r.classNames([de]),tabIndex:me?0:-1,...V,...ae,children:t.jsxs(M.CircleWrapper,{wrapperRef:K,class:r.classNames([fe.circleWrapperBaseStyle,ue?fe.interactiveStyle:"",fe[`meterCircle${oe}SizeStyle`]]),style:{margin:q(f,B,!!L.referenceLines?.length,pe,Me)},children:[t.jsx(M.CircleInner,{class:r.classNames([fe.circleTrackBaseStyle,fe[`${B}Style`]]),...Se}),"all"===T&&L.thresholds&&E(he,L.thresholds,P,le,L.innerRadius).map((e=>t.jsx(M.CircleInner,{class:r.classNames([fe.circleTrackBaseStyle,fe[`${B}Style`]]),...e}))),t.jsx(M.CircleInner,{color:ce,class:r.classNames([fe.circleValueBaseStyle,fe[`circleValue${B}Style`],fe[`${B}Style`]]),...xe}),L.referenceLines?.map((e=>{const{radius:n,length:s,angle:i,color:r}=J(he,e,L.innerRadius);return t.jsx(X,{label:e.label,labelStyle:{fontSize:ye.labelFontSize,...e.labelStyle},labelMaxWidth:W(h.meterCircleVars.size,i,`calc( ${n} + ${s} - ${Se.size} + ${Z($e,i)}px)`),radius:n,labelOffset:Z($e,i),length:s,angle:i,color:r,halfMeterOffset:w,section:B})})),_&&L.children&&ge&&t.jsx("div",{class:r.classNames([fe.meterCircleCenterContent]),children:L.children(ge)})]})}),se,G,Re]})}e.MeterCircle=function({size:e,max:n=100,min:s=0,value:i=0,step:r=1,startAngle:a=90,angleExtent:l=360,isTrackRendered:c=!0,thresholdDisplay:o="all",indicatorSize:h=1,...u}){return"fit"===e?t.jsx(ne,{min:s,value:i,max:n,step:r,startAngle:a,angleExtent:l,isTrackRendered:c,thresholdDisplay:o,indicatorSize:h,...u}):t.jsx(se,{size:e||"lg",min:s,value:i,max:n,step:r,startAngle:a,angleExtent:l,isTrackRendered:c,thresholdDisplay:o,indicatorSize:h,...u})}}));
2
2
  //# sourceMappingURL=MeterCircle-9887cf28.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/compat', './useModal-536cb7ff', './Layer-447c68e6', './LayerHost-e95c5f30', './UNSAFE_Modal/themes/ModalStyles.css', './tabbableUtils-85aa6918'], (function(e,t,s,o,n,r,l,a){"use strict";const i=s.forwardRef((({variant:e="scrim"},s)=>{const o=l.multiVariantStyles({backdrop:"transparent"===e?"transparent":"scrim"});return t.jsx("div",{ref:s,class:o})}));function d(e){const t=[];let s=e.previousSibling;for(;null!=s;)1===s.nodeType&&t.push(s),s=s.previousSibling;for(s=e.nextSibling;null!=s;)1===s.nodeType&&t.push(s),s=s.nextSibling;return t}function u(e){if(!e.modalRef)return[];const t=[];let s=e.modalRef.parentElement;do{if(!s)break;d(s).forEach((e=>{"script"!==e.tagName.toLowerCase()&&"true"!==e.getAttribute("aria-hidden")&&(t.push(e),e.setAttribute("aria-hidden","true"))})),s=s.parentElement}while(s&&"body"!==s.tagName.toLowerCase());return t}const c=new class{constructor(){this.isFocusHandlerActive=!1,this.focusHandler=e=>{const t=this.getTopModal(),s=e.target;if(t&&s){const o=t.modalRef;if(o&&!o.contains(s)){a.allTabbableElements(o).length>0&&(a.focusWithin(o),e.preventDefault(),e.stopPropagation())}}},this.getTopModal=()=>this.modals.length>0?this.modals[this.modals.length-1].modal:null,this.islegacyLayerSupportAvailable=()=>null!==document.getElementById("__oj_zorder_container"),this.modals=[],this.styleBackup=[]}push(e){if(-1===this._findModalIndex(e)){if(this.modals.push({modal:e,ariaHiddenChildren:u(e)}),1===this.modals.length){const t=this._getOwnerDocument(e.modalRef).body,s=window.innerWidth-document.documentElement.clientWidth;if(s>1){Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?(this.styleBackup.push({property:"padding-left",value:t.style.paddingLeft}),t.style.paddingLeft=`${s}px`):(this.styleBackup.push({property:"padding-right",value:t.style.paddingRight}),t.style.paddingRight=`${s}px`)}this.styleBackup.push({property:"overflow",value:t.style.overflow}),this.styleBackup.push({property:"overflow-x",value:t.style.overflowX}),this.styleBackup.push({property:"overflow-y",value:t.style.overflowY}),t.style.overflow="hidden"}1!==this.modals.length||this.islegacyLayerSupportAvailable()||(document.addEventListener("focus",this.focusHandler,!0),this.isFocusHandlerActive=!0)}}pop(e){const t=this._findModalIndex(e);if(-1===t)return;if(t!==this.modals.length-1)return;this.isFocusHandlerActive&&1===this.modals.length&&document.removeEventListener("focus",this.focusHandler,!0);const s=this.modals.pop();var o;if(s&&(o=s?.ariaHiddenChildren,o.forEach((e=>{e.removeAttribute("aria-hidden")}))),0===this.modals.length){const t=this._getOwnerDocument(e.modalRef).body;this.styleBackup.forEach((({property:e,value:s})=>{t.style.setProperty(e,s)}))}}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}_findModalIndex(e){let t=-1;return this.modals.forEach(((s,o)=>{s.modal!==e||(t=o)})),t}_getOwnerDocument(e){return e&&e.ownerDocument||document}};e.Modal=({children:e,isOpen:r,onBackdropClick:a,backdropVariant:d})=>{const u=c,{backdropRef:h}=o.useModal({isOpen:r,onBackdropClick:a}),p=s.useRef(null),f=s.useRef({}),m=()=>(f.current.modalRef=p.current,f.current);return s.useEffect((()=>{r&&p.current?u?.push(m()):f.current.modalRef&&u?.pop(m())}),[r,u]),s.useEffect((()=>{const e=f.current.modalRef;return()=>{e&&u?.pop(m())}}),[u]),r?t.jsx(n.Layer,{isModal:!0,children:t.jsxs("div",{ref:p,class:l.baseStyle,children:[t.jsx(i,{ref:h,variant:d}),e]})}):null}}));
2
- //# sourceMappingURL=Modal-d6b2e905.js.map
1
+ define(['exports', 'preact/jsx-runtime', 'preact/compat', './useModal-536cb7ff', './Layer-6f29b67f', './LayerHost-639b3284', './UNSAFE_Modal/themes/ModalStyles.css', './tabbableUtils-85aa6918'], (function(e,t,s,o,n,r,l,a){"use strict";const i=s.forwardRef((({variant:e="scrim"},s)=>{const o=l.multiVariantStyles({backdrop:"transparent"===e?"transparent":"scrim"});return t.jsx("div",{ref:s,class:o})}));function d(e){const t=[];let s=e.previousSibling;for(;null!=s;)1===s.nodeType&&t.push(s),s=s.previousSibling;for(s=e.nextSibling;null!=s;)1===s.nodeType&&t.push(s),s=s.nextSibling;return t}function u(e){if(!e.modalRef)return[];const t=[];let s=e.modalRef.parentElement;do{if(!s)break;d(s).forEach((e=>{"script"!==e.tagName.toLowerCase()&&"true"!==e.getAttribute("aria-hidden")&&(t.push(e),e.setAttribute("aria-hidden","true"))})),s=s.parentElement}while(s&&"body"!==s.tagName.toLowerCase());return t}const c=new class{constructor(){this.isFocusHandlerActive=!1,this.focusHandler=e=>{const t=this.getTopModal(),s=e.target;if(t&&s){const o=t.modalRef;if(o&&!o.contains(s)){a.allTabbableElements(o).length>0&&(a.focusWithin(o),e.preventDefault(),e.stopPropagation())}}},this.getTopModal=()=>this.modals.length>0?this.modals[this.modals.length-1].modal:null,this.islegacyLayerSupportAvailable=()=>null!==document.getElementById("__oj_zorder_container"),this.modals=[],this.styleBackup=[]}push(e){if(-1===this._findModalIndex(e)){if(this.modals.push({modal:e,ariaHiddenChildren:u(e)}),1===this.modals.length){const t=this._getOwnerDocument(e.modalRef).body,s=window.innerWidth-document.documentElement.clientWidth;if(s>1){Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?(this.styleBackup.push({property:"padding-left",value:t.style.paddingLeft}),t.style.paddingLeft=`${s}px`):(this.styleBackup.push({property:"padding-right",value:t.style.paddingRight}),t.style.paddingRight=`${s}px`)}this.styleBackup.push({property:"overflow",value:t.style.overflow}),this.styleBackup.push({property:"overflow-x",value:t.style.overflowX}),this.styleBackup.push({property:"overflow-y",value:t.style.overflowY}),t.style.overflow="hidden"}1!==this.modals.length||this.islegacyLayerSupportAvailable()||(document.addEventListener("focus",this.focusHandler,!0),this.isFocusHandlerActive=!0)}}pop(e){const t=this._findModalIndex(e);if(-1===t)return;if(t!==this.modals.length-1)return;this.isFocusHandlerActive&&1===this.modals.length&&document.removeEventListener("focus",this.focusHandler,!0);const s=this.modals.pop();var o;if(s&&(o=s?.ariaHiddenChildren,o.forEach((e=>{e.removeAttribute("aria-hidden")}))),0===this.modals.length){const t=this._getOwnerDocument(e.modalRef).body;this.styleBackup.forEach((({property:e,value:s})=>{t.style.setProperty(e,s)}))}}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}_findModalIndex(e){let t=-1;return this.modals.forEach(((s,o)=>{s.modal!==e||(t=o)})),t}_getOwnerDocument(e){return e&&e.ownerDocument||document}};e.Modal=({children:e,isOpen:r,onBackdropClick:a,backdropVariant:d})=>{const u=c,{backdropRef:h}=o.useModal({isOpen:r,onBackdropClick:a}),p=s.useRef(null),f=s.useRef({}),m=()=>(f.current.modalRef=p.current,f.current);return s.useEffect((()=>{r&&p.current?u?.push(m()):f.current.modalRef&&u?.pop(m())}),[r,u]),s.useEffect((()=>{const e=f.current.modalRef;return()=>{e&&u?.pop(m())}}),[u]),r?t.jsx(n.Layer,{isModal:!0,children:t.jsxs("div",{ref:p,class:l.baseStyle,children:[t.jsx(i,{ref:h,variant:d}),e]})}):null}}));
2
+ //# sourceMappingURL=Modal-7bece8d5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal-d6b2e905.js","sources":["../../src/UNSAFE_Modal/ModalBackdrop.tsx","../../src/UNSAFE_Modal/ModalManager.ts","../../src/UNSAFE_Modal/Modal.tsx"],"sourcesContent":["import { forwardRef, ForwardedRef } from 'preact/compat';\nimport { multiVariantStyles } from './themes/ModalStyles.css';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children'>;\n\ntype Props = IntrinsicProps & {\n /**\n * Specifies the backdrop is visible or transparent. Default is 'scrim' (visible).\n */\n variant?: 'scrim' | 'transparent';\n};\n\nconst ModalBackdrop = forwardRef<HTMLDivElement, Props>(\n ({ variant = 'scrim' }, ref: ForwardedRef<HTMLDivElement | null>) => {\n const variantClasses = multiVariantStyles({\n backdrop: variant === 'transparent' ? 'transparent' : 'scrim'\n });\n\n return <div ref={ref} class={variantClasses} />;\n }\n);\n\nexport default ModalBackdrop;\n","import { focusWithin, allTabbableElements } from '../utils/PRIVATE_tabbableUtils';\n\ninterface Modal {\n modalRef?: HTMLDivElement | null;\n}\n\n/**\n * CSS property backup type.\n */\ntype StyleBackup = Array<{\n property: string;\n value: string;\n}>;\n\n/**\n * ModalDescriptor. Associates an open Modal with overlayed aria-hidden children.\n */\ntype ModalDescriptor = {\n modal: Modal;\n ariaHiddenChildren: Element[];\n};\n\n/**\n * Returns an array of element's siblings.\n *\n * @param elem\n * @returns\n */\nfunction getSiblings(elem: Element): Element[] {\n const siblings: Element[] = [];\n let sibling = elem.previousSibling;\n while (sibling != null) {\n if (sibling.nodeType === 1) {\n siblings.push(sibling as Element);\n }\n sibling = sibling.previousSibling;\n }\n sibling = elem.nextSibling;\n while (sibling != null) {\n if (sibling.nodeType === 1) {\n siblings.push(sibling as Element);\n }\n sibling = sibling.nextSibling;\n }\n return siblings;\n}\n\n/**\n * Sets aria-hidden=true on Modal ancestors and siblings.\n *\n * @param modal\n * @returns An array of modified elements.\n */\nfunction setAriaHiddenOnBackgroundElements(modal: Modal) {\n if (!modal.modalRef) {\n return [];\n }\n const ariaHiddenElements: Element[] = [];\n let node: Element | null = modal.modalRef.parentElement as Element;\n\n do {\n if (!node) {\n break;\n }\n const siblings = getSiblings(node);\n siblings.forEach((elem: Element) => {\n if (elem.tagName.toLowerCase() !== 'script' && elem.getAttribute('aria-hidden') !== 'true') {\n ariaHiddenElements.push(elem);\n elem.setAttribute('aria-hidden', 'true');\n }\n });\n node = node.parentElement;\n } while (node && node.tagName.toLowerCase() !== 'body');\n\n return ariaHiddenElements;\n}\n\n/**\n * Resets the aria-hidden state on previously aria-hidden elements.\n *\n * @param elements\n */\nfunction resetAriaHiddenOnBackgroundElements(elements: Element[]) {\n elements.forEach((elem) => {\n elem.removeAttribute('aria-hidden');\n });\n}\n\nexport default class ModalManager {\n /**\n * Array of ModalDescriptors managed by ModalManager\n */\n private modals: ModalDescriptor[];\n /**\n * Backup of the main container's (body) CSS props potentially altered by Modal.\n */\n private styleBackup: StyleBackup;\n /**\n * A flag indicating that the ModalManager's focus handler is installed\n */\n private isFocusHandlerActive = false;\n\n constructor() {\n this.modals = [];\n this.styleBackup = [];\n }\n\n /**\n * A focus handler to keep focus in the top-most modal.\n */\n private focusHandler = (event: FocusEvent) => {\n const topModal = this.getTopModal();\n const target = event.target as HTMLElement;\n\n // if there is an open modal and valid focus event target...\n if (topModal && target) {\n const modalElement = topModal.modalRef;\n if (modalElement && !modalElement.contains(target)) {\n // Focus is outside of the top modal container, let's try to fix it\n const tabbableElements = allTabbableElements(modalElement);\n if (tabbableElements.length > 0) {\n // re-directing focus to the element inside top modal\n focusWithin(modalElement);\n event.preventDefault();\n event.stopPropagation();\n }\n }\n }\n };\n\n /**\n * Registers a modal with ModalManager\n *\n * @param modal\n * @returns\n */\n push(modal: Modal) {\n const modalIndex = this._findModalIndex(modal);\n\n if (modalIndex !== -1) {\n // Do not try to register the same modal multiple times\n return;\n }\n\n this.modals.push({\n modal: modal,\n ariaHiddenChildren: setAriaHiddenOnBackgroundElements(modal)\n });\n\n // if this is the first modal in the container, block container scrolling\n if (this.modals.length === 1) {\n const ownerDocument = this._getOwnerDocument(modal.modalRef);\n const scrollContainer = ownerDocument.body;\n\n const scrollBarWidth = window.innerWidth - document.documentElement.clientWidth;\n if (scrollBarWidth > 1) {\n // in RTL, scrollbar is on the left\n const scrollBarLeft =\n Math.round(document.documentElement.getBoundingClientRect().left) +\n document.documentElement.scrollLeft;\n\n if (scrollBarLeft) {\n this.styleBackup.push({\n property: 'padding-left',\n value: scrollContainer.style.paddingLeft\n });\n scrollContainer.style.paddingLeft = `${scrollBarWidth}px`;\n } else {\n this.styleBackup.push({\n property: 'padding-right',\n value: scrollContainer.style.paddingRight\n });\n scrollContainer.style.paddingRight = `${scrollBarWidth}px`;\n }\n }\n\n this.styleBackup.push({ property: 'overflow', value: scrollContainer.style.overflow });\n this.styleBackup.push({ property: 'overflow-x', value: scrollContainer.style.overflowX });\n this.styleBackup.push({ property: 'overflow-y', value: scrollContainer.style.overflowY });\n\n scrollContainer.style.overflow = 'hidden';\n }\n\n // also install the focus handler when the first modal becomes active\n if (this.modals.length === 1 && !this.islegacyLayerSupportAvailable()) {\n document.addEventListener('focus', this.focusHandler, true);\n this.isFocusHandlerActive = true;\n }\n }\n\n /**\n * Unegisters a modal from ModalManager\n *\n * @param modal\n * @returns\n */\n pop(modal: Modal) {\n const modalIndex = this._findModalIndex(modal);\n\n if (modalIndex === -1) {\n // modal to be removed not found!'\n return;\n }\n\n if (modalIndex !== this.modals.length - 1) {\n // trying to remove modal out of order!\n return;\n }\n\n // remove the focus handler when the last modal is about to be removed\n if (this.isFocusHandlerActive && this.modals.length === 1) {\n document.removeEventListener('focus', this.focusHandler, true);\n }\n\n const modalDescriptor = this.modals.pop();\n\n if (modalDescriptor) {\n resetAriaHiddenOnBackgroundElements(modalDescriptor?.ariaHiddenChildren);\n }\n\n // if this was the last modal in the container, restore its overflow props\n if (this.modals.length === 0) {\n const ownerDocument = this._getOwnerDocument(modal.modalRef);\n const scrollContainer = ownerDocument.body;\n\n this.styleBackup.forEach(({ property, value }) => {\n scrollContainer.style.setProperty(property, value);\n });\n }\n }\n\n isTopModal(modal: Modal): boolean {\n return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal;\n }\n\n getTopModal = (): Modal | null => {\n return this.modals.length > 0 ? this.modals[this.modals.length - 1].modal : null;\n };\n\n private _findModalIndex(modal: Modal): number {\n let index = -1;\n this.modals.forEach((elem, idx) => {\n if (elem.modal === modal) {\n index = idx;\n return;\n }\n });\n return index;\n }\n\n private _getOwnerDocument(node: Node | null | undefined): Document {\n return (node && node.ownerDocument) || document;\n }\n\n // TODO: replace with a proper API\n /**\n * Checks if the legacy popup service is available\n */\n private islegacyLayerSupportAvailable = () => {\n return document.getElementById('__oj_zorder_container') !== null;\n };\n}\n","import { useEffect, useRef } from 'preact/compat';\nimport { useModal } from './hooks/useModal';\nimport { Layer } from '../UNSAFE_Layer';\nimport ModalBackdrop from './ModalBackdrop';\nimport ModalManager from './ModalManager';\nimport { baseStyle } from './themes/ModalStyles.css';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\n// Global ModalManager singleton instance\nconst globalModalManager = new ModalManager();\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children'>;\ntype UseModalProps = Parameters<typeof useModal>[0];\ntype Props = UseModalProps &\n IntrinsicProps & {\n /**\n * Determines if the modal is active.\n */\n isOpen: boolean;\n /**\n * Specifies if modal backdrop is visible or transparent. Default is 'scrim' (visible).\n */\n backdropVariant?: 'scrim' | 'transparent';\n /**\n * A callback to be invoked when a click on the modal backdrop occurs.\n */\n onBackdropClick?: (event: MouseEvent) => void;\n };\n\n/**\n * Modal is a low-level component that provides the 'modality' feature with built-in overlay (scrim).\n * It is typically used for building higher-level components (such as 'Dialog' or 'Popup') that need\n * to support modal behavior preventing interaction with the rest of the page while the modal is open.\n */\nconst Modal = ({ children, isOpen, onBackdropClick, backdropVariant }: Props) => {\n // get the global ModalContext instance\n const modalManager = globalModalManager;\n\n const { backdropRef } = useModal({ isOpen, onBackdropClick });\n // main modal element ref\n const modalRef = useRef<HTMLDivElement>(null);\n\n // modal ref cache, required to lookup the item in modal manager when the actual ref is unmounted\n const modal = useRef<{\n modalRef?: typeof modalRef.current;\n }>({});\n\n // populates and returns the modal ref cache\n const getModal = () => {\n modal.current.modalRef = modalRef.current;\n return modal.current;\n };\n\n useEffect(() => {\n if (isOpen && modalRef.current) {\n modalManager?.push(getModal());\n } else {\n if (modal.current.modalRef) {\n modalManager?.pop(getModal());\n }\n }\n }, [isOpen, modalManager]);\n\n useEffect(() => {\n const modalRef = modal.current.modalRef;\n return () => {\n if (modalRef) {\n modalManager?.pop(getModal());\n }\n };\n }, [modalManager]);\n\n return isOpen ? (\n <Layer isModal={true}>\n <div ref={modalRef} class={baseStyle}>\n <ModalBackdrop ref={backdropRef} variant={backdropVariant} />\n {children}\n </div>\n </Layer>\n ) : null;\n};\n\nexport default Modal;\n"],"names":["ModalBackdrop","forwardRef","variant","ref","variantClasses","multiVariantStyles","backdrop","_jsx","class","getSiblings","elem","siblings","sibling","previousSibling","nodeType","push","nextSibling","setAriaHiddenOnBackgroundElements","modal","modalRef","ariaHiddenElements","node","parentElement","forEach","tagName","toLowerCase","getAttribute","setAttribute","globalModalManager","constructor","this","isFocusHandlerActive","focusHandler","event","topModal","getTopModal","target","modalElement","contains","allTabbableElements","length","focusWithin","preventDefault","stopPropagation","modals","islegacyLayerSupportAvailable","document","getElementById","styleBackup","_findModalIndex","ariaHiddenChildren","scrollContainer","_getOwnerDocument","body","scrollBarWidth","window","innerWidth","documentElement","clientWidth","Math","round","getBoundingClientRect","left","scrollLeft","property","value","style","paddingLeft","paddingRight","overflow","overflowX","overflowY","addEventListener","pop","modalIndex","removeEventListener","modalDescriptor","elements","removeAttribute","setProperty","isTopModal","index","idx","ownerDocument","children","isOpen","onBackdropClick","backdropVariant","modalManager","backdropRef","useModal","useRef","getModal","current","useEffect","jsx","Layer","isModal","_jsxs","baseStyle"],"mappings":"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"}
1
+ {"version":3,"file":"Modal-7bece8d5.js","sources":["../../src/UNSAFE_Modal/ModalBackdrop.tsx","../../src/UNSAFE_Modal/ModalManager.ts","../../src/UNSAFE_Modal/Modal.tsx"],"sourcesContent":["import { forwardRef, ForwardedRef } from 'preact/compat';\nimport { multiVariantStyles } from './themes/ModalStyles.css';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children'>;\n\ntype Props = IntrinsicProps & {\n /**\n * Specifies the backdrop is visible or transparent. Default is 'scrim' (visible).\n */\n variant?: 'scrim' | 'transparent';\n};\n\nconst ModalBackdrop = forwardRef<HTMLDivElement, Props>(\n ({ variant = 'scrim' }, ref: ForwardedRef<HTMLDivElement | null>) => {\n const variantClasses = multiVariantStyles({\n backdrop: variant === 'transparent' ? 'transparent' : 'scrim'\n });\n\n return <div ref={ref} class={variantClasses} />;\n }\n);\n\nexport default ModalBackdrop;\n","import { focusWithin, allTabbableElements } from '../utils/PRIVATE_tabbableUtils';\n\ninterface Modal {\n modalRef?: HTMLDivElement | null;\n}\n\n/**\n * CSS property backup type.\n */\ntype StyleBackup = Array<{\n property: string;\n value: string;\n}>;\n\n/**\n * ModalDescriptor. Associates an open Modal with overlayed aria-hidden children.\n */\ntype ModalDescriptor = {\n modal: Modal;\n ariaHiddenChildren: Element[];\n};\n\n/**\n * Returns an array of element's siblings.\n *\n * @param elem\n * @returns\n */\nfunction getSiblings(elem: Element): Element[] {\n const siblings: Element[] = [];\n let sibling = elem.previousSibling;\n while (sibling != null) {\n if (sibling.nodeType === 1) {\n siblings.push(sibling as Element);\n }\n sibling = sibling.previousSibling;\n }\n sibling = elem.nextSibling;\n while (sibling != null) {\n if (sibling.nodeType === 1) {\n siblings.push(sibling as Element);\n }\n sibling = sibling.nextSibling;\n }\n return siblings;\n}\n\n/**\n * Sets aria-hidden=true on Modal ancestors and siblings.\n *\n * @param modal\n * @returns An array of modified elements.\n */\nfunction setAriaHiddenOnBackgroundElements(modal: Modal) {\n if (!modal.modalRef) {\n return [];\n }\n const ariaHiddenElements: Element[] = [];\n let node: Element | null = modal.modalRef.parentElement as Element;\n\n do {\n if (!node) {\n break;\n }\n const siblings = getSiblings(node);\n siblings.forEach((elem: Element) => {\n if (elem.tagName.toLowerCase() !== 'script' && elem.getAttribute('aria-hidden') !== 'true') {\n ariaHiddenElements.push(elem);\n elem.setAttribute('aria-hidden', 'true');\n }\n });\n node = node.parentElement;\n } while (node && node.tagName.toLowerCase() !== 'body');\n\n return ariaHiddenElements;\n}\n\n/**\n * Resets the aria-hidden state on previously aria-hidden elements.\n *\n * @param elements\n */\nfunction resetAriaHiddenOnBackgroundElements(elements: Element[]) {\n elements.forEach((elem) => {\n elem.removeAttribute('aria-hidden');\n });\n}\n\nexport default class ModalManager {\n /**\n * Array of ModalDescriptors managed by ModalManager\n */\n private modals: ModalDescriptor[];\n /**\n * Backup of the main container's (body) CSS props potentially altered by Modal.\n */\n private styleBackup: StyleBackup;\n /**\n * A flag indicating that the ModalManager's focus handler is installed\n */\n private isFocusHandlerActive = false;\n\n constructor() {\n this.modals = [];\n this.styleBackup = [];\n }\n\n /**\n * A focus handler to keep focus in the top-most modal.\n */\n private focusHandler = (event: FocusEvent) => {\n const topModal = this.getTopModal();\n const target = event.target as HTMLElement;\n\n // if there is an open modal and valid focus event target...\n if (topModal && target) {\n const modalElement = topModal.modalRef;\n if (modalElement && !modalElement.contains(target)) {\n // Focus is outside of the top modal container, let's try to fix it\n const tabbableElements = allTabbableElements(modalElement);\n if (tabbableElements.length > 0) {\n // re-directing focus to the element inside top modal\n focusWithin(modalElement);\n event.preventDefault();\n event.stopPropagation();\n }\n }\n }\n };\n\n /**\n * Registers a modal with ModalManager\n *\n * @param modal\n * @returns\n */\n push(modal: Modal) {\n const modalIndex = this._findModalIndex(modal);\n\n if (modalIndex !== -1) {\n // Do not try to register the same modal multiple times\n return;\n }\n\n this.modals.push({\n modal: modal,\n ariaHiddenChildren: setAriaHiddenOnBackgroundElements(modal)\n });\n\n // if this is the first modal in the container, block container scrolling\n if (this.modals.length === 1) {\n const ownerDocument = this._getOwnerDocument(modal.modalRef);\n const scrollContainer = ownerDocument.body;\n\n const scrollBarWidth = window.innerWidth - document.documentElement.clientWidth;\n if (scrollBarWidth > 1) {\n // in RTL, scrollbar is on the left\n const scrollBarLeft =\n Math.round(document.documentElement.getBoundingClientRect().left) +\n document.documentElement.scrollLeft;\n\n if (scrollBarLeft) {\n this.styleBackup.push({\n property: 'padding-left',\n value: scrollContainer.style.paddingLeft\n });\n scrollContainer.style.paddingLeft = `${scrollBarWidth}px`;\n } else {\n this.styleBackup.push({\n property: 'padding-right',\n value: scrollContainer.style.paddingRight\n });\n scrollContainer.style.paddingRight = `${scrollBarWidth}px`;\n }\n }\n\n this.styleBackup.push({ property: 'overflow', value: scrollContainer.style.overflow });\n this.styleBackup.push({ property: 'overflow-x', value: scrollContainer.style.overflowX });\n this.styleBackup.push({ property: 'overflow-y', value: scrollContainer.style.overflowY });\n\n scrollContainer.style.overflow = 'hidden';\n }\n\n // also install the focus handler when the first modal becomes active\n if (this.modals.length === 1 && !this.islegacyLayerSupportAvailable()) {\n document.addEventListener('focus', this.focusHandler, true);\n this.isFocusHandlerActive = true;\n }\n }\n\n /**\n * Unegisters a modal from ModalManager\n *\n * @param modal\n * @returns\n */\n pop(modal: Modal) {\n const modalIndex = this._findModalIndex(modal);\n\n if (modalIndex === -1) {\n // modal to be removed not found!'\n return;\n }\n\n if (modalIndex !== this.modals.length - 1) {\n // trying to remove modal out of order!\n return;\n }\n\n // remove the focus handler when the last modal is about to be removed\n if (this.isFocusHandlerActive && this.modals.length === 1) {\n document.removeEventListener('focus', this.focusHandler, true);\n }\n\n const modalDescriptor = this.modals.pop();\n\n if (modalDescriptor) {\n resetAriaHiddenOnBackgroundElements(modalDescriptor?.ariaHiddenChildren);\n }\n\n // if this was the last modal in the container, restore its overflow props\n if (this.modals.length === 0) {\n const ownerDocument = this._getOwnerDocument(modal.modalRef);\n const scrollContainer = ownerDocument.body;\n\n this.styleBackup.forEach(({ property, value }) => {\n scrollContainer.style.setProperty(property, value);\n });\n }\n }\n\n isTopModal(modal: Modal): boolean {\n return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal;\n }\n\n getTopModal = (): Modal | null => {\n return this.modals.length > 0 ? this.modals[this.modals.length - 1].modal : null;\n };\n\n private _findModalIndex(modal: Modal): number {\n let index = -1;\n this.modals.forEach((elem, idx) => {\n if (elem.modal === modal) {\n index = idx;\n return;\n }\n });\n return index;\n }\n\n private _getOwnerDocument(node: Node | null | undefined): Document {\n return (node && node.ownerDocument) || document;\n }\n\n // TODO: replace with a proper API\n /**\n * Checks if the legacy popup service is available\n */\n private islegacyLayerSupportAvailable = () => {\n return document.getElementById('__oj_zorder_container') !== null;\n };\n}\n","import { useEffect, useRef } from 'preact/compat';\nimport { useModal } from './hooks/useModal';\nimport { Layer } from '../UNSAFE_Layer';\nimport ModalBackdrop from './ModalBackdrop';\nimport ModalManager from './ModalManager';\nimport { baseStyle } from './themes/ModalStyles.css';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\n// Global ModalManager singleton instance\nconst globalModalManager = new ModalManager();\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children'>;\ntype UseModalProps = Parameters<typeof useModal>[0];\ntype Props = UseModalProps &\n IntrinsicProps & {\n /**\n * Determines if the modal is active.\n */\n isOpen: boolean;\n /**\n * Specifies if modal backdrop is visible or transparent. Default is 'scrim' (visible).\n */\n backdropVariant?: 'scrim' | 'transparent';\n /**\n * A callback to be invoked when a click on the modal backdrop occurs.\n */\n onBackdropClick?: (event: MouseEvent) => void;\n };\n\n/**\n * Modal is a low-level component that provides the 'modality' feature with built-in overlay (scrim).\n * It is typically used for building higher-level components (such as 'Dialog' or 'Popup') that need\n * to support modal behavior preventing interaction with the rest of the page while the modal is open.\n */\nconst Modal = ({ children, isOpen, onBackdropClick, backdropVariant }: Props) => {\n // get the global ModalContext instance\n const modalManager = globalModalManager;\n\n const { backdropRef } = useModal({ isOpen, onBackdropClick });\n // main modal element ref\n const modalRef = useRef<HTMLDivElement>(null);\n\n // modal ref cache, required to lookup the item in modal manager when the actual ref is unmounted\n const modal = useRef<{\n modalRef?: typeof modalRef.current;\n }>({});\n\n // populates and returns the modal ref cache\n const getModal = () => {\n modal.current.modalRef = modalRef.current;\n return modal.current;\n };\n\n useEffect(() => {\n if (isOpen && modalRef.current) {\n modalManager?.push(getModal());\n } else {\n if (modal.current.modalRef) {\n modalManager?.pop(getModal());\n }\n }\n }, [isOpen, modalManager]);\n\n useEffect(() => {\n const modalRef = modal.current.modalRef;\n return () => {\n if (modalRef) {\n modalManager?.pop(getModal());\n }\n };\n }, [modalManager]);\n\n return isOpen ? (\n <Layer isModal={true}>\n <div ref={modalRef} class={baseStyle}>\n <ModalBackdrop ref={backdropRef} variant={backdropVariant} />\n {children}\n </div>\n </Layer>\n ) : null;\n};\n\nexport default Modal;\n"],"names":["ModalBackdrop","forwardRef","variant","ref","variantClasses","multiVariantStyles","backdrop","_jsx","class","getSiblings","elem","siblings","sibling","previousSibling","nodeType","push","nextSibling","setAriaHiddenOnBackgroundElements","modal","modalRef","ariaHiddenElements","node","parentElement","forEach","tagName","toLowerCase","getAttribute","setAttribute","globalModalManager","constructor","this","isFocusHandlerActive","focusHandler","event","topModal","getTopModal","target","modalElement","contains","allTabbableElements","length","focusWithin","preventDefault","stopPropagation","modals","islegacyLayerSupportAvailable","document","getElementById","styleBackup","_findModalIndex","ariaHiddenChildren","scrollContainer","_getOwnerDocument","body","scrollBarWidth","window","innerWidth","documentElement","clientWidth","Math","round","getBoundingClientRect","left","scrollLeft","property","value","style","paddingLeft","paddingRight","overflow","overflowX","overflowY","addEventListener","pop","modalIndex","removeEventListener","modalDescriptor","elements","removeAttribute","setProperty","isTopModal","index","idx","ownerDocument","children","isOpen","onBackdropClick","backdropVariant","modalManager","backdropRef","useModal","useRef","getModal","current","useEffect","jsx","Layer","isModal","_jsxs","baseStyle"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './dayUtils-686df37a', './getFormatParse-c1655d39', './logger-0f873e29', './calendarDateUtils-1783eb17', 'preact/hooks', './StyledDatePickerButton-e01ce5fc', 'preact/compat', './useTranslationBundle-516b1b83', './useCellNavigation-1feec094', './PRIVATE_MonthView/themes/DayCellStyles.css', './useUser-85c781ea', './Grid-160f4885', './PRIVATE_MonthView/themes/redwood/MonthViewTheme', './useComponentTheme-5aa41a8f', './PRIVATE_MonthView/themes/MonthViewContract.css', './PRIVATE_MonthView/themes/WeekNumberCellStyle.css'], (function(e,t,a,s,o,r,n,i,l,d,c,u,h,m,y,p,g,D){"use strict";const f=()=>({state:"enabled"}),w=e=>{const{buttonProps:a}=(({date:e,dayFormatter:t=f,dateFormatter:a,isAdjacentMonth:s,isDisabled:o,isFocusable:n,isFocused:i,isHidden:u,isReadonly:h,isSelected:m,isToday:y,onAction:p,onNavigation:g})=>{const{state:D}=t(e),w="disabled"===D,b="restricted"===D,T=c.useFocusableCell({isFocusable:n,isFocused:i}),k=l.useCallback((e=>{o||h||w||b||p(e)}),[o,w,h,b,p]),S=c.useCellNavigation({navigationMap:{ArrowLeft:{ltr:"previousDay",rtl:"nextDay"},ArrowRight:{ltr:"nextDay",rtl:"previousDay"},ArrowDown:"nextWeek",ArrowUp:"previousWeek",PageDown:"nextMonth",PageUp:"previousMonth",Home:"firstDayOfMonth",End:"lastDayOfMonth",ShiftPageDown:"nextYear",ShiftPageUp:"previousYear",CtrlAltT:"today"},payload:{date:e},onAction:k,onNavigation:g}),x=d.useTranslationBundle("@oracle/oraclejet-preact"),C=x.datePicker_today(),M=x.datePicker_selected(),v=x.datePicker_restricted(),j=a(r.getIsoDateStr(e.year,e.month,e.day));let P=y?`${C}, ${j}`:j;P=b?`${P}, ${v}`:P,P=m?`${P}, ${M}`:P;const V=r.toJSDate(e.year,e.month,e.day).getDate().toString();return{buttonProps:{"aria-label":P,...(u||o||w||b)&&{"aria-disabled":!0},isActivable:!(o||h||w||b),isAdjacentMonth:s,isDimmed:o||w,isHidden:u,isHoverable:!(o||h||w||b),isReadonly:h,isSelected:m,isRestricted:b,isToday:y,label:V,...T,...S}}})(e);return t.jsx("div",{role:"gridcell",class:u.dayCellStyles,children:t.jsx(i.StyledDatePickerButton,{...a})})},b=({startDateOfWeek:e})=>{const a=(e=>{const t=r.toJSDate(e.year,e.month,e.day),a=t.getUTCDay();0!==a&&1!==a&&6!==a&&o.warn("calculateWeekNumber's date property's getUTCDay() is assumed to be 0 (Sunday), 1 (Monday) or 6 (Saturday)\n since that is the first day of the week for the locale's JET supports."),1!==a&&t.setUTCDate(t.getUTCDate()+(0===a?1:2)),t.setUTCDate(t.getUTCDate()+3);const s=r.toJSDate(t.getUTCFullYear(),1,1);return Math.floor(Math.round((t.getTime()-s.getTime())/864e5)/7)+1})(e),s=d.useTranslationBundle("@oracle/oraclejet-preact");return t.jsx("div",{"aria-label":s.datePicker_weekNum({NUM:String(a)}),class:D.weekNumberCellStyles,role:"rowheader",children:t.jsx("span",{class:D.weekNumberStyles,children:a})})};function T(e,t){return e.year===t.year&&e.month===t.month&&e.day===t.day}e.MonthView=({dayFormatter:e,daysOutsideMonth:o="hidden",isReadonly:i=!1,max:l,min:d,onAction:c,onNavigation:u,selectedDate:D,focusableDate:f,isFocused:k=!1,testId:S,todaysDate:x,weekDisplay:C="none"})=>{const{locale:M}=h.useUser(),v=a.getWeeksInMonth(f.year,f.month,M),{baseTheme:j,styles:P}=p.useComponentTheme(y.MonthViewRedwoodTheme,{}),V="number"===C,A=`repeat(${V?8:7}, 1fr)`,F=n.useMemo((()=>{r.checkNoCalendarExtension(M);const e={locale:M,dateStyle:"full"},{format:t}=s.getFormatParse(e);return t}),[M]),U=r.formatFullCalendarDate(M,f,"month");return t.jsx("div",{class:j,children:t.jsxs(m.Grid,{gap:g.monthViewScaleVars.rowGap,"aria-label":U,role:"grid",testId:S,children:[(()=>{const e=a.getDaysOfWeekNames(M,"short");return t.jsx("div",{class:P.sticky,children:t.jsxs(m.Grid,{role:"row","aria-hidden":"true",gridTemplateColumns:A,gap:g.monthViewScaleVars.columnGap,children:[V&&t.jsx("div",{role:"presentation"}),e.map((e=>t.jsx("div",{role:"columnheader",class:P.dayOfTheWeek,children:t.jsx("span",{children:e})})))]})})})(),(()=>{const s=[];for(let n=0;n<v;n++){const h=a.getStartOfWeek(f.year,f.month,1,M),y=a.getDatesInWeek(n,h.year,h.month,h.day),p=y.map((a=>{const s=r.isDateOutOfRange(a,d,l),n=!!D&&T(a,D),h=T(a,x),m=T(a,f),y=(p=f,a.month!==p.month);var p;const g=y&&"hidden"===o;return t.jsx(w,{date:a,dateFormatter:F,dayFormatter:e,isAdjacentMonth:y,isDisabled:s,isFocusable:m,isFocused:m&&k,isHidden:g,isReadonly:i,isSelected:n,isToday:h,onAction:c,onNavigation:u},`${a.year}-${a.month}-${a.day}`)}));s.push(t.jsxs(m.Grid,{role:"row",gridTemplateColumns:A,gap:g.monthViewScaleVars.columnGap,children:[V&&t.jsx(b,{startDateOfWeek:y[0]}),p]},n))}return s})()]})})}}));
2
- //# sourceMappingURL=MonthView-4a0401cd.js.map
1
+ define(['exports', 'preact/jsx-runtime', './dayUtils-686df37a', './getFormatParse-c1655d39', './logger-0f873e29', './calendarDateUtils-1783eb17', 'preact/hooks', './StyledDatePickerButton-e01ce5fc', 'preact/compat', './useTranslationBundle-d07d4b20', './useCellNavigation-1feec094', './PRIVATE_MonthView/themes/DayCellStyles.css', './useUser-3ef25571', './Grid-8911aa0f', './PRIVATE_MonthView/themes/redwood/MonthViewTheme', './useComponentTheme-5aa41a8f', './PRIVATE_MonthView/themes/MonthViewContract.css', './PRIVATE_MonthView/themes/WeekNumberCellStyle.css'], (function(e,t,a,s,o,r,n,i,l,d,c,u,h,m,y,p,g,D){"use strict";const f=()=>({state:"enabled"}),w=e=>{const{buttonProps:a}=(({date:e,dayFormatter:t=f,dateFormatter:a,isAdjacentMonth:s,isDisabled:o,isFocusable:n,isFocused:i,isHidden:u,isReadonly:h,isSelected:m,isToday:y,onAction:p,onNavigation:g})=>{const{state:D}=t(e),w="disabled"===D,T="restricted"===D,b=c.useFocusableCell({isFocusable:n,isFocused:i}),k=l.useCallback((e=>{o||h||w||T||p(e)}),[o,w,h,T,p]),S=c.useCellNavigation({navigationMap:{ArrowLeft:{ltr:"previousDay",rtl:"nextDay"},ArrowRight:{ltr:"nextDay",rtl:"previousDay"},ArrowDown:"nextWeek",ArrowUp:"previousWeek",PageDown:"nextMonth",PageUp:"previousMonth",Home:"firstDayOfMonth",End:"lastDayOfMonth",ShiftPageDown:"nextYear",ShiftPageUp:"previousYear",CtrlAltT:"today"},payload:{date:e},onAction:k,onNavigation:g}),x=d.useTranslationBundle("@oracle/oraclejet-preact"),C=x.datePicker_today(),M=x.datePicker_selected(),v=x.datePicker_restricted(),j=a(r.getIsoDateStr(e.year,e.month,e.day));let P=y?`${C}, ${j}`:j;P=T?`${P}, ${v}`:P,P=m?`${P}, ${M}`:P;const V=r.toJSDate(e.year,e.month,e.day).getDate().toString();return{buttonProps:{"aria-label":P,...(u||o||w||T)&&{"aria-disabled":!0},isActivable:!(o||h||w||T),isAdjacentMonth:s,isDimmed:o||w,isHidden:u,isHoverable:!(o||h||w||T),isReadonly:h,isSelected:m,isRestricted:T,isToday:y,label:V,...b,...S}}})(e);return t.jsx("div",{role:"gridcell",class:u.dayCellStyles,children:t.jsx(i.StyledDatePickerButton,{...a})})},T=({startDateOfWeek:e})=>{const a=(e=>{const t=r.toJSDate(e.year,e.month,e.day),a=t.getUTCDay();0!==a&&1!==a&&6!==a&&o.warn("calculateWeekNumber's date property's getUTCDay() is assumed to be 0 (Sunday), 1 (Monday) or 6 (Saturday)\n since that is the first day of the week for the locale's JET supports."),1!==a&&t.setUTCDate(t.getUTCDate()+(0===a?1:2)),t.setUTCDate(t.getUTCDate()+3);const s=r.toJSDate(t.getUTCFullYear(),1,1);return Math.floor(Math.round((t.getTime()-s.getTime())/864e5)/7)+1})(e),s=d.useTranslationBundle("@oracle/oraclejet-preact");return t.jsx("div",{"aria-label":s.datePicker_weekNum({NUM:String(a)}),class:D.weekNumberCellStyles,role:"rowheader",children:t.jsx("span",{class:D.weekNumberStyles,children:a})})};function b(e,t){return e.year===t.year&&e.month===t.month&&e.day===t.day}e.MonthView=({dayFormatter:e,daysOutsideMonth:o="hidden",isReadonly:i=!1,max:l,min:d,onAction:c,onNavigation:u,selectedDate:D,focusableDate:f,isFocused:k=!1,testId:S,todaysDate:x,weekDisplay:C="none"})=>{const{locale:M}=h.useUser(),v=a.getWeeksInMonth(f.year,f.month,M),{baseTheme:j,styles:P}=p.useComponentTheme(y.MonthViewRedwoodTheme,{}),V="number"===C,A=`repeat(${V?8:7}, 1fr)`,F=n.useMemo((()=>{r.checkNoCalendarExtension(M);const e={locale:M,dateStyle:"full"},{format:t}=s.getFormatParse(e);return t}),[M]),U=r.formatFullCalendarDate(M,f,"month");return t.jsx("div",{class:j,children:t.jsxs(m.Grid,{gap:g.monthViewScaleVars.rowGap,"aria-label":U,role:"grid",testId:S,children:[(()=>{const e=a.getDaysOfWeekNames(M,"short");return t.jsx("div",{class:P.sticky,children:t.jsxs(m.Grid,{role:"row","aria-hidden":"true",gridTemplateColumns:A,gap:g.monthViewScaleVars.columnGap,children:[V&&t.jsx("div",{role:"presentation"}),e.map((e=>t.jsx("div",{role:"columnheader",class:P.dayOfTheWeek,children:t.jsx("span",{children:e})})))]})})})(),(()=>{const s=[];for(let n=0;n<v;n++){const h=a.getStartOfWeek(f.year,f.month,1,M),y=a.getDatesInWeek(n,h.year,h.month,h.day),p=y.map((a=>{const s=r.isDateOutOfRange(a,d,l),n=!!D&&b(a,D),h=b(a,x),m=b(a,f),y=(p=f,a.month!==p.month);var p;const g=y&&"hidden"===o;return t.jsx(w,{date:a,dateFormatter:F,dayFormatter:e,isAdjacentMonth:y,isDisabled:s,isFocusable:m,isFocused:m&&k,isHidden:g,isReadonly:i,isSelected:n,isToday:h,onAction:c,onNavigation:u},`${a.year}-${a.month}-${a.day}`)}));s.push(t.jsxs(m.Grid,{role:"row",gridTemplateColumns:A,gap:g.monthViewScaleVars.columnGap,children:[V&&t.jsx(T,{startDateOfWeek:y[0]}),p]},n))}return s})()]})})}}));
2
+ //# sourceMappingURL=MonthView-3d0968a1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MonthView-4a0401cd.js","sources":["../../src/PRIVATE_MonthView/useDayCell.ts","../../src/PRIVATE_MonthView/DayCell.tsx","../../src/PRIVATE_MonthView/WeekNumberCell.tsx","../../src/PRIVATE_MonthView/MonthView.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { DateISOStr } from '#UNSAFE_IntlDateTime';\nimport { FormatterFunc } from '#UNSAFE_IntlFormatParse';\nimport { getIsoDateStr, toJSDate } from '#utils/UNSAFE_calendarDateUtils';\nimport { ComponentProps, useCallback } from 'preact/compat';\n\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { useFocusableCell } from '#UNSAFE_DatePicker/useFocusableCell';\nimport { useCellNavigation } from '#UNSAFE_DatePicker/useCellNavigation';\nimport { StyledDatePickerButton } from '#PRIVATE_StyledDatePickerButton';\n\ntype NavigationDirections =\n | 'previousDay'\n | 'nextDay'\n | 'previousWeek'\n | 'nextWeek'\n | 'previousMonth'\n | 'nextMonth'\n | 'previousYear'\n | 'nextYear'\n | 'firstDayOfMonth'\n | 'lastDayOfMonth'\n | 'today';\n\nexport type DayFormatOptions = {\n state: 'enabled' | 'disabled' | 'restricted';\n};\n\n// These are the properties the useDayCell hook takes.\nexport type UseDayCellProps = {\n /**\n * Date of the day cell. This will be formatted as a full date and put in the aria-label.\n */\n date: CalendarDateRequired;\n /**\n * A function used to format the day cell date as a full date.\n */\n dateFormatter: FormatterFunc<DateISOStr>;\n /**\n * A function that receives a date and returns an object specifying how to format the provided date.\n * This function is called for each date that is rendered and this can be used to control how individual\n * dates are rendered - disabled, restricted, or enabled.\n * @param date The date to format\n * @returns The format options\n */\n dayFormatter?: (date: CalendarDateRequired) => DayFormatOptions;\n /**\n * Whether the day cell is in an adjacent month, not the current month.\n */\n isAdjacentMonth: boolean;\n /**\n * Whether the day cell is disabled, like if it is out of the min/max range.\n */\n isDisabled?: boolean;\n /**\n * Whether the day cell is focusable, meaning it will have tabIndex 0.\n */\n isFocusable: boolean;\n /**\n * Whether the day cell has focus.\n */\n isFocused: boolean;\n /**\n * Whether the day cell is hidden. For example, days outside of the current month are hidden by default.\n */\n isHidden: boolean;\n /**\n * Whether the day cell is readonly. It is not activeable.\n */\n isReadonly: boolean;\n /**\n * Whether the day cell looks selected.\n */\n isSelected: boolean;\n /**\n * Whether the day cell's date is today.\n */\n isToday: boolean;\n /**\n * A callback that will be invoked when the user selects the date by clicking on a day cell or selecting the enter or space key on a day cell.\n * @param payload The payload containing the date represented by this cell.\n */\n onAction: (payload: { date: CalendarDateRequired }) => void;\n /**\n * A callback that will be invoked when the user navigates.\n */\n onNavigation: (detail: { direction: NavigationDirections; date: CalendarDateRequired }) => void;\n};\n\n/**\n * The useDayCell hook returns properties for an individual DayCell. The properties returned should be spread on the StyledDatePickerButton.\n * These include the event handlers for keydown and click.\n */\nexport const useDayCell = ({\n date,\n dayFormatter = defaultDayFormatter,\n dateFormatter,\n isAdjacentMonth,\n isDisabled,\n isFocusable,\n isFocused,\n isHidden,\n isReadonly,\n isSelected,\n isToday,\n onAction,\n onNavigation\n}: UseDayCellProps) => {\n // apply day formatting\n const { state } = dayFormatter(date);\n const isDisabledFormat = state === 'disabled';\n const isRestrictedFormat = state === 'restricted';\n\n // Focus the day cell with isFocused true when the state updates.\n const buttonProps = useFocusableCell({ isFocusable, isFocused });\n // Override onAction to not call it if disabled, readonly or restricted\n const handleAction: UseDayCellProps['onAction'] = useCallback(\n (payload) => {\n if (isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat) return;\n onAction(payload);\n },\n [isDisabled, isDisabledFormat, isReadonly, isRestrictedFormat, onAction]\n );\n const buttonEventHandlers = useCellNavigation({\n navigationMap: {\n ArrowLeft: { ltr: 'previousDay', rtl: 'nextDay' },\n ArrowRight: { ltr: 'nextDay', rtl: 'previousDay' },\n ArrowDown: 'nextWeek',\n ArrowUp: 'previousWeek',\n PageDown: 'nextMonth',\n PageUp: 'previousMonth',\n Home: 'firstDayOfMonth',\n End: 'lastDayOfMonth',\n ShiftPageDown: 'nextYear',\n ShiftPageUp: 'previousYear',\n CtrlAltT: 'today'\n },\n payload: { date },\n onAction: handleAction,\n onNavigation\n });\n\n // For accessibility, we want a full date.\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const today = translations.datePicker_today();\n const selected = translations.datePicker_selected();\n const restricted = translations.datePicker_restricted();\n\n const dateIsoStr = getIsoDateStr(date.year, date.month, date.day);\n const formattedDate = dateFormatter(dateIsoStr);\n let ariaLabel = isToday ? `${today}, ${formattedDate}` : formattedDate;\n ariaLabel = isRestrictedFormat ? `${ariaLabel}, ${restricted}` : ariaLabel;\n ariaLabel = isSelected ? `${ariaLabel}, ${selected}` : ariaLabel;\n const dayOfMonth = toJSDate(date.year, date.month, date.day).getDate().toString();\n\n return {\n buttonProps: {\n 'aria-label': ariaLabel,\n ...((isHidden || isDisabled || isDisabledFormat || isRestrictedFormat) && {\n 'aria-disabled': true\n }),\n isActivable: !(isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat),\n isAdjacentMonth,\n isDimmed: isDisabled || isDisabledFormat,\n isHidden,\n isHoverable: !(isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat),\n isReadonly,\n isSelected,\n isRestricted: isRestrictedFormat,\n isToday,\n label: dayOfMonth,\n ...buttonProps,\n ...buttonEventHandlers\n } as ComponentProps<typeof StyledDatePickerButton>\n };\n};\n\n/**\n * A default day formatter that always formats as enabled state.\n */\nconst defaultDayFormatter = () => ({ state: 'enabled' }) as DayFormatOptions;\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { StyledDatePickerButton } from '#PRIVATE_StyledDatePickerButton';\nimport { UseDayCellProps, useDayCell } from './useDayCell';\nimport { dayCellStyles } from './themes/DayCellStyles.css';\n\ntype PickedUseDayCellProps = Pick<\n UseDayCellProps,\n | 'date'\n | 'dateFormatter'\n | 'dayFormatter'\n | 'isAdjacentMonth'\n | 'isDisabled'\n | 'isFocusable'\n | 'isFocused'\n | 'isHidden'\n | 'isReadonly'\n | 'isSelected'\n | 'isToday'\n | 'onAction'\n | 'onNavigation'\n>;\n\ntype DayCellProps = PickedUseDayCellProps;\n\n/**\n * The DayCell is the cell within the DatePicker's month view that contains the day in the month view.\n * This component will format the date for the aria-label.\n * The DayCell components uses the useDayCell hook to handle the user interactions with the day cell.\n */\nexport const DayCell = (props: DayCellProps) => {\n const { buttonProps } = useDayCell(props);\n // buttonProps, e.g., tabIndex, aria-label, onclick, onkeydown and visual states\n return (\n <div role=\"gridcell\" class={dayCellStyles}>\n <StyledDatePickerButton {...buttonProps} />\n </div>\n );\n};\n","import { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { CalendarDateRequired, toJSDate } from '#utils/UNSAFE_calendarDateUtils';\nimport { weekNumberCellStyles, weekNumberStyles } from './themes/WeekNumberCellStyle.css';\nimport * as Logger from '../utils/UNSAFE_logger';\n\ntype Props = {\n /**\n * startDateOfWeek is the first date of the week row\n */\n startDateOfWeek: CalendarDateRequired;\n};\n\n/**\n * The ISO 8601 definition for week 01 is the week with the first Thursday of the Gregorian year (i.e. of January) in it.\n * https://en.wikipedia.org/wiki/ISO_week_date\n * @param date The first date of the week row to be used to calculate the week number.\n * The date must be a Saturday, Sunday, or Monday. We assume this because the week for\n * all the locales we support start on one of these days.\n * @returns the number of week in the year\n */\nconst calculateWeekNumber = (date: CalendarDateRequired) => {\n const checkDate = toJSDate(date.year, date.month, date.day);\n const dayNumber = checkDate.getUTCDay(); // 0 for Sunday, 1 for Monday, 2 for Tuesday, etc.\n\n if (dayNumber !== 0 && dayNumber !== 1 && dayNumber !== 6) {\n // This message is for internal JET developers. We should never see this message. In all locales the day of the\n // week starts on Sunday, Monday or Saturday.\n Logger.warn(`calculateWeekNumber's date property's getUTCDay() is assumed to be 0 (Sunday), 1 (Monday) or 6 (Saturday)\n since that is the first day of the week for the locale's JET supports.`);\n }\n\n // For ISO week, we set the start of the week to Monday\n if (dayNumber !== 1) {\n // If it is already Monday, do nothing.\n // If it is Sunday (0), add 1 to move it up to Monday.\n // If it is Saturday (6), move it up two days to Monday.\n checkDate.setUTCDate(checkDate.getUTCDate() + (dayNumber === 0 ? 1 : 2));\n }\n\n // Find Thursday (day value of 4) of this week. Since we know checkDate at this point is a Monday,\n // we move it up 3 days.\n checkDate.setUTCDate(checkDate.getUTCDate() + 3);\n\n // Create the start of the year date\n const janFirst = toJSDate(checkDate.getUTCFullYear(), 1, 1);\n\n return Math.floor(Math.round((checkDate.getTime() - janFirst.getTime()) / 86400000) / 7) + 1;\n};\n\n/**\n * The WeekNumberCell is the cell at the start of a week's row within the DatePicker's\n * month view that contains the week's number within the year. This displays when\n * the DatePicker's 'weekDisplay' prop is set to 'number'.\n * This component will format the week number for the aria-label.\n */\nconst WeekNumberCell = ({ startDateOfWeek }: Props) => {\n const weekNumber = calculateWeekNumber(startDateOfWeek);\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n return (\n <div\n aria-label={translations.datePicker_weekNum({ NUM: String(weekNumber) })}\n class={weekNumberCellStyles}\n role=\"rowheader\">\n <span class={weekNumberStyles}>{weekNumber}</span>\n </div>\n );\n};\n\nexport { WeekNumberCell };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport {\n getWeeksInMonth,\n getDatesInWeek,\n getStartOfWeek,\n getDaysOfWeekNames,\n WeekInMonthIndex\n} from '#utils/PRIVATE_dayUtils';\nimport { ComponentProps } from 'preact/compat';\nimport { useMemo } from 'preact/hooks';\nimport {\n CalendarDateRequired,\n checkNoCalendarExtension,\n formatFullCalendarDate,\n isDateOutOfRange\n} from '#utils/UNSAFE_calendarDateUtils';\nimport { getFormatParse, NativeDateTimeOptions } from '#UNSAFE_IntlDateTime';\nimport { DayCell } from './DayCell';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { Grid } from '#UNSAFE_Grid';\nimport {\n MonthViewStyles,\n MonthViewVariantOptions\n} from '#PRIVATE_MonthView/themes/MonthViewStyles.css';\nimport { MonthViewRedwoodTheme } from '#PRIVATE_MonthView/themes/redwood/MonthViewTheme';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { monthViewScaleVars } from '#PRIVATE_MonthView/themes/MonthViewContract.css';\nimport { WeekNumberCell } from './WeekNumberCell';\n\ntype PickedDayCellProps = Pick<\n ComponentProps<typeof DayCell>,\n 'dayFormatter' | 'onAction' | 'onNavigation'\n>;\n\ntype MonthViewProps = TestIdProps &\n PickedDayCellProps & {\n /**\n * The daysOutsideMonth property affects the day cells that are outside of the current month.\n * If set to 'hidden', then the days outside of the current month will be hidden.\n * If set to 'selectable', then the days outside of the current month will be visible and selectable.\n * This defaults to 'hidden'.\n */\n daysOutsideMonth?: 'hidden' | 'selectable';\n /**\n * The MonthView renders with the month of the focusableDate.\n * The focusableDate is the only day in the MonthView that has tabIndex: 0 on it.\n * The focusableDate doesn't have focus until the user tabs in to the Month View.\n * The focusableDate is never undefined.\n */\n focusableDate: CalendarDateRequired;\n /**\n * If set to true, the focusableDate will be focused and you will see the focus ring. It will be\n * false when no date has focus.\n * @default false\n */\n isFocused?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * The maximum selectable date. The max must be greater than the min if they are both specified.\n */\n max?: CalendarDateRequired;\n /**\n * The minimum selectable date. The min must be less than the max if they are both specified.\n */\n min?: CalendarDateRequired;\n /**\n * The selected date of the MonthView, or undefined is there is no selected date. This\n * is used to highlight the selected day cell if it is within the min/max range.\n */\n selectedDate?: CalendarDateRequired;\n /**\n * Today's date. This is used to highlight the Today day cell.\n */\n todaysDate: CalendarDateRequired;\n /**\n * Whether week of the year will be shown in the DatePicker. The default calculation follows the\n * ISO 8601 definition: the first week of the year contains the first Thursday of the year.\n * This means that some days from one year may be placed into weeks 'belonging' to another year.\n */\n weekDisplay?: 'none' | 'number';\n };\n\n/**\n * A MonthView is a month interface that allows users to select a single date. The MonthView is the week day header\n * abbreviations and the days of the month. A MonthView is used inside of a DatePicker\n * along with the DatePickerHeader and the MonthGridView and YearGridView.\n */\nexport const MonthView = ({\n dayFormatter,\n daysOutsideMonth = 'hidden',\n isReadonly = false,\n max,\n min,\n onAction,\n onNavigation,\n selectedDate,\n focusableDate,\n isFocused = false,\n testId,\n todaysDate,\n weekDisplay = 'none'\n}: MonthViewProps) => {\n const { locale } = useUser();\n const weeksInMonth = getWeeksInMonth(focusableDate.year, focusableDate.month, locale);\n const { baseTheme, styles } = useComponentTheme<MonthViewVariantOptions, MonthViewStyles>(\n MonthViewRedwoodTheme,\n {}\n );\n const isWeekNumberDisplayed = weekDisplay === 'number';\n const gridTemplateColumns = `repeat(${isWeekNumberDisplayed ? 8 : 7}, 1fr)`;\n\n const dateFormatter = useMemo(() => {\n checkNoCalendarExtension(locale);\n const dateFormatOptions: NativeDateTimeOptions = {\n locale,\n dateStyle: 'full'\n };\n const { format } = getFormatParse(dateFormatOptions);\n return format;\n }, [locale]);\n\n const renderMonthViewHeaderRow = () => {\n const weekDays = getDaysOfWeekNames(locale, 'short');\n\n return (\n <div class={styles.sticky}>\n <Grid\n role=\"row\"\n aria-hidden=\"true\"\n gridTemplateColumns={gridTemplateColumns}\n gap={monthViewScaleVars.columnGap}>\n {isWeekNumberDisplayed && <div role=\"presentation\" />}\n {weekDays.map((day) => (\n <div role=\"columnheader\" class={styles.dayOfTheWeek}>\n <span>{day}</span>\n </div>\n ))}\n </Grid>\n </div>\n );\n };\n\n const renderMonthView = () => {\n const calendarGrid: JSX.Element[] = [];\n\n for (let weekIndex = 0; weekIndex < weeksInMonth; weekIndex++) {\n const startDateOfWeek = getStartOfWeek(focusableDate.year, focusableDate.month, 1, locale);\n\n const weekDates = getDatesInWeek(\n weekIndex as WeekInMonthIndex,\n startDateOfWeek.year,\n startDateOfWeek.month,\n startDateOfWeek.day\n );\n\n const weekCells = weekDates.map((dayCellDate) => {\n // This figures out the visual state of the DayCell.\n const isDisabled = isDateOutOfRange(dayCellDate, min, max);\n\n // Even if the selected date is out of range, the UX design shows it as selected.\n const isSelected = selectedDate ? isSameDate(dayCellDate, selectedDate) : false;\n const isToday = isSameDate(dayCellDate, todaysDate);\n const isFocusable = isSameDate(dayCellDate, focusableDate);\n const isAdjacentMonth = isOutOfMonth(dayCellDate, focusableDate);\n const isHidden = isAdjacentMonth && daysOutsideMonth === 'hidden';\n\n return (\n <DayCell\n key={`${dayCellDate.year}-${dayCellDate.month}-${dayCellDate.day}`}\n date={dayCellDate}\n dateFormatter={dateFormatter}\n dayFormatter={dayFormatter}\n isAdjacentMonth={isAdjacentMonth}\n isDisabled={isDisabled}\n isFocusable={isFocusable}\n isFocused={isFocusable && isFocused}\n isHidden={isHidden}\n isReadonly={isReadonly}\n isSelected={isSelected}\n isToday={isToday}\n onAction={onAction}\n onNavigation={onNavigation}></DayCell>\n );\n });\n\n calendarGrid.push(\n <Grid\n key={weekIndex}\n role=\"row\"\n gridTemplateColumns={gridTemplateColumns}\n gap={monthViewScaleVars.columnGap}>\n {isWeekNumberDisplayed && <WeekNumberCell startDateOfWeek={weekDates[0]} />}\n {weekCells}\n </Grid>\n );\n }\n\n return calendarGrid;\n };\n\n const monthViewAriaLabel = formatFullCalendarDate(locale, focusableDate, 'month');\n return (\n <div class={baseTheme}>\n <Grid\n gap={monthViewScaleVars.rowGap}\n aria-label={monthViewAriaLabel}\n role=\"grid\"\n testId={testId}>\n {renderMonthViewHeaderRow()}\n {renderMonthView()}\n </Grid>\n </div>\n );\n};\n\nfunction isSameDate(date1: CalendarDateRequired, date2: CalendarDateRequired) {\n return date1.year === date2.year && date1.month === date2.month && date1.day === date2.day;\n}\n\nfunction isOutOfMonth(date1: CalendarDateRequired, currentMonthDate: CalendarDateRequired) {\n return date1.month !== currentMonthDate.month;\n}\n"],"names":["defaultDayFormatter","state","DayCell","props","buttonProps","date","dayFormatter","dateFormatter","isAdjacentMonth","isDisabled","isFocusable","isFocused","isHidden","isReadonly","isSelected","isToday","onAction","onNavigation","isDisabledFormat","isRestrictedFormat","useFocusableCell","handleAction","useCallback","payload","buttonEventHandlers","useCellNavigation","navigationMap","ArrowLeft","ltr","rtl","ArrowRight","ArrowDown","ArrowUp","PageDown","PageUp","Home","End","ShiftPageDown","ShiftPageUp","CtrlAltT","translations","useTranslationBundle","today","datePicker_today","selected","datePicker_selected","restricted","datePicker_restricted","formattedDate","getIsoDateStr","year","month","day","ariaLabel","dayOfMonth","toJSDate","getDate","toString","isActivable","isDimmed","isHoverable","isRestricted","label","useDayCell","_jsx","jsx","role","class","dayCellStyles","children","StyledDatePickerButton","WeekNumberCell","startDateOfWeek","weekNumber","checkDate","dayNumber","getUTCDay","Logger.warn","setUTCDate","getUTCDate","janFirst","getUTCFullYear","Math","floor","round","getTime","calculateWeekNumber","datePicker_weekNum","NUM","String","weekNumberCellStyles","weekNumberStyles","isSameDate","date1","date2","daysOutsideMonth","max","min","selectedDate","focusableDate","testId","todaysDate","weekDisplay","locale","useUser","weeksInMonth","getWeeksInMonth","baseTheme","styles","useComponentTheme","MonthViewRedwoodTheme","isWeekNumberDisplayed","gridTemplateColumns","useMemo","checkNoCalendarExtension","dateFormatOptions","dateStyle","format","getFormatParse","monthViewAriaLabel","formatFullCalendarDate","_jsxs","jsxs","Grid","gap","monthViewScaleVars","rowGap","weekDays","getDaysOfWeekNames","sticky","columnGap","map","dayOfTheWeek","renderMonthViewHeaderRow","calendarGrid","weekIndex","getStartOfWeek","weekDates","getDatesInWeek","weekCells","dayCellDate","isDateOutOfRange","currentMonthDate","push","renderMonthView"],"mappings":"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"}
1
+ {"version":3,"file":"MonthView-3d0968a1.js","sources":["../../src/PRIVATE_MonthView/useDayCell.ts","../../src/PRIVATE_MonthView/DayCell.tsx","../../src/PRIVATE_MonthView/WeekNumberCell.tsx","../../src/PRIVATE_MonthView/MonthView.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { DateISOStr } from '#UNSAFE_IntlDateTime';\nimport { FormatterFunc } from '#UNSAFE_IntlFormatParse';\nimport { getIsoDateStr, toJSDate } from '#utils/UNSAFE_calendarDateUtils';\nimport { ComponentProps, useCallback } from 'preact/compat';\n\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { useFocusableCell } from '#UNSAFE_DatePicker/useFocusableCell';\nimport { useCellNavigation } from '#UNSAFE_DatePicker/useCellNavigation';\nimport { StyledDatePickerButton } from '#PRIVATE_StyledDatePickerButton';\n\ntype NavigationDirections =\n | 'previousDay'\n | 'nextDay'\n | 'previousWeek'\n | 'nextWeek'\n | 'previousMonth'\n | 'nextMonth'\n | 'previousYear'\n | 'nextYear'\n | 'firstDayOfMonth'\n | 'lastDayOfMonth'\n | 'today';\n\nexport type DayFormatOptions = {\n state: 'enabled' | 'disabled' | 'restricted';\n};\n\n// These are the properties the useDayCell hook takes.\nexport type UseDayCellProps = {\n /**\n * Date of the day cell. This will be formatted as a full date and put in the aria-label.\n */\n date: CalendarDateRequired;\n /**\n * A function used to format the day cell date as a full date.\n */\n dateFormatter: FormatterFunc<DateISOStr>;\n /**\n * A function that receives a date and returns an object specifying how to format the provided date.\n * This function is called for each date that is rendered and this can be used to control how individual\n * dates are rendered - disabled, restricted, or enabled.\n * @param date The date to format\n * @returns The format options\n */\n dayFormatter?: (date: CalendarDateRequired) => DayFormatOptions;\n /**\n * Whether the day cell is in an adjacent month, not the current month.\n */\n isAdjacentMonth: boolean;\n /**\n * Whether the day cell is disabled, like if it is out of the min/max range.\n */\n isDisabled?: boolean;\n /**\n * Whether the day cell is focusable, meaning it will have tabIndex 0.\n */\n isFocusable: boolean;\n /**\n * Whether the day cell has focus.\n */\n isFocused: boolean;\n /**\n * Whether the day cell is hidden. For example, days outside of the current month are hidden by default.\n */\n isHidden: boolean;\n /**\n * Whether the day cell is readonly. It is not activeable.\n */\n isReadonly: boolean;\n /**\n * Whether the day cell looks selected.\n */\n isSelected: boolean;\n /**\n * Whether the day cell's date is today.\n */\n isToday: boolean;\n /**\n * A callback that will be invoked when the user selects the date by clicking on a day cell or selecting the enter or space key on a day cell.\n * @param payload The payload containing the date represented by this cell.\n */\n onAction: (payload: { date: CalendarDateRequired }) => void;\n /**\n * A callback that will be invoked when the user navigates.\n */\n onNavigation: (detail: { direction: NavigationDirections; date: CalendarDateRequired }) => void;\n};\n\n/**\n * The useDayCell hook returns properties for an individual DayCell. The properties returned should be spread on the StyledDatePickerButton.\n * These include the event handlers for keydown and click.\n */\nexport const useDayCell = ({\n date,\n dayFormatter = defaultDayFormatter,\n dateFormatter,\n isAdjacentMonth,\n isDisabled,\n isFocusable,\n isFocused,\n isHidden,\n isReadonly,\n isSelected,\n isToday,\n onAction,\n onNavigation\n}: UseDayCellProps) => {\n // apply day formatting\n const { state } = dayFormatter(date);\n const isDisabledFormat = state === 'disabled';\n const isRestrictedFormat = state === 'restricted';\n\n // Focus the day cell with isFocused true when the state updates.\n const buttonProps = useFocusableCell({ isFocusable, isFocused });\n // Override onAction to not call it if disabled, readonly or restricted\n const handleAction: UseDayCellProps['onAction'] = useCallback(\n (payload) => {\n if (isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat) return;\n onAction(payload);\n },\n [isDisabled, isDisabledFormat, isReadonly, isRestrictedFormat, onAction]\n );\n const buttonEventHandlers = useCellNavigation({\n navigationMap: {\n ArrowLeft: { ltr: 'previousDay', rtl: 'nextDay' },\n ArrowRight: { ltr: 'nextDay', rtl: 'previousDay' },\n ArrowDown: 'nextWeek',\n ArrowUp: 'previousWeek',\n PageDown: 'nextMonth',\n PageUp: 'previousMonth',\n Home: 'firstDayOfMonth',\n End: 'lastDayOfMonth',\n ShiftPageDown: 'nextYear',\n ShiftPageUp: 'previousYear',\n CtrlAltT: 'today'\n },\n payload: { date },\n onAction: handleAction,\n onNavigation\n });\n\n // For accessibility, we want a full date.\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const today = translations.datePicker_today();\n const selected = translations.datePicker_selected();\n const restricted = translations.datePicker_restricted();\n\n const dateIsoStr = getIsoDateStr(date.year, date.month, date.day);\n const formattedDate = dateFormatter(dateIsoStr);\n let ariaLabel = isToday ? `${today}, ${formattedDate}` : formattedDate;\n ariaLabel = isRestrictedFormat ? `${ariaLabel}, ${restricted}` : ariaLabel;\n ariaLabel = isSelected ? `${ariaLabel}, ${selected}` : ariaLabel;\n const dayOfMonth = toJSDate(date.year, date.month, date.day).getDate().toString();\n\n return {\n buttonProps: {\n 'aria-label': ariaLabel,\n ...((isHidden || isDisabled || isDisabledFormat || isRestrictedFormat) && {\n 'aria-disabled': true\n }),\n isActivable: !(isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat),\n isAdjacentMonth,\n isDimmed: isDisabled || isDisabledFormat,\n isHidden,\n isHoverable: !(isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat),\n isReadonly,\n isSelected,\n isRestricted: isRestrictedFormat,\n isToday,\n label: dayOfMonth,\n ...buttonProps,\n ...buttonEventHandlers\n } as ComponentProps<typeof StyledDatePickerButton>\n };\n};\n\n/**\n * A default day formatter that always formats as enabled state.\n */\nconst defaultDayFormatter = () => ({ state: 'enabled' }) as DayFormatOptions;\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { StyledDatePickerButton } from '#PRIVATE_StyledDatePickerButton';\nimport { UseDayCellProps, useDayCell } from './useDayCell';\nimport { dayCellStyles } from './themes/DayCellStyles.css';\n\ntype PickedUseDayCellProps = Pick<\n UseDayCellProps,\n | 'date'\n | 'dateFormatter'\n | 'dayFormatter'\n | 'isAdjacentMonth'\n | 'isDisabled'\n | 'isFocusable'\n | 'isFocused'\n | 'isHidden'\n | 'isReadonly'\n | 'isSelected'\n | 'isToday'\n | 'onAction'\n | 'onNavigation'\n>;\n\ntype DayCellProps = PickedUseDayCellProps;\n\n/**\n * The DayCell is the cell within the DatePicker's month view that contains the day in the month view.\n * This component will format the date for the aria-label.\n * The DayCell components uses the useDayCell hook to handle the user interactions with the day cell.\n */\nexport const DayCell = (props: DayCellProps) => {\n const { buttonProps } = useDayCell(props);\n // buttonProps, e.g., tabIndex, aria-label, onclick, onkeydown and visual states\n return (\n <div role=\"gridcell\" class={dayCellStyles}>\n <StyledDatePickerButton {...buttonProps} />\n </div>\n );\n};\n","import { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { CalendarDateRequired, toJSDate } from '#utils/UNSAFE_calendarDateUtils';\nimport { weekNumberCellStyles, weekNumberStyles } from './themes/WeekNumberCellStyle.css';\nimport * as Logger from '../utils/UNSAFE_logger';\n\ntype Props = {\n /**\n * startDateOfWeek is the first date of the week row\n */\n startDateOfWeek: CalendarDateRequired;\n};\n\n/**\n * The ISO 8601 definition for week 01 is the week with the first Thursday of the Gregorian year (i.e. of January) in it.\n * https://en.wikipedia.org/wiki/ISO_week_date\n * @param date The first date of the week row to be used to calculate the week number.\n * The date must be a Saturday, Sunday, or Monday. We assume this because the week for\n * all the locales we support start on one of these days.\n * @returns the number of week in the year\n */\nconst calculateWeekNumber = (date: CalendarDateRequired) => {\n const checkDate = toJSDate(date.year, date.month, date.day);\n const dayNumber = checkDate.getUTCDay(); // 0 for Sunday, 1 for Monday, 2 for Tuesday, etc.\n\n if (dayNumber !== 0 && dayNumber !== 1 && dayNumber !== 6) {\n // This message is for internal JET developers. We should never see this message. In all locales the day of the\n // week starts on Sunday, Monday or Saturday.\n Logger.warn(`calculateWeekNumber's date property's getUTCDay() is assumed to be 0 (Sunday), 1 (Monday) or 6 (Saturday)\n since that is the first day of the week for the locale's JET supports.`);\n }\n\n // For ISO week, we set the start of the week to Monday\n if (dayNumber !== 1) {\n // If it is already Monday, do nothing.\n // If it is Sunday (0), add 1 to move it up to Monday.\n // If it is Saturday (6), move it up two days to Monday.\n checkDate.setUTCDate(checkDate.getUTCDate() + (dayNumber === 0 ? 1 : 2));\n }\n\n // Find Thursday (day value of 4) of this week. Since we know checkDate at this point is a Monday,\n // we move it up 3 days.\n checkDate.setUTCDate(checkDate.getUTCDate() + 3);\n\n // Create the start of the year date\n const janFirst = toJSDate(checkDate.getUTCFullYear(), 1, 1);\n\n return Math.floor(Math.round((checkDate.getTime() - janFirst.getTime()) / 86400000) / 7) + 1;\n};\n\n/**\n * The WeekNumberCell is the cell at the start of a week's row within the DatePicker's\n * month view that contains the week's number within the year. This displays when\n * the DatePicker's 'weekDisplay' prop is set to 'number'.\n * This component will format the week number for the aria-label.\n */\nconst WeekNumberCell = ({ startDateOfWeek }: Props) => {\n const weekNumber = calculateWeekNumber(startDateOfWeek);\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n return (\n <div\n aria-label={translations.datePicker_weekNum({ NUM: String(weekNumber) })}\n class={weekNumberCellStyles}\n role=\"rowheader\">\n <span class={weekNumberStyles}>{weekNumber}</span>\n </div>\n );\n};\n\nexport { WeekNumberCell };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport {\n getWeeksInMonth,\n getDatesInWeek,\n getStartOfWeek,\n getDaysOfWeekNames,\n WeekInMonthIndex\n} from '#utils/PRIVATE_dayUtils';\nimport { ComponentProps } from 'preact/compat';\nimport { useMemo } from 'preact/hooks';\nimport {\n CalendarDateRequired,\n checkNoCalendarExtension,\n formatFullCalendarDate,\n isDateOutOfRange\n} from '#utils/UNSAFE_calendarDateUtils';\nimport { getFormatParse, NativeDateTimeOptions } from '#UNSAFE_IntlDateTime';\nimport { DayCell } from './DayCell';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { Grid } from '#UNSAFE_Grid';\nimport {\n MonthViewStyles,\n MonthViewVariantOptions\n} from '#PRIVATE_MonthView/themes/MonthViewStyles.css';\nimport { MonthViewRedwoodTheme } from '#PRIVATE_MonthView/themes/redwood/MonthViewTheme';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { monthViewScaleVars } from '#PRIVATE_MonthView/themes/MonthViewContract.css';\nimport { WeekNumberCell } from './WeekNumberCell';\n\ntype PickedDayCellProps = Pick<\n ComponentProps<typeof DayCell>,\n 'dayFormatter' | 'onAction' | 'onNavigation'\n>;\n\ntype MonthViewProps = TestIdProps &\n PickedDayCellProps & {\n /**\n * The daysOutsideMonth property affects the day cells that are outside of the current month.\n * If set to 'hidden', then the days outside of the current month will be hidden.\n * If set to 'selectable', then the days outside of the current month will be visible and selectable.\n * This defaults to 'hidden'.\n */\n daysOutsideMonth?: 'hidden' | 'selectable';\n /**\n * The MonthView renders with the month of the focusableDate.\n * The focusableDate is the only day in the MonthView that has tabIndex: 0 on it.\n * The focusableDate doesn't have focus until the user tabs in to the Month View.\n * The focusableDate is never undefined.\n */\n focusableDate: CalendarDateRequired;\n /**\n * If set to true, the focusableDate will be focused and you will see the focus ring. It will be\n * false when no date has focus.\n * @default false\n */\n isFocused?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * The maximum selectable date. The max must be greater than the min if they are both specified.\n */\n max?: CalendarDateRequired;\n /**\n * The minimum selectable date. The min must be less than the max if they are both specified.\n */\n min?: CalendarDateRequired;\n /**\n * The selected date of the MonthView, or undefined is there is no selected date. This\n * is used to highlight the selected day cell if it is within the min/max range.\n */\n selectedDate?: CalendarDateRequired;\n /**\n * Today's date. This is used to highlight the Today day cell.\n */\n todaysDate: CalendarDateRequired;\n /**\n * Whether week of the year will be shown in the DatePicker. The default calculation follows the\n * ISO 8601 definition: the first week of the year contains the first Thursday of the year.\n * This means that some days from one year may be placed into weeks 'belonging' to another year.\n */\n weekDisplay?: 'none' | 'number';\n };\n\n/**\n * A MonthView is a month interface that allows users to select a single date. The MonthView is the week day header\n * abbreviations and the days of the month. A MonthView is used inside of a DatePicker\n * along with the DatePickerHeader and the MonthGridView and YearGridView.\n */\nexport const MonthView = ({\n dayFormatter,\n daysOutsideMonth = 'hidden',\n isReadonly = false,\n max,\n min,\n onAction,\n onNavigation,\n selectedDate,\n focusableDate,\n isFocused = false,\n testId,\n todaysDate,\n weekDisplay = 'none'\n}: MonthViewProps) => {\n const { locale } = useUser();\n const weeksInMonth = getWeeksInMonth(focusableDate.year, focusableDate.month, locale);\n const { baseTheme, styles } = useComponentTheme<MonthViewVariantOptions, MonthViewStyles>(\n MonthViewRedwoodTheme,\n {}\n );\n const isWeekNumberDisplayed = weekDisplay === 'number';\n const gridTemplateColumns = `repeat(${isWeekNumberDisplayed ? 8 : 7}, 1fr)`;\n\n const dateFormatter = useMemo(() => {\n checkNoCalendarExtension(locale);\n const dateFormatOptions: NativeDateTimeOptions = {\n locale,\n dateStyle: 'full'\n };\n const { format } = getFormatParse(dateFormatOptions);\n return format;\n }, [locale]);\n\n const renderMonthViewHeaderRow = () => {\n const weekDays = getDaysOfWeekNames(locale, 'short');\n\n return (\n <div class={styles.sticky}>\n <Grid\n role=\"row\"\n aria-hidden=\"true\"\n gridTemplateColumns={gridTemplateColumns}\n gap={monthViewScaleVars.columnGap}>\n {isWeekNumberDisplayed && <div role=\"presentation\" />}\n {weekDays.map((day) => (\n <div role=\"columnheader\" class={styles.dayOfTheWeek}>\n <span>{day}</span>\n </div>\n ))}\n </Grid>\n </div>\n );\n };\n\n const renderMonthView = () => {\n const calendarGrid: JSX.Element[] = [];\n\n for (let weekIndex = 0; weekIndex < weeksInMonth; weekIndex++) {\n const startDateOfWeek = getStartOfWeek(focusableDate.year, focusableDate.month, 1, locale);\n\n const weekDates = getDatesInWeek(\n weekIndex as WeekInMonthIndex,\n startDateOfWeek.year,\n startDateOfWeek.month,\n startDateOfWeek.day\n );\n\n const weekCells = weekDates.map((dayCellDate) => {\n // This figures out the visual state of the DayCell.\n const isDisabled = isDateOutOfRange(dayCellDate, min, max);\n\n // Even if the selected date is out of range, the UX design shows it as selected.\n const isSelected = selectedDate ? isSameDate(dayCellDate, selectedDate) : false;\n const isToday = isSameDate(dayCellDate, todaysDate);\n const isFocusable = isSameDate(dayCellDate, focusableDate);\n const isAdjacentMonth = isOutOfMonth(dayCellDate, focusableDate);\n const isHidden = isAdjacentMonth && daysOutsideMonth === 'hidden';\n\n return (\n <DayCell\n key={`${dayCellDate.year}-${dayCellDate.month}-${dayCellDate.day}`}\n date={dayCellDate}\n dateFormatter={dateFormatter}\n dayFormatter={dayFormatter}\n isAdjacentMonth={isAdjacentMonth}\n isDisabled={isDisabled}\n isFocusable={isFocusable}\n isFocused={isFocusable && isFocused}\n isHidden={isHidden}\n isReadonly={isReadonly}\n isSelected={isSelected}\n isToday={isToday}\n onAction={onAction}\n onNavigation={onNavigation}></DayCell>\n );\n });\n\n calendarGrid.push(\n <Grid\n key={weekIndex}\n role=\"row\"\n gridTemplateColumns={gridTemplateColumns}\n gap={monthViewScaleVars.columnGap}>\n {isWeekNumberDisplayed && <WeekNumberCell startDateOfWeek={weekDates[0]} />}\n {weekCells}\n </Grid>\n );\n }\n\n return calendarGrid;\n };\n\n const monthViewAriaLabel = formatFullCalendarDate(locale, focusableDate, 'month');\n return (\n <div class={baseTheme}>\n <Grid\n gap={monthViewScaleVars.rowGap}\n aria-label={monthViewAriaLabel}\n role=\"grid\"\n testId={testId}>\n {renderMonthViewHeaderRow()}\n {renderMonthView()}\n </Grid>\n </div>\n );\n};\n\nfunction isSameDate(date1: CalendarDateRequired, date2: CalendarDateRequired) {\n return date1.year === date2.year && date1.month === date2.month && date1.day === date2.day;\n}\n\nfunction isOutOfMonth(date1: CalendarDateRequired, currentMonthDate: CalendarDateRequired) {\n return date1.month !== currentMonthDate.month;\n}\n"],"names":["defaultDayFormatter","state","DayCell","props","buttonProps","date","dayFormatter","dateFormatter","isAdjacentMonth","isDisabled","isFocusable","isFocused","isHidden","isReadonly","isSelected","isToday","onAction","onNavigation","isDisabledFormat","isRestrictedFormat","useFocusableCell","handleAction","useCallback","payload","buttonEventHandlers","useCellNavigation","navigationMap","ArrowLeft","ltr","rtl","ArrowRight","ArrowDown","ArrowUp","PageDown","PageUp","Home","End","ShiftPageDown","ShiftPageUp","CtrlAltT","translations","useTranslationBundle","today","datePicker_today","selected","datePicker_selected","restricted","datePicker_restricted","formattedDate","getIsoDateStr","year","month","day","ariaLabel","dayOfMonth","toJSDate","getDate","toString","isActivable","isDimmed","isHoverable","isRestricted","label","useDayCell","_jsx","jsx","role","class","dayCellStyles","children","StyledDatePickerButton","WeekNumberCell","startDateOfWeek","weekNumber","checkDate","dayNumber","getUTCDay","Logger.warn","setUTCDate","getUTCDate","janFirst","getUTCFullYear","Math","floor","round","getTime","calculateWeekNumber","datePicker_weekNum","NUM","String","weekNumberCellStyles","weekNumberStyles","isSameDate","date1","date2","daysOutsideMonth","max","min","selectedDate","focusableDate","testId","todaysDate","weekDisplay","locale","useUser","weeksInMonth","getWeeksInMonth","baseTheme","styles","useComponentTheme","MonthViewRedwoodTheme","isWeekNumberDisplayed","gridTemplateColumns","useMemo","checkNoCalendarExtension","dateFormatOptions","dateStyle","format","getFormatParse","monthViewAriaLabel","formatFullCalendarDate","_jsxs","jsxs","Grid","gap","monthViewScaleVars","rowGap","weekDays","getDaysOfWeekNames","sticky","columnGap","map","dayOfTheWeek","renderMonthViewHeaderRow","calendarGrid","weekIndex","getStartOfWeek","weekDates","getDatesInWeek","weekCells","dayCellDate","isDateOutOfRange","currentMonthDate","push","renderMonthView"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', './mergeProps-bcfa6a92', './classNames-08d99695', './useId-c9578d26', './UNSAFE_NavigationList/themes/NavigationListStyles.css', './collectionUtils-17f5cc64', './useCollectionFocusRing-66a6fc12', './useCurrentKey-31c18053', 'preact/compat', './useTestId-3a316499', './UNSAFE_Text/themes/TextStyles.css', './BaseNavigationListItem-fe9cb691', './Flex-56ecdf4c', './logger-0f873e29', 'preact', './LayerHost-e95c5f30', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-69ce0a2d', 'css!./IconStyle.styles.css', './UNSAFE_NavigationList/themes/NavigationListItemStyles.css', 'module', './UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css'], (function(e,t,n,o,s,r,i,a,c,l,u,d,y,g,f,m,v,h,N,b,C,S,I,K,x,p){"use strict";const w=(e,t,n)=>{const o=e.closest(t),s=e.closest(n);return o?.contains(s)?null:a.keyExtractor(e,t)},L=(e,t,n)=>{const o=n.indexOf(e);if(o>0){const e=n[o===n.length-1?o-1:o+1];if(-1!==t.indexOf(e))return e}return t[0]},k=u.forwardRef((({children:e,selection:y,onSelectionChange:f,onRemove:m,"aria-label":v,"aria-labelledby":h,testId:N},b)=>{const C=n.useRef(null),{showFocusRing:S,currentKey:I,onCurrentKeyChange:K,containerHandlers:x,onKeyDown:p}=function({containerRef:e,selection:t,onRemove:s,onSelectionChange:r,children:i}){const u='[role="tab"]',[d,y]=n.useState(t),g=n.useCallback((e=>{y(e.value)}),[]),{currentKeyProps:f}=l.useCurrentKey((e=>s?w(e,u,"[data-oj-navigationlist-item-remove-icon]"):a.keyExtractor(e,u)),!1,a.getPrevNextKeyUsingRef(e,d,!0,u),a.getPrevNextKeyUsingRef(e,d,!1,u),void 0,void 0,d,g),[m,v]=c.useCollectionFocusRing(e,["Home","End","ArrowUp","ArrowDown"]),h={onFocus:n.useCallback((()=>{if(e.current&&void 0===d){const t=a.getFirstVisibleKey(e.current,u);t&&y(t)}}),[d,e])},N=n.useRef();n.useEffect((()=>{if(e.current){const t=Array.from(e.current.querySelectorAll(u),(e=>a.getKey(e)));if(null!=d&&-1!==t.indexOf(d)){const t=a.findElementByKey(e.current,d,u);t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded():t.scrollIntoView({block:"nearest"})}else d&&-1===t.indexOf(d)&&(N.current?y(L(d,t,N.current)):y(t[0])),N.current=t}}),[i,d,e]);const b=n.useCallback((t=>{if(("Home"===t.key||"End"===t.key)&&e.current&&d){const n=Array.from(e.current.querySelectorAll(u),(e=>a.getKey(e)));g?.({value:n["Home"===t.key?0:n.length-1]})}!d||"Enter"!==t.key&&" "!==t.key||r?.({value:d,reason:"keyboard"}),d&&"Delete"===t.key&&s?.({value:d})}),[d,r,s,g,e]);return{showFocusRing:m,currentKey:d,onCurrentKeyChange:g,onKeyDown:b,containerHandlers:o.mergeProps(v,f,h)}}({containerRef:C,selection:y,onRemove:m,onSelectionChange:f,children:e}),k={onKeyDown:p},R=s.classNames([i.navigationListStyles.uListStyle]),F=r.useId()+"_",E=d.useTestId(N);return u.useImperativeHandle(b,(()=>({focus:()=>{C.current&&C.current.focus()},blur:()=>{C.current&&C.current.focus()}}))),t.jsx("ul",{"aria-label":v,"aria-labelledby":h,role:"tablist",ref:C,"aria-orientation":"vertical",tabIndex:0,"aria-activedescendant":I?F+I:"",...o.mergeProps(k,x),...E,class:R,children:t.jsx(g.NavigationListContext.Provider,{value:{selection:y,onSelectionChange:f,onCurrentKeyChange:K,currentKey:I,showFocusRing:S,navigationListItemPrefix:F,onRemove:m},children:e})})}));e.NavigationList=k,e.NavigationListItem=function({itemKey:e,label:n,badge:o,metadata:s,severity:r}){return t.jsx(g.BaseNavigationListItem,{itemKey:e,label:n,badge:o,metadata:s,severity:r})}}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact/hooks', './mergeProps-bcfa6a92', './classNames-08d99695', './useId-c9578d26', './UNSAFE_NavigationList/themes/NavigationListStyles.css', './collectionUtils-17f5cc64', './useCollectionFocusRing-66a6fc12', './useCurrentKey-a993db56', 'preact/compat', './useTestId-b5cd4766', './UNSAFE_Text/themes/TextStyles.css', './BaseNavigationListItem-fe9cb691', './Flex-3421f0df', './logger-0f873e29', 'preact', './LayerHost-639b3284', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-e5bdb734', 'css!./IconStyle.styles.css', './UNSAFE_NavigationList/themes/NavigationListItemStyles.css', 'module', './UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css'], (function(e,t,n,o,s,r,i,a,c,l,u,d,y,g,f,m,v,h,b,N,C,S,I,K,x,p){"use strict";const w=(e,t,n)=>{const o=e.closest(t),s=e.closest(n);return o?.contains(s)?null:a.keyExtractor(e,t)},L=(e,t,n)=>{const o=n.indexOf(e);if(o>0){const e=n[o===n.length-1?o-1:o+1];if(-1!==t.indexOf(e))return e}return t[0]},k=u.forwardRef((({children:e,selection:y,onSelectionChange:f,onRemove:m,"aria-label":v,"aria-labelledby":h,testId:b},N)=>{const C=n.useRef(null),{showFocusRing:S,currentKey:I,onCurrentKeyChange:K,containerHandlers:x,onKeyDown:p}=function({containerRef:e,selection:t,onRemove:s,onSelectionChange:r,children:i}){const u='[role="tab"]',[d,y]=n.useState(t),g=n.useCallback((e=>{y(e.value)}),[]),{currentKeyProps:f}=l.useCurrentKey((e=>s?w(e,u,"[data-oj-navigationlist-item-remove-icon]"):a.keyExtractor(e,u)),!1,a.getPrevNextKeyUsingRef(e,d,!0,u),a.getPrevNextKeyUsingRef(e,d,!1,u),void 0,void 0,d,g),[m,v]=c.useCollectionFocusRing(e,["Home","End","ArrowUp","ArrowDown"]),h={onFocus:n.useCallback((()=>{if(e.current&&void 0===d){const t=a.getFirstVisibleKey(e.current,u);t&&y(t)}}),[d,e])},b=n.useRef();n.useEffect((()=>{if(e.current){const t=Array.from(e.current.querySelectorAll(u),(e=>a.getKey(e)));if(null!=d&&-1!==t.indexOf(d)){const t=a.findElementByKey(e.current,d,u);t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded():t.scrollIntoView({block:"nearest"})}else d&&-1===t.indexOf(d)&&(b.current?y(L(d,t,b.current)):y(t[0])),b.current=t}}),[i,d,e]);const N=n.useCallback((t=>{if(("Home"===t.key||"End"===t.key)&&e.current&&d){const n=Array.from(e.current.querySelectorAll(u),(e=>a.getKey(e)));g?.({value:n["Home"===t.key?0:n.length-1]})}!d||"Enter"!==t.key&&" "!==t.key||r?.({value:d,reason:"keyboard"}),d&&"Delete"===t.key&&s?.({value:d})}),[d,r,s,g,e]);return{showFocusRing:m,currentKey:d,onCurrentKeyChange:g,onKeyDown:N,containerHandlers:o.mergeProps(v,f,h)}}({containerRef:C,selection:y,onRemove:m,onSelectionChange:f,children:e}),k={onKeyDown:p},R=s.classNames([i.navigationListStyles.uListStyle]),F=r.useId()+"_",E=d.useTestId(b);return u.useImperativeHandle(N,(()=>({focus:()=>{C.current&&C.current.focus()},blur:()=>{C.current&&C.current.focus()}}))),t.jsx("ul",{"aria-label":v,"aria-labelledby":h,role:"tablist",ref:C,"aria-orientation":"vertical",tabIndex:0,"aria-activedescendant":I?F+I:"",...o.mergeProps(k,x),...E,class:R,children:t.jsx(g.NavigationListContext.Provider,{value:{selection:y,onSelectionChange:f,onCurrentKeyChange:K,currentKey:I,showFocusRing:S,navigationListItemPrefix:F,onRemove:m},children:e})})}));e.NavigationList=k,e.NavigationListItem=function({itemKey:e,label:n,badge:o,metadata:s,severity:r}){return t.jsx(g.BaseNavigationListItem,{itemKey:e,label:n,badge:o,metadata:s,severity:r})}}));
2
2
  //# sourceMappingURL=NavigationListItem-044a79fd.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './useFocusableTextField-8b755b15', './FormContext-5130e198', './useFormContext-30acdd33', './FormFieldContext-3c44aaaa', './useTextField-e6877c79', './Label-3912beb2', './PrefixSuffix-0efb3bc6', './usePrefixSuffix-09bd5925', './keyboardUtils-fbb389f8', './TextFieldInput-ba4e508c', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-608bddc1', './StyledTextField-b4278437', './TextField-1021f00b', './LayerHost-e95c5f30', 'css!./LiveRegionStyles.styles.css', './logger-0f873e29', './TabbableModeContext-a9c97640', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-4656c2a6', './CompactUserAssistance-3370a318', './mergeProps-bcfa6a92', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-69ce0a2d', 'preact', 'css!./IconStyle.styles.css', './Popup-d51bf3f4', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', 'css!./HiddenAccessibleStyles.styles.css', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './clientHints-4f5a07b0', './useCurrentValueReducer-faded381', './ChevronDown-64f938c5', './ChevronUp-421d2392', './Minus-08341d62', './Plus-9a4340c3', './IconButton-ae9a01ce', './useTranslationBundle-516b1b83', './Grid-160f4885', './useSpinning-d5dd87af', './useSelectableTextField-900d2860'], (function(e,s,i,t,n,a,o,l,r,d,u,c,p,b,x,f,v,m,h,S,y,F,C,P,T,A,g,U,I,R,j,D,w,L,E,V,B,k,N,_,q,H,M,O,G,W,z,K,Z,J,Q,X,Y){"use strict";function $({direction:e,isDisabled:i,children:t,onPointerDown:n,onPointerUp:a,onPointerOut:o,onPointerCancel:l}){const r=J.useTranslationBundle("@oracle/oraclejet-preact"),d=r.inputNumber_increase(),u=r.inputNumber_decrease(),c="increase"===e?d:u;return s.jsx(F.TabbableModeContext.Provider,{value:{isTabbable:!1},children:s.jsx("div",{"aria-hidden":"true",onPointerDown:n,onPointerUp:a,onPointerOut:o,onPointerCancel:l,children:s.jsx(Z.IconButton,{isDisabled:i,tooltip:c,variant:"ghost",size:"sm",children:t})})})}function ee({children:e}){return s.jsx(Q.Grid,{align:"center",gap:"1x",gridTemplateColumns:"1fr 1fr",children:e})}const se=i.forwardRef((({"aria-describedby":e,"aria-valuemax":i,"aria-valuemin":a,"aria-valuenow":p,"aria-valuetext":x,assistiveText:h,autoComplete:S="off",autoFocus:y=!1,columnSpan:F,helpSourceLink:C,helpSourceText:P,isDisabled:T,isReadonly:I,isRequired:R=!1,isRequiredShown:j,isStepDownDisabled:D,isStepUpDisabled:w,hasSteppers:L=!1,stepperVariant:E="directional",label:V,labelEdge:B,labelStartWidth:k,messages:N,placeholder:_,prefix:q,suffix:H,textAlign:M,userAssistanceDensity:Z,value:J,variant:Q="default",virtualKeyboard:se,onInput:te,onCommit:ne,onSpin:ae,onSpinComplete:oe,onStep:le,testId:re},de)=>{const{currentCommitValue:ue,dispatch:ce}=O.useCurrentValueReducer({value:J}),pe=t.useCallback((e=>{ce({type:"input",payload:e.value}),te?.(e)}),[te,ce]),be=t.useCallback((e=>{ce({type:"commit",payload:e.value}),ne?.(e)}),[ne,ce]),{isDisabled:xe,isReadonly:fe,labelEdge:ve,labelStartWidth:me,textAlign:he,userAssistanceDensity:Se}=o.useFormContext(),ye=T??xe,Fe=I??fe,Ce=B??ve,Pe=k??me,Te=M??he,Ae=Z??Se,ge=t.useRef(null),Ue=t.useRef(null),{focusProps:Ie,isFocused:Re,methods:je}=n.useFocusableTextField({isDisabled:ye,isReadonly:Fe,enabledElementRef:ge,readonlyElementRef:Ue}),{methods:De}=Y.useSelectableTextField(ge);t.useImperativeHandle(de,(()=>U.mergeProps(je,De)),[je,De]);const{baseId:we,formFieldContext:Le,inputProps:Ee,labelProps:Ve,textFieldProps:Be,userAssistanceProps:ke}=r.useTextField({ariaDescribedBy:e,helpSourceLink:C,helpSourceText:P,isDisabled:ye,isFocused:Re,isReadonly:Fe,isRequiredShown:j,labelEdge:Ce,messages:N,styleVariant:Q,userAssistanceDensity:Ae,value:J}),Ne=ye||D,_e=ye||w,qe=t.useCallback((e=>{Re||ge.current?.focus(),le?.(e)}),[le,Re,ge]),{keyboardHandlerProps:He,pointerIncreaseHandlerProps:Me,pointerDecreaseHandlerProps:Oe}=X.useSpinning({isStepDownDisabled:Ne,isStepUpDisabled:_e,onSpin:ae,onSpinComplete:oe,onStep:qe}),Ge=L?s.jsx($,{direction:"decrease",isDisabled:Ne,...Oe,children:"directional"===E?s.jsx(G.SvgChevronDown,{}):s.jsx(z.SvgMinus,{})}):void 0,We=L?s.jsx($,{direction:"increase",isDisabled:_e,...Me,children:"directional"===E?s.jsx(W.SvgChevronUp,{}):s.jsx(K.SvgPlus,{})}):void 0,ze=L&&"quantitative"===E?Ge:void 0,Ke=L?"directional"===E?s.jsxs(ee,{children:[Ge,We]}):We:void 0,Ze=void 0!==V&&"inside"===Ce,{shouldRenderPrefix:Je,shouldRenderSuffix:Qe,prefixProps:Xe,suffixProps:Ye,valuePrefixSuffix:$e,ariaLabelledBy:es}=c.usePrefixSuffix({baseId:we,hasEndContent:void 0!==Ke,hasInsideLabel:Ze,hasStartContent:void 0!==ze,hasValue:Le.hasValue,isDisabled:ye,isFocused:Re,labelId:Ve.id,prefix:q,suffix:H,value:J}),ss=Je?s.jsx(u.PrefixSuffix,{...Xe}):void 0,is=Qe?s.jsx(u.PrefixSuffix,{...Ye}):void 0,ts="none"!==Ce?s.jsx(d.Label,{...Ve,children:V}):void 0,ns={label:"none"!==Ce?ts:void 0,labelEdge:"none"!==Ce?Ce:void 0,labelStartWidth:"none"!==Ce?Pe:void 0},as="none"===Ce?V:void 0,os="efficient"===Ae||"reflow"===Ae?ye||Fe?"efficient"!==Ae?void 0:s.jsx(A.InlineUserAssistance,{userAssistanceDensity:Ae,...ke}):s.jsx(A.InlineUserAssistance,{assistiveText:h,fieldLabel:V,helpSourceLink:C,helpSourceText:P,messages:N,isRequiredShown:j,userAssistanceDensity:Ae,...ke}):void 0,ls=t.useRef(null),rs="compact"===Ae?s.jsx(g.CompactUserAssistance,{anchorRef:ls,messages:N,assistiveText:h,...ke}):void 0;if(Fe){const e=s.jsx(f.ReadonlyTextFieldInput,{"aria-describedby":Ee["aria-describedby"],"aria-label":as,"aria-labelledby":Ve.id,as:"div",autoFocus:y,elementRef:Ue,textAlign:Te,value:$e,hasEmptyLabel:""===V&&"none"===Ce,hasInsideLabel:Ze});return s.jsx(l.FormFieldContext.Provider,{value:Le,children:s.jsx(v.ReadonlyTextField,{role:"presentation",columnSpan:F,compactUserAssistance:rs,inlineUserAssistance:os,onBlur:Ie.onFocusOut,onFocus:Ie.onFocusIn,ref:ls,mainContent:e,testId:re,...ns})})}const ds=void 0===p||p.toString()!==x?x:void 0,us=s.jsxs(s.Fragment,{children:[ss,s.jsx(b.TextFieldInput,{"aria-labelledby":es,"aria-label":as,"aria-valuemax":L?i:void 0,"aria-valuemin":L?a:void 0,"aria-valuenow":L?p:void 0,"aria-valuetext":L?ds:void 0,autoComplete:S,autoFocus:y,currentCommitValue:ue,hasEmptyLabel:""===V&&"none"===Ce,hasEndContent:void 0!==Ke,hasInsideLabel:Ze,hasPrefix:void 0!==ss,hasStartContent:void 0!==ze,hasSuffix:void 0!==is,inputRef:ge,isRequired:R,placeholder:_,role:L?"spinbutton":void 0,textAlign:Te,type:ie()?se:void 0,value:ye?$e:J,onCommit:be,onInput:pe,...Ee,...L?He:{}}),is]});return s.jsx(l.FormFieldContext.Provider,{value:Le,children:s.jsx(m.TextField,{startContent:ze,endContent:Ke,columnSpan:F,compactUserAssistance:rs,inlineUserAssistance:os,mainContent:us,onBlur:Ie.onFocusOut,onFocus:Ie.onFocusIn,mainFieldRef:ls,hasZeroStartMargin:L&&"quantitative"===E,testId:re,...Be,...ns})})}));function ie(){const e=M.getClientHints().deviceType;return"phone"===e||"tablet"===e}e.NumberInputText=se,e.stepperVariants=["directional","quantitative"]}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './useFocusableTextField-8b755b15', './FormContext-5130e198', './useFormContext-30acdd33', './FormFieldContext-3c44aaaa', './useTextField-e6877c79', './Label-3912beb2', './PrefixSuffix-0efb3bc6', './usePrefixSuffix-f7544e05', './keyboardUtils-fbb389f8', './TextFieldInput-ba4e508c', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-608bddc1', './StyledTextField-b4278437', './TextField-1021f00b', './LayerHost-639b3284', 'css!./LiveRegionStyles.styles.css', './logger-0f873e29', './TabbableModeContext-a9c97640', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-4656c2a6', './CompactUserAssistance-3370a318', './mergeProps-bcfa6a92', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-e5bdb734', 'preact', 'css!./IconStyle.styles.css', './Popup-66e79afa', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', 'css!./HiddenAccessibleStyles.styles.css', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './clientHints-4f5a07b0', './useCurrentValueReducer-faded381', './ChevronDown-64f938c5', './ChevronUp-421d2392', './Minus-08341d62', './Plus-9a4340c3', './IconButton-ae9a01ce', './useTranslationBundle-d07d4b20', './Grid-8911aa0f', './useSpinning-d5dd87af', './useSelectableTextField-900d2860'], (function(e,s,i,t,n,a,o,l,r,d,u,c,p,b,x,f,v,m,h,S,y,F,C,P,T,A,g,U,I,R,j,D,w,L,E,V,B,k,N,_,q,H,M,O,G,W,z,K,Z,J,Q,X,Y){"use strict";function $({direction:e,isDisabled:i,children:t,onPointerDown:n,onPointerUp:a,onPointerOut:o,onPointerCancel:l}){const r=J.useTranslationBundle("@oracle/oraclejet-preact"),d=r.inputNumber_increase(),u=r.inputNumber_decrease(),c="increase"===e?d:u;return s.jsx(F.TabbableModeContext.Provider,{value:{isTabbable:!1},children:s.jsx("div",{"aria-hidden":"true",onPointerDown:n,onPointerUp:a,onPointerOut:o,onPointerCancel:l,children:s.jsx(Z.IconButton,{isDisabled:i,tooltip:c,variant:"ghost",size:"sm",children:t})})})}function ee({children:e}){return s.jsx(Q.Grid,{align:"center",gap:"1x",gridTemplateColumns:"1fr 1fr",children:e})}const se=i.forwardRef((({"aria-describedby":e,"aria-valuemax":i,"aria-valuemin":a,"aria-valuenow":p,"aria-valuetext":x,assistiveText:h,autoComplete:S="off",autoFocus:y=!1,columnSpan:F,helpSourceLink:C,helpSourceText:P,isDisabled:T,isReadonly:I,isRequired:R=!1,isRequiredShown:j,isStepDownDisabled:D,isStepUpDisabled:w,hasSteppers:L=!1,stepperVariant:E="directional",label:V,labelEdge:B,labelStartWidth:k,messages:N,placeholder:_,prefix:q,suffix:H,textAlign:M,userAssistanceDensity:Z,value:J,variant:Q="default",virtualKeyboard:se,onInput:te,onCommit:ne,onSpin:ae,onSpinComplete:oe,onStep:le,testId:re},de)=>{const{currentCommitValue:ue,dispatch:ce}=O.useCurrentValueReducer({value:J}),pe=t.useCallback((e=>{ce({type:"input",payload:e.value}),te?.(e)}),[te,ce]),be=t.useCallback((e=>{ce({type:"commit",payload:e.value}),ne?.(e)}),[ne,ce]),{isDisabled:xe,isReadonly:fe,labelEdge:ve,labelStartWidth:me,textAlign:he,userAssistanceDensity:Se}=o.useFormContext(),ye=T??xe,Fe=I??fe,Ce=B??ve,Pe=k??me,Te=M??he,Ae=Z??Se,ge=t.useRef(null),Ue=t.useRef(null),{focusProps:Ie,isFocused:Re,methods:je}=n.useFocusableTextField({isDisabled:ye,isReadonly:Fe,enabledElementRef:ge,readonlyElementRef:Ue}),{methods:De}=Y.useSelectableTextField(ge);t.useImperativeHandle(de,(()=>U.mergeProps(je,De)),[je,De]);const{baseId:we,formFieldContext:Le,inputProps:Ee,labelProps:Ve,textFieldProps:Be,userAssistanceProps:ke}=r.useTextField({ariaDescribedBy:e,helpSourceLink:C,helpSourceText:P,isDisabled:ye,isFocused:Re,isReadonly:Fe,isRequiredShown:j,labelEdge:Ce,messages:N,styleVariant:Q,userAssistanceDensity:Ae,value:J}),Ne=ye||D,_e=ye||w,qe=t.useCallback((e=>{Re||ge.current?.focus(),le?.(e)}),[le,Re,ge]),{keyboardHandlerProps:He,pointerIncreaseHandlerProps:Me,pointerDecreaseHandlerProps:Oe}=X.useSpinning({isStepDownDisabled:Ne,isStepUpDisabled:_e,onSpin:ae,onSpinComplete:oe,onStep:qe}),Ge=L?s.jsx($,{direction:"decrease",isDisabled:Ne,...Oe,children:"directional"===E?s.jsx(G.SvgChevronDown,{}):s.jsx(z.SvgMinus,{})}):void 0,We=L?s.jsx($,{direction:"increase",isDisabled:_e,...Me,children:"directional"===E?s.jsx(W.SvgChevronUp,{}):s.jsx(K.SvgPlus,{})}):void 0,ze=L&&"quantitative"===E?Ge:void 0,Ke=L?"directional"===E?s.jsxs(ee,{children:[Ge,We]}):We:void 0,Ze=void 0!==V&&"inside"===Ce,{shouldRenderPrefix:Je,shouldRenderSuffix:Qe,prefixProps:Xe,suffixProps:Ye,valuePrefixSuffix:$e,ariaLabelledBy:es}=c.usePrefixSuffix({baseId:we,hasEndContent:void 0!==Ke,hasInsideLabel:Ze,hasStartContent:void 0!==ze,hasValue:Le.hasValue,isDisabled:ye,isFocused:Re,labelId:Ve.id,prefix:q,suffix:H,value:J}),ss=Je?s.jsx(u.PrefixSuffix,{...Xe}):void 0,is=Qe?s.jsx(u.PrefixSuffix,{...Ye}):void 0,ts="none"!==Ce?s.jsx(d.Label,{...Ve,children:V}):void 0,ns={label:"none"!==Ce?ts:void 0,labelEdge:"none"!==Ce?Ce:void 0,labelStartWidth:"none"!==Ce?Pe:void 0},as="none"===Ce?V:void 0,os="efficient"===Ae||"reflow"===Ae?ye||Fe?"efficient"!==Ae?void 0:s.jsx(A.InlineUserAssistance,{userAssistanceDensity:Ae,...ke}):s.jsx(A.InlineUserAssistance,{assistiveText:h,fieldLabel:V,helpSourceLink:C,helpSourceText:P,messages:N,isRequiredShown:j,userAssistanceDensity:Ae,...ke}):void 0,ls=t.useRef(null),rs="compact"===Ae?s.jsx(g.CompactUserAssistance,{anchorRef:ls,messages:N,assistiveText:h,...ke}):void 0;if(Fe){const e=s.jsx(f.ReadonlyTextFieldInput,{"aria-describedby":Ee["aria-describedby"],"aria-label":as,"aria-labelledby":Ve.id,as:"div",autoFocus:y,elementRef:Ue,textAlign:Te,value:$e,hasEmptyLabel:""===V&&"none"===Ce,hasInsideLabel:Ze});return s.jsx(l.FormFieldContext.Provider,{value:Le,children:s.jsx(v.ReadonlyTextField,{role:"presentation",columnSpan:F,compactUserAssistance:rs,inlineUserAssistance:os,onBlur:Ie.onFocusOut,onFocus:Ie.onFocusIn,ref:ls,mainContent:e,testId:re,...ns})})}const ds=void 0===p||p.toString()!==x?x:void 0,us=s.jsxs(s.Fragment,{children:[ss,s.jsx(b.TextFieldInput,{"aria-labelledby":es,"aria-label":as,"aria-valuemax":L?i:void 0,"aria-valuemin":L?a:void 0,"aria-valuenow":L?p:void 0,"aria-valuetext":L?ds:void 0,autoComplete:S,autoFocus:y,currentCommitValue:ue,hasEmptyLabel:""===V&&"none"===Ce,hasEndContent:void 0!==Ke,hasInsideLabel:Ze,hasPrefix:void 0!==ss,hasStartContent:void 0!==ze,hasSuffix:void 0!==is,inputRef:ge,isRequired:R,placeholder:_,role:L?"spinbutton":void 0,textAlign:Te,type:ie()?se:void 0,value:ye?$e:J,onCommit:be,onInput:pe,...Ee,...L?He:{}}),is]});return s.jsx(l.FormFieldContext.Provider,{value:Le,children:s.jsx(m.TextField,{startContent:ze,endContent:Ke,columnSpan:F,compactUserAssistance:rs,inlineUserAssistance:os,mainContent:us,onBlur:Ie.onFocusOut,onFocus:Ie.onFocusIn,mainFieldRef:ls,hasZeroStartMargin:L&&"quantitative"===E,testId:re,...Be,...ns})})}));function ie(){const e=M.getClientHints().deviceType;return"phone"===e||"tablet"===e}e.NumberInputText=se,e.stepperVariants=["directional","quantitative"]}));
2
2
  //# sourceMappingURL=NumberInputText-cac12eb3.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/hooks', './useTranslationBundle-516b1b83', './clientHints-4f5a07b0', './mergeInterpolations-9ede4cf7', './flexitem-5db48325', './classNames-08d99695', './Icon-2d38c876', './useTabBarContext-15a23bb6', './Dropdown-4b421eff', './Sheet-46782f99', './TabBarItem-547825e2', './UNSAFE_TabBarCommon/themes/OverflowTabBarItemStyles.css', './NavigationListItem-044a79fd', './RemovableNavigationListItem-e01b6693'], (function(e,a,t,n,s,o,i,l,r,c,d,m,b,u,v,f,p){"use strict";const x=e=>a.jsx(c.Icon,{viewBox:"0 0 24 24",...e,children:a.jsx("g",{fill:"none",children:a.jsx("path",{d:"M6 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z",fill:"currentcolor"})})});const g=()=>{const{deviceType:e}=o.getClientHints();return"phone"===e};e.OverflowTabBarItem=function({overflowItemKey:e,icon:o,badge:c,overflowItems:h,isOpen:y,onClose:I}){const{selection:j,showFocusRing:C,isEdgeBottom:w,onSelect:B,onRemove:R,layout:T}=d.useTabBarContext(),K=n.useRef(!1),O=n.useRef(null),N=t.createRef(),k=n.useCallback((e=>{"pointer"===e.reason&&(K.current=!0),B?.({value:e.value}),I?.({reason:"itemAction"})}),[B,I]),F=n.useCallback((e=>{I?.({reason:e.reason})}),[I]),L=n.useCallback((()=>{I?.({reason:"dismissed"})}),[I]),S=C&&!K.current&&!g(),D=h?.find((e=>e.itemKey===j))?.tabPanelId,z=s.useTranslationBundle("@oracle/oraclejet-preact"),A=void 0!==j&&(E=j,null!=h?.find((e=>e.itemKey===E)));var E;const H=i.mergeInterpolations([...Object.values(l.flexitemInterpolations)])({flex:"stretch"===T?"1 0 auto":"0 0 auto"}),M=r.classNames([v.styles.navContainerBase]),P=n.useRef(null),U=n.useCallback((e=>{"ArrowDown"===e.key&&(e.preventDefault(),N.current?.focus())}),[N]),_=n.useCallback((()=>a.jsx("div",{onKeyDown:U,tabIndex:0,ref:P,class:M,children:a.jsx(f.NavigationList,{ref:N,selection:j,onSelectionChange:k,onRemove:R,children:h?.map((e=>e.isRemovable?a.jsx(p.RemovableNavigationListItem,{itemKey:e.itemKey,label:e.label,badge:e.badge,metadata:e.metadata,severity:e.severity}):a.jsx(f.NavigationListItem,{itemKey:e.itemKey,label:e.label,badge:e.badge,metadata:e.metadata,severity:e.severity})))})})),[U,M,N,j,k,R,h]);return a.jsxs(a.Fragment,{children:[h&&h.length>0&&a.jsx("div",{ref:O,style:H,children:a.jsx(u.BaseTabBarItem,{"aria-controls":D,itemKey:e,label:z.overflowItemLabel(),icon:o||a.jsx(x,{}),badge:c,showFocusRingOverride:S,selectionOverride:A,displayOverride:"icons","aria-haspopup":!0})}),g()?a.jsx(b.Sheet,{isOpen:y,onClose:L,children:_()}):a.jsx(m.Dropdown,{initialFocus:"firstFocusable",isOpen:y,onClose:F,placement:w?"top-end":"bottom-end",anchorRef:O,children:_()})]})}}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/hooks', './useTranslationBundle-d07d4b20', './clientHints-4f5a07b0', './mergeInterpolations-9ede4cf7', './flexitem-5db48325', './classNames-08d99695', './Icon-2d38c876', './useTabBarContext-15a23bb6', './Dropdown-abcacf49', './Sheet-0b58b0a5', './TabBarItem-547825e2', './UNSAFE_TabBarCommon/themes/OverflowTabBarItemStyles.css', './NavigationListItem-044a79fd', './RemovableNavigationListItem-e01b6693'], (function(e,a,t,n,s,o,i,l,r,c,d,m,b,u,v,f,p){"use strict";const x=e=>a.jsx(c.Icon,{viewBox:"0 0 24 24",...e,children:a.jsx("g",{fill:"none",children:a.jsx("path",{d:"M6 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z",fill:"currentcolor"})})});const g=()=>{const{deviceType:e}=o.getClientHints();return"phone"===e};e.OverflowTabBarItem=function({overflowItemKey:e,icon:o,badge:c,overflowItems:h,isOpen:y,onClose:I}){const{selection:j,showFocusRing:C,isEdgeBottom:w,onSelect:B,onRemove:R,layout:T}=d.useTabBarContext(),K=n.useRef(!1),O=n.useRef(null),N=t.createRef(),k=n.useCallback((e=>{"pointer"===e.reason&&(K.current=!0),B?.({value:e.value}),I?.({reason:"itemAction"})}),[B,I]),F=n.useCallback((e=>{I?.({reason:e.reason})}),[I]),L=n.useCallback((()=>{I?.({reason:"dismissed"})}),[I]),S=C&&!K.current&&!g(),D=h?.find((e=>e.itemKey===j))?.tabPanelId,z=s.useTranslationBundle("@oracle/oraclejet-preact"),A=void 0!==j&&(E=j,null!=h?.find((e=>e.itemKey===E)));var E;const H=i.mergeInterpolations([...Object.values(l.flexitemInterpolations)])({flex:"stretch"===T?"1 0 auto":"0 0 auto"}),M=r.classNames([v.styles.navContainerBase]),P=n.useRef(null),U=n.useCallback((e=>{"ArrowDown"===e.key&&(e.preventDefault(),N.current?.focus())}),[N]),_=n.useCallback((()=>a.jsx("div",{onKeyDown:U,tabIndex:0,ref:P,class:M,children:a.jsx(f.NavigationList,{ref:N,selection:j,onSelectionChange:k,onRemove:R,children:h?.map((e=>e.isRemovable?a.jsx(p.RemovableNavigationListItem,{itemKey:e.itemKey,label:e.label,badge:e.badge,metadata:e.metadata,severity:e.severity}):a.jsx(f.NavigationListItem,{itemKey:e.itemKey,label:e.label,badge:e.badge,metadata:e.metadata,severity:e.severity})))})})),[U,M,N,j,k,R,h]);return a.jsxs(a.Fragment,{children:[h&&h.length>0&&a.jsx("div",{ref:O,style:H,children:a.jsx(u.BaseTabBarItem,{"aria-controls":D,itemKey:e,label:z.overflowItemLabel(),icon:o||a.jsx(x,{}),badge:c,showFocusRingOverride:S,selectionOverride:A,displayOverride:"icons","aria-haspopup":!0})}),g()?a.jsx(b.Sheet,{isOpen:y,onClose:L,children:_()}):a.jsx(m.Dropdown,{initialFocus:"firstFocusable",isOpen:y,onClose:F,placement:w?"top-end":"bottom-end",anchorRef:O,children:_()})]})}}));
2
2
  //# sourceMappingURL=OverflowTabBarItem-c59db4a2.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', './BaseCardView-70b177ed', 'preact/jsx-runtime', 'preact', 'preact/compat', 'preact/hooks', './mergeProps-bcfa6a92', './keys-4755c121', './collectionUtils-17f5cc64', './clientHints-4f5a07b0', './useCurrentKey-31c18053', './useUser-85c781ea', './LayerHost-e95c5f30', './Common/themes/redwood/theme', './Common/themes/themeContract.css', './useCollectionFocusRing-66a6fc12', './useTabbableModeSet-dc176f1d', './useSelection-f0c7d74d', './textSelectionUtils-06c7855d', 'css!./DragAndDropStyles.styles.css', 'css!./ReorderableItemStyles.styles.css', './ReorderableContext-6d10a1b7', './Selector-2b0c34a7', './UNSAFE_Selector/themes/SelectorStyles.css', 'css!./SelectorStyles.styles.css', './vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', './StyledCheckbox-616b89fc', './Check-99925738', './Icon-2d38c876', './size-a75b3f13', './utils-5077c092', './colorUtils-7c069766', './_curry1-df649359', './useTooltip-7b11fd35', './useTooltipControlled-52183a08', './useId-c9578d26', './useHover-7964884c', './useToggle-a29f97af', './useFocus-4194fc59', './useTouch-37489bb5', './useAnimation-5a74955f', './useComponentTheme-5aa41a8f', './logger-0f873e29', './useTestId-3a316499', './useThemeInterpolations-6b2de213', './useColorScheme-10dc88de', './useScale-37d42c9d', './theme-a8f3d819', './Theme-d945adae', './mergeInterpolations-9ede4cf7', './classNames-08d99695', './mergeDeepWithKey-aaab9019', './_curry3-83878f86', './_curry2-86c52b86', './_isObject-42bafc94', './useDensity-c83df7b4', './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-69ce0a2d', './EnvironmentProvider-8f6fc388', './LayerManager-76fcfb58', './Floating-1ec5ec2a', './useFloating-acd30a55', './positionUtils-6e4daa31', './refUtils-d354a169', './useOutsideClick-f99b7a84', './arrayUtils-6ee96a35', './Layer-447c68e6', './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-eceadd82', './UNSAFE_Floating/themes/FloatingContract.css', './UNSAFE_Icon/themes/IconStyle.css', 'css!./IconStyle.styles.css', './CheckboxOff-fbff2670', './CheckboxOn-d9d81447', './CheckboxMixed-20600474', './HiddenAccessible-037ef42d', 'css!./HiddenAccessibleStyles.styles.css', './UNSAFE_Checkbox/themes/CheckboxIconContract.css', './UNSAFE_Checkbox/themes/redwood/CheckboxIconTheme', './UNSAFE_Checkbox/themes/CheckboxIconStyles.css', 'css!./CheckboxIconStyles.styles.css', './UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.css', 'module', './UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css', 'css!./CheckboxIconVariants.styles.css', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', 'css!./StyledCheckbox.styles.css', './CollectionInteractionContext-0b4ed98b', './useCollectionInteractionContext-f345e8f7', './useActive-bb5dc069', './LoadMoreCollection-a6adbc3f', './useViewportIntersect-b2d47a4b', './Collection-46cfa244', './PRIVATE_BaseCardView/themes/BaseCardViewStyles.css', 'css!./BaseCardViewStyles.styles.css', './tabbableUtils-85aa6918', './head-9cb1a3da', './_arity-5a5f5f71', './_isArray-32602db6', './_isString-d0ada3cb', './useResizeObserver-275c3e83', './useVisAddBusyState-2d2ccb92', './VisBusyStateContext-63467849', './useVisBusyStateContext-7b0606e7', './FocusTrap-60520575', './FocusTracker-2ac5bbfe', './PRIVATE_FocusTracker/themes/FocusTrackerStyles.css', 'css!./FocusTrackerStyles.styles.css', './useReorderableItem-4c4779f7', './useTranslationBundle-516b1b83', './dndUtils-9d9ccdc5', './hooks/PRIVATE_useReorderable/themes/ReorderableItemStyles.css', './useReorderableContext-a5453bd7', './Grid-160f4885', './grid-767b4587', './boxalignment-905057dc', 'css!./boxalignment.styles.css', './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-84d30764', 'css!./GridStyles.styles.css', './Flex-56ecdf4c', './dimensions-60420dbb', './flexbox-8521f6aa', 'css!./flexbox.styles.css', './flexitem-5db48325', 'css!./flexitem.styles.css', 'css!./FlexStyles.styles.css', './PRIVATE_BaseCardView/themes/BaseCardViewContract.css', './Skeleton-5839404b', './borders-e15a6927', './UNSAFE_Skeleton/themes/redwood/SkeletonTheme', './UNSAFE_Skeleton/themes/SkeletonStyles.css', 'css!./SkeletonStyles.styles.css', './UNSAFE_Skeleton/themes/redwood/SkeletonBaseTheme.css', 'module', './UNSAFE_Skeleton/themes/redwood/SkeletonVariants.css', './useCurrentItemOverride-bb6266d0', 'module'], (function(e,s,t,o,c,a,l,r,d,n,i,b,h,m,S,y,u,C,f,F,T,k,x,_,A,U,p,g,E,w,I,N,V,B,R,v,P,M,L,O,H,z,D,j,G,K,X,W,q,J,Q,Y,Z,$,ee,se,te,oe,ce,ae,le,re,de,ne,ie,be,he,me,Se,ye,ue,Ce,fe,Fe,Te,ke,xe,_e,Ae,Ue,pe,ge,Ee,we,Ie,Ne,Ve,Be,Re,ve,Pe,Me,Le,Oe,He,ze,De,je,Ge,Ke,Xe,We,qe,Je,Qe,Ye,Ze,$e,es,ss,ts,os,cs,as,ls,rs,ds,ns,is,bs,hs,ms,Ss,ys,us,Cs,fs,Fs,Ts,ks,xs,_s,As,Us,ps,gs,Es,ws,Is,Ns,Vs,Bs,Rs,vs,Ps,Ms,Ls,Os,Hs,zs,Ds,js){"use strict";e.BaseCardView=s.BaseCardView,e.getColCount=s.getColCount,e.gutterSizeToPX=s.gutterSizeToPX,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(['exports', './BaseCardView-ab799b69', 'preact/jsx-runtime', 'preact', 'preact/compat', 'preact/hooks', './mergeProps-bcfa6a92', './keys-4755c121', './collectionUtils-17f5cc64', './clientHints-4f5a07b0', './useCurrentKey-a993db56', './useUser-3ef25571', './LayerHost-639b3284', './Common/themes/redwood/theme', './Common/themes/themeContract.css', './useCollectionFocusRing-66a6fc12', './useTabbableModeSet-dc176f1d', './useSelection-4249360e', './textSelectionUtils-06c7855d', 'css!./DragAndDropStyles.styles.css', 'css!./ReorderableItemStyles.styles.css', './ReorderableContext-6d10a1b7', './Selector-2b0c34a7', './UNSAFE_Selector/themes/SelectorStyles.css', 'css!./SelectorStyles.styles.css', './vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', './StyledCheckbox-616b89fc', './Check-99925738', './Icon-2d38c876', './size-a75b3f13', './utils-5077c092', './colorUtils-7c069766', './_curry1-df649359', './useTooltip-b43ad881', './useTooltipControlled-ee3276de', './useId-c9578d26', './useHover-7964884c', './useToggle-a29f97af', './useFocus-4194fc59', './useTouch-37489bb5', './useAnimation-5a74955f', './useComponentTheme-5aa41a8f', './logger-0f873e29', './useTestId-b5cd4766', './useThemeInterpolations-ab618dee', './useColorScheme-443e7cc7', './useScale-e311d35f', './theme-a8f3d819', './Theme-d945adae', './mergeInterpolations-9ede4cf7', './classNames-08d99695', './mergeDeepWithKey-aaab9019', './_curry3-83878f86', './_curry2-86c52b86', './_isObject-42bafc94', './useDensity-f0f7ae9a', './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-e5bdb734', './EnvironmentProvider-c0e1e39b', './LayerManager-2972de92', './Floating-5d98c1ca', './useFloating-bf8ed6cb', './positionUtils-6e4daa31', './refUtils-d354a169', './useOutsideClick-76c1ff6e', './arrayUtils-6ee96a35', './Layer-6f29b67f', './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-eceadd82', './UNSAFE_Floating/themes/FloatingContract.css', './UNSAFE_Icon/themes/IconStyle.css', 'css!./IconStyle.styles.css', './CheckboxOff-fbff2670', './CheckboxOn-d9d81447', './CheckboxMixed-20600474', './HiddenAccessible-037ef42d', 'css!./HiddenAccessibleStyles.styles.css', './UNSAFE_Checkbox/themes/CheckboxIconContract.css', './UNSAFE_Checkbox/themes/redwood/CheckboxIconTheme', './UNSAFE_Checkbox/themes/CheckboxIconStyles.css', 'css!./CheckboxIconStyles.styles.css', './UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.css', 'module', './UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css', 'css!./CheckboxIconVariants.styles.css', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', 'css!./StyledCheckbox.styles.css', './CollectionInteractionContext-0b4ed98b', './useCollectionInteractionContext-f345e8f7', './useActive-bb5dc069', './LoadMoreCollection-83413a59', './Collection-46cfa244', './useViewportIntersect-b2d47a4b', './PRIVATE_BaseCardView/themes/BaseCardViewStyles.css', 'css!./BaseCardViewStyles.styles.css', './tabbableUtils-85aa6918', './head-9cb1a3da', './_arity-5a5f5f71', './_isArray-32602db6', './_isString-d0ada3cb', './useResizeObserver-275c3e83', './useVisAddBusyState-2d2ccb92', './VisBusyStateContext-63467849', './useVisBusyStateContext-7b0606e7', './FocusTrap-60520575', './FocusTracker-2ac5bbfe', './PRIVATE_FocusTracker/themes/FocusTrackerStyles.css', 'css!./FocusTrackerStyles.styles.css', './useReorderableItem-726c3c03', './useTranslationBundle-d07d4b20', './dndUtils-9d9ccdc5', './hooks/PRIVATE_useReorderable/themes/ReorderableItemStyles.css', './useReorderableContext-a5453bd7', './Grid-8911aa0f', './grid-767b4587', './boxalignment-905057dc', 'css!./boxalignment.styles.css', './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-84d30764', 'css!./GridStyles.styles.css', './Flex-3421f0df', './dimensions-60420dbb', './flexbox-8521f6aa', 'css!./flexbox.styles.css', './flexitem-5db48325', 'css!./flexitem.styles.css', 'css!./FlexStyles.styles.css', './PRIVATE_BaseCardView/themes/BaseCardViewContract.css', './Skeleton-5839404b', './borders-e15a6927', './UNSAFE_Skeleton/themes/redwood/SkeletonTheme', './UNSAFE_Skeleton/themes/SkeletonStyles.css', 'css!./SkeletonStyles.styles.css', './UNSAFE_Skeleton/themes/redwood/SkeletonBaseTheme.css', 'module', './UNSAFE_Skeleton/themes/redwood/SkeletonVariants.css', './useCurrentItemOverride-bb6266d0', 'module'], (function(e,s,t,o,c,a,l,r,d,n,i,b,h,m,S,y,u,C,f,F,T,k,x,_,A,U,p,g,E,w,I,N,V,B,R,v,P,M,L,O,H,z,D,j,G,K,X,W,q,J,Q,Y,Z,$,ee,se,te,oe,ce,ae,le,re,de,ne,ie,be,he,me,Se,ye,ue,Ce,fe,Fe,Te,ke,xe,_e,Ae,Ue,pe,ge,Ee,we,Ie,Ne,Ve,Be,Re,ve,Pe,Me,Le,Oe,He,ze,De,je,Ge,Ke,Xe,We,qe,Je,Qe,Ye,Ze,$e,es,ss,ts,os,cs,as,ls,rs,ds,ns,is,bs,hs,ms,Ss,ys,us,Cs,fs,Fs,Ts,ks,xs,_s,As,Us,ps,gs,Es,ws,Is,Ns,Vs,Bs,Rs,vs,Ps,Ms,Ls,Os,Hs,zs,Ds,js){"use strict";e.BaseCardView=s.BaseCardView,e.getColCount=s.getColCount,e.gutterSizeToPX=s.gutterSizeToPX,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=PRIVATE_BaseCardView.js.map