@oracle/oraclejet-core-pack 17.0.4 → 17.1.0

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 (398) hide show
  1. package/oj-c/ActionCard.json +1 -1
  2. package/oj-c/AreaChart.json +270 -178
  3. package/oj-c/Button.json +1 -1
  4. package/oj-c/ButtonsetMultiple.json +8 -8
  5. package/oj-c/ButtonsetSingle.json +8 -8
  6. package/oj-c/CardView.json +25 -12
  7. package/oj-c/Checkbox.json +4 -4
  8. package/oj-c/Checkboxset.json +92 -7
  9. package/oj-c/Collapsible.json +8 -8
  10. package/oj-c/ConveyorBelt.json +67 -5
  11. package/oj-c/DatePicker.json +96 -3
  12. package/oj-c/FilePicker.json +6 -6
  13. package/oj-c/FormControlWrapper/FormControlWrapper.js +54 -0
  14. package/oj-c/FormControlWrapper/index.js +6 -0
  15. package/oj-c/InputDateMask.json +16 -5
  16. package/oj-c/InputDatePicker.json +115 -58
  17. package/oj-c/InputDateText.json +62 -51
  18. package/oj-c/InputMonthMask.json +67 -149
  19. package/oj-c/InputNumber.json +25 -4
  20. package/oj-c/InputPassword.json +12 -1
  21. package/oj-c/InputSensitiveText.json +16 -5
  22. package/oj-c/InputText.json +23 -2
  23. package/oj-c/Legend.json +358 -321
  24. package/oj-c/LegendSection.json +1 -1
  25. package/oj-c/LineChart.json +270 -178
  26. package/oj-c/ListItemLayout.json +20 -0
  27. package/oj-c/ListView.json +84 -62
  28. package/oj-c/MenuButton.json +432 -4
  29. package/oj-c/MessageBanner.json +20 -17
  30. package/oj-c/MessageToast.json +21 -18
  31. package/oj-c/MeterBar.json +1627 -35
  32. package/oj-c/MeterCircle.json +1579 -6
  33. package/oj-c/Popup.json +56 -1
  34. package/oj-c/ProgressButton.json +567 -0
  35. package/oj-c/Radioset.json +92 -7
  36. package/oj-c/RatingGauge.json +2 -2
  37. package/oj-c/SelectMultiple.json +156 -10
  38. package/oj-c/SelectSingle.json +140 -11
  39. package/oj-c/SelectionCard.json +1 -2
  40. package/oj-c/Selector.json +11 -1
  41. package/oj-c/SelectorAll.json +11 -1
  42. package/oj-c/SplitMenuButton.json +161 -327
  43. package/oj-c/TabBar.json +169 -12
  44. package/oj-c/TabBarMixed.json +14 -14
  45. package/oj-c/Table.json +2117 -0
  46. package/oj-c/TagCloud.json +114 -8
  47. package/oj-c/TextArea.json +23 -2
  48. package/oj-c/action-card/component.json +4 -4
  49. package/oj-c/area-chart/__webdriver__/AreaChartWebElementBase.d.ts +2 -2
  50. package/oj-c/area-chart/__webdriver__/AreaChartWebElementBase.js +1 -1
  51. package/oj-c/area-chart/__webdriver__/AreaChartWebElementBase.js.map +1 -1
  52. package/oj-c/area-chart/area-chart.js +6 -5
  53. package/oj-c/area-chart/component.json +30 -5
  54. package/oj-c/area-chart-group/component.json +2 -2
  55. package/oj-c/area-chart-item/component.json +2 -2
  56. package/oj-c/area-chart-series/component.json +2 -2
  57. package/oj-c/avatar/component.json +3 -3
  58. package/oj-c/button/component.json +4 -4
  59. package/oj-c/buttonset-multiple/component.json +4 -4
  60. package/oj-c/buttonset-single/component.json +4 -4
  61. package/oj-c/card-view/__webdriver__/CardViewWebElement.js +5 -13
  62. package/oj-c/card-view/__webdriver__/CardViewWebElement.js.map +1 -1
  63. package/oj-c/card-view/card-view.js +7 -4
  64. package/oj-c/card-view/component.json +3 -3
  65. package/oj-c/checkbox/checkbox.js +1 -17
  66. package/oj-c/checkbox/component.json +3 -3
  67. package/oj-c/checkbox/useCheckboxPreact.js +26 -13
  68. package/oj-c/checkboxset/component.json +3 -3
  69. package/oj-c/checkboxset/useCheckboxsetPreact.js +17 -13
  70. package/oj-c/collapsible/component.json +3 -3
  71. package/oj-c/component.json +13 -5
  72. package/oj-c/conveyor-belt/component.json +3 -3
  73. package/oj-c/corepackbundle.js +1474 -315
  74. package/oj-c/date-picker/__webdriver__/DatePickerWebElementBase.d.ts +7 -0
  75. package/oj-c/date-picker/__webdriver__/DatePickerWebElementBase.js +9 -0
  76. package/oj-c/date-picker/__webdriver__/DatePickerWebElementBase.js.map +1 -1
  77. package/oj-c/date-picker/component.json +26 -5
  78. package/oj-c/date-picker/date-picker.js +3 -3
  79. package/oj-c/drag-handle/component.json +3 -3
  80. package/oj-c/drawer-layout/component.json +3 -3
  81. package/oj-c/drawer-popup/component.json +3 -3
  82. package/oj-c/editable-value/UNSAFE_useConverterLifecycle/useConverterLifecycle.js +3 -3
  83. package/oj-c/editable-value/UNSAFE_useEditableValue/useEditableValue.js +2 -1
  84. package/oj-c/editable-value/UNSAFE_useValue/useValue.js +3 -3
  85. package/oj-c/editable-value/utils/utils.js +13 -1
  86. package/oj-c/file-picker/__webdriver__/FilePickerWebElement.js +20 -10
  87. package/oj-c/file-picker/__webdriver__/FilePickerWebElement.js.map +1 -1
  88. package/oj-c/file-picker/component.json +3 -3
  89. package/oj-c/form-layout/component.json +3 -3
  90. package/oj-c/highlight-text/component.json +3 -3
  91. package/oj-c/hooks/UNSAFE_useEditableValue/useEditableValue.js +36 -18
  92. package/oj-c/hooks/UNSAFE_useListData/useListData.js +10 -6
  93. package/oj-c/input-date-mask/component.json +3 -3
  94. package/oj-c/input-date-picker/__webdriver__/InputDatePickerWebElementBase.d.ts +7 -0
  95. package/oj-c/input-date-picker/__webdriver__/InputDatePickerWebElementBase.js +9 -0
  96. package/oj-c/input-date-picker/__webdriver__/InputDatePickerWebElementBase.js.map +1 -1
  97. package/oj-c/input-date-picker/component.json +29 -5
  98. package/oj-c/input-date-picker/input-date-picker.js +3 -2
  99. package/oj-c/input-date-picker/useInputDatePicker.js +2 -1
  100. package/oj-c/input-date-text/component.json +3 -3
  101. package/oj-c/input-month-mask/component.json +3 -3
  102. package/oj-c/input-number/__webdriver__/InputNumberWebElementBase.d.ts +1 -1
  103. package/oj-c/input-number/__webdriver__/InputNumberWebElementBase.js +1 -1
  104. package/oj-c/input-number/__webdriver__/InputNumberWebElementBase.js.map +1 -1
  105. package/oj-c/input-number/component.json +6 -6
  106. package/oj-c/input-number/useNumberInputTextPreact.js +3 -2
  107. package/oj-c/input-password/component.json +3 -3
  108. package/oj-c/input-password/useInputPasswordPreact.js +14 -11
  109. package/oj-c/input-sensitive-text/component.json +3 -3
  110. package/oj-c/input-sensitive-text/useInputSensitiveTextPreact.js +14 -11
  111. package/oj-c/input-text/component.json +3 -3
  112. package/oj-c/input-text/useInputTextPreact.js +4 -3
  113. package/oj-c/labelled-link/component.json +3 -3
  114. package/oj-c/legend/__webdriver__/LegendWebElementBase.d.ts +1 -1
  115. package/oj-c/legend/__webdriver__/LegendWebElementBase.js +1 -1
  116. package/oj-c/legend/__webdriver__/LegendWebElementBase.js.map +1 -1
  117. package/oj-c/legend/component.json +14 -3
  118. package/oj-c/legend/legend.js +5 -1
  119. package/oj-c/legend-item/component.json +2 -2
  120. package/oj-c/legend-section/component.json +2 -3
  121. package/oj-c/line-chart/__webdriver__/LineChartWebElementBase.d.ts +2 -2
  122. package/oj-c/line-chart/__webdriver__/LineChartWebElementBase.js +1 -1
  123. package/oj-c/line-chart/__webdriver__/LineChartWebElementBase.js.map +1 -1
  124. package/oj-c/line-chart/component.json +30 -5
  125. package/oj-c/line-chart/line-chart.js +6 -5
  126. package/oj-c/line-chart-group/component.json +2 -2
  127. package/oj-c/line-chart-item/component.json +2 -2
  128. package/oj-c/line-chart-series/component.json +2 -2
  129. package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElementBase.d.ts +7 -0
  130. package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElementBase.js +9 -0
  131. package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElementBase.js.map +1 -1
  132. package/oj-c/list-item-layout/component.json +13 -3
  133. package/oj-c/list-item-layout/list-item-layout.js +4 -4
  134. package/oj-c/list-view/__webdriver__/ListViewWebElement.js +4 -13
  135. package/oj-c/list-view/__webdriver__/ListViewWebElement.js.map +1 -1
  136. package/oj-c/list-view/component.json +6 -3
  137. package/oj-c/list-view/list-view-styles.css +4 -0
  138. package/oj-c/list-view/list-view.js +9 -5
  139. package/oj-c/list-view/useHandleRemoveCurrentKey.js +13 -7
  140. package/oj-c/list-view/useListViewPreact.js +10 -6
  141. package/oj-c/menu-button/component.json +50 -5
  142. package/oj-c/message-banner/component.json +3 -3
  143. package/oj-c/message-toast/component.json +3 -3
  144. package/oj-c/metadata/allComponents.json +1967 -319
  145. package/oj-c/meter-bar/__webdriver__/MeterBarWebElementBase.d.ts +33 -0
  146. package/oj-c/meter-bar/__webdriver__/MeterBarWebElementBase.js +9 -0
  147. package/oj-c/meter-bar/__webdriver__/MeterBarWebElementBase.js.map +1 -1
  148. package/oj-c/meter-bar/component.json +215 -3
  149. package/oj-c/meter-bar/meter-bar.js +7 -5
  150. package/oj-c/meter-circle/__webdriver__/MeterCircleWebElementBase.d.ts +26 -0
  151. package/oj-c/meter-circle/__webdriver__/MeterCircleWebElementBase.js.map +1 -1
  152. package/oj-c/meter-circle/component.json +209 -3
  153. package/oj-c/meter-circle/meter-circle.js +5 -3
  154. package/oj-c/min/FormControlWrapper/FormControlWrapper.js +54 -0
  155. package/oj-c/min/FormControlWrapper/index.js +6 -0
  156. package/oj-c/min/area-chart.js +1 -1
  157. package/oj-c/min/area-chart.js.map +1 -1
  158. package/oj-c/min/card-view.js +1 -1
  159. package/oj-c/min/card-view.js.map +1 -1
  160. package/oj-c/min/checkbox.js +1 -1
  161. package/oj-c/min/checkbox.js.map +1 -1
  162. package/oj-c/min/checkboxset.js +1 -1
  163. package/oj-c/min/checkboxset.js.map +1 -1
  164. package/oj-c/min/corepackbundle.css +54 -1
  165. package/oj-c/min/corepackbundle.js +1 -1
  166. package/oj-c/min/corepackbundle.js.map +1 -1
  167. package/oj-c/min/date-picker.js +1 -1
  168. package/oj-c/min/date-picker.js.map +1 -1
  169. package/oj-c/min/editable-value/UNSAFE_useConverterLifecycle/useConverterLifecycle.js +3 -3
  170. package/oj-c/min/editable-value/UNSAFE_useEditableValue/useEditableValue.js +2 -1
  171. package/oj-c/min/editable-value/UNSAFE_useValue/useValue.js +3 -3
  172. package/oj-c/min/editable-value/utils/utils.js +13 -1
  173. package/oj-c/min/hooks/UNSAFE_useEditableValue/useEditableValue.js +36 -18
  174. package/oj-c/min/hooks/UNSAFE_useListData/useListData.js +10 -6
  175. package/oj-c/min/input-date-mask.js +1 -1
  176. package/oj-c/min/input-date-mask.js.map +1 -1
  177. package/oj-c/min/input-date-picker.js +2 -2
  178. package/oj-c/min/input-date-picker.js.map +1 -1
  179. package/oj-c/min/input-date-text.js +1 -1
  180. package/oj-c/min/input-date-text.js.map +1 -1
  181. package/oj-c/min/input-month-mask.js +1 -1
  182. package/oj-c/min/input-month-mask.js.map +1 -1
  183. package/oj-c/min/input-number.js +1 -1
  184. package/oj-c/min/input-number.js.map +1 -1
  185. package/oj-c/min/input-password.js +1 -1
  186. package/oj-c/min/input-password.js.map +1 -1
  187. package/oj-c/min/input-sensitive-text.js +1 -1
  188. package/oj-c/min/input-sensitive-text.js.map +1 -1
  189. package/oj-c/min/input-text.js +1 -1
  190. package/oj-c/min/input-text.js.map +1 -1
  191. package/oj-c/min/legend.js +1 -1
  192. package/oj-c/min/legend.js.map +1 -1
  193. package/oj-c/min/line-chart.js +1 -1
  194. package/oj-c/min/line-chart.js.map +1 -1
  195. package/oj-c/min/list-item-layout.js +1 -1
  196. package/oj-c/min/list-item-layout.js.map +1 -1
  197. package/oj-c/min/list-view/list-view-styles.css +4 -0
  198. package/oj-c/min/list-view.js +1 -1
  199. package/oj-c/min/list-view.js.map +1 -1
  200. package/oj-c/min/menu-button.js +1 -1
  201. package/oj-c/min/menu-button.js.map +1 -1
  202. package/oj-c/min/meter-bar.js +1 -1
  203. package/oj-c/min/meter-bar.js.map +1 -1
  204. package/oj-c/min/meter-circle.js +1 -1
  205. package/oj-c/min/meter-circle.js.map +1 -1
  206. package/oj-c/min/progress-button/progress-button-styles.css +12 -0
  207. package/oj-c/min/progress-button.js +2 -0
  208. package/oj-c/min/progress-button.js.map +1 -0
  209. package/oj-c/min/radioset.js +1 -1
  210. package/oj-c/min/radioset.js.map +1 -1
  211. package/oj-c/min/rating-gauge.js +1 -1
  212. package/oj-c/min/rating-gauge.js.map +1 -1
  213. package/oj-c/min/select-common/PRIVATE_DebouncingDataProviderView/Debouncer.js +78 -0
  214. package/oj-c/min/select-common/PRIVATE_DebouncingDataProviderView/DebouncingDataProviderView.js +92 -0
  215. package/oj-c/min/select-common/PRIVATE_useCache/index.js +6 -0
  216. package/oj-c/min/select-common/PRIVATE_useCache/useCache.js +30 -0
  217. package/oj-c/min/select-common/PRIVATE_useSelectData/CollectionTemplateDataProviderView.js +208 -0
  218. package/oj-c/min/select-common/PRIVATE_useSelectData/index.js +7 -0
  219. package/oj-c/min/select-common/PRIVATE_useSelectData/useCollectionTemplateDataProviderView.js +98 -0
  220. package/oj-c/min/select-common/PRIVATE_useSelectData/useSelectData.js +24 -0
  221. package/oj-c/min/select-common/UNSAFE_useDataProviderListeners/useDataProviderListeners.js +13 -4
  222. package/oj-c/min/select-common/UNSAFE_useWrapDataProvider/useWrapDataProvider.js +10 -6
  223. package/oj-c/min/select-multiple.js +2 -2
  224. package/oj-c/min/select-multiple.js.map +1 -1
  225. package/oj-c/min/select-single.js +2 -2
  226. package/oj-c/min/select-single.js.map +1 -1
  227. package/oj-c/min/selector.js +1 -1
  228. package/oj-c/min/selector.js.map +1 -1
  229. package/oj-c/min/split-menu-button.js +1 -1
  230. package/oj-c/min/split-menu-button.js.map +1 -1
  231. package/oj-c/min/tab-bar-mixed.js +1 -1
  232. package/oj-c/min/tab-bar-mixed.js.map +1 -1
  233. package/oj-c/min/tab-bar.js +1 -1
  234. package/oj-c/min/tab-bar.js.map +1 -1
  235. package/oj-c/min/table/table-styles.css +39 -0
  236. package/oj-c/min/table.js +2 -0
  237. package/oj-c/min/table.js.map +1 -0
  238. package/oj-c/min/tag-cloud.js +1 -1
  239. package/oj-c/min/tag-cloud.js.map +1 -1
  240. package/oj-c/min/text-area.js +1 -1
  241. package/oj-c/min/text-area.js.map +1 -1
  242. package/oj-c/min/utils/PRIVATE_ItemsMenu/items-menu.js +2 -2
  243. package/oj-c/popup/component.json +3 -3
  244. package/oj-c/progress-bar/component.json +3 -3
  245. package/oj-c/progress-button/__webdriver__/ProgressButtonWebElement.d.ts +16 -0
  246. package/oj-c/progress-button/__webdriver__/ProgressButtonWebElement.js +29 -0
  247. package/oj-c/progress-button/__webdriver__/ProgressButtonWebElement.js.map +1 -0
  248. package/oj-c/progress-button/__webdriver__/ProgressButtonWebElementBase.d.ts +72 -0
  249. package/oj-c/progress-button/__webdriver__/ProgressButtonWebElementBase.js +95 -0
  250. package/oj-c/progress-button/__webdriver__/ProgressButtonWebElementBase.js.map +1 -0
  251. package/oj-c/progress-button/__webdriver__/index.d.ts +17 -0
  252. package/oj-c/progress-button/__webdriver__/index.js +34 -0
  253. package/oj-c/progress-button/__webdriver__/index.js.map +1 -0
  254. package/oj-c/progress-button/component.json +258 -0
  255. package/oj-c/progress-button/index.js +6 -0
  256. package/oj-c/progress-button/progress-button-styles.css +12 -0
  257. package/oj-c/progress-button/progress-button.js +50 -0
  258. package/oj-c/progress-button.js +6 -0
  259. package/oj-c/progress-circle/component.json +3 -3
  260. package/oj-c/radioset/component.json +3 -3
  261. package/oj-c/radioset/useRadiosetPreact.js +9 -5
  262. package/oj-c/rating-gauge/component.json +3 -3
  263. package/oj-c/rating-gauge/rating-gauge.js +11 -3
  264. package/oj-c/select-common/PRIVATE_DebouncingDataProviderView/Debouncer.js +78 -0
  265. package/oj-c/select-common/PRIVATE_DebouncingDataProviderView/DebouncingDataProviderView.js +92 -0
  266. package/oj-c/select-common/PRIVATE_useCache/index.js +6 -0
  267. package/oj-c/select-common/PRIVATE_useCache/useCache.js +30 -0
  268. package/oj-c/select-common/PRIVATE_useSelectData/CollectionTemplateDataProviderView.js +208 -0
  269. package/oj-c/select-common/PRIVATE_useSelectData/index.js +7 -0
  270. package/oj-c/select-common/PRIVATE_useSelectData/useCollectionTemplateDataProviderView.js +98 -0
  271. package/oj-c/select-common/PRIVATE_useSelectData/useSelectData.js +24 -0
  272. package/oj-c/select-common/UNSAFE_useDataProviderListeners/useDataProviderListeners.js +13 -4
  273. package/oj-c/select-common/UNSAFE_useWrapDataProvider/useWrapDataProvider.js +10 -6
  274. package/oj-c/select-multiple/component.json +101 -67
  275. package/oj-c/select-multiple/select-multiple.js +2 -2
  276. package/oj-c/select-multiple/useSelectMultiplePreact.js +68 -27
  277. package/oj-c/select-single/component.json +37 -3
  278. package/oj-c/select-single/select-single.js +2 -2
  279. package/oj-c/select-single/useSelectSinglePreact.js +50 -18
  280. package/oj-c/selection-card/component.json +3 -3
  281. package/oj-c/selector/component.json +3 -3
  282. package/oj-c/selector/selector.js +2 -2
  283. package/oj-c/selector-all/component.json +3 -3
  284. package/oj-c/split-menu-button/component.json +21 -4
  285. package/oj-c/tab-bar/__webdriver__/TabBarWebElement.d.ts +29 -0
  286. package/oj-c/tab-bar/__webdriver__/TabBarWebElement.js +89 -0
  287. package/oj-c/tab-bar/__webdriver__/TabBarWebElement.js.map +1 -1
  288. package/oj-c/tab-bar/component.json +13 -3
  289. package/oj-c/tab-bar/tab-bar.js +10 -4
  290. package/oj-c/tab-bar-mixed/DataTabBarMixed.js +1 -1
  291. package/oj-c/tab-bar-mixed/__webdriver__/TabBarMixedWebElement.d.ts +15 -0
  292. package/oj-c/tab-bar-mixed/__webdriver__/TabBarMixedWebElement.js +36 -0
  293. package/oj-c/tab-bar-mixed/__webdriver__/TabBarMixedWebElement.js.map +1 -1
  294. package/oj-c/tab-bar-mixed/component.json +3 -3
  295. package/oj-c/tab-bar-mixed/tab-bar-mixed.js +2 -2
  296. package/oj-c/table/__webdriver__/TableWebElement.d.ts +106 -0
  297. package/oj-c/table/__webdriver__/TableWebElement.js +166 -0
  298. package/oj-c/table/__webdriver__/TableWebElement.js.map +1 -0
  299. package/oj-c/table/__webdriver__/TableWebElementBase.d.ts +153 -0
  300. package/oj-c/table/__webdriver__/TableWebElementBase.js +158 -0
  301. package/oj-c/table/__webdriver__/TableWebElementBase.js.map +1 -0
  302. package/oj-c/table/__webdriver__/index.d.ts +17 -0
  303. package/oj-c/table/__webdriver__/index.js +34 -0
  304. package/oj-c/table/__webdriver__/index.js.map +1 -0
  305. package/oj-c/table/component.json +703 -0
  306. package/oj-c/table/index.js +6 -0
  307. package/oj-c/table/table-styles.css +39 -0
  308. package/oj-c/table/table.js +353 -0
  309. package/oj-c/table.js +6 -0
  310. package/oj-c/tag-cloud/__webdriver__/TagCloudWebElementBase.d.ts +1 -1
  311. package/oj-c/tag-cloud/__webdriver__/TagCloudWebElementBase.js +1 -1
  312. package/oj-c/tag-cloud/__webdriver__/TagCloudWebElementBase.js.map +1 -1
  313. package/oj-c/tag-cloud/component.json +14 -3
  314. package/oj-c/tag-cloud/tag-cloud.js +4 -1
  315. package/oj-c/tag-cloud-item/component.json +2 -2
  316. package/oj-c/text-area/component.json +3 -3
  317. package/oj-c/text-area/useTextAreaAutosizePreact.js +2 -2
  318. package/oj-c/text-area/useTextAreaPreact.js +2 -2
  319. package/oj-c/toggle-button/component.json +3 -3
  320. package/oj-c/types/FormControlWrapper/FormControlWrapper.d.ts +36 -0
  321. package/oj-c/types/FormControlWrapper/index.d.ts +2 -0
  322. package/oj-c/types/checkbox/checkbox.d.ts +2 -1
  323. package/oj-c/types/checkbox/useCheckboxPreact.d.ts +3 -6
  324. package/oj-c/types/checkboxset/checkboxset.d.ts +3 -2
  325. package/oj-c/types/checkboxset/useCheckboxsetPreact.d.ts +3 -6
  326. package/oj-c/types/date-picker/date-picker.d.ts +6 -0
  327. package/oj-c/types/editable-value/UNSAFE_useConverterLifecycle/useConverterLifecycle.d.ts +3 -2
  328. package/oj-c/types/editable-value/UNSAFE_useValue/useValue.d.ts +1 -1
  329. package/oj-c/types/editable-value/utils/utils.d.ts +2 -0
  330. package/oj-c/types/hooks/UNSAFE_useEditableValue/useEditableValue.d.ts +3 -1
  331. package/oj-c/types/hooks/UNSAFE_useListData/useListData.d.ts +2 -1
  332. package/oj-c/types/input-date-mask/input-date-mask.d.ts +2 -1
  333. package/oj-c/types/input-date-picker/input-date-picker.d.ts +8 -2
  334. package/oj-c/types/input-date-picker/useInputDatePicker.d.ts +1 -0
  335. package/oj-c/types/input-date-text/useInputDateTextPreact.d.ts +1 -1
  336. package/oj-c/types/input-month-mask/input-month-mask.d.ts +2 -1
  337. package/oj-c/types/input-number/useNumberInputTextPreact.d.ts +1 -1
  338. package/oj-c/types/input-password/useInputPasswordPreact.d.ts +2 -4
  339. package/oj-c/types/input-sensitive-text/input-sensitive-text.d.ts +2 -1
  340. package/oj-c/types/input-sensitive-text/useInputSensitiveTextPreact.d.ts +2 -4
  341. package/oj-c/types/input-text/useInputTextPreact.d.ts +1 -1
  342. package/oj-c/types/legend-section/legend-section.d.ts +2 -2
  343. package/oj-c/types/list-item-layout/list-item-layout.d.ts +5 -0
  344. package/oj-c/types/list-view/list-view.d.ts +6 -4
  345. package/oj-c/types/list-view/useHandleRemoveCurrentKey.d.ts +4 -2
  346. package/oj-c/types/list-view/useListViewPreact.d.ts +1 -1
  347. package/oj-c/types/meter-bar/meter-bar.d.ts +6 -1
  348. package/oj-c/types/meter-circle/meter-circle.d.ts +1 -1
  349. package/oj-c/types/progress-button/index.d.ts +2 -0
  350. package/oj-c/types/progress-button/progress-button.d.ts +101 -0
  351. package/oj-c/types/radioset/radioset.d.ts +3 -2
  352. package/oj-c/types/radioset/useRadiosetPreact.d.ts +3 -6
  353. package/oj-c/types/rating-gauge/rating-gauge.d.ts +1 -1
  354. package/oj-c/types/select-common/PRIVATE_DebouncingDataProviderView/Debouncer.d.ts +11 -0
  355. package/oj-c/types/select-common/PRIVATE_DebouncingDataProviderView/DebouncingDataProviderView.d.ts +16 -0
  356. package/oj-c/types/select-common/PRIVATE_useCache/index.d.ts +1 -0
  357. package/oj-c/types/select-common/PRIVATE_useCache/useCache.d.ts +1 -0
  358. package/oj-c/types/select-common/PRIVATE_useSelectData/CollectionTemplateDataProviderView.d.ts +43 -0
  359. package/oj-c/types/select-common/PRIVATE_useSelectData/index.d.ts +2 -0
  360. package/oj-c/types/select-common/PRIVATE_useSelectData/useCollectionTemplateDataProviderView.d.ts +15 -0
  361. package/oj-c/types/select-common/PRIVATE_useSelectData/useSelectData.d.ts +15 -0
  362. package/oj-c/types/select-common/UNSAFE_useDataProviderListeners/useDataProviderListeners.d.ts +4 -4
  363. package/oj-c/types/select-common/UNSAFE_useWrapDataProvider/useWrapDataProvider.d.ts +2 -1
  364. package/oj-c/types/select-multiple/select-multiple.d.ts +26 -9
  365. package/oj-c/types/select-multiple/useSelectMultiplePreact.d.ts +28 -36
  366. package/oj-c/types/select-single/select-single.d.ts +26 -8
  367. package/oj-c/types/select-single/useSelectSinglePreact.d.ts +30 -53
  368. package/oj-c/types/tab-bar/tab-bar.d.ts +1 -0
  369. package/oj-c/types/table/index.d.ts +2 -0
  370. package/oj-c/types/table/table.d.ts +239 -0
  371. package/oj-c/types/text-area/useTextAreaAutosizePreact.d.ts +1 -1
  372. package/oj-c/types/text-area/useTextAreaPreact.d.ts +1 -1
  373. package/oj-c/types/utils/PRIVATE_ItemsMenu/items-menu.d.ts +3 -1
  374. package/oj-c/types/utils/UNSAFE_vizTypes/meterTypes.d.ts +2 -0
  375. package/oj-c/utils/PRIVATE_ItemsMenu/items-menu.js +2 -2
  376. package/package.json +4 -4
  377. package/webdriver/docs/assets/navigation.js +1 -1
  378. package/webdriver/docs/assets/search.js +1 -1
  379. package/webdriver/docs/classes/AreaChartWebElement.html +4 -3
  380. package/webdriver/docs/classes/DatePickerWebElement.html +5 -2
  381. package/webdriver/docs/classes/InputDatePickerWebElement.html +6 -2
  382. package/webdriver/docs/classes/InputNumberWebElement.html +1 -1
  383. package/webdriver/docs/classes/LegendWebElement.html +4 -3
  384. package/webdriver/docs/classes/LineChartWebElement.html +4 -3
  385. package/webdriver/docs/classes/ListItemLayoutWebElement.html +6 -2
  386. package/webdriver/docs/classes/MeterBarWebElement.html +6 -2
  387. package/webdriver/docs/classes/ProgressButtonWebElement.html +142 -0
  388. package/webdriver/docs/classes/TabBarMixedWebElement.html +11 -2
  389. package/webdriver/docs/classes/TabBarWebElement.html +18 -2
  390. package/webdriver/docs/classes/TableWebElement.html +192 -0
  391. package/webdriver/docs/classes/TagCloudWebElement.html +4 -3
  392. package/webdriver/docs/functions/findProgressButton.html +8 -0
  393. package/webdriver/docs/functions/findTable.html +8 -0
  394. package/webdriver/docs/modules.html +4 -0
  395. package/webdriver/index.d.ts +2 -0
  396. package/webdriver/index.js +2 -0
  397. package/webdriver/index.js.map +1 -1
  398. package/webdriver/index.ts +2 -0
