@oracle/oraclejet-preact 14.1.10 → 14.1.11

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 (1219) hide show
  1. package/amd/Badge-8457dd3c.js +2 -0
  2. package/amd/{Badge-cee718c2.js.map → Badge-8457dd3c.js.map} +1 -1
  3. package/amd/BaseButton-66791a44.js +2 -0
  4. package/amd/{BaseButton-21f35d61.js.map → BaseButton-66791a44.js.map} +1 -1
  5. package/amd/Button-58691145.js +2 -0
  6. package/amd/{Button-9e2b5706.js.map → Button-58691145.js.map} +1 -1
  7. package/amd/Chip-a9c94554.js +2 -0
  8. package/amd/{Chip-0ffb2726.js.map → Chip-a9c94554.js.map} +1 -1
  9. package/amd/{ClearIcon-17f117c0.js → ClearIcon-5bb5b0bc.js} +2 -2
  10. package/amd/{ClearIcon-17f117c0.js.map → ClearIcon-5bb5b0bc.js.map} +1 -1
  11. package/amd/{Collection-937ee8ba.js → Collection-cbdbf449.js} +1 -1
  12. package/amd/{Collection-937ee8ba.js.map → Collection-cbdbf449.js.map} +1 -1
  13. package/amd/ComponentMessage-5d0215b0.js +2 -0
  14. package/amd/{ComponentMessage-3fae5a5b.js.map → ComponentMessage-5d0215b0.js.map} +1 -1
  15. package/amd/ComponentMessageContainer-92d583aa.js +2 -0
  16. package/amd/{ComponentMessageContainer-2130cdd7.js.map → ComponentMessageContainer-92d583aa.js.map} +1 -1
  17. package/amd/{Divider-c177794c.js → Divider-807686bf.js} +2 -2
  18. package/amd/{Divider-c177794c.js.map → Divider-807686bf.js.map} +1 -1
  19. package/amd/{FilePicker-29e7242f.js → FilePicker-ee9a8ecc.js} +2 -2
  20. package/amd/{FilePicker-29e7242f.js.map → FilePicker-ee9a8ecc.js.map} +1 -1
  21. package/amd/Flex-d69d5143.js +2 -0
  22. package/amd/{Flex-343c337e.js.map → Flex-d69d5143.js.map} +1 -1
  23. package/amd/{Floating-f251f4e6.js → Floating-370df48b.js} +2 -2
  24. package/amd/{Floating-f251f4e6.js.map → Floating-370df48b.js.map} +1 -1
  25. package/amd/FocusTrap-29ad6889.js +2 -0
  26. package/amd/{FocusTrap-3123561d.js.map → FocusTrap-29ad6889.js.map} +1 -1
  27. package/amd/FormControlUtils-37cdc68e.js +2 -0
  28. package/amd/{FormControlUtils-3c0aac96.js.map → FormControlUtils-37cdc68e.js.map} +1 -1
  29. package/amd/Heading-a87fa70b.js +2 -0
  30. package/amd/{Heading-c1db732f.js.map → Heading-a87fa70b.js.map} +1 -1
  31. package/amd/HiddenAccessible-b5a8bea7.js +2 -0
  32. package/amd/{HiddenAccessible-c1b8ec8e.js.map → HiddenAccessible-b5a8bea7.js.map} +1 -1
  33. package/amd/HighlightText-305dd4f6.js +2 -0
  34. package/amd/{HighlightText-cc2d6b7d.js.map → HighlightText-305dd4f6.js.map} +1 -1
  35. package/amd/Icon-1e1b346a.js +2 -0
  36. package/amd/{Icon-597b4544.js.map → Icon-1e1b346a.js.map} +1 -1
  37. package/amd/Indexer-97c550c1.js +2 -0
  38. package/amd/{Indexer-49249ca7.js.map → Indexer-97c550c1.js.map} +1 -1
  39. package/amd/InlineHelpSource-62724071.js +2 -0
  40. package/amd/{InlineHelpSource-466d3759.js.map → InlineHelpSource-62724071.js.map} +1 -1
  41. package/amd/Link-1d36664b.js +2 -0
  42. package/amd/{Link-a1200bb1.js.map → Link-1d36664b.js.map} +1 -1
  43. package/amd/List-25e3fc29.js +2 -0
  44. package/amd/{List-6a963297.js.map → List-25e3fc29.js.map} +1 -1
  45. package/amd/ListItemTextLayout-b3a66612.js +2 -0
  46. package/amd/{ListItemTextLayout-998eec81.js.map → ListItemTextLayout-b3a66612.js.map} +1 -1
  47. package/amd/{ListView-02b66ff8.js → ListView-30db9ca3.js} +2 -2
  48. package/amd/{ListView-02b66ff8.js.map → ListView-30db9ca3.js.map} +1 -1
  49. package/amd/{LoadMoreCollection-62a53e76.js → LoadMoreCollection-655042f1.js} +2 -2
  50. package/amd/{LoadMoreCollection-62a53e76.js.map → LoadMoreCollection-655042f1.js.map} +1 -1
  51. package/amd/Menu-3a02cd41.js +2 -0
  52. package/amd/{Menu-1d0186bf.js.map → Menu-3a02cd41.js.map} +1 -1
  53. package/amd/MenuDivider-8e5a1a9b.js +2 -0
  54. package/amd/{MenuDivider-7edd8ac2.js.map → MenuDivider-8e5a1a9b.js.map} +1 -1
  55. package/amd/MenuItem-b7f3e53d.js +2 -0
  56. package/amd/{MenuItem-077784e6.js.map → MenuItem-b7f3e53d.js.map} +1 -1
  57. package/amd/{Message.types-84dcb531.js → Message.types-a06c10b7.js} +1 -1
  58. package/amd/{Message.types-84dcb531.js.map → Message.types-a06c10b7.js.map} +1 -1
  59. package/amd/MessageCloseButton-be433526.js +2 -0
  60. package/amd/{MessageCloseButton-2ab50565.js.map → MessageCloseButton-be433526.js.map} +1 -1
  61. package/amd/MessageDetail-5875cf97.js +2 -0
  62. package/amd/{MessageDetail-c3d3a0cf.js.map → MessageDetail-5875cf97.js.map} +1 -1
  63. package/amd/{MessageFormattingUtils-a178900f.js → MessageFormattingUtils-c8700622.js} +2 -2
  64. package/amd/{MessageFormattingUtils-a178900f.js.map → MessageFormattingUtils-c8700622.js.map} +1 -1
  65. package/amd/MessageLayer-8d716148.js +2 -0
  66. package/amd/{MessageLayer-a6a7abcf.js.map → MessageLayer-8d716148.js.map} +1 -1
  67. package/amd/MessageStartIcon-ae539709.js +2 -0
  68. package/amd/{MessageStartIcon-3d36c660.js.map → MessageStartIcon-ae539709.js.map} +1 -1
  69. package/amd/MessageSummary-069bc6d8.js +2 -0
  70. package/amd/{MessageSummary-a4283ef2.js.map → MessageSummary-069bc6d8.js.map} +1 -1
  71. package/amd/MessageTimestamp-5ac8675d.js +2 -0
  72. package/amd/{MessageTimestamp-e56a6681.js.map → MessageTimestamp-5ac8675d.js.map} +1 -1
  73. package/amd/{MessageToast-c6d596ce.js → MessageToast-13d63df0.js} +2 -2
  74. package/amd/{MessageToast-c6d596ce.js.map → MessageToast-13d63df0.js.map} +1 -1
  75. package/amd/{MessageUtils-a930918a.js → MessageUtils-3e15c456.js} +2 -2
  76. package/amd/{MessageUtils-a930918a.js.map → MessageUtils-3e15c456.js.map} +1 -1
  77. package/amd/{MessagesManager-4cf3413e.js → MessagesManager-8a75ac98.js} +2 -2
  78. package/amd/{MessagesManager-4cf3413e.js.map → MessagesManager-8a75ac98.js.map} +1 -1
  79. package/amd/MeterCircle-f5ca0ad6.js +2 -0
  80. package/amd/{MeterCircle-b06a457d.js.map → MeterCircle-f5ca0ad6.js.map} +1 -1
  81. package/amd/Modal-4d57ad53.js +2 -0
  82. package/amd/{Modal-eebbf595.js.map → Modal-4d57ad53.js.map} +1 -1
  83. package/amd/{NumberInputText-0b71cdfd.js → NumberInputText-b58827bb.js} +2 -2
  84. package/amd/{NumberInputText-0b71cdfd.js.map → NumberInputText-b58827bb.js.map} +1 -1
  85. package/amd/PRIVATE_Collection/__tests__/Collection.spec.js +1 -1
  86. package/amd/PRIVATE_Collection.js +1 -1
  87. package/amd/PRIVATE_List/__tests__/List.spec.js +1 -1
  88. package/amd/PRIVATE_List.css +15 -15
  89. package/amd/PRIVATE_List.js +1 -1
  90. package/amd/PRIVATE_Message/__tests__/MessageCloseButton.spec.js +1 -1
  91. package/amd/PRIVATE_Message/__tests__/MessageDetail.spec.js +1 -1
  92. package/amd/PRIVATE_Message/__tests__/MessageFormattingUtils.spec.js +1 -1
  93. package/amd/PRIVATE_Message/__tests__/MessageStartIcon.spec.js +1 -1
  94. package/amd/PRIVATE_Message/__tests__/MessageSummary.spec.js +1 -1
  95. package/amd/PRIVATE_Message/__tests__/MessageTimestamp.spec.js +1 -1
  96. package/amd/PRIVATE_Message/__tests__/MessageUtils.spec.js +1 -1
  97. package/amd/PRIVATE_Message/__tests__/MessagesManager.spec.js +1 -1
  98. package/amd/PRIVATE_Message.css +27 -27
  99. package/amd/PRIVATE_Message.js +1 -1
  100. package/amd/PRIVATE_Message.js.map +1 -1
  101. package/amd/PRIVATE_MessageLayer/__tests__/MessageLayer.spec.js +1 -1
  102. package/amd/PRIVATE_MessageLayer.css +7 -7
  103. package/amd/PRIVATE_MessageLayer.js +1 -1
  104. package/amd/PRIVATE_Meter.js +1 -1
  105. package/amd/PRIVATE_SelectCommon.css +13 -13
  106. package/amd/PRIVATE_SelectCommon.js +1 -1
  107. package/amd/PRIVATE_SelectCommon.js.map +1 -1
  108. package/amd/PRIVATE_VirtualizedCollection/__tests__/VirtualizedCollection.spec.js +1 -1
  109. package/amd/PRIVATE_VirtualizedCollection.js +1 -1
  110. package/amd/ReadonlyTextFieldInput-745b0d92.js +2 -0
  111. package/amd/{ReadonlyTextFieldInput-ee580a50.js.map → ReadonlyTextFieldInput-745b0d92.js.map} +1 -1
  112. package/amd/SelectMenuItem-37a4572b.js +2 -0
  113. package/amd/{SelectMenuItem-7033aea6.js.map → SelectMenuItem-37a4572b.js.map} +1 -1
  114. package/amd/{SelectMultiple-1e654222.js → SelectMultiple-9dc55029.js} +2 -2
  115. package/amd/{SelectMultiple-1e654222.js.map → SelectMultiple-9dc55029.js.map} +1 -1
  116. package/amd/{SelectSingle-1af85560.js → SelectSingle-e69126a2.js} +2 -2
  117. package/amd/{SelectSingle-1af85560.js.map → SelectSingle-e69126a2.js.map} +1 -1
  118. package/amd/Skeleton-f3ee6c8a.js +2 -0
  119. package/amd/{Skeleton-82005513.js.map → Skeleton-f3ee6c8a.js.map} +1 -1
  120. package/amd/{Spacer-a798f8d0.js → Spacer-506f3bcc.js} +2 -2
  121. package/amd/{Spacer-a798f8d0.js.map → Spacer-506f3bcc.js.map} +1 -1
  122. package/amd/SplitMenuButton-409fa991.js +2 -0
  123. package/amd/{SplitMenuButton-24a8bc3e.js.map → SplitMenuButton-409fa991.js.map} +1 -1
  124. package/amd/Subheading-8c805938.js +2 -0
  125. package/amd/{Subheading-9ed4bf87.js.map → Subheading-8c805938.js.map} +1 -1
  126. package/amd/Text-22098c3b.js +2 -0
  127. package/amd/{Text-414830df.js.map → Text-22098c3b.js.map} +1 -1
  128. package/amd/{TextArea-5b0671f9.js → TextArea-411a7801.js} +2 -2
  129. package/amd/{TextArea-5b0671f9.js.map → TextArea-411a7801.js.map} +1 -1
  130. package/amd/{TextAreaAutosize-ed0589cf.js → TextAreaAutosize-9f825781.js} +2 -2
  131. package/amd/{TextAreaAutosize-ed0589cf.js.map → TextAreaAutosize-9f825781.js.map} +1 -1
  132. package/amd/TextFieldInput-ead5bb20.js +2 -0
  133. package/amd/{TextFieldInput-57f2d560.js.map → TextFieldInput-ead5bb20.js.map} +1 -1
  134. package/amd/UNSAFE_AspectRatio.css +1 -1
  135. package/amd/UNSAFE_AspectRatio.js +1 -1
  136. package/amd/UNSAFE_Avatar/__tests__/Avatar.spec.js +1 -1
  137. package/amd/UNSAFE_Avatar.css +8 -8
  138. package/amd/UNSAFE_Avatar.js +1 -1
  139. package/amd/UNSAFE_Avatar.js.map +1 -1
  140. package/amd/UNSAFE_Badge/__tests__/Badge.spec.js +1 -1
  141. package/amd/UNSAFE_Badge.css +13 -13
  142. package/amd/UNSAFE_Badge.js +1 -1
  143. package/amd/UNSAFE_BaseButton/__tests__/BaseButton.spec.js +1 -1
  144. package/amd/UNSAFE_BaseButton.css +15 -15
  145. package/amd/UNSAFE_BaseButton.js +1 -1
  146. package/amd/UNSAFE_Button/__tests__/Button.spec.js +1 -1
  147. package/amd/UNSAFE_Button.css +7 -7
  148. package/amd/UNSAFE_Button.js +1 -1
  149. package/amd/UNSAFE_Center.js +1 -1
  150. package/amd/UNSAFE_Chip/__tests__/Chip.spec.js +1 -1
  151. package/amd/UNSAFE_Chip.css +7 -7
  152. package/amd/UNSAFE_Chip.js +1 -1
  153. package/amd/UNSAFE_Collapsible.css +8 -8
  154. package/amd/UNSAFE_Collapsible.js +1 -1
  155. package/amd/UNSAFE_Collapsible.js.map +1 -1
  156. package/amd/UNSAFE_ComponentMessage/__tests__/ComponentMessage.spec.js +1 -1
  157. package/amd/UNSAFE_ComponentMessage/__tests__/ComponentMessageContainer.spec.js +1 -1
  158. package/amd/UNSAFE_ComponentMessage.css +2 -2
  159. package/amd/UNSAFE_ComponentMessage.js +1 -1
  160. package/amd/UNSAFE_Divider/__tests__/Divider.spec.js +1 -1
  161. package/amd/UNSAFE_Divider.css +1 -1
  162. package/amd/UNSAFE_Divider.js +1 -1
  163. package/amd/UNSAFE_FilePicker/__tests__/FilePicker.spec.js +1 -1
  164. package/amd/UNSAFE_FilePicker.css +6 -6
  165. package/amd/UNSAFE_FilePicker.js +1 -1
  166. package/amd/UNSAFE_Flex/__tests__/Flex.spec.js +1 -1
  167. package/amd/UNSAFE_Flex.css +2 -2
  168. package/amd/UNSAFE_Flex.js +1 -1
  169. package/amd/UNSAFE_Floating/__tests__/Floating.spec.js +1 -1
  170. package/amd/UNSAFE_Floating.js +1 -1
  171. package/amd/UNSAFE_FocusTrap/__tests__/FocusTrap.spec.js +1 -1
  172. package/amd/UNSAFE_FocusTrap.css +2 -2
  173. package/amd/UNSAFE_FocusTrap.js +1 -1
  174. package/amd/UNSAFE_Grid.css +1 -1
  175. package/amd/UNSAFE_Grid.js +1 -1
  176. package/amd/UNSAFE_Grid.js.map +1 -1
  177. package/amd/UNSAFE_Heading/__test__/Heading.spec.js +1 -1
  178. package/amd/UNSAFE_Heading.css +9 -9
  179. package/amd/UNSAFE_Heading.js +1 -1
  180. package/amd/UNSAFE_HiddenAccessible/__tests__/HiddenAccessible.spec.js +1 -1
  181. package/amd/UNSAFE_HiddenAccessible.css +1 -1
  182. package/amd/UNSAFE_HiddenAccessible.js +1 -1
  183. package/amd/UNSAFE_HighlightText/__tests__/HighlightText.spec.js +1 -1
  184. package/amd/UNSAFE_HighlightText.css +1 -1
  185. package/amd/UNSAFE_HighlightText.js +1 -1
  186. package/amd/UNSAFE_Icon/__tests__/Icon.spec.js +1 -1
  187. package/amd/UNSAFE_Icon/__tests__/Icons.spec.js +1 -1
  188. package/amd/UNSAFE_Icon.css +8 -8
  189. package/amd/UNSAFE_Icon.js +1 -1
  190. package/amd/UNSAFE_Icons.js +1 -1
  191. package/amd/UNSAFE_Indexer/__tests__/Indexer.spec.js +1 -1
  192. package/amd/UNSAFE_Indexer.css +7 -7
  193. package/amd/UNSAFE_Indexer.js +1 -1
  194. package/amd/UNSAFE_InputPassword/__tests__/InputPassword.spec.js +1 -1
  195. package/amd/UNSAFE_InputPassword.css +1 -1
  196. package/amd/UNSAFE_InputPassword.js +1 -1
  197. package/amd/UNSAFE_InputPassword.js.map +1 -1
  198. package/amd/UNSAFE_InputText.css +1 -1
  199. package/amd/UNSAFE_InputText.js +1 -1
  200. package/amd/UNSAFE_Label.css +13 -13
  201. package/amd/UNSAFE_Label.js +1 -1
  202. package/amd/UNSAFE_Label.js.map +1 -1
  203. package/amd/UNSAFE_LabelValueLayout.css +9 -9
  204. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  205. package/amd/UNSAFE_LabelValueLayout.js.map +1 -1
  206. package/amd/UNSAFE_Link/__tests__/Link.spec.js +1 -1
  207. package/amd/UNSAFE_Link.css +5 -5
  208. package/amd/UNSAFE_Link.js +1 -1
  209. package/amd/UNSAFE_ListItemLayout/__tests__/ListItemLayout.spec.js +1 -1
  210. package/amd/UNSAFE_ListItemLayout.css +9 -9
  211. package/amd/UNSAFE_ListItemLayout.js +1 -1
  212. package/amd/UNSAFE_ListView/__tests__/ListView.spec.js +1 -1
  213. package/amd/UNSAFE_ListView/__tests__/ListViewTabbableMode.spec.js +1 -1
  214. package/amd/UNSAFE_ListView.js +1 -1
  215. package/amd/UNSAFE_LiveRegion.css +1 -1
  216. package/amd/UNSAFE_LiveRegion.js +1 -1
  217. package/amd/UNSAFE_LoadMoreCollection/__tests__/LoadMoreCollection.spec.js +1 -1
  218. package/amd/UNSAFE_LoadMoreCollection.js +1 -1
  219. package/amd/UNSAFE_Menu/__tests__/Menu.spec.js +1 -1
  220. package/amd/UNSAFE_Menu/__tests__/MenuItem.spec.js +1 -1
  221. package/amd/UNSAFE_Menu/__tests__/SelectMenuItem.spec.js +1 -1
  222. package/amd/UNSAFE_Menu/__tests__/SelectMultipleMenuGroup.spec.js +1 -1
  223. package/amd/UNSAFE_Menu/__tests__/SelectSingleMenuGroup.spec.js +1 -1
  224. package/amd/UNSAFE_Menu.css +23 -23
  225. package/amd/UNSAFE_Menu.js +1 -1
  226. package/amd/UNSAFE_MessageBanner.js +1 -1
  227. package/amd/UNSAFE_MessageToast/__tests__/MessageToast.spec.js +1 -1
  228. package/amd/UNSAFE_MessageToast.css +1 -1
  229. package/amd/UNSAFE_MessageToast.js +1 -1
  230. package/amd/UNSAFE_MeterBar/__tests__/MeterBar.spec.js +1 -1
  231. package/amd/UNSAFE_MeterBar.css +44 -44
  232. package/amd/UNSAFE_MeterBar.js +1 -1
  233. package/amd/UNSAFE_MeterBar.js.map +1 -1
  234. package/amd/UNSAFE_MeterCircle/__tests__/MeterCircle.spec.js +1 -1
  235. package/amd/UNSAFE_MeterCircle.css +46 -46
  236. package/amd/UNSAFE_MeterCircle.js +1 -1
  237. package/amd/UNSAFE_Modal/__tests__/Modal.spec.js +1 -1
  238. package/amd/UNSAFE_Modal.css +3 -3
  239. package/amd/UNSAFE_Modal.js +1 -1
  240. package/amd/UNSAFE_NumberInputText/__tests__/NumberInputText.spec.js +1 -1
  241. package/amd/UNSAFE_NumberInputText.js +1 -1
  242. package/amd/UNSAFE_PrefixSuffix.css +8 -8
  243. package/amd/UNSAFE_PrefixSuffix.js +1 -1
  244. package/amd/UNSAFE_PrefixSuffix.js.map +1 -1
  245. package/amd/UNSAFE_ProgressBar/__tests__/ProgressBar.spec.js +1 -1
  246. package/amd/UNSAFE_ProgressBar.css +6 -6
  247. package/amd/UNSAFE_ProgressBar.js +1 -1
  248. package/amd/UNSAFE_ProgressBar.js.map +1 -1
  249. package/amd/UNSAFE_ProgressCircle/__tests__/ProgressCircle.spec.js +1 -1
  250. package/amd/UNSAFE_ProgressCircle.css +6 -6
  251. package/amd/UNSAFE_ProgressCircle.js +1 -1
  252. package/amd/UNSAFE_ProgressCircle.js.map +1 -1
  253. package/amd/UNSAFE_RatingGauge/__tests__/RatingGauge.spec.js +1 -1
  254. package/amd/UNSAFE_RatingGauge.css +20 -20
  255. package/amd/UNSAFE_RatingGauge.js +1 -1
  256. package/amd/UNSAFE_RatingGauge.js.map +1 -1
  257. package/amd/UNSAFE_SelectMultiple/__tests__/SelectMultiple.spec.js +1 -1
  258. package/amd/UNSAFE_SelectMultiple.css +1 -1
  259. package/amd/UNSAFE_SelectMultiple.js +1 -1
  260. package/amd/UNSAFE_SelectSingle/__tests__/SelectSingle.spec.js +1 -1
  261. package/amd/UNSAFE_SelectSingle.js +1 -1
  262. package/amd/UNSAFE_Selector.css +5 -5
  263. package/amd/UNSAFE_Selector.js +1 -1
  264. package/amd/UNSAFE_Selector.js.map +1 -1
  265. package/amd/UNSAFE_Skeleton/__tests__/Skeleton.spec.js +1 -1
  266. package/amd/UNSAFE_Skeleton.css +1 -1
  267. package/amd/UNSAFE_Skeleton.js +1 -1
  268. package/amd/UNSAFE_Spacer/__tests__/Spacer.spec.js +1 -1
  269. package/amd/UNSAFE_Spacer.js +1 -1
  270. package/amd/UNSAFE_SplitMenuButton/__tests__/SplitMenuButton.spec.js +1 -1
  271. package/amd/UNSAFE_SplitMenuButton.css +5 -5
  272. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  273. package/amd/UNSAFE_Subheading/__test__/Subheading.spec.js +1 -1
  274. package/amd/UNSAFE_Subheading.css +8 -8
  275. package/amd/UNSAFE_Subheading.js +1 -1
  276. package/amd/UNSAFE_Text/__tests__/Text.spec.js +1 -1
  277. package/amd/UNSAFE_Text.css +25 -25
  278. package/amd/UNSAFE_Text.js +1 -1
  279. package/amd/UNSAFE_TextArea/__tests__/TextArea.spec.js +1 -1
  280. package/amd/UNSAFE_TextArea.css +3 -3
  281. package/amd/UNSAFE_TextArea.js +1 -1
  282. package/amd/UNSAFE_TextAreaAutosize/__tests__/TextAreaAutosize.spec.js +1 -1
  283. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  284. package/amd/UNSAFE_TextField/__tests__/ReadonlyTextFieldInput.spec.js +1 -1
  285. package/amd/UNSAFE_TextField/__tests__/TextFieldInput.spec.js +1 -1
  286. package/amd/UNSAFE_TextField.css +58 -58
  287. package/amd/UNSAFE_TextField.js +1 -1
  288. package/amd/UNSAFE_TextField.js.map +1 -1
  289. package/amd/UNSAFE_ThemedIcons.js +1 -1
  290. package/amd/UNSAFE_UserAssistance/__tests__/InlineHelpSource.spec.js +1 -1
  291. package/amd/UNSAFE_UserAssistance.css +8 -8
  292. package/amd/UNSAFE_UserAssistance.js +1 -1
  293. package/amd/UNSAFE_UserAssistance.js.map +1 -1
  294. package/amd/UNSAFE_View/__tests__/View.spec.js +1 -1
  295. package/amd/UNSAFE_View.js +1 -1
  296. package/amd/UNSAFE_VirtualizedListView/__tests__/VirtualizedListView.spec.js +1 -1
  297. package/amd/UNSAFE_VirtualizedListView/__tests__/VirtualizedListViewTabbableMode.spec.js +1 -1
  298. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  299. package/amd/{VirtualizedCollection-fa7f5bb6.js → VirtualizedCollection-12300754.js} +2 -2
  300. package/amd/{VirtualizedCollection-fa7f5bb6.js.map → VirtualizedCollection-12300754.js.map} +1 -1
  301. package/amd/{VirtualizedListView-64a72b62.js → VirtualizedListView-612c968d.js} +2 -2
  302. package/amd/{VirtualizedListView-64a72b62.js.map → VirtualizedListView-612c968d.js.map} +1 -1
  303. package/amd/__tests__/FormControls/FormControlAria.spec.js +1 -1
  304. package/amd/__tests__/FormControls/FormControlClearIcon.spec.js +1 -1
  305. package/amd/__tests__/FormControls/FormControlCommit.spec.js +1 -1
  306. package/amd/__tests__/FormControls/FormControlPrefixSuffix.spec.js +1 -1
  307. package/amd/{_curry1-1865bdf8.js → _curry1-8db40d07.js} +1 -1
  308. package/amd/{_curry1-1865bdf8.js.map → _curry1-8db40d07.js.map} +1 -1
  309. package/amd/{_curry2-c82c3af2.js → _curry2-cd63f2e8.js} +2 -2
  310. package/amd/{_curry2-c82c3af2.js.map → _curry2-cd63f2e8.js.map} +1 -1
  311. package/amd/_curry3-4f75464d.js +2 -0
  312. package/amd/{_curry3-73b7a4f7.js.map → _curry3-4f75464d.js.map} +1 -1
  313. package/amd/_has-de432e95.js +2 -0
  314. package/amd/{_has-af025a25.js.map → _has-de432e95.js.map} +1 -1
  315. package/amd/{classNames-f9dd69a8.js → classNames-cbd28834.js} +1 -1
  316. package/amd/{classNames-f9dd69a8.js.map → classNames-cbd28834.js.map} +1 -1
  317. package/amd/{clientHints-0a14d5d8.js → clientHints-fd549a03.js} +1 -1
  318. package/amd/{clientHints-0a14d5d8.js.map → clientHints-fd549a03.js.map} +1 -1
  319. package/amd/flexbox-5392cdab.js +2 -0
  320. package/amd/{flexbox-83e878b1.js.map → flexbox-5392cdab.js.map} +1 -1
  321. package/amd/flexitem-666af748.js +2 -0
  322. package/amd/{flexitem-c406a7bb.js.map → flexitem-666af748.js.map} +1 -1
  323. package/amd/hooks/PRIVATE_useDvtMeterEvents.js +1 -1
  324. package/amd/hooks/PRIVATE_useSingleSelection.js +1 -1
  325. package/amd/hooks/UNSAFE_useAnimation/__tests__/useAnimation.spec.js +1 -1
  326. package/amd/hooks/UNSAFE_useAnimation.js +1 -1
  327. package/amd/hooks/UNSAFE_useFloating.js +1 -1
  328. package/amd/hooks/UNSAFE_useFocusWithin/__tests__/useFocusWithin.spec.js +1 -1
  329. package/amd/hooks/UNSAFE_useFocusWithin.js +1 -1
  330. package/amd/hooks/UNSAFE_useFocusableTextField.js +1 -1
  331. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  332. package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
  333. package/amd/hooks/UNSAFE_useTooltip.css +4 -4
  334. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  335. package/amd/hooks/UNSAFE_useTooltip.js.map +1 -1
  336. package/amd/{index-c61f0d48.js → index-10802134.js} +1 -1
  337. package/amd/{index-c61f0d48.js.map → index-10802134.js.map} +1 -1
  338. package/amd/{index-5dbc066a.js → index-3c763990.js} +2 -2
  339. package/amd/{index-5dbc066a.js.map → index-3c763990.js.map} +1 -1
  340. package/amd/{index-efbc9ba1.js → index-f98775f6.js} +2 -2
  341. package/amd/{index-efbc9ba1.js.map → index-f98775f6.js.map} +1 -1
  342. package/amd/keys-06a9557b.js +2 -0
  343. package/amd/{keys-7dc8fa94.js.map → keys-06a9557b.js.map} +1 -1
  344. package/amd/{listViewSelectionTests-b588b493.js → listViewSelectionTests-895872ae.js} +2 -2
  345. package/amd/{listViewSelectionTests-b588b493.js.map → listViewSelectionTests-895872ae.js.map} +1 -1
  346. package/amd/{listViewTabbableModeTests-a5b9db5e.js → listViewTabbableModeTests-da806f53.js} +2 -2
  347. package/amd/{listViewTabbableModeTests-a5b9db5e.js.map → listViewTabbableModeTests-da806f53.js.map} +1 -1
  348. package/amd/{listViewTestFixtures-1a67361f.js → listViewTestFixtures-046d8dbf.js} +1 -1
  349. package/amd/{listViewTestFixtures-1a67361f.js.map → listViewTestFixtures-046d8dbf.js.map} +1 -1
  350. package/amd/{menuTestsUtils-b7516a54.js → menuTestsUtils-e7f7b2e8.js} +1 -1
  351. package/amd/{menuTestsUtils-b7516a54.js.map → menuTestsUtils-e7f7b2e8.js.map} +1 -1
  352. package/amd/{stringUtils-c7da3cbf.js → stringUtils-3710bb60.js} +1 -1
  353. package/amd/{stringUtils-c7da3cbf.js.map → stringUtils-3710bb60.js.map} +1 -1
  354. package/amd/{testHelpers-1c035a39.js → testHelpers-3be868e9.js} +1 -1
  355. package/amd/{testHelpers-1c035a39.js.map → testHelpers-3be868e9.js.map} +1 -1
  356. package/amd/{tslib.es6-d809b4dd.js → tslib.es6-1f40628c.js} +1 -1
  357. package/amd/{tslib.es6-d809b4dd.js.map → tslib.es6-1f40628c.js.map} +1 -1
  358. package/amd/{useAnimation-cfb8d533.js → useAnimation-e954368d.js} +2 -2
  359. package/amd/{useAnimation-cfb8d533.js.map → useAnimation-e954368d.js.map} +1 -1
  360. package/amd/{useFocusWithin-369336f7.js → useFocusWithin-b0df8a7d.js} +1 -1
  361. package/amd/{useFocusWithin-369336f7.js.map → useFocusWithin-b0df8a7d.js.map} +1 -1
  362. package/amd/{useModal-f400de59.js → useModal-94f3fee6.js} +1 -1
  363. package/amd/{useModal-f400de59.js.map → useModal-94f3fee6.js.map} +1 -1
  364. package/amd/{useSingleSelection-bdc50b49.js → useSingleSelection-f2e0b452.js} +1 -1
  365. package/amd/{useSingleSelection-bdc50b49.js.map → useSingleSelection-f2e0b452.js.map} +1 -1
  366. package/amd/utils/PRIVATE_clientHints/__tests__/clientHints.spec.js +1 -1
  367. package/amd/utils/PRIVATE_clientHints.js +1 -1
  368. package/amd/utils/PRIVATE_tabbableUtils.js +1 -1
  369. package/amd/utils/UNSAFE_classNames/classNames.spec.js +1 -1
  370. package/amd/utils/UNSAFE_classNames.js +1 -1
  371. package/amd/utils/UNSAFE_interpolations/boxalignment.css +15 -15
  372. package/amd/utils/UNSAFE_interpolations/boxalignment.js +1 -1
  373. package/amd/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  374. package/amd/utils/UNSAFE_interpolations/dimensions.js +1 -1
  375. package/amd/utils/UNSAFE_interpolations/flexbox/flexbox.spec.js +1 -1
  376. package/amd/utils/UNSAFE_interpolations/flexbox.css +7 -7
  377. package/amd/utils/UNSAFE_interpolations/flexbox.js +1 -1
  378. package/amd/utils/UNSAFE_interpolations/flexitem/flexitem.spec.js +1 -1
  379. package/amd/utils/UNSAFE_interpolations/flexitem.css +7 -7
  380. package/amd/utils/UNSAFE_interpolations/flexitem.js +1 -1
  381. package/amd/utils/UNSAFE_interpolations/text.css +3 -3
  382. package/amd/utils/UNSAFE_interpolations/text.js +1 -1
  383. package/amd/utils/UNSAFE_interpolations/text.js.map +1 -1
  384. package/amd/utils/UNSAFE_logger.js +1 -1
  385. package/amd/utils/UNSAFE_mergeInterpolations.js +1 -1
  386. package/amd/utils/UNSAFE_stringUtils/stringUtils.spec.js +1 -1
  387. package/amd/utils/UNSAFE_stringUtils.js +1 -1
  388. package/amd/utils/UNSAFE_units.js +1 -1
  389. package/cjs/{Badge-ecbb8eb9.js → Badge-6a02fa20.js} +16 -16
  390. package/cjs/{Badge-ecbb8eb9.js.map → Badge-6a02fa20.js.map} +1 -1
  391. package/cjs/{BaseButton-f96d3e90.js → BaseButton-d8cf09e7.js} +20 -20
  392. package/cjs/{BaseButton-f96d3e90.js.map → BaseButton-d8cf09e7.js.map} +1 -1
  393. package/cjs/{Button-84ec0ef7.js → Button-a8c8f53e.js} +12 -12
  394. package/cjs/{Button-84ec0ef7.js.map → Button-a8c8f53e.js.map} +1 -1
  395. package/cjs/{Chip-f01f3300.js → Chip-3d28702d.js} +10 -10
  396. package/cjs/{Chip-f01f3300.js.map → Chip-3d28702d.js.map} +1 -1
  397. package/cjs/{ClearIcon-7807c85a.js → ClearIcon-52ca475a.js} +3 -3
  398. package/cjs/{ClearIcon-7807c85a.js.map → ClearIcon-52ca475a.js.map} +1 -1
  399. package/cjs/{Collection-8aa68a73.js → Collection-def5d75d.js} +2 -2
  400. package/cjs/{Collection-8aa68a73.js.map → Collection-def5d75d.js.map} +1 -1
  401. package/cjs/{ComponentMessage-6ee98d9f.js → ComponentMessage-2c3cf4bc.js} +8 -8
  402. package/cjs/{ComponentMessage-6ee98d9f.js.map → ComponentMessage-2c3cf4bc.js.map} +1 -1
  403. package/cjs/{ComponentMessageContainer-c37e1886.js → ComponentMessageContainer-3e0916cc.js} +5 -5
  404. package/cjs/{ComponentMessageContainer-c37e1886.js.map → ComponentMessageContainer-3e0916cc.js.map} +1 -1
  405. package/cjs/{Divider-cc210fcf.js → Divider-fda2d20e.js} +3 -3
  406. package/cjs/{Divider-cc210fcf.js.map → Divider-fda2d20e.js.map} +1 -1
  407. package/cjs/{FilePicker-f1b62bcd.js → FilePicker-8085e0a0.js} +14 -14
  408. package/cjs/{FilePicker-f1b62bcd.js.map → FilePicker-8085e0a0.js.map} +1 -1
  409. package/cjs/{Flex-0af6eb9c.js → Flex-a247814a.js} +8 -8
  410. package/cjs/{Flex-0af6eb9c.js.map → Flex-a247814a.js.map} +1 -1
  411. package/cjs/{Floating-904faa39.js → Floating-4ed38095.js} +3 -3
  412. package/cjs/{Floating-904faa39.js.map → Floating-4ed38095.js.map} +1 -1
  413. package/cjs/{FocusTrap-b3a67171.js → FocusTrap-032ff422.js} +5 -5
  414. package/cjs/{FocusTrap-b3a67171.js.map → FocusTrap-032ff422.js.map} +1 -1
  415. package/cjs/{FormControlUtils-12894392.js → FormControlUtils-b4c41f80.js} +5 -5
  416. package/cjs/{FormControlUtils-12894392.js.map → FormControlUtils-b4c41f80.js.map} +1 -1
  417. package/cjs/{Heading-aedb860d.js → Heading-0c760337.js} +13 -13
  418. package/cjs/{Heading-aedb860d.js.map → Heading-0c760337.js.map} +1 -1
  419. package/cjs/{HiddenAccessible-77b7a6c6.js → HiddenAccessible-415c0922.js} +3 -3
  420. package/cjs/{HiddenAccessible-77b7a6c6.js.map → HiddenAccessible-415c0922.js.map} +1 -1
  421. package/cjs/{HighlightText-b271c954.js → HighlightText-9514d6e3.js} +3 -3
  422. package/cjs/{HighlightText-b271c954.js.map → HighlightText-9514d6e3.js.map} +1 -1
  423. package/cjs/{Icon-f77b5d53.js → Icon-3961ec4a.js} +11 -11
  424. package/cjs/{Icon-f77b5d53.js.map → Icon-3961ec4a.js.map} +1 -1
  425. package/cjs/{Indexer-e1fbb014.js → Indexer-08442b1b.js} +16 -16
  426. package/cjs/{Indexer-e1fbb014.js.map → Indexer-08442b1b.js.map} +1 -1
  427. package/cjs/{InlineHelpSource-fc2946df.js → InlineHelpSource-cfbb050e.js} +3 -3
  428. package/cjs/{InlineHelpSource-fc2946df.js.map → InlineHelpSource-cfbb050e.js.map} +1 -1
  429. package/cjs/{Link-57700fe7.js → Link-552830f5.js} +8 -8
  430. package/cjs/{Link-57700fe7.js.map → Link-552830f5.js.map} +1 -1
  431. package/cjs/{List-ddb9f837.js → List-1a66784a.js} +23 -23
  432. package/cjs/{List-ddb9f837.js.map → List-1a66784a.js.map} +1 -1
  433. package/cjs/{ListItemTextLayout-093ad65f.js → ListItemTextLayout-87870f29.js} +13 -13
  434. package/cjs/{ListItemTextLayout-093ad65f.js.map → ListItemTextLayout-87870f29.js.map} +1 -1
  435. package/cjs/{ListView-25710e8a.js → ListView-6799577f.js} +3 -3
  436. package/cjs/{ListView-25710e8a.js.map → ListView-6799577f.js.map} +1 -1
  437. package/cjs/{LoadMoreCollection-9dd85521.js → LoadMoreCollection-9712be1e.js} +3 -3
  438. package/cjs/{LoadMoreCollection-9dd85521.js.map → LoadMoreCollection-9712be1e.js.map} +1 -1
  439. package/cjs/{Menu-36bab901.js → Menu-3ef2643a.js} +16 -16
  440. package/cjs/{Menu-36bab901.js.map → Menu-3ef2643a.js.map} +1 -1
  441. package/cjs/{MenuDivider-39c78cbf.js → MenuDivider-740336a1.js} +4 -4
  442. package/cjs/{MenuDivider-39c78cbf.js.map → MenuDivider-740336a1.js.map} +1 -1
  443. package/cjs/{MenuItem-62f058a4.js → MenuItem-8dfac89e.js} +19 -19
  444. package/cjs/{MenuItem-62f058a4.js.map → MenuItem-8dfac89e.js.map} +1 -1
  445. package/cjs/{Message.types-88e73145.js → Message.types-4da8a701.js} +2 -2
  446. package/cjs/{Message.types-88e73145.js.map → Message.types-4da8a701.js.map} +1 -1
  447. package/cjs/{MessageCloseButton-b8cfcc43.js → MessageCloseButton-4f8bd5a3.js} +9 -9
  448. package/cjs/{MessageCloseButton-b8cfcc43.js.map → MessageCloseButton-4f8bd5a3.js.map} +1 -1
  449. package/cjs/{MessageDetail-051f9e6b.js → MessageDetail-166ffcca.js} +7 -7
  450. package/cjs/{MessageDetail-051f9e6b.js.map → MessageDetail-166ffcca.js.map} +1 -1
  451. package/cjs/{MessageFormattingUtils-1ef9baec.js → MessageFormattingUtils-9c233eaf.js} +4 -4
  452. package/cjs/{MessageFormattingUtils-1ef9baec.js.map → MessageFormattingUtils-9c233eaf.js.map} +1 -1
  453. package/cjs/{MessageLayer-08db41db.js → MessageLayer-90227dc2.js} +11 -11
  454. package/cjs/{MessageLayer-08db41db.js.map → MessageLayer-90227dc2.js.map} +1 -1
  455. package/cjs/{MessageStartIcon-f236c25f.js → MessageStartIcon-2bec941c.js} +11 -11
  456. package/cjs/{MessageStartIcon-f236c25f.js.map → MessageStartIcon-2bec941c.js.map} +1 -1
  457. package/cjs/{MessageSummary-9e2dce96.js → MessageSummary-4997addd.js} +7 -7
  458. package/cjs/{MessageSummary-9e2dce96.js.map → MessageSummary-4997addd.js.map} +1 -1
  459. package/cjs/{MessageTimestamp-7987b6f0.js → MessageTimestamp-ff224a06.js} +5 -5
  460. package/cjs/{MessageTimestamp-7987b6f0.js.map → MessageTimestamp-ff224a06.js.map} +1 -1
  461. package/cjs/{MessageToast-d3d40483.js → MessageToast-cb0a0a0c.js} +9 -9
  462. package/cjs/{MessageToast-d3d40483.js.map → MessageToast-cb0a0a0c.js.map} +1 -1
  463. package/cjs/{MessageUtils-12584d30.js → MessageUtils-d5fee2af.js} +3 -3
  464. package/cjs/{MessageUtils-12584d30.js.map → MessageUtils-d5fee2af.js.map} +1 -1
  465. package/cjs/{MessagesManager-bb084f2a.js → MessagesManager-1dc2cb4a.js} +4 -4
  466. package/cjs/{MessagesManager-bb084f2a.js.map → MessagesManager-1dc2cb4a.js.map} +1 -1
  467. package/cjs/{MeterCircle-b126c12c.js → MeterCircle-1808bbfc.js} +50 -50
  468. package/cjs/{MeterCircle-b126c12c.js.map → MeterCircle-1808bbfc.js.map} +1 -1
  469. package/cjs/{Modal-6824a496.js → Modal-ed096b3e.js} +7 -7
  470. package/cjs/{Modal-6824a496.js.map → Modal-ed096b3e.js.map} +1 -1
  471. package/cjs/{NumberInputText-fca5f8d9.js → NumberInputText-d544459b.js} +7 -7
  472. package/cjs/{NumberInputText-fca5f8d9.js.map → NumberInputText-d544459b.js.map} +1 -1
  473. package/cjs/PRIVATE_Collection/__tests__/Collection.spec.js +2 -2
  474. package/cjs/PRIVATE_Collection.js +2 -2
  475. package/cjs/PRIVATE_List/__tests__/List.spec.js +24 -24
  476. package/cjs/PRIVATE_List.js +23 -23
  477. package/cjs/PRIVATE_Message/__tests__/MessageCloseButton.spec.js +17 -17
  478. package/cjs/PRIVATE_Message/__tests__/MessageDetail.spec.js +6 -6
  479. package/cjs/PRIVATE_Message/__tests__/MessageFormattingUtils.spec.js +4 -4
  480. package/cjs/PRIVATE_Message/__tests__/MessageStartIcon.spec.js +19 -19
  481. package/cjs/PRIVATE_Message/__tests__/MessageSummary.spec.js +3 -3
  482. package/cjs/PRIVATE_Message/__tests__/MessageTimestamp.spec.js +6 -6
  483. package/cjs/PRIVATE_Message/__tests__/MessageUtils.spec.js +7 -7
  484. package/cjs/PRIVATE_Message/__tests__/MessagesManager.spec.js +4 -4
  485. package/cjs/PRIVATE_Message.js +41 -41
  486. package/cjs/PRIVATE_Message.js.map +1 -1
  487. package/cjs/PRIVATE_MessageLayer/__tests__/MessageLayer.spec.js +12 -12
  488. package/cjs/PRIVATE_MessageLayer.js +12 -12
  489. package/cjs/PRIVATE_Meter.js +2 -2
  490. package/cjs/PRIVATE_SelectCommon.js +54 -54
  491. package/cjs/PRIVATE_SelectCommon.js.map +1 -1
  492. package/cjs/PRIVATE_TransitionGroup.js +1 -1
  493. package/cjs/PRIVATE_VirtualizedCollection/__tests__/VirtualizedCollection.spec.js +3 -3
  494. package/cjs/PRIVATE_VirtualizedCollection.js +3 -3
  495. package/cjs/{ReadonlyTextFieldInput-48131d00.js → ReadonlyTextFieldInput-738db812.js} +13 -13
  496. package/cjs/{ReadonlyTextFieldInput-48131d00.js.map → ReadonlyTextFieldInput-738db812.js.map} +1 -1
  497. package/cjs/{SelectMenuItem-56b08b29.js → SelectMenuItem-eebdb007.js} +5 -5
  498. package/cjs/{SelectMenuItem-56b08b29.js.map → SelectMenuItem-eebdb007.js.map} +1 -1
  499. package/cjs/{SelectMultiple-02df1d0a.js → SelectMultiple-f67d0fe1.js} +8 -8
  500. package/cjs/{SelectMultiple-02df1d0a.js.map → SelectMultiple-f67d0fe1.js.map} +1 -1
  501. package/cjs/{SelectSingle-2cf76a61.js → SelectSingle-5c4f9d01.js} +4 -4
  502. package/cjs/{SelectSingle-2cf76a61.js.map → SelectSingle-5c4f9d01.js.map} +1 -1
  503. package/cjs/{Skeleton-278525b6.js → Skeleton-e144df7d.js} +5 -5
  504. package/cjs/{Skeleton-278525b6.js.map → Skeleton-e144df7d.js.map} +1 -1
  505. package/cjs/{Spacer-1aebb745.js → Spacer-c78b602c.js} +4 -4
  506. package/cjs/{Spacer-1aebb745.js.map → Spacer-c78b602c.js.map} +1 -1
  507. package/cjs/{SplitMenuButton-37da4d36.js → SplitMenuButton-76ee61e5.js} +14 -14
  508. package/cjs/{SplitMenuButton-37da4d36.js.map → SplitMenuButton-76ee61e5.js.map} +1 -1
  509. package/cjs/{Subheading-2f651b4f.js → Subheading-d0cff36c.js} +11 -11
  510. package/cjs/{Subheading-2f651b4f.js.map → Subheading-d0cff36c.js.map} +1 -1
  511. package/cjs/{Text-86fe82ec.js → Text-c29ff72f.js} +28 -28
  512. package/cjs/{Text-86fe82ec.js.map → Text-c29ff72f.js.map} +1 -1
  513. package/cjs/{TextArea-caf5f43c.js → TextArea-87b653b7.js} +8 -8
  514. package/cjs/{TextArea-caf5f43c.js.map → TextArea-87b653b7.js.map} +1 -1
  515. package/cjs/{TextAreaAutosize-b0412c32.js → TextAreaAutosize-d3d3065b.js} +5 -5
  516. package/cjs/{TextAreaAutosize-b0412c32.js.map → TextAreaAutosize-d3d3065b.js.map} +1 -1
  517. package/cjs/{TextFieldInput-f51a6d2e.js → TextFieldInput-3d515c0c.js} +33 -33
  518. package/cjs/{TextFieldInput-f51a6d2e.js.map → TextFieldInput-3d515c0c.js.map} +1 -1
  519. package/cjs/UNSAFE_AspectRatio.js +8 -8
  520. package/cjs/UNSAFE_Avatar/__tests__/Avatar.spec.js +3 -3
  521. package/cjs/UNSAFE_Avatar.js +11 -11
  522. package/cjs/UNSAFE_Avatar.js.map +1 -1
  523. package/cjs/UNSAFE_Badge/__tests__/Badge.spec.js +3 -3
  524. package/cjs/UNSAFE_Badge.js +3 -3
  525. package/cjs/UNSAFE_BaseButton/__tests__/BaseButton.spec.js +9 -9
  526. package/cjs/UNSAFE_BaseButton.js +9 -9
  527. package/cjs/UNSAFE_Button/__tests__/Button.spec.js +10 -10
  528. package/cjs/UNSAFE_Button.js +10 -10
  529. package/cjs/UNSAFE_Center.js +11 -11
  530. package/cjs/UNSAFE_Chip/__tests__/Chip.spec.js +3 -3
  531. package/cjs/UNSAFE_Chip.js +3 -3
  532. package/cjs/UNSAFE_Collapsible.js +26 -26
  533. package/cjs/UNSAFE_Collapsible.js.map +1 -1
  534. package/cjs/UNSAFE_Collection.js +1 -1
  535. package/cjs/UNSAFE_ComponentMessage/__tests__/ComponentMessage.spec.js +32 -32
  536. package/cjs/UNSAFE_ComponentMessage/__tests__/ComponentMessageContainer.spec.js +33 -33
  537. package/cjs/UNSAFE_ComponentMessage.js +33 -33
  538. package/cjs/UNSAFE_Divider/__tests__/Divider.spec.js +7 -7
  539. package/cjs/UNSAFE_Divider.js +7 -7
  540. package/cjs/UNSAFE_EmptyList.js +1 -1
  541. package/cjs/UNSAFE_Environment/__tests__/Environment.spec.js +1 -1
  542. package/cjs/UNSAFE_Environment.js +1 -1
  543. package/cjs/UNSAFE_FilePicker/__tests__/FilePicker.spec.js +14 -14
  544. package/cjs/UNSAFE_FilePicker.js +14 -14
  545. package/cjs/UNSAFE_Flex/__tests__/Flex.spec.js +11 -11
  546. package/cjs/UNSAFE_Flex.js +11 -11
  547. package/cjs/UNSAFE_Floating/__tests__/Floating.spec.js +3 -3
  548. package/cjs/UNSAFE_Floating.js +3 -3
  549. package/cjs/UNSAFE_FocusTrap/__tests__/FocusTrap.spec.js +6 -6
  550. package/cjs/UNSAFE_FocusTrap.js +6 -6
  551. package/cjs/UNSAFE_Grid.js +9 -9
  552. package/cjs/UNSAFE_Grid.js.map +1 -1
  553. package/cjs/UNSAFE_Heading/__test__/Heading.spec.js +11 -11
  554. package/cjs/UNSAFE_Heading.js +9 -9
  555. package/cjs/UNSAFE_HiddenAccessible/__tests__/HiddenAccessible.spec.js +12 -12
  556. package/cjs/UNSAFE_HiddenAccessible.js +2 -2
  557. package/cjs/UNSAFE_HighlightText/__tests__/HighlightText.spec.js +2 -2
  558. package/cjs/UNSAFE_HighlightText.js +2 -2
  559. package/cjs/UNSAFE_Icon/__tests__/Icon.spec.js +8 -8
  560. package/cjs/UNSAFE_Icon/__tests__/Icons.spec.js +9 -9
  561. package/cjs/UNSAFE_Icon.js +7 -7
  562. package/cjs/UNSAFE_Icons.js +8 -8
  563. package/cjs/UNSAFE_Indexer/__tests__/Indexer.spec.js +16 -16
  564. package/cjs/UNSAFE_Indexer.js +16 -16
  565. package/cjs/UNSAFE_InputPassword/__tests__/InputPassword.spec.js +39 -39
  566. package/cjs/UNSAFE_InputPassword.js +40 -40
  567. package/cjs/UNSAFE_InputText.js +39 -39
  568. package/cjs/UNSAFE_Label.js +16 -16
  569. package/cjs/UNSAFE_Label.js.map +1 -1
  570. package/cjs/UNSAFE_LabelValueLayout.js +20 -20
  571. package/cjs/UNSAFE_LabelValueLayout.js.map +1 -1
  572. package/cjs/UNSAFE_Layer.js +1 -1
  573. package/cjs/UNSAFE_Link/__tests__/Link.spec.js +3 -3
  574. package/cjs/UNSAFE_Link.js +3 -3
  575. package/cjs/UNSAFE_ListItemLayout/__tests__/ListItemLayout.spec.js +10 -10
  576. package/cjs/UNSAFE_ListItemLayout.js +10 -10
  577. package/cjs/UNSAFE_ListView/__tests__/ListView.spec.js +27 -27
  578. package/cjs/UNSAFE_ListView/__tests__/ListViewTabbableMode.spec.js +27 -27
  579. package/cjs/UNSAFE_ListView.js +24 -24
  580. package/cjs/UNSAFE_LiveRegion.js +2 -2
  581. package/cjs/UNSAFE_LoadMoreCollection/__tests__/LoadMoreCollection.spec.js +3 -3
  582. package/cjs/UNSAFE_LoadMoreCollection.js +3 -3
  583. package/cjs/UNSAFE_Menu/__tests__/Menu.spec.js +19 -19
  584. package/cjs/UNSAFE_Menu/__tests__/MenuItem.spec.js +11 -11
  585. package/cjs/UNSAFE_Menu/__tests__/SelectMenuItem.spec.js +18 -18
  586. package/cjs/UNSAFE_Menu/__tests__/SelectMultipleMenuGroup.spec.js +22 -22
  587. package/cjs/UNSAFE_Menu/__tests__/SelectSingleMenuGroup.spec.js +22 -22
  588. package/cjs/UNSAFE_Menu.js +16 -16
  589. package/cjs/UNSAFE_MessageBanner.js +30 -30
  590. package/cjs/UNSAFE_MessageToast/__tests__/MessageToast.spec.js +33 -33
  591. package/cjs/UNSAFE_MessageToast.js +33 -33
  592. package/cjs/UNSAFE_MeterBar/__tests__/MeterBar.spec.js +7 -7
  593. package/cjs/UNSAFE_MeterBar.js +50 -50
  594. package/cjs/UNSAFE_MeterBar.js.map +1 -1
  595. package/cjs/UNSAFE_MeterCircle/__tests__/MeterCircle.spec.js +8 -8
  596. package/cjs/UNSAFE_MeterCircle.js +7 -7
  597. package/cjs/UNSAFE_Modal/__tests__/Modal.spec.js +8 -8
  598. package/cjs/UNSAFE_Modal.js +8 -8
  599. package/cjs/UNSAFE_NumberInputText/__tests__/NumberInputText.spec.js +39 -39
  600. package/cjs/UNSAFE_NumberInputText.js +39 -39
  601. package/cjs/UNSAFE_PrefixSuffix.js +10 -10
  602. package/cjs/UNSAFE_PrefixSuffix.js.map +1 -1
  603. package/cjs/UNSAFE_ProgressBar/__tests__/ProgressBar.spec.js +3 -3
  604. package/cjs/UNSAFE_ProgressBar.js +9 -9
  605. package/cjs/UNSAFE_ProgressBar.js.map +1 -1
  606. package/cjs/UNSAFE_ProgressCircle/__tests__/ProgressCircle.spec.js +3 -3
  607. package/cjs/UNSAFE_ProgressCircle.js +9 -9
  608. package/cjs/UNSAFE_ProgressCircle.js.map +1 -1
  609. package/cjs/UNSAFE_RatingGauge/__tests__/RatingGauge.spec.js +7 -7
  610. package/cjs/UNSAFE_RatingGauge.js +26 -26
  611. package/cjs/UNSAFE_RatingGauge.js.map +1 -1
  612. package/cjs/UNSAFE_SelectMultiple/__tests__/SelectMultiple.spec.js +47 -47
  613. package/cjs/UNSAFE_SelectMultiple.js +47 -47
  614. package/cjs/UNSAFE_SelectSingle/__tests__/SelectSingle.spec.js +46 -46
  615. package/cjs/UNSAFE_SelectSingle.js +46 -46
  616. package/cjs/UNSAFE_Selector.js +22 -22
  617. package/cjs/UNSAFE_Selector.js.map +1 -1
  618. package/cjs/UNSAFE_Skeleton/__tests__/Skeleton.spec.js +8 -8
  619. package/cjs/UNSAFE_Skeleton.js +8 -8
  620. package/cjs/UNSAFE_Spacer/__tests__/Spacer.spec.js +10 -10
  621. package/cjs/UNSAFE_Spacer.js +10 -10
  622. package/cjs/UNSAFE_SplitMenuButton/__tests__/SplitMenuButton.spec.js +23 -23
  623. package/cjs/UNSAFE_SplitMenuButton.js +23 -23
  624. package/cjs/UNSAFE_Subheading/__test__/Subheading.spec.js +10 -10
  625. package/cjs/UNSAFE_Subheading.js +8 -8
  626. package/cjs/UNSAFE_Text/__tests__/Text.spec.js +8 -8
  627. package/cjs/UNSAFE_Text.js +8 -8
  628. package/cjs/UNSAFE_TextArea/__tests__/TextArea.spec.js +39 -39
  629. package/cjs/UNSAFE_TextArea.js +39 -39
  630. package/cjs/UNSAFE_TextAreaAutosize/__tests__/TextAreaAutosize.spec.js +40 -40
  631. package/cjs/UNSAFE_TextAreaAutosize.js +40 -40
  632. package/cjs/UNSAFE_TextField/__tests__/ReadonlyTextFieldInput.spec.js +10 -10
  633. package/cjs/UNSAFE_TextField/__tests__/TextFieldInput.spec.js +11 -11
  634. package/cjs/UNSAFE_TextField.js +35 -35
  635. package/cjs/UNSAFE_TextField.js.map +1 -1
  636. package/cjs/UNSAFE_ThemedIcons.js +9 -9
  637. package/cjs/UNSAFE_UserAssistance/__tests__/InlineHelpSource.spec.js +2 -2
  638. package/cjs/UNSAFE_UserAssistance.js +41 -41
  639. package/cjs/UNSAFE_UserAssistance.js.map +1 -1
  640. package/cjs/UNSAFE_View/__tests__/View.spec.js +9 -9
  641. package/cjs/UNSAFE_View.js +9 -9
  642. package/cjs/UNSAFE_VirtualizedListView/__tests__/VirtualizedListView.spec.js +27 -27
  643. package/cjs/UNSAFE_VirtualizedListView/__tests__/VirtualizedListViewTabbableMode.spec.js +27 -27
  644. package/cjs/UNSAFE_VirtualizedListView.js +24 -24
  645. package/cjs/UNSAFE_WindowOverlay.js +1 -1
  646. package/cjs/{VirtualizedCollection-ea10af99.js → VirtualizedCollection-4d03b9a9.js} +3 -3
  647. package/cjs/{VirtualizedCollection-ea10af99.js.map → VirtualizedCollection-4d03b9a9.js.map} +1 -1
  648. package/cjs/{VirtualizedListView-b4f52c34.js → VirtualizedListView-3f6b5065.js} +3 -3
  649. package/cjs/{VirtualizedListView-b4f52c34.js.map → VirtualizedListView-3f6b5065.js.map} +1 -1
  650. package/cjs/__tests__/FormControls/FormControlAria.spec.js +52 -52
  651. package/cjs/__tests__/FormControls/FormControlClearIcon.spec.js +39 -39
  652. package/cjs/__tests__/FormControls/FormControlCommit.spec.js +42 -42
  653. package/cjs/__tests__/FormControls/FormControlPrefixSuffix.spec.js +40 -40
  654. package/cjs/{_curry1-bceac0f2.js → _curry1-9ef2d914.js} +2 -2
  655. package/cjs/{_curry1-bceac0f2.js.map → _curry1-9ef2d914.js.map} +1 -1
  656. package/cjs/{_curry2-18da4e88.js → _curry2-6ee590e0.js} +3 -3
  657. package/cjs/{_curry2-18da4e88.js.map → _curry2-6ee590e0.js.map} +1 -1
  658. package/cjs/{_curry3-3d4a2b8d.js → _curry3-5c23323c.js} +4 -4
  659. package/cjs/{_curry3-3d4a2b8d.js.map → _curry3-5c23323c.js.map} +1 -1
  660. package/cjs/{_has-dd5fd96c.js → _has-a7238917.js} +3 -3
  661. package/cjs/{_has-dd5fd96c.js.map → _has-a7238917.js.map} +1 -1
  662. package/cjs/{classNames-052c746b.js → classNames-eb53ba99.js} +2 -2
  663. package/cjs/{classNames-052c746b.js.map → classNames-eb53ba99.js.map} +1 -1
  664. package/cjs/{clientHints-6977f4ad.js → clientHints-587d7d48.js} +2 -2
  665. package/cjs/{clientHints-6977f4ad.js.map → clientHints-587d7d48.js.map} +1 -1
  666. package/cjs/{flexbox-c91a5edc.js → flexbox-bff9943a.js} +10 -10
  667. package/cjs/{flexbox-c91a5edc.js.map → flexbox-bff9943a.js.map} +1 -1
  668. package/cjs/{flexitem-6647e291.js → flexitem-3e78b74d.js} +10 -10
  669. package/cjs/{flexitem-6647e291.js.map → flexitem-3e78b74d.js.map} +1 -1
  670. package/cjs/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  671. package/cjs/hooks/PRIVATE_useCurrentKey.js +1 -1
  672. package/cjs/hooks/PRIVATE_useDvtMeterEvents.js +6 -6
  673. package/cjs/hooks/PRIVATE_useItemAction.js +1 -1
  674. package/cjs/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
  675. package/cjs/hooks/PRIVATE_useSelection.js +1 -1
  676. package/cjs/hooks/PRIVATE_useSingleSelection.js +2 -2
  677. package/cjs/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  678. package/cjs/hooks/UNSAFE_useActionable.js +1 -1
  679. package/cjs/hooks/UNSAFE_useActive.js +1 -1
  680. package/cjs/hooks/UNSAFE_useAnimation/__tests__/useAnimation.spec.js +3 -3
  681. package/cjs/hooks/UNSAFE_useAnimation.js +3 -3
  682. package/cjs/hooks/UNSAFE_useBreakpointValues.js +1 -1
  683. package/cjs/hooks/UNSAFE_useBreakpoints.js +1 -1
  684. package/cjs/hooks/UNSAFE_useClearIcon.js +1 -1
  685. package/cjs/hooks/UNSAFE_useColorScheme.js +1 -1
  686. package/cjs/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  687. package/cjs/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  688. package/cjs/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
  689. package/cjs/hooks/UNSAFE_useDebounce.js +1 -1
  690. package/cjs/hooks/UNSAFE_useFloating.js +2 -2
  691. package/cjs/hooks/UNSAFE_useFocus.js +1 -1
  692. package/cjs/hooks/UNSAFE_useFocusWithin/__tests__/useFocusWithin.spec.js +2 -2
  693. package/cjs/hooks/UNSAFE_useFocusWithin.js +2 -2
  694. package/cjs/hooks/UNSAFE_useFocusableTextField.js +3 -3
  695. package/cjs/hooks/UNSAFE_useFormContext.js +1 -1
  696. package/cjs/hooks/UNSAFE_useFormFieldContext.js +1 -1
  697. package/cjs/hooks/UNSAFE_useFormVariantContext.js +1 -1
  698. package/cjs/hooks/UNSAFE_useHover.js +1 -1
  699. package/cjs/hooks/UNSAFE_useId.js +1 -1
  700. package/cjs/hooks/UNSAFE_useLengthFilter.js +1 -1
  701. package/cjs/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  702. package/cjs/hooks/UNSAFE_useLongPress.js +1 -1
  703. package/cjs/hooks/UNSAFE_useMessagesContext.js +1 -1
  704. package/cjs/hooks/UNSAFE_useOutsideClick.js +1 -1
  705. package/cjs/hooks/UNSAFE_usePan.js +1 -1
  706. package/cjs/hooks/UNSAFE_usePrefixSuffix.js +2 -2
  707. package/cjs/hooks/UNSAFE_usePress.js +1 -1
  708. package/cjs/hooks/UNSAFE_useScale.js +1 -1
  709. package/cjs/hooks/UNSAFE_useSwipe.js +1 -1
  710. package/cjs/hooks/UNSAFE_useTabbableMode.js +1 -1
  711. package/cjs/hooks/UNSAFE_useTap.js +1 -1
  712. package/cjs/hooks/UNSAFE_useTextField.js +1 -1
  713. package/cjs/hooks/UNSAFE_useTextFieldInputHandlers.js +2 -2
  714. package/cjs/hooks/UNSAFE_useTheme.js +1 -1
  715. package/cjs/hooks/UNSAFE_useTimer.js +1 -1
  716. package/cjs/hooks/UNSAFE_useToggle.js +1 -1
  717. package/cjs/hooks/UNSAFE_useTooltip.js +10 -10
  718. package/cjs/hooks/UNSAFE_useTooltip.js.map +1 -1
  719. package/cjs/hooks/UNSAFE_useTouch.js +1 -1
  720. package/cjs/hooks/UNSAFE_useTranslationBundle.js +1 -1
  721. package/cjs/hooks/UNSAFE_useUncontrolledState.js +1 -1
  722. package/cjs/hooks/UNSAFE_useUser.js +1 -1
  723. package/cjs/hooks/UNSAFE_useViewportIntersect.js +1 -1
  724. package/cjs/{index-f00e5f39.js → index-39cd2e4b.js} +3 -3
  725. package/cjs/{index-f00e5f39.js.map → index-39cd2e4b.js.map} +1 -1
  726. package/cjs/{index-0f15ab4a.js → index-6e027d52.js} +2 -2
  727. package/cjs/{index-0f15ab4a.js.map → index-6e027d52.js.map} +1 -1
  728. package/cjs/{index-9db39f31.js → index-c21c00a7.js} +3 -3
  729. package/cjs/{index-9db39f31.js.map → index-c21c00a7.js.map} +1 -1
  730. package/cjs/{keys-851fe6d1.js → keys-88563d9a.js} +4 -4
  731. package/cjs/{keys-851fe6d1.js.map → keys-88563d9a.js.map} +1 -1
  732. package/cjs/{listViewSelectionTests-4c33f5af.js → listViewSelectionTests-0cf8ac1a.js} +4 -4
  733. package/cjs/{listViewSelectionTests-4c33f5af.js.map → listViewSelectionTests-0cf8ac1a.js.map} +1 -1
  734. package/cjs/{listViewTabbableModeTests-22a486b8.js → listViewTabbableModeTests-c19103e6.js} +4 -4
  735. package/cjs/{listViewTabbableModeTests-22a486b8.js.map → listViewTabbableModeTests-c19103e6.js.map} +1 -1
  736. package/cjs/{listViewTestFixtures-082a5a11.js → listViewTestFixtures-d6cb306e.js} +2 -2
  737. package/cjs/{listViewTestFixtures-082a5a11.js.map → listViewTestFixtures-d6cb306e.js.map} +1 -1
  738. package/cjs/{menuTestsUtils-134641c1.js → menuTestsUtils-9da035da.js} +2 -2
  739. package/cjs/{menuTestsUtils-134641c1.js.map → menuTestsUtils-9da035da.js.map} +1 -1
  740. package/cjs/resources/nls/ar/bundle.js +1 -1
  741. package/cjs/resources/nls/ar-XB/bundle.js +1 -1
  742. package/cjs/resources/nls/bg/bundle.js +1 -1
  743. package/cjs/resources/nls/bs/bundle.js +1 -1
  744. package/cjs/resources/nls/bs-Cyrl/bundle.js +1 -1
  745. package/cjs/resources/nls/bundle.js +1 -1
  746. package/cjs/resources/nls/cs/bundle.js +1 -1
  747. package/cjs/resources/nls/da/bundle.js +1 -1
  748. package/cjs/resources/nls/de/bundle.js +1 -1
  749. package/cjs/resources/nls/el/bundle.js +1 -1
  750. package/cjs/resources/nls/en/bundle.js +1 -1
  751. package/cjs/resources/nls/en-XA/bundle.js +1 -1
  752. package/cjs/resources/nls/en-XC/bundle.js +1 -1
  753. package/cjs/resources/nls/es/bundle.js +1 -1
  754. package/cjs/resources/nls/et/bundle.js +1 -1
  755. package/cjs/resources/nls/fi/bundle.js +1 -1
  756. package/cjs/resources/nls/fr/bundle.js +1 -1
  757. package/cjs/resources/nls/fr-CA/bundle.js +1 -1
  758. package/cjs/resources/nls/he/bundle.js +1 -1
  759. package/cjs/resources/nls/hr/bundle.js +1 -1
  760. package/cjs/resources/nls/hu/bundle.js +1 -1
  761. package/cjs/resources/nls/is/bundle.js +1 -1
  762. package/cjs/resources/nls/it/bundle.js +1 -1
  763. package/cjs/resources/nls/ja/bundle.js +1 -1
  764. package/cjs/resources/nls/ko/bundle.js +1 -1
  765. package/cjs/resources/nls/lt/bundle.js +1 -1
  766. package/cjs/resources/nls/lv/bundle.js +1 -1
  767. package/cjs/resources/nls/ms/bundle.js +1 -1
  768. package/cjs/resources/nls/nl/bundle.js +1 -1
  769. package/cjs/resources/nls/no/bundle.js +1 -1
  770. package/cjs/resources/nls/pl/bundle.js +1 -1
  771. package/cjs/resources/nls/pt/bundle.js +1 -1
  772. package/cjs/resources/nls/pt-PT/bundle.js +1 -1
  773. package/cjs/resources/nls/ro/bundle.js +1 -1
  774. package/cjs/resources/nls/ru/bundle.js +1 -1
  775. package/cjs/resources/nls/sk/bundle.js +1 -1
  776. package/cjs/resources/nls/sl/bundle.js +1 -1
  777. package/cjs/resources/nls/sr/bundle.js +1 -1
  778. package/cjs/resources/nls/sr-Latn/bundle.js +1 -1
  779. package/cjs/resources/nls/supportedLocales.js +1 -1
  780. package/cjs/resources/nls/sv/bundle.js +1 -1
  781. package/cjs/resources/nls/th/bundle.js +1 -1
  782. package/cjs/resources/nls/tr/bundle.js +1 -1
  783. package/cjs/resources/nls/uk/bundle.js +1 -1
  784. package/cjs/resources/nls/vi/bundle.js +1 -1
  785. package/cjs/resources/nls/zh-Hans/bundle.js +1 -1
  786. package/cjs/resources/nls/zh-Hant/bundle.js +1 -1
  787. package/cjs/{stringUtils-fdad69c1.js → stringUtils-d7d173bc.js} +2 -2
  788. package/cjs/{stringUtils-fdad69c1.js.map → stringUtils-d7d173bc.js.map} +1 -1
  789. package/cjs/{testHelpers-654f36bc.js → testHelpers-734bfd6a.js} +2 -2
  790. package/cjs/{testHelpers-654f36bc.js.map → testHelpers-734bfd6a.js.map} +1 -1
  791. package/cjs/translationBundle/__tests__/translationBundle.spec.js +1 -1
  792. package/cjs/translationBundle.js +1 -1
  793. package/cjs/{tslib.es6-48af5935.js → tslib.es6-84645d54.js} +2 -2
  794. package/cjs/{tslib.es6-48af5935.js.map → tslib.es6-84645d54.js.map} +1 -1
  795. package/cjs/{useAnimation-fb9e984c.js → useAnimation-3eba9432.js} +3 -3
  796. package/cjs/{useAnimation-fb9e984c.js.map → useAnimation-3eba9432.js.map} +1 -1
  797. package/cjs/{useFocusWithin-5168c639.js → useFocusWithin-0776b2d2.js} +2 -2
  798. package/cjs/{useFocusWithin-5168c639.js.map → useFocusWithin-0776b2d2.js.map} +1 -1
  799. package/cjs/{useModal-ada56bbe.js → useModal-2d660d52.js} +2 -2
  800. package/cjs/{useModal-ada56bbe.js.map → useModal-2d660d52.js.map} +1 -1
  801. package/cjs/{useSingleSelection-b784682e.js → useSingleSelection-429293e3.js} +2 -2
  802. package/cjs/{useSingleSelection-b784682e.js.map → useSingleSelection-429293e3.js.map} +1 -1
  803. package/cjs/utils/PRIVATE_clientHints/__tests__/clientHints.spec.js +2 -2
  804. package/cjs/utils/PRIVATE_clientHints.js +2 -2
  805. package/cjs/utils/PRIVATE_collectionUtils.js +1 -1
  806. package/cjs/utils/PRIVATE_dvtTestUtils.js +1 -1
  807. package/cjs/utils/PRIVATE_floatingUtils.js +1 -1
  808. package/cjs/utils/PRIVATE_meterUtils.js +1 -1
  809. package/cjs/utils/PRIVATE_refUtils.js +1 -1
  810. package/cjs/utils/PRIVATE_tabbableUtils.js +4 -4
  811. package/cjs/utils/PRIVATE_timer.js +1 -1
  812. package/cjs/utils/UNSAFE_arrayUtils.js +1 -1
  813. package/cjs/utils/UNSAFE_attributeUtils.js +1 -1
  814. package/cjs/utils/UNSAFE_classNames/classNames.spec.js +2 -2
  815. package/cjs/utils/UNSAFE_classNames.js +2 -2
  816. package/cjs/utils/UNSAFE_componentUtils.js +1 -1
  817. package/cjs/utils/UNSAFE_dataProvider.js +1 -1
  818. package/cjs/utils/UNSAFE_dvtCommonUtils.js +1 -1
  819. package/cjs/utils/UNSAFE_filePickerUtils.js +1 -1
  820. package/cjs/utils/UNSAFE_getLocale.js +1 -1
  821. package/cjs/utils/UNSAFE_interpolations/aria.js +1 -1
  822. package/cjs/utils/UNSAFE_interpolations/borders.js +1 -1
  823. package/cjs/utils/UNSAFE_interpolations/boxalignment.js +19 -19
  824. package/cjs/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  825. package/cjs/utils/UNSAFE_interpolations/colors.js +1 -1
  826. package/cjs/utils/UNSAFE_interpolations/dimensions.js +2 -2
  827. package/cjs/utils/UNSAFE_interpolations/flexbox/flexbox.spec.js +5 -5
  828. package/cjs/utils/UNSAFE_interpolations/flexbox.js +5 -5
  829. package/cjs/utils/UNSAFE_interpolations/flexitem/flexitem.spec.js +5 -5
  830. package/cjs/utils/UNSAFE_interpolations/flexitem.js +5 -5
  831. package/cjs/utils/UNSAFE_interpolations/grid.js +1 -1
  832. package/cjs/utils/UNSAFE_interpolations/griditem.js +1 -1
  833. package/cjs/utils/UNSAFE_interpolations/padding.js +1 -1
  834. package/cjs/utils/UNSAFE_interpolations/text.js +7 -7
  835. package/cjs/utils/UNSAFE_interpolations/text.js.map +1 -1
  836. package/cjs/utils/UNSAFE_keys.js +1 -1
  837. package/cjs/utils/UNSAFE_lengthFilter.js +1 -1
  838. package/cjs/utils/UNSAFE_logger.js +3 -3
  839. package/cjs/utils/UNSAFE_matchTranslationBundle.js +1 -1
  840. package/cjs/utils/UNSAFE_mergeInterpolations.js +6 -6
  841. package/cjs/utils/UNSAFE_mergeProps.js +1 -1
  842. package/cjs/utils/UNSAFE_meterTypes.js +1 -1
  843. package/cjs/utils/UNSAFE_roles.js +1 -1
  844. package/cjs/utils/UNSAFE_selectUtils.js +1 -1
  845. package/cjs/utils/UNSAFE_size.js +1 -1
  846. package/cjs/utils/UNSAFE_soundUtils.js +1 -1
  847. package/cjs/utils/UNSAFE_stringUtils/stringUtils.spec.js +2 -2
  848. package/cjs/utils/UNSAFE_stringUtils.js +2 -2
  849. package/cjs/utils/UNSAFE_typeUtils.js +1 -1
  850. package/cjs/utils/UNSAFE_units.js +2 -2
  851. package/cjs/utils/UNSAFE_valueUpdateDetail.js +1 -1
  852. package/es/{ClearIcon-f7b67a33.js → ClearIcon-4f292c90.js} +3 -3
  853. package/es/{ClearIcon-f7b67a33.js.map → ClearIcon-4f292c90.js.map} +1 -1
  854. package/es/{LoadMoreCollection-2bdf656d.js → LoadMoreCollection-d53881e5.js} +2 -2
  855. package/es/{LoadMoreCollection-2bdf656d.js.map → LoadMoreCollection-d53881e5.js.map} +1 -1
  856. package/es/PRIVATE_Collection.js +1 -1
  857. package/es/PRIVATE_List.css +15 -15
  858. package/es/PRIVATE_List.js +24 -24
  859. package/es/PRIVATE_List.js.map +1 -1
  860. package/es/PRIVATE_Message.css +27 -27
  861. package/es/PRIVATE_Message.js +35 -35
  862. package/es/PRIVATE_Message.js.map +1 -1
  863. package/es/PRIVATE_MessageLayer.css +7 -7
  864. package/es/PRIVATE_MessageLayer.js +14 -14
  865. package/es/PRIVATE_MessageLayer.js.map +1 -1
  866. package/es/PRIVATE_Meter.js +2 -2
  867. package/es/PRIVATE_SelectCommon.css +13 -13
  868. package/es/PRIVATE_SelectCommon.js +22 -22
  869. package/es/PRIVATE_SelectCommon.js.map +1 -1
  870. package/es/PRIVATE_TransitionGroup.js +1 -1
  871. package/es/PRIVATE_VirtualizedCollection.js +1 -1
  872. package/es/UNSAFE_AspectRatio.css +1 -1
  873. package/es/UNSAFE_AspectRatio.js +7 -7
  874. package/es/UNSAFE_Avatar.css +8 -8
  875. package/es/UNSAFE_Avatar.js +10 -10
  876. package/es/UNSAFE_Avatar.js.map +1 -1
  877. package/es/UNSAFE_Badge.css +13 -13
  878. package/es/UNSAFE_Badge.js +14 -14
  879. package/es/UNSAFE_Badge.js.map +1 -1
  880. package/es/UNSAFE_BaseButton.css +15 -15
  881. package/es/UNSAFE_BaseButton.js +21 -21
  882. package/es/UNSAFE_BaseButton.js.map +1 -1
  883. package/es/UNSAFE_Button.css +7 -7
  884. package/es/UNSAFE_Button.js +13 -13
  885. package/es/UNSAFE_Button.js.map +1 -1
  886. package/es/UNSAFE_Center.js +7 -7
  887. package/es/UNSAFE_Chip.css +7 -7
  888. package/es/UNSAFE_Chip.js +8 -8
  889. package/es/UNSAFE_Chip.js.map +1 -1
  890. package/es/UNSAFE_Collapsible.css +8 -8
  891. package/es/UNSAFE_Collapsible.js +16 -16
  892. package/es/UNSAFE_Collapsible.js.map +1 -1
  893. package/es/UNSAFE_Collection.js +1 -1
  894. package/es/UNSAFE_ComponentMessage.css +2 -2
  895. package/es/UNSAFE_ComponentMessage.js +10 -10
  896. package/es/UNSAFE_ComponentMessage.js.map +1 -1
  897. package/es/UNSAFE_Divider.css +1 -1
  898. package/es/UNSAFE_Divider.js +6 -6
  899. package/es/UNSAFE_EmptyList.js +1 -1
  900. package/es/UNSAFE_Environment.js +1 -1
  901. package/es/UNSAFE_FilePicker.css +6 -6
  902. package/es/UNSAFE_FilePicker.js +13 -13
  903. package/es/UNSAFE_FilePicker.js.map +1 -1
  904. package/es/UNSAFE_Flex.css +2 -2
  905. package/es/UNSAFE_Flex.js +9 -9
  906. package/es/UNSAFE_Flex.js.map +1 -1
  907. package/es/UNSAFE_Floating.js +2 -2
  908. package/es/UNSAFE_FocusTrap.css +2 -2
  909. package/es/UNSAFE_FocusTrap.js +6 -6
  910. package/es/UNSAFE_FocusTrap.js.map +1 -1
  911. package/es/UNSAFE_Grid.css +1 -1
  912. package/es/UNSAFE_Grid.js +8 -8
  913. package/es/UNSAFE_Grid.js.map +1 -1
  914. package/es/UNSAFE_Heading.css +9 -9
  915. package/es/UNSAFE_Heading.js +16 -16
  916. package/es/UNSAFE_Heading.js.map +1 -1
  917. package/es/UNSAFE_HiddenAccessible.css +1 -1
  918. package/es/UNSAFE_HiddenAccessible.js +2 -2
  919. package/es/UNSAFE_HiddenAccessible.js.map +1 -1
  920. package/es/UNSAFE_HighlightText.css +1 -1
  921. package/es/UNSAFE_HighlightText.js +2 -2
  922. package/es/UNSAFE_HighlightText.js.map +1 -1
  923. package/es/UNSAFE_Icon.css +8 -8
  924. package/es/UNSAFE_Icon.js +11 -11
  925. package/es/UNSAFE_Icon.js.map +1 -1
  926. package/es/UNSAFE_Icons.js +3 -3
  927. package/es/UNSAFE_Indexer.css +7 -7
  928. package/es/UNSAFE_Indexer.js +15 -15
  929. package/es/UNSAFE_Indexer.js.map +1 -1
  930. package/es/UNSAFE_InputPassword.css +1 -1
  931. package/es/UNSAFE_InputPassword.js +10 -10
  932. package/es/UNSAFE_InputText.css +1 -1
  933. package/es/UNSAFE_InputText.js +9 -9
  934. package/es/UNSAFE_Label.css +13 -13
  935. package/es/UNSAFE_Label.js +15 -15
  936. package/es/UNSAFE_Label.js.map +1 -1
  937. package/es/UNSAFE_LabelValueLayout.css +9 -9
  938. package/es/UNSAFE_LabelValueLayout.js +16 -16
  939. package/es/UNSAFE_LabelValueLayout.js.map +1 -1
  940. package/es/UNSAFE_Layer.js +1 -1
  941. package/es/UNSAFE_Link.css +5 -5
  942. package/es/UNSAFE_Link.js +6 -6
  943. package/es/UNSAFE_Link.js.map +1 -1
  944. package/es/UNSAFE_ListItemLayout.css +9 -9
  945. package/es/UNSAFE_ListItemLayout.js +16 -16
  946. package/es/UNSAFE_ListItemLayout.js.map +1 -1
  947. package/es/UNSAFE_ListView.js +9 -9
  948. package/es/UNSAFE_LiveRegion.css +1 -1
  949. package/es/UNSAFE_LiveRegion.js +2 -2
  950. package/es/UNSAFE_LoadMoreCollection.js +2 -2
  951. package/es/UNSAFE_Menu.css +23 -23
  952. package/es/UNSAFE_Menu.js +31 -31
  953. package/es/UNSAFE_Menu.js.map +1 -1
  954. package/es/UNSAFE_MessageBanner.js +8 -8
  955. package/es/UNSAFE_MessageToast.css +1 -1
  956. package/es/UNSAFE_MessageToast.js +9 -9
  957. package/es/UNSAFE_MeterBar.css +44 -44
  958. package/es/UNSAFE_MeterBar.js +47 -47
  959. package/es/UNSAFE_MeterBar.js.map +1 -1
  960. package/es/UNSAFE_MeterCircle.css +46 -46
  961. package/es/UNSAFE_MeterCircle.js +49 -49
  962. package/es/UNSAFE_MeterCircle.js.map +1 -1
  963. package/es/UNSAFE_Modal.css +3 -3
  964. package/es/UNSAFE_Modal.js +8 -8
  965. package/es/UNSAFE_NumberInputText.js +8 -8
  966. package/es/UNSAFE_PrefixSuffix.css +8 -8
  967. package/es/UNSAFE_PrefixSuffix.js +9 -9
  968. package/es/UNSAFE_PrefixSuffix.js.map +1 -1
  969. package/es/UNSAFE_ProgressBar.css +6 -6
  970. package/es/UNSAFE_ProgressBar.js +8 -8
  971. package/es/UNSAFE_ProgressBar.js.map +1 -1
  972. package/es/UNSAFE_ProgressCircle.css +6 -6
  973. package/es/UNSAFE_ProgressCircle.js +8 -8
  974. package/es/UNSAFE_ProgressCircle.js.map +1 -1
  975. package/es/UNSAFE_RatingGauge.css +20 -20
  976. package/es/UNSAFE_RatingGauge.js +23 -23
  977. package/es/UNSAFE_RatingGauge.js.map +1 -1
  978. package/es/UNSAFE_SelectMultiple.css +1 -1
  979. package/es/UNSAFE_SelectMultiple.js +10 -10
  980. package/es/UNSAFE_SelectSingle.js +9 -9
  981. package/es/UNSAFE_Selector.css +5 -5
  982. package/es/UNSAFE_Selector.js +13 -13
  983. package/es/UNSAFE_Selector.js.map +1 -1
  984. package/es/UNSAFE_Skeleton.css +1 -1
  985. package/es/UNSAFE_Skeleton.js +7 -7
  986. package/es/UNSAFE_Spacer.js +7 -7
  987. package/es/UNSAFE_SplitMenuButton.css +5 -5
  988. package/es/UNSAFE_SplitMenuButton.js +13 -13
  989. package/es/UNSAFE_SplitMenuButton.js.map +1 -1
  990. package/es/UNSAFE_Subheading.css +8 -8
  991. package/es/UNSAFE_Subheading.js +14 -14
  992. package/es/UNSAFE_Subheading.js.map +1 -1
  993. package/es/UNSAFE_Text.css +25 -25
  994. package/es/UNSAFE_Text.js +31 -31
  995. package/es/UNSAFE_Text.js.map +1 -1
  996. package/es/UNSAFE_TextArea.css +3 -3
  997. package/es/UNSAFE_TextArea.js +11 -11
  998. package/es/UNSAFE_TextAreaAutosize.js +8 -8
  999. package/es/UNSAFE_TextField.css +58 -58
  1000. package/es/UNSAFE_TextField.js +65 -65
  1001. package/es/UNSAFE_TextField.js.map +1 -1
  1002. package/es/UNSAFE_ThemedIcons.js +3 -3
  1003. package/es/UNSAFE_UserAssistance.css +8 -8
  1004. package/es/UNSAFE_UserAssistance.js +16 -16
  1005. package/es/UNSAFE_UserAssistance.js.map +1 -1
  1006. package/es/UNSAFE_View.js +7 -7
  1007. package/es/UNSAFE_VirtualizedListView.js +9 -9
  1008. package/es/UNSAFE_WindowOverlay.js +1 -1
  1009. package/es/{_curry1-4002d580.js → _curry1-838522fe.js} +2 -2
  1010. package/es/{_curry1-4002d580.js.map → _curry1-838522fe.js.map} +1 -1
  1011. package/es/{_curry2-ad597af0.js → _curry2-60b9ceaa.js} +3 -3
  1012. package/es/{_curry2-ad597af0.js.map → _curry2-60b9ceaa.js.map} +1 -1
  1013. package/es/{_curry3-a3409375.js → _curry3-cc5134f9.js} +4 -4
  1014. package/es/{_curry3-a3409375.js.map → _curry3-cc5134f9.js.map} +1 -1
  1015. package/es/{_has-19e9364e.js → _has-88fdf057.js} +3 -3
  1016. package/es/{_has-19e9364e.js.map → _has-88fdf057.js.map} +1 -1
  1017. package/es/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  1018. package/es/hooks/PRIVATE_useCurrentKey.js +1 -1
  1019. package/es/hooks/PRIVATE_useDvtMeterEvents.js +3 -3
  1020. package/es/hooks/PRIVATE_useItemAction.js +1 -1
  1021. package/es/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
  1022. package/es/hooks/PRIVATE_useSelection.js +1 -1
  1023. package/es/hooks/PRIVATE_useSingleSelection.js +2 -2
  1024. package/es/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  1025. package/es/hooks/UNSAFE_useActionable.js +1 -1
  1026. package/es/hooks/UNSAFE_useActive.js +1 -1
  1027. package/es/hooks/UNSAFE_useAnimation.js +2 -2
  1028. package/es/hooks/UNSAFE_useBreakpointValues.js +1 -1
  1029. package/es/hooks/UNSAFE_useBreakpoints.js +1 -1
  1030. package/es/hooks/UNSAFE_useClearIcon.js +1 -1
  1031. package/es/hooks/UNSAFE_useColorScheme.js +1 -1
  1032. package/es/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  1033. package/es/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  1034. package/es/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
  1035. package/es/hooks/UNSAFE_useDebounce.js +1 -1
  1036. package/es/hooks/UNSAFE_useFloating.js +2 -2
  1037. package/es/hooks/UNSAFE_useFocus.js +1 -1
  1038. package/es/hooks/UNSAFE_useFocusWithin.js +1 -1
  1039. package/es/hooks/UNSAFE_useFocusableTextField.js +2 -2
  1040. package/es/hooks/UNSAFE_useFormContext.js +1 -1
  1041. package/es/hooks/UNSAFE_useFormFieldContext.js +1 -1
  1042. package/es/hooks/UNSAFE_useFormVariantContext.js +1 -1
  1043. package/es/hooks/UNSAFE_useHover.js +1 -1
  1044. package/es/hooks/UNSAFE_useId.js +1 -1
  1045. package/es/hooks/UNSAFE_useLengthFilter.js +1 -1
  1046. package/es/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  1047. package/es/hooks/UNSAFE_useLongPress.js +1 -1
  1048. package/es/hooks/UNSAFE_useMessagesContext.js +1 -1
  1049. package/es/hooks/UNSAFE_useOutsideClick.js +1 -1
  1050. package/es/hooks/UNSAFE_usePan.js +1 -1
  1051. package/es/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  1052. package/es/hooks/UNSAFE_usePress.js +1 -1
  1053. package/es/hooks/UNSAFE_useScale.js +1 -1
  1054. package/es/hooks/UNSAFE_useSwipe.js +1 -1
  1055. package/es/hooks/UNSAFE_useTabbableMode.js +1 -1
  1056. package/es/hooks/UNSAFE_useTap.js +1 -1
  1057. package/es/hooks/UNSAFE_useTextField.js +1 -1
  1058. package/es/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
  1059. package/es/hooks/UNSAFE_useTheme.js +1 -1
  1060. package/es/hooks/UNSAFE_useTimer.js +1 -1
  1061. package/es/hooks/UNSAFE_useToggle.js +1 -1
  1062. package/es/hooks/UNSAFE_useTooltip.css +4 -4
  1063. package/es/hooks/UNSAFE_useTooltip.js +7 -7
  1064. package/es/hooks/UNSAFE_useTooltip.js.map +1 -1
  1065. package/es/hooks/UNSAFE_useTouch.js +1 -1
  1066. package/es/hooks/UNSAFE_useTranslationBundle.js +1 -1
  1067. package/es/hooks/UNSAFE_useUncontrolledState.js +1 -1
  1068. package/es/hooks/UNSAFE_useUser.js +1 -1
  1069. package/es/hooks/UNSAFE_useViewportIntersect.js +1 -1
  1070. package/es/{index-3daa5ed2.js → index-e3b0e042.js} +2 -2
  1071. package/es/{index-3daa5ed2.js.map → index-e3b0e042.js.map} +1 -1
  1072. package/es/{keys-c87b7c09.js → keys-a9432abc.js} +4 -4
  1073. package/es/{keys-c87b7c09.js.map → keys-a9432abc.js.map} +1 -1
  1074. package/es/resources/nls/ar/bundle.js +1 -1
  1075. package/es/resources/nls/ar-XB/bundle.js +1 -1
  1076. package/es/resources/nls/bg/bundle.js +1 -1
  1077. package/es/resources/nls/bs/bundle.js +1 -1
  1078. package/es/resources/nls/bs-Cyrl/bundle.js +1 -1
  1079. package/es/resources/nls/bundle.js +1 -1
  1080. package/es/resources/nls/cs/bundle.js +1 -1
  1081. package/es/resources/nls/da/bundle.js +1 -1
  1082. package/es/resources/nls/de/bundle.js +1 -1
  1083. package/es/resources/nls/el/bundle.js +1 -1
  1084. package/es/resources/nls/en/bundle.js +1 -1
  1085. package/es/resources/nls/en-XA/bundle.js +1 -1
  1086. package/es/resources/nls/en-XC/bundle.js +1 -1
  1087. package/es/resources/nls/es/bundle.js +1 -1
  1088. package/es/resources/nls/et/bundle.js +1 -1
  1089. package/es/resources/nls/fi/bundle.js +1 -1
  1090. package/es/resources/nls/fr/bundle.js +1 -1
  1091. package/es/resources/nls/fr-CA/bundle.js +1 -1
  1092. package/es/resources/nls/he/bundle.js +1 -1
  1093. package/es/resources/nls/hr/bundle.js +1 -1
  1094. package/es/resources/nls/hu/bundle.js +1 -1
  1095. package/es/resources/nls/is/bundle.js +1 -1
  1096. package/es/resources/nls/it/bundle.js +1 -1
  1097. package/es/resources/nls/ja/bundle.js +1 -1
  1098. package/es/resources/nls/ko/bundle.js +1 -1
  1099. package/es/resources/nls/lt/bundle.js +1 -1
  1100. package/es/resources/nls/lv/bundle.js +1 -1
  1101. package/es/resources/nls/ms/bundle.js +1 -1
  1102. package/es/resources/nls/nl/bundle.js +1 -1
  1103. package/es/resources/nls/no/bundle.js +1 -1
  1104. package/es/resources/nls/pl/bundle.js +1 -1
  1105. package/es/resources/nls/pt/bundle.js +1 -1
  1106. package/es/resources/nls/pt-PT/bundle.js +1 -1
  1107. package/es/resources/nls/ro/bundle.js +1 -1
  1108. package/es/resources/nls/ru/bundle.js +1 -1
  1109. package/es/resources/nls/sk/bundle.js +1 -1
  1110. package/es/resources/nls/sl/bundle.js +1 -1
  1111. package/es/resources/nls/sr/bundle.js +1 -1
  1112. package/es/resources/nls/sr-Latn/bundle.js +1 -1
  1113. package/es/resources/nls/supportedLocales.js +1 -1
  1114. package/es/resources/nls/sv/bundle.js +1 -1
  1115. package/es/resources/nls/th/bundle.js +1 -1
  1116. package/es/resources/nls/tr/bundle.js +1 -1
  1117. package/es/resources/nls/uk/bundle.js +1 -1
  1118. package/es/resources/nls/vi/bundle.js +1 -1
  1119. package/es/resources/nls/zh-Hans/bundle.js +1 -1
  1120. package/es/resources/nls/zh-Hant/bundle.js +1 -1
  1121. package/es/translationBundle.js +1 -1
  1122. package/es/{tslib.es6-c66fc3f0.js → tslib.es6-df31130b.js} +2 -2
  1123. package/es/{tslib.es6-c66fc3f0.js.map → tslib.es6-df31130b.js.map} +1 -1
  1124. package/es/{useModal-6879e21d.js → useModal-5d5a2c93.js} +2 -2
  1125. package/es/{useModal-6879e21d.js.map → useModal-5d5a2c93.js.map} +1 -1
  1126. package/es/{useSingleSelection-1e9df392.js → useSingleSelection-c8bbdd0a.js} +2 -2
  1127. package/es/{useSingleSelection-1e9df392.js.map → useSingleSelection-c8bbdd0a.js.map} +1 -1
  1128. package/es/utils/PRIVATE_clientHints.js +1 -1
  1129. package/es/utils/PRIVATE_collectionUtils.js +1 -1
  1130. package/es/utils/PRIVATE_dvtTestUtils.js +1 -1
  1131. package/es/utils/PRIVATE_floatingUtils.js +1 -1
  1132. package/es/utils/PRIVATE_meterUtils.js +1 -1
  1133. package/es/utils/PRIVATE_refUtils.js +1 -1
  1134. package/es/utils/PRIVATE_tabbableUtils.js +4 -4
  1135. package/es/utils/PRIVATE_timer.js +1 -1
  1136. package/es/utils/UNSAFE_arrayUtils.js +1 -1
  1137. package/es/utils/UNSAFE_attributeUtils.js +1 -1
  1138. package/es/utils/UNSAFE_classNames.js +1 -1
  1139. package/es/utils/UNSAFE_componentUtils.js +1 -1
  1140. package/es/utils/UNSAFE_dataProvider.js +1 -1
  1141. package/es/utils/UNSAFE_dvtCommonUtils.js +1 -1
  1142. package/es/utils/UNSAFE_filePickerUtils.js +1 -1
  1143. package/es/utils/UNSAFE_getLocale.js +1 -1
  1144. package/es/utils/UNSAFE_interpolations/aria.js +1 -1
  1145. package/es/utils/UNSAFE_interpolations/borders.js +1 -1
  1146. package/es/utils/UNSAFE_interpolations/boxalignment.css +15 -15
  1147. package/es/utils/UNSAFE_interpolations/boxalignment.js +19 -19
  1148. package/es/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  1149. package/es/utils/UNSAFE_interpolations/colors.js +1 -1
  1150. package/es/utils/UNSAFE_interpolations/dimensions.js +2 -2
  1151. package/es/utils/UNSAFE_interpolations/flexbox.css +7 -7
  1152. package/es/utils/UNSAFE_interpolations/flexbox.js +11 -11
  1153. package/es/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
  1154. package/es/utils/UNSAFE_interpolations/flexitem.css +7 -7
  1155. package/es/utils/UNSAFE_interpolations/flexitem.js +11 -11
  1156. package/es/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
  1157. package/es/utils/UNSAFE_interpolations/grid.js +1 -1
  1158. package/es/utils/UNSAFE_interpolations/griditem.js +1 -1
  1159. package/es/utils/UNSAFE_interpolations/padding.js +1 -1
  1160. package/es/utils/UNSAFE_interpolations/text.css +3 -3
  1161. package/es/utils/UNSAFE_interpolations/text.js +7 -7
  1162. package/es/utils/UNSAFE_interpolations/text.js.map +1 -1
  1163. package/es/utils/UNSAFE_keys.js +1 -1
  1164. package/es/utils/UNSAFE_lengthFilter.js +1 -1
  1165. package/es/utils/UNSAFE_logger.js +3 -3
  1166. package/es/utils/UNSAFE_matchTranslationBundle.js +1 -1
  1167. package/es/utils/UNSAFE_mergeInterpolations.js +5 -5
  1168. package/es/utils/UNSAFE_mergeProps.js +1 -1
  1169. package/es/utils/UNSAFE_meterTypes.js +1 -1
  1170. package/es/utils/UNSAFE_roles.js +1 -1
  1171. package/es/utils/UNSAFE_selectUtils.js +1 -1
  1172. package/es/utils/UNSAFE_size.js +1 -1
  1173. package/es/utils/UNSAFE_soundUtils.js +1 -1
  1174. package/es/utils/UNSAFE_stringUtils.js +1 -1
  1175. package/es/utils/UNSAFE_typeUtils.js +1 -1
  1176. package/es/utils/UNSAFE_units.js +1 -1
  1177. package/es/utils/UNSAFE_valueUpdateDetail.js +1 -1
  1178. package/package.json +1 -1
  1179. package/amd/Badge-cee718c2.js +0 -2
  1180. package/amd/BaseButton-21f35d61.js +0 -2
  1181. package/amd/Button-9e2b5706.js +0 -2
  1182. package/amd/Chip-0ffb2726.js +0 -2
  1183. package/amd/ComponentMessage-3fae5a5b.js +0 -2
  1184. package/amd/ComponentMessageContainer-2130cdd7.js +0 -2
  1185. package/amd/Flex-343c337e.js +0 -2
  1186. package/amd/FocusTrap-3123561d.js +0 -2
  1187. package/amd/FormControlUtils-3c0aac96.js +0 -2
  1188. package/amd/Heading-c1db732f.js +0 -2
  1189. package/amd/HiddenAccessible-c1b8ec8e.js +0 -2
  1190. package/amd/HighlightText-cc2d6b7d.js +0 -2
  1191. package/amd/Icon-597b4544.js +0 -2
  1192. package/amd/Indexer-49249ca7.js +0 -2
  1193. package/amd/InlineHelpSource-466d3759.js +0 -2
  1194. package/amd/Link-a1200bb1.js +0 -2
  1195. package/amd/List-6a963297.js +0 -2
  1196. package/amd/ListItemTextLayout-998eec81.js +0 -2
  1197. package/amd/Menu-1d0186bf.js +0 -2
  1198. package/amd/MenuDivider-7edd8ac2.js +0 -2
  1199. package/amd/MenuItem-077784e6.js +0 -2
  1200. package/amd/MessageCloseButton-2ab50565.js +0 -2
  1201. package/amd/MessageDetail-c3d3a0cf.js +0 -2
  1202. package/amd/MessageLayer-a6a7abcf.js +0 -2
  1203. package/amd/MessageStartIcon-3d36c660.js +0 -2
  1204. package/amd/MessageSummary-a4283ef2.js +0 -2
  1205. package/amd/MessageTimestamp-e56a6681.js +0 -2
  1206. package/amd/MeterCircle-b06a457d.js +0 -2
  1207. package/amd/Modal-eebbf595.js +0 -2
  1208. package/amd/ReadonlyTextFieldInput-ee580a50.js +0 -2
  1209. package/amd/SelectMenuItem-7033aea6.js +0 -2
  1210. package/amd/Skeleton-82005513.js +0 -2
  1211. package/amd/SplitMenuButton-24a8bc3e.js +0 -2
  1212. package/amd/Subheading-9ed4bf87.js +0 -2
  1213. package/amd/Text-414830df.js +0 -2
  1214. package/amd/TextFieldInput-57f2d560.js +0 -2
  1215. package/amd/_curry3-73b7a4f7.js +0 -2
  1216. package/amd/_has-af025a25.js +0 -2
  1217. package/amd/flexbox-83e878b1.js +0 -2
  1218. package/amd/flexitem-c406a7bb.js +0 -2
  1219. package/amd/keys-7dc8fa94.js +0 -2
