@oracle/oraclejet-preact 17.0.0 → 17.0.1

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 (569) hide show
  1. package/amd/ActionCard-c8070525.js +1 -1
  2. package/amd/{BarChart-be1d51d4.js → BarChart-6c921af0.js} +2 -2
  3. package/amd/{BarChart-be1d51d4.js.map → BarChart-6c921af0.js.map} +1 -1
  4. package/amd/BaseButton-83ce1d00.js +1 -1
  5. package/amd/{BaseCardView-1aa0d986.js → BaseCardView-3c1e5b4c.js} +2 -2
  6. package/amd/{BaseCardView-1aa0d986.js.map → BaseCardView-3c1e5b4c.js.map} +1 -1
  7. package/amd/{BaseCardViewSelectionTest-09799a11.js → BaseCardViewSelectionTest-28e25f08.js} +2 -2
  8. package/amd/{BaseCardViewSelectionTest-09799a11.js.map → BaseCardViewSelectionTest-28e25f08.js.map} +1 -1
  9. package/amd/BaseNavigationListItem-4a940426.js +1 -1
  10. package/amd/ButtonSet-d8cd5447.js +1 -1
  11. package/amd/ButtonSetIconButton-08612ca6.js +1 -1
  12. package/amd/CardFlexView-3e4bd681.js +2 -0
  13. package/amd/{CardFlexView-a647550f.js.map → CardFlexView-3e4bd681.js.map} +1 -1
  14. package/amd/CardGridView-8fb55ad7.js +2 -0
  15. package/amd/{CardGridView-06fb67cb.js.map → CardGridView-8fb55ad7.js.map} +1 -1
  16. package/amd/Center-5f845605.js +2 -0
  17. package/amd/{Center-ce88b58a.js.map → Center-5f845605.js.map} +1 -1
  18. package/amd/{Chart-4796be31.js → Chart-0f54dae3.js} +2 -2
  19. package/amd/{Chart-4796be31.js.map → Chart-0f54dae3.js.map} +1 -1
  20. package/amd/CheckboxControl-7d539ab3.js +1 -1
  21. package/amd/CheckboxRadioField-da88bd6f.js +1 -1
  22. package/amd/CheckboxSetContext-2e486ea8.js +2 -0
  23. package/{cjs/CheckboxSetContext-c62db26d.js.map → amd/CheckboxSetContext-2e486ea8.js.map} +1 -1
  24. package/amd/Chip-26339152.js +1 -1
  25. package/amd/ClearIcon-a29e57fb.js +1 -1
  26. package/amd/CollapseIcon-c433fd3e.js +1 -1
  27. package/amd/Collapsible-8f15bec2.js +1 -1
  28. package/amd/CompactHelpSource-7de24d56.js +1 -1
  29. package/amd/CompactLabelAssistance-91aeaa2e.js +2 -0
  30. package/amd/{CompactLabelAssistance-9b6b3be2.js.map → CompactLabelAssistance-91aeaa2e.js.map} +1 -1
  31. package/amd/CompactUserAssistance-b2cbdbad.js +1 -1
  32. package/amd/ComponentMessageContainer-dc4b7c7f.js +1 -1
  33. package/amd/ConveyorBeltItem-d398eaa6.js +1 -1
  34. package/amd/{DatePicker-70b1aba4.js → DatePicker-3996fc76.js} +2 -2
  35. package/amd/{DatePicker-70b1aba4.js.map → DatePicker-3996fc76.js.map} +1 -1
  36. package/amd/DatePickerHeader-52c085e6.js +1 -1
  37. package/amd/{Diagram-9627b062.js → Diagram-737e9921.js} +2 -2
  38. package/amd/{Diagram-9627b062.js.map → Diagram-737e9921.js.map} +1 -1
  39. package/amd/DirectionalCollapseArrowIcon-09a24655.js +1 -1
  40. package/amd/DirectionalExpandArrowIcon-c8f2e596.js +1 -1
  41. package/amd/DragHandle-351a20be.js +1 -1
  42. package/amd/{Dropdown-c62373dd.js → Dropdown-de472a1d.js} +2 -2
  43. package/amd/{Dropdown-c62373dd.js.map → Dropdown-de472a1d.js.map} +1 -1
  44. package/amd/{EnvironmentProvider-9e71b5c2.js → EnvironmentProvider-46d0a245.js} +2 -2
  45. package/amd/{EnvironmentProvider-9e71b5c2.js.map → EnvironmentProvider-46d0a245.js.map} +1 -1
  46. package/amd/FilePicker-9b2fb661.js +1 -1
  47. package/amd/{Flex-db3ddadb.js → Flex-1f27b601.js} +2 -2
  48. package/amd/{Flex-db3ddadb.js.map → Flex-1f27b601.js.map} +1 -1
  49. package/amd/{Floating-8f519f4d.js → Floating-85851b1a.js} +2 -2
  50. package/amd/{Floating-8f519f4d.js.map → Floating-85851b1a.js.map} +1 -1
  51. package/amd/FormLayout-80b89e74.js +1 -1
  52. package/amd/Gantt-6fe34398.js +1 -1
  53. package/amd/{Grid-209ab070.js → Grid-85171367.js} +2 -2
  54. package/amd/{Grid-209ab070.js.map → Grid-85171367.js.map} +1 -1
  55. package/amd/{Gridlines-8ca4f9ee.js → Gridlines-11a94c28.js} +2 -2
  56. package/amd/{Gridlines-8ca4f9ee.js.map → Gridlines-11a94c28.js.map} +1 -1
  57. package/amd/GroupLoadingIndicator-e66ed431.js +1 -1
  58. package/amd/HighlightText-ad9bc1f8.js +2 -0
  59. package/amd/{HighlightText-415dc14f.js.map → HighlightText-ad9bc1f8.js.map} +1 -1
  60. package/amd/Icon-599f55f3.js +1 -1
  61. package/amd/IconButton-1b328b69.js +1 -1
  62. package/amd/IconMenuButton-c275cfbb.js +1 -1
  63. package/amd/IconSwitchButton-0e888503.js +1 -1
  64. package/amd/IconToggleButton-563a5127.js +1 -1
  65. package/amd/{IconUserAssistance-f8928f19.js → IconUserAssistance-5bdaa6bf.js} +2 -2
  66. package/amd/{IconUserAssistance-f8928f19.js.map → IconUserAssistance-5bdaa6bf.js.map} +1 -1
  67. package/amd/{Indexer-204a6d88.js → Indexer-51d51cda.js} +2 -2
  68. package/amd/{Indexer-204a6d88.js.map → Indexer-51d51cda.js.map} +1 -1
  69. package/amd/InlineHelpSource-359fd9df.js +1 -1
  70. package/amd/InlineUserAssistance-f4d1fa1b.js +1 -1
  71. package/amd/InputDateMask-b7a27faa.js +1 -1
  72. package/amd/InputDatePicker-da5d8728.js +1 -1
  73. package/amd/InputPassword-03f24e78.js +1 -1
  74. package/amd/InputText-da0a5c0f.js +1 -1
  75. package/amd/Label-3f8fc274.js +1 -1
  76. package/amd/LabelValueLayout-89e9f1be.js +1 -1
  77. package/amd/Layer-3cc44164.js +2 -0
  78. package/amd/{Layer-8d7bbd69.js.map → Layer-3cc44164.js.map} +1 -1
  79. package/amd/{LayerHost-0a244de8.js → LayerHost-eab40731.js} +2 -2
  80. package/amd/{LayerHost-0a244de8.js.map → LayerHost-eab40731.js.map} +1 -1
  81. package/amd/{LayerManager-00983765.js → LayerManager-d0836029.js} +2 -2
  82. package/amd/{LayerManager-00983765.js.map → LayerManager-d0836029.js.map} +1 -1
  83. package/amd/Legend-42f8653b.js +1 -1
  84. package/amd/{LineAreaChart-b68c4620.js → LineAreaChart-337cac30.js} +2 -2
  85. package/amd/{LineAreaChart-b68c4620.js.map → LineAreaChart-337cac30.js.map} +1 -1
  86. package/amd/Link-6f583879.js +1 -1
  87. package/amd/List-88a7bee6.js +2 -0
  88. package/amd/{List-5958c802.js.map → List-88a7bee6.js.map} +1 -1
  89. package/amd/ListItemLayout-dba9e24b.js +2 -0
  90. package/amd/{ListItemLayout-12aee4bd.js.map → ListItemLayout-dba9e24b.js.map} +1 -1
  91. package/amd/{ListView-27d10b67.js → ListView-6739207e.js} +2 -2
  92. package/amd/{ListView-27d10b67.js.map → ListView-6739207e.js.map} +1 -1
  93. package/amd/LiveRegion-be6f36d7.js +2 -0
  94. package/amd/{LiveRegion-09197914.js.map → LiveRegion-be6f36d7.js.map} +1 -1
  95. package/amd/LoadMoreCollection-a6adbc3f.js +2 -0
  96. package/amd/{LoadMoreCollection-83413a59.js.map → LoadMoreCollection-a6adbc3f.js.map} +1 -1
  97. package/amd/MaxLengthLiveRegion-23d7e335.js +2 -0
  98. package/amd/{MaxLengthLiveRegion-e3856a98.js.map → MaxLengthLiveRegion-23d7e335.js.map} +1 -1
  99. package/amd/{Menu-6a5d7fce.js → Menu-51409b28.js} +2 -2
  100. package/amd/{Menu-6a5d7fce.js.map → Menu-51409b28.js.map} +1 -1
  101. package/amd/MenuButton-c8fb534d.js +1 -1
  102. package/amd/MenuItem-644f8619.js +1 -1
  103. package/amd/Message-51d787d0.js +1 -1
  104. package/amd/MessageLayer-d2c49999.js +2 -0
  105. package/amd/{MessageLayer-cf2fbea9.js.map → MessageLayer-d2c49999.js.map} +1 -1
  106. package/amd/MessageToast-e0e07765.js +1 -1
  107. package/amd/MessagesManager-78a10f78.js +1 -1
  108. package/amd/MeterBar-38666619.js +1 -1
  109. package/amd/MeterCircle-f1561632.js +1 -1
  110. package/amd/{Modal-8f19889c.js → Modal-8c095bea.js} +2 -2
  111. package/amd/{Modal-8f19889c.js.map → Modal-8c095bea.js.map} +1 -1
  112. package/amd/{MonthView-297fceb8.js → MonthView-b5d1d69d.js} +2 -2
  113. package/amd/{MonthView-297fceb8.js.map → MonthView-b5d1d69d.js.map} +1 -1
  114. package/amd/NavigationListItem-c96ac144.js +2 -0
  115. package/amd/{NavigationListItem-0a4f8a9c.js.map → NavigationListItem-c96ac144.js.map} +1 -1
  116. package/amd/NumberInputText-0d8284f8.js +1 -1
  117. package/amd/{OverflowTabBarItem-aae4eb2f.js → OverflowTabBarItem-f781e527.js} +2 -2
  118. package/amd/{OverflowTabBarItem-aae4eb2f.js.map → OverflowTabBarItem-f781e527.js.map} +1 -1
  119. package/amd/PRIVATE_BaseCardView.js +1 -1
  120. package/amd/PRIVATE_Chart.js +1 -1
  121. package/amd/PRIVATE_CheckboxControl.js +1 -1
  122. package/amd/PRIVATE_CheckboxRadioField.js +1 -1
  123. package/amd/PRIVATE_ClearIcon.js +1 -1
  124. package/amd/PRIVATE_DatePickerHeader.js +1 -1
  125. package/amd/PRIVATE_DatePickerLayout.js +1 -1
  126. package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
  127. package/amd/PRIVATE_FormControls.js +1 -1
  128. package/amd/PRIVATE_IconSwitchButton.js +1 -1
  129. package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
  130. package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
  131. package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
  132. package/amd/PRIVATE_Icons/RadiobuttonOff.js +1 -1
  133. package/amd/PRIVATE_Icons/RadiobuttonOn.js +1 -1
  134. package/amd/PRIVATE_Icons/WarningS.js +1 -1
  135. package/amd/PRIVATE_List.js +1 -1
  136. package/amd/PRIVATE_LoadMoreCollection.js +1 -1
  137. package/amd/PRIVATE_Message.js +1 -1
  138. package/amd/PRIVATE_MessageLayer.js +1 -1
  139. package/amd/PRIVATE_MonthView.js +1 -1
  140. package/amd/PRIVATE_MonthYearGridView.js +1 -1
  141. package/amd/PRIVATE_PlotArea.js +1 -1
  142. package/amd/PRIVATE_RevealToggleIcon.js +1 -1
  143. package/amd/PRIVATE_SelectCommon.js +1 -1
  144. package/amd/PRIVATE_StyledCheckbox.js +1 -1
  145. package/amd/PRIVATE_Table.js +1 -1
  146. package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
  147. package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
  148. package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
  149. package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
  150. package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
  151. package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
  152. package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
  153. package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
  154. package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
  155. package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
  156. package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
  157. package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
  158. package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
  159. package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
  160. package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
  161. package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
  162. package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
  163. package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
  164. package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
  165. package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
  166. package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
  167. package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
  168. package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
  169. package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
  170. package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
  171. package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
  172. package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
  173. package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
  174. package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
  175. package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
  176. package/amd/PRIVATE_ThemedIcons/SortDefaultIcon.js +1 -1
  177. package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
  178. package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
  179. package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
  180. package/amd/PRIVATE_TimeComponent.js +1 -1
  181. package/amd/PRIVATE_VirtualizedCollection.js +1 -1
  182. package/amd/PRIVATE_VisTabularDatatip.js +1 -1
  183. package/amd/PictoChart-4d70af90.js +1 -1
  184. package/amd/{PieChart-295e2dbf.js → PieChart-ab4c95f7.js} +2 -2
  185. package/amd/{PieChart-295e2dbf.js.map → PieChart-ab4c95f7.js.map} +1 -1
  186. package/amd/{Popup-b5495d55.js → Popup-249d77c3.js} +2 -2
  187. package/amd/{Popup-b5495d55.js.map → Popup-249d77c3.js.map} +1 -1
  188. package/amd/{ProgressBar-e9b37565.js → ProgressBar-f82d6b43.js} +2 -2
  189. package/amd/{ProgressBar-e9b37565.js.map → ProgressBar-f82d6b43.js.map} +1 -1
  190. package/amd/{ProgressCircle-3b0d70d1.js → ProgressCircle-fc85cd7c.js} +2 -2
  191. package/amd/{ProgressCircle-3b0d70d1.js.map → ProgressCircle-fc85cd7c.js.map} +1 -1
  192. package/amd/RadioItem-27c120ba.js +1 -1
  193. package/amd/RatingGauge-dfe9f698.js +1 -1
  194. package/amd/ReadonlyTextFieldInput-a5e85e5d.js +1 -1
  195. package/amd/RemovableNavigationListItem-87ecbae7.js +1 -1
  196. package/amd/RemovableTabBarItem-89287a9b.js +1 -1
  197. package/amd/ReorderableTabBar-05821909.js +1 -1
  198. package/amd/RevealToggleIcon-ef89d654.js +1 -1
  199. package/amd/SectionalLegend-798dbecb.js +1 -1
  200. package/amd/SectionedContent-655a773a.js +2 -0
  201. package/amd/{SectionedContent-d896b84f.js.map → SectionedContent-655a773a.js.map} +1 -1
  202. package/amd/{SelectMultiple-fabd883c.js → SelectMultiple-06da3db0.js} +2 -2
  203. package/amd/{SelectMultiple-fabd883c.js.map → SelectMultiple-06da3db0.js.map} +1 -1
  204. package/amd/{SelectSingle-34d636a8.js → SelectSingle-2266e5c4.js} +2 -2
  205. package/amd/{SelectSingle-34d636a8.js.map → SelectSingle-2266e5c4.js.map} +1 -1
  206. package/amd/SelectionCard-0ecc7773.js +2 -0
  207. package/amd/{SelectionCard-ec3ee20d.js.map → SelectionCard-0ecc7773.js.map} +1 -1
  208. package/amd/Selector-ad2af152.js +1 -1
  209. package/amd/SelectorAll-879d186e.js +1 -1
  210. package/amd/{Sheet-a398d015.js → Sheet-6447f399.js} +2 -2
  211. package/amd/{Sheet-a398d015.js.map → Sheet-6447f399.js.map} +1 -1
  212. package/amd/SplitMenuButton-deb0fc04.js +1 -1
  213. package/amd/StyledTextField-8ac3bbb4.js +1 -1
  214. package/amd/Submenu-b20a55aa.js +1 -1
  215. package/amd/TabBar-10096a0c.js +1 -1
  216. package/amd/TabBarItem-7f4a5e0b.js +1 -1
  217. package/amd/TabBarLayout-f8e0fcad.js +1 -1
  218. package/amd/TabBarMixed-5adc54c4.js +1 -1
  219. package/amd/TabBarMixedSeparator-10a52b13.js +2 -0
  220. package/amd/{TabBarMixedSeparator-234c9a75.js.map → TabBarMixedSeparator-10a52b13.js.map} +1 -1
  221. package/amd/{Table-fda0ad21.js → Table-8e271f0f.js} +2 -2
  222. package/amd/{Table-fda0ad21.js.map → Table-8e271f0f.js.map} +1 -1
  223. package/amd/{TableView-e4216655.js → TableView-cc05c32f.js} +2 -2
  224. package/amd/{TableView-e4216655.js.map → TableView-cc05c32f.js.map} +1 -1
  225. package/amd/TagCloud-a37fcea5.js +1 -1
  226. package/amd/TextArea-2c7af40c.js +2 -0
  227. package/{es/TextArea-979496a0.js.map → amd/TextArea-2c7af40c.js.map} +1 -1
  228. package/amd/TextAreaAutosize-9dc5bffe.js +2 -0
  229. package/amd/{TextAreaAutosize-0a023972.js.map → TextAreaAutosize-9dc5bffe.js.map} +1 -1
  230. package/amd/TextField-0fc70892.js +1 -1
  231. package/amd/TextFieldInput-dfd9529f.js +1 -1
  232. package/amd/Theme-redwood/theme.css +279 -279
  233. package/amd/Theme-stable/theme.css +291 -291
  234. package/amd/TimeComponentCanvas2D-d4a5891c.js +1 -1
  235. package/amd/Toolbar-98c1d888.js +1 -1
  236. package/amd/TruncatingBadge-67192c05.js +1 -1
  237. package/amd/TruncatingText-27ffd8e4.js +1 -1
  238. package/amd/UNSAFE_ActionCard.js +1 -1
  239. package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
  240. package/amd/UNSAFE_BarChart.js +1 -1
  241. package/amd/UNSAFE_BaseButton.js +1 -1
  242. package/amd/UNSAFE_Button.js +1 -1
  243. package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  244. package/amd/UNSAFE_ButtonSet.js +1 -1
  245. package/amd/UNSAFE_ButtonSetButton.js +1 -1
  246. package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
  247. package/amd/UNSAFE_ButtonSetItem.js +1 -1
  248. package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
  249. package/amd/UNSAFE_ButtonSetSingle.js +1 -1
  250. package/amd/UNSAFE_CardFlexView.js +1 -1
  251. package/amd/UNSAFE_CardGridView.js +1 -1
  252. package/amd/UNSAFE_Center.js +1 -1
  253. package/amd/UNSAFE_ChartWithLegend.js +1 -1
  254. package/amd/UNSAFE_Checkbox.js +1 -1
  255. package/amd/UNSAFE_CheckboxItem.js +1 -1
  256. package/amd/UNSAFE_CheckboxItem.js.map +1 -1
  257. package/amd/UNSAFE_CheckboxSet.js +1 -1
  258. package/amd/UNSAFE_CheckboxSet.js.map +1 -1
  259. package/amd/UNSAFE_Chip.js +1 -1
  260. package/amd/UNSAFE_Collapsible.js +1 -1
  261. package/amd/UNSAFE_ComponentMessage.js +1 -1
  262. package/amd/UNSAFE_ConveyorBelt.js +1 -1
  263. package/amd/UNSAFE_DatePicker.js +1 -1
  264. package/amd/UNSAFE_Diagram.js +1 -1
  265. package/amd/UNSAFE_Dialog.js +1 -1
  266. package/amd/UNSAFE_DragHandle.js +1 -1
  267. package/amd/UNSAFE_DrawerLayout.js +1 -1
  268. package/amd/UNSAFE_DrawerPopup.js +1 -1
  269. package/amd/UNSAFE_Dropdown.js +1 -1
  270. package/amd/UNSAFE_Environment.js +1 -1
  271. package/amd/UNSAFE_ExpandableList.js +1 -1
  272. package/amd/UNSAFE_FilePicker.js +1 -1
  273. package/amd/UNSAFE_Flex.js +1 -1
  274. package/amd/UNSAFE_Floating.js +1 -1
  275. package/amd/UNSAFE_FormLayout.js +1 -1
  276. package/amd/UNSAFE_Gantt.js +1 -1
  277. package/amd/UNSAFE_Grid.js +1 -1
  278. package/amd/UNSAFE_HighlightText.js +1 -1
  279. package/amd/UNSAFE_Icon.js +1 -1
  280. package/amd/UNSAFE_IconButton.js +1 -1
  281. package/amd/UNSAFE_IconMenuButton.js +1 -1
  282. package/amd/UNSAFE_IconToggleButton.js +1 -1
  283. package/amd/UNSAFE_Indexer.js +1 -1
  284. package/amd/UNSAFE_InputDateMask.js +1 -1
  285. package/amd/UNSAFE_InputDatePicker.js +1 -1
  286. package/amd/UNSAFE_InputPassword.js +1 -1
  287. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  288. package/amd/UNSAFE_InputText.js +1 -1
  289. package/amd/UNSAFE_Label.js +1 -1
  290. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  291. package/amd/UNSAFE_LabelledLink.js +1 -1
  292. package/amd/UNSAFE_Layer.js +1 -1
  293. package/amd/UNSAFE_Legend.js +1 -1
  294. package/amd/UNSAFE_LineAreaChart/__test__/LineChart.spec.js +1 -1
  295. package/amd/UNSAFE_LineAreaChart.js +1 -1
  296. package/amd/UNSAFE_Link.js +1 -1
  297. package/amd/UNSAFE_ListItemLayout.js +1 -1
  298. package/amd/UNSAFE_ListView.js +1 -1
  299. package/amd/UNSAFE_LiveRegion.js +1 -1
  300. package/amd/UNSAFE_Menu.js +1 -1
  301. package/amd/UNSAFE_MenuButton.js +1 -1
  302. package/amd/UNSAFE_MessageBanner.js +1 -1
  303. package/amd/UNSAFE_MessageToast.js +1 -1
  304. package/amd/UNSAFE_MeterBar.js +1 -1
  305. package/amd/UNSAFE_MeterCircle.js +1 -1
  306. package/amd/UNSAFE_Modal.js +1 -1
  307. package/amd/UNSAFE_NavigationList.js +1 -1
  308. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  309. package/amd/UNSAFE_NumberInputText.js +1 -1
  310. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  311. package/amd/UNSAFE_PictoChart.js +1 -1
  312. package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
  313. package/amd/UNSAFE_PieChart.js +1 -1
  314. package/amd/UNSAFE_Popup.js +1 -1
  315. package/amd/UNSAFE_ProgressBar.js +1 -1
  316. package/amd/UNSAFE_ProgressCircle.js +1 -1
  317. package/amd/UNSAFE_RadioItem.js +1 -1
  318. package/amd/UNSAFE_RadioSet.js +1 -1
  319. package/amd/UNSAFE_RatingGauge.js +1 -1
  320. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  321. package/amd/UNSAFE_SectionalLegend.js +1 -1
  322. package/amd/UNSAFE_SelectMultiple.js +1 -1
  323. package/amd/UNSAFE_SelectSingle.js +1 -1
  324. package/amd/UNSAFE_SelectionCard.js +1 -1
  325. package/amd/UNSAFE_Selector.js +1 -1
  326. package/amd/UNSAFE_SelectorAll.js +1 -1
  327. package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
  328. package/amd/UNSAFE_Sheet.js +1 -1
  329. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  330. package/amd/UNSAFE_TabBar.js +1 -1
  331. package/amd/UNSAFE_TabBarCommon.js +1 -1
  332. package/amd/UNSAFE_TabBarMixed.js +1 -1
  333. package/amd/UNSAFE_TableView.js +1 -1
  334. package/amd/UNSAFE_TagCloud.js +1 -1
  335. package/amd/UNSAFE_TextArea.js +1 -1
  336. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  337. package/amd/UNSAFE_TextField.js +1 -1
  338. package/amd/UNSAFE_ToggleButton.js +1 -1
  339. package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  340. package/amd/UNSAFE_Toolbar.js +1 -1
  341. package/amd/UNSAFE_Train.js +1 -1
  342. package/amd/UNSAFE_TruncatingBadge.js +1 -1
  343. package/amd/UNSAFE_TruncatingText.js +1 -1
  344. package/amd/UNSAFE_UserAssistance.js +1 -1
  345. package/amd/UNSAFE_View.js +1 -1
  346. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  347. package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
  348. package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
  349. package/amd/UNSAFE_VisStatusMessage.js +1 -1
  350. package/amd/UNSAFE_WindowOverlay.js +1 -1
  351. package/amd/{View-10a5769c.js → View-8701dec6.js} +2 -2
  352. package/amd/{View-10a5769c.js.map → View-8701dec6.js.map} +1 -1
  353. package/amd/{VirtualizedCollection-897516a5.js → VirtualizedCollection-63223f5e.js} +2 -2
  354. package/amd/{VirtualizedCollection-897516a5.js.map → VirtualizedCollection-63223f5e.js.map} +1 -1
  355. package/amd/VirtualizedListView-0924cf91.js +2 -0
  356. package/amd/{VirtualizedListView-ead601c7.js.map → VirtualizedListView-0924cf91.js.map} +1 -1
  357. package/amd/VisNoData-bfb5065e.js +2 -0
  358. package/amd/{VisNoData-95d951c2.js.map → VisNoData-bfb5065e.js.map} +1 -1
  359. package/amd/{VisProgressiveLoader-39f1b4ef.js → VisProgressiveLoader-ef9de93a.js} +2 -2
  360. package/amd/{VisProgressiveLoader-39f1b4ef.js.map → VisProgressiveLoader-ef9de93a.js.map} +1 -1
  361. package/amd/{VisTabularDatatip-e945d6f6.js → VisTabularDatatip-5e43455b.js} +2 -2
  362. package/amd/{VisTabularDatatip-e945d6f6.js.map → VisTabularDatatip-5e43455b.js.map} +1 -1
  363. package/amd/{WindowOverlay-ad61cfea.js → WindowOverlay-c09fece2.js} +2 -2
  364. package/amd/{WindowOverlay-ad61cfea.js.map → WindowOverlay-c09fece2.js.map} +1 -1
  365. package/amd/{YearsGridView-c76bb4da.js → YearsGridView-91e4744d.js} +2 -2
  366. package/amd/{YearsGridView-c76bb4da.js.map → YearsGridView-91e4744d.js.map} +1 -1
  367. package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
  368. package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
  369. package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
  370. package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
  371. package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
  372. package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
  373. package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
  374. package/amd/hooks/PRIVATE_useCssVars.js +1 -1
  375. package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
  376. package/amd/hooks/PRIVATE_useDatatip.js +1 -1
  377. package/amd/hooks/PRIVATE_useFloating.js +1 -1
  378. package/amd/hooks/PRIVATE_useReorderable.js +1 -1
  379. package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
  380. package/amd/hooks/PRIVATE_useSelection.js +1 -1
  381. package/amd/hooks/PRIVATE_useTabBar.js +1 -1
  382. package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
  383. package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
  384. package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
  385. package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
  386. package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
  387. package/amd/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  388. package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
  389. package/amd/hooks/UNSAFE_useDensity.js +1 -1
  390. package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
  391. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  392. package/amd/hooks/UNSAFE_useScale.js +1 -1
  393. package/amd/hooks/UNSAFE_useTestId.js +1 -1
  394. package/amd/hooks/UNSAFE_useTheme.js +1 -1
  395. package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
  396. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  397. package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
  398. package/amd/hooks/UNSAFE_useUser.js +1 -1
  399. package/amd/{index-8d4da04e.js → index-17fdb080.js} +2 -2
  400. package/amd/index-17fdb080.js.map +1 -0
  401. package/amd/listViewSelectionTests-a0132dcc.js +1 -1
  402. package/amd/{render-6de552e4.js → render-9b32a558.js} +2 -2
  403. package/amd/{render-6de552e4.js.map → render-9b32a558.js.map} +1 -1
  404. package/amd/{tabbableUtils-78cc49fd.js → tabbableUtils-5b5b70da.js} +2 -2
  405. package/amd/{tabbableUtils-78cc49fd.js.map → tabbableUtils-5b5b70da.js.map} +1 -1
  406. package/amd/{testData-6d873339.js → testData-8e20304d.js} +2 -2
  407. package/amd/{testData-6d873339.js.map → testData-8e20304d.js.map} +1 -1
  408. package/amd/useCellNavigation-37e0539a.js +1 -1
  409. package/amd/useChartContextMenu-c50617f2.js +1 -1
  410. package/amd/{useChartDatatip-34e2636c.js → useChartDatatip-672232af.js} +2 -2
  411. package/amd/{useChartDatatip-34e2636c.js.map → useChartDatatip-672232af.js.map} +1 -1
  412. package/amd/useChartMarquee-0e818e77.js +1 -1
  413. package/amd/{useColorScheme-3ffd80c4.js → useColorScheme-711c1e4b.js} +2 -2
  414. package/amd/{useColorScheme-3ffd80c4.js.map → useColorScheme-711c1e4b.js.map} +1 -1
  415. package/amd/useContextMenu-e6b10380.js +1 -1
  416. package/amd/useCssVars-948d1e7c.js +2 -0
  417. package/amd/{useCssVars-7efb591d.js.map → useCssVars-948d1e7c.js.map} +1 -1
  418. package/amd/{useCurrentBgColor-44e3f377.js → useCurrentBgColor-40103ccc.js} +2 -2
  419. package/amd/{useCurrentBgColor-44e3f377.js.map → useCurrentBgColor-40103ccc.js.map} +1 -1
  420. package/amd/useCurrentKey-00f81f0b.js +2 -0
  421. package/amd/{useCurrentKey-26170e5e.js.map → useCurrentKey-00f81f0b.js.map} +1 -1
  422. package/amd/{useDatatip-34fb67d2.js → useDatatip-d00735e9.js} +2 -2
  423. package/amd/{useDatatip-34fb67d2.js.map → useDatatip-d00735e9.js.map} +1 -1
  424. package/amd/{useDensity-be2ff874.js → useDensity-435224bb.js} +2 -2
  425. package/amd/{useDensity-be2ff874.js.map → useDensity-435224bb.js.map} +1 -1
  426. package/amd/{useFloating-30975c41.js → useFloating-bbd3396b.js} +2 -2
  427. package/amd/{useFloating-30975c41.js.map → useFloating-bbd3396b.js.map} +1 -1
  428. package/amd/useKeyboardEvents-e9a2b72b.js +2 -0
  429. package/amd/{useKeyboardEvents-57008a1d.js.map → useKeyboardEvents-e9a2b72b.js.map} +1 -1
  430. package/amd/useLegendContextMenu-5b1ca75b.js +1 -1
  431. package/amd/{useMeterDatatip-1a3890aa.js → useMeterDatatip-60af9281.js} +2 -2
  432. package/amd/{useMeterDatatip-1a3890aa.js.map → useMeterDatatip-60af9281.js.map} +1 -1
  433. package/amd/{useOutsideClick-90052c27.js → useOutsideClick-4519a64e.js} +2 -2
  434. package/amd/{useOutsideClick-90052c27.js.map → useOutsideClick-4519a64e.js.map} +1 -1
  435. package/amd/{usePopupAnimation-a0193874.js → usePopupAnimation-273054a0.js} +2 -2
  436. package/amd/{usePopupAnimation-a0193874.js.map → usePopupAnimation-273054a0.js.map} +1 -1
  437. package/amd/usePrefixSuffix-6ad5569e.js +2 -0
  438. package/amd/{usePrefixSuffix-da47e340.js.map → usePrefixSuffix-6ad5569e.js.map} +1 -1
  439. package/amd/useReorderableItem-d977f935.js +1 -1
  440. package/amd/{useRovingTabIndexContainer-079ed64f.js → useRovingTabIndexContainer-12784fca.js} +2 -2
  441. package/amd/{useRovingTabIndexContainer-079ed64f.js.map → useRovingTabIndexContainer-12784fca.js.map} +1 -1
  442. package/amd/{useScale-fe3420c6.js → useScale-e6b83382.js} +2 -2
  443. package/amd/{useScale-fe3420c6.js.map → useScale-e6b83382.js.map} +1 -1
  444. package/amd/{useSelectCommon-8657b927.js → useSelectCommon-cbb310df.js} +2 -2
  445. package/amd/{useSelectCommon-8657b927.js.map → useSelectCommon-cbb310df.js.map} +1 -1
  446. package/amd/{useSelectDrill-f69d15aa.js → useSelectDrill-f2ae347c.js} +2 -2
  447. package/amd/{useSelectDrill-f69d15aa.js.map → useSelectDrill-f2ae347c.js.map} +1 -1
  448. package/amd/useSelection-0440840d.js +2 -0
  449. package/amd/{useSelection-91c04393.js.map → useSelection-0440840d.js.map} +1 -1
  450. package/amd/useSelection-f1d96ce9.js +2 -0
  451. package/amd/{useSelection-2c9ff75a.js.map → useSelection-f1d96ce9.js.map} +1 -1
  452. package/amd/{useTabBar-254fbf75.js → useTabBar-451e6953.js} +2 -2
  453. package/amd/{useTabBar-254fbf75.js.map → useTabBar-451e6953.js.map} +1 -1
  454. package/amd/{useTestId-f3b8b319.js → useTestId-82cf22a4.js} +2 -2
  455. package/amd/{useTestId-f3b8b319.js.map → useTestId-82cf22a4.js.map} +1 -1
  456. package/amd/{useTheme-45e3b0b3.js → useTheme-1941efb7.js} +2 -2
  457. package/amd/{useTheme-45e3b0b3.js.map → useTheme-1941efb7.js.map} +1 -1
  458. package/amd/useThemeInterpolations-41cbd433.js +2 -0
  459. package/amd/{useThemeInterpolations-1f5fd8f3.js.map → useThemeInterpolations-41cbd433.js.map} +1 -1
  460. package/amd/useTooltip-d28e9b0f.js +2 -0
  461. package/amd/{useTooltip-e965a559.js.map → useTooltip-d28e9b0f.js.map} +1 -1
  462. package/amd/{useTooltipControlled-18271c7a.js → useTooltipControlled-abf886f2.js} +2 -2
  463. package/amd/{useTooltipControlled-18271c7a.js.map → useTooltipControlled-abf886f2.js.map} +1 -1
  464. package/amd/{useTranslationBundle-20bfc0f3.js → useTranslationBundle-6ef0dab6.js} +2 -2
  465. package/amd/{useTranslationBundle-20bfc0f3.js.map → useTranslationBundle-6ef0dab6.js.map} +1 -1
  466. package/amd/{useUser-9b166ca3.js → useUser-6dd85af9.js} +2 -2
  467. package/amd/{useUser-9b166ca3.js.map → useUser-6dd85af9.js.map} +1 -1
  468. package/amd/{useVisEvents-ac97d087.js → useVisEvents-75dbf576.js} +2 -2
  469. package/amd/{useVisEvents-ac97d087.js.map → useVisEvents-75dbf576.js.map} +1 -1
  470. package/amd/utils/PRIVATE_visTestUtils.js +1 -1
  471. package/amd/{withDirectionIcon-9e4dae53.js → withDirectionIcon-c0ee0f7e.js} +2 -2
  472. package/amd/{withDirectionIcon-9e4dae53.js.map → withDirectionIcon-c0ee0f7e.js.map} +1 -1
  473. package/cjs/{BarChart-acda079d.js → BarChart-11c56b6a.js} +2 -2
  474. package/cjs/{BarChart-acda079d.js.map → BarChart-11c56b6a.js.map} +1 -1
  475. package/cjs/{Chart-c55ecfa4.js → Chart-6684fa6d.js} +2 -2
  476. package/cjs/{Chart-c55ecfa4.js.map → Chart-6684fa6d.js.map} +1 -1
  477. package/cjs/CheckboxSet-13a5c10c.js +53 -0
  478. package/{amd/CheckboxSet-9c883a32.js.map → cjs/CheckboxSet-13a5c10c.js.map} +1 -1
  479. package/cjs/{InputDatePicker-005c03d0.js → InputDatePicker-91be7790.js} +2 -2
  480. package/cjs/{InputDatePicker-005c03d0.js.map → InputDatePicker-91be7790.js.map} +1 -1
  481. package/cjs/{LineAreaChart-5353ed1f.js → LineAreaChart-e8165e93.js} +2 -2
  482. package/cjs/{LineAreaChart-5353ed1f.js.map → LineAreaChart-e8165e93.js.map} +1 -1
  483. package/cjs/PRIVATE_Chart.js +4 -4
  484. package/cjs/{TextArea-b2646d51.js → TextArea-aff8b46e.js} +22 -4
  485. package/cjs/TextArea-aff8b46e.js.map +1 -0
  486. package/cjs/{TextAreaAutosize-d8cad6ce.js → TextAreaAutosize-c12ae7e7.js} +3 -3
  487. package/cjs/{TextAreaAutosize-d8cad6ce.js.map → TextAreaAutosize-c12ae7e7.js.map} +1 -1
  488. package/cjs/Theme-redwood/theme.css +149 -149
  489. package/cjs/Theme-stable/theme.css +197 -197
  490. package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +5 -5
  491. package/cjs/UNSAFE_BarChart.js +5 -5
  492. package/cjs/UNSAFE_CheckboxItem.js +80 -30
  493. package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
  494. package/cjs/UNSAFE_CheckboxSet.js +15 -44
  495. package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
  496. package/cjs/UNSAFE_InputDatePicker.js +87 -87
  497. package/cjs/UNSAFE_LineAreaChart/__test__/LineChart.spec.js +5 -5
  498. package/cjs/UNSAFE_LineAreaChart.js +5 -5
  499. package/cjs/UNSAFE_TextArea.js +3 -4
  500. package/cjs/UNSAFE_TextArea.js.map +1 -1
  501. package/cjs/UNSAFE_TextAreaAutosize.js +2 -2
  502. package/es/{BarChart-c8f78f4b.js → BarChart-72948598.js} +2 -2
  503. package/es/{BarChart-c8f78f4b.js.map → BarChart-72948598.js.map} +1 -1
  504. package/es/ButtonLayoutVariants.styles.css +2 -2
  505. package/es/ButtonLayoutVariants.styles2.css +2 -2
  506. package/es/{Chart-793bd008.js → Chart-304043b3.js} +2 -2
  507. package/es/{Chart-793bd008.js.map → Chart-304043b3.js.map} +1 -1
  508. package/es/{LineAreaChart-35327196.js → LineAreaChart-09df0269.js} +2 -2
  509. package/es/{LineAreaChart-35327196.js.map → LineAreaChart-09df0269.js.map} +1 -1
  510. package/es/MaxLengthCounter-cead2dac.js +25 -0
  511. package/{amd/MaxLengthCounter-caafceef.js.map → es/MaxLengthCounter-cead2dac.js.map} +1 -1
  512. package/es/PRIVATE_Chart.js +4 -4
  513. package/es/{TextArea-979496a0.js → TextArea-d97aac1f.js} +8 -25
  514. package/{amd/TextArea-44c90bc4.js.map → es/TextArea-d97aac1f.js.map} +1 -1
  515. package/es/{TextAreaAutosize-b73aaa2f.js → TextAreaAutosize-68a4786d.js} +2 -2
  516. package/es/{TextAreaAutosize-b73aaa2f.js.map → TextAreaAutosize-68a4786d.js.map} +1 -1
  517. package/es/Theme-redwood/theme.css +509 -509
  518. package/es/Theme-stable/theme.css +790 -790
  519. package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +5 -5
  520. package/es/UNSAFE_BarChart.js +5 -5
  521. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  522. package/es/UNSAFE_ButtonLayout/themes/redwood/ButtonLayoutTheme.js +1 -1
  523. package/es/UNSAFE_ButtonLayout/themes/redwood/ButtonLayoutVariants.css.js +1 -1
  524. package/es/UNSAFE_ButtonLayout/themes/stable/ButtonLayoutTheme.js +1 -1
  525. package/es/UNSAFE_ButtonLayout/themes/stable/ButtonLayoutVariants.css.js +1 -1
  526. package/es/UNSAFE_ButtonLayout.js +1 -1
  527. package/es/UNSAFE_LineAreaChart/__test__/LineChart.spec.js +5 -5
  528. package/es/UNSAFE_LineAreaChart.js +5 -5
  529. package/es/UNSAFE_TextArea.js +3 -2
  530. package/es/UNSAFE_TextArea.js.map +1 -1
  531. package/es/UNSAFE_TextAreaAutosize.js +2 -2
  532. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  533. package/es/UNSAFE_Toolbar.js +1 -1
  534. package/package.json +2 -2
  535. package/amd/CardFlexView-a647550f.js +0 -2
  536. package/amd/CardGridView-06fb67cb.js +0 -2
  537. package/amd/Center-ce88b58a.js +0 -2
  538. package/amd/CheckboxSet-9c883a32.js +0 -2
  539. package/amd/CompactLabelAssistance-9b6b3be2.js +0 -2
  540. package/amd/HighlightText-415dc14f.js +0 -2
  541. package/amd/Layer-8d7bbd69.js +0 -2
  542. package/amd/List-5958c802.js +0 -2
  543. package/amd/ListItemLayout-12aee4bd.js +0 -2
  544. package/amd/LiveRegion-09197914.js +0 -2
  545. package/amd/LoadMoreCollection-83413a59.js +0 -2
  546. package/amd/MaxLengthCounter-caafceef.js +0 -2
  547. package/amd/MaxLengthLiveRegion-e3856a98.js +0 -2
  548. package/amd/MessageLayer-cf2fbea9.js +0 -2
  549. package/amd/NavigationListItem-0a4f8a9c.js +0 -2
  550. package/amd/SectionedContent-d896b84f.js +0 -2
  551. package/amd/SelectionCard-ec3ee20d.js +0 -2
  552. package/amd/TabBarMixedSeparator-234c9a75.js +0 -2
  553. package/amd/TextArea-44c90bc4.js +0 -2
  554. package/amd/TextAreaAutosize-0a023972.js +0 -2
  555. package/amd/VirtualizedListView-ead601c7.js +0 -2
  556. package/amd/VisNoData-95d951c2.js +0 -2
  557. package/amd/index-8d4da04e.js.map +0 -1
  558. package/amd/useCssVars-7efb591d.js +0 -2
  559. package/amd/useCurrentKey-26170e5e.js +0 -2
  560. package/amd/useKeyboardEvents-57008a1d.js +0 -2
  561. package/amd/usePrefixSuffix-da47e340.js +0 -2
  562. package/amd/useSelection-2c9ff75a.js +0 -2
  563. package/amd/useSelection-91c04393.js +0 -2
  564. package/amd/useThemeInterpolations-1f5fd8f3.js +0 -2
  565. package/amd/useTooltip-e965a559.js +0 -2
  566. package/cjs/CheckboxSetContext-c62db26d.js +0 -12
  567. package/cjs/MaxLengthCounter-a5370f66.js +0 -27
  568. package/cjs/MaxLengthCounter-a5370f66.js.map +0 -1
  569. package/cjs/TextArea-b2646d51.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxSet-9c883a32.js","sources":["../../src/UNSAFE_CheckboxSet/CheckboxSetContext.ts","../../src/UNSAFE_CheckboxSet/CheckboxSet.tsx"],"sourcesContent":["import { createContext } from 'preact';\nimport { useContext } from 'preact/hooks';\n\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\n\ntype CheckboxSetContextValue = {\n name: string;\n value?: Set<string | number>;\n onCommit?: (detail: ValueUpdateDetail<Set<string | number>>) => void;\n};\n\nconst CheckboxSetContext = createContext<CheckboxSetContextValue>({} as CheckboxSetContextValue);\nconst useCheckboxSetContext = () => useContext(CheckboxSetContext);\n\nexport { CheckboxSetContext, useCheckboxSetContext };\n","import { ComponentChildren, ComponentProps, Ref, toChildArray } from 'preact';\nimport { useMemo } from 'preact/hooks';\nimport { forwardRef } from 'preact/compat';\n\nimport { CheckboxSetContext } from './CheckboxSetContext';\nimport { CheckboxRadioField } from '#PRIVATE_CheckboxRadioField';\nimport { InlineUserAssistance, UserAssistanceDensityType } from '#UNSAFE_UserAssistance';\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { useFormFieldContextProps } from '#hooks/UNSAFE_useFormFieldContextProps';\nimport { FlexboxProps } from '#utils/UNSAFE_interpolations/flexbox';\nimport { Size } from '#utils/UNSAFE_size';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport { FocusableHandle } from '#hooks/UNSAFE_useFocusableTextField';\nimport { styles } from './CheckboxSetStyles.css';\nimport { AriaAttributesSignalExcluded } from '#utils/UNSAFE_attributeUtils';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { LayoutColumnSpan } from '#utils/UNSAFE_styles/Layout';\nimport { TestIdProps } from '#hooks/UNSAFE_useTestId';\n\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props = {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n 'aria-describedby'?: AriaAttributesSignalExcluded['aria-describedby'];\n /**\n * Text to provide guidance to help the user understand what data to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * set of CheckboxItems\n */\n children: ComponentChildren;\n /**\n * Specifies how many columns to span in a FormLayout with direction === 'row'\n */\n columnSpan?: LayoutColumnSpan;\n /**\n * layout direction of the children elements\n */\n direction?: FlexboxProps['direction'];\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the checkbox set requires a selection to be made.\n */\n isRequired?: boolean;\n /**\n * Specifies if the checkbox set is read-only.\n */\n isReadonly?: boolean;\n /**\n * Specifies if the checkbox set is disabled.\n */\n isDisabled?: boolean;\n /**\n * Label text for the group of checkbox items.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'none' | 'top' | 'start' | 'inside';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>.\n */\n labelStartWidth?: Size;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * Callback invoked each time the user changes selected option.\n */\n onCommit: (detail: ValueUpdateDetail<Set<string | number>>) => void;\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'compact'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * </ul>\n */\n userAssistanceDensity?: UserAssistanceDensityType;\n /**\n * Value of the selected checkbox option.\n */\n value?: Set<string | number>;\n} & TestIdProps;\n/**\n * A CheckboxSet set allows the user to select one or more options from a set.\n */\nexport const CheckboxSet = forwardRef(\n (\n {\n 'aria-describedby': ariaDescribedBy,\n assistiveText,\n columnSpan,\n direction = 'column',\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n isRequired = false,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n messages,\n onCommit,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n children,\n testId\n }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const hasValue = value !== undefined ? value.size > 0 : false;\n const baseId = useId();\n\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const formFieldContext = useFormFieldContextProps({\n hasValue,\n isDisabled,\n isReadonly\n });\n\n const checkboxSetContext = useMemo(\n () => ({\n name: baseId,\n value,\n onCommit\n }),\n [baseId, onCommit, value]\n );\n\n // wrap each CheckboxItem in an <li> tag and the entire set with <ul>\n const childrenArray = toChildArray(children).filter(Boolean);\n const wrappedChildren = childrenArray.map((item) => <li>{item}</li>);\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <CheckboxRadioField\n aria-describedby={ariaDescribedBy}\n assistiveText={assistiveText}\n baseId={baseId}\n columnSpan={columnSpan}\n direction={direction}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isRequired={isRequired}\n label={label}\n labelEdge={labelEdge}\n labelStartWidth={labelStartWidth}\n parentComponentVariant=\"checkboxSet\"\n messages={messages}\n userAssistanceDensity={userAssistanceDensity}\n hasValue={hasValue}\n role=\"group\"\n testId={testId}\n ref={ref}>\n <CheckboxSetContext.Provider value={checkboxSetContext}>\n <ul className={styles.ul}>{wrappedChildren}</ul>\n </CheckboxSetContext.Provider>\n </CheckboxRadioField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["CheckboxSetContext","createContext","CheckboxSet","forwardRef","ariaDescribedBy","assistiveText","columnSpan","direction","helpSourceLink","helpSourceText","isDisabled","propIsDisabled","isReadonly","propIsReadonly","isRequired","label","labelEdge","propLabelEdge","labelStartWidth","propLabelStartWidth","messages","onCommit","userAssistanceDensity","propUserAssistanceDensity","value","children","testId","ref","hasValue","undefined","size","baseId","useId","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formUserAssistanceDensity","useFormContext","formFieldContext","useFormFieldContextProps","checkboxSetContext","useMemo","name","wrappedChildren","toChildArray","filter","Boolean","map","item","_jsx","FormFieldContext","Provider","CheckboxRadioField","parentComponentVariant","role","jsx","className","styles","useContext"],"mappings":"6UAWA,MAAMA,EAAqBC,EAAaA,cAA0B,iDC4F3D,MAAMC,EAAcC,EAAUA,YACnC,EAEI,mBAAoBC,EACpBC,gBACAC,aACAC,YAAY,SACZC,iBACAC,iBACAC,WAAYC,EACZC,WAAYC,EACZC,cAAa,EACbC,QACAC,UAAWC,EACXC,gBAAiBC,EACjBC,WACAC,WACAC,sBAAuBC,EACvBC,QACAC,WACAC,UAEFC,KAEA,MAAMC,OAAqBC,IAAVL,GAAsBA,EAAMM,KAAO,EAC9CC,EAASC,EAAAA,SAGbtB,WAAYuB,EACZrB,WAAYsB,EACZlB,UAAWmB,EACXjB,gBAAiBkB,EACjBd,sBAAuBe,GACrBC,EAAcA,iBAGZ5B,EAAaC,GAAkBsB,EAC/BrB,EAAaC,GAAkBqB,EAC/BlB,EAAYC,GAAiBkB,EAC7BjB,EAAkBC,GAAuBiB,EACzCd,EAAwBC,GAA6Bc,EAErDE,EAAmBC,EAAAA,yBAAyB,CAChDZ,WACAlB,aACAE,eAGI6B,EAAqBC,EAAAA,SACzB,KAAO,CACLC,KAAMZ,EACNP,QACAH,cAEF,CAACU,EAAQV,EAAUG,IAKfoB,EADgBC,EAAAA,aAAapB,GAAUqB,OAAOC,SACdC,KAAKC,GAASC,MAAA,KAAA,CAAAzB,SAAKwB,MAEzD,OACEC,EAAAA,IAACC,EAAAA,iBAAiBC,UAAS5B,MAAOe,EAAgBd,SAChDyB,EAAAA,IAACG,EAAAA,uCACmBjD,EAClBC,cAAeA,EACf0B,OAAQA,EACRzB,WAAYA,EACZC,UAAWA,EACXC,eAAgBA,EAChBC,eAAgBA,EAChBC,WAAYA,EACZE,WAAYA,EACZE,WAAYA,EACZC,MAAOA,EACPC,UAAWA,EACXE,gBAAiBA,EACjBoC,uBAAuB,cACvBlC,SAAUA,EACVE,sBAAuBA,EACvBM,SAAUA,EACV2B,KAAK,QACL7B,OAAQA,EACRC,IAAKA,EACLF,SAAAyB,EAAAM,IAACxD,EAAmBoD,SAAQ,CAAC5B,MAAOiB,EAAkBhB,SACpDyB,EAAAA,UAAIO,UAAWC,EAASjC,SAAGmB,SAIjC,mEDpLwB,IAAMe,EAAAA,WAAW3D"}
1
+ {"version":3,"file":"CheckboxSet-13a5c10c.js","sources":["../../src/UNSAFE_CheckboxSet/CheckboxSetContext.ts","../../src/UNSAFE_CheckboxSet/CheckboxSet.tsx"],"sourcesContent":["import { createContext } from 'preact';\nimport { useContext } from 'preact/hooks';\n\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\n\ntype CheckboxSetContextValue = {\n name: string;\n value?: Set<string | number>;\n onCommit?: (detail: ValueUpdateDetail<Set<string | number>>) => void;\n};\n\nconst CheckboxSetContext = createContext<CheckboxSetContextValue>({} as CheckboxSetContextValue);\nconst useCheckboxSetContext = () => useContext(CheckboxSetContext);\n\nexport { CheckboxSetContext, useCheckboxSetContext };\n","import { ComponentChildren, ComponentProps, Ref, toChildArray } from 'preact';\nimport { useMemo } from 'preact/hooks';\nimport { forwardRef } from 'preact/compat';\n\nimport { CheckboxSetContext } from './CheckboxSetContext';\nimport { CheckboxRadioField } from '#PRIVATE_CheckboxRadioField';\nimport { InlineUserAssistance, UserAssistanceDensityType } from '#UNSAFE_UserAssistance';\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { useFormFieldContextProps } from '#hooks/UNSAFE_useFormFieldContextProps';\nimport { FlexboxProps } from '#utils/UNSAFE_interpolations/flexbox';\nimport { Size } from '#utils/UNSAFE_size';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport { FocusableHandle } from '#hooks/UNSAFE_useFocusableTextField';\nimport { styles } from './CheckboxSetStyles.css';\nimport { AriaAttributesSignalExcluded } from '#utils/UNSAFE_attributeUtils';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { LayoutColumnSpan } from '#utils/UNSAFE_styles/Layout';\nimport { TestIdProps } from '#hooks/UNSAFE_useTestId';\n\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props = {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n 'aria-describedby'?: AriaAttributesSignalExcluded['aria-describedby'];\n /**\n * Text to provide guidance to help the user understand what data to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * set of CheckboxItems\n */\n children: ComponentChildren;\n /**\n * Specifies how many columns to span in a FormLayout with direction === 'row'\n */\n columnSpan?: LayoutColumnSpan;\n /**\n * layout direction of the children elements\n */\n direction?: FlexboxProps['direction'];\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the checkbox set requires a selection to be made.\n */\n isRequired?: boolean;\n /**\n * Specifies if the checkbox set is read-only.\n */\n isReadonly?: boolean;\n /**\n * Specifies if the checkbox set is disabled.\n */\n isDisabled?: boolean;\n /**\n * Label text for the group of checkbox items.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'none' | 'top' | 'start' | 'inside';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>.\n */\n labelStartWidth?: Size;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * Callback invoked each time the user changes selected option.\n */\n onCommit: (detail: ValueUpdateDetail<Set<string | number>>) => void;\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'compact'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * </ul>\n */\n userAssistanceDensity?: UserAssistanceDensityType;\n /**\n * Value of the selected checkbox option.\n */\n value?: Set<string | number>;\n} & TestIdProps;\n/**\n * A CheckboxSet set allows the user to select one or more options from a set.\n */\nexport const CheckboxSet = forwardRef(\n (\n {\n 'aria-describedby': ariaDescribedBy,\n assistiveText,\n columnSpan,\n direction = 'column',\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n isRequired = false,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n messages,\n onCommit,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n children,\n testId\n }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const hasValue = value !== undefined ? value.size > 0 : false;\n const baseId = useId();\n\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const formFieldContext = useFormFieldContextProps({\n hasValue,\n isDisabled,\n isReadonly\n });\n\n const checkboxSetContext = useMemo(\n () => ({\n name: baseId,\n value,\n onCommit\n }),\n [baseId, onCommit, value]\n );\n\n // wrap each CheckboxItem in an <li> tag and the entire set with <ul>\n const childrenArray = toChildArray(children).filter(Boolean);\n const wrappedChildren = childrenArray.map((item) => <li>{item}</li>);\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <CheckboxRadioField\n aria-describedby={ariaDescribedBy}\n assistiveText={assistiveText}\n baseId={baseId}\n columnSpan={columnSpan}\n direction={direction}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isRequired={isRequired}\n label={label}\n labelEdge={labelEdge}\n labelStartWidth={labelStartWidth}\n parentComponentVariant=\"checkboxSet\"\n messages={messages}\n userAssistanceDensity={userAssistanceDensity}\n hasValue={hasValue}\n role=\"group\"\n testId={testId}\n ref={ref}>\n <CheckboxSetContext.Provider value={checkboxSetContext}>\n <ul className={styles.ul}>{wrappedChildren}</ul>\n </CheckboxSetContext.Provider>\n </CheckboxRadioField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["createContext","useContext","forwardRef","useId","useFormContext","useFormFieldContextProps","useMemo","toChildArray","_jsx","FormFieldContext","CheckboxRadioField"],"mappings":";;;;;;;;;;;;;;;AAWA,MAAM,kBAAkB,GAAGA,oBAAa,CAA0B,E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require('preact/jsx-runtime');
5
5
  var compat = require('preact/compat');
6
6
  var hooks = require('preact/hooks');
7
7
  var Calendar = require('./Calendar-b9385151.js');
8
+ var InputDateMask = require('./InputDateMask-f15d926d.js');
8
9
  var HiddenAccessible = require('./HiddenAccessible-087eb49a.js');
9
10
  var IconButton = require('./IconButton-94f8ca5c.js');
10
11
  var clientHints = require('./clientHints-9e411b6e.js');
@@ -52,7 +53,6 @@ var useId = require('./useId-6c0eeb27.js');
52
53
  require('./getFormatParse-4a697b8f.js');
53
54
  var maskUtils = require('./maskUtils-f03f9c47.js');
54
55
  var calendarDateUtils = require('./calendarDateUtils-ca9bde6d.js');
55
- var InputDateMask = require('./InputDateMask-f15d926d.js');
56
56
 
57
57
  /**
58
58
  * Component that renders DatePicker either inside a dropdown or sheet; at small screen
@@ -322,4 +322,4 @@ const InputDatePicker = compat.forwardRef(({ 'aria-describedby': propDescribedBy
322
322
  });
323
323
 
324
324
  exports.InputDatePicker = InputDatePicker;
325
- //# sourceMappingURL=InputDatePicker-005c03d0.js.map
325
+ //# sourceMappingURL=InputDatePicker-91be7790.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputDatePicker-005c03d0.js","sources":["../../src/UNSAFE_InputDatePicker/InputDatePickerDropdown.tsx","../../src/UNSAFE_InputDatePicker/useInputDatePickerState.ts","../../src/UNSAFE_InputDatePicker/useInputDatePicker.ts","../../src/UNSAFE_InputDatePicker/InputDatePicker.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 { ComponentProps } from 'preact';\nimport { useCallback, useState } from 'preact/hooks';\nimport { BundleType } from '../resources/nls/bundle';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { type CloseDetail as DropdownCloseDetail } from '#UNSAFE_Dropdown';\nimport { getClientHints } from '#utils/PRIVATE_clientHints';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { InputDatePicker } from './InputDatePicker';\nimport { dropdownStyles, userAssistanceStyles } from './themes/InputDatePickerDropdownStyles.css';\nimport { PositionData } from '../UNSAFE_Floating';\nimport { StickyPositioningDropdown } from '#PRIVATE_FormControls';\nimport { SectionedContent } from '#PRIVATE_FormControls';\nimport { type CloseDetail as SheetCloseDetail, Sheet } from '#UNSAFE_Sheet';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { SizeOptions } from '#UNSAFE_Floating/Floating';\nimport { datePickerPropVars } from '#UNSAFE_DatePicker/themes/DatePickerContract.css';\n\ntype StickyPositioningDropdownProps = ComponentProps<typeof StickyPositioningDropdown>;\ntype InputDatePickerProps = ComponentProps<typeof InputDatePicker>;\ntype PickedPropsFromInputDatePicker = Pick<\n InputDatePickerProps,\n | 'assistiveText'\n | 'dayFormatter'\n | 'daysOutsideMonth'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'isDisabled'\n | 'isReadonly'\n | 'label'\n | 'messages'\n | 'min'\n | 'max'\n | 'monthAndYearPicker'\n | 'todayButton'\n | 'todayTimeZone'\n | 'userAssistanceDensity'\n | 'value'\n>;\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype PickedPropsFromDatePicker = Pick<DatePickerProps, 'value' | 'onCommit'>;\ntype PickedPropsFromDropdown = Omit<StickyPositioningDropdownProps, 'onClose'>;\ntype CloseDetail = SheetCloseDetail | DropdownCloseDetail;\n\ntype Props = PickedPropsFromDatePicker &\n PickedPropsFromInputDatePicker &\n PickedPropsFromDropdown &\n TestIdProps & {\n /**\n * Called when the dropdown or sheet is supposed to be closed.\n */\n onClose?: (detail: CloseDetail) => void;\n };\n\n/**\n * Component that renders DatePicker either inside a dropdown or sheet; at small screen\n * widths, it renders inside a sheet. Additionally, when a dropdown is being shown beneath\n * the component, we also show any user assistance text or messages below the picker\n * because otherwise that information would be obscured from view. When a sheet is being\n * shown, it will always display UA and messages at the bottom of the sheet.\n */\nconst InputDatePickerDropdown = ({\n anchorRef,\n assistiveText,\n dayFormatter,\n daysOutsideMonth,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isOpen,\n isReadonly,\n label,\n onClose,\n onCommit,\n max,\n messages,\n min,\n monthAndYearPicker,\n testId,\n todayButton,\n todayTimeZone,\n userAssistanceDensity,\n value\n}: Props) => {\n // If the dropdown opens above the component, we don't want to show UA or messages.\n const [isDropdownAbove, setDropdownAbove] = useState(false);\n const [prevIsOpen, setPrevIsOpen] = useState(isOpen);\n const handleDropdownPosition = useCallback<\n NonNullable<StickyPositioningDropdownProps['onPosition']>\n >((data: PositionData) => {\n setDropdownAbove(data.placement.startsWith('top'));\n }, []);\n // Reset the flag when the dropdown is closed.\n if (prevIsOpen !== isOpen) {\n setPrevIsOpen(isOpen);\n if (!isOpen) {\n setDropdownAbove(false);\n }\n }\n\n const sizeOptions: SizeOptions = {\n isMaxWidthAdjusted: false,\n isMaxHeightAdjusted: true\n };\n\n // On mobile phones, the dropdown becomes a sheet.\n const shouldShowSheet = isPhone();\n\n const { datePicker_label } = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const datePickerAriaLabel = datePicker_label();\n\n const datePickerMainContent = (\n <DatePicker\n dayFormatter={dayFormatter}\n daysOutsideMonth={daysOutsideMonth}\n onCommit={onCommit}\n max={max}\n min={min}\n // for sheet, we want the width to grow to the width of the sheet, otherwise it will use the theme default.\n maxWidth={shouldShowSheet ? '100%' : undefined}\n // for dropdown, we want a fixed width, so set width to the same var used for default maxWidth\n width={!shouldShowSheet ? datePickerPropVars.maxWidth : '100%'}\n monthAndYearPicker={monthAndYearPicker}\n testId={testId}\n todayTimeZone={todayTimeZone}\n todayButton={todayButton}\n value={value}\n />\n );\n\n const inlineUserAssistanceFooter =\n isOpen &&\n (!isDropdownAbove || shouldShowSheet) &&\n !isDisabled &&\n !isReadonly &&\n (assistiveText || helpSourceLink || (messages && messages.length > 0)) &&\n (userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow') ? (\n <FormFieldContext.Provider value={{ isFocused: true }}>\n <div class={userAssistanceStyles}>\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n userAssistanceDensity={userAssistanceDensity}\n />\n </div>\n </FormFieldContext.Provider>\n ) : undefined;\n\n const contentTestId = testId ? testId + (shouldShowSheet ? '_sheet' : '_dropdown') : undefined;\n\n // The same content is displayed either in a dropdown or sheet: date picker and inline UA.\n // Add styling to the dropdown to enforce a fixed width.\n const dropdownContent = (\n <div class={dropdownStyles}>\n <SectionedContent\n aria-label={datePickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={datePickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </div>\n );\n\n const dropdown = shouldShowSheet ? (\n <Sheet initialFocus=\"firstFocusable\" isOpen={isOpen} onClose={onClose}>\n <SectionedContent\n aria-label={datePickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={datePickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </Sheet>\n ) : (\n <StickyPositioningDropdown\n anchorRef={anchorRef}\n initialFocus=\"firstFocusable\"\n isOpen={isOpen}\n onClose={onClose}\n onPosition={handleDropdownPosition}\n sizeOptions={sizeOptions}>\n {dropdownContent}\n </StickyPositioningDropdown>\n );\n\n return dropdown;\n};\n\nconst isPhone = () => {\n return getClientHints().deviceType === 'phone';\n};\n\nexport { InputDatePickerDropdown, type CloseDetail };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useReducer } from 'preact/hooks';\nimport type { CalendarDate, CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { isCompleteCalendarDate } from '#utils/UNSAFE_calendarDateUtils';\n\ntype InputDatePickerState = {\n /**\n * If dateValue is a complete date, then completeDateValue is the same as dateValue\n * otherwise is is undefined. We need to maintain separate states because\n * InputDateMask uses CalendarDate, but DatePicker uses CalendarDateRequired.\n * If the user types a partial date then opens the picker, we treat that as\n * no selection. The picker opens to the current month showing today.\n */\n completeDateValue?: CalendarDateRequired;\n\n /**\n * Represents the current date value of the component. The user either selected\n * the date in the picker, or typed it into the date field.\n */\n dateValue?: CalendarDate;\n};\n\ntype DateChangedAction = { type: 'dateChanged'; data?: CalendarDate };\ntype DateResetAction = { type: 'reset'; data?: CalendarDate };\ntype DateSelectedAction = { type: 'dateSelected'; data?: CalendarDateRequired };\ntype InputDatePickerReducerAction = DateChangedAction | DateResetAction | DateSelectedAction;\n\n// If dateVal is a complete date, return it as a CalendarDateRequired\n// otherwise return undefined.\nconst convertToCalendarDateRequired = (dateVal?: CalendarDate) => {\n return !dateVal || !isCompleteCalendarDate(dateVal)\n ? undefined\n : (dateVal as CalendarDateRequired);\n};\n\n// Use a reducer function to manage InputDatePickerState.\nconst inputDatePickerReducer = (\n state: InputDatePickerState,\n action: InputDatePickerReducerAction\n): InputDatePickerState => {\n switch (action.type) {\n case 'dateChanged': {\n return {\n ...state,\n dateValue: action.data,\n completeDateValue: convertToCalendarDateRequired(action.data)\n };\n }\n case 'dateSelected': {\n return { ...state, dateValue: action.data, completeDateValue: action.data };\n }\n case 'reset': {\n return {\n completeDateValue: convertToCalendarDateRequired(action.data),\n dateValue: action.data\n };\n }\n default:\n return state;\n }\n};\n\ntype Props = {\n /**\n * The value of the InputDatePicker, or undefined.\n */\n value?: CalendarDate;\n};\n\n/**\n * useInputDatePickerState calls useReducer to determine the initial state. Any changes to that state\n * are managed by dispatching actions to the reducer function.\n */\nconst useInputDatePickerState = ({ value }: Props) => {\n const [state, dispatch] = useReducer(inputDatePickerReducer, {\n completeDateValue: convertToCalendarDateRequired(value),\n dateValue: value\n });\n\n return { state, dispatch };\n};\n\nexport { useInputDatePickerState };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps, RefObject } from 'preact';\nimport { useCallback, useEffect, useRef, useState } from 'preact/hooks';\nimport type { CalendarDate, CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { calendarDatesAreDifferent } from '#utils/PRIVATE_dayUtils';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { CloseDetail, InputDatePickerDropdown } from './InputDatePickerDropdown';\nimport { IconButton } from '#UNSAFE_IconButton';\nimport { InputDateMask } from '#UNSAFE_InputDateMask';\nimport { InputDatePicker } from './InputDatePicker';\nimport { useInputDatePickerState } from './useInputDatePickerState';\nimport type { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\n\ntype InputDatePickerProps = ComponentProps<typeof InputDatePicker>;\ntype InputDateMaskProps = ComponentProps<typeof InputDateMask>;\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype IconButtonProps = ComponentProps<typeof IconButton>;\ntype DropdownProps = ComponentProps<typeof InputDatePickerDropdown>;\n\ntype Props = {\n onCommit: InputDatePickerProps['onCommit'];\n onInput: InputDatePickerProps['onInput'];\n value: InputDatePickerProps['value'];\n};\n\n/**\n * Hook that provides handlers and other functionality for InputDatePicker.\n */\nconst useInputDatePicker = ({ onCommit, onInput, value: currentValue }: Props) => {\n // Whether the dropdown is open.\n const [isOpen, setIsOpen] = useState(false);\n\n // Ref to the calendar icon button.\n const iconRef: RefObject<HTMLButtonElement> = useRef<HTMLButtonElement>(null);\n\n // Ref to the InputDateMask component.\n const maskRef: RefObject<HTMLElement> = useRef<HTMLElement>(null);\n\n // Keep track of whether the dropdown was just dismissed from an outside mousedown event.\n const outsideMousedownRef = useRef<boolean>(false);\n const outsideMousedownTimerRef = useRef<ReturnType<typeof setTimeout> | undefined>();\n\n // Keep track of whether the calendar icon is focused after a date is selected\n // and the date picker is closed.\n const calendarFocusAfterSelect = useRef<boolean>(false);\n const calendarFocusAfterSelectTimerRef = useRef<ReturnType<typeof setTimeout> | undefined>();\n\n // Keep track of the last date values passed to onInput and onCommit.\n const lastCommittedDateRef = useRef<CalendarDate | undefined>(currentValue);\n const lastDateRef = useRef<CalendarDate | undefined>(currentValue);\n\n // Keep track of the last controlled value passed from the parent, so we can detect a programmatic change.\n const lastValueFromParentRef = useRef<CalendarDate | undefined>(currentValue);\n\n // Keep track of whether a date was selected in the date picker.\n const dateSelectedRef = useRef<boolean>(false);\n\n const { state, dispatch } = useInputDatePickerState({ value: currentValue });\n\n // If a new value is being pushed from the parent, and that value differs from\n // the current value of the reducer, then this is a programmatic update\n // and we need to call 'reset' to update the reducer state. Otherwise, the only\n // time the reducer state is updated from the value is on mount.\n if (calendarDatesAreDifferent(lastValueFromParentRef.current, currentValue)) {\n lastValueFromParentRef.current = currentValue;\n if (calendarDatesAreDifferent(currentValue, state.dateValue)) {\n dispatch({ type: 'reset', data: currentValue });\n lastDateRef.current = currentValue;\n lastCommittedDateRef.current = currentValue;\n }\n }\n\n // Reducer updates are async, so wait until the state updates and then call our callbacks.\n useEffect(() => {\n if (calendarDatesAreDifferent(state.dateValue, lastDateRef.current)) {\n onInput({ previousValue: lastDateRef.current, value: state.dateValue });\n lastDateRef.current = state.dateValue;\n }\n if (\n dateSelectedRef.current &&\n calendarDatesAreDifferent(state.dateValue, lastCommittedDateRef.current)\n ) {\n onCommit?.({ previousValue: lastCommittedDateRef.current, value: state.dateValue });\n lastCommittedDateRef.current = state.dateValue;\n dateSelectedRef.current = false;\n }\n }, [onCommit, onInput, state.dateValue]);\n\n // Handle onInput from InputDateMask as segment values are being added or changed in the input field.\n // We wait for the state to update before calling onInput.\n const maskInputHandler = useCallback<InputDateMaskProps['onInput']>(\n (detail: ValueUpdateDetail<CalendarDate>) => {\n dispatch({ type: 'dateChanged', data: detail.value });\n },\n [dispatch]\n );\n\n // Handle onCommit from InputDateMask, which is called when the user presses Enter or the field is blurred.\n const maskCommitHandler = useCallback<NonNullable<InputDateMaskProps['onCommit']>>(() => {\n // If the current date value differs from the last committed value, then call onCommit.\n if (calendarDatesAreDifferent(lastCommittedDateRef.current, state.dateValue)) {\n onCommit?.({ value: state.dateValue, previousValue: lastCommittedDateRef.current });\n lastCommittedDateRef.current = state.dateValue;\n }\n }, [onCommit, state.dateValue]);\n\n // Respond to onAction event from the calendar icon button. Toggles the date picker dropdown.\n const calendarIconActionHandler = useCallback<NonNullable<IconButtonProps['onAction']>>(() => {\n // Only toggle the value of isOpen if we didn't just dismiss the dropdown.\n if (!outsideMousedownRef.current && !calendarFocusAfterSelect.current) {\n setIsOpen((prevIsOpen) => !prevIsOpen);\n }\n outsideMousedownRef.current = false;\n calendarFocusAfterSelect.current = false;\n }, []);\n\n const dropdownCloseHandler = useCallback<NonNullable<DropdownProps['onClose']>>(\n (detail: CloseDetail) => {\n // Keep track of when the dropdown is closed via outside mousedown, including when the calendar icon\n // is clicked. We need this in order to toggle visibility of the picker and dropdown.\n if (detail.reason === 'outsideMousedown') {\n outsideMousedownRef.current = true;\n clearTimeout(outsideMousedownTimerRef.current);\n\n // Clear the flag after a short delay to ensure the dropdown can be opened again.\n outsideMousedownTimerRef.current = setTimeout(() => {\n outsideMousedownRef.current = false;\n }, 200);\n } else if (detail.reason === 'dismissed' || detail.reason === 'keyboardDismissed') {\n // Focus the calendar icon when the dropdown is closed.\n iconRef.current?.focus();\n }\n setIsOpen(false);\n },\n []\n );\n\n // Handle date selection in the picker.\n // - Updates the value in state.\n // - Closes the dropdown.\n // - Sets focus to the date field.\n const datePickerCommitHandler = useCallback<DatePickerProps['onCommit']>(\n (detail: ValueUpdateDetail<CalendarDateRequired>) => {\n // Set focus to the calendar icon when a date is selected.\n iconRef.current?.focus();\n\n // If user is using the keyboard, date selection happens on keyDown.\n // If we transfer focus to the calendar icon, it then sees the corresponding\n // keyUp and thinks the button was triggered again (usePress reacts to\n // keyUp, not keyDown). Maintain a flag that prevents this from happening,\n // and clear it after a short delay in case selection was made with the mouse.\n // TODO: Investigate a better way to prevent the dropdown from reopening (JET-67580).\n calendarFocusAfterSelect.current = true;\n clearTimeout(calendarFocusAfterSelectTimerRef.current);\n calendarFocusAfterSelectTimerRef.current = setTimeout(() => {\n calendarFocusAfterSelect.current = false;\n }, 500);\n\n // Set a ref indicating a date was selected.\n dateSelectedRef.current = true;\n dispatch({ type: 'dateSelected', data: detail.value });\n setIsOpen(false);\n },\n [dispatch]\n );\n\n return {\n calendarIconActionHandler,\n datePickerCommitHandler,\n dropdownCloseHandler,\n completeDateValue: state.completeDateValue,\n dateValue: state.dateValue,\n iconRef,\n isOpen,\n maskCommitHandler,\n maskInputHandler,\n maskRef\n };\n};\n\nexport { useInputDatePicker };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentProps, Ref } from 'preact';\nimport { forwardRef } from 'preact/compat';\nimport { useImperativeHandle, useRef } from 'preact/hooks';\nimport { BundleType } from '../resources/nls/bundle';\nimport { CalendarIcon } from '#PRIVATE_ThemedIcons/CalendarIcon';\nimport {\n CalendarDate,\n CalendarDatePlaceholders,\n InputDateMask,\n InputDateMaskContext\n} from '#UNSAFE_InputDateMask';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { IconButton } from '#UNSAFE_IconButton';\nimport { InputDatePickerDropdown } from './InputDatePickerDropdown';\nimport { FocusableHandle } from '#hooks/UNSAFE_useFocusableTextField';\nimport { merge } from '#utils/UNSAFE_stringUtils';\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { useInputDatePicker } from './useInputDatePicker';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\n\ntype InputDateMaskProps = ComponentProps<typeof InputDateMask>;\ntype PickedPropsFromInputDateMask = Pick<\n InputDateMaskProps,\n | 'aria-describedby'\n | 'assistiveText'\n | 'columnSpan'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'isDisabled'\n | 'isReadonly'\n | 'isRequired'\n | 'isRequiredShown'\n | 'label'\n | 'labelEdge'\n | 'labelStartWidth'\n | 'messages'\n | 'textAlign'\n | 'testId'\n | 'userAssistanceDensity'\n | 'variant'\n>;\n\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype PickedPropsFromDatePicker = Pick<\n DatePickerProps,\n | 'dayFormatter'\n | 'daysOutsideMonth'\n | 'max'\n | 'min'\n | 'monthAndYearPicker'\n | 'todayTimeZone'\n | 'todayButton'\n>;\n\ntype Props = PickedPropsFromInputDateMask &\n PickedPropsFromDatePicker & {\n /**\n * If specified, overrides the locale specific order of the individual date segments\n * in the date field as well as the locale specific separator. The value of each placeholder\n * is only used when the type is 'literal', otherwise it is replaced with a translated\n * placeholder for month, day, or year. The placeholders must include month, day, and year.\n */\n masks?: CalendarDatePlaceholders;\n\n /**\n * The current display value of the component.\n * This is a CalendarDate, not CalendarDateRequired, because this is a controlled component and\n * the user may type the month, day, and year separately. If a selection is made in the date\n * picker, then the value is a complete date.\n */\n value?: CalendarDate;\n\n /**\n * Callback invoked when the user commits the entered value by blurring or hitting the enter key.\n * It is also called when a selection is made in the date picker.\n */\n onCommit?: (detail: ValueUpdateDetail<CalendarDate>) => void;\n\n /**\n * Callback invoked each time the user changes the value of a segment. For example, if the user\n * types '12' into the month segment, this callback will be called twice to change the month\n * first to '1' and then '12'.\n */\n onInput: (detail: ValueUpdateDetail<CalendarDate>) => void;\n };\n\n/**\n * InputDatePicker allows users to enter or select a single date using a calendar interface.\n */\nexport const InputDatePicker = forwardRef(\n (\n {\n 'aria-describedby': propDescribedBy,\n assistiveText,\n dayFormatter,\n daysOutsideMonth,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isReadonly,\n label,\n max,\n messages,\n min,\n monthAndYearPicker,\n todayTimeZone,\n todayButton,\n value,\n onCommit,\n onInput,\n testId,\n userAssistanceDensity: propUserAssistanceDensity,\n ...dateMaskProps\n }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const {\n calendarIconActionHandler,\n datePickerCommitHandler,\n completeDateValue,\n dateValue,\n dropdownCloseHandler,\n iconRef,\n isOpen,\n maskCommitHandler,\n maskInputHandler,\n maskRef\n } = useInputDatePicker({\n onCommit,\n onInput,\n value\n });\n\n const mainFieldRef = useRef<HTMLDivElement>(null);\n const { inputDatePicker_selectDate, inputDatePicker_instruction } =\n useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const calendarIconAriaLabel = inputDatePicker_selectDate();\n\n // We need this to determine if UA/messaging should be shown in the dropdown.\n const { userAssistanceDensity: formUserAssistanceDensity } = useFormContext();\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n useImperativeHandle(ref!, () => ({\n focus: () => {\n maskRef.current?.focus();\n },\n blur: () => {\n maskRef.current?.blur();\n }\n }));\n\n const maskFieldInstructionId = useId();\n const maskFieldInstructionText = inputDatePicker_instruction();\n const maskFieldInstruction =\n !isDisabled && !isReadonly ? (\n <HiddenAccessible id={maskFieldInstructionId} isHidden={true}>\n {maskFieldInstructionText}\n </HiddenAccessible>\n ) : undefined;\n const ariaDescribedBy =\n !isDisabled && !isReadonly\n ? merge([propDescribedBy, maskFieldInstructionId])\n : propDescribedBy;\n\n const endContent = (\n <IconButton\n aria-haspopup=\"dialog\"\n aria-label={calendarIconAriaLabel}\n isDisabled={isDisabled}\n ref={iconRef}\n size=\"sm\"\n testId={testId ? testId + '_calendarIcon' : undefined}\n variant=\"ghost\"\n onAction={calendarIconActionHandler}>\n <CalendarIcon />\n </IconButton>\n );\n\n const shouldShowDropdown = isOpen as boolean;\n\n return (\n <>\n <InputDateMaskContext.Provider\n value={{ isDropdownOpen: isOpen, isInputDatePickerParent: true }}>\n <InputDateMask\n aria-describedby={ariaDescribedBy}\n assistiveText={assistiveText}\n endContent={endContent}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n label={label}\n onCommit={maskCommitHandler}\n onInput={maskInputHandler}\n mainFieldRef={mainFieldRef}\n messages={messages}\n testId={testId}\n ref={maskRef}\n userAssistanceDensity={propUserAssistanceDensity}\n value={dateValue}\n {...dateMaskProps}\n />\n </InputDateMaskContext.Provider>\n\n {maskFieldInstruction}\n\n {shouldShowDropdown && (\n <InputDatePickerDropdown\n anchorRef={mainFieldRef}\n assistiveText={assistiveText}\n dayFormatter={dayFormatter}\n daysOutsideMonth={daysOutsideMonth}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isOpen={isOpen}\n label={label}\n onClose={dropdownCloseHandler}\n onCommit={datePickerCommitHandler}\n max={max}\n messages={messages}\n min={min}\n monthAndYearPicker={monthAndYearPicker}\n testId={testId ? testId + '_datePicker' : undefined}\n todayTimeZone={todayTimeZone}\n todayButton={todayButton}\n userAssistanceDensity={userAssistanceDensity}\n value={completeDateValue}\n />\n )}\n </>\n );\n }\n);\n"],"names":["useState","useCallback","useTranslationBundle","_jsx","DatePicker","datePickerPropVars","FormFieldContext","userAssistanceStyles","InlineUserAssistance","dropdownStyles","SectionedContent","Sheet","StickyPositioningDropdown","getClientHints","isCompleteCalendarDate","useReducer","useRef","calendarDatesAreDifferent","useEffect","forwardRef","useFormContext","useImperativeHandle","useId","HiddenAccessible","merge","IconButton","CalendarIcon","_jsxs","InputDateMaskContext","InputDateMask"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAA,CAAA,EACH;AACJ,CAAC;;;;"}
1
+ {"version":3,"file":"InputDatePicker-91be7790.js","sources":["../../src/UNSAFE_InputDatePicker/InputDatePickerDropdown.tsx","../../src/UNSAFE_InputDatePicker/useInputDatePickerState.ts","../../src/UNSAFE_InputDatePicker/useInputDatePicker.ts","../../src/UNSAFE_InputDatePicker/InputDatePicker.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 { ComponentProps } from 'preact';\nimport { useCallback, useState } from 'preact/hooks';\nimport { BundleType } from '../resources/nls/bundle';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { type CloseDetail as DropdownCloseDetail } from '#UNSAFE_Dropdown';\nimport { getClientHints } from '#utils/PRIVATE_clientHints';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { InputDatePicker } from './InputDatePicker';\nimport { dropdownStyles, userAssistanceStyles } from './themes/InputDatePickerDropdownStyles.css';\nimport { PositionData } from '../UNSAFE_Floating';\nimport { StickyPositioningDropdown } from '#PRIVATE_FormControls';\nimport { SectionedContent } from '#PRIVATE_FormControls';\nimport { type CloseDetail as SheetCloseDetail, Sheet } from '#UNSAFE_Sheet';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { SizeOptions } from '#UNSAFE_Floating/Floating';\nimport { datePickerPropVars } from '#UNSAFE_DatePicker/themes/DatePickerContract.css';\n\ntype StickyPositioningDropdownProps = ComponentProps<typeof StickyPositioningDropdown>;\ntype InputDatePickerProps = ComponentProps<typeof InputDatePicker>;\ntype PickedPropsFromInputDatePicker = Pick<\n InputDatePickerProps,\n | 'assistiveText'\n | 'dayFormatter'\n | 'daysOutsideMonth'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'isDisabled'\n | 'isReadonly'\n | 'label'\n | 'messages'\n | 'min'\n | 'max'\n | 'monthAndYearPicker'\n | 'todayButton'\n | 'todayTimeZone'\n | 'userAssistanceDensity'\n | 'value'\n>;\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype PickedPropsFromDatePicker = Pick<DatePickerProps, 'value' | 'onCommit'>;\ntype PickedPropsFromDropdown = Omit<StickyPositioningDropdownProps, 'onClose'>;\ntype CloseDetail = SheetCloseDetail | DropdownCloseDetail;\n\ntype Props = PickedPropsFromDatePicker &\n PickedPropsFromInputDatePicker &\n PickedPropsFromDropdown &\n TestIdProps & {\n /**\n * Called when the dropdown or sheet is supposed to be closed.\n */\n onClose?: (detail: CloseDetail) => void;\n };\n\n/**\n * Component that renders DatePicker either inside a dropdown or sheet; at small screen\n * widths, it renders inside a sheet. Additionally, when a dropdown is being shown beneath\n * the component, we also show any user assistance text or messages below the picker\n * because otherwise that information would be obscured from view. When a sheet is being\n * shown, it will always display UA and messages at the bottom of the sheet.\n */\nconst InputDatePickerDropdown = ({\n anchorRef,\n assistiveText,\n dayFormatter,\n daysOutsideMonth,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isOpen,\n isReadonly,\n label,\n onClose,\n onCommit,\n max,\n messages,\n min,\n monthAndYearPicker,\n testId,\n todayButton,\n todayTimeZone,\n userAssistanceDensity,\n value\n}: Props) => {\n // If the dropdown opens above the component, we don't want to show UA or messages.\n const [isDropdownAbove, setDropdownAbove] = useState(false);\n const [prevIsOpen, setPrevIsOpen] = useState(isOpen);\n const handleDropdownPosition = useCallback<\n NonNullable<StickyPositioningDropdownProps['onPosition']>\n >((data: PositionData) => {\n setDropdownAbove(data.placement.startsWith('top'));\n }, []);\n // Reset the flag when the dropdown is closed.\n if (prevIsOpen !== isOpen) {\n setPrevIsOpen(isOpen);\n if (!isOpen) {\n setDropdownAbove(false);\n }\n }\n\n const sizeOptions: SizeOptions = {\n isMaxWidthAdjusted: false,\n isMaxHeightAdjusted: true\n };\n\n // On mobile phones, the dropdown becomes a sheet.\n const shouldShowSheet = isPhone();\n\n const { datePicker_label } = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const datePickerAriaLabel = datePicker_label();\n\n const datePickerMainContent = (\n <DatePicker\n dayFormatter={dayFormatter}\n daysOutsideMonth={daysOutsideMonth}\n onCommit={onCommit}\n max={max}\n min={min}\n // for sheet, we want the width to grow to the width of the sheet, otherwise it will use the theme default.\n maxWidth={shouldShowSheet ? '100%' : undefined}\n // for dropdown, we want a fixed width, so set width to the same var used for default maxWidth\n width={!shouldShowSheet ? datePickerPropVars.maxWidth : '100%'}\n monthAndYearPicker={monthAndYearPicker}\n testId={testId}\n todayTimeZone={todayTimeZone}\n todayButton={todayButton}\n value={value}\n />\n );\n\n const inlineUserAssistanceFooter =\n isOpen &&\n (!isDropdownAbove || shouldShowSheet) &&\n !isDisabled &&\n !isReadonly &&\n (assistiveText || helpSourceLink || (messages && messages.length > 0)) &&\n (userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow') ? (\n <FormFieldContext.Provider value={{ isFocused: true }}>\n <div class={userAssistanceStyles}>\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n userAssistanceDensity={userAssistanceDensity}\n />\n </div>\n </FormFieldContext.Provider>\n ) : undefined;\n\n const contentTestId = testId ? testId + (shouldShowSheet ? '_sheet' : '_dropdown') : undefined;\n\n // The same content is displayed either in a dropdown or sheet: date picker and inline UA.\n // Add styling to the dropdown to enforce a fixed width.\n const dropdownContent = (\n <div class={dropdownStyles}>\n <SectionedContent\n aria-label={datePickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={datePickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </div>\n );\n\n const dropdown = shouldShowSheet ? (\n <Sheet initialFocus=\"firstFocusable\" isOpen={isOpen} onClose={onClose}>\n <SectionedContent\n aria-label={datePickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={datePickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </Sheet>\n ) : (\n <StickyPositioningDropdown\n anchorRef={anchorRef}\n initialFocus=\"firstFocusable\"\n isOpen={isOpen}\n onClose={onClose}\n onPosition={handleDropdownPosition}\n sizeOptions={sizeOptions}>\n {dropdownContent}\n </StickyPositioningDropdown>\n );\n\n return dropdown;\n};\n\nconst isPhone = () => {\n return getClientHints().deviceType === 'phone';\n};\n\nexport { InputDatePickerDropdown, type CloseDetail };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useReducer } from 'preact/hooks';\nimport type { CalendarDate, CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { isCompleteCalendarDate } from '#utils/UNSAFE_calendarDateUtils';\n\ntype InputDatePickerState = {\n /**\n * If dateValue is a complete date, then completeDateValue is the same as dateValue\n * otherwise is is undefined. We need to maintain separate states because\n * InputDateMask uses CalendarDate, but DatePicker uses CalendarDateRequired.\n * If the user types a partial date then opens the picker, we treat that as\n * no selection. The picker opens to the current month showing today.\n */\n completeDateValue?: CalendarDateRequired;\n\n /**\n * Represents the current date value of the component. The user either selected\n * the date in the picker, or typed it into the date field.\n */\n dateValue?: CalendarDate;\n};\n\ntype DateChangedAction = { type: 'dateChanged'; data?: CalendarDate };\ntype DateResetAction = { type: 'reset'; data?: CalendarDate };\ntype DateSelectedAction = { type: 'dateSelected'; data?: CalendarDateRequired };\ntype InputDatePickerReducerAction = DateChangedAction | DateResetAction | DateSelectedAction;\n\n// If dateVal is a complete date, return it as a CalendarDateRequired\n// otherwise return undefined.\nconst convertToCalendarDateRequired = (dateVal?: CalendarDate) => {\n return !dateVal || !isCompleteCalendarDate(dateVal)\n ? undefined\n : (dateVal as CalendarDateRequired);\n};\n\n// Use a reducer function to manage InputDatePickerState.\nconst inputDatePickerReducer = (\n state: InputDatePickerState,\n action: InputDatePickerReducerAction\n): InputDatePickerState => {\n switch (action.type) {\n case 'dateChanged': {\n return {\n ...state,\n dateValue: action.data,\n completeDateValue: convertToCalendarDateRequired(action.data)\n };\n }\n case 'dateSelected': {\n return { ...state, dateValue: action.data, completeDateValue: action.data };\n }\n case 'reset': {\n return {\n completeDateValue: convertToCalendarDateRequired(action.data),\n dateValue: action.data\n };\n }\n default:\n return state;\n }\n};\n\ntype Props = {\n /**\n * The value of the InputDatePicker, or undefined.\n */\n value?: CalendarDate;\n};\n\n/**\n * useInputDatePickerState calls useReducer to determine the initial state. Any changes to that state\n * are managed by dispatching actions to the reducer function.\n */\nconst useInputDatePickerState = ({ value }: Props) => {\n const [state, dispatch] = useReducer(inputDatePickerReducer, {\n completeDateValue: convertToCalendarDateRequired(value),\n dateValue: value\n });\n\n return { state, dispatch };\n};\n\nexport { useInputDatePickerState };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps, RefObject } from 'preact';\nimport { useCallback, useEffect, useRef, useState } from 'preact/hooks';\nimport type { CalendarDate, CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { calendarDatesAreDifferent } from '#utils/PRIVATE_dayUtils';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { CloseDetail, InputDatePickerDropdown } from './InputDatePickerDropdown';\nimport { IconButton } from '#UNSAFE_IconButton';\nimport { InputDateMask } from '#UNSAFE_InputDateMask';\nimport { InputDatePicker } from './InputDatePicker';\nimport { useInputDatePickerState } from './useInputDatePickerState';\nimport type { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\n\ntype InputDatePickerProps = ComponentProps<typeof InputDatePicker>;\ntype InputDateMaskProps = ComponentProps<typeof InputDateMask>;\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype IconButtonProps = ComponentProps<typeof IconButton>;\ntype DropdownProps = ComponentProps<typeof InputDatePickerDropdown>;\n\ntype Props = {\n onCommit: InputDatePickerProps['onCommit'];\n onInput: InputDatePickerProps['onInput'];\n value: InputDatePickerProps['value'];\n};\n\n/**\n * Hook that provides handlers and other functionality for InputDatePicker.\n */\nconst useInputDatePicker = ({ onCommit, onInput, value: currentValue }: Props) => {\n // Whether the dropdown is open.\n const [isOpen, setIsOpen] = useState(false);\n\n // Ref to the calendar icon button.\n const iconRef: RefObject<HTMLButtonElement> = useRef<HTMLButtonElement>(null);\n\n // Ref to the InputDateMask component.\n const maskRef: RefObject<HTMLElement> = useRef<HTMLElement>(null);\n\n // Keep track of whether the dropdown was just dismissed from an outside mousedown event.\n const outsideMousedownRef = useRef<boolean>(false);\n const outsideMousedownTimerRef = useRef<ReturnType<typeof setTimeout> | undefined>();\n\n // Keep track of whether the calendar icon is focused after a date is selected\n // and the date picker is closed.\n const calendarFocusAfterSelect = useRef<boolean>(false);\n const calendarFocusAfterSelectTimerRef = useRef<ReturnType<typeof setTimeout> | undefined>();\n\n // Keep track of the last date values passed to onInput and onCommit.\n const lastCommittedDateRef = useRef<CalendarDate | undefined>(currentValue);\n const lastDateRef = useRef<CalendarDate | undefined>(currentValue);\n\n // Keep track of the last controlled value passed from the parent, so we can detect a programmatic change.\n const lastValueFromParentRef = useRef<CalendarDate | undefined>(currentValue);\n\n // Keep track of whether a date was selected in the date picker.\n const dateSelectedRef = useRef<boolean>(false);\n\n const { state, dispatch } = useInputDatePickerState({ value: currentValue });\n\n // If a new value is being pushed from the parent, and that value differs from\n // the current value of the reducer, then this is a programmatic update\n // and we need to call 'reset' to update the reducer state. Otherwise, the only\n // time the reducer state is updated from the value is on mount.\n if (calendarDatesAreDifferent(lastValueFromParentRef.current, currentValue)) {\n lastValueFromParentRef.current = currentValue;\n if (calendarDatesAreDifferent(currentValue, state.dateValue)) {\n dispatch({ type: 'reset', data: currentValue });\n lastDateRef.current = currentValue;\n lastCommittedDateRef.current = currentValue;\n }\n }\n\n // Reducer updates are async, so wait until the state updates and then call our callbacks.\n useEffect(() => {\n if (calendarDatesAreDifferent(state.dateValue, lastDateRef.current)) {\n onInput({ previousValue: lastDateRef.current, value: state.dateValue });\n lastDateRef.current = state.dateValue;\n }\n if (\n dateSelectedRef.current &&\n calendarDatesAreDifferent(state.dateValue, lastCommittedDateRef.current)\n ) {\n onCommit?.({ previousValue: lastCommittedDateRef.current, value: state.dateValue });\n lastCommittedDateRef.current = state.dateValue;\n dateSelectedRef.current = false;\n }\n }, [onCommit, onInput, state.dateValue]);\n\n // Handle onInput from InputDateMask as segment values are being added or changed in the input field.\n // We wait for the state to update before calling onInput.\n const maskInputHandler = useCallback<InputDateMaskProps['onInput']>(\n (detail: ValueUpdateDetail<CalendarDate>) => {\n dispatch({ type: 'dateChanged', data: detail.value });\n },\n [dispatch]\n );\n\n // Handle onCommit from InputDateMask, which is called when the user presses Enter or the field is blurred.\n const maskCommitHandler = useCallback<NonNullable<InputDateMaskProps['onCommit']>>(() => {\n // If the current date value differs from the last committed value, then call onCommit.\n if (calendarDatesAreDifferent(lastCommittedDateRef.current, state.dateValue)) {\n onCommit?.({ value: state.dateValue, previousValue: lastCommittedDateRef.current });\n lastCommittedDateRef.current = state.dateValue;\n }\n }, [onCommit, state.dateValue]);\n\n // Respond to onAction event from the calendar icon button. Toggles the date picker dropdown.\n const calendarIconActionHandler = useCallback<NonNullable<IconButtonProps['onAction']>>(() => {\n // Only toggle the value of isOpen if we didn't just dismiss the dropdown.\n if (!outsideMousedownRef.current && !calendarFocusAfterSelect.current) {\n setIsOpen((prevIsOpen) => !prevIsOpen);\n }\n outsideMousedownRef.current = false;\n calendarFocusAfterSelect.current = false;\n }, []);\n\n const dropdownCloseHandler = useCallback<NonNullable<DropdownProps['onClose']>>(\n (detail: CloseDetail) => {\n // Keep track of when the dropdown is closed via outside mousedown, including when the calendar icon\n // is clicked. We need this in order to toggle visibility of the picker and dropdown.\n if (detail.reason === 'outsideMousedown') {\n outsideMousedownRef.current = true;\n clearTimeout(outsideMousedownTimerRef.current);\n\n // Clear the flag after a short delay to ensure the dropdown can be opened again.\n outsideMousedownTimerRef.current = setTimeout(() => {\n outsideMousedownRef.current = false;\n }, 200);\n } else if (detail.reason === 'dismissed' || detail.reason === 'keyboardDismissed') {\n // Focus the calendar icon when the dropdown is closed.\n iconRef.current?.focus();\n }\n setIsOpen(false);\n },\n []\n );\n\n // Handle date selection in the picker.\n // - Updates the value in state.\n // - Closes the dropdown.\n // - Sets focus to the date field.\n const datePickerCommitHandler = useCallback<DatePickerProps['onCommit']>(\n (detail: ValueUpdateDetail<CalendarDateRequired>) => {\n // Set focus to the calendar icon when a date is selected.\n iconRef.current?.focus();\n\n // If user is using the keyboard, date selection happens on keyDown.\n // If we transfer focus to the calendar icon, it then sees the corresponding\n // keyUp and thinks the button was triggered again (usePress reacts to\n // keyUp, not keyDown). Maintain a flag that prevents this from happening,\n // and clear it after a short delay in case selection was made with the mouse.\n // TODO: Investigate a better way to prevent the dropdown from reopening (JET-67580).\n calendarFocusAfterSelect.current = true;\n clearTimeout(calendarFocusAfterSelectTimerRef.current);\n calendarFocusAfterSelectTimerRef.current = setTimeout(() => {\n calendarFocusAfterSelect.current = false;\n }, 500);\n\n // Set a ref indicating a date was selected.\n dateSelectedRef.current = true;\n dispatch({ type: 'dateSelected', data: detail.value });\n setIsOpen(false);\n },\n [dispatch]\n );\n\n return {\n calendarIconActionHandler,\n datePickerCommitHandler,\n dropdownCloseHandler,\n completeDateValue: state.completeDateValue,\n dateValue: state.dateValue,\n iconRef,\n isOpen,\n maskCommitHandler,\n maskInputHandler,\n maskRef\n };\n};\n\nexport { useInputDatePicker };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentProps, Ref } from 'preact';\nimport { forwardRef } from 'preact/compat';\nimport { useImperativeHandle, useRef } from 'preact/hooks';\nimport { BundleType } from '../resources/nls/bundle';\nimport { CalendarIcon } from '#PRIVATE_ThemedIcons/CalendarIcon';\nimport {\n CalendarDate,\n CalendarDatePlaceholders,\n InputDateMask,\n InputDateMaskContext\n} from '#UNSAFE_InputDateMask';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { IconButton } from '#UNSAFE_IconButton';\nimport { InputDatePickerDropdown } from './InputDatePickerDropdown';\nimport { FocusableHandle } from '#hooks/UNSAFE_useFocusableTextField';\nimport { merge } from '#utils/UNSAFE_stringUtils';\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { useInputDatePicker } from './useInputDatePicker';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\n\ntype InputDateMaskProps = ComponentProps<typeof InputDateMask>;\ntype PickedPropsFromInputDateMask = Pick<\n InputDateMaskProps,\n | 'aria-describedby'\n | 'assistiveText'\n | 'columnSpan'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'isDisabled'\n | 'isReadonly'\n | 'isRequired'\n | 'isRequiredShown'\n | 'label'\n | 'labelEdge'\n | 'labelStartWidth'\n | 'messages'\n | 'textAlign'\n | 'testId'\n | 'userAssistanceDensity'\n | 'variant'\n>;\n\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype PickedPropsFromDatePicker = Pick<\n DatePickerProps,\n | 'dayFormatter'\n | 'daysOutsideMonth'\n | 'max'\n | 'min'\n | 'monthAndYearPicker'\n | 'todayTimeZone'\n | 'todayButton'\n>;\n\ntype Props = PickedPropsFromInputDateMask &\n PickedPropsFromDatePicker & {\n /**\n * If specified, overrides the locale specific order of the individual date segments\n * in the date field as well as the locale specific separator. The value of each placeholder\n * is only used when the type is 'literal', otherwise it is replaced with a translated\n * placeholder for month, day, or year. The placeholders must include month, day, and year.\n */\n masks?: CalendarDatePlaceholders;\n\n /**\n * The current display value of the component.\n * This is a CalendarDate, not CalendarDateRequired, because this is a controlled component and\n * the user may type the month, day, and year separately. If a selection is made in the date\n * picker, then the value is a complete date.\n */\n value?: CalendarDate;\n\n /**\n * Callback invoked when the user commits the entered value by blurring or hitting the enter key.\n * It is also called when a selection is made in the date picker.\n */\n onCommit?: (detail: ValueUpdateDetail<CalendarDate>) => void;\n\n /**\n * Callback invoked each time the user changes the value of a segment. For example, if the user\n * types '12' into the month segment, this callback will be called twice to change the month\n * first to '1' and then '12'.\n */\n onInput: (detail: ValueUpdateDetail<CalendarDate>) => void;\n };\n\n/**\n * InputDatePicker allows users to enter or select a single date using a calendar interface.\n */\nexport const InputDatePicker = forwardRef(\n (\n {\n 'aria-describedby': propDescribedBy,\n assistiveText,\n dayFormatter,\n daysOutsideMonth,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isReadonly,\n label,\n max,\n messages,\n min,\n monthAndYearPicker,\n todayTimeZone,\n todayButton,\n value,\n onCommit,\n onInput,\n testId,\n userAssistanceDensity: propUserAssistanceDensity,\n ...dateMaskProps\n }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const {\n calendarIconActionHandler,\n datePickerCommitHandler,\n completeDateValue,\n dateValue,\n dropdownCloseHandler,\n iconRef,\n isOpen,\n maskCommitHandler,\n maskInputHandler,\n maskRef\n } = useInputDatePicker({\n onCommit,\n onInput,\n value\n });\n\n const mainFieldRef = useRef<HTMLDivElement>(null);\n const { inputDatePicker_selectDate, inputDatePicker_instruction } =\n useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const calendarIconAriaLabel = inputDatePicker_selectDate();\n\n // We need this to determine if UA/messaging should be shown in the dropdown.\n const { userAssistanceDensity: formUserAssistanceDensity } = useFormContext();\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n useImperativeHandle(ref!, () => ({\n focus: () => {\n maskRef.current?.focus();\n },\n blur: () => {\n maskRef.current?.blur();\n }\n }));\n\n const maskFieldInstructionId = useId();\n const maskFieldInstructionText = inputDatePicker_instruction();\n const maskFieldInstruction =\n !isDisabled && !isReadonly ? (\n <HiddenAccessible id={maskFieldInstructionId} isHidden={true}>\n {maskFieldInstructionText}\n </HiddenAccessible>\n ) : undefined;\n const ariaDescribedBy =\n !isDisabled && !isReadonly\n ? merge([propDescribedBy, maskFieldInstructionId])\n : propDescribedBy;\n\n const endContent = (\n <IconButton\n aria-haspopup=\"dialog\"\n aria-label={calendarIconAriaLabel}\n isDisabled={isDisabled}\n ref={iconRef}\n size=\"sm\"\n testId={testId ? testId + '_calendarIcon' : undefined}\n variant=\"ghost\"\n onAction={calendarIconActionHandler}>\n <CalendarIcon />\n </IconButton>\n );\n\n const shouldShowDropdown = isOpen as boolean;\n\n return (\n <>\n <InputDateMaskContext.Provider\n value={{ isDropdownOpen: isOpen, isInputDatePickerParent: true }}>\n <InputDateMask\n aria-describedby={ariaDescribedBy}\n assistiveText={assistiveText}\n endContent={endContent}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n label={label}\n onCommit={maskCommitHandler}\n onInput={maskInputHandler}\n mainFieldRef={mainFieldRef}\n messages={messages}\n testId={testId}\n ref={maskRef}\n userAssistanceDensity={propUserAssistanceDensity}\n value={dateValue}\n {...dateMaskProps}\n />\n </InputDateMaskContext.Provider>\n\n {maskFieldInstruction}\n\n {shouldShowDropdown && (\n <InputDatePickerDropdown\n anchorRef={mainFieldRef}\n assistiveText={assistiveText}\n dayFormatter={dayFormatter}\n daysOutsideMonth={daysOutsideMonth}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isOpen={isOpen}\n label={label}\n onClose={dropdownCloseHandler}\n onCommit={datePickerCommitHandler}\n max={max}\n messages={messages}\n min={min}\n monthAndYearPicker={monthAndYearPicker}\n testId={testId ? testId + '_datePicker' : undefined}\n todayTimeZone={todayTimeZone}\n todayButton={todayButton}\n userAssistanceDensity={userAssistanceDensity}\n value={completeDateValue}\n />\n )}\n </>\n );\n }\n);\n"],"names":["useState","useCallback","useTranslationBundle","_jsx","DatePicker","datePickerPropVars","FormFieldContext","userAssistanceStyles","InlineUserAssistance","dropdownStyles","SectionedContent","Sheet","StickyPositioningDropdown","getClientHints","isCompleteCalendarDate","useReducer","useRef","calendarDatesAreDifferent","useEffect","forwardRef","useFormContext","useImperativeHandle","useId","HiddenAccessible","merge","IconButton","CalendarIcon","_jsxs","InputDateMaskContext","InputDateMask"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DA;;;;;;AAMG;AACH,MAAM,uBAAuB,GAAG,CAAC,EAC/B,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,UAAU,EACV,MAAM,EACN,UAAU,EACV,KAAK,EACL,OAAO,EACP,QAAQ,EACR,GAAG,EACH,QAAQ,EACR,GAAG,EACH,kBAAkB,EAClB,MAAM,EACN,WAAW,EACX,aAAa,EACb,qBAAqB,EACrB,KAAK,EACC,KAAI;;IAEV,MAAM,CAAC,eAAe,EAAE,gBAAgB,CAAC,GAAGA,cAAQ,CAAC,KAAK,CAAC,CAAC;IAC5D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAGA,cAAQ,CAAC,MAAM,CAAC,CAAC;AACrD,IAAA,MAAM,sBAAsB,GAAGC,iBAAW,CAExC,CAAC,IAAkB,KAAI;QACvB,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;KACpD,EAAE,E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vB,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,EAAE,uBAAuB,EACjC,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,GAAG,EACR,kBAAkB,EAAE,kBAAkB,EACtC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,aAAa,GAAG,SAAS,EACnD,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,qBAAqB,EAAE,qBAAqB,EAC5C,KAAK,EAAE,iBAAiB,EACxB,CAAA,CACH,CACA,EAAA,CAAA,EACH;AACJ,CAAC;;;;"}
@@ -13,7 +13,7 @@ var useUser = require('./useUser-c8e9a94a.js');
13
13
  var colorUtils = require('./colorUtils-0d6ee5fe.js');
14
14
  var utils = require('./utils-b7099be5.js');
15
15
  var PRIVATE_Chart_themes_ChartStyles_css = require('./PRIVATE_Chart/themes/ChartStyles.css.js');
16
- var Chart = require('./Chart-c55ecfa4.js');
16
+ var Chart = require('./Chart-6684fa6d.js');
17
17
 
18
18
  function AreaSeries({ yScale, lineType = 'straight', color, isHorizontal, isLog, areaColorOpacity, lineSegmentCoords, bottomCoords, isHighlighted, isBottomSegmentCurved, seriesIndex }) {
19
19
  const style = {
@@ -222,4 +222,4 @@ function LineAreaChart({ width, height, selectedIds = [], hiddenIds = [], highli
222
222
  }
223
223
 
224
224
  exports.LineAreaChart = LineAreaChart;
225
- //# sourceMappingURL=LineAreaChart-5353ed1f.js.map
225
+ //# sourceMappingURL=LineAreaChart-e8165e93.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LineAreaChart-5353ed1f.js","sources":["../../src/UNSAFE_LineAreaChart/AreaSeries.tsx","../../src/PRIVATE_Chart/Markers.tsx","../../src/UNSAFE_LineAreaChart/LineSeries.tsx","../../src/UNSAFE_LineAreaChart/LineAreaChart.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { getCmdsForArea } from '../utils/PRIVATE_chartUtils/utils';\nimport { Point } from '../utils/PRIVATE_visSVGUtils';\nimport { Scale } from '../utils/UNSAFE_visTypes/chart';\nimport { dvtVars } from '../Common/themes/themeContract.css';\n\ntype AreaSeriesProps = {\n yScale: Scale;\n color: ColorProps['color'];\n lineType?: 'straight' | 'curved';\n isHorizontal: boolean;\n isLog: boolean;\n areaColorOpacity: number;\n lineSegmentCoords: Point[][];\n bottomCoords?: Point[];\n isHighlighted: boolean;\n isBottomSegmentCurved: boolean;\n seriesIndex: number;\n};\n\nexport function AreaSeries({\n yScale,\n lineType = 'straight',\n color,\n isHorizontal,\n isLog,\n areaColorOpacity,\n lineSegmentCoords,\n bottomCoords,\n isHighlighted,\n isBottomSegmentCurved,\n seriesIndex\n}: AreaSeriesProps) {\n const style = {\n fill: color,\n opacity: isHighlighted\n ? areaColorOpacity\n : `calc(${dvtVars.dimmedOpacity} * ${areaColorOpacity})`\n };\n\n return (\n <>\n {lineSegmentCoords.map((lineSegmentCoords: Point[]) => {\n let baseCoords;\n if (bottomCoords) {\n // custom bottom coords. eg: top of last series in stacked area\n baseCoords = bottomCoords;\n } else {\n // TODO: make this more generic when we support apps setting baseline\n // for log assume domain min is the baseline, otherwise use 0 baseline\n const baselineCoord = yScale.transform(isLog ? yScale.domain()[0] : 0);\n baseCoords = isHorizontal\n ? ([\n [baselineCoord, lineSegmentCoords[0][1]],\n [baselineCoord, lineSegmentCoords[lineSegmentCoords.length - 1][1]]\n ] as Point[])\n : ([\n [lineSegmentCoords[0][0], baselineCoord],\n [lineSegmentCoords[lineSegmentCoords.length - 1][0], baselineCoord]\n ] as Point[]);\n }\n const cmds = getCmdsForArea(\n lineSegmentCoords,\n baseCoords,\n lineType,\n isHorizontal,\n isBottomSegmentCurved\n );\n return (\n <path d={cmds} style={style} data-oj-series-index={seriesIndex} data-oj-object={'area'} />\n );\n })}\n </>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { LineAreaItem } from '../UNSAFE_LineAreaChart/lineAreaChart.types';\nimport { Marker, MARKER_PADDING } from '../PRIVATE_SvgShapes';\nimport { MarkerShapes } from '../utils/UNSAFE_visTypes/common';\nimport { getGroupCenterCoord } from '../utils/PRIVATE_chartUtils/layoutUtils';\nimport { ChartSeriesData, Scale, Group } from '../utils/UNSAFE_visTypes/chart';\nimport { getMarkerFillAndStroke } from '../utils/PRIVATE_chartUtils/utils';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { getItemAriaLabel } from '../utils/PRIVATE_chartUtils/accUtils';\nimport { supportsMobileScreenReader } from '../utils/UNSAFE_visUtils';\n\nconst MARKER_DEFAULT_SIZE = 10;\ntype MarkersProps<K, D> = {\n yScale: Scale;\n xScale: Scale;\n startIndex: number;\n endIndex: number;\n seriesIndex: number;\n series: ChartSeriesData<K, D>;\n markerType: MarkerShapes;\n data: number[];\n color: ColorProps['color'];\n groups: Group[];\n focusedItemIndex?: number;\n isSelectionEnabled: boolean;\n hoveredItemIndex?: number;\n selectedIds?: Set<string | number>;\n hiddenIds?: Set<string | number>;\n activeId?: string;\n orientation: 'horizontal' | 'vertical';\n isDrillEnabled: boolean;\n isLog: boolean;\n isPointInsideMarquee: ((id: K, point: { x: number; y: number }) => boolean) | undefined;\n getDataItem: (seriesIndex: number, groupIndex: number) => D | undefined;\n timeAxisType?: 'enabled' | 'skipGaps' | 'mixedFrequency';\n};\n\nexport function Markers<K extends string | number, D extends LineAreaItem<K>>({\n yScale,\n xScale,\n color,\n seriesIndex,\n startIndex,\n endIndex,\n hiddenIds,\n selectedIds,\n orientation,\n isLog,\n data,\n markerType,\n getDataItem,\n focusedItemIndex,\n hoveredItemIndex,\n isDrillEnabled,\n activeId,\n isSelectionEnabled,\n timeAxisType,\n isPointInsideMarquee,\n series,\n groups\n}: MarkersProps<K, D>) {\n const isHoriz = orientation === 'horizontal';\n const items = [];\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n for (let groupIndex = startIndex; groupIndex < endIndex + 1; groupIndex++) {\n const item = getDataItem(seriesIndex, groupIndex);\n const value = data[groupIndex];\n if (!item || value == null || hiddenIds?.has(item.id) || (isLog && value <= 0)) {\n continue;\n }\n const x = isHoriz\n ? yScale.transform(value)\n : getGroupCenterCoord<K, D>(groups[groupIndex], groupIndex, xScale, item, timeAxisType);\n const y = isHoriz\n ? getGroupCenterCoord<K, D>(groups[groupIndex], groupIndex, xScale, item, timeAxisType)\n : yScale.transform(value);\n const isFocused = focusedItemIndex === groupIndex;\n const isHovered = hoveredItemIndex === groupIndex;\n const isSelected = !!(selectedIds?.has(item.id!) || isPointInsideMarquee?.(item.id, { x, y }));\n const isDrillable = item.drilling === 'on' || (item.drilling != 'off' && isDrillEnabled);\n const { fill, stroke, outerStroke } = getMarkerFillAndStroke(\n !!item.isMarkerDisplayed,\n isSelectionEnabled,\n isHovered,\n isFocused,\n isSelected,\n color,\n item.markerColor\n );\n const itemMarkerType = item.isMarkerDisplayed ? item.markerType || markerType : markerType;\n const isActive = isFocused || isHovered;\n const ariaLabel =\n supportsMobileScreenReader || isActive\n ? getItemAriaLabel(\n translations,\n series.name || series.id.toString(),\n groups[groupIndex].name || groups[groupIndex].id,\n item.value,\n isSelectionEnabled,\n isSelected,\n isDrillable,\n item.accessibleLabel\n )\n : undefined;\n\n const dataInfo = {\n 'data-oj-series-index': seriesIndex,\n 'data-oj-group-index': groupIndex,\n 'data-oj-object': 'item',\n id: isActive ? activeId : undefined,\n role: ariaLabel ? 'img' : undefined,\n 'aria-label': ariaLabel\n };\n\n const markerSize = (item.markerSize || MARKER_DEFAULT_SIZE) + 2 * MARKER_PADDING;\n items.push(\n <Marker\n type={itemMarkerType}\n tx={x}\n ty={y}\n isInteractive={isDrillable || isSelectionEnabled}\n scale={1}\n fill={fill}\n stroke={stroke}\n outerStroke={outerStroke}\n width={markerSize}\n height={markerSize}\n dataInfo={dataInfo}\n preserveRectAspectRatio\n />\n );\n }\n return <>{items}</>;\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { getCmdsForLine } from '../utils/PRIVATE_chartUtils/utils';\nimport { Point } from '../utils/PRIVATE_visSVGUtils';\nimport { rgba } from '../UNSAFE_Theme';\nimport { colorSchemeVars } from '../Common/themes/themeContract.css';\nimport { styles } from '../PRIVATE_Chart/themes/ChartStyles.css';\nimport { Property } from 'csstype';\n\ntype LineSeriesProps = {\n color: ColorProps['color'];\n lineStyle?: 'dotted' | 'dashed' | 'solid';\n lineColor?: Property.Color;\n lineWidth?: number;\n lineType?: 'straight' | 'curved';\n isHorizontal: boolean;\n lineSegmentCoords: Point[][];\n isHighlighted: boolean;\n seriesIndex: number;\n};\n\nexport function LineSeries({\n color,\n isHorizontal,\n lineType = 'straight',\n lineColor,\n lineStyle,\n lineWidth = 3,\n isHighlighted,\n lineSegmentCoords,\n seriesIndex\n}: LineSeriesProps) {\n const style = {\n stroke: lineColor || color,\n strokeDasharray: lineStyle === 'dotted' ? 3 : lineStyle === 'dashed' ? 6 : undefined,\n strokeWidth: lineWidth,\n fill: rgba(colorSchemeVars.palette.neutral[0], 0)\n };\n\n return (\n <>\n {lineSegmentCoords.map((value: Point[]) => {\n const cmds = getCmdsForLine(value, lineType, isHorizontal);\n return lineType === 'straight' ? (\n <polyline\n points={cmds}\n style={style}\n className={isHighlighted ? undefined : styles.dimmed}\n data-oj-series-index={seriesIndex}\n data-oj-object={'line'}\n />\n ) : (\n <path\n d={cmds}\n style={style}\n className={isHighlighted ? undefined : styles.dimmed}\n data-oj-series-index={seriesIndex}\n data-oj-object={'line'}\n />\n );\n })}\n </>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { LineAreaChartProps, LineAreaItem } from './lineAreaChart.types';\nimport { findNearestDataPoint } from '../utils/PRIVATE_chartUtils/layoutUtils';\nimport { AreaSeries } from './AreaSeries';\nimport { getCumulativeSeries, getMarkers, getSeriesData } from '../utils/PRIVATE_chartUtils/utils';\nimport { Markers } from '../PRIVATE_Chart/Markers';\nimport { getLineAreaChartNavUtil } from '../utils/PRIVATE_chartUtils/navUtils';\nimport { Chart } from '../PRIVATE_Chart';\nimport { Scale, TimeAxisProps } from '../utils/UNSAFE_visTypes/chart';\nimport { useUser } from '../hooks/UNSAFE_useUser';\nimport { getColorRamp } from '../utils/UNSAFE_visUtils';\nimport { LineSeries } from './LineSeries';\nimport { Point } from '../utils/PRIVATE_visSVGUtils';\nimport { getLineAreaSegments } from '../utils/PRIVATE_chartUtils/utils';\nimport { colorSchemeVars } from '../Common/themes/themeContract.css';\nimport { getItemColor, getMarkerType } from '../utils/PRIVATE_chartUtils/dataStyleUtils';\n\nconst AXIS_OFFSET = 0.2;\n\n/**\n * The LineAreaChart displays information graphically using lines and filled areas, making relationships among the data easier to understand.\n */\nexport function LineAreaChart<K extends string | number, D extends LineAreaItem<K>>({\n width,\n height,\n selectedIds = [],\n hiddenIds = [],\n highlightedIds,\n hideAndShowBehavior = 'none',\n orientation = 'vertical',\n yAxis,\n series,\n groups,\n isStacked = false,\n getDataItem,\n selectionMode = 'none',\n drilling = 'off',\n type = 'line',\n ...props\n}: LineAreaChartProps<K, D>) {\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n const isLog = yAxis?.scale === 'log';\n const timeAxisType = (props.xAxis as TimeAxisProps)?.timeAxisType;\n const hiddenSet = new Set(hiddenIds);\n const selectedSet = new Set(selectedIds);\n const highlightedSet = new Set(highlightedIds);\n const isHoriz = orientation === 'horizontal';\n const colors = getColorRamp();\n const renderedSeries = isStacked\n ? getCumulativeSeries(series.length, groups.length, getDataItem, hiddenSet, isLog)\n : getSeriesData<K, D>(series?.length, groups?.length, getDataItem, hiddenSet, isLog);\n\n const renderedGetDataItem = (seriesIndex: number, groupIndex: number): D | undefined => {\n if (!isStacked) return getDataItem(seriesIndex, groupIndex);\n return {\n ...getDataItem(seriesIndex, groupIndex),\n value: renderedSeries[seriesIndex][groupIndex]\n } as D;\n };\n\n const getGapRatio = () => {\n return 1;\n };\n\n const getNextChartItemFunc = (startIndex: number, endIndex: number) => {\n return getLineAreaChartNavUtil<K, D>(\n getDataItem,\n series.length,\n startIndex,\n endIndex,\n isStacked,\n isRtl,\n isHoriz\n );\n };\n\n const getDataItemPos = (xScale: Scale, yScale: Scale) => {\n return (seriesIndex: number, groupIndex: number) => {\n const value = renderedSeries[seriesIndex][groupIndex];\n let xVal = groupIndex;\n if (timeAxisType) {\n const val =\n timeAxisType === 'mixedFrequency'\n ? getDataItem(seriesIndex, groupIndex)?.x\n : groups[groupIndex].id;\n xVal = new Date(val!).getTime();\n }\n const x = isHoriz ? yScale.transform(value) : xScale.transform(xVal);\n const y = isHoriz ? xScale.transform(xVal) : yScale.transform(value);\n return { x, y, height: 0, width: 0 };\n };\n };\n\n const getMarkerColorAndType = (seriesIndex: number, groupIndex: number) => {\n return {\n color: getItemColor<K, D>(seriesIndex, groupIndex, series, getDataItem),\n type: getMarkerType<K>(seriesIndex, groupIndex, 'lineWithArea', getDataItem)\n };\n };\n\n const findNearest = (xScale: Scale, yScale: Scale) => {\n const getSeriesDataInfo = () => {\n return {\n offset: 0,\n dataWidth: 0\n };\n };\n\n const getYCoord = (value: number, yScale: Scale) => {\n return yScale.transform(value);\n };\n\n return findNearestDataPoint<K, D>(\n series,\n groups,\n xScale,\n yScale,\n renderedGetDataItem,\n isStacked,\n getSeriesDataInfo,\n getYCoord,\n isLog,\n 0,\n hiddenSet,\n timeAxisType\n );\n };\n const markers = getMarkers();\n const areaOpacity = type === 'lineWithArea' ? 0.5 : 1;\n const isAreaRendered = type === 'area' || type === 'lineWithArea';\n const isContrastLineNeeded = type === 'area';\n const allLineSegmentCoords: Point[][] = [];\n return (\n <Chart\n width={width}\n height={height}\n selectedIds={selectedSet}\n hiddenIds={hiddenIds}\n hideAndShowBehavior={hideAndShowBehavior}\n orientation={orientation}\n yAxis={yAxis}\n series={series}\n groups={groups}\n selectionMode={selectionMode}\n drilling={drilling}\n isStacked={isStacked}\n getDataItem={getDataItem}\n findNearest={findNearest}\n getDataItemPos={getDataItemPos}\n getMarkerInfo={getMarkerColorAndType}\n renderGridLinesInFront={isAreaRendered}\n getNavUtil={getNextChartItemFunc}\n getGapRatio={getGapRatio}\n offset={AXIS_OFFSET}\n isRtl={isRtl}\n {...props}>\n {({\n xStartIndex,\n xEndIndex,\n xScale,\n yScale,\n activeId,\n focusedItemInfo,\n hoveredItemInfo,\n isPointInsideMarquee\n }) => {\n return (\n <>\n {renderedSeries.map((lineAreaSeries, index) => {\n if (lineAreaSeries.length === 0) {\n /* TODO: need a better way to handle when a series is hidden. */\n return;\n }\n const seriesItem = series[index];\n const lineSegmentCoords: Point[][] = getLineAreaSegments<K, D>(\n yScale,\n xScale,\n lineAreaSeries,\n xStartIndex,\n xEndIndex,\n isHoriz,\n isLog,\n groups,\n index,\n renderedGetDataItem,\n timeAxisType\n );\n allLineSegmentCoords[index] = lineSegmentCoords[0];\n const isBottomSegmentCurved =\n seriesItem.lineType === 'curved' &&\n isStacked &&\n renderedSeries.length > 1 &&\n index > 0;\n\n const isHighlighted =\n highlightedIds === undefined || highlightedSet.has(seriesItem.id);\n return (\n <>\n {isAreaRendered && (\n <AreaSeries\n yScale={yScale}\n lineType={seriesItem.lineType}\n color={seriesItem.areaColor || colors[index % colors.length]}\n isHorizontal={isHoriz}\n areaColorOpacity={areaOpacity}\n isBottomSegmentCurved={isBottomSegmentCurved}\n bottomCoords={\n isStacked && index != 0 ? allLineSegmentCoords[index - 1] : undefined\n }\n lineSegmentCoords={lineSegmentCoords}\n isLog={isLog}\n isHighlighted={isHighlighted}\n seriesIndex={index}\n />\n )}\n <LineSeries\n lineType={seriesItem.lineType}\n /* TODO: confirm with UX if this is contrastLine (changes depending on dark/light mode) or always white. \n It's always white in legacy.*/\n lineColor={\n isContrastLineNeeded ? colorSchemeVars.dvt.contrastLine : seriesItem.lineColor\n }\n /* The area generated in legacy are bit apart and not touching when stacked. Preact areas are a bit closer than legacy when curved. \n Increased the contrast linewidth (to 2.5 from legacy 1.25) to give legacy visual treatment.\n TODO: investivage why legacy areas are not touching. maybe we want to do the same in preact svg utils that\n generates this curve.\n */\n lineWidth={\n isContrastLineNeeded ? (isStacked ? 2.5 : 1.25) : seriesItem.lineWidth\n }\n lineStyle={seriesItem.lineStyle}\n color={seriesItem.lineColor || colors[index % colors.length]}\n lineSegmentCoords={lineSegmentCoords}\n isHorizontal={isHoriz}\n isHighlighted={isHighlighted}\n seriesIndex={index}\n />\n {\n /*for non stacked charts, markers should render in the order of series.\n some markers might get hidden behind area but this preserves the legacy behavior. */\n !isStacked && (\n <Markers\n yScale={yScale}\n xScale={xScale}\n groups={groups}\n series={seriesItem}\n timeAxisType={timeAxisType}\n data={lineAreaSeries}\n color={\n seriesItem.lineColor ||\n seriesItem.areaColor ||\n colors[\n index % colors.length\n ] /* TODO : make this use getItemColor function from dataStyleUtils. */\n }\n seriesIndex={index}\n startIndex={xStartIndex}\n endIndex={xEndIndex}\n markerType={markers[index % markers.length]}\n orientation={orientation}\n isLog={isLog}\n activeId={activeId}\n getDataItem={getDataItem}\n isPointInsideMarquee={isPointInsideMarquee}\n selectedIds={selectedSet}\n focusedItemIndex={\n focusedItemInfo.seriesIndex === index &&\n focusedItemInfo.isFocusVisible &&\n !(props.isDataCursorEnabled && props.dataCursorStyle?.isMarkerDisplayed)\n ? focusedItemInfo.groupIndex\n : undefined\n }\n hoveredItemIndex={\n hoveredItemInfo?.isCurrent && hoveredItemInfo.seriesIndex === index\n ? hoveredItemInfo.groupIndex\n : undefined\n }\n isSelectionEnabled={\n selectionMode === 'single' || selectionMode === 'multiple'\n }\n isDrillEnabled={drilling === 'on'}\n />\n )\n }\n </>\n );\n })}\n {isStacked &&\n renderedSeries.map((lineAreaSeries, index) => {\n if (lineAreaSeries.length === 0) {\n /* TODO: need a better way to handle when a series is hidden.*/\n return;\n }\n const seriesItem = series[index];\n return (\n <Markers\n yScale={yScale}\n series={series[index]}\n xScale={xScale}\n groups={groups}\n timeAxisType={timeAxisType}\n data={lineAreaSeries}\n color={\n seriesItem.lineColor || seriesItem.areaColor || colors[index % colors.length]\n }\n seriesIndex={index}\n isPointInsideMarquee={isPointInsideMarquee}\n startIndex={xStartIndex}\n endIndex={xEndIndex}\n markerType={markers[index % markers.length]}\n orientation={orientation}\n isLog={isLog}\n activeId={activeId}\n getDataItem={getDataItem}\n selectedIds={selectedSet}\n focusedItemIndex={\n focusedItemInfo.seriesIndex === index && focusedItemInfo.isFocusVisible\n ? focusedItemInfo.groupIndex\n : undefined\n }\n hoveredItemIndex={\n hoveredItemInfo?.isCurrent && hoveredItemInfo.seriesIndex === index\n ? hoveredItemInfo.groupIndex\n : undefined\n }\n isSelectionEnabled={selectionMode === 'single' || selectionMode === 'multiple'}\n isDrillEnabled={drilling === 'on'}\n />\n );\n })}\n </>\n );\n }}\n </Chart>\n );\n}\n"],"names":["dvtVars","_jsx","getCmdsForArea","useTranslationBundle","getGroupCenterCoord","getMarkerFillAndStroke","supportsMobileScreenReader","getItemAriaLabel","MARKER_PADDING","Marker","_Fragment","rgba","colorSchemeVars","getCmdsForLine","styles","useUser","getColorRamp","getCumulativeSeries","getSeriesData","getLineAreaChartNavUtil","getItemColor","getMarkerType","findNearestDataPoint","getMarkers","Chart","_jsxs","getLineAreaSegments"],"mappings":";;;;;;;;;;;;;;;;;AA4BM,SAAU,UAAU,CAAC,EACzB,MAAM,EACN,QAAQ,GAAG,UAAU,EACrB,KAAK,EACL,YAAY,EACZ,KAAK,EACL,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,qBAAqB,EACrB,WAAW,EACK,EAAA;AAChB,IAAA,MAAM,KAAK,GAAG;AACZ,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,OAAO,EAAE,aAAa;AACpB,cAAE,gBAAgB;AAClB,cAAE,CAAQ,KAAA,EAAAA,uCAAO,CAAC,aAAa,CAAA,GAAA,EAAM,gBAAgB,CAAG,CAAA,CAAA;KAC3D,CAAC;IAEF,QACEC,gDACG,iBAAiB,CAAC,GAAG,CAAC,CAAC,iBAA0B,KAAI;AACpD,YAAA,IAAI,UAAU,CAAC;YACf,IAAI,YAAY,EAAE;;gBAEhB,UAAU,GAAG,YAAY,CAAC;aAC3B;iBAAM;;;gBAGL,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACvE,gBAAA,UAAU,GAAG,YAAY;AACvB,sBAAG;wBACC,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACxC,wBAAA,CAAC,aAAa,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,MAAM,GAAG,C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aChart/AreaSeries.tsx","../../src/PRIVATE_Chart/Markers.tsx","../../src/UNSAFE_LineAreaChart/LineSeries.tsx","../../src/UNSAFE_LineAreaChart/LineAreaChart.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { getCmdsForArea } from '../utils/PRIVATE_chartUtils/utils';\nimport { Point } from '../utils/PRIVATE_visSVGUtils';\nimport { Scale } from '../utils/UNSAFE_visTypes/chart';\nimport { dvtVars } from '../Common/themes/themeContract.css';\n\ntype AreaSeriesProps = {\n yScale: Scale;\n color: ColorProps['color'];\n lineType?: 'straight' | 'curved';\n isHorizontal: boolean;\n isLog: boolean;\n areaColorOpacity: number;\n lineSegmentCoords: Point[][];\n bottomCoords?: Point[];\n isHighlighted: boolean;\n isBottomSegmentCurved: boolean;\n seriesIndex: number;\n};\n\nexport function AreaSeries({\n yScale,\n lineType = 'straight',\n color,\n isHorizontal,\n isLog,\n areaColorOpacity,\n lineSegmentCoords,\n bottomCoords,\n isHighlighted,\n isBottomSegmentCurved,\n seriesIndex\n}: AreaSeriesProps) {\n const style = {\n fill: color,\n opacity: isHighlighted\n ? areaColorOpacity\n : `calc(${dvtVars.dimmedOpacity} * ${areaColorOpacity})`\n };\n\n return (\n <>\n {lineSegmentCoords.map((lineSegmentCoords: Point[]) => {\n let baseCoords;\n if (bottomCoords) {\n // custom bottom coords. eg: top of last series in stacked area\n baseCoords = bottomCoords;\n } else {\n // TODO: make this more generic when we support apps setting baseline\n // for log assume domain min is the baseline, otherwise use 0 baseline\n const baselineCoord = yScale.transform(isLog ? yScale.domain()[0] : 0);\n baseCoords = isHorizontal\n ? ([\n [baselineCoord, lineSegmentCoords[0][1]],\n [baselineCoord, lineSegmentCoords[lineSegmentCoords.length - 1][1]]\n ] as Point[])\n : ([\n [lineSegmentCoords[0][0], baselineCoord],\n [lineSegmentCoords[lineSegmentCoords.length - 1][0], baselineCoord]\n ] as Point[]);\n }\n const cmds = getCmdsForArea(\n lineSegmentCoords,\n baseCoords,\n lineType,\n isHorizontal,\n isBottomSegmentCurved\n );\n return (\n <path d={cmds} style={style} data-oj-series-index={seriesIndex} data-oj-object={'area'} />\n );\n })}\n </>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { LineAreaItem } from '../UNSAFE_LineAreaChart/lineAreaChart.types';\nimport { Marker, MARKER_PADDING } from '../PRIVATE_SvgShapes';\nimport { MarkerShapes } from '../utils/UNSAFE_visTypes/common';\nimport { getGroupCenterCoord } from '../utils/PRIVATE_chartUtils/layoutUtils';\nimport { ChartSeriesData, Scale, Group } from '../utils/UNSAFE_visTypes/chart';\nimport { getMarkerFillAndStroke } from '../utils/PRIVATE_chartUtils/utils';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { getItemAriaLabel } from '../utils/PRIVATE_chartUtils/accUtils';\nimport { supportsMobileScreenReader } from '../utils/UNSAFE_visUtils';\n\nconst MARKER_DEFAULT_SIZE = 10;\ntype MarkersProps<K, D> = {\n yScale: Scale;\n xScale: Scale;\n startIndex: number;\n endIndex: number;\n seriesIndex: number;\n series: ChartSeriesData<K, D>;\n markerType: MarkerShapes;\n data: number[];\n color: ColorProps['color'];\n groups: Group[];\n focusedItemIndex?: number;\n isSelectionEnabled: boolean;\n hoveredItemIndex?: number;\n selectedIds?: Set<string | number>;\n hiddenIds?: Set<string | number>;\n activeId?: string;\n orientation: 'horizontal' | 'vertical';\n isDrillEnabled: boolean;\n isLog: boolean;\n isPointInsideMarquee: ((id: K, point: { x: number; y: number }) => boolean) | undefined;\n getDataItem: (seriesIndex: number, groupIndex: number) => D | undefined;\n timeAxisType?: 'enabled' | 'skipGaps' | 'mixedFrequency';\n};\n\nexport function Markers<K extends string | number, D extends LineAreaItem<K>>({\n yScale,\n xScale,\n color,\n seriesIndex,\n startIndex,\n endIndex,\n hiddenIds,\n selectedIds,\n orientation,\n isLog,\n data,\n markerType,\n getDataItem,\n focusedItemIndex,\n hoveredItemIndex,\n isDrillEnabled,\n activeId,\n isSelectionEnabled,\n timeAxisType,\n isPointInsideMarquee,\n series,\n groups\n}: MarkersProps<K, D>) {\n const isHoriz = orientation === 'horizontal';\n const items = [];\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n for (let groupIndex = startIndex; groupIndex < endIndex + 1; groupIndex++) {\n const item = getDataItem(seriesIndex, groupIndex);\n const value = data[groupIndex];\n if (!item || value == null || hiddenIds?.has(item.id) || (isLog && value <= 0)) {\n continue;\n }\n const x = isHoriz\n ? yScale.transform(value)\n : getGroupCenterCoord<K, D>(groups[groupIndex], groupIndex, xScale, item, timeAxisType);\n const y = isHoriz\n ? getGroupCenterCoord<K, D>(groups[groupIndex], groupIndex, xScale, item, timeAxisType)\n : yScale.transform(value);\n const isFocused = focusedItemIndex === groupIndex;\n const isHovered = hoveredItemIndex === groupIndex;\n const isSelected = !!(selectedIds?.has(item.id!) || isPointInsideMarquee?.(item.id, { x, y }));\n const isDrillable = item.drilling === 'on' || (item.drilling != 'off' && isDrillEnabled);\n const { fill, stroke, outerStroke } = getMarkerFillAndStroke(\n !!item.isMarkerDisplayed,\n isSelectionEnabled,\n isHovered,\n isFocused,\n isSelected,\n color,\n item.markerColor\n );\n const itemMarkerType = item.isMarkerDisplayed ? item.markerType || markerType : markerType;\n const isActive = isFocused || isHovered;\n const ariaLabel =\n supportsMobileScreenReader || isActive\n ? getItemAriaLabel(\n translations,\n series.name || series.id.toString(),\n groups[groupIndex].name || groups[groupIndex].id,\n item.value,\n isSelectionEnabled,\n isSelected,\n isDrillable,\n item.accessibleLabel\n )\n : undefined;\n\n const dataInfo = {\n 'data-oj-series-index': seriesIndex,\n 'data-oj-group-index': groupIndex,\n 'data-oj-object': 'item',\n id: isActive ? activeId : undefined,\n role: ariaLabel ? 'img' : undefined,\n 'aria-label': ariaLabel\n };\n\n const markerSize = (item.markerSize || MARKER_DEFAULT_SIZE) + 2 * MARKER_PADDING;\n items.push(\n <Marker\n type={itemMarkerType}\n tx={x}\n ty={y}\n isInteractive={isDrillable || isSelectionEnabled}\n scale={1}\n fill={fill}\n stroke={stroke}\n outerStroke={outerStroke}\n width={markerSize}\n height={markerSize}\n dataInfo={dataInfo}\n preserveRectAspectRatio\n />\n );\n }\n return <>{items}</>;\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { getCmdsForLine } from '../utils/PRIVATE_chartUtils/utils';\nimport { Point } from '../utils/PRIVATE_visSVGUtils';\nimport { rgba } from '../UNSAFE_Theme';\nimport { colorSchemeVars } from '../Common/themes/themeContract.css';\nimport { styles } from '../PRIVATE_Chart/themes/ChartStyles.css';\nimport { Property } from 'csstype';\n\ntype LineSeriesProps = {\n color: ColorProps['color'];\n lineStyle?: 'dotted' | 'dashed' | 'solid';\n lineColor?: Property.Color;\n lineWidth?: number;\n lineType?: 'straight' | 'curved';\n isHorizontal: boolean;\n lineSegmentCoords: Point[][];\n isHighlighted: boolean;\n seriesIndex: number;\n};\n\nexport function LineSeries({\n color,\n isHorizontal,\n lineType = 'straight',\n lineColor,\n lineStyle,\n lineWidth = 3,\n isHighlighted,\n lineSegmentCoords,\n seriesIndex\n}: LineSeriesProps) {\n const style = {\n stroke: lineColor || color,\n strokeDasharray: lineStyle === 'dotted' ? 3 : lineStyle === 'dashed' ? 6 : undefined,\n strokeWidth: lineWidth,\n fill: rgba(colorSchemeVars.palette.neutral[0], 0)\n };\n\n return (\n <>\n {lineSegmentCoords.map((value: Point[]) => {\n const cmds = getCmdsForLine(value, lineType, isHorizontal);\n return lineType === 'straight' ? (\n <polyline\n points={cmds}\n style={style}\n className={isHighlighted ? undefined : styles.dimmed}\n data-oj-series-index={seriesIndex}\n data-oj-object={'line'}\n />\n ) : (\n <path\n d={cmds}\n style={style}\n className={isHighlighted ? undefined : styles.dimmed}\n data-oj-series-index={seriesIndex}\n data-oj-object={'line'}\n />\n );\n })}\n </>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { LineAreaChartProps, LineAreaItem } from './lineAreaChart.types';\nimport { findNearestDataPoint } from '../utils/PRIVATE_chartUtils/layoutUtils';\nimport { AreaSeries } from './AreaSeries';\nimport { getCumulativeSeries, getMarkers, getSeriesData } from '../utils/PRIVATE_chartUtils/utils';\nimport { Markers } from '../PRIVATE_Chart/Markers';\nimport { getLineAreaChartNavUtil } from '../utils/PRIVATE_chartUtils/navUtils';\nimport { Chart } from '../PRIVATE_Chart';\nimport { Scale, TimeAxisProps } from '../utils/UNSAFE_visTypes/chart';\nimport { useUser } from '../hooks/UNSAFE_useUser';\nimport { getColorRamp } from '../utils/UNSAFE_visUtils';\nimport { LineSeries } from './LineSeries';\nimport { Point } from '../utils/PRIVATE_visSVGUtils';\nimport { getLineAreaSegments } from '../utils/PRIVATE_chartUtils/utils';\nimport { colorSchemeVars } from '../Common/themes/themeContract.css';\nimport { getItemColor, getMarkerType } from '../utils/PRIVATE_chartUtils/dataStyleUtils';\n\nconst AXIS_OFFSET = 0.2;\n\n/**\n * The LineAreaChart displays information graphically using lines and filled areas, making relationships among the data easier to understand.\n */\nexport function LineAreaChart<K extends string | number, D extends LineAreaItem<K>>({\n width,\n height,\n selectedIds = [],\n hiddenIds = [],\n highlightedIds,\n hideAndShowBehavior = 'none',\n orientation = 'vertical',\n yAxis,\n series,\n groups,\n isStacked = false,\n getDataItem,\n selectionMode = 'none',\n drilling = 'off',\n type = 'line',\n ...props\n}: LineAreaChartProps<K, D>) {\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n const isLog = yAxis?.scale === 'log';\n const timeAxisType = (props.xAxis as TimeAxisProps)?.timeAxisType;\n const hiddenSet = new Set(hiddenIds);\n const selectedSet = new Set(selectedIds);\n const highlightedSet = new Set(highlightedIds);\n const isHoriz = orientation === 'horizontal';\n const colors = getColorRamp();\n const renderedSeries = isStacked\n ? getCumulativeSeries(series.length, groups.length, getDataItem, hiddenSet, isLog)\n : getSeriesData<K, D>(series?.length, groups?.length, getDataItem, hiddenSet, isLog);\n\n const renderedGetDataItem = (seriesIndex: number, groupIndex: number): D | undefined => {\n if (!isStacked) return getDataItem(seriesIndex, groupIndex);\n return {\n ...getDataItem(seriesIndex, groupIndex),\n value: renderedSeries[seriesIndex][groupIndex]\n } as D;\n };\n\n const getGapRatio = () => {\n return 1;\n };\n\n const getNextChartItemFunc = (startIndex: number, endIndex: number) => {\n return getLineAreaChartNavUtil<K, D>(\n getDataItem,\n series.length,\n startIndex,\n endIndex,\n isStacked,\n isRtl,\n isHoriz\n );\n };\n\n const getDataItemPos = (xScale: Scale, yScale: Scale) => {\n return (seriesIndex: number, groupIndex: number) => {\n const value = renderedSeries[seriesIndex][groupIndex];\n let xVal = groupIndex;\n if (timeAxisType) {\n const val =\n timeAxisType === 'mixedFrequency'\n ? getDataItem(seriesIndex, groupIndex)?.x\n : groups[groupIndex].id;\n xVal = new Date(val!).getTime();\n }\n const x = isHoriz ? yScale.transform(value) : xScale.transform(xVal);\n const y = isHoriz ? xScale.transform(xVal) : yScale.transform(value);\n return { x, y, height: 0, width: 0 };\n };\n };\n\n const getMarkerColorAndType = (seriesIndex: number, groupIndex: number) => {\n return {\n color: getItemColor<K, D>(seriesIndex, groupIndex, series, getDataItem),\n type: getMarkerType<K>(seriesIndex, groupIndex, 'lineWithArea', getDataItem)\n };\n };\n\n const findNearest = (xScale: Scale, yScale: Scale) => {\n const getSeriesDataInfo = () => {\n return {\n offset: 0,\n dataWidth: 0\n };\n };\n\n const getYCoord = (value: number, yScale: Scale) => {\n return yScale.transform(value);\n };\n\n return findNearestDataPoint<K, D>(\n series,\n groups,\n xScale,\n yScale,\n renderedGetDataItem,\n isStacked,\n getSeriesDataInfo,\n getYCoord,\n isLog,\n 0,\n hiddenSet,\n timeAxisType\n );\n };\n const markers = getMarkers();\n const areaOpacity = type === 'lineWithArea' ? 0.5 : 1;\n const isAreaRendered = type === 'area' || type === 'lineWithArea';\n const isContrastLineNeeded = type === 'area';\n const allLineSegmentCoords: Point[][] = [];\n return (\n <Chart\n width={width}\n height={height}\n selectedIds={selectedSet}\n hiddenIds={hiddenIds}\n hideAndShowBehavior={hideAndShowBehavior}\n orientation={orientation}\n yAxis={yAxis}\n series={series}\n groups={groups}\n selectionMode={selectionMode}\n drilling={drilling}\n isStacked={isStacked}\n getDataItem={getDataItem}\n findNearest={findNearest}\n getDataItemPos={getDataItemPos}\n getMarkerInfo={getMarkerColorAndType}\n renderGridLinesInFront={isAreaRendered}\n getNavUtil={getNextChartItemFunc}\n getGapRatio={getGapRatio}\n offset={AXIS_OFFSET}\n isRtl={isRtl}\n {...props}>\n {({\n xStartIndex,\n xEndIndex,\n xScale,\n yScale,\n activeId,\n focusedItemInfo,\n hoveredItemInfo,\n isPointInsideMarquee\n }) => {\n return (\n <>\n {renderedSeries.map((lineAreaSeries, index) => {\n if (lineAreaSeries.length === 0) {\n /* TODO: need a better way to handle when a series is hidden. */\n return;\n }\n const seriesItem = series[index];\n const lineSegmentCoords: Point[][] = getLineAreaSegments<K, D>(\n yScale,\n xScale,\n lineAreaSeries,\n xStartIndex,\n xEndIndex,\n isHoriz,\n isLog,\n groups,\n index,\n renderedGetDataItem,\n timeAxisType\n );\n allLineSegmentCoords[index] = lineSegmentCoords[0];\n const isBottomSegmentCurved =\n seriesItem.lineType === 'curved' &&\n isStacked &&\n renderedSeries.length > 1 &&\n index > 0;\n\n const isHighlighted =\n highlightedIds === undefined || highlightedSet.has(seriesItem.id);\n return (\n <>\n {isAreaRendered && (\n <AreaSeries\n yScale={yScale}\n lineType={seriesItem.lineType}\n color={seriesItem.areaColor || colors[index % colors.length]}\n isHorizontal={isHoriz}\n areaColorOpacity={areaOpacity}\n isBottomSegmentCurved={isBottomSegmentCurved}\n bottomCoords={\n isStacked && index != 0 ? allLineSegmentCoords[index - 1] : undefined\n }\n lineSegmentCoords={lineSegmentCoords}\n isLog={isLog}\n isHighlighted={isHighlighted}\n seriesIndex={index}\n />\n )}\n <LineSeries\n lineType={seriesItem.lineType}\n /* TODO: confirm with UX if this is contrastLine (changes depending on dark/light mode) or always white. \n It's always white in legacy.*/\n lineColor={\n isContrastLineNeeded ? colorSchemeVars.dvt.contrastLine : seriesItem.lineColor\n }\n /* The area generated in legacy are bit apart and not touching when stacked. Preact areas are a bit closer than legacy when curved. \n Increased the contrast linewidth (to 2.5 from legacy 1.25) to give legacy visual treatment.\n TODO: investivage why legacy areas are not touching. maybe we want to do the same in preact svg utils that\n generates this curve.\n */\n lineWidth={\n isContrastLineNeeded ? (isStacked ? 2.5 : 1.25) : seriesItem.lineWidth\n }\n lineStyle={seriesItem.lineStyle}\n color={seriesItem.lineColor || colors[index % colors.length]}\n lineSegmentCoords={lineSegmentCoords}\n isHorizontal={isHoriz}\n isHighlighted={isHighlighted}\n seriesIndex={index}\n />\n {\n /*for non stacked charts, markers should render in the order of series.\n some markers might get hidden behind area but this preserves the legacy behavior. */\n !isStacked && (\n <Markers\n yScale={yScale}\n xScale={xScale}\n groups={groups}\n series={seriesItem}\n timeAxisType={timeAxisType}\n data={lineAreaSeries}\n color={\n seriesItem.lineColor ||\n seriesItem.areaColor ||\n colors[\n index % colors.length\n ] /* TODO : make this use getItemColor function from dataStyleUtils. */\n }\n seriesIndex={index}\n startIndex={xStartIndex}\n endIndex={xEndIndex}\n markerType={markers[index % markers.length]}\n orientation={orientation}\n isLog={isLog}\n activeId={activeId}\n getDataItem={getDataItem}\n isPointInsideMarquee={isPointInsideMarquee}\n selectedIds={selectedSet}\n focusedItemIndex={\n focusedItemInfo.seriesIndex === index &&\n focusedItemInfo.isFocusVisible &&\n !(props.isDataCursorEnabled && props.dataCursorStyle?.isMarkerDisplayed)\n ? focusedItemInfo.groupIndex\n : undefined\n }\n hoveredItemIndex={\n hoveredItemInfo?.isCurrent && hoveredItemInfo.seriesIndex === index\n ? hoveredItemInfo.groupIndex\n : undefined\n }\n isSelectionEnabled={\n selectionMode === 'single' || selectionMode === 'multiple'\n }\n isDrillEnabled={drilling === 'on'}\n />\n )\n }\n </>\n );\n })}\n {isStacked &&\n renderedSeries.map((lineAreaSeries, index) => {\n if (lineAreaSeries.length === 0) {\n /* TODO: need a better way to handle when a series is hidden.*/\n return;\n }\n const seriesItem = series[index];\n return (\n <Markers\n yScale={yScale}\n series={series[index]}\n xScale={xScale}\n groups={groups}\n timeAxisType={timeAxisType}\n data={lineAreaSeries}\n color={\n seriesItem.lineColor || seriesItem.areaColor || colors[index % colors.length]\n }\n seriesIndex={index}\n isPointInsideMarquee={isPointInsideMarquee}\n startIndex={xStartIndex}\n endIndex={xEndIndex}\n markerType={markers[index % markers.length]}\n orientation={orientation}\n isLog={isLog}\n activeId={activeId}\n getDataItem={getDataItem}\n selectedIds={selectedSet}\n focusedItemIndex={\n focusedItemInfo.seriesIndex === index && focusedItemInfo.isFocusVisible\n ? focusedItemInfo.groupIndex\n : undefined\n }\n hoveredItemIndex={\n hoveredItemInfo?.isCurrent && hoveredItemInfo.seriesIndex === index\n ? hoveredItemInfo.groupIndex\n : undefined\n }\n isSelectionEnabled={selectionMode === 'single' || selectionMode === 'multiple'}\n isDrillEnabled={drilling === 'on'}\n />\n );\n })}\n </>\n );\n }}\n </Chart>\n );\n}\n"],"names":["dvtVars","_jsx","getCmdsForArea","useTranslationBundle","getGroupCenterCoord","getMarkerFillAndStroke","supportsMobileScreenReader","getItemAriaLabel","MARKER_PADDING","Marker","_Fragment","rgba","colorSchemeVars","getCmdsForLine","styles","useUser","getColorRamp","getCumulativeSeries","getSeriesData","getLineAreaChartNavUtil","getItemColor","getMarkerType","findNearestDataPoint","getMarkers","Chart","_jsxs","getLineAreaSegments"],"mappings":";;;;;;;;;;;;;;;;;AA4BM,SAAU,UAAU,CAAC,EACzB,MAAM,EACN,QAAQ,GAAG,UAAU,EACrB,KAAK,EACL,YAAY,EACZ,KAAK,EACL,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,qBAAqB,EACrB,WAAW,EACK,EAAA;AAChB,IAAA,MAAM,KAAK,GAAG;AACZ,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,OAAO,EAAE,aAAa;AACpB,cAAE,gBAAgB;AAClB,cAAE,CAAQ,KAAA,EAAAA,uCAAO,CAAC,aAAa,CAAA,GAAA,EAAM,gBAAgB,CAAG,CAAA,CAAA;KAC3D,CAAC;IAEF,QACEC,gDACG,iBAAiB,CAAC,GAAG,CAAC,CAAC,iBAA0B,KAAI;AACpD,YAAA,IAAI,UAAU,CAAC;YACf,IAAI,YAAY,EAAE;;gBAEhB,UAAU,GAAG,YAAY,CAAC;aAC3B;iBAAM;;;gBAGL,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACvE,gBAAA,UAAU,GAAG,YAAY;AACvB,sBAAG;wBACC,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACxC,wBAAA,CAAC,aAAa,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,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
- var Chart = require('./Chart-c55ecfa4.js');
6
+ var Chart = require('./Chart-6684fa6d.js');
7
7
  require('preact/jsx-runtime');
8
8
  require('./PRIVATE_Chart/themes/ChartStyles.css.js');
9
9
 
@@ -59,9 +59,6 @@ require('./getLocale-8e17dc46.js');
59
59
  require('./useChartNav-e850e19e.js');
60
60
  require('./layoutUtils-56b6111c.js');
61
61
  require('./useVisHover-ad36112d.js');
62
- require('./ScrollBar-dc5cf205.js');
63
- require('./PRIVATE_ChartScrollBar/themes/ScrollBarStyles.css.js');
64
-
65
62
  require('./useSelectDrill-303b8cba.js');
66
63
  require('./useChartDataCursor-7f36d497.js');
67
64
  require('./hooks/PRIVATE_useChartDataCursor/themes/DataCursorStyles.css.js');
@@ -232,6 +229,9 @@ require('./IconToggleButton-0c415743.js');
232
229
  require('./useToggleAction-e4f15550.js');
233
230
  require('./useVisTouchResponse-fb9c4e8f.js');
234
231
  require('./stringUtils-4e4a6b2b.js');
232
+ require('./ScrollBar-dc5cf205.js');
233
+ require('./PRIVATE_ChartScrollBar/themes/ScrollBarStyles.css.js');
234
+
235
235
 
236
236
 
237
237
 
@@ -6,7 +6,7 @@ var compat = require('preact/compat');
6
6
  require('./FormContext-9452bd30.js');
7
7
  var useFormContext = require('./useFormContext-4c3091dc.js');
8
8
  var FormFieldContext = require('./FormFieldContext-8418dc68.js');
9
- require('preact/hooks');
9
+ var hooks = require('preact/hooks');
10
10
  var useFocusableTextField = require('./useFocusableTextField-c18d39c2.js');
11
11
  var Label = require('./Label-d9ad059f.js');
12
12
  var TextFieldInput = require('./TextFieldInput-4904c227.js');
@@ -38,9 +38,26 @@ var HiddenAccessible = require('./HiddenAccessible-087eb49a.js');
38
38
 
39
39
  require('./UNSAFE_Popup/themes/redwood/PopupVariants.css.js');
40
40
  var useLengthFilter = require('./useLengthFilter-d4cb6f47.js');
41
- var MaxLengthCounter = require('./MaxLengthCounter-a5370f66.js');
41
+ var classNames = require('./classNames-c14c6ef3.js');
42
+ var usePress = require('./usePress-00deca01.js');
43
+ var useFormFieldContext = require('./useFormFieldContext-20f419ef.js');
44
+
42
45
  var useCurrentValueReducer = require('./useCurrentValueReducer-f37ac024.js');
43
46
 
47
+ var hide = 'MaxLengthCounterStyles_hide__7dy9j71';
48
+ var maxLengthCounterBase = 'MaxLengthCounterStyles_maxLengthCounterBase__7dy9j70';
49
+ var spanStyles = 'MaxLengthCounterStyles_spanStyles__7dy9j72';
50
+
51
+ const noop = () => { };
52
+ function MaxLengthCounter({ maxLength, valueLength = 0, onClick }) {
53
+ const { isFocused } = useFormFieldContext.useFormFieldContext();
54
+ // We don't want mousedown on this component to do anything, so prevent the default behavior.
55
+ const killEvent = hooks.useCallback((event) => event.preventDefault(), []);
56
+ const textClasses = classNames.classNames([!isFocused && hide]);
57
+ const { pressProps } = usePress.usePress(onClick ?? noop);
58
+ return (jsxRuntime.jsx("div", { class: maxLengthCounterBase, onMouseDown: killEvent, ...pressProps, children: jsxRuntime.jsxs("span", { class: textClasses, children: [jsxRuntime.jsx("span", { class: spanStyles, children: valueLength }), jsxRuntime.jsx("span", { class: spanStyles, children: "/" }), jsxRuntime.jsx("span", { class: spanStyles, children: maxLength })] }) }));
59
+ }
60
+
44
61
  /**
45
62
  * A text area displays a field that allows a user to enter a multi-line text value.
46
63
  */
@@ -134,11 +151,12 @@ const TextArea = compat.forwardRef(({ 'aria-describedby': ariaDescribedBy, assis
134
151
  return (jsxRuntime.jsx(FormFieldContext.FormFieldContext.Provider, { value: formFieldContext, children: jsxRuntime.jsx(StyledTextField.ReadonlyTextField, { role: "presentation", columnSpan: columnSpan, compactUserAssistance: compactUserAssistance, inlineUserAssistance: inlineUserAssistance, ref: anchorRef, testId: testId, variant: "textarea", mainContent: mainContent, resize: resize, ...fieldLabelProps }) }));
135
152
  }
136
153
  const hasMaxLength = maxLength !== undefined;
137
- const mainContent = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(TextFieldInput.TextFieldInput, { as: "textarea", "aria-label": ariaLabel, autoComplete: autoComplete, autoFocus: autoFocus, currentCommitValue: currentCommitValue, hasEmptyLabel: label === '' && labelEdge === 'none', hasInsideLabel: labelComp !== undefined && labelEdge === 'inside', isRequired: isRequired, inputRef: enabledElementRef, onCommit: onCommitAndDispatch, onInput: onFilteredInput, placeholder: placeholder, role: role, rows: rows, textAlign: textAlign, value: value, ...inputProps }), maxLengthCounter === 'remaining' && hasMaxLength && (jsxRuntime.jsx(MaxLengthCounter.MaxLengthCounter, { maxLength: maxLength, valueLength: valueLength, onClick: onClickCounter })), hasMaxLength && (jsxRuntime.jsx(HiddenAccessible.HiddenAccessible, { id: maxLengthDescribedByIdRef.current, isHidden: true, children: translations.formControl_maxLength({
154
+ const mainContent = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(TextFieldInput.TextFieldInput, { as: "textarea", "aria-label": ariaLabel, autoComplete: autoComplete, autoFocus: autoFocus, currentCommitValue: currentCommitValue, hasEmptyLabel: label === '' && labelEdge === 'none', hasInsideLabel: labelComp !== undefined && labelEdge === 'inside', isRequired: isRequired, inputRef: enabledElementRef, onCommit: onCommitAndDispatch, onInput: onFilteredInput, placeholder: placeholder, role: role, rows: rows, textAlign: textAlign, value: value, ...inputProps }), maxLengthCounter === 'remaining' && hasMaxLength && (jsxRuntime.jsx(MaxLengthCounter, { maxLength: maxLength, valueLength: valueLength, onClick: onClickCounter })), hasMaxLength && (jsxRuntime.jsx(HiddenAccessible.HiddenAccessible, { id: maxLengthDescribedByIdRef.current, isHidden: true, children: translations.formControl_maxLength({
138
155
  MAX_LENGTH: `${maxLength}`
139
156
  }) })), hasMaxLength && isFocused && (jsxRuntime.jsx(MaxLengthLiveRegion.MaxLengthLiveRegion, { maxLength: maxLength, valueLength: valueLength, testId: testId + '_remainingChars' }))] }));
140
157
  return (jsxRuntime.jsx(FormFieldContext.FormFieldContext.Provider, { value: formFieldContext, children: jsxRuntime.jsx(TextField.TextField, { mainContent: mainContent, columnSpan: columnSpan, compactUserAssistance: compactUserAssistance, inlineUserAssistance: inlineUserAssistance, onBlur: focusProps?.onFocusOut, onFocus: focusProps?.onFocusIn, mainFieldRef: anchorRef, resize: resize, testId: testId, ...textFieldProps, ...fieldLabelProps }) }));
141
158
  });
142
159
 
160
+ exports.MaxLengthCounter = MaxLengthCounter;
143
161
  exports.TextArea = TextArea;
144
- //# sourceMappingURL=TextArea-b2646d51.js.map
162
+ //# sourceMappingURL=TextArea-aff8b46e.js.map