@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
@@ -0,0 +1,6 @@
1
+ define(["require", "exports", "./table"], function (require, exports, table_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Table = void 0;
5
+ Object.defineProperty(exports, "Table", { enumerable: true, get: function () { return table_1.Table; } });
6
+ });
@@ -0,0 +1,39 @@
1
+ /* This file is where css selectors for the component go.
2
+ There will be hard coded properties and properties controlled by variables, for example
3
+
4
+ oj-c-table .oj-c-table-value-text {
5
+ color: var(--oj-c-table-value-text-color);
6
+ display: inline-block;
7
+ }
8
+ */
9
+
10
+ oj-c-table:not(.oj-complete) {
11
+ visibility: hidden;
12
+ }
13
+
14
+ oj-c-table {
15
+ align-items: stretch;
16
+ box-sizing: border-box;
17
+ clear: both;
18
+ display: inline-flex;
19
+ min-height: 24px;
20
+ min-width: 240px;
21
+ position: relative;
22
+ }
23
+
24
+ oj-c-table[hidden] {
25
+ display: none;
26
+ }
27
+
28
+ .oj-c-table-header-div {
29
+ min-width: 1.5rem;
30
+ }
31
+
32
+ .oj-c-table-header-span {
33
+ display: -webkit-box;
34
+ overflow: hidden;
35
+ overflow-wrap: normal;
36
+ vertical-align: middle;
37
+ -webkit-box-orient: vertical;
38
+ -webkit-line-clamp: 2;
39
+ }
@@ -0,0 +1,353 @@
1
+ define(["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/translationBundle', "ojs/ojcustomelement-registry", "ojs/ojcontext", "ojs/ojvcomponent", "preact/hooks", "../hooks/UNSAFE_useListData/useListData", "@oracle/oraclejet-preact/UNSAFE_TableView", "ojs/ojkeyset", "../utils/UNSAFE_keyUtils/keySetUtils", "@oracle/oraclejet-preact/hooks/UNSAFE_useCollectionInteractionContext", "@oracle/oraclejet-preact/hooks/UNSAFE_useFormVariantContext", "css!oj-c/table/table-styles.css"], function (require, exports, jsx_runtime_1, translationBundle_1, ojcustomelement_registry_1, Context, ojvcomponent_1, hooks_1, useListData_1, UNSAFE_TableView_1, ojkeyset_1, keySetUtils_1, UNSAFE_useCollectionInteractionContext_1, UNSAFE_useFormVariantContext_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Table = void 0;
5
+ const _SELECTION_COLUMN_KEY = 'oj-c-table_selection';
6
+ const _selectedDefault = {};
7
+ const _selectionModeDefault = { row: 'none', column: 'none' };
8
+ const _scrollPolicyOptionsDefault = { fetchSize: 25 };
9
+ const _defaultHeaderRenderer = (headerText) => {
10
+ return headerText != null ? ((0, jsx_runtime_1.jsx)("div", { class: "oj-c-table-header-div", children: (0, jsx_runtime_1.jsx)("span", { class: "oj-c-table-header-span", children: headerText }) })) : undefined;
11
+ };
12
+ const _isClickthroughDisabled = function (element) {
13
+ return element.dataset['ojClickthrough'] === 'disabled';
14
+ };
15
+ const _isEventClickthroughDisabled = function (event, rootElement) {
16
+ let node = event.target;
17
+ while (node != null && node !== rootElement) {
18
+ if (_isClickthroughDisabled(node)) {
19
+ return true;
20
+ }
21
+ node = node.parentNode;
22
+ }
23
+ return false;
24
+ };
25
+ function TableImpl({ 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, id, data, columns, row, horizontalGridVisible = 'enabled', verticalGridVisible = 'disabled', layout = 'contents', currentCellOverride, onCurrentCellChanged, selected = _selectedDefault, selectionMode = _selectionModeDefault, onSelectedChanged, selectAllControl = 'visible', columnOrder, cellTemplate, headerTemplate, footerTemplate, templates, onOjRowAction, noData, columnWidths, scrollPolicyOptions = _scrollPolicyOptionsDefault }) {
26
+ const rootRef = (0, hooks_1.useRef)(null);
27
+ const tableViewRef = (0, hooks_1.useRef)(null);
28
+ const isClickthroughDisabled = (0, hooks_1.useCallback)((target) => {
29
+ if (target == null || rootRef.current == null) {
30
+ return false;
31
+ }
32
+ return _isEventClickthroughDisabled({ target }, rootRef.current);
33
+ }, []);
34
+ const [listDataState, onLoadRange] = (0, useListData_1.useListData)(data, {
35
+ fetchSize: scrollPolicyOptions?.fetchSize
36
+ });
37
+ const onLoadMore = (0, hooks_1.useCallback)(() => {
38
+ if (listDataState.status === 'success' && listDataState.data && onLoadRange) {
39
+ const fetchSize = scrollPolicyOptions && scrollPolicyOptions.fetchSize != null
40
+ ? scrollPolicyOptions.fetchSize
41
+ : 25;
42
+ onLoadRange({ offset: 0, count: listDataState.data.data.length + fetchSize });
43
+ }
44
+ }, [listDataState, onLoadRange, scrollPolicyOptions]);
45
+ const hasMore = listDataState.status === 'loading' ||
46
+ (listDataState.status === 'success' && listDataState.data.sizePrecision === 'atLeast');
47
+ const realizedColumnWidths = (0, hooks_1.useMemo)(() => {
48
+ const preactColumnWidths = { ...columnWidths };
49
+ if (selectionMode?.row === 'multiple') {
50
+ preactColumnWidths[_SELECTION_COLUMN_KEY] = 36;
51
+ }
52
+ return preactColumnWidths;
53
+ }, [selectionMode?.row, columnWidths]);
54
+ function getRowContext(context) {
55
+ const { data } = context;
56
+ return {
57
+ item: data
58
+ };
59
+ }
60
+ const tableCellSelectorRenderer = (context) => {
61
+ return context.selector != null ? context.selector() : undefined;
62
+ };
63
+ const tableHeaderSelectorRenderer = (context) => {
64
+ return context.selector != null ? ((0, jsx_runtime_1.jsx)("div", { "data-oj-table-selector": 'all', children: context.selector() })) : undefined;
65
+ };
66
+ function getPreactHeaderRenderer(headerTemplate) {
67
+ return (context) => {
68
+ const templateContext = {
69
+ key: context.key,
70
+ headerText: context.headerText,
71
+ isTabbable: context.isTabbable
72
+ };
73
+ return headerTemplate
74
+ ? headerTemplate(templateContext)
75
+ : _defaultHeaderRenderer(templateContext.headerText);
76
+ };
77
+ }
78
+ function getPreactFooterRenderer(footerTemplate, footerText) {
79
+ if (footerTemplate || footerText != null) {
80
+ return (context) => {
81
+ const templateContext = {
82
+ key: context.key,
83
+ footerText: context.footerText,
84
+ isTabbable: context.isTabbable
85
+ };
86
+ return footerTemplate ? footerTemplate(templateContext) : footerText;
87
+ };
88
+ }
89
+ return undefined;
90
+ }
91
+ function getPreactNoDataRenderer(noData) {
92
+ if (noData) {
93
+ return (context) => {
94
+ return noData({ isTabbable: context.isTabbable });
95
+ };
96
+ }
97
+ return undefined;
98
+ }
99
+ function getPreactCellRenderer(cellTemplate, field) {
100
+ return (context) => {
101
+ const templateContext = {
102
+ item: context.rowData,
103
+ columnKey: context.columnKey,
104
+ data: field != null ? context.rowData.data[field] : undefined,
105
+ isTabbable: context.isTabbable
106
+ };
107
+ return cellTemplate
108
+ ? cellTemplate(templateContext)
109
+ : templateContext.data != null
110
+ ? String(templateContext.data)
111
+ : undefined;
112
+ };
113
+ }
114
+ function getPreactColumns(cols, globalCellTemplate, globalHeaderTemplate, globalFooterTemplate, templates) {
115
+ const preactColumns = {};
116
+ if (selectionMode?.row === 'multiple') {
117
+ preactColumns[_SELECTION_COLUMN_KEY] = {
118
+ stickyEdge: 'start',
119
+ selectable: 'disabled',
120
+ renderer: tableCellSelectorRenderer,
121
+ headerRenderer: selectAllControl !== 'hidden' ? tableHeaderSelectorRenderer : undefined,
122
+ padding: 'disabled',
123
+ headerPadding: 'disabled'
124
+ };
125
+ }
126
+ Object.keys(cols).forEach((key) => {
127
+ const colKey = key;
128
+ const column = cols[colKey];
129
+ const cellRenderer = column.template && templates && templates[column.template]
130
+ ? getPreactCellRenderer(templates[column.template], column.field)
131
+ : getPreactCellRenderer(globalCellTemplate, column.field);
132
+ const headerCellRenderer = column.headerTemplate && templates && templates[column.headerTemplate]
133
+ ? getPreactHeaderRenderer(templates[column.headerTemplate])
134
+ : getPreactHeaderRenderer(globalHeaderTemplate);
135
+ const footerCellRenderer = column.footerTemplate && templates && templates[column.footerTemplate]
136
+ ? getPreactFooterRenderer(templates[column.footerTemplate], column.footerText)
137
+ : getPreactFooterRenderer(globalFooterTemplate, column.footerText);
138
+ const headerText = column.headerText ?? undefined;
139
+ const footerText = column.footerText ?? undefined;
140
+ const maxWidth = column.maxWidth ?? undefined;
141
+ const minWidth = column.minWidth ?? undefined;
142
+ const weight = column.weight ?? undefined;
143
+ let padding;
144
+ const columnPadding = column.padding;
145
+ if (typeof columnPadding === 'function') {
146
+ padding = (context) => {
147
+ const internalContext = getRowContext(context);
148
+ return columnPadding(internalContext);
149
+ };
150
+ }
151
+ else {
152
+ padding = columnPadding ?? 'enabled';
153
+ }
154
+ const headerPadding = column.headerPadding ?? 'enabled';
155
+ const footerPadding = column.footerPadding ?? 'enabled';
156
+ preactColumns[colKey] = {
157
+ headerText: headerText,
158
+ footerText: footerText,
159
+ renderer: cellRenderer,
160
+ headerRenderer: headerCellRenderer,
161
+ footerRenderer: footerCellRenderer,
162
+ maxWidth,
163
+ minWidth,
164
+ weight,
165
+ padding,
166
+ headerPadding,
167
+ footerPadding
168
+ };
169
+ });
170
+ return preactColumns;
171
+ }
172
+ const handleKeyDown = (0, hooks_1.useCallback)((event) => {
173
+ if (event.key === ' ') {
174
+ const targetElement = event.target;
175
+ if (targetElement.children.length > 0 &&
176
+ targetElement.children[0].dataset['ojTableSelector'] === 'all') {
177
+ let newRowSelection;
178
+ if (selected.row?.isAddAll() && selected.row.keys.deletedKeys?.size === 0) {
179
+ newRowSelection = new ojkeyset_1.KeySetImpl();
180
+ }
181
+ else {
182
+ newRowSelection = new ojkeyset_1.AllKeySetImpl();
183
+ }
184
+ onSelectedChanged({
185
+ row: newRowSelection,
186
+ column: new ojkeyset_1.KeySetImpl()
187
+ });
188
+ }
189
+ }
190
+ }, [onSelectedChanged, selected]);
191
+ const selectAllHandlerProps = selectionMode?.row === 'multiple' && selectAllControl !== 'hidden'
192
+ ? { onKeyDown: handleKeyDown }
193
+ : {};
194
+ const preactColumns = (0, hooks_1.useMemo)(() => {
195
+ return columns
196
+ ? getPreactColumns(columns, cellTemplate, headerTemplate, footerTemplate, templates)
197
+ : {};
198
+ }, [columns, cellTemplate, headerTemplate, footerTemplate, templates, selectionMode?.row]);
199
+ const preactColumnOrder = (0, hooks_1.useMemo)(() => {
200
+ const newColumnOrder = [];
201
+ let hasSelectorColumn = false;
202
+ if (selectionMode?.row === 'multiple') {
203
+ newColumnOrder.push(_SELECTION_COLUMN_KEY);
204
+ hasSelectorColumn = true;
205
+ }
206
+ if (columnOrder != null) {
207
+ for (const key of columnOrder) {
208
+ if (preactColumns[key] != null && !newColumnOrder.includes(key)) {
209
+ newColumnOrder.push(key);
210
+ }
211
+ }
212
+ }
213
+ else {
214
+ for (const [key] of Object.entries(preactColumns)) {
215
+ if (key !== _SELECTION_COLUMN_KEY) {
216
+ newColumnOrder.push(key);
217
+ }
218
+ }
219
+ }
220
+ return newColumnOrder.length === 1 && hasSelectorColumn ? [] : newColumnOrder;
221
+ }, [columnOrder, selectionMode?.row, preactColumns]);
222
+ const preactData = listDataState.status === 'success' ? listDataState?.data?.data || [] : [];
223
+ const preactGetRowKey = (data) => {
224
+ return data.metadata.key;
225
+ };
226
+ const preactGetAccessibleRowHeaders = (preactContext) => {
227
+ const internalContext = getRowContext(preactContext);
228
+ const rowHeaders = new Set();
229
+ if (row != null && row.accessibleRowHeader != null) {
230
+ if (typeof row.accessibleRowHeader === 'string') {
231
+ rowHeaders.add(row.accessibleRowHeader);
232
+ }
233
+ else if (Array.isArray(row.accessibleRowHeader)) {
234
+ row.accessibleRowHeader.forEach((header) => rowHeaders.add(header));
235
+ }
236
+ else if (typeof row.accessibleRowHeader === 'function') {
237
+ const result = row.accessibleRowHeader(internalContext);
238
+ if (typeof result === 'string') {
239
+ rowHeaders.add(result);
240
+ }
241
+ else if (Array.isArray(result)) {
242
+ result.forEach((header) => rowHeaders.add(header));
243
+ }
244
+ }
245
+ }
246
+ else if (preactColumnOrder.length > 0) {
247
+ if (selectionMode?.row === 'multiple') {
248
+ rowHeaders.add(preactColumnOrder[1]);
249
+ }
250
+ else {
251
+ rowHeaders.add(preactColumnOrder[0]);
252
+ }
253
+ }
254
+ return rowHeaders;
255
+ };
256
+ const preactOnRowAction = (0, hooks_1.useCallback)((eventDetail) => {
257
+ if (onOjRowAction && eventDetail != null && !isClickthroughDisabled(eventDetail.target)) {
258
+ onOjRowAction({ context: getRowContext(eventDetail.context) });
259
+ }
260
+ }, [onOjRowAction, isClickthroughDisabled, getRowContext]);
261
+ const gridlines = (0, hooks_1.useMemo)(() => ({
262
+ horizontal: horizontalGridVisible === 'enabled' ? 'visible' : 'hidden',
263
+ vertical: verticalGridVisible === 'enabled' ? 'visible' : 'hidden'
264
+ }), [horizontalGridVisible, verticalGridVisible]);
265
+ const noDataRenderer = (0, hooks_1.useMemo)(() => {
266
+ return getPreactNoDataRenderer(noData);
267
+ }, [noData]);
268
+ const preactSelected = (0, hooks_1.useMemo)(() => {
269
+ return selected
270
+ ? {
271
+ row: selected.row ? (0, keySetUtils_1.keySetToKeys)(selected.row) : undefined,
272
+ column: selected.column ? (0, keySetUtils_1.keySetToKeys)(selected.column) : undefined
273
+ }
274
+ : undefined;
275
+ }, [selected?.row, selected?.column]);
276
+ const preactOnSelectionChange = (0, hooks_1.useCallback)((detail) => {
277
+ if (!isClickthroughDisabled(detail.target)) {
278
+ const value = detail.value;
279
+ const rowKeySet = value.row
280
+ ? (0, keySetUtils_1.keysToKeySet)(value.row)
281
+ : undefined;
282
+ const columnKeySet = value.column
283
+ ? (0, keySetUtils_1.keysToKeySet)(value.column)
284
+ : undefined;
285
+ onSelectedChanged({
286
+ row: rowKeySet,
287
+ column: columnKeySet
288
+ });
289
+ }
290
+ }, [onSelectedChanged, isClickthroughDisabled]);
291
+ const onPersistCurrentCell = (0, hooks_1.useCallback)((detail) => {
292
+ if (onCurrentCellChanged) {
293
+ onCurrentCellChanged(detail.value);
294
+ }
295
+ }, [onCurrentCellChanged]);
296
+ const busyContextRef = (0, hooks_1.useRef)();
297
+ const childBusyContextRef = (0, hooks_1.useRef)();
298
+ const resolveDataBusyStateRef = (0, hooks_1.useRef)();
299
+ const resolveContentBusyStateRef = (0, hooks_1.useRef)();
300
+ const [isInitialLoading, setIsInitialLoading] = (0, hooks_1.useState)(layout === 'contents');
301
+ const isInitialLoadingRef = (0, hooks_1.useRef)(isInitialLoading);
302
+ (0, hooks_1.useEffect)(() => {
303
+ busyContextRef.current = Context.getContext(rootRef.current).getBusyContext();
304
+ childBusyContextRef.current = Context.getContext(tableViewRef.current).getBusyContext();
305
+ }, []);
306
+ const addBusyState = (0, hooks_1.useCallback)((desc) => {
307
+ return busyContextRef.current?.addBusyState({
308
+ description: `oj-c-table: ${desc}`
309
+ });
310
+ }, []);
311
+ (0, hooks_1.useEffect)(() => {
312
+ if (listDataState.status === 'loading') {
313
+ resolveDataBusyStateRef.current = addBusyState('Table is loading data');
314
+ }
315
+ else {
316
+ if (isInitialLoadingRef.current) {
317
+ resolveContentBusyStateRef.current = addBusyState('Table content is initializing');
318
+ childBusyContextRef.current.whenReady().then(function () {
319
+ if (resolveContentBusyStateRef.current) {
320
+ resolveContentBusyStateRef.current();
321
+ resolveContentBusyStateRef.current = undefined;
322
+ }
323
+ setIsInitialLoading(false);
324
+ isInitialLoadingRef.current = false;
325
+ });
326
+ }
327
+ }
328
+ return () => {
329
+ if (resolveDataBusyStateRef.current) {
330
+ resolveDataBusyStateRef.current();
331
+ resolveDataBusyStateRef.current = undefined;
332
+ }
333
+ if (resolveContentBusyStateRef.current) {
334
+ resolveContentBusyStateRef.current();
335
+ resolveContentBusyStateRef.current = undefined;
336
+ }
337
+ };
338
+ }, [listDataState.status, addBusyState]);
339
+ return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { id: id, ref: rootRef, children: (0, jsx_runtime_1.jsx)("div", { ref: tableViewRef, "data-oj-context": true, ...selectAllHandlerProps, ...(cellTemplate ? { 'data-oj-ct': true } : {}), ...(headerTemplate ? { 'data-oj-ht': true } : {}), ...(footerTemplate ? { 'data-oj-ft': true } : {}), ...(noData ? { 'data-oj-ndt': true } : {}), style: "display: contents;", children: (0, jsx_runtime_1.jsx)(UNSAFE_useFormVariantContext_1.FormVariantContext.Provider, { value: 'embedded', children: (0, jsx_runtime_1.jsx)(UNSAFE_TableView_1.TableView, { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, columns: preactColumns, data: preactData, getRowKey: preactGetRowKey, getAccessibleRowHeaders: preactGetAccessibleRowHeaders, gridlines: gridlines, layout: isInitialLoading ? 'pending' : layout, selected: preactSelected, selectionMode: selectionMode, onSelectionChange: preactOnSelectionChange, columnOrder: preactColumnOrder, onRowAction: preactOnRowAction, noDataRenderer: noDataRenderer, columnWidths: realizedColumnWidths, onLoadMore: onLoadMore, hasMore: hasMore, currentCellOverride: currentCellOverride, onPersistCurrentCell: onPersistCurrentCell, width: '100%' }) }) }) }));
340
+ }
341
+ exports.Table = (0, ojvcomponent_1.registerCustomElement)('oj-c-table', TableImpl, "Table", { "properties": { "layout": { "type": "string", "enumValues": ["fixed", "contents"] }, "data": { "type": "DataProvider" }, "columns": { "type": "object" }, "row": { "type": "object", "properties": { "accessibleRowHeader": { "type": "any" } } }, "horizontalGridVisible": { "type": "string", "enumValues": ["disabled", "enabled"] }, "verticalGridVisible": { "type": "string", "enumValues": ["disabled", "enabled"] }, "selected": { "type": "object", "properties": { "column": { "type": "object" }, "row": { "type": "object" } }, "writeback": true }, "selectionMode": { "type": "object", "properties": { "column": { "type": "string", "enumValues": ["none", "multiple", "single"] }, "row": { "type": "string", "enumValues": ["none", "multiple", "single"] } } }, "selectAllControl": { "type": "string", "enumValues": ["hidden", "visible"] }, "columnOrder": { "type": "Array<string>", "writeback": true }, "currentCellOverride": { "type": "object" }, "currentCell": { "type": "object", "readOnly": true, "writeback": true }, "columnWidths": { "type": "object", "writeback": true }, "scrollPolicyOptions": { "type": "object", "properties": { "fetchSize": { "type": "number" } } } }, "slots": { "cellTemplate": { "data": {} }, "headerTemplate": { "data": {} }, "footerTemplate": { "data": {} }, "noData": { "data": {} } }, "extension": { "_DYNAMIC_SLOT": { "prop": "templates", "isTemplate": 1 }, "_WRITEBACK_PROPS": ["selected", "columnOrder", "currentCell", "columnWidths"], "_READ_ONLY_PROPS": ["currentCell"], "_OBSERVED_GLOBAL_PROPS": ["aria-label", "aria-labelledby", "id"] }, "events": { "ojRowAction": { "bubbles": true } } }, { "horizontalGridVisible": "enabled", "verticalGridVisible": "disabled", "layout": "contents", "selected": {}, "selectionMode": { "row": "none", "column": "none" }, "selectAllControl": "visible", "scrollPolicyOptions": { "fetchSize": 25 } }, {
342
+ '@oracle/oraclejet-preact': translationBundle_1.default
343
+ }, { consume: [UNSAFE_useCollectionInteractionContext_1.CollectionInteractionContext] });
344
+ const metadata = (0, ojcustomelement_registry_1.getMetadata)('oj-c-table');
345
+ metadata.properties.__oj_private_do_not_use_userAssistanceDensity = {
346
+ binding: {
347
+ provide: [
348
+ { name: 'containerUserAssistanceDensity', default: 'compact' },
349
+ { name: 'userAssistanceDensity', default: 'compact' }
350
+ ]
351
+ }
352
+ };
353
+ });
package/oj-c/table.js ADDED
@@ -0,0 +1,6 @@
1
+ define(["require", "exports", "oj-c/table/table"], function (require, exports, table_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Table = void 0;
5
+ Object.defineProperty(exports, "Table", { enumerable: true, get: function () { return table_1.Table; } });
6
+ });
@@ -10,7 +10,7 @@ export declare class TagCloudWebElementBase extends OjWebElement {
10
10
  * Gets the value of <code>data</code> property.
11
11
  * Specifies the DataProvider for the sections and items of the tag-cloud
12
12
  * @return The value of <code>data</code> property.
13
- *
13
+ * @deprecated Since 17.1.0. Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead.
14
14
  */
15
15
  getData(): Promise<null>;
16
16
  /**
@@ -13,7 +13,7 @@ class TagCloudWebElementBase extends elements_1.OjWebElement {
13
13
  * Gets the value of <code>data</code> property.
14
14
  * Specifies the DataProvider for the sections and items of the tag-cloud
15
15
  * @return The value of <code>data</code> property.
16
- *
16
+ * @deprecated Since 17.1.0. Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead.
17
17
  */
18
18
  getData() {
19
19
  return this.getProperty('data');
@@ -1 +1 @@
1
- {"version":3,"file":"TagCloudWebElementBase.js","sourceRoot":"","sources":["TagCloudWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,sBAAuB,SAAQ,uBAAY;IACtD;;;;;OAKG;IACI,OAAO;QACZ,OAAO,IAAI,CAAC,WAAW,CAAO,MAAM,CAAC,CAAC;IACxC,CAAC;IAED;;;;;OAKG;IACI,UAAU;QACf,OAAO,IAAI,CAAC,WAAW,CAAO,SAAS,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;OAKG;IACI,sBAAsB,CAAC,gBAA+B;QAC3D,OAAO,IAAI,CAAC,WAAW,CAAgB,kBAAkB,EAAE,gBAAgB,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;OAKG;IACI,mBAAmB;QACxB,OAAO,IAAI,CAAC,WAAW,CAAgB,kBAAkB,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,iBAAiB;QACtB,OAAO,IAAI,CAAC,WAAW,CAAS,gBAAgB,CAAC,CAAC;IACpD,CAAC;IAED;;;;;OAKG;IACI,2BAA2B,CAAC,qBAAoC;QACrE,OAAO,IAAI,CAAC,WAAW,CAAgB,uBAAuB,EAAE,qBAAqB,CAAC,CAAC;IACzF,CAAC;IAED;;;;;OAKG;IACI,wBAAwB;QAC7B,OAAO,IAAI,CAAC,WAAW,CAAgB,uBAAuB,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,SAAS;QACd,OAAO,IAAI,CAAC,WAAW,CAAS,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,eAAe,CAAC,SAAqB;QAC1C,OAAO,IAAI,CAAC,WAAW,CAAa,WAAW,EAAE,SAAS,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;OAKG;IACI,YAAY;QACjB,OAAO,IAAI,CAAC,WAAW,CAAa,WAAW,CAAC,CAAC;IACnD,CAAC;CACF;AAlID,wDAkIC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-tag-cloud 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, TagCloudWebElement.ts.\n */\nexport class TagCloudWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>data</code> property.\n * Specifies the DataProvider for the sections and items of the tag-cloud\n * @return The value of <code>data</code> property.\n *\n */\n public getData(): Promise<null> {\n return this.getProperty<null>('data');\n }\n\n /**\n * Gets the value of <code>datatip</code> property.\n *\n * @return The value of <code>datatip</code> property.\n *\n */\n public getDatatip(): Promise<null> {\n return this.getProperty<null>('datatip');\n }\n\n /**\n * Sets the value of <code>hiddenCategories</code> property.\n * An array of categories that will be hidden.\n * @param hiddenCategories The value to set for <code>hiddenCategories</code>\n *\n */\n public changeHiddenCategories(hiddenCategories: Array<string>): Promise<void> {\n return this.setProperty<Array<string>>('hiddenCategories', hiddenCategories);\n }\n\n /**\n * Gets the value of <code>hiddenCategories</code> property.\n * An array of categories that will be hidden.\n * @return The value of <code>hiddenCategories</code> property.\n *\n */\n public getHiddenCategories(): Promise<Array<string>> {\n return this.getProperty<Array<string>>('hiddenCategories');\n }\n\n /**\n * Gets the value of <code>touchResponse</code> property.\n * Data visualizations require a press and hold delay before triggering tooltips and rollover effects on mobile devices to avoid interfering with page panning, but these hold delays can make applications seem slower and less responsive. For a better user experience, the application can remove the touch and hold delay when data visualizations are used within a non scrolling container or if there is sufficient space outside of the visualization for panning. If touchResponse is touchStart the element will instantly trigger the touch gesture and consume the page pan events. If touchResponse is auto, the element will behave like touchStart if it determines that it is not rendered within scrolling content and if element panning is not available for those elements that support the feature.\n * @return The value of <code>touchResponse</code> property.\n *\n */\n public getTouchResponse(): Promise<string> {\n return this.getProperty<string>('touchResponse');\n }\n\n /**\n * Gets the value of <code>highlightMatch</code> property.\n * The matching condition for the highlightedCategories option. By default, highlightMatch is 'all' and only items whose categories match all of the values specified in the highlightedCategories array will be highlighted. If highlightMatch is 'any', then items that match at least one of the highlightedCategories values will be highlighted.\n * @return The value of <code>highlightMatch</code> property.\n *\n */\n public getHighlightMatch(): Promise<string> {\n return this.getProperty<string>('highlightMatch');\n }\n\n /**\n * Sets the value of <code>highlightedCategories</code> property.\n * An array of categories that will be highlighted.\n * @param highlightedCategories The value to set for <code>highlightedCategories</code>\n *\n */\n public changeHighlightedCategories(highlightedCategories: Array<string>): Promise<void> {\n return this.setProperty<Array<string>>('highlightedCategories', highlightedCategories);\n }\n\n /**\n * Gets the value of <code>highlightedCategories</code> property.\n * An array of categories that will be highlighted.\n * @return The value of <code>highlightedCategories</code> property.\n *\n */\n public getHighlightedCategories(): Promise<Array<string>> {\n return this.getProperty<Array<string>>('highlightedCategories');\n }\n\n /**\n * Gets the value of <code>hoverBehavior</code> property.\n * Defines the behavior applied when hovering over data items.\n * @return The value of <code>hoverBehavior</code> property.\n *\n */\n public getHoverBehavior(): Promise<string> {\n return this.getProperty<string>('hoverBehavior');\n }\n\n /**\n * Gets the value of <code>layout</code> property.\n * The layout to use for tag display.\n * @return The value of <code>layout</code> property.\n *\n */\n public getLayout(): Promise<string> {\n return this.getProperty<string>('layout');\n }\n\n /**\n * Gets the value of <code>selectionMode</code> property.\n * Specifies the selection mode.\n * @return The value of <code>selectionMode</code> property.\n *\n */\n public getSelectionMode(): Promise<string> {\n return this.getProperty<string>('selectionMode');\n }\n\n /**\n * Sets the value of <code>selection</code> property.\n * An array containing the ids of the initially selected data items.\n * @param selection The value to set for <code>selection</code>\n *\n */\n public changeSelection(selection: Array<any>): Promise<void> {\n return this.setProperty<Array<any>>('selection', selection);\n }\n\n /**\n * Gets the value of <code>selection</code> property.\n * An array containing the ids of the initially selected data items.\n * @return The value of <code>selection</code> property.\n *\n */\n public getSelection(): Promise<Array<any>> {\n return this.getProperty<Array<any>>('selection');\n }\n}\n"]}
1
+ {"version":3,"file":"TagCloudWebElementBase.js","sourceRoot":"","sources":["TagCloudWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,sBAAuB,SAAQ,uBAAY;IACtD;;;;;OAKG;IACI,OAAO;QACZ,OAAO,IAAI,CAAC,WAAW,CAAO,MAAM,CAAC,CAAC;IACxC,CAAC;IAED;;;;;OAKG;IACI,UAAU;QACf,OAAO,IAAI,CAAC,WAAW,CAAO,SAAS,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;OAKG;IACI,sBAAsB,CAAC,gBAA+B;QAC3D,OAAO,IAAI,CAAC,WAAW,CAAgB,kBAAkB,EAAE,gBAAgB,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;OAKG;IACI,mBAAmB;QACxB,OAAO,IAAI,CAAC,WAAW,CAAgB,kBAAkB,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,iBAAiB;QACtB,OAAO,IAAI,CAAC,WAAW,CAAS,gBAAgB,CAAC,CAAC;IACpD,CAAC;IAED;;;;;OAKG;IACI,2BAA2B,CAAC,qBAAoC;QACrE,OAAO,IAAI,CAAC,WAAW,CAAgB,uBAAuB,EAAE,qBAAqB,CAAC,CAAC;IACzF,CAAC;IAED;;;;;OAKG;IACI,wBAAwB;QAC7B,OAAO,IAAI,CAAC,WAAW,CAAgB,uBAAuB,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,SAAS;QACd,OAAO,IAAI,CAAC,WAAW,CAAS,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,eAAe,CAAC,SAAqB;QAC1C,OAAO,IAAI,CAAC,WAAW,CAAa,WAAW,EAAE,SAAS,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;OAKG;IACI,YAAY;QACjB,OAAO,IAAI,CAAC,WAAW,CAAa,WAAW,CAAC,CAAC;IACnD,CAAC;CACF;AAlID,wDAkIC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-tag-cloud 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, TagCloudWebElement.ts.\n */\nexport class TagCloudWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>data</code> property.\n * Specifies the DataProvider for the sections and items of the tag-cloud\n * @return The value of <code>data</code> property.\n * @deprecated Since 17.1.0. Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead.\n */\n public getData(): Promise<null> {\n return this.getProperty<null>('data');\n }\n\n /**\n * Gets the value of <code>datatip</code> property.\n *\n * @return The value of <code>datatip</code> property.\n *\n */\n public getDatatip(): Promise<null> {\n return this.getProperty<null>('datatip');\n }\n\n /**\n * Sets the value of <code>hiddenCategories</code> property.\n * An array of categories that will be hidden.\n * @param hiddenCategories The value to set for <code>hiddenCategories</code>\n *\n */\n public changeHiddenCategories(hiddenCategories: Array<string>): Promise<void> {\n return this.setProperty<Array<string>>('hiddenCategories', hiddenCategories);\n }\n\n /**\n * Gets the value of <code>hiddenCategories</code> property.\n * An array of categories that will be hidden.\n * @return The value of <code>hiddenCategories</code> property.\n *\n */\n public getHiddenCategories(): Promise<Array<string>> {\n return this.getProperty<Array<string>>('hiddenCategories');\n }\n\n /**\n * Gets the value of <code>touchResponse</code> property.\n * Data visualizations require a press and hold delay before triggering tooltips and rollover effects on mobile devices to avoid interfering with page panning, but these hold delays can make applications seem slower and less responsive. For a better user experience, the application can remove the touch and hold delay when data visualizations are used within a non scrolling container or if there is sufficient space outside of the visualization for panning. If touchResponse is touchStart the element will instantly trigger the touch gesture and consume the page pan events. If touchResponse is auto, the element will behave like touchStart if it determines that it is not rendered within scrolling content and if element panning is not available for those elements that support the feature.\n * @return The value of <code>touchResponse</code> property.\n *\n */\n public getTouchResponse(): Promise<string> {\n return this.getProperty<string>('touchResponse');\n }\n\n /**\n * Gets the value of <code>highlightMatch</code> property.\n * The matching condition for the highlightedCategories option. By default, highlightMatch is 'all' and only items whose categories match all of the values specified in the highlightedCategories array will be highlighted. If highlightMatch is 'any', then items that match at least one of the highlightedCategories values will be highlighted.\n * @return The value of <code>highlightMatch</code> property.\n *\n */\n public getHighlightMatch(): Promise<string> {\n return this.getProperty<string>('highlightMatch');\n }\n\n /**\n * Sets the value of <code>highlightedCategories</code> property.\n * An array of categories that will be highlighted.\n * @param highlightedCategories The value to set for <code>highlightedCategories</code>\n *\n */\n public changeHighlightedCategories(highlightedCategories: Array<string>): Promise<void> {\n return this.setProperty<Array<string>>('highlightedCategories', highlightedCategories);\n }\n\n /**\n * Gets the value of <code>highlightedCategories</code> property.\n * An array of categories that will be highlighted.\n * @return The value of <code>highlightedCategories</code> property.\n *\n */\n public getHighlightedCategories(): Promise<Array<string>> {\n return this.getProperty<Array<string>>('highlightedCategories');\n }\n\n /**\n * Gets the value of <code>hoverBehavior</code> property.\n * Defines the behavior applied when hovering over data items.\n * @return The value of <code>hoverBehavior</code> property.\n *\n */\n public getHoverBehavior(): Promise<string> {\n return this.getProperty<string>('hoverBehavior');\n }\n\n /**\n * Gets the value of <code>layout</code> property.\n * The layout to use for tag display.\n * @return The value of <code>layout</code> property.\n *\n */\n public getLayout(): Promise<string> {\n return this.getProperty<string>('layout');\n }\n\n /**\n * Gets the value of <code>selectionMode</code> property.\n * Specifies the selection mode.\n * @return The value of <code>selectionMode</code> property.\n *\n */\n public getSelectionMode(): Promise<string> {\n return this.getProperty<string>('selectionMode');\n }\n\n /**\n * Sets the value of <code>selection</code> property.\n * An array containing the ids of the initially selected data items.\n * @param selection The value to set for <code>selection</code>\n *\n */\n public changeSelection(selection: Array<any>): Promise<void> {\n return this.setProperty<Array<any>>('selection', selection);\n }\n\n /**\n * Gets the value of <code>selection</code> property.\n * An array containing the ids of the initially selected data items.\n * @return The value of <code>selection</code> property.\n *\n */\n public getSelection(): Promise<Array<any>> {\n return this.getProperty<Array<any>>('selection');\n }\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tag-cloud",
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/TagCloudWebElement.html"
38
+ "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/TagCloudWebElement.html"
39
39
  }
40
40
  },
41
41
  "propertyLayout": [
@@ -61,6 +61,17 @@
61
61
  "description": "Specifies the DataProvider for the sections and items of the tag-cloud",
62
62
  "displayName": "Data",
63
63
  "help": "#data",
64
+ "extension": {
65
+ "webelement": {
66
+ "exceptionStatus": [
67
+ {
68
+ "type": "deprecated",
69
+ "since": "17.1.0",
70
+ "description": "Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead."
71
+ }
72
+ ]
73
+ }
74
+ },
64
75
  "value": null
65
76
  },
66
77
  "datatip": {
@@ -2,7 +2,10 @@ 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.TagCloud = void 0;
5
- function TagCloudComp({ hiddenCategories = [], data = null, highlightedCategories = [], hoverBehavior = 'none', layout = 'rectangular', selection = [], selectionMode = 'none', highlightMatch = 'all', ...props }) {
5
+ const HIGHLIGHTED_DEFAULT = [];
6
+ const SELECTION_DEFAULT = [];
7
+ const HIDDEN_DEFAULT = [];
8
+ function TagCloudComp({ hiddenCategories = HIDDEN_DEFAULT, data = null, highlightedCategories = HIGHLIGHTED_DEFAULT, hoverBehavior = 'none', layout = 'rectangular', selection = SELECTION_DEFAULT, selectionMode = 'none', highlightMatch = 'all', ...props }) {
6
9
  const rootRef = (0, hooks_1.useRef)(null);
7
10
  const addBusyState = (0, useVisBusyState_1.useVisBusyState)(rootRef, 'oj-c-tag-cloud');
8
11
  const { data: compData } = (0, useDataProvider_1.useDataProvider)({
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tag-cloud-item",
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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "text-area",
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-text-input-area"
27
27
  },
28
28
  "webelement": {
29
- "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1700/cpwdtsdoc/classes/TextAreaWebElement.html"
29
+ "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/TextAreaWebElement.html"
30
30
  }
31
31
  },
32
32
  "since": "13.0.0",
@@ -1,4 +1,4 @@
1
- define(["require", "exports", "oj-c/hooks/UNSAFE_useEditableValue/index", "oj-c/editable-value/UNSAFE_useDeferredValidators/useDeferredValidators"], function (require, exports, index_1, useDeferredValidators_1) {
1
+ define(["require", "exports", "oj-c/hooks/UNSAFE_useEditableValue/index", "oj-c/editable-value/utils/utils", "oj-c/editable-value/UNSAFE_useDeferredValidators/useDeferredValidators"], function (require, exports, index_1, utils_1, useDeferredValidators_1) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.useTextAreaAutosizePreact = void 0;
@@ -18,7 +18,7 @@ define(["require", "exports", "oj-c/hooks/UNSAFE_useEditableValue/index", "oj-c/
18
18
  displayOptions,
19
19
  messagesCustom,
20
20
  readonly,
21
- validators: validators === null ? undefined : validators,
21
+ validators: (0, utils_1.treatNull)(validators, undefined),
22
22
  value: propValue,
23
23
  onMessagesCustomChanged,
24
24
  onRawValueChanged,
@@ -1,4 +1,4 @@
1
- define(["require", "exports", "oj-c/hooks/UNSAFE_useEditableValue/index", "oj-c/editable-value/UNSAFE_useDeferredValidators/useDeferredValidators"], function (require, exports, index_1, useDeferredValidators_1) {
1
+ define(["require", "exports", "oj-c/hooks/UNSAFE_useEditableValue/index", "oj-c/editable-value/utils/utils", "oj-c/editable-value/UNSAFE_useDeferredValidators/useDeferredValidators"], function (require, exports, index_1, utils_1, useDeferredValidators_1) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.useTextAreaPreact = void 0;
@@ -18,7 +18,7 @@ define(["require", "exports", "oj-c/hooks/UNSAFE_useEditableValue/index", "oj-c/
18
18
  displayOptions,
19
19
  messagesCustom,
20
20
  readonly,
21
- validators: validators === null ? undefined : validators,
21
+ validators: (0, utils_1.treatNull)(validators, undefined),
22
22
  value: propValue,
23
23
  onMessagesCustomChanged,
24
24
  onRawValueChanged,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "toggle-button",
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",
@@ -27,7 +27,7 @@
27
27
  ]
28
28
  },
29
29
  "webelement": {
30
- "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1700/cpwdtsdoc/classes/ToggleButtonWebElement.html"
30
+ "docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/ToggleButtonWebElement.html"
31
31
  }
32
32
  },
33
33
  "propertyLayout": [
@@ -0,0 +1,36 @@
1
+ import { ComponentChildren } from 'preact';
2
+ import { ComponentMessageItem } from '@oracle/oraclejet-preact/UNSAFE_ComponentMessage';
3
+ import type { Size } from '@oracle/oraclejet-preact/utils/UNSAFE_size';
4
+ import { type ValidState } from 'oj-c/hooks/UNSAFE_useEditableValue/index';
5
+ import type { ValueUpdateDetail } from '@oracle/oraclejet-preact/utils/UNSAFE_valueUpdateDetail';
6
+ import Validator = require('ojs/ojvalidator');
7
+ type ContentRendererContext<V> = {
8
+ isReadonly: boolean;
9
+ labelId: string;
10
+ userAssistanceId: string;
11
+ onCommit: (detail: ValueUpdateDetail<V | undefined>) => Promise<boolean>;
12
+ showMessages: () => void;
13
+ validate: () => Promise<'valid' | 'invalid'>;
14
+ };
15
+ type FormControlWrapperProps<V> = {
16
+ children: (rendererContext: ContentRendererContext<V>) => ComponentChildren;
17
+ containerReadonly?: boolean;
18
+ deferredValidators?: Validator<V>[];
19
+ disabled?: boolean;
20
+ labelHint: string;
21
+ labelEdge?: 'start' | 'top' | 'inside';
22
+ labelStartWidth?: Size;
23
+ labelWrapping?: 'truncate' | 'wrap';
24
+ messagesCustom?: ComponentMessageItem[];
25
+ readonly?: boolean;
26
+ required?: boolean;
27
+ userAssistanceDensity?: 'reflow' | 'efficient' | 'compact';
28
+ value?: V;
29
+ onLabelClick?: (e: MouseEvent) => void;
30
+ onMessagesCustomChanged?: (messagesCustom: ComponentMessageItem[] | undefined) => void;
31
+ onValidChanged?: (valid: ValidState) => void;
32
+ onValueChanged?: (value: V | undefined) => void;
33
+ };
34
+ declare function FormControlWrapper<V>({ children, containerReadonly: propContainerReadonly, deferredValidators, disabled, labelHint, labelEdge: propLabelEdge, labelStartWidth: propLabelStartWidth, labelWrapping: propLabelWrapping, messagesCustom, onLabelClick, onMessagesCustomChanged, onValidChanged, onValueChanged, readonly: propReadonly, required, userAssistanceDensity: propUserAssistanceDensity, value: propValue }: FormControlWrapperProps<V>): import("preact").JSX.Element;
35
+ export type { ContentRendererContext, FormControlWrapperProps, ValidState };
36
+ export { FormControlWrapper };
@@ -0,0 +1,2 @@
1
+ export { FormControlWrapper } from './FormControlWrapper';
2
+ export type { ContentRendererContext, FormControlWrapperProps, ValidState } from './FormControlWrapper';