@@ -83,6 +83,13 @@ export declare class DatePickerWebElementBase extends OjWebElement {
83
83
  *
84
84
  */
85
85
  getValue(): Promise<string | null>;
86
+ /**
87
+ * Gets the value of <code>weekDisplay</code> property.
88
+ *
89
+ * @return The value of <code>weekDisplay</code> property.
90
+ *
91
+ */
92
+ getWeekDisplay(): Promise<string>;
86
93
  /**
87
94
  * Gets the value of <code>width</code> property.
88
95
  * Specifies the component style width.
@@ -108,6 +108,15 @@ class DatePickerWebElementBase extends elements_1.OjWebElement {
108
108
  getValue() {
109
109
  return this.getProperty('value');
110
110
  }
111
+ /**
112
+ * Gets the value of <code>weekDisplay</code> property.
113
+ *
114
+ * @return The value of <code>weekDisplay</code> property.
115
+ *
116
+ */
117
+ getWeekDisplay() {
118
+ return this.getProperty('weekDisplay');
119
+ }
111
120
  /**
112
121
  * Gets the value of <code>width</code> property.
113
122
  * Specifies the component style width.
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerWebElementBase.js","sourceRoot":"","sources":["DatePickerWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,wBAAyB,SAAQ,uBAAY;IACxD;;;;;OAKG;IACI,eAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAO,cAAc,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,mBAAmB;QACxB,OAAO,IAAI,CAAC,WAAW,CAAS,kBAAkB,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,qBAAqB;QAC1B,OAAO,IAAI,CAAC,WAAW,CAAS,oBAAoB,CAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAgB,KAAK,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAkB,UAAU,CAAC,CAAC;IACvD,CAAC;IAED;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAgB,KAAK,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAU,UAAU,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,WAAW,CAAS,aAAa,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAAC,KAAoB;QACrC,OAAO,IAAI,CAAC,WAAW,CAAgB,OAAO,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAgB,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAkB,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;AAxHD,4DAwHC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-date-picker WebElement, and is generated from the\n * component's metadata. Do not modify these contents since they'll be replaced\n * during the next generation.\n * Put overrides into the WebElements's subclass, DatePickerWebElement.ts.\n */\nexport class DatePickerWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>dayFormatter</code> property.\n *\n * @return The value of <code>dayFormatter</code> property.\n *\n */\n public getDayFormatter(): Promise<null> {\n return this.getProperty<null>('dayFormatter');\n }\n\n /**\n * Gets the value of <code>daysOutsideMonth</code> property.\n *\n * @return The value of <code>daysOutsideMonth</code> property.\n *\n */\n public getDaysOutsideMonth(): Promise<string> {\n return this.getProperty<string>('daysOutsideMonth');\n }\n\n /**\n * Gets the value of <code>monthAndYearPicker</code> property.\n *\n * @return The value of <code>monthAndYearPicker</code> property.\n *\n */\n public getMonthAndYearPicker(): Promise<string> {\n return this.getProperty<string>('monthAndYearPicker');\n }\n\n /**\n * Gets the value of <code>max</code> property.\n * The maximum selectable date, in ISO string format\n * @return The value of <code>max</code> property.\n *\n */\n public getMax(): Promise<string | null> {\n return this.getProperty<string | null>('max');\n }\n\n /**\n * Gets the value of <code>maxWidth</code> property.\n * Specifies the component style maxWidth.\n * @return The value of <code>maxWidth</code> property.\n *\n */\n public getMaxWidth(): Promise<number | string> {\n return this.getProperty<number | string>('maxWidth');\n }\n\n /**\n * Gets the value of <code>min</code> property.\n * The maximum selectable date, in ISO string format\n * @return The value of <code>min</code> property.\n *\n */\n public getMin(): Promise<string | null> {\n return this.getProperty<string | null>('min');\n }\n\n /**\n * Gets the value of <code>readonly</code> property.\n *\n * @return The value of <code>readonly</code> property.\n *\n */\n public getReadonly(): Promise<boolean> {\n return this.getProperty<boolean>('readonly');\n }\n\n /**\n * Gets the value of <code>todayButton</code> property.\n *\n * @return The value of <code>todayButton</code> property.\n *\n */\n public getTodayButton(): Promise<string> {\n return this.getProperty<string>('todayButton');\n }\n\n /**\n * Gets the value of <code>todayTimeZone</code> property.\n *\n * @return The value of <code>todayTimeZone</code> property.\n *\n */\n public getTodayTimeZone(): Promise<string> {\n return this.getProperty<string>('todayTimeZone');\n }\n\n /**\n * Sets the value of <code>value</code> property.\n *\n * @param value The value to set for <code>value</code>\n *\n */\n public changeValue(value: string | null): Promise<void> {\n return this.setProperty<string | null>('value', value);\n }\n\n /**\n * Gets the value of <code>value</code> property.\n *\n * @return The value of <code>value</code> property.\n *\n */\n public getValue(): Promise<string | null> {\n return this.getProperty<string | null>('value');\n }\n\n /**\n * Gets the value of <code>width</code> property.\n * Specifies the component style width.\n * @return The value of <code>width</code> property.\n *\n */\n public getWidth(): Promise<number | string> {\n return this.getProperty<number | string>('width');\n }\n}\n"]}
1
+ {"version":3,"file":"DatePickerWebElementBase.js","sourceRoot":"","sources":["DatePickerWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,wBAAyB,SAAQ,uBAAY;IACxD;;;;;OAKG;IACI,eAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAO,cAAc,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,mBAAmB;QACxB,OAAO,IAAI,CAAC,WAAW,CAAS,kBAAkB,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,qBAAqB;QAC1B,OAAO,IAAI,CAAC,WAAW,CAAS,oBAAoB,CAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAgB,KAAK,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAkB,UAAU,CAAC,CAAC;IACvD,CAAC;IAED;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAgB,KAAK,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAU,UAAU,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,WAAW,CAAS,aAAa,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAAC,KAAoB;QACrC,OAAO,IAAI,CAAC,WAAW,CAAgB,OAAO,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAgB,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,WAAW,CAAS,aAAa,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAkB,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;AAlID,4DAkIC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-date-picker WebElement, and is generated from the\n * component's metadata. Do not modify these contents since they'll be replaced\n * during the next generation.\n * Put overrides into the WebElements's subclass, DatePickerWebElement.ts.\n */\nexport class DatePickerWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>dayFormatter</code> property.\n *\n * @return The value of <code>dayFormatter</code> property.\n *\n */\n public getDayFormatter(): Promise<null> {\n return this.getProperty<null>('dayFormatter');\n }\n\n /**\n * Gets the value of <code>daysOutsideMonth</code> property.\n *\n * @return The value of <code>daysOutsideMonth</code> property.\n *\n */\n public getDaysOutsideMonth(): Promise<string> {\n return this.getProperty<string>('daysOutsideMonth');\n }\n\n /**\n * Gets the value of <code>monthAndYearPicker</code> property.\n *\n * @return The value of <code>monthAndYearPicker</code> property.\n *\n */\n public getMonthAndYearPicker(): Promise<string> {\n return this.getProperty<string>('monthAndYearPicker');\n }\n\n /**\n * Gets the value of <code>max</code> property.\n * The maximum selectable date, in ISO string format\n * @return The value of <code>max</code> property.\n *\n */\n public getMax(): Promise<string | null> {\n return this.getProperty<string | null>('max');\n }\n\n /**\n * Gets the value of <code>maxWidth</code> property.\n * Specifies the component style maxWidth.\n * @return The value of <code>maxWidth</code> property.\n *\n */\n public getMaxWidth(): Promise<number | string> {\n return this.getProperty<number | string>('maxWidth');\n }\n\n /**\n * Gets the value of <code>min</code> property.\n * The maximum selectable date, in ISO string format\n * @return The value of <code>min</code> property.\n *\n */\n public getMin(): Promise<string | null> {\n return this.getProperty<string | null>('min');\n }\n\n /**\n * Gets the value of <code>readonly</code> property.\n *\n * @return The value of <code>readonly</code> property.\n *\n */\n public getReadonly(): Promise<boolean> {\n return this.getProperty<boolean>('readonly');\n }\n\n /**\n * Gets the value of <code>todayButton</code> property.\n *\n * @return The value of <code>todayButton</code> property.\n *\n */\n public getTodayButton(): Promise<string> {\n return this.getProperty<string>('todayButton');\n }\n\n /**\n * Gets the value of <code>todayTimeZone</code> property.\n *\n * @return The value of <code>todayTimeZone</code> property.\n *\n */\n public getTodayTimeZone(): Promise<string> {\n return this.getProperty<string>('todayTimeZone');\n }\n\n /**\n * Sets the value of <code>value</code> property.\n *\n * @param value The value to set for <code>value</code>\n *\n */\n public changeValue(value: string | null): Promise<void> {\n return this.setProperty<string | null>('value', value);\n }\n\n /**\n * Gets the value of <code>value</code> property.\n *\n * @return The value of <code>value</code> property.\n *\n */\n public getValue(): Promise<string | null> {\n return this.getProperty<string | null>('value');\n }\n\n /**\n * Gets the value of <code>weekDisplay</code> property.\n *\n * @return The value of <code>weekDisplay</code> property.\n *\n */\n public getWeekDisplay(): Promise<string> {\n return this.getProperty<string>('weekDisplay');\n }\n\n /**\n * Gets the value of <code>width</code> property.\n * Specifies the component style width.\n * @return The value of <code>width</code> property.\n *\n */\n public getWidth(): Promise<number | string> {\n return this.getProperty<number | string>('width');\n }\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "date-picker",
3
- "version": "17.0.4",
4
- "jetVersion": "^17.0.4",
3
+ "version": "17.1.0",
4
+ "jetVersion": "^17.1.0",
5
5
  "pack": "oj-c",
6
6
  "type": "composite",
7
7
  "dependencyScope": "runtime",
@@ -24,14 +24,17 @@
24
24
  "icon": "oj-ux-ico-date"
25
25
  },
26
26
  "webelement": {
27
- "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1700/cpwdtsdoc/classes/DatePickerWebElement.html"
27
+ "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/DatePickerWebElement.html"
28
28
  }
29
29
  },