@@ -1,2 +1,2 @@
1
- define(["exports","./VirtualizedListView-64a72b62","preact/jsx-runtime","./PRIVATE_List","./List-6a963297","preact/hooks",'module',"./utils/UNSAFE_classNames","./classNames-f9dd69a8","./utils/UNSAFE_mergeProps","./utils/UNSAFE_keys","./LoadMoreCollection-62a53e76","./PRIVATE_Collection","./Collection-937ee8ba","preact","./hooks/UNSAFE_useViewportIntersect","./PRIVATE_VirtualizedCollection","./VirtualizedCollection-fa7f5bb6","./utils/UNSAFE_arrayUtils","./hooks/UNSAFE_useTabbableMode","./UNSAFE_FocusTrap","./FocusTrap-3123561d","preact/compat","./utils/PRIVATE_tabbableUtils","./_curry1-1865bdf8","./_curry2-c82c3af2","./_curry3-73b7a4f7","./hooks/UNSAFE_useId","./hooks/PRIVATE_useSelection","./hooks/PRIVATE_useCurrentKey","./hooks/PRIVATE_useCollectionFocusRing","./hooks/PRIVATE_useTabbableModeSet","./hooks/PRIVATE_useItemAction","./utils/PRIVATE_collectionUtils","./UNSAFE_Skeleton","./Skeleton-82005513","./tslib.es6-d809b4dd","./utils/UNSAFE_interpolations/dimensions","./utils/UNSAFE_size","./utils/UNSAFE_mergeInterpolations","./_has-af025a25","./utils/UNSAFE_interpolations/borders","./UNSAFE_Flex","./Flex-343c337e","./utils/UNSAFE_interpolations/boxalignment","./keys-7dc8fa94","./utils/UNSAFE_interpolations/flexbox","./flexbox-83e878b1","./utils/UNSAFE_interpolations/flexitem","./flexitem-c406a7bb","./UNSAFE_Selector","./index-5dbc066a","./index-efbc9ba1","./UNSAFE_Icon","./Icon-597b4544","./hooks/UNSAFE_useTooltip","./UNSAFE_Floating","./Floating-f251f4e6","./index-c61f0d48","./hooks/UNSAFE_useUser","./UNSAFE_Environment","./UNSAFE_Layer","./utils/PRIVATE_floatingUtils","./utils/PRIVATE_refUtils","./hooks/UNSAFE_useOutsideClick","./hooks/UNSAFE_useHover","./hooks/UNSAFE_useToggle","./hooks/UNSAFE_useFocus","./hooks/UNSAFE_useTouch","./hooks/UNSAFE_useAnimation","./useAnimation-cfb8d533","./hooks/UNSAFE_useTheme","./hooks/UNSAFE_useTranslationBundle"],function(e,o,s,i,t,l,a,u,n,_,r,A,E,c,F,U,S,N,b,d,k,f,h,T,V,p,I,m,x,P,R,g,y,C,L,z,w,M,v,j,O,B,H,K,q,D,G,J,Q,W,X,Y,Z,$,ee,oe,se,ie,te,le,ae,ue,ne,_e,re,Ae,Ee,ce,Fe,Ue,Se,Ne,be){"use strict";e.VirtualizedListView=o.VirtualizedListView,Object.defineProperty(e,"__esModule",{value:!0})});
1
+ define(["exports","./VirtualizedListView-612c968d","preact/jsx-runtime","./PRIVATE_List","./List-25e3fc29","preact/hooks",'module',"./utils/UNSAFE_classNames","./classNames-cbd28834","./utils/UNSAFE_mergeProps","./utils/UNSAFE_keys","./LoadMoreCollection-655042f1","./PRIVATE_Collection","./Collection-cbdbf449","preact","./hooks/UNSAFE_useViewportIntersect","./PRIVATE_VirtualizedCollection","./VirtualizedCollection-12300754","./utils/UNSAFE_arrayUtils","./hooks/UNSAFE_useTabbableMode","./UNSAFE_FocusTrap","./FocusTrap-29ad6889","preact/compat","./utils/PRIVATE_tabbableUtils","./_curry1-8db40d07","./_curry2-cd63f2e8","./_curry3-4f75464d","./hooks/UNSAFE_useId","./hooks/PRIVATE_useSelection","./hooks/PRIVATE_useCurrentKey","./hooks/PRIVATE_useCollectionFocusRing","./hooks/PRIVATE_useTabbableModeSet","./hooks/PRIVATE_useItemAction","./utils/PRIVATE_collectionUtils","./UNSAFE_Skeleton","./Skeleton-f3ee6c8a","./tslib.es6-1f40628c","./utils/UNSAFE_interpolations/dimensions","./utils/UNSAFE_size","./utils/UNSAFE_mergeInterpolations","./_has-de432e95","./utils/UNSAFE_interpolations/borders","./UNSAFE_Flex","./Flex-d69d5143","./utils/UNSAFE_interpolations/boxalignment","./keys-06a9557b","./utils/UNSAFE_interpolations/flexbox","./flexbox-5392cdab","./utils/UNSAFE_interpolations/flexitem","./flexitem-666af748","./UNSAFE_Selector","./index-3c763990","./index-f98775f6","./UNSAFE_Icon","./Icon-1e1b346a","./hooks/UNSAFE_useTooltip","./UNSAFE_Floating","./Floating-370df48b","./index-10802134","./hooks/UNSAFE_useUser","./UNSAFE_Environment","./UNSAFE_Layer","./utils/PRIVATE_floatingUtils","./utils/PRIVATE_refUtils","./hooks/UNSAFE_useOutsideClick","./hooks/UNSAFE_useHover","./hooks/UNSAFE_useToggle","./hooks/UNSAFE_useFocus","./hooks/UNSAFE_useTouch","./hooks/UNSAFE_useAnimation","./useAnimation-e954368d","./hooks/UNSAFE_useTheme","./hooks/UNSAFE_useTranslationBundle"],function(e,o,s,i,t,l,u,n,a,_,r,A,E,c,F,U,S,N,d,k,b,h,T,V,f,p,I,m,x,P,R,g,y,C,L,z,w,M,v,j,O,B,H,K,q,D,G,J,Q,W,X,Y,Z,$,ee,oe,se,ie,te,le,ue,ne,ae,_e,re,Ae,Ee,ce,Fe,Ue,Se,Ne,de){"use strict";e.VirtualizedListView=o.VirtualizedListView,Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_VirtualizedListView.js.map
@@ -1,2 +1,2 @@
1
- define(["exports","preact/jsx-runtime","preact/hooks","./PRIVATE_Collection","./utils/UNSAFE_arrayUtils","./hooks/UNSAFE_useViewportIntersect","./Collection-937ee8ba"],function(e,t,o,n,r,i,l){"use strict";r.stringLiteralArray(["topPlaceholder","bottomPlaceholder"]);const c="oj-collection-placeholder",s=({context:e,placeholderHeight:o})=>{const{fromIndex:n,toIndex:r,which:i,estimateItemSize:l}=e;let s=0;if(o)s=o(e);else{const e=0===l?48:l;s=Math.max(0,r-n)*e}const a="topPlaceholder"===i?"_topPlaceholder":"_bottomPlaceholder",d={height:s+"px"};return 0===s&&(d.display="none"),t.jsx("div",{className:c,style:d},a)};function a(e){return function({itemSize:t,viewportHeight:o,scrollOffset:n,overscan:r=0}){if(void 0===t||0===t||void 0===o||void 0===n)return{offset:0,count:e};const i=Math.ceil(n/t),l=Math.ceil(o/t);return{offset:Math.max(0,i-r),count:l+r*(i>0?2:1)}}}const d=(e,t,o,n,r)=>{let i,l;if(e&&t){const o=t.getBoundingClientRect(),n=(e=>{let t,o;if(e===document.documentElement)t=0,o=document.documentElement.clientHeight;else{const n=e.getBoundingClientRect();t=n.top,o=n.bottom}return{top:t,bottom:o}})(e);o&&n&&(i=n.top-o.top-1,l=n.bottom-n.top+1)}if(void 0!==i&&void 0!==l){return n({scrollOffset:i,viewportHeight:l,overscan:o,itemSize:r})}return null},u="oj-collection-loadmore",h=a(25);e.PLACEHOLDER_STYLE_CLASS=c,e.VirtualizedCollection=function({data:e,children:n,viewportConfig:r,itemSelector:c,placeholderHeight:a,rangeExtractor:f=h,overscan:m=1,onLoadRange:g,loadMoreIndicator:p,suggestions:x}){var v,j;const S=o.useRef(null),I=o.useRef(0);if(i.useViewportIntersect(r,1,".oj-collection-loadmore, .oj-collection-placeholder",()=>{var e;const t=d(r.scroller(),S.current,m,f,null!==(e=I.current)&&void 0!==e?e:0);t&&g(t)}),o.useEffect(()=>{if(0===I.current){let e=0;const t=S.current.querySelectorAll(c);t.length>0&&(t.forEach(t=>{e+=t.offsetHeight}),I.current=e/t.length)}}),!(e&&(E=e,E&&E.data&&E.offset>=0&&E.totalSize>=0)))return t.jsx("div",{ref:S});var E;const b=e.data,z=e.offset,P=z+b.length,w=e.totalSize,C=z>=0?{fromIndex:0,toIndex:z,which:"topPlaceholder",estimateItemSize:null!==(v=I.current)&&void 0!==v?v:0}:void 0,H=P&&P<=w?{fromIndex:P,toIndex:w,which:"bottomPlaceholder",estimateItemSize:null!==(j=I.current)&&void 0!==j?j:0}:void 0,R=p&&"atLeast"===e.sizePrecision&&P<=w;return t.jsxs("div",Object.assign({ref:S,style:"will-change: contents"},{children:[x,C&&t.jsx(s,{context:C,placeholderHeight:a}),t.jsx(l.Collection,Object.assign({items:b},{children:(A=z,e=>{const t={index:A+e.index,data:e.data};return n(t)})})),H&&t.jsx(s,{context:H,placeholderHeight:a}),R&&t.jsx("div",Object.assign({class:u},{children:p}))]}));var A},e.getVirtualizedRangeExtractor=a});
2
- //# sourceMappingURL=VirtualizedCollection-fa7f5bb6.js.map
1
+ define(["exports","preact/jsx-runtime","preact/hooks","./PRIVATE_Collection","./utils/UNSAFE_arrayUtils","./hooks/UNSAFE_useViewportIntersect","./Collection-cbdbf449"],function(e,t,o,n,r,i,l){"use strict";r.stringLiteralArray(["topPlaceholder","bottomPlaceholder"]);const c="oj-collection-placeholder",s=({context:e,placeholderHeight:o})=>{const{fromIndex:n,toIndex:r,which:i,estimateItemSize:l}=e;let s=0;if(o)s=o(e);else{const e=0===l?48:l;s=Math.max(0,r-n)*e}const a="topPlaceholder"===i?"_topPlaceholder":"_bottomPlaceholder",d={height:s+"px"};return 0===s&&(d.display="none"),t.jsx("div",{className:c,style:d},a)};function a(e){return function({itemSize:t,viewportHeight:o,scrollOffset:n,overscan:r=0}){if(void 0===t||0===t||void 0===o||void 0===n)return{offset:0,count:e};const i=Math.ceil(n/t),l=Math.ceil(o/t);return{offset:Math.max(0,i-r),count:l+r*(i>0?2:1)}}}const d=(e,t,o,n,r)=>{let i,l;if(e&&t){const o=t.getBoundingClientRect(),n=(e=>{let t,o;if(e===document.documentElement)t=0,o=document.documentElement.clientHeight;else{const n=e.getBoundingClientRect();t=n.top,o=n.bottom}return{top:t,bottom:o}})(e);o&&n&&(i=n.top-o.top-1,l=n.bottom-n.top+1)}if(void 0!==i&&void 0!==l){return n({scrollOffset:i,viewportHeight:l,overscan:o,itemSize:r})}return null},u="oj-collection-loadmore",h=a(25);e.PLACEHOLDER_STYLE_CLASS=c,e.VirtualizedCollection=function({data:e,children:n,viewportConfig:r,itemSelector:c,placeholderHeight:a,rangeExtractor:f=h,overscan:m=1,onLoadRange:g,loadMoreIndicator:p,suggestions:x}){var v,j;const S=o.useRef(null),I=o.useRef(0);if(i.useViewportIntersect(r,1,".oj-collection-loadmore, .oj-collection-placeholder",()=>{var e;const t=d(r.scroller(),S.current,m,f,null!==(e=I.current)&&void 0!==e?e:0);t&&g(t)}),o.useEffect(()=>{if(0===I.current){let e=0;const t=S.current.querySelectorAll(c);t.length>0&&(t.forEach(t=>{e+=t.offsetHeight}),I.current=e/t.length)}}),!(e&&(E=e,E&&E.data&&E.offset>=0&&E.totalSize>=0)))return t.jsx("div",{ref:S});var E;const b=e.data,z=e.offset,P=z+b.length,w=e.totalSize,C=z>=0?{fromIndex:0,toIndex:z,which:"topPlaceholder",estimateItemSize:null!==(v=I.current)&&void 0!==v?v:0}:void 0,H=P&&P<=w?{fromIndex:P,toIndex:w,which:"bottomPlaceholder",estimateItemSize:null!==(j=I.current)&&void 0!==j?j:0}:void 0,R=p&&"atLeast"===e.sizePrecision&&P<=w;return t.jsxs("div",Object.assign({ref:S,style:"will-change: contents"},{children:[x,C&&t.jsx(s,{context:C,placeholderHeight:a}),t.jsx(l.Collection,Object.assign({items:b},{children:(A=z,e=>{const t={index:A+e.index,data:e.data};return n(t)})})),H&&t.jsx(s,{context:H,placeholderHeight:a}),R&&t.jsx("div",Object.assign({class:u},{children:p}))]}));var A},e.getVirtualizedRangeExtractor=a});
2
+ //# sourceMappingURL=VirtualizedCollection-12300754.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualizedCollection-fa7f5bb6.js","sources":["../../src/PRIVATE_VirtualizedCollection/Placeholder.tsx","../../src/PRIVATE_VirtualizedCollection/VirtualizedCollection.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { JSX } from 'preact';\nimport { stringLiteralArray } from '../utils/UNSAFE_arrayUtils';\n\nexport const placeholderTypes = stringLiteralArray(['topPlaceholder', 'bottomPlaceholder']);\n/**\n * Type of placeholder (top which is before the data content and bottom which is after the data content)\n */\nexport type PlaceholderType = typeof placeholderTypes[number];\n\n/**\n * Context object which is pass to the placeholderHeight function callback\n */\nexport type PlaceholderContext = {\n fromIndex: number;\n toIndex: number;\n estimateItemSize: number;\n which: PlaceholderType;\n};\n\nexport const PLACEHOLDER_STYLE_CLASS = 'oj-collection-placeholder';\n\nconst DEFAULT_PLACEHOLDER_SIZE = 48; // min-height defined in Redwood spec for item\nconst TOP_PLACEHOLDER_KEY = '_topPlaceholder';\nconst BOTTOM_PLACEHOLDER_KEY = '_bottomPlaceholder';\n\ntype Props = {\n context: PlaceholderContext;\n placeholderHeight?: (context: PlaceholderContext) => number;\n};\n\n/**\n * A component that renders placeholder which is used internally by VirtualizeViewportCollection\n */\nexport const Placeholder = ({ context, placeholderHeight }: Props) => {\n const { fromIndex, toIndex, which, estimateItemSize } = context;\n let totalHeight = 0;\n if (placeholderHeight) {\n totalHeight = placeholderHeight(context);\n } else {\n const placeholderUnitHeight =\n estimateItemSize === 0 ? DEFAULT_PLACEHOLDER_SIZE : estimateItemSize;\n totalHeight = Math.max(0, toIndex - fromIndex) * placeholderUnitHeight;\n }\n\n const key = which === 'topPlaceholder' ? TOP_PLACEHOLDER_KEY : BOTTOM_PLACEHOLDER_KEY;\n const style: JSX.CSSProperties = { height: totalHeight + 'px' };\n if (totalHeight === 0) {\n style.display = 'none';\n }\n return <div key={key} className={PLACEHOLDER_STYLE_CLASS} style={style}></div>;\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 */\nimport { RefObject, ComponentChildren } from 'preact';\nimport { useEffect, useRef } from 'preact/hooks';\nimport { DataState, ItemContext, Range, Metadata, ViewportInfo } from '../UNSAFE_Collection';\nimport { Collection } from '../PRIVATE_Collection';\nimport {\n Placeholder,\n PlaceholderContext,\n PlaceholderType,\n PLACEHOLDER_STYLE_CLASS\n} from './Placeholder';\nimport { useViewportIntersect, ViewportConfig } from '../hooks/UNSAFE_useViewportIntersect';\n\n/**\n * Props for the VirtualizedCollection component\n */\ntype Props<K, D> = {\n /**\n * A DataState object that provide information including data and metadata to the VirtualizedCollection.\n */\n data: DataState<K, D> | null;\n\n /**\n * Renderer callback used to render each item\n */\n children: (context: ItemContext<{ data: D; metadata: Metadata<K> }>) => ComponentChildren;\n\n /**\n * Callback to calculate placeholder height\n */\n placeholderHeight?: (context: PlaceholderContext) => number;\n\n /**\n * Viewport configuration including specifying the element which is used to determine what range\n * of data to render\n */\n viewportConfig: ViewportConfig;\n\n /**\n * The selector string to identify the children items\n */\n itemSelector: string;\n\n /**\n * Callback function to handle when viewport has changed, including the case\n * where user scrolls to the end of the component and there are more items to load.\n * The function should sets a new DataState on the component for the specified range.\n */\n onLoadRange: (range: Range) => void;\n\n /**\n * The number of additional items to render before and after the current viewport. This is\n * mainly used for performance tuning. Increase the overscan will result in less frequent\n * rendering when scroll but at the same time each render will take longer depending on the\n * item content.\n */\n overscan?: number;\n\n /**\n * Optionally provide a custom callback to return the range to render based on viewport info\n */\n rangeExtractor?: (info: ViewportInfo) => Range;\n\n /**\n * Optionally specify the custom load more indicator\n */\n loadMoreIndicator?: ComponentChildren;\n\n /**\n * Optionally provide the suggestion indicator sparkle\n */\n suggestions?: ComponentChildren;\n};\n\n/**\n * A function that returns the default range extractor\n * @param fetchSize\n */\nexport function getVirtualizedRangeExtractor(fetchSize: number) {\n return function ({ itemSize, viewportHeight, scrollOffset, overscan = 0 }: ViewportInfo): Range {\n // if any of these is missing then return default initial range\n if (\n itemSize === undefined ||\n itemSize === 0 ||\n viewportHeight === undefined ||\n scrollOffset === undefined\n ) {\n return { offset: 0, count: fetchSize };\n }\n const offset = Math.ceil(scrollOffset / itemSize);\n const count = Math.ceil(viewportHeight / itemSize);\n return {\n offset: Math.max(0, offset - overscan),\n count: count + overscan * (offset > 0 ? 2 : 1)\n };\n };\n}\n\n/**\n * Helper function to find the top and bottom of an element relative to the viewport\n * @param elem\n */\nconst getElementTopBottom = (elem: HTMLElement): { top: number; bottom: number } => {\n let top;\n let bottom;\n if (elem === document.documentElement) {\n top = 0;\n bottom = document.documentElement.clientHeight;\n } else {\n const scrollerBounds = elem.getBoundingClientRect();\n top = scrollerBounds.top;\n bottom = scrollerBounds.bottom;\n }\n return { top, bottom };\n};\n\nconst isDataStateValid = <K, D>(dataState: DataState<K, D>) => {\n return dataState && dataState.data && dataState.offset >= 0 && dataState.totalSize >= 0;\n};\n\nconst DEFAULT_MARGIN = 1;\n\n/**\n * Returns the range for the current viewport\n */\nconst getViewportRange = (\n scroller: HTMLElement | null,\n root: HTMLElement,\n overscan: number,\n rangeExtractor: (info: ViewportInfo) => Range,\n estimateItemSize: number\n) => {\n let scrollOffset;\n let viewportHeight;\n\n if (scroller && root) {\n const rootRect = root.getBoundingClientRect();\n const viewportRect = getElementTopBottom(scroller);\n if (rootRect && viewportRect) {\n scrollOffset = viewportRect.top - rootRect.top - DEFAULT_MARGIN;\n viewportHeight = viewportRect.bottom - viewportRect.top + DEFAULT_MARGIN;\n }\n }\n\n if (scrollOffset !== undefined && viewportHeight !== undefined) {\n // figure out what the new range should be\n const range = rangeExtractor({\n scrollOffset,\n viewportHeight,\n overscan: overscan,\n itemSize: estimateItemSize\n });\n\n return range;\n }\n return null;\n};\n\nconst DEFAULT_OVERSCAN = 1;\nconst DEFAULT_END_INDEX = 25; // match default fetch size\nconst LOADMORE_STYLE_CLASS = 'oj-collection-loadmore';\nconst LOAD_MORE_AND_PLACEHOLDER_SELECTOR = `.${LOADMORE_STYLE_CLASS}, .${PLACEHOLDER_STYLE_CLASS}`;\nconst DEFAULT_RANGE_EXTRACTOR = getVirtualizedRangeExtractor(DEFAULT_END_INDEX);\n\n/**\n * Component that only render items in the specified viewport.\n * @param props\n */\nexport function VirtualizedCollection<K, D>({\n data,\n children,\n viewportConfig,\n itemSelector,\n placeholderHeight,\n rangeExtractor = DEFAULT_RANGE_EXTRACTOR,\n overscan = DEFAULT_OVERSCAN,\n onLoadRange,\n loadMoreIndicator,\n suggestions\n}: Props<K, D>) {\n const rootRef: RefObject<any> = useRef<HTMLElement>(null);\n const estimateItemSizeRef: RefObject<number> = useRef(0);\n\n // detect if viewport has changed and it needs to re-render based on a new range\n useViewportIntersect(viewportConfig, DEFAULT_MARGIN, LOAD_MORE_AND_PLACEHOLDER_SELECTOR, () => {\n const range = getViewportRange(\n viewportConfig.scroller(),\n rootRef.current,\n overscan,\n rangeExtractor,\n estimateItemSizeRef.current ?? 0\n );\n if (range) {\n onLoadRange(range);\n }\n });\n\n // calculate average item height. For now, we'll just do this once, but we can\n // do a rolling average where we'll adjust on every render.\n useEffect(() => {\n if (estimateItemSizeRef.current === 0) {\n let totalHeight = 0;\n const nodes = rootRef.current.querySelectorAll(itemSelector);\n if (nodes.length > 0) {\n nodes.forEach((item: HTMLElement) => {\n totalHeight += item.offsetHeight;\n });\n estimateItemSizeRef.current = totalHeight / nodes.length;\n }\n }\n });\n\n // override itemRenderer to adjust the index\n const _getItemRenderer = (startIndex: number) => {\n // returns a new render function\n return (context: ItemContext<{ data: D; metadata: Metadata<K> }>) => {\n const itemContext: ItemContext<{ data: D; metadata: Metadata<K> }> = {\n index: startIndex + context.index,\n data: context.data\n };\n return children(itemContext);\n };\n };\n\n // if DataState is invalid (including not specified), just render blank\n if (!data || !isDataStateValid(data)) {\n return <div ref={rootRef} />;\n }\n\n const rangeData = data.data;\n const offset = data.offset;\n const endIndex = offset + rangeData.length;\n const itemCount = data.totalSize;\n const topPlaceholderContext =\n offset >= 0\n ? {\n fromIndex: 0,\n toIndex: offset,\n which: 'topPlaceholder' as PlaceholderType,\n estimateItemSize: estimateItemSizeRef.current ?? 0\n }\n : undefined;\n const bottomPlaceholderContext =\n endIndex && endIndex <= itemCount\n ? {\n fromIndex: endIndex,\n toIndex: itemCount,\n which: 'bottomPlaceholder' as PlaceholderType,\n estimateItemSize: estimateItemSizeRef.current ?? 0\n }\n : undefined;\n\n const renderLoadMore =\n loadMoreIndicator && data.sizePrecision === 'atLeast' && endIndex <= itemCount;\n\n // might need to support elementType prop in the future to allow customization of what\n // type of element to render for the root\n return (\n <div ref={rootRef} style=\"will-change: contents\">\n {suggestions}\n {topPlaceholderContext && (\n <Placeholder\n context={topPlaceholderContext}\n placeholderHeight={placeholderHeight}></Placeholder>\n )}\n <Collection items={rangeData}>{_getItemRenderer(offset)}</Collection>\n {bottomPlaceholderContext && (\n <Placeholder\n context={bottomPlaceholderContext}\n placeholderHeight={placeholderHeight}></Placeholder>\n )}\n {renderLoadMore && <div class={LOADMORE_STYLE_CLASS}>{loadMoreIndicator}</div>}\n </div>\n );\n}\n"],"names":["stringLiteralArray","PLACEHOLDER_STYLE_CLASS","Placeholder","context","placeholderHeight","fromIndex","toIndex","which","estimateItemSize","totalHeight","placeholderUnitHeight","Math","max","key","style","height","display","_jsx","jsx","className","getVirtualizedRangeExtractor","fetchSize","itemSize","viewportHeight","scrollOffset","overscan","undefined","offset","count","ceil","getViewportRange","scroller","root","rangeExtractor","rootRect","getBoundingClientRect","viewportRect","elem","top","bottom","document","documentElement","clientHeight","scrollerBounds","getElementTopBottom","LOADMORE_STYLE_CLASS","DEFAULT_RANGE_EXTRACTOR","data","children","viewportConfig","itemSelector","onLoadRange","loadMoreIndicator","suggestions","rootRef","useRef","estimateItemSizeRef","useViewportIntersect","range","current","_a","useEffect","nodes","querySelectorAll","length","forEach","item","offsetHeight","dataState","totalSize","ref","rangeData","endIndex","itemCount","topPlaceholderContext","bottomPlaceholderContext","_b","renderLoadMore","sizePrecision","_jsxs","jsxs","Object","assign","Collection","items","startIndex","itemContext","index","class"],"mappings":"6MAUgCA,EAAAA,mBAAmB,CAAC,iBAAkB,sBAA/D,MAgBMC,EAA0B,4BAc1BC,EAAc,EAAGC,QAAAA,EAASC,kBAAAA,MACrC,MAAMC,UAAEA,EAASC,QAAEA,EAAOC,MAAEA,EAAKC,iBAAEA,GAAqBL,EACxD,IAAIM,EAAc,EAClB,GAAIL,EACFK,EAAcL,EAAkBD,OAC3B,CACL,MAAMO,EACiB,IAArBF,EAnB2B,GAmByBA,EACtDC,EAAcE,KAAKC,IAAI,EAAGN,EAAUD,GAAaK,EAGnD,MAAMG,EAAgB,mBAAVN,EAtBc,kBACG,qBAsBvBO,EAA2B,CAAEC,OAAQN,EAAc,MAIzD,OAHoB,IAAhBA,IACFK,EAAME,QAAU,QAEXC,EAAAC,IAAA,MAAA,CAAeC,UAAWlB,EAAyBa,MAAOA,GAAhDD,IC4Bb,SAAUO,EAA6BC,GAC3C,OAAO,UAAUC,SAAEA,EAAQC,eAAEA,EAAcC,aAAEA,EAAYC,SAAEA,EAAW,IAEpE,QACeC,IAAbJ,GACa,IAAbA,QACmBI,IAAnBH,QACiBG,IAAjBF,EAEA,MAAO,CAAEG,OAAQ,EAAGC,MAAOP,GAE7B,MAAMM,EAAShB,KAAKkB,KAAKL,EAAeF,GAClCM,EAAQjB,KAAKkB,KAAKN,EAAiBD,GACzC,MAAO,CACLK,OAAQhB,KAAKC,IAAI,EAAGe,EAASF,GAC7BG,MAAOA,EAAQH,GAAYE,EAAS,EAAI,EAAI,KASlD,MAuBMG,EAAmB,CACvBC,EACAC,EACAP,EACAQ,EACAzB,KAEA,IAAIgB,EACAD,EAEJ,GAAIQ,GAAYC,EAAM,CACpB,MAAME,EAAWF,EAAKG,wBAChBC,EAnCkB,CAACC,IAC3B,IAAIC,EACAC,EACJ,GAAIF,IAASG,SAASC,gBACpBH,EAAM,EACNC,EAASC,SAASC,gBAAgBC,iBAC7B,CACL,MAAMC,EAAiBN,EAAKF,wBAC5BG,EAAMK,EAAeL,IACrBC,EAASI,EAAeJ,OAE1B,MAAO,CAAED,IAAAA,EAAKC,OAAAA,IAwBSK,CAAoBb,GACrCG,GAAYE,IACdZ,EAAeY,EAAaE,IAAMJ,EAASI,IAnB1B,EAoBjBf,EAAiBa,EAAaG,OAASH,EAAaE,IApBnC,GAwBrB,QAAqBZ,IAAjBF,QAAiDE,IAAnBH,EAA8B,CAS9D,OAPcU,EAAe,CAC3BT,aAAAA,EACAD,eAAAA,EACAE,SAAUA,EACVH,SAAUd,IAKd,OAAO,MAKHqC,EAAuB,yBAEvBC,EAA0B1B,EAHN,wDASpB,UAAsC2B,KAC1CA,EAAIC,SACJA,EAAQC,eACRA,EAAcC,aACdA,EAAY9C,kBACZA,EAAiB6B,eACjBA,EAAiBa,EAAuBrB,SACxCA,EAjBuB,EAiBI0B,YAC3BA,EAAWC,kBACXA,EAAiBC,YACjBA,YAEA,MAAMC,EAA0BC,SAAoB,MAC9CC,EAAyCD,SAAO,GA4CtD,GAzCAE,EAAAA,qBAAqBR,EAhEA,EAyCoB,sDAuBgD,WACvF,MAAMS,EAAQ5B,EACZmB,EAAelB,WACfuB,EAAQK,QACRlC,EACAQ,EAC2B,QAA3B2B,EAAAJ,EAAoBG,eAAO,IAAAC,EAAAA,EAAI,GAE7BF,GACFP,EAAYO,KAMhBG,EAAAA,UAAU,KACR,GAAoC,IAAhCL,EAAoBG,QAAe,CACrC,IAAIlD,EAAc,EAClB,MAAMqD,EAAQR,EAAQK,QAAQI,iBAAiBb,GAC3CY,EAAME,OAAS,IACjBF,EAAMG,QAASC,IACbzD,GAAeyD,EAAKC,eAEtBX,EAAoBG,QAAUlD,EAAcqD,EAAME,aAkBnDjB,IA7GyBqB,EA6GCrB,EA5GxBqB,GAAaA,EAAUrB,MAAQqB,EAAUzC,QAAU,GAAKyC,EAAUC,WAAa,IA6GpF,OAAOpD,EAAKC,IAAA,MAAA,CAAAoD,IAAKhB,IA9GI,IAAOc,EAiH9B,MAAMG,EAAYxB,EAAKA,KACjBpB,EAASoB,EAAKpB,OACd6C,EAAW7C,EAAS4C,EAAUP,OAC9BS,EAAY1B,EAAKsB,UACjBK,EACJ/C,GAAU,EACN,CACEtB,UAAW,EACXC,QAASqB,EACTpB,MAAO,iBACPC,yBAAkBoD,EAAAJ,EAAoBG,uBAAW,QAEnDjC,EACAiD,EACJH,GAAYA,GAAYC,EACpB,CACEpE,UAAWmE,EACXlE,QAASmE,EACTlE,MAAO,oBACPC,yBAAkBoE,EAAApB,EAAoBG,uBAAW,QAEnDjC,EAEAmD,EACJzB,GAA4C,YAAvBL,EAAK+B,eAA+BN,GAAYC,EAIvE,OACEM,EAAAC,KAAA,MAAAC,OAAAC,OAAA,CAAKZ,IAAKhB,EAASxC,MAAM,yBACtB,CAAAkC,SAAA,CAAAK,EACAqB,GACCzD,MAACf,EAAW,CACVC,QAASuE,EACTtE,kBAAmBA,IAEvBa,EAAAA,IAACkE,EAAAA,WAAUF,OAAAC,OAAA,CAACE,MAAOb,GAAY,CAAAvB,UApDTqC,EAoD0B1D,EAlD1CxB,IACN,MAAMmF,EAA+D,CACnEC,MAAOF,EAAalF,EAAQoF,MAC5BxC,KAAM5C,EAAQ4C,MAEhB,OAAOC,EAASsC,QA8CfX,GACC1D,MAACf,EAAW,CACVC,QAASwE,EACTvE,kBAAmBA,IAEtByE,GAAkB5D,EAAKC,IAAA,MAAA+D,OAAAC,OAAA,CAAAM,MAAO3C,GAAuB,CAAAG,SAAAI,SA1DjC,IAACiC"}
1
+ {"version":3,"file":"VirtualizedCollection-12300754.js","sources":["../../src/PRIVATE_VirtualizedCollection/Placeholder.tsx","../../src/PRIVATE_VirtualizedCollection/VirtualizedCollection.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { JSX } from 'preact';\nimport { stringLiteralArray } from '../utils/UNSAFE_arrayUtils';\n\nexport const placeholderTypes = stringLiteralArray(['topPlaceholder', 'bottomPlaceholder']);\n/**\n * Type of placeholder (top which is before the data content and bottom which is after the data content)\n */\nexport type PlaceholderType = typeof placeholderTypes[number];\n\n/**\n * Context object which is pass to the placeholderHeight function callback\n */\nexport type PlaceholderContext = {\n fromIndex: number;\n toIndex: number;\n estimateItemSize: number;\n which: PlaceholderType;\n};\n\nexport const PLACEHOLDER_STYLE_CLASS = 'oj-collection-placeholder';\n\nconst DEFAULT_PLACEHOLDER_SIZE = 48; // min-height defined in Redwood spec for item\nconst TOP_PLACEHOLDER_KEY = '_topPlaceholder';\nconst BOTTOM_PLACEHOLDER_KEY = '_bottomPlaceholder';\n\ntype Props = {\n context: PlaceholderContext;\n placeholderHeight?: (context: PlaceholderContext) => number;\n};\n\n/**\n * A component that renders placeholder which is used internally by VirtualizeViewportCollection\n */\nexport const Placeholder = ({ context, placeholderHeight }: Props) => {\n const { fromIndex, toIndex, which, estimateItemSize } = context;\n let totalHeight = 0;\n if (placeholderHeight) {\n totalHeight = placeholderHeight(context);\n } else {\n const placeholderUnitHeight =\n estimateItemSize === 0 ? DEFAULT_PLACEHOLDER_SIZE : estimateItemSize;\n totalHeight = Math.max(0, toIndex - fromIndex) * placeholderUnitHeight;\n }\n\n const key = which === 'topPlaceholder' ? TOP_PLACEHOLDER_KEY : BOTTOM_PLACEHOLDER_KEY;\n const style: JSX.CSSProperties = { height: totalHeight + 'px' };\n if (totalHeight === 0) {\n style.display = 'none';\n }\n return <div key={key} className={PLACEHOLDER_STYLE_CLASS} style={style}></div>;\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 */\nimport { RefObject, ComponentChildren } from 'preact';\nimport { useEffect, useRef } from 'preact/hooks';\nimport { DataState, ItemContext, Range, Metadata, ViewportInfo } from '../UNSAFE_Collection';\nimport { Collection } from '../PRIVATE_Collection';\nimport {\n Placeholder,\n PlaceholderContext,\n PlaceholderType,\n PLACEHOLDER_STYLE_CLASS\n} from './Placeholder';\nimport { useViewportIntersect, ViewportConfig } from '../hooks/UNSAFE_useViewportIntersect';\n\n/**\n * Props for the VirtualizedCollection component\n */\ntype Props<K, D> = {\n /**\n * A DataState object that provide information including data and metadata to the VirtualizedCollection.\n */\n data: DataState<K, D> | null;\n\n /**\n * Renderer callback used to render each item\n */\n children: (context: ItemContext<{ data: D; metadata: Metadata<K> }>) => ComponentChildren;\n\n /**\n * Callback to calculate placeholder height\n */\n placeholderHeight?: (context: PlaceholderContext) => number;\n\n /**\n * Viewport configuration including specifying the element which is used to determine what range\n * of data to render\n */\n viewportConfig: ViewportConfig;\n\n /**\n * The selector string to identify the children items\n */\n itemSelector: string;\n\n /**\n * Callback function to handle when viewport has changed, including the case\n * where user scrolls to the end of the component and there are more items to load.\n * The function should sets a new DataState on the component for the specified range.\n */\n onLoadRange: (range: Range) => void;\n\n /**\n * The number of additional items to render before and after the current viewport. This is\n * mainly used for performance tuning. Increase the overscan will result in less frequent\n * rendering when scroll but at the same time each render will take longer depending on the\n * item content.\n */\n overscan?: number;\n\n /**\n * Optionally provide a custom callback to return the range to render based on viewport info\n */\n rangeExtractor?: (info: ViewportInfo) => Range;\n\n /**\n * Optionally specify the custom load more indicator\n */\n loadMoreIndicator?: ComponentChildren;\n\n /**\n * Optionally provide the suggestion indicator sparkle\n */\n suggestions?: ComponentChildren;\n};\n\n/**\n * A function that returns the default range extractor\n * @param fetchSize\n */\nexport function getVirtualizedRangeExtractor(fetchSize: number) {\n return function ({ itemSize, viewportHeight, scrollOffset, overscan = 0 }: ViewportInfo): Range {\n // if any of these is missing then return default initial range\n if (\n itemSize === undefined ||\n itemSize === 0 ||\n viewportHeight === undefined ||\n scrollOffset === undefined\n ) {\n return { offset: 0, count: fetchSize };\n }\n const offset = Math.ceil(scrollOffset / itemSize);\n const count = Math.ceil(viewportHeight / itemSize);\n return {\n offset: Math.max(0, offset - overscan),\n count: count + overscan * (offset > 0 ? 2 : 1)\n };\n };\n}\n\n/**\n * Helper function to find the top and bottom of an element relative to the viewport\n * @param elem\n */\nconst getElementTopBottom = (elem: HTMLElement): { top: number; bottom: number } => {\n let top;\n let bottom;\n if (elem === document.documentElement) {\n top = 0;\n bottom = document.documentElement.clientHeight;\n } else {\n const scrollerBounds = elem.getBoundingClientRect();\n top = scrollerBounds.top;\n bottom = scrollerBounds.bottom;\n }\n return { top, bottom };\n};\n\nconst isDataStateValid = <K, D>(dataState: DataState<K, D>) => {\n return dataState && dataState.data && dataState.offset >= 0 && dataState.totalSize >= 0;\n};\n\nconst DEFAULT_MARGIN = 1;\n\n/**\n * Returns the range for the current viewport\n */\nconst getViewportRange = (\n scroller: HTMLElement | null,\n root: HTMLElement,\n overscan: number,\n rangeExtractor: (info: ViewportInfo) => Range,\n estimateItemSize: number\n) => {\n let scrollOffset;\n let viewportHeight;\n\n if (scroller && root) {\n const rootRect = root.getBoundingClientRect();\n const viewportRect = getElementTopBottom(scroller);\n if (rootRect && viewportRect) {\n scrollOffset = viewportRect.top - rootRect.top - DEFAULT_MARGIN;\n viewportHeight = viewportRect.bottom - viewportRect.top + DEFAULT_MARGIN;\n }\n }\n\n if (scrollOffset !== undefined && viewportHeight !== undefined) {\n // figure out what the new range should be\n const range = rangeExtractor({\n scrollOffset,\n viewportHeight,\n overscan: overscan,\n itemSize: estimateItemSize\n });\n\n return range;\n }\n return null;\n};\n\nconst DEFAULT_OVERSCAN = 1;\nconst DEFAULT_END_INDEX = 25; // match default fetch size\nconst LOADMORE_STYLE_CLASS = 'oj-collection-loadmore';\nconst LOAD_MORE_AND_PLACEHOLDER_SELECTOR = `.${LOADMORE_STYLE_CLASS}, .${PLACEHOLDER_STYLE_CLASS}`;\nconst DEFAULT_RANGE_EXTRACTOR = getVirtualizedRangeExtractor(DEFAULT_END_INDEX);\n\n/**\n * Component that only render items in the specified viewport.\n * @param props\n */\nexport function VirtualizedCollection<K, D>({\n data,\n children,\n viewportConfig,\n itemSelector,\n placeholderHeight,\n rangeExtractor = DEFAULT_RANGE_EXTRACTOR,\n overscan = DEFAULT_OVERSCAN,\n onLoadRange,\n loadMoreIndicator,\n suggestions\n}: Props<K, D>) {\n const rootRef: RefObject<any> = useRef<HTMLElement>(null);\n const estimateItemSizeRef: RefObject<number> = useRef(0);\n\n // detect if viewport has changed and it needs to re-render based on a new range\n useViewportIntersect(viewportConfig, DEFAULT_MARGIN, LOAD_MORE_AND_PLACEHOLDER_SELECTOR, () => {\n const range = getViewportRange(\n viewportConfig.scroller(),\n rootRef.current,\n overscan,\n rangeExtractor,\n estimateItemSizeRef.current ?? 0\n );\n if (range) {\n onLoadRange(range);\n }\n });\n\n // calculate average item height. For now, we'll just do this once, but we can\n // do a rolling average where we'll adjust on every render.\n useEffect(() => {\n if (estimateItemSizeRef.current === 0) {\n let totalHeight = 0;\n const nodes = rootRef.current.querySelectorAll(itemSelector);\n if (nodes.length > 0) {\n nodes.forEach((item: HTMLElement) => {\n totalHeight += item.offsetHeight;\n });\n estimateItemSizeRef.current = totalHeight / nodes.length;\n }\n }\n });\n\n // override itemRenderer to adjust the index\n const _getItemRenderer = (startIndex: number) => {\n // returns a new render function\n return (context: ItemContext<{ data: D; metadata: Metadata<K> }>) => {\n const itemContext: ItemContext<{ data: D; metadata: Metadata<K> }> = {\n index: startIndex + context.index,\n data: context.data\n };\n return children(itemContext);\n };\n };\n\n // if DataState is invalid (including not specified), just render blank\n if (!data || !isDataStateValid(data)) {\n return <div ref={rootRef} />;\n }\n\n const rangeData = data.data;\n const offset = data.offset;\n const endIndex = offset + rangeData.length;\n const itemCount = data.totalSize;\n const topPlaceholderContext =\n offset >= 0\n ? {\n fromIndex: 0,\n toIndex: offset,\n which: 'topPlaceholder' as PlaceholderType,\n estimateItemSize: estimateItemSizeRef.current ?? 0\n }\n : undefined;\n const bottomPlaceholderContext =\n endIndex && endIndex <= itemCount\n ? {\n fromIndex: endIndex,\n toIndex: itemCount,\n which: 'bottomPlaceholder' as PlaceholderType,\n estimateItemSize: estimateItemSizeRef.current ?? 0\n }\n : undefined;\n\n const renderLoadMore =\n loadMoreIndicator && data.sizePrecision === 'atLeast' && endIndex <= itemCount;\n\n // might need to support elementType prop in the future to allow customization of what\n // type of element to render for the root\n return (\n <div ref={rootRef} style=\"will-change: contents\">\n {suggestions}\n {topPlaceholderContext && (\n <Placeholder\n context={topPlaceholderContext}\n placeholderHeight={placeholderHeight}></Placeholder>\n )}\n <Collection items={rangeData}>{_getItemRenderer(offset)}</Collection>\n {bottomPlaceholderContext && (\n <Placeholder\n context={bottomPlaceholderContext}\n placeholderHeight={placeholderHeight}></Placeholder>\n )}\n {renderLoadMore && <div class={LOADMORE_STYLE_CLASS}>{loadMoreIndicator}</div>}\n </div>\n );\n}\n"],"names":["stringLiteralArray","PLACEHOLDER_STYLE_CLASS","Placeholder","context","placeholderHeight","fromIndex","toIndex","which","estimateItemSize","totalHeight","placeholderUnitHeight","Math","max","key","style","height","display","_jsx","jsx","className","getVirtualizedRangeExtractor","fetchSize","itemSize","viewportHeight","scrollOffset","overscan","undefined","offset","count","ceil","getViewportRange","scroller","root","rangeExtractor","rootRect","getBoundingClientRect","viewportRect","elem","top","bottom","document","documentElement","clientHeight","scrollerBounds","getElementTopBottom","LOADMORE_STYLE_CLASS","DEFAULT_RANGE_EXTRACTOR","data","children","viewportConfig","itemSelector","onLoadRange","loadMoreIndicator","suggestions","rootRef","useRef","estimateItemSizeRef","useViewportIntersect","range","current","_a","useEffect","nodes","querySelectorAll","length","forEach","item","offsetHeight","dataState","totalSize","ref","rangeData","endIndex","itemCount","topPlaceholderContext","bottomPlaceholderContext","_b","renderLoadMore","sizePrecision","_jsxs","jsxs","Object","assign","Collection","items","startIndex","itemContext","index","class"],"mappings":"6MAUgCA,EAAAA,mBAAmB,CAAC,iBAAkB,sBAA/D,MAgBMC,EAA0B,4BAc1BC,EAAc,EAAGC,QAAAA,EAASC,kBAAAA,MACrC,MAAMC,UAAEA,EAASC,QAAEA,EAAOC,MAAEA,EAAKC,iBAAEA,GAAqBL,EACxD,IAAIM,EAAc,EAClB,GAAIL,EACFK,EAAcL,EAAkBD,OAC3B,CACL,MAAMO,EACiB,IAArBF,EAnB2B,GAmByBA,EACtDC,EAAcE,KAAKC,IAAI,EAAGN,EAAUD,GAAaK,EAGnD,MAAMG,EAAgB,mBAAVN,EAtBc,kBACG,qBAsBvBO,EAA2B,CAAEC,OAAQN,EAAc,MAIzD,OAHoB,IAAhBA,IACFK,EAAME,QAAU,QAEXC,EAAAC,IAAA,MAAA,CAAeC,UAAWlB,EAAyBa,MAAOA,GAAhDD,IC4Bb,SAAUO,EAA6BC,GAC3C,OAAO,UAAUC,SAAEA,EAAQC,eAAEA,EAAcC,aAAEA,EAAYC,SAAEA,EAAW,IAEpE,QACeC,IAAbJ,GACa,IAAbA,QACmBI,IAAnBH,QACiBG,IAAjBF,EAEA,MAAO,CAAEG,OAAQ,EAAGC,MAAOP,GAE7B,MAAMM,EAAShB,KAAKkB,KAAKL,EAAeF,GAClCM,EAAQjB,KAAKkB,KAAKN,EAAiBD,GACzC,MAAO,CACLK,OAAQhB,KAAKC,IAAI,EAAGe,EAASF,GAC7BG,MAAOA,EAAQH,GAAYE,EAAS,EAAI,EAAI,KASlD,MAuBMG,EAAmB,CACvBC,EACAC,EACAP,EACAQ,EACAzB,KAEA,IAAIgB,EACAD,EAEJ,GAAIQ,GAAYC,EAAM,CACpB,MAAME,EAAWF,EAAKG,wBAChBC,EAnCkB,CAACC,IAC3B,IAAIC,EACAC,EACJ,GAAIF,IAASG,SAASC,gBACpBH,EAAM,EACNC,EAASC,SAASC,gBAAgBC,iBAC7B,CACL,MAAMC,EAAiBN,EAAKF,wBAC5BG,EAAMK,EAAeL,IACrBC,EAASI,EAAeJ,OAE1B,MAAO,CAAED,IAAAA,EAAKC,OAAAA,IAwBSK,CAAoBb,GACrCG,GAAYE,IACdZ,EAAeY,EAAaE,IAAMJ,EAASI,IAnB1B,EAoBjBf,EAAiBa,EAAaG,OAASH,EAAaE,IApBnC,GAwBrB,QAAqBZ,IAAjBF,QAAiDE,IAAnBH,EAA8B,CAS9D,OAPcU,EAAe,CAC3BT,aAAAA,EACAD,eAAAA,EACAE,SAAUA,EACVH,SAAUd,IAKd,OAAO,MAKHqC,EAAuB,yBAEvBC,EAA0B1B,EAHN,wDASpB,UAAsC2B,KAC1CA,EAAIC,SACJA,EAAQC,eACRA,EAAcC,aACdA,EAAY9C,kBACZA,EAAiB6B,eACjBA,EAAiBa,EAAuBrB,SACxCA,EAjBuB,EAiBI0B,YAC3BA,EAAWC,kBACXA,EAAiBC,YACjBA,YAEA,MAAMC,EAA0BC,SAAoB,MAC9CC,EAAyCD,SAAO,GA4CtD,GAzCAE,EAAAA,qBAAqBR,EAhEA,EAyCoB,sDAuBgD,WACvF,MAAMS,EAAQ5B,EACZmB,EAAelB,WACfuB,EAAQK,QACRlC,EACAQ,EAC2B,QAA3B2B,EAAAJ,EAAoBG,eAAO,IAAAC,EAAAA,EAAI,GAE7BF,GACFP,EAAYO,KAMhBG,EAAAA,UAAU,KACR,GAAoC,IAAhCL,EAAoBG,QAAe,CACrC,IAAIlD,EAAc,EAClB,MAAMqD,EAAQR,EAAQK,QAAQI,iBAAiBb,GAC3CY,EAAME,OAAS,IACjBF,EAAMG,QAASC,IACbzD,GAAeyD,EAAKC,eAEtBX,EAAoBG,QAAUlD,EAAcqD,EAAME,aAkBnDjB,IA7GyBqB,EA6GCrB,EA5GxBqB,GAAaA,EAAUrB,MAAQqB,EAAUzC,QAAU,GAAKyC,EAAUC,WAAa,IA6GpF,OAAOpD,EAAKC,IAAA,MAAA,CAAAoD,IAAKhB,IA9GI,IAAOc,EAiH9B,MAAMG,EAAYxB,EAAKA,KACjBpB,EAASoB,EAAKpB,OACd6C,EAAW7C,EAAS4C,EAAUP,OAC9BS,EAAY1B,EAAKsB,UACjBK,EACJ/C,GAAU,EACN,CACEtB,UAAW,EACXC,QAASqB,EACTpB,MAAO,iBACPC,yBAAkBoD,EAAAJ,EAAoBG,uBAAW,QAEnDjC,EACAiD,EACJH,GAAYA,GAAYC,EACpB,CACEpE,UAAWmE,EACXlE,QAASmE,EACTlE,MAAO,oBACPC,yBAAkBoE,EAAApB,EAAoBG,uBAAW,QAEnDjC,EAEAmD,EACJzB,GAA4C,YAAvBL,EAAK+B,eAA+BN,GAAYC,EAIvE,OACEM,EAAAC,KAAA,MAAAC,OAAAC,OAAA,CAAKZ,IAAKhB,EAASxC,MAAM,yBACtB,CAAAkC,SAAA,CAAAK,EACAqB,GACCzD,MAACf,EAAW,CACVC,QAASuE,EACTtE,kBAAmBA,IAEvBa,EAAAA,IAACkE,EAAAA,WAAUF,OAAAC,OAAA,CAACE,MAAOb,GAAY,CAAAvB,UApDTqC,EAoD0B1D,EAlD1CxB,IACN,MAAMmF,EAA+D,CACnEC,MAAOF,EAAalF,EAAQoF,MAC5BxC,KAAM5C,EAAQ4C,MAEhB,OAAOC,EAASsC,QA8CfX,GACC1D,MAACf,EAAW,CACVC,QAASwE,EACTvE,kBAAmBA,IAEtByE,GAAkB5D,EAAKC,IAAA,MAAA+D,OAAAC,OAAA,CAAAM,MAAO3C,GAAuB,CAAAG,SAAAI,SA1DjC,IAACiC"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/jsx-runtime","./PRIVATE_List","./List-6a963297"],function(i,t,e,s){"use strict";i.VirtualizedListView=function(i){return t.jsx(s.List,Object.assign({},i,{children:i.children}))}});
2
- //# sourceMappingURL=VirtualizedListView-64a72b62.js.map
1
+ define(["exports","preact/jsx-runtime","./PRIVATE_List","./List-25e3fc29"],function(i,t,e,s){"use strict";i.VirtualizedListView=function(i){return t.jsx(s.List,Object.assign({},i,{children:i.children}))}});
2
+ //# sourceMappingURL=VirtualizedListView-612c968d.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualizedListView-64a72b62.js","sources":["../../src/UNSAFE_VirtualizedListView/VirtualizedListView.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 */\nimport { List } from '../PRIVATE_List';\nimport { ListProps } from '../UNSAFE_ListView/List.types';\n\n/**\n * Props for the VirtualizedListView Component\n */\nexport type Props<K, D> = Pick<\n ListProps<K, D>,\n | 'accessibleSummary'\n | 'children'\n | 'currentItemVariant'\n | 'currentKey'\n | 'data'\n | 'gridlines'\n | 'onCurrentKeyChange'\n | 'onItemAction'\n | 'onLoadRange'\n | 'onSelectionChange'\n | 'selectedKeys'\n | 'selectionMode'\n | 'viewportConfig'\n>;\n\n/**\n * Component that renders items as a flat list.\n * In order to maximize performance, only items that are visible in the viewport are rendered.\n */\n\nexport function VirtualizedListView<K extends string | number, D>(props: Props<K, D>) {\n return <List {...props}>{props.children}</List>;\n}\n"],"names":["props","_jsx","List","Object","assign","children"],"mappings":"gIAmCM,SAA4DA,GAChE,OAAOC,MAACC,EAAAA,KAASC,OAAAC,OAAA,GAAAJ,YAAQA,EAAMK"}
1
+ {"version":3,"file":"VirtualizedListView-612c968d.js","sources":["../../src/UNSAFE_VirtualizedListView/VirtualizedListView.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 */\nimport { List } from '../PRIVATE_List';\nimport { ListProps } from '../UNSAFE_ListView/List.types';\n\n/**\n * Props for the VirtualizedListView Component\n */\nexport type Props<K, D> = Pick<\n ListProps<K, D>,\n | 'accessibleSummary'\n | 'children'\n | 'currentItemVariant'\n | 'currentKey'\n | 'data'\n | 'gridlines'\n | 'onCurrentKeyChange'\n | 'onItemAction'\n | 'onLoadRange'\n | 'onSelectionChange'\n | 'selectedKeys'\n | 'selectionMode'\n | 'viewportConfig'\n>;\n\n/**\n * Component that renders items as a flat list.\n * In order to maximize performance, only items that are visible in the viewport are rendered.\n */\n\nexport function VirtualizedListView<K extends string | number, D>(props: Props<K, D>) {\n return <List {...props}>{props.children}</List>;\n}\n"],"names":["props","_jsx","List","Object","assign","children"],"mappings":"gIAmCM,SAA4DA,GAChE,OAAOC,MAACC,EAAAA,KAASC,OAAAC,OAAA,GAAAJ,YAAQA,EAAMK"}
@@ -1,2 +1,2 @@
1
- define(["require","preact/jsx-runtime","@testing-library/preact","preact/hooks","chai","../../UNSAFE_InputPassword","../../UNSAFE_Environment","../../utils/UNSAFE_matchTranslationBundle","../../UNSAFE_InputText","../../UNSAFE_NumberInputText","../../UNSAFE_TextArea","../../UNSAFE_TextAreaAutosize","../../UNSAFE_SelectMultiple","../../UNSAFE_SelectSingle","../../TextArea-5b0671f9","../../TextAreaAutosize-ed0589cf","../../SelectMultiple-1e654222","../../SelectSingle-1af85560","../../NumberInputText-0b71cdfd","preact/compat","../../hooks/UNSAFE_useFocusableTextField","../../tslib.es6-d809b4dd","../../hooks/UNSAFE_useFocusWithin","../../useFocusWithin-369336f7","../../hooks/UNSAFE_useFormContext","preact","../../hooks/UNSAFE_useFormFieldContext","../../hooks/UNSAFE_useTextField","../../hooks/UNSAFE_useId","../../hooks/UNSAFE_useHover","../../hooks/UNSAFE_useToggle","../../UNSAFE_Label","../../utils/UNSAFE_classNames","../../classNames-f9dd69a8",'module',"../../UNSAFE_TextField","../../ReadonlyTextFieldInput-ee580a50","../../hooks/UNSAFE_useTabbableMode","../../utils/UNSAFE_interpolations/text","../../keys-7dc8fa94","../../_curry1-1865bdf8","../../_has-af025a25","../../utils/UNSAFE_mergeInterpolations","../../_curry3-73b7a4f7","../../_curry2-c82c3af2","../../FormControlUtils-3c0aac96","../../hooks/UNSAFE_useTranslationBundle","../../UNSAFE_Layer","../../UNSAFE_LabelValueLayout","../../UNSAFE_Flex","../../Flex-343c337e","../../utils/UNSAFE_interpolations/dimensions","../../utils/UNSAFE_arrayUtils","../../utils/UNSAFE_size","../../utils/UNSAFE_interpolations/boxalignment","../../utils/UNSAFE_interpolations/flexbox","../../flexbox-83e878b1","../../utils/UNSAFE_interpolations/flexitem","../../flexitem-c406a7bb","../../TextFieldInput-57f2d560","../../hooks/UNSAFE_useTextFieldInputHandlers","../../utils/PRIVATE_clientHints","../../clientHints-0a14d5d8","../../hooks/UNSAFE_useDebounce","../../UNSAFE_LiveRegion","../../UNSAFE_UserAssistance","../../InlineHelpSource-466d3759","../../UNSAFE_ComponentMessage","../../ComponentMessage-3fae5a5b","../../PRIVATE_Message","../../utils/PRIVATE_timer","../../MessageCloseButton-2ab50565","../../UNSAFE_Button","../../Button-9e2b5706","../../UNSAFE_BaseButton","../../BaseButton-21f35d61","../../hooks/UNSAFE_usePress","../../hooks/UNSAFE_useActive","../../utils/UNSAFE_mergeProps","../../index-5dbc066a","../../index-efbc9ba1","../../UNSAFE_Icon","../../Icon-597b4544","../../hooks/UNSAFE_useTooltip","../../UNSAFE_Floating","../../Floating-f251f4e6","../../index-c61f0d48","../../hooks/UNSAFE_useUser","../../utils/PRIVATE_floatingUtils","../../utils/PRIVATE_refUtils","../../hooks/UNSAFE_useOutsideClick","../../hooks/UNSAFE_useFocus","../../hooks/UNSAFE_useTouch","../../hooks/UNSAFE_useAnimation","../../useAnimation-cfb8d533","../../hooks/UNSAFE_useTheme","../../MessageDetail-c3d3a0cf","../../MessageFormattingUtils-a178900f","../../utils/UNSAFE_getLocale","../../utils/UNSAFE_stringUtils","../../stringUtils-c7da3cbf","../../Message.types-84dcb531","../../MessageStartIcon-3d36c660","../../MessageSummary-a4283ef2","../../MessageTimestamp-e56a6681","../../MessageUtils-a930918a","../../utils/UNSAFE_logger","../../utils/UNSAFE_soundUtils","../../MessagesManager-4cf3413e","../../PRIVATE_TransitionGroup","../../hooks/UNSAFE_useMessagesContext","../../UNSAFE_HiddenAccessible","../../HiddenAccessible-c1b8ec8e","../../ComponentMessageContainer-2130cdd7","../../hooks/UNSAFE_useClearIcon","../../utils/UNSAFE_componentUtils","../../ClearIcon-17f117c0","../../hooks/UNSAFE_useCurrentValueReducer","../../hooks/UNSAFE_useLengthFilter","../../utils/UNSAFE_lengthFilter","../../hooks/UNSAFE_usePrefixSuffix","../../UNSAFE_PrefixSuffix","../../UNSAFE_Grid","../../utils/UNSAFE_interpolations/grid","../../hooks/UNSAFE_useLoadingIndicatorTimer","../../hooks/UNSAFE_useTimer","../../PRIVATE_SelectCommon","../../UNSAFE_HighlightText","../../HighlightText-cc2d6b7d","../../PRIVATE_List","../../List-6a963297","../../utils/UNSAFE_keys","../../LoadMoreCollection-62a53e76","../../PRIVATE_Collection","../../Collection-937ee8ba","../../hooks/UNSAFE_useViewportIntersect","../../PRIVATE_VirtualizedCollection","../../VirtualizedCollection-fa7f5bb6","../../UNSAFE_FocusTrap","../../FocusTrap-3123561d","../../utils/PRIVATE_tabbableUtils","../../hooks/PRIVATE_useSelection","../../hooks/PRIVATE_useCurrentKey","../../hooks/PRIVATE_useCollectionFocusRing","../../hooks/PRIVATE_useTabbableModeSet","../../hooks/PRIVATE_useItemAction","../../utils/PRIVATE_collectionUtils","../../UNSAFE_Skeleton","../../Skeleton-82005513","../../utils/UNSAFE_interpolations/borders","../../UNSAFE_Selector","../../UNSAFE_Chip","../../Chip-0ffb2726","../../hooks/UNSAFE_useActionable"],function(e,s,n,t,r,o,i,a,l,u,c,d,b,m,x,p,A,y,f,h,v,S,g,E,T,F,_,U,N,P,w,I,j,k,R,D,B,C,q,M,V,$,L,W,O,z,H,X,G,K,J,Q,Y,Z,ee,se,ne,te,re,oe,ie,ae,le,ue,ce,de,be,me,xe,pe,Ae,ye,fe,he,ve,Se,ge,Ee,Te,Fe,_e,Ue,Ne,Pe,we,Ie,je,ke,Re,De,Be,Ce,qe,Me,Ve,$e,Le,We,Oe,ze,He,Xe,Ge,Ke,Je,Qe,Ye,Ze,es,ss,ns,ts,rs,os,is,as,ls,us,cs,ds,bs,ms,xs,ps,As,ys,fs,hs,vs,Ss,gs,Es,Ts,Fs,_s,Us,Ns,Ps,ws,Is,js,ks,Rs,Ds,Bs,Cs,qs,Ms,Vs,$s,Ls,Ws,Os,zs){"use strict";function Hs({ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i="Test Label",messages:a,userAssistanceDensity:u}){const[c,d]=t.useState("hello"),b=t.useCallback(e=>{var s;d(null!==(s=e.value)&&void 0!==s?s:"")},[]);return s.jsx(s.Fragment,{children:s.jsx(l.InputText,{ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i,messages:a,onInput:b,userAssistanceDensity:u,value:c})})}function Xs({ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i="Test Label",messages:a,userAssistanceDensity:l}){const[u,c]=t.useState("hello"),d=t.useCallback(e=>{var s;c(null!==(s=e.value)&&void 0!==s?s:"")},[]);return s.jsx(s.Fragment,{children:s.jsx(x.TextArea,{ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i,messages:a,onInput:d,userAssistanceDensity:l,value:u})})}function Gs({ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i="Test Label",messages:a,userAssistanceDensity:l}){const[u,c]=t.useState("hello"),d=t.useCallback(e=>{var s;c(null!==(s=e.value)&&void 0!==s?s:"")},[]);return s.jsx(s.Fragment,{children:s.jsx(p.TextAreaAutosize,{ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i,messages:a,onInput:d,userAssistanceDensity:l,value:u})})}function Ks({ariaDescribedBy:e,assistiveText:n,itemText:t="label",isDisabled:r,isReadonly:o,label:i="Test Label",messages:a,userAssistanceDensity:l}){return s.jsx(s.Fragment,{children:s.jsx(A.SelectMultiple,{ariaDescribedBy:e,assistiveText:n,itemText:t,isDisabled:r,isReadonly:o,label:i,messages:a,onCommit:()=>{},userAssistanceDensity:l})})}function Js({ariaDescribedBy:e,assistiveText:n,itemText:t="label",isDisabled:r,isReadonly:o,label:i="Test Label",messages:a,userAssistanceDensity:l}){return s.jsx(s.Fragment,{children:s.jsx(y.SelectSingle,{ariaDescribedBy:e,assistiveText:n,itemText:t,isDisabled:r,isReadonly:o,label:i,messages:a,onCommit:()=>{},userAssistanceDensity:l})})}function Qs({ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i="Test Label",messages:a,userAssistanceDensity:l}){const[u,c]=t.useState("123"),d=t.useCallback(e=>{var s;c(null!==(s=e.value)&&void 0!==s?s:"")},[]);return s.jsx(s.Fragment,{children:s.jsx(f.NumberInputText,{ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i,messages:a,onInput:d,userAssistanceDensity:l,value:u})})}async function Ys(){const s=a.matchTranslationBundle(["en"],new Set(["en-US","en"])),{default:n}=await function(s){switch(s){case"../../resources/nls/ar/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ar/bundle"],s,n)});case"../../resources/nls/ar-XB/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ar-XB/bundle"],s,n)});case"../../resources/nls/bg/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/bg/bundle"],s,n)});case"../../resources/nls/bs/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/bs/bundle"],s,n)});case"../../resources/nls/bs-Cyrl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/bs-Cyrl/bundle"],s,n)});case"../../resources/nls/cs/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/cs/bundle"],s,n)});case"../../resources/nls/da/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/da/bundle"],s,n)});case"../../resources/nls/de/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/de/bundle"],s,n)});case"../../resources/nls/el/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/el/bundle"],s,n)});case"../../resources/nls/en/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/en/bundle"],s,n)});case"../../resources/nls/en-XA/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/en-XA/bundle"],s,n)});case"../../resources/nls/en-XC/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/en-XC/bundle"],s,n)});case"../../resources/nls/es/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/es/bundle"],s,n)});case"../../resources/nls/et/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/et/bundle"],s,n)});case"../../resources/nls/fi/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/fi/bundle"],s,n)});case"../../resources/nls/fr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/fr/bundle"],s,n)});case"../../resources/nls/fr-CA/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/fr-CA/bundle"],s,n)});case"../../resources/nls/he/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/he/bundle"],s,n)});case"../../resources/nls/hr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/hr/bundle"],s,n)});case"../../resources/nls/hu/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/hu/bundle"],s,n)});case"../../resources/nls/is/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/is/bundle"],s,n)});case"../../resources/nls/it/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/it/bundle"],s,n)});case"../../resources/nls/ja/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ja/bundle"],s,n)});case"../../resources/nls/ko/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ko/bundle"],s,n)});case"../../resources/nls/lt/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/lt/bundle"],s,n)});case"../../resources/nls/lv/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/lv/bundle"],s,n)});case"../../resources/nls/ms/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ms/bundle"],s,n)});case"../../resources/nls/nl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/nl/bundle"],s,n)});case"../../resources/nls/no/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/no/bundle"],s,n)});case"../../resources/nls/pl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/pl/bundle"],s,n)});case"../../resources/nls/pt/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/pt/bundle"],s,n)});case"../../resources/nls/pt-PT/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/pt-PT/bundle"],s,n)});case"../../resources/nls/ro/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ro/bundle"],s,n)});case"../../resources/nls/ru/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ru/bundle"],s,n)});case"../../resources/nls/sk/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sk/bundle"],s,n)});case"../../resources/nls/sl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sl/bundle"],s,n)});case"../../resources/nls/sr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sr/bundle"],s,n)});case"../../resources/nls/sr-Latn/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sr-Latn/bundle"],s,n)});case"../../resources/nls/sv/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sv/bundle"],s,n)});case"../../resources/nls/th/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/th/bundle"],s,n)});case"../../resources/nls/tr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/tr/bundle"],s,n)});case"../../resources/nls/uk/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/uk/bundle"],s,n)});case"../../resources/nls/vi/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/vi/bundle"],s,n)});case"../../resources/nls/zh-Hans/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/zh-Hans/bundle"],s,n)});case"../../resources/nls/zh-Hant/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/zh-Hant/bundle"],s,n)});default:return new Promise(function(e,n){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+s)))})}}(`../../resources/nls/${s}/bundle.ts`);return{translations:{"@oracle/oraclejet-preact":n}}}const Zs=[{name:"InputPassword",component:function({ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:i,label:a="Test Label",messages:l,userAssistanceDensity:u}){const[c,d]=t.useState("hello"),b=t.useCallback(e=>{var s;d(null!==(s=e.value)&&void 0!==s?s:"")},[]);return s.jsx(s.Fragment,{children:s.jsx(o.InputPassword,{ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:i,label:a,messages:l,onInput:b,userAssistanceDensity:u,value:c})})}},{name:"InputText",component:Hs},{name:"NumberInputText",component:Qs},{name:"TextArea",component:Xs},{name:"TextAreaAutosize",component:Gs},{name:"SelectMultiple",component:Ks},{name:"SelectSingle",component:Js}],en=[{name:"InputText",component:Hs},{name:"NumberInputText",component:Qs},{name:"TextArea",component:Xs},{name:"TextAreaAutosize",component:Gs},{name:"SelectMultiple",component:Ks},{name:"SelectSingle",component:Js}];describe("Form Controls - WAI-Aria",()=>{let e;beforeEach(async function(){e=null!=e?e:await Ys()}),Zs.forEach(t=>it(`${t.name}: adds aria-describedby correctly for ua container when enabled`,async()=>{const o="test ua content",{container:a,getByText:l}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{assistiveText:o})}))),u=t.name.startsWith("Text")?"textarea":"input",c=a.querySelector(u);r.expect(c).not.to.be.null,n.act(()=>{null==c||c.focus()});const d=null==c?void 0:c.getAttribute("aria-describedby"),b=a.querySelector(`#${d}`),m=l(o);r.expect(b).not.to.be.null,r.expect(null==b?void 0:b.contains(m)).to.be.true})),Zs.forEach(t=>it(`${t.name}: removes aria-describedby correctly for ua container when disabled`,async()=>{const o="test ua content",{container:a,queryByText:l}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{assistiveText:o,isDisabled:!0})}))),u=t.name.startsWith("Text")?"textarea":"input",c=a.querySelector(u);r.expect(c).not.to.be.null,r.expect(null==c?void 0:c.disabled).to.be.true;const d=null==c?void 0:c.getAttribute("aria-describedby"),b=l(o);r.expect(d).to.be.null,r.expect(b).to.be.null})),Zs.forEach(t=>it(`${t.name}: removes aria-describedby correctly for ua container when readonly`,async()=>{const o="test ua content",{container:a,queryByText:l}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{assistiveText:o,isReadonly:!0})}))),u=t.name.startsWith("Text")?"textarea":"input",c=a.querySelector(u),d=l(o),b=null==c?void 0:c.getAttribute("aria-describedby");"InputText"===t.name||"SelectMultiple"===t.name||"SelectSingle"===t.name||"NumberInputText"===t.name||"TextAreaAutosize"===t.name?(r.expect(c).to.be.null,r.expect(d).to.be.null):(r.expect(c).to.not.be.null,r.expect(null==c?void 0:c.readOnly).to.be.true,r.expect(b).to.be.null,r.expect(d).to.be.null)})),Zs.forEach(t=>it(`${t.name}: adds aria-describedby correctly for ua container for efficient density and with help text`,async()=>{const o="test ua content",{container:a,getByText:l}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{assistiveText:o,userAssistanceDensity:"efficient"})}))),u=t.name.startsWith("Text")?"textarea":"input",c=a.querySelector(u);r.expect(c).not.to.be.null,n.act(()=>{null==c||c.focus()});const d=null==c?void 0:c.getAttribute("aria-describedby"),b=a.querySelector(`#${d}`),m=l(o);r.expect(b).not.to.be.null,r.expect(null==b?void 0:b.contains(m)).to.be.true})),Zs.forEach(t=>it(`${t.name}: adds aria-invalid when showing error message`,async()=>{const o="message description",{container:a,getByText:l}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{messages:[{detail:o,severity:"error",summary:o}]})}))),u=t.name.startsWith("Text")?"textarea":"input",c=a.querySelector(u);r.expect(c).not.to.be.null;const d=null==c?void 0:c.getAttribute("aria-describedby"),b=null==c?void 0:c.getAttribute("aria-invalid"),m=a.querySelector(`#${d}`),x=l(o);r.expect(b).to.equal("true"),r.expect(null==m?void 0:m.contains(x)).to.be.true})),en.forEach(t=>it(`${t.name}: adds field label to the error message`,async()=>{const o="message description",a="field label",{container:l}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{label:a,messages:[{detail:o,severity:"error",summary:o}]})}))),u=t.name.startsWith("Text")?"textarea":"input",c=l.querySelector(u);r.expect(c).not.to.be.null;const d=null==c?void 0:c.getAttribute("aria-describedby"),b=l.querySelector(`#${d}`);r.expect(b).not.to.be.null;const m=n.getByRole(b,"alert"),x=n.getByText(m,a);r.expect(x).to.not.be.null})),Zs.forEach(t=>it(`${t.name}: does not add aria-invalid when showing warning message`,async()=>{const o="message description",{container:a,getByText:l}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{messages:[{detail:o,severity:"warning",summary:o}]})}))),u=t.name.startsWith("Text")?"textarea":"input",c=a.querySelector(u);r.expect(c).not.to.be.null;const d=null==c?void 0:c.getAttribute("aria-describedby"),b=null==c?void 0:c.getAttribute("aria-invalid"),m=a.querySelector(`#${d}`),x=l(o);r.expect(b).to.be.null,r.expect(null==m?void 0:m.contains(x)).to.be.true})),Zs.forEach(t=>it(`${t.name}: does not add aria-invalid when showing confirmation message`,async()=>{const o="message description",{container:a,getByText:l}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{messages:[{detail:o,severity:"confirmation",summary:o}]})}))),u=t.name.startsWith("Text")?"textarea":"input",c=a.querySelector(u);r.expect(c).not.to.be.null;const d=null==c?void 0:c.getAttribute("aria-describedby"),b=null==c?void 0:c.getAttribute("aria-invalid"),m=a.querySelector(`#${d}`),x=l(o);r.expect(b).to.be.null,r.expect(null==m?void 0:m.contains(x)).to.be.true})),Zs.forEach(t=>it(`${t.name}: does not add aria-invalid when showing info message`,async()=>{const o="message description",{container:a,getByText:l}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{messages:[{detail:o,severity:"info",summary:o}]})}))),u=t.name.startsWith("Text")?"textarea":"input",c=a.querySelector(u);r.expect(c).not.to.be.null;const d=null==c?void 0:c.getAttribute("aria-describedby"),b=null==c?void 0:c.getAttribute("aria-invalid"),m=a.querySelector(`#${d}`),x=l(o);r.expect(b).to.be.null,r.expect(null==m?void 0:m.contains(x)).to.be.true})),Zs.forEach(t=>it(`${t.name}: does not add aria-invalid when showing no message`,async()=>{const{container:o}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{messages:[]})}))),a=t.name.startsWith("Text")?"textarea":"input",l=o.querySelector(a);r.expect(l).not.to.be.null;const u=null==l?void 0:l.getAttribute("aria-invalid");r.expect(u).to.be.null})),Zs.forEach(t=>it(`${t.name}: adds aria-describedby from ariaDescribedBy prop along with the UA id when enabled`,async()=>{var o;const a="test ua content",{container:l,getByText:u}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{ariaDescribedBy:"testId",assistiveText:a})}))),c=t.name.startsWith("Text")?"textarea":"input",d=l.querySelector(c);r.expect(d).not.to.be.null,n.act(()=>{null==d||d.focus()});const b=null==d?void 0:d.getAttribute("aria-describedby"),[m,x]=null!==(o=null==b?void 0:b.split(" "))&&void 0!==o?o:[],p=l.querySelector(`#${m}`),A=u(a);r.expect(p).not.to.be.null,r.expect(null==p?void 0:p.contains(A)).to.be.true,r.expect(x).equals("testId")})),Zs.forEach(t=>it(`${t.name}: adds aria-describedby from only prop when disabled`,async()=>{const{container:o}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{ariaDescribedBy:"testId",assistiveText:"test ua content",isDisabled:!0})}))),a=t.name.startsWith("Text")?"textarea":"input",l=o.querySelector(a);r.expect(l).not.to.be.null,r.expect(null==l?void 0:l.disabled).to.be.true;const u=null==l?void 0:l.getAttribute("aria-describedby");r.expect(u).equals("testId")})),Zs.forEach(t=>it(`${t.name}: adds aria-describedby from only prop when readonly`,async()=>{const{container:o,queryByRole:a}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{ariaDescribedBy:"testId",assistiveText:"test ua content",isReadonly:!0})}))),l=t.name.startsWith("Text")?"textarea":"input",u="InputText"===t.name||"SelectMultiple"===t.name||"SelectSingle"===t.name||"NumberInputText"===t.name||"TextAreaAutosize"===t.name?a("textbox"):o.querySelector(l),c=null==u?void 0:u.getAttribute("aria-describedby");r.expect(c).equals("testId")})),afterEach(n.cleanup)})});
1
+ define(["require","preact/jsx-runtime","@testing-library/preact","preact/hooks","chai","../../UNSAFE_InputPassword","../../UNSAFE_Environment","../../utils/UNSAFE_matchTranslationBundle","../../UNSAFE_InputText","../../UNSAFE_NumberInputText","../../UNSAFE_TextArea","../../UNSAFE_TextAreaAutosize","../../UNSAFE_SelectMultiple","../../UNSAFE_SelectSingle","../../TextArea-411a7801","../../TextAreaAutosize-9f825781","../../SelectMultiple-9dc55029","../../SelectSingle-e69126a2","../../NumberInputText-b58827bb","preact/compat","../../hooks/UNSAFE_useFocusableTextField","../../tslib.es6-1f40628c","../../hooks/UNSAFE_useFocusWithin","../../useFocusWithin-b0df8a7d","../../hooks/UNSAFE_useFormContext","preact","../../hooks/UNSAFE_useFormFieldContext","../../hooks/UNSAFE_useTextField","../../hooks/UNSAFE_useId","../../hooks/UNSAFE_useHover","../../hooks/UNSAFE_useToggle","../../UNSAFE_Label","../../utils/UNSAFE_classNames","../../classNames-cbd28834",'module',"../../UNSAFE_TextField","../../ReadonlyTextFieldInput-745b0d92","../../hooks/UNSAFE_useTabbableMode","../../utils/UNSAFE_interpolations/text","../../keys-06a9557b","../../_curry1-8db40d07","../../_has-de432e95","../../utils/UNSAFE_mergeInterpolations","../../_curry3-4f75464d","../../_curry2-cd63f2e8","../../FormControlUtils-37cdc68e","../../hooks/UNSAFE_useTranslationBundle","../../UNSAFE_Layer","../../UNSAFE_LabelValueLayout","../../UNSAFE_Flex","../../Flex-d69d5143","../../utils/UNSAFE_interpolations/dimensions","../../utils/UNSAFE_arrayUtils","../../utils/UNSAFE_size","../../utils/UNSAFE_interpolations/boxalignment","../../utils/UNSAFE_interpolations/flexbox","../../flexbox-5392cdab","../../utils/UNSAFE_interpolations/flexitem","../../flexitem-666af748","../../TextFieldInput-ead5bb20","../../hooks/UNSAFE_useTextFieldInputHandlers","../../utils/PRIVATE_clientHints","../../clientHints-fd549a03","../../hooks/UNSAFE_useDebounce","../../UNSAFE_LiveRegion","../../UNSAFE_UserAssistance","../../InlineHelpSource-62724071","../../UNSAFE_ComponentMessage","../../ComponentMessage-5d0215b0","../../PRIVATE_Message","../../utils/PRIVATE_timer","../../MessageCloseButton-be433526","../../UNSAFE_Button","../../Button-58691145","../../UNSAFE_BaseButton","../../BaseButton-66791a44","../../hooks/UNSAFE_usePress","../../hooks/UNSAFE_useActive","../../utils/UNSAFE_mergeProps","../../index-3c763990","../../index-f98775f6","../../UNSAFE_Icon","../../Icon-1e1b346a","../../hooks/UNSAFE_useTooltip","../../UNSAFE_Floating","../../Floating-370df48b","../../index-10802134","../../hooks/UNSAFE_useUser","../../utils/PRIVATE_floatingUtils","../../utils/PRIVATE_refUtils","../../hooks/UNSAFE_useOutsideClick","../../hooks/UNSAFE_useFocus","../../hooks/UNSAFE_useTouch","../../hooks/UNSAFE_useAnimation","../../useAnimation-e954368d","../../hooks/UNSAFE_useTheme","../../MessageDetail-5875cf97","../../MessageFormattingUtils-c8700622","../../utils/UNSAFE_getLocale","../../utils/UNSAFE_stringUtils","../../stringUtils-3710bb60","../../Message.types-a06c10b7","../../MessageStartIcon-ae539709","../../MessageSummary-069bc6d8","../../MessageTimestamp-5ac8675d","../../MessageUtils-3e15c456","../../utils/UNSAFE_logger","../../utils/UNSAFE_soundUtils","../../MessagesManager-8a75ac98","../../PRIVATE_TransitionGroup","../../hooks/UNSAFE_useMessagesContext","../../UNSAFE_HiddenAccessible","../../HiddenAccessible-b5a8bea7","../../ComponentMessageContainer-92d583aa","../../hooks/UNSAFE_useClearIcon","../../utils/UNSAFE_componentUtils","../../ClearIcon-5bb5b0bc","../../hooks/UNSAFE_useCurrentValueReducer","../../hooks/UNSAFE_useLengthFilter","../../utils/UNSAFE_lengthFilter","../../hooks/UNSAFE_usePrefixSuffix","../../UNSAFE_PrefixSuffix","../../UNSAFE_Grid","../../utils/UNSAFE_interpolations/grid","../../hooks/UNSAFE_useLoadingIndicatorTimer","../../hooks/UNSAFE_useTimer","../../PRIVATE_SelectCommon","../../UNSAFE_HighlightText","../../HighlightText-305dd4f6","../../PRIVATE_List","../../List-25e3fc29","../../utils/UNSAFE_keys","../../LoadMoreCollection-655042f1","../../PRIVATE_Collection","../../Collection-cbdbf449","../../hooks/UNSAFE_useViewportIntersect","../../PRIVATE_VirtualizedCollection","../../VirtualizedCollection-12300754","../../UNSAFE_FocusTrap","../../FocusTrap-29ad6889","../../utils/PRIVATE_tabbableUtils","../../hooks/PRIVATE_useSelection","../../hooks/PRIVATE_useCurrentKey","../../hooks/PRIVATE_useCollectionFocusRing","../../hooks/PRIVATE_useTabbableModeSet","../../hooks/PRIVATE_useItemAction","../../utils/PRIVATE_collectionUtils","../../UNSAFE_Skeleton","../../Skeleton-f3ee6c8a","../../utils/UNSAFE_interpolations/borders","../../UNSAFE_Selector","../../UNSAFE_Chip","../../Chip-a9c94554","../../hooks/UNSAFE_useActionable"],function(e,s,n,t,r,o,i,l,a,u,c,d,b,m,x,p,A,y,h,v,S,g,f,E,T,F,_,U,N,P,w,I,j,k,R,D,B,C,q,M,V,$,L,W,O,z,H,X,G,K,J,Q,Y,Z,ee,se,ne,te,re,oe,ie,le,ae,ue,ce,de,be,me,xe,pe,Ae,ye,he,ve,Se,ge,fe,Ee,Te,Fe,_e,Ue,Ne,Pe,we,Ie,je,ke,Re,De,Be,Ce,qe,Me,Ve,$e,Le,We,Oe,ze,He,Xe,Ge,Ke,Je,Qe,Ye,Ze,es,ss,ns,ts,rs,os,is,ls,as,us,cs,ds,bs,ms,xs,ps,As,ys,hs,vs,Ss,gs,fs,Es,Ts,Fs,_s,Us,Ns,Ps,ws,Is,js,ks,Rs,Ds,Bs,Cs,qs,Ms,Vs,$s,Ls,Ws,Os,zs){"use strict";function Hs({ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i="Test Label",messages:l,userAssistanceDensity:u}){const[c,d]=t.useState("hello"),b=t.useCallback(e=>{var s;d(null!==(s=e.value)&&void 0!==s?s:"")},[]);return s.jsx(s.Fragment,{children:s.jsx(a.InputText,{ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i,messages:l,onInput:b,userAssistanceDensity:u,value:c})})}function Xs({ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i="Test Label",messages:l,userAssistanceDensity:a}){const[u,c]=t.useState("hello"),d=t.useCallback(e=>{var s;c(null!==(s=e.value)&&void 0!==s?s:"")},[]);return s.jsx(s.Fragment,{children:s.jsx(x.TextArea,{ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i,messages:l,onInput:d,userAssistanceDensity:a,value:u})})}function Gs({ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i="Test Label",messages:l,userAssistanceDensity:a}){const[u,c]=t.useState("hello"),d=t.useCallback(e=>{var s;c(null!==(s=e.value)&&void 0!==s?s:"")},[]);return s.jsx(s.Fragment,{children:s.jsx(p.TextAreaAutosize,{ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i,messages:l,onInput:d,userAssistanceDensity:a,value:u})})}function Ks({ariaDescribedBy:e,assistiveText:n,itemText:t="label",isDisabled:r,isReadonly:o,label:i="Test Label",messages:l,userAssistanceDensity:a}){return s.jsx(s.Fragment,{children:s.jsx(A.SelectMultiple,{ariaDescribedBy:e,assistiveText:n,itemText:t,isDisabled:r,isReadonly:o,label:i,messages:l,onCommit:()=>{},userAssistanceDensity:a})})}function Js({ariaDescribedBy:e,assistiveText:n,itemText:t="label",isDisabled:r,isReadonly:o,label:i="Test Label",messages:l,userAssistanceDensity:a}){return s.jsx(s.Fragment,{children:s.jsx(y.SelectSingle,{ariaDescribedBy:e,assistiveText:n,itemText:t,isDisabled:r,isReadonly:o,label:i,messages:l,onCommit:()=>{},userAssistanceDensity:a})})}function Qs({ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i="Test Label",messages:l,userAssistanceDensity:a}){const[u,c]=t.useState("123"),d=t.useCallback(e=>{var s;c(null!==(s=e.value)&&void 0!==s?s:"")},[]);return s.jsx(s.Fragment,{children:s.jsx(h.NumberInputText,{ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:o,label:i,messages:l,onInput:d,userAssistanceDensity:a,value:u})})}async function Ys(){const s=l.matchTranslationBundle(["en"],new Set(["en-US","en"])),{default:n}=await function(s){switch(s){case"../../resources/nls/ar/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ar/bundle"],s,n)});case"../../resources/nls/ar-XB/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ar-XB/bundle"],s,n)});case"../../resources/nls/bg/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/bg/bundle"],s,n)});case"../../resources/nls/bs/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/bs/bundle"],s,n)});case"../../resources/nls/bs-Cyrl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/bs-Cyrl/bundle"],s,n)});case"../../resources/nls/cs/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/cs/bundle"],s,n)});case"../../resources/nls/da/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/da/bundle"],s,n)});case"../../resources/nls/de/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/de/bundle"],s,n)});case"../../resources/nls/el/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/el/bundle"],s,n)});case"../../resources/nls/en/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/en/bundle"],s,n)});case"../../resources/nls/en-XA/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/en-XA/bundle"],s,n)});case"../../resources/nls/en-XC/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/en-XC/bundle"],s,n)});case"../../resources/nls/es/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/es/bundle"],s,n)});case"../../resources/nls/et/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/et/bundle"],s,n)});case"../../resources/nls/fi/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/fi/bundle"],s,n)});case"../../resources/nls/fr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/fr/bundle"],s,n)});case"../../resources/nls/fr-CA/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/fr-CA/bundle"],s,n)});case"../../resources/nls/he/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/he/bundle"],s,n)});case"../../resources/nls/hr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/hr/bundle"],s,n)});case"../../resources/nls/hu/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/hu/bundle"],s,n)});case"../../resources/nls/is/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/is/bundle"],s,n)});case"../../resources/nls/it/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/it/bundle"],s,n)});case"../../resources/nls/ja/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ja/bundle"],s,n)});case"../../resources/nls/ko/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ko/bundle"],s,n)});case"../../resources/nls/lt/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/lt/bundle"],s,n)});case"../../resources/nls/lv/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/lv/bundle"],s,n)});case"../../resources/nls/ms/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ms/bundle"],s,n)});case"../../resources/nls/nl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/nl/bundle"],s,n)});case"../../resources/nls/no/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/no/bundle"],s,n)});case"../../resources/nls/pl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/pl/bundle"],s,n)});case"../../resources/nls/pt/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/pt/bundle"],s,n)});case"../../resources/nls/pt-PT/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/pt-PT/bundle"],s,n)});case"../../resources/nls/ro/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ro/bundle"],s,n)});case"../../resources/nls/ru/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ru/bundle"],s,n)});case"../../resources/nls/sk/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sk/bundle"],s,n)});case"../../resources/nls/sl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sl/bundle"],s,n)});case"../../resources/nls/sr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sr/bundle"],s,n)});case"../../resources/nls/sr-Latn/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sr-Latn/bundle"],s,n)});case"../../resources/nls/sv/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sv/bundle"],s,n)});case"../../resources/nls/th/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/th/bundle"],s,n)});case"../../resources/nls/tr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/tr/bundle"],s,n)});case"../../resources/nls/uk/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/uk/bundle"],s,n)});case"../../resources/nls/vi/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/vi/bundle"],s,n)});case"../../resources/nls/zh-Hans/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/zh-Hans/bundle"],s,n)});case"../../resources/nls/zh-Hant/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/zh-Hant/bundle"],s,n)});default:return new Promise(function(e,n){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+s)))})}}(`../../resources/nls/${s}/bundle.ts`);return{translations:{"@oracle/oraclejet-preact":n}}}const Zs=[{name:"InputPassword",component:function({ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:i,label:l="Test Label",messages:a,userAssistanceDensity:u}){const[c,d]=t.useState("hello"),b=t.useCallback(e=>{var s;d(null!==(s=e.value)&&void 0!==s?s:"")},[]);return s.jsx(s.Fragment,{children:s.jsx(o.InputPassword,{ariaDescribedBy:e,assistiveText:n,isDisabled:r,isReadonly:i,label:l,messages:a,onInput:b,userAssistanceDensity:u,value:c})})}},{name:"InputText",component:Hs},{name:"NumberInputText",component:Qs},{name:"TextArea",component:Xs},{name:"TextAreaAutosize",component:Gs},{name:"SelectMultiple",component:Ks},{name:"SelectSingle",component:Js}],en=[{name:"InputText",component:Hs},{name:"NumberInputText",component:Qs},{name:"TextArea",component:Xs},{name:"TextAreaAutosize",component:Gs},{name:"SelectMultiple",component:Ks},{name:"SelectSingle",component:Js}];describe("Form Controls - WAI-Aria",()=>{let e;beforeEach(async function(){e=null!=e?e:await Ys()}),Zs.forEach(t=>it(`${t.name}: adds aria-describedby correctly for ua container when enabled`,async()=>{const o="test ua content",{container:l,getByText:a}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{assistiveText:o})}))),u=t.name.startsWith("Text")?"textarea":"input",c=l.querySelector(u);r.expect(c).not.to.be.null,n.act(()=>{null==c||c.focus()});const d=null==c?void 0:c.getAttribute("aria-describedby"),b=l.querySelector(`#${d}`),m=a(o);r.expect(b).not.to.be.null,r.expect(null==b?void 0:b.contains(m)).to.be.true})),Zs.forEach(t=>it(`${t.name}: removes aria-describedby correctly for ua container when disabled`,async()=>{const o="test ua content",{container:l,queryByText:a}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{assistiveText:o,isDisabled:!0})}))),u=t.name.startsWith("Text")?"textarea":"input",c=l.querySelector(u);r.expect(c).not.to.be.null,r.expect(null==c?void 0:c.disabled).to.be.true;const d=null==c?void 0:c.getAttribute("aria-describedby"),b=a(o);r.expect(d).to.be.null,r.expect(b).to.be.null})),Zs.forEach(t=>it(`${t.name}: removes aria-describedby correctly for ua container when readonly`,async()=>{const o="test ua content",{container:l,queryByText:a}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{assistiveText:o,isReadonly:!0})}))),u=t.name.startsWith("Text")?"textarea":"input",c=l.querySelector(u),d=a(o),b=null==c?void 0:c.getAttribute("aria-describedby");"InputText"===t.name||"SelectMultiple"===t.name||"SelectSingle"===t.name||"NumberInputText"===t.name||"TextAreaAutosize"===t.name?(r.expect(c).to.be.null,r.expect(d).to.be.null):(r.expect(c).to.not.be.null,r.expect(null==c?void 0:c.readOnly).to.be.true,r.expect(b).to.be.null,r.expect(d).to.be.null)})),Zs.forEach(t=>it(`${t.name}: adds aria-describedby correctly for ua container for efficient density and with help text`,async()=>{const o="test ua content",{container:l,getByText:a}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{assistiveText:o,userAssistanceDensity:"efficient"})}))),u=t.name.startsWith("Text")?"textarea":"input",c=l.querySelector(u);r.expect(c).not.to.be.null,n.act(()=>{null==c||c.focus()});const d=null==c?void 0:c.getAttribute("aria-describedby"),b=l.querySelector(`#${d}`),m=a(o);r.expect(b).not.to.be.null,r.expect(null==b?void 0:b.contains(m)).to.be.true})),Zs.forEach(t=>it(`${t.name}: adds aria-invalid when showing error message`,async()=>{const o="message description",{container:l,getByText:a}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{messages:[{detail:o,severity:"error",summary:o}]})}))),u=t.name.startsWith("Text")?"textarea":"input",c=l.querySelector(u);r.expect(c).not.to.be.null;const d=null==c?void 0:c.getAttribute("aria-describedby"),b=null==c?void 0:c.getAttribute("aria-invalid"),m=l.querySelector(`#${d}`),x=a(o);r.expect(b).to.equal("true"),r.expect(null==m?void 0:m.contains(x)).to.be.true})),en.forEach(t=>it(`${t.name}: adds field label to the error message`,async()=>{const o="message description",l="field label",{container:a}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{label:l,messages:[{detail:o,severity:"error",summary:o}]})}))),u=t.name.startsWith("Text")?"textarea":"input",c=a.querySelector(u);r.expect(c).not.to.be.null;const d=null==c?void 0:c.getAttribute("aria-describedby"),b=a.querySelector(`#${d}`);r.expect(b).not.to.be.null;const m=n.getByRole(b,"alert"),x=n.getByText(m,l);r.expect(x).to.not.be.null})),Zs.forEach(t=>it(`${t.name}: does not add aria-invalid when showing warning message`,async()=>{const o="message description",{container:l,getByText:a}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{messages:[{detail:o,severity:"warning",summary:o}]})}))),u=t.name.startsWith("Text")?"textarea":"input",c=l.querySelector(u);r.expect(c).not.to.be.null;const d=null==c?void 0:c.getAttribute("aria-describedby"),b=null==c?void 0:c.getAttribute("aria-invalid"),m=l.querySelector(`#${d}`),x=a(o);r.expect(b).to.be.null,r.expect(null==m?void 0:m.contains(x)).to.be.true})),Zs.forEach(t=>it(`${t.name}: does not add aria-invalid when showing confirmation message`,async()=>{const o="message description",{container:l,getByText:a}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{messages:[{detail:o,severity:"confirmation",summary:o}]})}))),u=t.name.startsWith("Text")?"textarea":"input",c=l.querySelector(u);r.expect(c).not.to.be.null;const d=null==c?void 0:c.getAttribute("aria-describedby"),b=null==c?void 0:c.getAttribute("aria-invalid"),m=l.querySelector(`#${d}`),x=a(o);r.expect(b).to.be.null,r.expect(null==m?void 0:m.contains(x)).to.be.true})),Zs.forEach(t=>it(`${t.name}: does not add aria-invalid when showing info message`,async()=>{const o="message description",{container:l,getByText:a}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{messages:[{detail:o,severity:"info",summary:o}]})}))),u=t.name.startsWith("Text")?"textarea":"input",c=l.querySelector(u);r.expect(c).not.to.be.null;const d=null==c?void 0:c.getAttribute("aria-describedby"),b=null==c?void 0:c.getAttribute("aria-invalid"),m=l.querySelector(`#${d}`),x=a(o);r.expect(b).to.be.null,r.expect(null==m?void 0:m.contains(x)).to.be.true})),Zs.forEach(t=>it(`${t.name}: does not add aria-invalid when showing no message`,async()=>{const{container:o}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{messages:[]})}))),l=t.name.startsWith("Text")?"textarea":"input",a=o.querySelector(l);r.expect(a).not.to.be.null;const u=null==a?void 0:a.getAttribute("aria-invalid");r.expect(u).to.be.null})),Zs.forEach(t=>it(`${t.name}: adds aria-describedby from ariaDescribedBy prop along with the UA id when enabled`,async()=>{var o;const l="test ua content",{container:a,getByText:u}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{ariaDescribedBy:"testId",assistiveText:l})}))),c=t.name.startsWith("Text")?"textarea":"input",d=a.querySelector(c);r.expect(d).not.to.be.null,n.act(()=>{null==d||d.focus()});const b=null==d?void 0:d.getAttribute("aria-describedby"),[m,x]=null!==(o=null==b?void 0:b.split(" "))&&void 0!==o?o:[],p=a.querySelector(`#${m}`),A=u(l);r.expect(p).not.to.be.null,r.expect(null==p?void 0:p.contains(A)).to.be.true,r.expect(x).equals("testId")})),Zs.forEach(t=>it(`${t.name}: adds aria-describedby from only prop when disabled`,async()=>{const{container:o}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{ariaDescribedBy:"testId",assistiveText:"test ua content",isDisabled:!0})}))),l=t.name.startsWith("Text")?"textarea":"input",a=o.querySelector(l);r.expect(a).not.to.be.null,r.expect(null==a?void 0:a.disabled).to.be.true;const u=null==a?void 0:a.getAttribute("aria-describedby");r.expect(u).equals("testId")})),Zs.forEach(t=>it(`${t.name}: adds aria-describedby from only prop when readonly`,async()=>{const{container:o,queryByRole:l}=n.render(s.jsx(i.RootEnvironmentProvider,Object.assign({environment:e},{children:s.jsx(t.component,{ariaDescribedBy:"testId",assistiveText:"test ua content",isReadonly:!0})}))),a=t.name.startsWith("Text")?"textarea":"input",u="InputText"===t.name||"SelectMultiple"===t.name||"SelectSingle"===t.name||"NumberInputText"===t.name||"TextAreaAutosize"===t.name?l("textbox"):o.querySelector(a),c=null==u?void 0:u.getAttribute("aria-describedby");r.expect(c).equals("testId")})),afterEach(n.cleanup)})});
2
2
  //# sourceMappingURL=FormControlAria.spec.js.map