30
30
  "since": "17.0.0",
31
31
  "status": [
32
32
  {
33
- "type": "candidate",
34
- "since": "17.0.0"
33
+ "type": "supersedes",
34
+ "since": "17.1.0",
35
+ "value": [
36
+ "oj-date-picker"
37
+ ]
35
38
  }
36
39
  ],
37
40
  "properties": {
@@ -126,6 +129,24 @@
126
129
  "writeback": true,
127
130
  "value": null
128
131
  },
132
+ "weekDisplay": {
133
+ "type": "string",
134
+ "propertyEditorValues": {
135
+ "none": {
136
+ "description": "The week of the year column will not be shown.",
137
+ "displayName": "None"
138
+ },
139
+ "number": {
140
+ "description": "Will show the week of the year as a number.",
141
+ "displayName": "Number"
142
+ }
143
+ },
144
+ "enumValues": [
145
+ "number",
146
+ "none"
147
+ ],
148
+ "value": "none"
149
+ },
129
150
  "width": {
130
151
  "type": "number|string",
131
152
  "description": "Specifies the component style width.",
@@ -2,7 +2,7 @@ define(["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/tr
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.DatePicker = void 0;
5
- exports.DatePicker = (0, ojvcomponent_1.registerCustomElement)('oj-c-date-picker', ({ dayFormatter, daysOutsideMonth = 'hidden', monthAndYearPicker = 'on', max = null, maxWidth, min = null, readonly = false, todayButton = 'visible', todayTimeZone, value = null, width, onValueChanged, ...otherProps }) => {
5
+ exports.DatePicker = (0, ojvcomponent_1.registerCustomElement)('oj-c-date-picker', ({ dayFormatter, daysOutsideMonth = 'hidden', monthAndYearPicker = 'on', max = null, maxWidth, min = null, readonly = false, todayButton = 'visible', todayTimeZone, value = null, width, weekDisplay = 'none', onValueChanged, ...otherProps }) => {
6
6
  if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(value)) {
7
7
  throw new Error('value must be a date-only ISO string');
8
8
  }
@@ -27,8 +27,8 @@ define(["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/tr
27
27
  : onValueChanged(null);
28
28
  }
29
29
  }, [onValueChanged]);
30
- return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { id: otherProps.id, children: (0, jsx_runtime_1.jsx)(UNSAFE_DatePicker_1.DatePicker, { dayFormatter: dayFormatter ?? undefined, daysOutsideMonth: daysOutsideMonth, monthAndYearPicker: monthAndYearPicker, max: maxCalendarDate, min: minCalendarDate, isReadonly: readonly, todayButton: todayButton, todayTimeZone: todayTimeZone ?? undefined, value: valueCalendarDate, width: width, maxWidth: maxWidth, onCommit: onCommitHandler }) }));
31
- }, "DatePicker", { "properties": { "dayFormatter": { "type": "function" }, "daysOutsideMonth": { "type": "string", "enumValues": ["hidden", "selectable"] }, "monthAndYearPicker": { "type": "string", "enumValues": ["off", "on"] }, "max": { "type": "string|null" }, "maxWidth": { "type": "number|string" }, "min": { "type": "string|null" }, "readonly": { "type": "boolean" }, "todayButton": { "type": "string", "enumValues": ["hidden", "visible"] }, "todayTimeZone": { "type": "string" }, "value": { "type": "string|null", "writeback": true }, "width": { "type": "number|string" } }, "extension": { "_WRITEBACK_PROPS": ["value"], "_READ_ONLY_PROPS": [], "_OBSERVED_GLOBAL_PROPS": ["aria-describedby", "id"] } }, { "daysOutsideMonth": "hidden", "monthAndYearPicker": "on", "max": null, "min": null, "readonly": false, "todayButton": "visible", "value": null }, {
30
+ return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { id: otherProps.id, children: (0, jsx_runtime_1.jsx)(UNSAFE_DatePicker_1.DatePicker, { dayFormatter: dayFormatter ?? undefined, daysOutsideMonth: daysOutsideMonth, monthAndYearPicker: monthAndYearPicker, max: maxCalendarDate, min: minCalendarDate, isReadonly: readonly, todayButton: todayButton, todayTimeZone: todayTimeZone ?? undefined, value: valueCalendarDate, weekDisplay: weekDisplay, width: width, maxWidth: maxWidth, onCommit: onCommitHandler }) }));
31
+ }, "DatePicker", { "properties": { "dayFormatter": { "type": "function" }, "daysOutsideMonth": { "type": "string", "enumValues": ["hidden", "selectable"] }, "monthAndYearPicker": { "type": "string", "enumValues": ["off", "on"] }, "max": { "type": "string|null" }, "maxWidth": { "type": "number|string" }, "min": { "type": "string|null" }, "readonly": { "type": "boolean" }, "todayButton": { "type": "string", "enumValues": ["hidden", "visible"] }, "todayTimeZone": { "type": "string" }, "value": { "type": "string|null", "writeback": true }, "weekDisplay": { "type": "string", "enumValues": ["number", "none"] }, "width": { "type": "number|string" } }, "extension": { "_WRITEBACK_PROPS": ["value"], "_READ_ONLY_PROPS": [], "_OBSERVED_GLOBAL_PROPS": ["aria-describedby", "id"] } }, { "daysOutsideMonth": "hidden", "monthAndYearPicker": "on", "max": null, "min": null, "readonly": false, "todayButton": "visible", "value": null, "weekDisplay": "none" }, {
32
32
  '@oracle/oraclejet-preact': translationBundle_1.default
33
33
  }, { consume: [UNSAFE_useTabbableMode_1.TabbableModeContext] });
34
34
  });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "drag-handle",
3
- "version": "17.0.4",
4
- "jetVersion": "^17.0.4",
3
+ "version": "17.1.0",
4
+ "jetVersion": "^17.1.0",
5
5
  "pack": "oj-c",
6
6
  "type": "composite",
7
7
  "dependencyScope": "runtime",
@@ -32,7 +32,7 @@
32
32
  ]
33
33
  },
34
34
  "webelement": {
35
- "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1700/cpwdtsdoc/classes/DragHandleWebElement.html"
35
+ "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/DragHandleWebElement.html"
36
36
  }
37
37
  },
38
38
  "since": "17.0.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "drawer-layout",
3
- "version": "17.0.4",
4
- "jetVersion": "^17.0.4",
3
+ "version": "17.1.0",
4
+ "jetVersion": "^17.1.0",
5
5
  "pack": "oj-c",
6
6
  "type": "composite",
7
7
  "dependencyScope": "runtime",
@@ -36,7 +36,7 @@
36
36
  ]
37
37
  },
38
38
  "webelement": {
39
- "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1700/cpwdtsdoc/classes/DrawerLayoutWebElement.html"
39
+ "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/DrawerLayoutWebElement.html"
40
40
  }
41
41
  },
42
42
  "propertyLayout": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "drawer-popup",