@@ -1,2 +1,2 @@
1
- define(["require","preact/jsx-runtime","@testing-library/preact","preact/hooks","chai","../../UNSAFE_InputPassword","../../UNSAFE_Environment","../../utils/UNSAFE_matchTranslationBundle","../../UNSAFE_InputText","preact/compat","../../hooks/UNSAFE_useFocusableTextField","../../tslib.es6-d809b4dd","../../hooks/UNSAFE_useFocusWithin","../../useFocusWithin-369336f7","../../hooks/UNSAFE_useFormContext","preact","../../hooks/UNSAFE_useFormFieldContext","../../hooks/UNSAFE_useTextField","../../hooks/UNSAFE_useId","../../hooks/UNSAFE_useHover","../../hooks/UNSAFE_useToggle","../../UNSAFE_Label","../../utils/UNSAFE_classNames","../../classNames-f9dd69a8",'module',"../../UNSAFE_TextField","../../ReadonlyTextFieldInput-ee580a50","../../hooks/UNSAFE_useTabbableMode","../../utils/UNSAFE_interpolations/text","../../keys-7dc8fa94","../../_curry1-1865bdf8","../../_has-af025a25","../../utils/UNSAFE_mergeInterpolations","../../_curry3-73b7a4f7","../../_curry2-c82c3af2","../../FormControlUtils-3c0aac96","../../hooks/UNSAFE_useTranslationBundle","../../UNSAFE_Layer","../../UNSAFE_LabelValueLayout","../../UNSAFE_Flex","../../Flex-343c337e","../../utils/UNSAFE_interpolations/dimensions","../../utils/UNSAFE_arrayUtils","../../utils/UNSAFE_size","../../utils/UNSAFE_interpolations/boxalignment","../../utils/UNSAFE_interpolations/flexbox","../../flexbox-83e878b1","../../utils/UNSAFE_interpolations/flexitem","../../flexitem-c406a7bb","../../TextFieldInput-57f2d560","../../hooks/UNSAFE_useTextFieldInputHandlers","../../utils/PRIVATE_clientHints","../../clientHints-0a14d5d8","../../hooks/UNSAFE_useDebounce","../../UNSAFE_LiveRegion","../../UNSAFE_UserAssistance","../../InlineHelpSource-466d3759","../../UNSAFE_ComponentMessage","../../ComponentMessage-3fae5a5b","../../PRIVATE_Message","../../utils/PRIVATE_timer","../../MessageCloseButton-2ab50565","../../UNSAFE_Button","../../Button-9e2b5706","../../UNSAFE_BaseButton","../../BaseButton-21f35d61","../../hooks/UNSAFE_usePress","../../hooks/UNSAFE_useActive","../../utils/UNSAFE_mergeProps","../../index-5dbc066a","../../index-efbc9ba1","../../UNSAFE_Icon","../../Icon-597b4544","../../hooks/UNSAFE_useTooltip","../../UNSAFE_Floating","../../Floating-f251f4e6","../../index-c61f0d48","../../hooks/UNSAFE_useUser","../../utils/PRIVATE_floatingUtils","../../utils/PRIVATE_refUtils","../../hooks/UNSAFE_useOutsideClick","../../hooks/UNSAFE_useFocus","../../hooks/UNSAFE_useTouch","../../hooks/UNSAFE_useAnimation","../../useAnimation-cfb8d533","../../hooks/UNSAFE_useTheme","../../MessageDetail-c3d3a0cf","../../MessageFormattingUtils-a178900f","../../utils/UNSAFE_getLocale","../../utils/UNSAFE_stringUtils","../../stringUtils-c7da3cbf","../../Message.types-84dcb531","../../MessageStartIcon-3d36c660","../../MessageSummary-a4283ef2","../../MessageTimestamp-e56a6681","../../MessageUtils-a930918a","../../utils/UNSAFE_logger","../../utils/UNSAFE_soundUtils","../../MessagesManager-4cf3413e","../../PRIVATE_TransitionGroup","../../hooks/UNSAFE_useMessagesContext","../../UNSAFE_HiddenAccessible","../../HiddenAccessible-c1b8ec8e","../../ComponentMessageContainer-2130cdd7","../../hooks/UNSAFE_useClearIcon","../../utils/UNSAFE_componentUtils","../../ClearIcon-17f117c0","../../hooks/UNSAFE_useCurrentValueReducer","../../hooks/UNSAFE_useLengthFilter","../../utils/UNSAFE_lengthFilter","../../hooks/UNSAFE_usePrefixSuffix","../../UNSAFE_PrefixSuffix"],function(e,n,s,t,o,r,l,c,u,i,a,d,b,m,f,h,x,p,S,y,E,F,C,j,A,v,k,P,U,_,w,g,N,I,q,R,O,T,M,$,B,H,D,L,V,X,z,W,G,J,K,Q,Y,Z,ee,ne,se,te,oe,re,le,ce,ue,ie,ae,de,be,me,fe,he,xe,pe,Se,ye,Ee,Fe,Ce,je,Ae,ve,ke,Pe,Ue,_e,we,ge,Ne,Ie,qe,Re,Oe,Te,Me,$e,Be,He,De,Le,Ve,Xe,ze,We,Ge,Je,Ke,Qe,Ye,Ze,en,nn,sn,tn){"use strict";const on=()=>{};async function rn(){const n=c.matchTranslationBundle(["en"],new Set(["en-US","en"])),{default:s}=await function(n){switch(n){case"../../resources/nls/ar/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ar/bundle"],n,s)});case"../../resources/nls/ar-XB/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ar-XB/bundle"],n,s)});case"../../resources/nls/bg/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/bg/bundle"],n,s)});case"../../resources/nls/bs/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/bs/bundle"],n,s)});case"../../resources/nls/bs-Cyrl/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/bs-Cyrl/bundle"],n,s)});case"../../resources/nls/cs/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/cs/bundle"],n,s)});case"../../resources/nls/da/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/da/bundle"],n,s)});case"../../resources/nls/de/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/de/bundle"],n,s)});case"../../resources/nls/el/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/el/bundle"],n,s)});case"../../resources/nls/en/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/en/bundle"],n,s)});case"../../resources/nls/en-XA/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/en-XA/bundle"],n,s)});case"../../resources/nls/en-XC/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/en-XC/bundle"],n,s)});case"../../resources/nls/es/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/es/bundle"],n,s)});case"../../resources/nls/et/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/et/bundle"],n,s)});case"../../resources/nls/fi/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/fi/bundle"],n,s)});case"../../resources/nls/fr/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/fr/bundle"],n,s)});case"../../resources/nls/fr-CA/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/fr-CA/bundle"],n,s)});case"../../resources/nls/he/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/he/bundle"],n,s)});case"../../resources/nls/hr/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/hr/bundle"],n,s)});case"../../resources/nls/hu/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/hu/bundle"],n,s)});case"../../resources/nls/is/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/is/bundle"],n,s)});case"../../resources/nls/it/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/it/bundle"],n,s)});case"../../resources/nls/ja/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ja/bundle"],n,s)});case"../../resources/nls/ko/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ko/bundle"],n,s)});case"../../resources/nls/lt/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/lt/bundle"],n,s)});case"../../resources/nls/lv/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/lv/bundle"],n,s)});case"../../resources/nls/ms/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ms/bundle"],n,s)});case"../../resources/nls/nl/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/nl/bundle"],n,s)});case"../../resources/nls/no/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/no/bundle"],n,s)});case"../../resources/nls/pl/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/pl/bundle"],n,s)});case"../../resources/nls/pt/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/pt/bundle"],n,s)});case"../../resources/nls/pt-PT/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/pt-PT/bundle"],n,s)});case"../../resources/nls/ro/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ro/bundle"],n,s)});case"../../resources/nls/ru/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ru/bundle"],n,s)});case"../../resources/nls/sk/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/sk/bundle"],n,s)});case"../../resources/nls/sl/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/sl/bundle"],n,s)});case"../../resources/nls/sr/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/sr/bundle"],n,s)});case"../../resources/nls/sr-Latn/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/sr-Latn/bundle"],n,s)});case"../../resources/nls/sv/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/sv/bundle"],n,s)});case"../../resources/nls/th/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/th/bundle"],n,s)});case"../../resources/nls/tr/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/tr/bundle"],n,s)});case"../../resources/nls/uk/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/uk/bundle"],n,s)});case"../../resources/nls/vi/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/vi/bundle"],n,s)});case"../../resources/nls/zh-Hans/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/zh-Hans/bundle"],n,s)});case"../../resources/nls/zh-Hant/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/zh-Hant/bundle"],n,s)});default:return new Promise(function(e,s){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+n)))})}}(`../../resources/nls/${n}/bundle.ts`);return{translations:{"@oracle/oraclejet-preact":s}}}const ln=[{name:"InputPassword",component:function({hasClearIcon:e,isDisabled:s,isReadonly:o,label:l}){const[c,u]=t.useState("hello");return n.jsxs(n.Fragment,{children:[n.jsx(r.InputPassword,{hasClearIcon:e,isDisabled:s,isReadonly:o,label:l,onInput:on,value:c}),n.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>u("goodbye")},{children:"Click me"}))]})}},{name:"InputText",component:function({hasClearIcon:e,isDisabled:s,isReadonly:o,label:r}){const[l,c]=t.useState("hello");return n.jsxs(n.Fragment,{children:[n.jsx(u.InputText,{hasClearIcon:e,isDisabled:s,isReadonly:o,label:r,onInput:on,value:l}),n.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>c("goodbye")},{children:"Click me"}))]})}}];describe("FormControlClearIcon.spec",()=>{let e;beforeEach(async function(){e=await rn()}),ln.forEach(function(t){it(`${t.name} hasClearIcon 'conditionally', no value, focusin/focusout`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"conditionally",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");c.value="",s.act(()=>{c.focus()});const u='[title="Clear"]';let i=r.querySelector(u);o.expect(i,"clear icon found").not.null;const a=r.querySelector(".testclickmebutton");s.act(()=>{a.focus()}),i=r.querySelector(u),o.expect(i,"clear icon not found").null}),it(`${t.name} hasClearIcon 'conditionally', with value, focusin/focusout`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"conditionally",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");o.expect(c.value).equal("hello"),s.act(()=>{c.focus()});const u='[title="Clear"]';let i=r.querySelector(u);o.expect(i,"clear icon found").not.null;const a=r.querySelector(".testclickmebutton");s.act(()=>{a.focus()}),i=r.querySelector(u),o.expect(i,"clear icon not found").null}),it(`${t.name} hasClearIcon 'conditionally', with value, hover/blur`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"conditionally",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");o.expect(c.value).equal("hello"),s.act(()=>{c.focus()});const u='[title="Clear"]';let i=r.querySelector(u);o.expect(i,"clear icon found").not.null,s.act(()=>{c.blur()}),i=r.querySelector(u),o.expect(i,"clear icon not found").null}),it(`${t.name} hasClearIcon 'always', check icon`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"always",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");o.expect(c.value).equal("hello");const u=r.querySelector('[title="Clear"]');o.expect(u,"clear icon found").not.null}),it(`${t.name} hasClearIcon 'always', with value, focusin/focusout`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"always",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");o.expect(c.value).equal("hello"),c.value="";const u=r.querySelector('[title="Clear"]');o.expect(u,"clear icon found even if no value is in the field").not.null}),it(`${t.name} hasClearIcon 'always', isReadonly true`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"always",isReadonly:!0,label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector('[title="Clear"]');o.expect(c,"clear icon not found for readonly component").null}),it(`${t.name} hasClearIcon 'always', isDisabled true`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"always",isDisabled:!0,label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector('[title="Clear"]');o.expect(c,"clear icon not found for disabled component").null}),it(`${t.name} hasClearIcon 'always', focusin`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"always",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");o.expect(c.value).equal("hello"),s.act(()=>{c.focus()});const u=r.querySelector('[title="Clear"]');o.expect(u,"clear icon found, so this should not be null").not.null}),it(`${t.name} hasClearIcon 'never', check icon`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"never",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");o.expect(c.value).equal("hello");const u=r.querySelector('[title="Clear"]');o.expect(u,"clear icon not found").null}),it(`${t.name} hasClearIcon 'never', focusin`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"never",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");s.act(()=>{c.focus()});const u=r.querySelector('[title="Clear"]');o.expect(u,"clear icon not found").null}),it(`${t.name} hasClearIcon 'never', isReadonly comp`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"never",isReadonly:!0,label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector('[title="Clear"]');o.expect(c,"clear icon not found").null}),it(`${t.name} hasClearIcon 'never', isDisabled comp`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"never",isDisabled:!0,label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector('[title="Clear"]');o.expect(c,"clear icon not found").null}),it(`${t.name} hasClearIcon not specified, focus comp`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");s.act(()=>{c.focus()});const u=r.querySelector('[title="Clear"]');o.expect(u,"clear icon not found").null})}),afterEach(s.cleanup)})});
1
+ define(["require","preact/jsx-runtime","@testing-library/preact","preact/hooks","chai","../../UNSAFE_InputPassword","../../UNSAFE_Environment","../../utils/UNSAFE_matchTranslationBundle","../../UNSAFE_InputText","preact/compat","../../hooks/UNSAFE_useFocusableTextField","../../tslib.es6-1f40628c","../../hooks/UNSAFE_useFocusWithin","../../useFocusWithin-b0df8a7d","../../hooks/UNSAFE_useFormContext","preact","../../hooks/UNSAFE_useFormFieldContext","../../hooks/UNSAFE_useTextField","../../hooks/UNSAFE_useId","../../hooks/UNSAFE_useHover","../../hooks/UNSAFE_useToggle","../../UNSAFE_Label","../../utils/UNSAFE_classNames","../../classNames-cbd28834",'module',"../../UNSAFE_TextField","../../ReadonlyTextFieldInput-745b0d92","../../hooks/UNSAFE_useTabbableMode","../../utils/UNSAFE_interpolations/text","../../keys-06a9557b","../../_curry1-8db40d07","../../_has-de432e95","../../utils/UNSAFE_mergeInterpolations","../../_curry3-4f75464d","../../_curry2-cd63f2e8","../../FormControlUtils-37cdc68e","../../hooks/UNSAFE_useTranslationBundle","../../UNSAFE_Layer","../../UNSAFE_LabelValueLayout","../../UNSAFE_Flex","../../Flex-d69d5143","../../utils/UNSAFE_interpolations/dimensions","../../utils/UNSAFE_arrayUtils","../../utils/UNSAFE_size","../../utils/UNSAFE_interpolations/boxalignment","../../utils/UNSAFE_interpolations/flexbox","../../flexbox-5392cdab","../../utils/UNSAFE_interpolations/flexitem","../../flexitem-666af748","../../TextFieldInput-ead5bb20","../../hooks/UNSAFE_useTextFieldInputHandlers","../../utils/PRIVATE_clientHints","../../clientHints-fd549a03","../../hooks/UNSAFE_useDebounce","../../UNSAFE_LiveRegion","../../UNSAFE_UserAssistance","../../InlineHelpSource-62724071","../../UNSAFE_ComponentMessage","../../ComponentMessage-5d0215b0","../../PRIVATE_Message","../../utils/PRIVATE_timer","../../MessageCloseButton-be433526","../../UNSAFE_Button","../../Button-58691145","../../UNSAFE_BaseButton","../../BaseButton-66791a44","../../hooks/UNSAFE_usePress","../../hooks/UNSAFE_useActive","../../utils/UNSAFE_mergeProps","../../index-3c763990","../../index-f98775f6","../../UNSAFE_Icon","../../Icon-1e1b346a","../../hooks/UNSAFE_useTooltip","../../UNSAFE_Floating","../../Floating-370df48b","../../index-10802134","../../hooks/UNSAFE_useUser","../../utils/PRIVATE_floatingUtils","../../utils/PRIVATE_refUtils","../../hooks/UNSAFE_useOutsideClick","../../hooks/UNSAFE_useFocus","../../hooks/UNSAFE_useTouch","../../hooks/UNSAFE_useAnimation","../../useAnimation-e954368d","../../hooks/UNSAFE_useTheme","../../MessageDetail-5875cf97","../../MessageFormattingUtils-c8700622","../../utils/UNSAFE_getLocale","../../utils/UNSAFE_stringUtils","../../stringUtils-3710bb60","../../Message.types-a06c10b7","../../MessageStartIcon-ae539709","../../MessageSummary-069bc6d8","../../MessageTimestamp-5ac8675d","../../MessageUtils-3e15c456","../../utils/UNSAFE_logger","../../utils/UNSAFE_soundUtils","../../MessagesManager-8a75ac98","../../PRIVATE_TransitionGroup","../../hooks/UNSAFE_useMessagesContext","../../UNSAFE_HiddenAccessible","../../HiddenAccessible-b5a8bea7","../../ComponentMessageContainer-92d583aa","../../hooks/UNSAFE_useClearIcon","../../utils/UNSAFE_componentUtils","../../ClearIcon-5bb5b0bc","../../hooks/UNSAFE_useCurrentValueReducer","../../hooks/UNSAFE_useLengthFilter","../../utils/UNSAFE_lengthFilter","../../hooks/UNSAFE_usePrefixSuffix","../../UNSAFE_PrefixSuffix"],function(e,n,s,t,o,r,l,c,u,i,a,d,b,m,f,h,x,p,S,y,E,F,C,j,A,v,k,P,U,_,w,g,N,I,q,R,O,T,M,$,B,H,D,L,V,X,z,W,G,J,K,Q,Y,Z,ee,ne,se,te,oe,re,le,ce,ue,ie,ae,de,be,me,fe,he,xe,pe,Se,ye,Ee,Fe,Ce,je,Ae,ve,ke,Pe,Ue,_e,we,ge,Ne,Ie,qe,Re,Oe,Te,Me,$e,Be,He,De,Le,Ve,Xe,ze,We,Ge,Je,Ke,Qe,Ye,Ze,en,nn,sn,tn){"use strict";const on=()=>{};async function rn(){const n=c.matchTranslationBundle(["en"],new Set(["en-US","en"])),{default:s}=await function(n){switch(n){case"../../resources/nls/ar/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ar/bundle"],n,s)});case"../../resources/nls/ar-XB/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ar-XB/bundle"],n,s)});case"../../resources/nls/bg/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/bg/bundle"],n,s)});case"../../resources/nls/bs/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/bs/bundle"],n,s)});case"../../resources/nls/bs-Cyrl/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/bs-Cyrl/bundle"],n,s)});case"../../resources/nls/cs/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/cs/bundle"],n,s)});case"../../resources/nls/da/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/da/bundle"],n,s)});case"../../resources/nls/de/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/de/bundle"],n,s)});case"../../resources/nls/el/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/el/bundle"],n,s)});case"../../resources/nls/en/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/en/bundle"],n,s)});case"../../resources/nls/en-XA/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/en-XA/bundle"],n,s)});case"../../resources/nls/en-XC/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/en-XC/bundle"],n,s)});case"../../resources/nls/es/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/es/bundle"],n,s)});case"../../resources/nls/et/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/et/bundle"],n,s)});case"../../resources/nls/fi/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/fi/bundle"],n,s)});case"../../resources/nls/fr/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/fr/bundle"],n,s)});case"../../resources/nls/fr-CA/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/fr-CA/bundle"],n,s)});case"../../resources/nls/he/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/he/bundle"],n,s)});case"../../resources/nls/hr/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/hr/bundle"],n,s)});case"../../resources/nls/hu/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/hu/bundle"],n,s)});case"../../resources/nls/is/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/is/bundle"],n,s)});case"../../resources/nls/it/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/it/bundle"],n,s)});case"../../resources/nls/ja/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ja/bundle"],n,s)});case"../../resources/nls/ko/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ko/bundle"],n,s)});case"../../resources/nls/lt/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/lt/bundle"],n,s)});case"../../resources/nls/lv/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/lv/bundle"],n,s)});case"../../resources/nls/ms/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ms/bundle"],n,s)});case"../../resources/nls/nl/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/nl/bundle"],n,s)});case"../../resources/nls/no/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/no/bundle"],n,s)});case"../../resources/nls/pl/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/pl/bundle"],n,s)});case"../../resources/nls/pt/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/pt/bundle"],n,s)});case"../../resources/nls/pt-PT/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/pt-PT/bundle"],n,s)});case"../../resources/nls/ro/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ro/bundle"],n,s)});case"../../resources/nls/ru/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/ru/bundle"],n,s)});case"../../resources/nls/sk/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/sk/bundle"],n,s)});case"../../resources/nls/sl/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/sl/bundle"],n,s)});case"../../resources/nls/sr/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/sr/bundle"],n,s)});case"../../resources/nls/sr-Latn/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/sr-Latn/bundle"],n,s)});case"../../resources/nls/sv/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/sv/bundle"],n,s)});case"../../resources/nls/th/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/th/bundle"],n,s)});case"../../resources/nls/tr/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/tr/bundle"],n,s)});case"../../resources/nls/uk/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/uk/bundle"],n,s)});case"../../resources/nls/vi/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/vi/bundle"],n,s)});case"../../resources/nls/zh-Hans/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/zh-Hans/bundle"],n,s)});case"../../resources/nls/zh-Hant/bundle.ts":return new Promise(function(n,s){e(["../../resources/nls/zh-Hant/bundle"],n,s)});default:return new Promise(function(e,s){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+n)))})}}(`../../resources/nls/${n}/bundle.ts`);return{translations:{"@oracle/oraclejet-preact":s}}}const ln=[{name:"InputPassword",component:function({hasClearIcon:e,isDisabled:s,isReadonly:o,label:l}){const[c,u]=t.useState("hello");return n.jsxs(n.Fragment,{children:[n.jsx(r.InputPassword,{hasClearIcon:e,isDisabled:s,isReadonly:o,label:l,onInput:on,value:c}),n.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>u("goodbye")},{children:"Click me"}))]})}},{name:"InputText",component:function({hasClearIcon:e,isDisabled:s,isReadonly:o,label:r}){const[l,c]=t.useState("hello");return n.jsxs(n.Fragment,{children:[n.jsx(u.InputText,{hasClearIcon:e,isDisabled:s,isReadonly:o,label:r,onInput:on,value:l}),n.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>c("goodbye")},{children:"Click me"}))]})}}];describe("FormControlClearIcon.spec",()=>{let e;beforeEach(async function(){e=await rn()}),ln.forEach(function(t){it(`${t.name} hasClearIcon 'conditionally', no value, focusin/focusout`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"conditionally",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");c.value="",s.act(()=>{c.focus()});const u='[title="Clear"]';let i=r.querySelector(u);o.expect(i,"clear icon found").not.null;const a=r.querySelector(".testclickmebutton");s.act(()=>{a.focus()}),i=r.querySelector(u),o.expect(i,"clear icon not found").null}),it(`${t.name} hasClearIcon 'conditionally', with value, focusin/focusout`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"conditionally",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");o.expect(c.value).equal("hello"),s.act(()=>{c.focus()});const u='[title="Clear"]';let i=r.querySelector(u);o.expect(i,"clear icon found").not.null;const a=r.querySelector(".testclickmebutton");s.act(()=>{a.focus()}),i=r.querySelector(u),o.expect(i,"clear icon not found").null}),it(`${t.name} hasClearIcon 'conditionally', with value, hover/blur`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"conditionally",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");o.expect(c.value).equal("hello"),s.act(()=>{c.focus()});const u='[title="Clear"]';let i=r.querySelector(u);o.expect(i,"clear icon found").not.null,s.act(()=>{c.blur()}),i=r.querySelector(u),o.expect(i,"clear icon not found").null}),it(`${t.name} hasClearIcon 'always', check icon`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"always",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");o.expect(c.value).equal("hello");const u=r.querySelector('[title="Clear"]');o.expect(u,"clear icon found").not.null}),it(`${t.name} hasClearIcon 'always', with value, focusin/focusout`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"always",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");o.expect(c.value).equal("hello"),c.value="";const u=r.querySelector('[title="Clear"]');o.expect(u,"clear icon found even if no value is in the field").not.null}),it(`${t.name} hasClearIcon 'always', isReadonly true`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"always",isReadonly:!0,label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector('[title="Clear"]');o.expect(c,"clear icon not found for readonly component").null}),it(`${t.name} hasClearIcon 'always', isDisabled true`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"always",isDisabled:!0,label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector('[title="Clear"]');o.expect(c,"clear icon not found for disabled component").null}),it(`${t.name} hasClearIcon 'always', focusin`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"always",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");o.expect(c.value).equal("hello"),s.act(()=>{c.focus()});const u=r.querySelector('[title="Clear"]');o.expect(u,"clear icon found, so this should not be null").not.null}),it(`${t.name} hasClearIcon 'never', check icon`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"never",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");o.expect(c.value).equal("hello");const u=r.querySelector('[title="Clear"]');o.expect(u,"clear icon not found").null}),it(`${t.name} hasClearIcon 'never', focusin`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"never",label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");s.act(()=>{c.focus()});const u=r.querySelector('[title="Clear"]');o.expect(u,"clear icon not found").null}),it(`${t.name} hasClearIcon 'never', isReadonly comp`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"never",isReadonly:!0,label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector('[title="Clear"]');o.expect(c,"clear icon not found").null}),it(`${t.name} hasClearIcon 'never', isDisabled comp`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{hasClearIcon:"never",isDisabled:!0,label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector('[title="Clear"]');o.expect(c,"clear icon not found").null}),it(`${t.name} hasClearIcon not specified, focus comp`,async()=>{const{container:r}=s.render(n.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[n.jsx(t.component,{label:"field label"}),n.jsx("button",Object.assign({class:"testclickmebutton"},{children:"Click me"}))]}))),c=r.querySelector("input");s.act(()=>{c.focus()});const u=r.querySelector('[title="Clear"]');o.expect(u,"clear icon not found").null})}),afterEach(s.cleanup)})});
2
2
  //# sourceMappingURL=FormControlClearIcon.spec.js.map