3
- "version": "17.0.4",
4
- "jetVersion": "^17.0.4",
3
+ "version": "17.1.0",
4
+ "jetVersion": "^17.1.0",
5
5
  "pack": "oj-c",
6
6
  "type": "composite",
7
7
  "dependencyScope": "runtime",
@@ -63,7 +63,7 @@
63
63
  ]
64
64
  },
65
65
  "webelement": {
66
- "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1700/cpwdtsdoc/classes/DrawerPopupWebElement.html"
66
+ "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/DrawerPopupWebElement.html"
67
67
  }
68
68
  },
69
69
  "since": "16.0.0",
@@ -2,7 +2,7 @@ define(["require", "exports", "preact/hooks"], function (require, exports, hooks
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.useConverterLifecycle = void 0;
5
- function useConverterLifecycle({ converter, validationState, refreshDisplayValue, runFullValidationAndUpdateValue }) {
5
+ function useConverterLifecycle({ converter, validationState, value, refreshDisplayValue, runFullValidationAndUpdateValue }) {
6
6
  const prevConverterRef = (0, hooks_1.useRef)(converter);
7
7
  (0, hooks_1.useEffect)(() => {
8
8
  if (prevConverterRef.current === converter) {
@@ -17,10 +17,10 @@ define(["require", "exports", "preact/hooks"], function (require, exports, hooks
17
17
  case 'valid':
18
18
  case 'invalidHidden':
19
19
  default:
20
- refreshDisplayValue();
20
+ value && refreshDisplayValue(value);
21
21
  break;
22
22
  }
23
- }, [converter, validationState, refreshDisplayValue, runFullValidationAndUpdateValue]);
23
+ }, [converter, validationState, refreshDisplayValue, runFullValidationAndUpdateValue, value]);
24
24
  }
25
25
  exports.useConverterLifecycle = useConverterLifecycle;
26
26
  });
@@ -55,6 +55,7 @@ define(["require", "exports", "preact/hooks", "../UNSAFE_useComponentMessaging/u
55
55
  (0, useConverterLifecycle_1.useConverterLifecycle)({
56
56
  converter,
57
57
  validationState,
58
+ value: valueProp,
58
59
  refreshDisplayValue,
59
60
  runFullValidationAndUpdateValue
60
61
  });
@@ -91,7 +92,7 @@ define(["require", "exports", "preact/hooks", "../UNSAFE_useComponentMessaging/u
91
92
  const reset = (0, hooks_1.useCallback)(() => {
92
93
  clearAllMessages();
93
94
  validateValueOnExternalChange(value);
94
- refreshDisplayValue();
95
+ refreshDisplayValue(value);
95
96
  }, [value, clearAllMessages, refreshDisplayValue, validateValueOnExternalChange]);
96
97
  const validate = (0, hooks_1.useCallback)(async () => {
97
98
  if (readonly || disabled) {
@@ -29,13 +29,13 @@ define(["require", "exports", "@oracle/oraclejet-preact/hooks/UNSAFE_useUncontro
29
29
  setValueAfterValidation: (0, hooks_1.useCallback)((value) => {
30
30
  setValue(value);
31
31
  setDisplayValue(format(value));
32
- }, [format]),
32
+ }, [format, setDisplayValue, setValue]),
33
33
  setDisplayValue,
34
34
  setTransientValue,
35
35
  setValue,
36
- refreshDisplayValue: (0, hooks_1.useCallback)(() => {
36
+ refreshDisplayValue: (0, hooks_1.useCallback)((value) => {
37
37
  setDisplayValue(format(value));
38
- }, [value, format])
38
+ }, [format, setDisplayValue])
39
39
  };
40
40
  }
41
41
  exports.useValue = useValue;
@@ -1,7 +1,7 @@
1
1
  define(["require", "exports"], function (require, exports) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.isShallowEqual = exports.normalizeValue = exports.treatNull = exports.createMessageFromError = void 0;
4
+ exports.isShallowEqual = exports.normalizeValue = exports.treatNull = exports.getVirtualKeyboardHintFromConverter = exports.createMessageFromError = void 0;
5
5
  function createMessageFromError(error) {
6
6
  if (typeof error.getMessage === 'function') {
7
7
  return {
@@ -12,6 +12,18 @@ define(["require", "exports"], function (require, exports) {
12
12
  return { severity: 'error', detail: error.message };
13
13
  }
14
14
  exports.createMessageFromError = createMessageFromError;
15
+ function getVirtualKeyboardHintFromConverter(converter) {
16
+ let virtualKeyboardHint;
17
+ if (converter && converter.resolvedOptions) {
18
+ const resOptions = converter.resolvedOptions();
19
+ virtualKeyboardHint = resOptions?.virtualKeyboardHint ?? 'text';
20
+ }
21
+ else {
22
+ virtualKeyboardHint = 'text';
23
+ }
24
+ return virtualKeyboardHint;
25
+ }
26
+ exports.getVirtualKeyboardHintFromConverter = getVirtualKeyboardHintFromConverter;
15
27
  function treatNull(value, defaultValue) {
16
28
  if (value === null) {
17
29
  return defaultValue;
@@ -5,6 +5,8 @@ var FilePickerWebElementBase_1 = require("./FilePickerWebElementBase");
5
5
  var fs = require("fs");
6
6
  var path = require("path");
7
7
  var busy_context_utils_1 = require("@oracle/oraclejet-webdriver/lib/busy-context-utils");
8
+ const filestoreName = '__oj_filepicker_files';
9
+ const filenamePrefix = 'file_';
8
10
  /**
9
11
  * The component WebElement for [oj-c-file-picker](../../../oj-c/docs/oj.FilePicker.html).
10
12
  * Do not instantiate this class directly, instead, use
@@ -70,28 +72,36 @@ class FilePickerWebElement extends FilePickerWebElementBase_1.FilePickerWebEleme
70
72
  fileNumber: i
71
73
  };
72
74
  await driver.executeScript(`const file = arguments[0];
75
+ const filestoreName = arguments[1];
76
+ const filenamePrefix = arguments[2];
77
+ const filestore = window[filestoreName] = window[filestoreName] || {};
73
78
  const chunkNumber = file.chunkNumber;
74
- var data = {
79
+ const data = {
75
80
  bytes: file.bytes,
76
81
  path: file.path,
77
82
  type: file.type
78
83
  }
84
+ const fileKey = filenamePrefix + file.fileNumber;
79
85
  if (chunkNumber == 0) {
80
- window['_file' + file.fileNumber] = [data];
86
+ filestore[fileKey] = [data];
81
87
  } else {
82
- window['_file' + file.fileNumber].push(data);
83
- }`, file);
88
+ filestore[fileKey].push(data);
89
+ }`, file, filestoreName, filenamePrefix);
84
90
  }
85
91
  }
86
92
  driver.executeScript(`const numFiles = arguments[0];
93
+ const filestoreName = arguments[1];
94
+ const filenamePrefix = arguments[2];
95
+ const filestore = window[filestoreName];
87
96
  const list = [];
88
97
  for ( let i = 0; i < numFiles; i++) {
89
- const file = window['_file' + i];
90
- delete window['_file' + i];
98
+ const fileKey = filenamePrefix + i;
99
+ const chunks = filestore[fileKey];
100
+ delete filestore[fileKey];
91
101
  list.push({
92
- bytes: file.map(chunk => chunk.bytes).join(''),
93
- path: file[0].path,
94
- type: file[0].type
102
+ bytes: chunks.reduce((acc, chunk) => acc.concat(chunk.bytes), []),
103
+ path: chunks[0].path,
104
+ type: chunks[0].type
95
105
  });
96
106
  }
97
107
  const fileList = list.map((data) => {
@@ -110,7 +120,7 @@ class FilePickerWebElement extends FilePickerWebElementBase_1.FilePickerWebEleme
110
120
  }
111
121
  }
112
122
  HTMLInputElement.prototype._pickerTestData = fileList;
113
- `, dataList.length);
123
+ `, dataList.length, filestoreName, filenamePrefix);
114
124
  }
115
125
  }
116
126
  exports.FilePickerWebElement = FilePickerWebElement;
@@ -1 +1 @@
1
- {"version":3,"file":"FilePickerWebElement.js","sourceRoot":"","sources":["FilePickerWebElement.ts"],"names":[],"mappings":"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","sourcesContent":["import { FilePickerWebElementBase } from './FilePickerWebElementBase';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { WebDriver } from 'selenium-webdriver';\nimport { whenBusyContextReady } from '@oracle/oraclejet-webdriver/lib/busy-context-utils';\n\n/**\n * The component WebElement for [oj-c-file-picker](../../../oj-c/docs/oj.FilePicker.html).\n * Do not instantiate this class directly, instead, use\n * [findFilePicker](../functions/findFilePicker.html).\n */\nexport class FilePickerWebElement extends FilePickerWebElementBase {\n /**\n * Takes an Array of objects containing file paths + types.\n * These files will be read from the local filesystem and then sent\n * to the oj-file-picker to simulate user file selection. Only the basename of\n * the file will be sent, not the entire path to make it consistent with how\n * the browser sets the value.\n * @param files An array of objects containing the path and type of selected files\n */\n async doSelect(files: Array<{ path: string; type: string }>) {\n await FilePickerWebElement.setupPickFiles(this.getDriver(), files);\n\n await this.getDriver().executeScript(`arguments[0].firstChild.click();`, this);\n\n await this.whenBusyContextReady();\n }\n\n /**\n * This method should be called right before ojfilepickerutils.pickFiles\n * Takes the webdriver and an Array of objects containing file paths + types.\n * These files will be read from the local filesystem and then sent\n * to the pickFiles method to simulate user file selection. Only the basename of\n * the file will be sent, not the entire path to make it consistent with how\n * the browser sets the value.\n * @param driver the Webdriver of the test\n * @param files An array of objects containing the path and type of selected files\n */\n static async setupPickFiles(driver: WebDriver, files: Array<{ path: string; type: string }>) {\n await whenBusyContextReady(driver);\n //create a buffer with the files\n const dataList = files.map(({ path: filePath, type }) => {\n const fileSizeInMB = fs.statSync(filePath).size / (1024 * 1024);\n const numberChunks = Math.ceil(fileSizeInMB / 8);\n const fileContent = Array.from(fs.readFileSync(filePath));\n const chunkSize = Math.floor(fileContent.length / numberChunks);\n const fileChunks = [];\n for (let i = 0; i < numberChunks; i++) {\n if (i + 1 == numberChunks) {\n fileChunks.push(fileContent.slice(i * chunkSize));\n } else {\n fileChunks.push(fileContent.slice(i * chunkSize, (i + 1) * chunkSize));\n }\n }\n\n return {\n bytes: fileChunks, //split it into 8MB chunks\n path: path.basename(filePath),\n type,\n numberChunks\n };\n });\n\n for (let i = 0; i < dataList.length; i++) {\n const { bytes, path, type, numberChunks } = dataList[i];\n for (let j = 0; j < bytes.length; j++) {\n const file = {\n bytes: bytes[j],\n path,\n type,\n numberChunks,\n chunkNumber: j,\n fileNumber: i\n };\n await driver.executeScript(\n `const file = arguments[0];\n const chunkNumber = file.chunkNumber;\n var data = {\n bytes: file.bytes,\n path: file.path,\n type: file.type\n }\n if (chunkNumber == 0) {\n window['_file' + file.fileNumber] = [data];\n } else {\n window['_file' + file.fileNumber].push(data);\n }`,\n file\n );\n }\n }\n\n driver.executeScript(\n `const numFiles = arguments[0];\n const list = [];\n for ( let i = 0; i < numFiles; i++) {\n const file = window['_file' + i];\n delete window['_file' + i];\n list.push({\n bytes: file.map(chunk => chunk.bytes).join(''),\n path: file[0].path,\n type: file[0].type\n });\n }\n const fileList = list.map((data) => {\n return new File([Uint8Array.from(data.bytes)], data.path, {type: data.type});\n })\n // Only if setupPickFiles has not been called yet\n if (!HTMLInputElement.prototype._pickerTestData) {\n //Save the native click method\n const clickMethod = HTMLInputElement.prototype.click;\n //Overwrite the click method\n HTMLInputElement.prototype.click = function() {\n const event = new CustomEvent(\"change\");\n this.dispatchEvent(event);\n delete HTMLInputElement.prototype._pickerTestData;\n HTMLInputElement.prototype.click = clickMethod;\n }\n }\n HTMLInputElement.prototype._pickerTestData = fileList;\n `,\n dataList.length\n );\n }\n}\n"]}
1
+ {"version":3,"file":"FilePickerWebElement.js","sourceRoot":"","sources":["FilePickerWebElement.ts"],"names":[],"mappings":"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","sourcesContent":["import { FilePickerWebElementBase } from './FilePickerWebElementBase';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { WebDriver } from 'selenium-webdriver';\nimport { whenBusyContextReady } from '@oracle/oraclejet-webdriver/lib/busy-context-utils';\n\nconst filestoreName = '__oj_filepicker_files';\nconst filenamePrefix = 'file_';\n\n/**\n * The component WebElement for [oj-c-file-picker](../../../oj-c/docs/oj.FilePicker.html).\n * Do not instantiate this class directly, instead, use\n * [findFilePicker](../functions/findFilePicker.html).\n */\nexport class FilePickerWebElement extends FilePickerWebElementBase {\n /**\n * Takes an Array of objects containing file paths + types.\n * These files will be read from the local filesystem and then sent\n * to the oj-file-picker to simulate user file selection. Only the basename of\n * the file will be sent, not the entire path to make it consistent with how\n * the browser sets the value.\n * @param files An array of objects containing the path and type of selected files\n */\n async doSelect(files: Array<{ path: string; type: string }>) {\n await FilePickerWebElement.setupPickFiles(this.getDriver(), files);\n\n await this.getDriver().executeScript(`arguments[0].firstChild.click();`, this);\n\n await this.whenBusyContextReady();\n }\n\n /**\n * This method should be called right before ojfilepickerutils.pickFiles\n * Takes the webdriver and an Array of objects containing file paths + types.\n * These files will be read from the local filesystem and then sent\n * to the pickFiles method to simulate user file selection. Only the basename of\n * the file will be sent, not the entire path to make it consistent with how\n * the browser sets the value.\n * @param driver the Webdriver of the test\n * @param files An array of objects containing the path and type of selected files\n */\n static async setupPickFiles(driver: WebDriver, files: Array<{ path: string; type: string }>) {\n await whenBusyContextReady(driver);\n //create a buffer with the files\n const dataList = files.map(({ path: filePath, type }) => {\n const fileSizeInMB = fs.statSync(filePath).size / (1024 * 1024);\n const numberChunks = Math.ceil(fileSizeInMB / 8);\n const fileContent = Array.from(fs.readFileSync(filePath));\n const chunkSize = Math.floor(fileContent.length / numberChunks);\n const fileChunks = [];\n for (let i = 0; i < numberChunks; i++) {\n if (i + 1 == numberChunks) {\n fileChunks.push(fileContent.slice(i * chunkSize));\n } else {\n fileChunks.push(fileContent.slice(i * chunkSize, (i + 1) * chunkSize));\n }\n }\n\n return {\n bytes: fileChunks, //split it into 8MB chunks\n path: path.basename(filePath),\n type,\n numberChunks\n };\n });\n\n for (let i = 0; i < dataList.length; i++) {\n const { bytes, path, type, numberChunks } = dataList[i];\n for (let j = 0; j < bytes.length; j++) {\n const file = {\n bytes: bytes[j],\n path,\n type,\n numberChunks,\n chunkNumber: j,\n fileNumber: i\n };\n await driver.executeScript(\n `const file = arguments[0];\n const filestoreName = arguments[1];\n const filenamePrefix = arguments[2];\n const filestore = window[filestoreName] = window[filestoreName] || {};\n const chunkNumber = file.chunkNumber;\n const data = {\n bytes: file.bytes,\n path: file.path,\n type: file.type\n }\n const fileKey = filenamePrefix + file.fileNumber;\n if (chunkNumber == 0) {\n filestore[fileKey] = [data];\n } else {\n filestore[fileKey].push(data);\n }`,\n file,\n filestoreName,\n filenamePrefix\n );\n }\n }\n\n driver.executeScript(\n `const numFiles = arguments[0];\n const filestoreName = arguments[1];\n const filenamePrefix = arguments[2];\n const filestore = window[filestoreName];\n const list = [];\n for ( let i = 0; i < numFiles; i++) {\n const fileKey = filenamePrefix + i;\n const chunks = filestore[fileKey];\n delete filestore[fileKey];\n list.push({\n bytes: chunks.reduce((acc, chunk) => acc.concat(chunk.bytes), []),\n path: chunks[0].path,\n type: chunks[0].type\n });\n }\n const fileList = list.map((data) => {\n return new File([Uint8Array.from(data.bytes)], data.path, {type: data.type});\n })\n // Only if setupPickFiles has not been called yet\n if (!HTMLInputElement.prototype._pickerTestData) {\n //Save the native click method\n const clickMethod = HTMLInputElement.prototype.click;\n //Overwrite the click method\n HTMLInputElement.prototype.click = function() {\n const event = new CustomEvent(\"change\");\n this.dispatchEvent(event);\n delete HTMLInputElement.prototype._pickerTestData;\n HTMLInputElement.prototype.click = clickMethod;\n }\n }\n HTMLInputElement.prototype._pickerTestData = fileList;\n `,\n dataList.length,\n filestoreName,\n filenamePrefix\n );\n }\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "file-picker",
3
- "version": "17.0.4",
4
- "jetVersion": "^17.0.4",
3
+ "version": "17.1.0",
4
+ "jetVersion": "^17.1.0",
5
5
  "pack": "oj-c",
6
6
  "type": "composite",
7
7
  "dependencyScope": "runtime",
@@ -36,7 +36,7 @@
36
36
  ]
37
37
  },
38
38
  "webelement": {
39
- "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1700/cpwdtsdoc/classes/FilePickerWebElement.html"
39
+ "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/FilePickerWebElement.html"
40
40
  }
41
41
  },
42
42
  "propertyLayout": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "form-layout",
3
- "version": "17.0.4",
4
- "jetVersion": "^17.0.4",
3
+ "version": "17.1.0",
4
+ "jetVersion": "^17.1.0",
5
5
  "pack": "oj-c",
6
6
  "type": "composite",
7
7
  "dependencyScope": "runtime",
@@ -35,7 +35,7 @@
35
35
  ]
36
36
  },
37
37
  "webelement": {
38
- "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1700/cpwdtsdoc/classes/FormLayoutWebElement.html"
38
+ "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/FormLayoutWebElement.html"
39
39
  }
40
40
  },
41
41
  "propertyLayout": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "highlight-text",
3
- "version": "17.0.4",
4
- "jetVersion": "^17.0.4",
3
+ "version": "17.1.0",
4
+ "jetVersion": "^17.1.0",
5
5
  "pack": "oj-c",
6
6
  "type": "composite",
7
7
  "dependencyScope": "runtime",
@@ -26,7 +26,7 @@
26
26
  "icon": "oj-ux-ico-background-color"
27
27
  },
28
28
  "webelement": {
29
- "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1700/cpwdtsdoc/classes/HighlightTextWebElement.html"
29
+ "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/HighlightTextWebElement.html"
30
30
  }
31
31
  },
32
32
  "propertyLayout": [
@@ -31,6 +31,14 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
31
31
  });
32
32
  return true;
33
33
  }, [dispatch, onMessagesCustomChanged, onRawValueChanged, onValidChanged, onValueChanged]);
34
+ const validateDeferredSync = (0, hooks_1.useCallback)((value) => {
35
+ const valueToSendToDeferredValidation = typeof value === 'string' ? value.trim() : value;
36
+ const deferredValidate = (0, validationUtils_1.validateSync)({
37
+ validators: deferredValidators ?? [],
38
+ value: valueToSendToDeferredValidation
39
+ });
40
+ return deferredValidate;
41
+ }, [deferredValidators]);
34
42
  const refreshDisplayValue = (0, hooks_1.useCallback)((value) => {
35
43
  let newDisplayValue;
36
44
  if (!converter) {
@@ -92,7 +100,7 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
92
100
  return true;
93
101
  }
94
102
  const errors = [];
95
- const deferredValidate = (0, validationUtils_1.validateSync)({ validators: deferredValidators ?? [], value });
103
+ const deferredValidate = validateDeferredSync(value);
96
104
  deferredValidate.result === 'failure' && errors.push(...deferredValidate.errors);
97
105
  let nonDeferredValidate = undefined;
98
106
  if (value !== null && value !== undefined) {
@@ -131,7 +139,15 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
131
139
  }
132
140
  resolver?.();
133
141
  return !hasSyncError && !hasAsyncError;
134
- }, [addBusyState, _dispatch, deferredValidators, messagesCustom, setStaleIdentity, validators]);
142
+ }, [
143
+ addBusyState,
144
+ _dispatch,
145
+ deferredValidators,
146
+ messagesCustom,
147
+ setStaleIdentity,
148
+ validateDeferredSync,
149
+ validators
150
+ ]);
135
151
  const runFullValidationAndUpdateValue = async () => {
136
152
  if (disabled || readonly)
137
153
  return;
@@ -154,15 +170,21 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
154
170
  }
155
171
  return validationResult;
156
172
  }, [addBusyState, fullValidate, setStaleIdentity]);
173
+ const onCommitValue = (0, hooks_1.useCallback)(async (value, doCommitOnValid = true) => {
174
+ const validated = await validateValueOnInternalChange(value);
175
+ validated && doCommitOnValid && _dispatch(reducer_1.updateValue, value);
176
+ return validated;
177
+ }, [_dispatch, validateValueOnInternalChange]);
157
178
  const onCommit = (0, hooks_1.useCallback)(async ({ value }) => {
158
179
  const parsedValueOrSymbol = normalizeAndParseValue(value);
159
180
  if (parsedValueOrSymbol === ConverterErrorSymbol) {
160
- return;
181
+ return false;
161
182
  }
162
183
  const parsedValue = parsedValueOrSymbol;
163
- const validated = await validateValueOnInternalChange(parsedValue);
164
- validated && _dispatch(reducer_1.updateValue, parsedValue) && refreshDisplayValue(parsedValue);
165
- }, [_dispatch, normalizeAndParseValue, refreshDisplayValue, validateValueOnInternalChange]);
184
+ const succeeded = await onCommitValue(parsedValue);
185
+ succeeded && refreshDisplayValue(parsedValue);
186
+ return succeeded;
187
+ }, [onCommitValue, normalizeAndParseValue, refreshDisplayValue]);
166
188
  const onInput = (0, hooks_1.useCallback)(({ value }) => {
167
189
  _dispatch(reducer_1.updateDisplayValue, value ?? defaultDisplayValue);
168
190
  }, [_dispatch, defaultDisplayValue]);
@@ -200,14 +222,11 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
200
222
  const reset = (0, hooks_1.useCallback)(() => {
201
223
  _dispatch(reducer_1.clearAllMessages);
202
224
  const valueToValidate = state.value;
203
- const validated = (0, validationUtils_1.validateSync)({
204
- validators: deferredValidators ?? [],
205
- value: valueToValidate
206
- });
225
+ const validated = validateDeferredSync(valueToValidate);
207
226
  validated.result === 'failure' && _dispatch(reducer_1.updateHiddenMessages, validated.errors);
208
227
  _dispatch(reducer_1.updateValidStatus, validated.result === 'failure' ? 'invalidHidden' : 'valid');
209
228
  refreshDisplayValue(state.value);
210
- }, [deferredValidators, _dispatch, refreshDisplayValue, state.value]);
229
+ }, [_dispatch, refreshDisplayValue, state.value, validateDeferredSync]);
211
230
  const showMessages = (0, hooks_1.useCallback)(() => {
212
231
  if (state.hiddenMessages && state.hiddenMessages.length > 0) {
213
232
  _dispatch(reducer_1.showHiddenMessages);
@@ -218,7 +237,7 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
218
237
  _dispatch(reducer_1.updatePreviousValue, value);
219
238
  if (value !== state.value) {
220
239
  _dispatch(reducer_1.clearAllMessages);
221
- const validated = (0, validationUtils_1.validateSync)({ validators: deferredValidators ?? [], value });
240
+ const validated = validateDeferredSync(value);
222
241
  validated.result === 'success' && _dispatch(reducer_1.updateValidStatus, 'valid');
223
242
  validated.result === 'failure' &&
224
243
  _dispatch(reducer_1.updateValidStatus, 'invalidHidden') &&
@@ -269,10 +288,7 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
269
288
  case 'valid':
270
289
  const newValue = getValueForValidation();
271
290
  if (newValue !== ConverterErrorSymbol) {
272
- const deferredValidate = (0, validationUtils_1.validateSync)({
273
- validators: deferredValidators ?? [],
274
- value: newValue
275
- });
291
+ const deferredValidate = validateDeferredSync(newValue);
276
292
  deferredValidate.result === 'failure' &&
277
293
  _dispatch(reducer_1.updateHiddenMessages, deferredValidate.errors) &&
278
294
  _dispatch(reducer_1.updateValidStatus, 'invalidHidden');
@@ -302,10 +318,10 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
302
318
  _dispatch(reducer_1.updatePreviousReadonly, readonly);
303
319
  _dispatch(reducer_1.updateCustomMessages, messagesCustom);
304
320
  if (!disabled && !readonly) {
305
- const validated = (0, validationUtils_1.validateSync)({ validators: deferredValidators ?? [], value });
321
+ const validated = validateDeferredSync(value);
306
322
  validated.result === 'failure' &&
307
323
  _dispatch(reducer_1.updateHiddenMessages, validated.errors) &&
308
- _dispatch(reducer_1.updateValidStatus, 'invalidHidden');
324
+ _dispatch(reducer_1.updateValidStatus, (0, utils_1.hasErrorMessages)(messagesCustom) ? 'invalidShown' : 'invalidHidden');
309
325
  validated.result === 'success' &&
310
326
  _dispatch(reducer_1.updateValidStatus, (0, utils_1.hasErrorMessages)(messagesCustom) ? 'invalidShown' : 'valid') &&
311
327
  refreshDisplayValue(value);
@@ -323,6 +339,8 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
323
339
  showMessages,
324
340
  validate
325
341
  },
342
+ onCommitValue,
343
+ refreshDisplayValue,
326
344
  textFieldProps: {
327
345
  'aria-describedby': ariaDescribedBy,
328
346
  messages: displayOptions?.messages !== 'none' ? state.shownMessages : undefined,