@@ -1,2 +1,2 @@
1
- define(["require","preact/jsx-runtime","@testing-library/preact","preact/hooks","chai","../../UNSAFE_InputPassword","../../UNSAFE_Environment","../../utils/UNSAFE_matchTranslationBundle","../../UNSAFE_InputText","../../UNSAFE_NumberInputText","../../UNSAFE_TextArea","../../UNSAFE_TextAreaAutosize","../../NumberInputText-0b71cdfd","../../TextArea-5b0671f9","../../TextAreaAutosize-ed0589cf","preact/compat","../../hooks/UNSAFE_useFocusableTextField","../../tslib.es6-d809b4dd","../../hooks/UNSAFE_useFocusWithin","../../useFocusWithin-369336f7","../../hooks/UNSAFE_useFormContext","preact","../../hooks/UNSAFE_useFormFieldContext","../../hooks/UNSAFE_useTextField","../../hooks/UNSAFE_useId","../../hooks/UNSAFE_useHover","../../hooks/UNSAFE_useToggle","../../UNSAFE_Label","../../utils/UNSAFE_classNames","../../classNames-f9dd69a8",'module',"../../UNSAFE_TextField","../../ReadonlyTextFieldInput-ee580a50","../../hooks/UNSAFE_useTabbableMode","../../utils/UNSAFE_interpolations/text","../../keys-7dc8fa94","../../_curry1-1865bdf8","../../_has-af025a25","../../utils/UNSAFE_mergeInterpolations","../../_curry3-73b7a4f7","../../_curry2-c82c3af2","../../FormControlUtils-3c0aac96","../../hooks/UNSAFE_useTranslationBundle","../../UNSAFE_Layer","../../UNSAFE_LabelValueLayout","../../UNSAFE_Flex","../../Flex-343c337e","../../utils/UNSAFE_interpolations/dimensions","../../utils/UNSAFE_arrayUtils","../../utils/UNSAFE_size","../../utils/UNSAFE_interpolations/boxalignment","../../utils/UNSAFE_interpolations/flexbox","../../flexbox-83e878b1","../../utils/UNSAFE_interpolations/flexitem","../../flexitem-c406a7bb","../../TextFieldInput-57f2d560","../../hooks/UNSAFE_useTextFieldInputHandlers","../../utils/PRIVATE_clientHints","../../clientHints-0a14d5d8","../../hooks/UNSAFE_useDebounce","../../UNSAFE_LiveRegion","../../UNSAFE_UserAssistance","../../InlineHelpSource-466d3759","../../UNSAFE_ComponentMessage","../../ComponentMessage-3fae5a5b","../../PRIVATE_Message","../../utils/PRIVATE_timer","../../MessageCloseButton-2ab50565","../../UNSAFE_Button","../../Button-9e2b5706","../../UNSAFE_BaseButton","../../BaseButton-21f35d61","../../hooks/UNSAFE_usePress","../../hooks/UNSAFE_useActive","../../utils/UNSAFE_mergeProps","../../index-5dbc066a","../../index-efbc9ba1","../../UNSAFE_Icon","../../Icon-597b4544","../../hooks/UNSAFE_useTooltip","../../UNSAFE_Floating","../../Floating-f251f4e6","../../index-c61f0d48","../../hooks/UNSAFE_useUser","../../utils/PRIVATE_floatingUtils","../../utils/PRIVATE_refUtils","../../hooks/UNSAFE_useOutsideClick","../../hooks/UNSAFE_useFocus","../../hooks/UNSAFE_useTouch","../../hooks/UNSAFE_useAnimation","../../useAnimation-cfb8d533","../../hooks/UNSAFE_useTheme","../../MessageDetail-c3d3a0cf","../../MessageFormattingUtils-a178900f","../../utils/UNSAFE_getLocale","../../utils/UNSAFE_stringUtils","../../stringUtils-c7da3cbf","../../Message.types-84dcb531","../../MessageStartIcon-3d36c660","../../MessageSummary-a4283ef2","../../MessageTimestamp-e56a6681","../../MessageUtils-a930918a","../../utils/UNSAFE_logger","../../utils/UNSAFE_soundUtils","../../MessagesManager-4cf3413e","../../PRIVATE_TransitionGroup","../../hooks/UNSAFE_useMessagesContext","../../UNSAFE_HiddenAccessible","../../HiddenAccessible-c1b8ec8e","../../ComponentMessageContainer-2130cdd7","../../hooks/UNSAFE_useClearIcon","../../utils/UNSAFE_componentUtils","../../ClearIcon-17f117c0","../../hooks/UNSAFE_useCurrentValueReducer","../../hooks/UNSAFE_useLengthFilter","../../utils/UNSAFE_lengthFilter","../../hooks/UNSAFE_usePrefixSuffix","../../UNSAFE_PrefixSuffix","../../UNSAFE_Grid","../../utils/UNSAFE_interpolations/grid"],function(e,t,n,s,o,r,l,c,a,u,i,d,m,b,h,x,f,v,p,E,g,S,k,C,A,F,y,U,_,w,P,N,j,q,T,I,O,L,M,R,B,D,H,z,W,$,V,X,G,J,K,Q,Y,Z,ee,te,ne,se,oe,re,le,ce,ae,ue,ie,de,me,be,he,xe,fe,ve,pe,Ee,ge,Se,ke,Ce,Ae,Fe,ye,Ue,_e,we,Pe,Ne,je,qe,Te,Ie,Oe,Le,Me,Re,Be,De,He,ze,We,$e,Ve,Xe,Ge,Je,Ke,Qe,Ye,Ze,et,tt,nt,st,ot,rt,lt,ct,at,ut,dt,mt){"use strict";function bt({hasClearIcon:e,label:n}){const[o,l]=s.useState("hello"),[c,a]=s.useState(0),[u,i]=s.useState("hello"),d=s.useCallback(e=>{var t;l(null!==(t=e.value)&&void 0!==t?t:"")},[]),m=s.useCallback(e=>{var t;a(e=>e+1),i(null!==(t=e.value)&&void 0!==t?t:"")},[]);return t.jsxs(t.Fragment,{children:[t.jsx(r.InputPassword,{hasClearIcon:e,label:n,onCommit:m,onInput:d,value:o}),t.jsx("span",Object.assign({class:"testcommittedcountclass"},{children:c})),t.jsx("span",Object.assign({class:"testcommittedvalueclass"},{children:u})),t.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>l("goodbye")},{children:"Click me"}))]})}function ht({hasClearIcon:e,label:n,maxLength:o}){const[r,l]=s.useState("hello"),[c,u]=s.useState(0),[i,d]=s.useState("hello"),m=s.useCallback(e=>{var t;l(null!==(t=e.value)&&void 0!==t?t:"")},[]),b=s.useCallback(e=>{var t;u(e=>e+1),d(null!==(t=e.value)&&void 0!==t?t:"")},[]);return t.jsxs(t.Fragment,{children:[t.jsx(a.InputText,{hasClearIcon:e,label:n,maxLength:o,onCommit:b,onInput:m,value:r}),t.jsx("span",Object.assign({class:"testcommittedcountclass"},{children:c})),t.jsx("span",Object.assign({class:"testcommittedvalueclass"},{children:i})),t.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>l("goodbye")},{children:"Click me"}))]})}function xt({label:e,maxLength:n}){const[o,r]=s.useState("hello"),[l,c]=s.useState(0),[a,u]=s.useState("hello"),i=s.useCallback(e=>{var t;r(null!==(t=e.value)&&void 0!==t?t:"")},[]),d=s.useCallback(e=>{var t;c(e=>e+1),u(null!==(t=e.value)&&void 0!==t?t:"")},[]);return t.jsxs(t.Fragment,{children:[t.jsx(b.TextArea,{label:e,maxLength:n,onCommit:d,onInput:i,value:o}),t.jsx("span",Object.assign({class:"testcommittedcountclass"},{children:l})),t.jsx("span",Object.assign({class:"testcommittedvalueclass"},{children:a})),t.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>r("goodbye")},{children:"Click me"}))]})}function ft({label:e,maxLength:n}){const[o,r]=s.useState("hello"),[l,c]=s.useState(0),[a,u]=s.useState("hello"),i=s.useCallback(e=>{var t;r(null!==(t=e.value)&&void 0!==t?t:"")},[]),d=s.useCallback(e=>{var t;c(e=>e+1),u(null!==(t=e.value)&&void 0!==t?t:"")},[]);return t.jsxs(t.Fragment,{children:[t.jsx(h.TextAreaAutosize,{label:e,maxLength:n,onCommit:d,onInput:i,value:o}),t.jsx("span",Object.assign({class:"testcommittedcountclass"},{children:l})),t.jsx("span",Object.assign({class:"testcommittedvalueclass"},{children:a})),t.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>r("goodbye")},{children:"Click me"}))]})}async function vt(){const t=c.matchTranslationBundle(["en"],new Set(["en-US","en"])),{default:n}=await function(t){switch(t){case"../../resources/nls/ar/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ar/bundle"],t,n)});case"../../resources/nls/ar-XB/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ar-XB/bundle"],t,n)});case"../../resources/nls/bg/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/bg/bundle"],t,n)});case"../../resources/nls/bs/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/bs/bundle"],t,n)});case"../../resources/nls/bs-Cyrl/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/bs-Cyrl/bundle"],t,n)});case"../../resources/nls/cs/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/cs/bundle"],t,n)});case"../../resources/nls/da/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/da/bundle"],t,n)});case"../../resources/nls/de/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/de/bundle"],t,n)});case"../../resources/nls/el/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/el/bundle"],t,n)});case"../../resources/nls/en/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/en/bundle"],t,n)});case"../../resources/nls/en-XA/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/en-XA/bundle"],t,n)});case"../../resources/nls/en-XC/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/en-XC/bundle"],t,n)});case"../../resources/nls/es/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/es/bundle"],t,n)});case"../../resources/nls/et/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/et/bundle"],t,n)});case"../../resources/nls/fi/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/fi/bundle"],t,n)});case"../../resources/nls/fr/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/fr/bundle"],t,n)});case"../../resources/nls/fr-CA/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/fr-CA/bundle"],t,n)});case"../../resources/nls/he/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/he/bundle"],t,n)});case"../../resources/nls/hr/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/hr/bundle"],t,n)});case"../../resources/nls/hu/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/hu/bundle"],t,n)});case"../../resources/nls/is/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/is/bundle"],t,n)});case"../../resources/nls/it/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/it/bundle"],t,n)});case"../../resources/nls/ja/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ja/bundle"],t,n)});case"../../resources/nls/ko/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ko/bundle"],t,n)});case"../../resources/nls/lt/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/lt/bundle"],t,n)});case"../../resources/nls/lv/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/lv/bundle"],t,n)});case"../../resources/nls/ms/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ms/bundle"],t,n)});case"../../resources/nls/nl/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/nl/bundle"],t,n)});case"../../resources/nls/no/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/no/bundle"],t,n)});case"../../resources/nls/pl/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/pl/bundle"],t,n)});case"../../resources/nls/pt/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/pt/bundle"],t,n)});case"../../resources/nls/pt-PT/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/pt-PT/bundle"],t,n)});case"../../resources/nls/ro/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ro/bundle"],t,n)});case"../../resources/nls/ru/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ru/bundle"],t,n)});case"../../resources/nls/sk/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/sk/bundle"],t,n)});case"../../resources/nls/sl/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/sl/bundle"],t,n)});case"../../resources/nls/sr/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/sr/bundle"],t,n)});case"../../resources/nls/sr-Latn/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/sr-Latn/bundle"],t,n)});case"../../resources/nls/sv/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/sv/bundle"],t,n)});case"../../resources/nls/th/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/th/bundle"],t,n)});case"../../resources/nls/tr/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/tr/bundle"],t,n)});case"../../resources/nls/uk/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/uk/bundle"],t,n)});case"../../resources/nls/vi/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/vi/bundle"],t,n)});case"../../resources/nls/zh-Hans/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/zh-Hans/bundle"],t,n)});case"../../resources/nls/zh-Hant/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/zh-Hant/bundle"],t,n)});default:return new Promise(function(e,n){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t)))})}}(`../../resources/nls/${t}/bundle.ts`);return{translations:{"@oracle/oraclejet-preact":n}}}const pt=[{name:"InputPassword",component:bt},{name:"InputText",component:ht},{name:"NumberInputText",component:function({label:e}){const[n,o]=s.useState("hello"),[r,l]=s.useState(0),[c,a]=s.useState("hello"),u=s.useCallback(e=>{var t;o(null!==(t=e.value)&&void 0!==t?t:"")},[]),i=s.useCallback(e=>{var t;l(e=>e+1),a(null!==(t=e.value)&&void 0!==t?t:"")},[]);return t.jsxs(t.Fragment,{children:[t.jsx(m.NumberInputText,{label:e,onCommit:i,onInput:u,value:n}),t.jsx("span",Object.assign({class:"testcommittedcountclass"},{children:r})),t.jsx("span",Object.assign({class:"testcommittedvalueclass"},{children:c})),t.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>o("goodbye")},{children:"Click me"}))]})}},{name:"TextArea",component:xt},{name:"TextAreaAutosize",component:ft}],Et=[{name:"InputPassword",component:bt},{name:"InputText",component:ht}],gt=[{name:"InputText",component:ht},{name:"TextArea",component:xt},{name:"TextAreaAutosize",component:ft}];describe("Form Controls - onCommit",()=>{let e;beforeEach(async function(){e=await vt()}),pt.forEach(s=>it(`${s.name}: test initial value`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"test initial value"})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello")})),pt.forEach(s=>it(`${s.name} test blur should not call onCommit`,async()=>{const{container:r}=n.render(t.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[t.jsx(s.component,{label:"field label"}),t.jsx("button",{})]}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testclickmebutton");n.act(()=>{a.focus()}),n.act(()=>{i.focus()}),o.expect(null==u?void 0:u.textContent,"blur without editing, onCommit count should be 0").to.equal("0")})),pt.forEach(s=>it(`${s.name}: test Enter Enter Enter should not call onCommit`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"field label"})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testcommittedvalueclass");o.expect(null==i?void 0:i.textContent,"initial render committed value").to.equal("hello"),o.expect(null==u?void 0:u.textContent,"initial render, check onCommit count").to.equal("0"),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),o.expect(null==u?void 0:u.textContent,"Press Enter, check onCommit count").to.equal("0"),o.expect(null==i?void 0:i.textContent,"after Enter, committed value").to.equal("hello")})),Et.forEach(s=>it(`${s.name} test click Clear Icon clears display value, Enter Enter Enter commits value once`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"field label",hasClearIcon:"always"})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testcommittedvalueclass"),d=r.querySelector('[title="Clear"]');o.expect(d,"clear icon found").not.null,d&&n.fireEvent.click(d),o.expect(a.value,"after click clear icon, input value").to.equal(""),o.expect(null==i?void 0:i.textContent,"after click icon, committed value not changed").to.equal("hello"),o.expect(null==u?void 0:u.textContent,"clicked clear icon, check onCommit count").to.equal("0"),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),o.expect(null==u?void 0:u.textContent,"Press Enter a few times after clear icon").to.equal("1"),o.expect(null==i?void 0:i.textContent,"after click icon and Enter, committed value").to.equal("")})),Et.forEach(s=>it(`${s.name}: test click Clear Icon clears display value, blur commits value`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"field label",hasClearIcon:"always"})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testcommittedvalueclass"),d=r.querySelector(".testclickmebutton"),m=r.querySelector('[title="Clear"]');o.expect(m,"clear icon found").not.null,m&&n.fireEvent.click(m),o.expect(a.value,"after click clear icon, input value").to.equal(""),o.expect(null==i?void 0:i.textContent,"after click icon, committed value not changed").to.equal("hello"),o.expect(null==u?void 0:u.textContent,"clicked clear icon, check onCommit count").to.equal("0"),n.act(()=>{d.focus()}),o.expect(null==u?void 0:u.textContent,"after click icon and blur, onCommit count should be increased to 1").to.equal("1"),o.expect(null==i?void 0:i.textContent,"after click icon and blur, committed value").to.equal("")})),pt.forEach(s=>it(`${s.name}: test programmatic value change does not call onCommit`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"programmatic change",hasClearIcon:"never"})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testcommittedvalueclass"),d=r.querySelector(".testclickmebutton");n.act(()=>{n.fireEvent.click(d)}),o.expect(a.value,"display value after programmatic change").to.equal("goodbye"),o.expect(null==u?void 0:u.textContent,"after programmatic change, onCommit is not called").to.equal("0"),o.expect(null==i?void 0:i.textContent,"after programmatic change, committed value is not changed").to.equal("hello"),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),o.expect(null==u?void 0:u.textContent,"after programmatic change, onCommit is not called").to.equal("0")})),gt.forEach(s=>it(`${s.name} test programmatic value change with < maxlength does not call onCommit`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"programmatic change",maxLength:30})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testcommittedvalueclass"),d=r.querySelector(".testclickmebutton");n.act(()=>{n.fireEvent.click(d)}),o.expect(a.value,"display value after programmatic change").to.equal("goodbye"),o.expect(null==u?void 0:u.textContent,"after programmatic change, onCommit is not called").to.equal("0"),o.expect(null==i?void 0:i.textContent,"after programmatic change, committed value is not changed").to.equal("hello")})),gt.forEach(s=>it(`${s.name}: test programmatic value change with > maxlength does call onCommit`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"programmatic change",maxLength:6})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testcommittedvalueclass"),d=r.querySelector(".testclickmebutton");n.act(()=>{n.fireEvent.click(d)}),o.expect(a.value,"display value after programmatic change").to.equal("goodby"),o.expect(null==u?void 0:u.textContent,"after programmatic change when maxLength filter kicks in, onCommit is called").to.equal("1"),o.expect(null==i?void 0:i.textContent,"after programmatic change when maxLength filter kicks in, committed value is changed").to.equal("goodby")})),afterEach(n.cleanup)})});
1
+ define(["require","preact/jsx-runtime","@testing-library/preact","preact/hooks","chai","../../UNSAFE_InputPassword","../../UNSAFE_Environment","../../utils/UNSAFE_matchTranslationBundle","../../UNSAFE_InputText","../../UNSAFE_NumberInputText","../../UNSAFE_TextArea","../../UNSAFE_TextAreaAutosize","../../NumberInputText-b58827bb","../../TextArea-411a7801","../../TextAreaAutosize-9f825781","preact/compat","../../hooks/UNSAFE_useFocusableTextField","../../tslib.es6-1f40628c","../../hooks/UNSAFE_useFocusWithin","../../useFocusWithin-b0df8a7d","../../hooks/UNSAFE_useFormContext","preact","../../hooks/UNSAFE_useFormFieldContext","../../hooks/UNSAFE_useTextField","../../hooks/UNSAFE_useId","../../hooks/UNSAFE_useHover","../../hooks/UNSAFE_useToggle","../../UNSAFE_Label","../../utils/UNSAFE_classNames","../../classNames-cbd28834",'module',"../../UNSAFE_TextField","../../ReadonlyTextFieldInput-745b0d92","../../hooks/UNSAFE_useTabbableMode","../../utils/UNSAFE_interpolations/text","../../keys-06a9557b","../../_curry1-8db40d07","../../_has-de432e95","../../utils/UNSAFE_mergeInterpolations","../../_curry3-4f75464d","../../_curry2-cd63f2e8","../../FormControlUtils-37cdc68e","../../hooks/UNSAFE_useTranslationBundle","../../UNSAFE_Layer","../../UNSAFE_LabelValueLayout","../../UNSAFE_Flex","../../Flex-d69d5143","../../utils/UNSAFE_interpolations/dimensions","../../utils/UNSAFE_arrayUtils","../../utils/UNSAFE_size","../../utils/UNSAFE_interpolations/boxalignment","../../utils/UNSAFE_interpolations/flexbox","../../flexbox-5392cdab","../../utils/UNSAFE_interpolations/flexitem","../../flexitem-666af748","../../TextFieldInput-ead5bb20","../../hooks/UNSAFE_useTextFieldInputHandlers","../../utils/PRIVATE_clientHints","../../clientHints-fd549a03","../../hooks/UNSAFE_useDebounce","../../UNSAFE_LiveRegion","../../UNSAFE_UserAssistance","../../InlineHelpSource-62724071","../../UNSAFE_ComponentMessage","../../ComponentMessage-5d0215b0","../../PRIVATE_Message","../../utils/PRIVATE_timer","../../MessageCloseButton-be433526","../../UNSAFE_Button","../../Button-58691145","../../UNSAFE_BaseButton","../../BaseButton-66791a44","../../hooks/UNSAFE_usePress","../../hooks/UNSAFE_useActive","../../utils/UNSAFE_mergeProps","../../index-3c763990","../../index-f98775f6","../../UNSAFE_Icon","../../Icon-1e1b346a","../../hooks/UNSAFE_useTooltip","../../UNSAFE_Floating","../../Floating-370df48b","../../index-10802134","../../hooks/UNSAFE_useUser","../../utils/PRIVATE_floatingUtils","../../utils/PRIVATE_refUtils","../../hooks/UNSAFE_useOutsideClick","../../hooks/UNSAFE_useFocus","../../hooks/UNSAFE_useTouch","../../hooks/UNSAFE_useAnimation","../../useAnimation-e954368d","../../hooks/UNSAFE_useTheme","../../MessageDetail-5875cf97","../../MessageFormattingUtils-c8700622","../../utils/UNSAFE_getLocale","../../utils/UNSAFE_stringUtils","../../stringUtils-3710bb60","../../Message.types-a06c10b7","../../MessageStartIcon-ae539709","../../MessageSummary-069bc6d8","../../MessageTimestamp-5ac8675d","../../MessageUtils-3e15c456","../../utils/UNSAFE_logger","../../utils/UNSAFE_soundUtils","../../MessagesManager-8a75ac98","../../PRIVATE_TransitionGroup","../../hooks/UNSAFE_useMessagesContext","../../UNSAFE_HiddenAccessible","../../HiddenAccessible-b5a8bea7","../../ComponentMessageContainer-92d583aa","../../hooks/UNSAFE_useClearIcon","../../utils/UNSAFE_componentUtils","../../ClearIcon-5bb5b0bc","../../hooks/UNSAFE_useCurrentValueReducer","../../hooks/UNSAFE_useLengthFilter","../../utils/UNSAFE_lengthFilter","../../hooks/UNSAFE_usePrefixSuffix","../../UNSAFE_PrefixSuffix","../../UNSAFE_Grid","../../utils/UNSAFE_interpolations/grid"],function(e,t,n,s,o,r,l,c,a,u,i,d,m,b,h,x,v,p,f,E,g,S,k,C,A,F,y,U,_,w,P,N,j,q,T,I,O,L,M,R,B,D,H,z,W,$,V,X,G,J,K,Q,Y,Z,ee,te,ne,se,oe,re,le,ce,ae,ue,ie,de,me,be,he,xe,ve,pe,fe,Ee,ge,Se,ke,Ce,Ae,Fe,ye,Ue,_e,we,Pe,Ne,je,qe,Te,Ie,Oe,Le,Me,Re,Be,De,He,ze,We,$e,Ve,Xe,Ge,Je,Ke,Qe,Ye,Ze,et,tt,nt,st,ot,rt,lt,ct,at,ut,dt,mt){"use strict";function bt({hasClearIcon:e,label:n}){const[o,l]=s.useState("hello"),[c,a]=s.useState(0),[u,i]=s.useState("hello"),d=s.useCallback(e=>{var t;l(null!==(t=e.value)&&void 0!==t?t:"")},[]),m=s.useCallback(e=>{var t;a(e=>e+1),i(null!==(t=e.value)&&void 0!==t?t:"")},[]);return t.jsxs(t.Fragment,{children:[t.jsx(r.InputPassword,{hasClearIcon:e,label:n,onCommit:m,onInput:d,value:o}),t.jsx("span",Object.assign({class:"testcommittedcountclass"},{children:c})),t.jsx("span",Object.assign({class:"testcommittedvalueclass"},{children:u})),t.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>l("goodbye")},{children:"Click me"}))]})}function ht({hasClearIcon:e,label:n,maxLength:o}){const[r,l]=s.useState("hello"),[c,u]=s.useState(0),[i,d]=s.useState("hello"),m=s.useCallback(e=>{var t;l(null!==(t=e.value)&&void 0!==t?t:"")},[]),b=s.useCallback(e=>{var t;u(e=>e+1),d(null!==(t=e.value)&&void 0!==t?t:"")},[]);return t.jsxs(t.Fragment,{children:[t.jsx(a.InputText,{hasClearIcon:e,label:n,maxLength:o,onCommit:b,onInput:m,value:r}),t.jsx("span",Object.assign({class:"testcommittedcountclass"},{children:c})),t.jsx("span",Object.assign({class:"testcommittedvalueclass"},{children:i})),t.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>l("goodbye")},{children:"Click me"}))]})}function xt({label:e,maxLength:n}){const[o,r]=s.useState("hello"),[l,c]=s.useState(0),[a,u]=s.useState("hello"),i=s.useCallback(e=>{var t;r(null!==(t=e.value)&&void 0!==t?t:"")},[]),d=s.useCallback(e=>{var t;c(e=>e+1),u(null!==(t=e.value)&&void 0!==t?t:"")},[]);return t.jsxs(t.Fragment,{children:[t.jsx(b.TextArea,{label:e,maxLength:n,onCommit:d,onInput:i,value:o}),t.jsx("span",Object.assign({class:"testcommittedcountclass"},{children:l})),t.jsx("span",Object.assign({class:"testcommittedvalueclass"},{children:a})),t.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>r("goodbye")},{children:"Click me"}))]})}function vt({label:e,maxLength:n}){const[o,r]=s.useState("hello"),[l,c]=s.useState(0),[a,u]=s.useState("hello"),i=s.useCallback(e=>{var t;r(null!==(t=e.value)&&void 0!==t?t:"")},[]),d=s.useCallback(e=>{var t;c(e=>e+1),u(null!==(t=e.value)&&void 0!==t?t:"")},[]);return t.jsxs(t.Fragment,{children:[t.jsx(h.TextAreaAutosize,{label:e,maxLength:n,onCommit:d,onInput:i,value:o}),t.jsx("span",Object.assign({class:"testcommittedcountclass"},{children:l})),t.jsx("span",Object.assign({class:"testcommittedvalueclass"},{children:a})),t.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>r("goodbye")},{children:"Click me"}))]})}async function pt(){const t=c.matchTranslationBundle(["en"],new Set(["en-US","en"])),{default:n}=await function(t){switch(t){case"../../resources/nls/ar/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ar/bundle"],t,n)});case"../../resources/nls/ar-XB/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ar-XB/bundle"],t,n)});case"../../resources/nls/bg/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/bg/bundle"],t,n)});case"../../resources/nls/bs/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/bs/bundle"],t,n)});case"../../resources/nls/bs-Cyrl/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/bs-Cyrl/bundle"],t,n)});case"../../resources/nls/cs/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/cs/bundle"],t,n)});case"../../resources/nls/da/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/da/bundle"],t,n)});case"../../resources/nls/de/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/de/bundle"],t,n)});case"../../resources/nls/el/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/el/bundle"],t,n)});case"../../resources/nls/en/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/en/bundle"],t,n)});case"../../resources/nls/en-XA/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/en-XA/bundle"],t,n)});case"../../resources/nls/en-XC/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/en-XC/bundle"],t,n)});case"../../resources/nls/es/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/es/bundle"],t,n)});case"../../resources/nls/et/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/et/bundle"],t,n)});case"../../resources/nls/fi/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/fi/bundle"],t,n)});case"../../resources/nls/fr/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/fr/bundle"],t,n)});case"../../resources/nls/fr-CA/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/fr-CA/bundle"],t,n)});case"../../resources/nls/he/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/he/bundle"],t,n)});case"../../resources/nls/hr/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/hr/bundle"],t,n)});case"../../resources/nls/hu/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/hu/bundle"],t,n)});case"../../resources/nls/is/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/is/bundle"],t,n)});case"../../resources/nls/it/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/it/bundle"],t,n)});case"../../resources/nls/ja/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ja/bundle"],t,n)});case"../../resources/nls/ko/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ko/bundle"],t,n)});case"../../resources/nls/lt/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/lt/bundle"],t,n)});case"../../resources/nls/lv/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/lv/bundle"],t,n)});case"../../resources/nls/ms/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ms/bundle"],t,n)});case"../../resources/nls/nl/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/nl/bundle"],t,n)});case"../../resources/nls/no/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/no/bundle"],t,n)});case"../../resources/nls/pl/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/pl/bundle"],t,n)});case"../../resources/nls/pt/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/pt/bundle"],t,n)});case"../../resources/nls/pt-PT/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/pt-PT/bundle"],t,n)});case"../../resources/nls/ro/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ro/bundle"],t,n)});case"../../resources/nls/ru/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/ru/bundle"],t,n)});case"../../resources/nls/sk/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/sk/bundle"],t,n)});case"../../resources/nls/sl/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/sl/bundle"],t,n)});case"../../resources/nls/sr/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/sr/bundle"],t,n)});case"../../resources/nls/sr-Latn/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/sr-Latn/bundle"],t,n)});case"../../resources/nls/sv/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/sv/bundle"],t,n)});case"../../resources/nls/th/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/th/bundle"],t,n)});case"../../resources/nls/tr/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/tr/bundle"],t,n)});case"../../resources/nls/uk/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/uk/bundle"],t,n)});case"../../resources/nls/vi/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/vi/bundle"],t,n)});case"../../resources/nls/zh-Hans/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/zh-Hans/bundle"],t,n)});case"../../resources/nls/zh-Hant/bundle.ts":return new Promise(function(t,n){e(["../../resources/nls/zh-Hant/bundle"],t,n)});default:return new Promise(function(e,n){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t)))})}}(`../../resources/nls/${t}/bundle.ts`);return{translations:{"@oracle/oraclejet-preact":n}}}const ft=[{name:"InputPassword",component:bt},{name:"InputText",component:ht},{name:"NumberInputText",component:function({label:e}){const[n,o]=s.useState("hello"),[r,l]=s.useState(0),[c,a]=s.useState("hello"),u=s.useCallback(e=>{var t;o(null!==(t=e.value)&&void 0!==t?t:"")},[]),i=s.useCallback(e=>{var t;l(e=>e+1),a(null!==(t=e.value)&&void 0!==t?t:"")},[]);return t.jsxs(t.Fragment,{children:[t.jsx(m.NumberInputText,{label:e,onCommit:i,onInput:u,value:n}),t.jsx("span",Object.assign({class:"testcommittedcountclass"},{children:r})),t.jsx("span",Object.assign({class:"testcommittedvalueclass"},{children:c})),t.jsx("button",Object.assign({class:"testclickmebutton",onClick:()=>o("goodbye")},{children:"Click me"}))]})}},{name:"TextArea",component:xt},{name:"TextAreaAutosize",component:vt}],Et=[{name:"InputPassword",component:bt},{name:"InputText",component:ht}],gt=[{name:"InputText",component:ht},{name:"TextArea",component:xt},{name:"TextAreaAutosize",component:vt}];describe("Form Controls - onCommit",()=>{let e;beforeEach(async function(){e=await pt()}),ft.forEach(s=>it(`${s.name}: test initial value`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"test initial value"})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello")})),ft.forEach(s=>it(`${s.name} test blur should not call onCommit`,async()=>{const{container:r}=n.render(t.jsxs(l.RootEnvironmentProvider,Object.assign({environment:e},{children:[t.jsx(s.component,{label:"field label"}),t.jsx("button",{})]}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testclickmebutton");n.act(()=>{a.focus()}),n.act(()=>{i.focus()}),o.expect(null==u?void 0:u.textContent,"blur without editing, onCommit count should be 0").to.equal("0")})),ft.forEach(s=>it(`${s.name}: test Enter Enter Enter should not call onCommit`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"field label"})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testcommittedvalueclass");o.expect(null==i?void 0:i.textContent,"initial render committed value").to.equal("hello"),o.expect(null==u?void 0:u.textContent,"initial render, check onCommit count").to.equal("0"),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),o.expect(null==u?void 0:u.textContent,"Press Enter, check onCommit count").to.equal("0"),o.expect(null==i?void 0:i.textContent,"after Enter, committed value").to.equal("hello")})),Et.forEach(s=>it(`${s.name} test click Clear Icon clears display value, Enter Enter Enter commits value once`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"field label",hasClearIcon:"always"})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testcommittedvalueclass"),d=r.querySelector('[title="Clear"]');o.expect(d,"clear icon found").not.null,d&&n.fireEvent.click(d),o.expect(a.value,"after click clear icon, input value").to.equal(""),o.expect(null==i?void 0:i.textContent,"after click icon, committed value not changed").to.equal("hello"),o.expect(null==u?void 0:u.textContent,"clicked clear icon, check onCommit count").to.equal("0"),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),o.expect(null==u?void 0:u.textContent,"Press Enter a few times after clear icon").to.equal("1"),o.expect(null==i?void 0:i.textContent,"after click icon and Enter, committed value").to.equal("")})),Et.forEach(s=>it(`${s.name}: test click Clear Icon clears display value, blur commits value`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"field label",hasClearIcon:"always"})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testcommittedvalueclass"),d=r.querySelector(".testclickmebutton"),m=r.querySelector('[title="Clear"]');o.expect(m,"clear icon found").not.null,m&&n.fireEvent.click(m),o.expect(a.value,"after click clear icon, input value").to.equal(""),o.expect(null==i?void 0:i.textContent,"after click icon, committed value not changed").to.equal("hello"),o.expect(null==u?void 0:u.textContent,"clicked clear icon, check onCommit count").to.equal("0"),n.act(()=>{d.focus()}),o.expect(null==u?void 0:u.textContent,"after click icon and blur, onCommit count should be increased to 1").to.equal("1"),o.expect(null==i?void 0:i.textContent,"after click icon and blur, committed value").to.equal("")})),ft.forEach(s=>it(`${s.name}: test programmatic value change does not call onCommit`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"programmatic change",hasClearIcon:"never"})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testcommittedvalueclass"),d=r.querySelector(".testclickmebutton");n.act(()=>{n.fireEvent.click(d)}),o.expect(a.value,"display value after programmatic change").to.equal("goodbye"),o.expect(null==u?void 0:u.textContent,"after programmatic change, onCommit is not called").to.equal("0"),o.expect(null==i?void 0:i.textContent,"after programmatic change, committed value is not changed").to.equal("hello"),n.fireEvent.keyDown(a,{key:"Enter",code:"Enter",charCode:13}),o.expect(null==u?void 0:u.textContent,"after programmatic change, onCommit is not called").to.equal("0")})),gt.forEach(s=>it(`${s.name} test programmatic value change with < maxlength does not call onCommit`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"programmatic change",maxLength:30})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testcommittedvalueclass"),d=r.querySelector(".testclickmebutton");n.act(()=>{n.fireEvent.click(d)}),o.expect(a.value,"display value after programmatic change").to.equal("goodbye"),o.expect(null==u?void 0:u.textContent,"after programmatic change, onCommit is not called").to.equal("0"),o.expect(null==i?void 0:i.textContent,"after programmatic change, committed value is not changed").to.equal("hello")})),gt.forEach(s=>it(`${s.name}: test programmatic value change with > maxlength does call onCommit`,async()=>{const{container:r}=n.render(t.jsx(l.RootEnvironmentProvider,Object.assign({environment:e},{children:t.jsx(s.component,{label:"programmatic change",maxLength:6})}))),c=s.name.startsWith("Text")?"textarea":"input",a=r.querySelector(c);o.expect(a.value).equal("hello");const u=r.querySelector(".testcommittedcountclass"),i=r.querySelector(".testcommittedvalueclass"),d=r.querySelector(".testclickmebutton");n.act(()=>{n.fireEvent.click(d)}),o.expect(a.value,"display value after programmatic change").to.equal("goodby"),o.expect(null==u?void 0:u.textContent,"after programmatic change when maxLength filter kicks in, onCommit is called").to.equal("1"),o.expect(null==i?void 0:i.textContent,"after programmatic change when maxLength filter kicks in, committed value is changed").to.equal("goodby")})),afterEach(n.cleanup)})});
2
2
  //# sourceMappingURL=FormControlCommit.spec.js.map