@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,166 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TableWebElement = void 0;
4
+ var TableWebElementBase_1 = require("./TableWebElementBase");
5
+ var selenium_webdriver_1 = require("selenium-webdriver");
6
+ var oraclejet_webdriver_1 = require("@oracle/oraclejet-webdriver");
7
+ var oj_module_proxy_1 = require("@oracle/oraclejet-webdriver/lib/oj-module-proxy");
8
+ /**
9
+ * The component WebElement for [oj-c-table](../../../oj-c/docs/oj.Table.html).
10
+ * Do not instantiate this class directly, instead, use
11
+ * [findTable](../functions/findTable.html).
12
+ */
13
+ class TableWebElement extends TableWebElementBase_1.TableWebElementBase {
14
+ // Put overrides here
15
+ /**
16
+ * Sets the value of "selected" property.
17
+ * If row/column are both unspecified selected for both will be empty.
18
+ * If no object is set on row/column, selected for that axis will be empty.
19
+ * If 'all' is unset for row/column object only 'keys' will be considered, if no 'keys' are specified selected for that axis will be empty.
20
+ * See the Help documentation for more information.
21
+ * @param selected The value to set for "selected"
22
+ * @typeparam K Type of keys
23
+ */
24
+ async changeSelected(selected) {
25
+ await this.whenReady();
26
+ return (0, oj_module_proxy_1.executeWithModules)(this.getDriver(), ['KeySet'], [this, selected], ` ({ KeySetImpl, AllKeySetImpl }, ele, selected) => {
27
+ ele.selected = {
28
+ row: selected.row?.all
29
+ ? new AllKeySetImpl().delete(selected.row.deletedKeys)
30
+ : new KeySetImpl(selected.row?.keys),
31
+ column: selected.column?.all
32
+ ? new AllKeySetImpl().delete(selected.column.deletedKeys)
33
+ : new KeySetImpl(selected.column?.keys)
34
+ };
35
+ }`);
36
+ }
37
+ /**
38
+ * Gets the value of "selected" property.
39
+ * @typeparam K Type of keys
40
+ * @return The value of "selected" property.
41
+ */
42
+ async getSelected() {
43
+ await this.whenReady();
44
+ const selected = await this.getDriver().executeScript((ele) => {
45
+ const row = ele.selected.row.keys.all
46
+ ? { all: true, deletedKeys: Array.from(ele.selected.row.keys.deletedKeys) }
47
+ : { all: false, keys: Array.from(ele.selected.row.keys.keys) };
48
+ const column = ele.selected.column.keys.all
49
+ ? { all: true, deletedKeys: Array.from(ele.selected.column.keys.deletedKeys) }
50
+ : { all: false, keys: Array.from(ele.selected.column.keys.keys) };
51
+ return { row, column };
52
+ }, this);
53
+ return selected;
54
+ }
55
+ /**
56
+ * Set a given row active. Triggers a ojRowAction Event.
57
+ * @param itemLocator.rowKey The rowKey associated with the row.
58
+ */
59
+ async doRowAction(itemLocator) {
60
+ await this.whenReady();
61
+ try {
62
+ const row = await this.findElement(selenium_webdriver_1.By.css(`[data-oj-key="${itemLocator.rowKey}"]`));
63
+ await row?.click();
64
+ }
65
+ catch (e) {
66
+ throw new selenium_webdriver_1.error.NoSuchElementError(`Row with specified key cannot be found`);
67
+ }
68
+ }
69
+ /**
70
+ * Retrieve a SlotProxy which represents a cell.
71
+ * Cell content is only retrievable if there is a cell template for the cell.
72
+ * Throws if there is no matching cell or if there is not cell template for the cell.
73
+ *
74
+ * @param itemLocator.rowKey The rowKey associated with the cell
75
+ * @param itemLocator.columnKey The columnKey associated with the cell
76
+ */
77
+ async findCell(itemLocator) {
78
+ await this.whenReady();
79
+ const el = await this.getDriver().executeScript((element, columnKey, rowKey) => {
80
+ const column = element.columns[columnKey];
81
+ const hasDefaultCellTemplate = element.firstElementChild.getAttribute('data-oj-ct');
82
+ if (column['template'] == null && !hasDefaultCellTemplate) {
83
+ return null;
84
+ }
85
+ const row = element.querySelector(`[data-oj-key="${rowKey}"]`);
86
+ if (row) {
87
+ return row.querySelector(`[data-oj-column-key="${columnKey}"]`);
88
+ }
89
+ return null;
90
+ }, this, itemLocator.columnKey, itemLocator.rowKey);
91
+ if (el) {
92
+ return (0, oraclejet_webdriver_1.slotProxy)(el, this);
93
+ }
94
+ else {
95
+ throw Error(`No corresponding item found for the itemLocator`);
96
+ }
97
+ }
98
+ /**
99
+ * Retrieve a SlotProxy which represents a header cell.
100
+ * Header content is only retrievable if there is a header template for the cell.
101
+ * Throws if there is no matching header or if there is not header template for the cell.
102
+ *
103
+ * @param itemLocator.columnKey The columnKey associated with the header cell
104
+ */
105
+ async findHeader(itemLocator) {
106
+ await this.whenReady();
107
+ const el = await this.getDriver().executeScript((element, columnKey) => {
108
+ const column = element.columns[columnKey];
109
+ const hasDefaultHeaderTemplate = element.firstElementChild.getAttribute('data-oj-ht');
110
+ if (column['headerTemplate'] == null && !hasDefaultHeaderTemplate) {
111
+ return null;
112
+ }
113
+ return element.querySelector(`[data-oj-cell-type="header"][data-oj-column-key="${columnKey}"]`);
114
+ }, this, itemLocator.columnKey);
115
+ if (el) {
116
+ return (0, oraclejet_webdriver_1.slotProxy)(el, this);
117
+ }
118
+ else {
119
+ throw Error(`No corresponding item found for the itemLocator`);
120
+ }
121
+ }
122
+ /**
123
+ * Retrieve a SlotProxy which represents a footer cell.
124
+ * Footer content is only retrievable if there is a footer template for the cell.
125
+ * Throws if there is no matching footer or if there is not footer template for the cell.
126
+ *
127
+ * @param itemLocator.columnKey The columnKey associated with the footer cell
128
+ */
129
+ async findFooter(itemLocator) {
130
+ await this.whenReady();
131
+ const el = await this.getDriver().executeScript((element, columnKey) => {
132
+ const column = element.columns[columnKey];
133
+ const hasDefaultFooterTemplate = element.firstElementChild.getAttribute('data-oj-ft');
134
+ if (column['footerTemplate'] == null && !hasDefaultFooterTemplate) {
135
+ return null;
136
+ }
137
+ return element.querySelector(`[data-oj-cell-type="footer"][data-oj-column-key="${columnKey}"]`);
138
+ }, this, itemLocator.columnKey);
139
+ if (el) {
140
+ return (0, oraclejet_webdriver_1.slotProxy)(el, this);
141
+ }
142
+ else {
143
+ throw Error(`No corresponding item found for the itemLocator`);
144
+ }
145
+ }
146
+ /**
147
+ * Retrieve a SlotProxy which represents no data content.
148
+ */
149
+ async findNoData() {
150
+ await this.whenReady();
151
+ const el = await this.getDriver().executeScript((element) => {
152
+ if (!element.firstElementChild.getAttribute('data-oj-ndt')) {
153
+ return null;
154
+ }
155
+ return element.querySelector('[data-oj-cell-type="noData"]');
156
+ }, this);
157
+ if (el) {
158
+ return (0, oraclejet_webdriver_1.slotProxy)(el, this);
159
+ }
160
+ else {
161
+ throw Error(`No corresponding item found for the itemLocator`);
162
+ }
163
+ }
164
+ }
165
+ exports.TableWebElement = TableWebElement;
166
+ //# sourceMappingURL=TableWebElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableWebElement.js","sourceRoot":"","sources":["TableWebElement.ts"],"names":[],"mappings":";;;AAAA,6DAA4D;AAC5D,yDAA2D;AAC3D,mEAAmE;AACnE,mFAAqF;AAErF;;;;GAIG;AACH,MAAa,eAAgB,SAAQ,yCAAmB;IACtD,qBAAqB;IACrB;;;;;;;;OAQG;IACH,KAAK,CAAC,cAAc,CAAO,QAO1B;QACC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QACvB,OAAO,IAAA,oCAAkB,EACvB,IAAI,CAAC,SAAS,EAAE,EAChB,CAAC,QAAQ,CAAC,EACV,CAAC,IAAI,EAAE,QAAQ,CAAC,EAChB;;;;;;;;;QASE,CACH,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,WAAW;QAQf,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QACvB,MAAM,QAAQ,GAOV,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,aAAa,CAAC,CAAC,GAAQ,EAAE,EAAE;YACpD,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;YACP,OAAO,IAAA,+BAAS,EAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAC7B,CAAC;aAAM,CAAC;YACN,MAAM,KAAK,CAAC,iDAAiD,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU;QACd,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QACvB,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,aAAa,CAAoB,CAAC,OAAY,EAAE,EAAE;YAClF,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAC;gBAC3D,OAAO,IAAI,CAAC;YACd,CAAC;YACD,OAAO,OAAO,CAAC,aAAa,CAAC,8BAA8B,CAAC,CAAC;QAC/D,CAAC,EAAE,IAAI,CAAC,CAAC;QACT,IAAI,EAAE,EAAE,CAAC;YACP,OAAO,IAAA,+BAAS,EAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAC7B,CAAC;aAAM,CAAC;YACN,MAAM,KAAK,CAAC,iDAAiD,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;CACF;AAtMD,0CAsMC","sourcesContent":["import { TableWebElementBase } from './TableWebElementBase';\nimport { By, error, WebElement } from 'selenium-webdriver';\nimport { SlotProxy, slotProxy } from '@oracle/oraclejet-webdriver';\nimport { executeWithModules } from '@oracle/oraclejet-webdriver/lib/oj-module-proxy';\n\n/**\n * The component WebElement for [oj-c-table](../../../oj-c/docs/oj.Table.html).\n * Do not instantiate this class directly, instead, use\n * [findTable](../functions/findTable.html).\n */\nexport class TableWebElement extends TableWebElementBase {\n // Put overrides here\n /**\n * Sets the value of \"selected\" property.\n * If row/column are both unspecified selected for both will be empty.\n * If no object is set on row/column, selected for that axis will be empty.\n * If 'all' is unset for row/column object only 'keys' will be considered, if no 'keys' are specified selected for that axis will be empty.\n * See the Help documentation for more information.\n * @param selected The value to set for \"selected\"\n * @typeparam K Type of keys\n */\n async changeSelected<K, C>(selected: {\n row:\n | { all: true; keys?: never; deletedKeys: Array<K> }\n | { all: false; keys: Array<K>; deletedKeys?: never };\n column:\n | { all: true; keys?: never; deletedKeys: Array<C> }\n | { all: false; keys: Array<C>; deletedKeys?: never };\n }) {\n await this.whenReady();\n return executeWithModules<void>(\n this.getDriver(),\n ['KeySet'],\n [this, selected],\n ` ({ KeySetImpl, AllKeySetImpl }, ele, selected) => {\n ele.selected = {\n row: selected.row?.all\n ? new AllKeySetImpl().delete(selected.row.deletedKeys)\n : new KeySetImpl(selected.row?.keys),\n column: selected.column?.all\n ? new AllKeySetImpl().delete(selected.column.deletedKeys)\n : new KeySetImpl(selected.column?.keys)\n };\n }`\n );\n }\n\n /**\n * Gets the value of \"selected\" property.\n * @typeparam K Type of keys\n * @return The value of \"selected\" property.\n */\n async getSelected<K, C>(): Promise<{\n row:\n | { all: true; keys?: never; deletedKeys: Array<K> }\n | { all: false; keys: Array<K>; deletedKeys?: never };\n column:\n | { all: true; keys?: never; deletedKeys: Array<C> }\n | { all: false; keys: Array<C>; deletedKeys?: never };\n }> {\n await this.whenReady();\n const selected: {\n row:\n | { all: true; keys?: never; deletedKeys: Array<K> }\n | { all: false; keys: Array<K>; deletedKeys?: never };\n column:\n | { all: true; keys?: never; deletedKeys: Array<C> }\n | { all: false; keys: Array<C>; deletedKeys?: never };\n } = await this.getDriver().executeScript((ele: any) => {\n const row = ele.selected.row.keys.all\n ? { all: true, deletedKeys: Array.from(ele.selected.row.keys.deletedKeys) }\n : { all: false, keys: Array.from(ele.selected.row.keys.keys) };\n const column = ele.selected.column.keys.all\n ? { all: true, deletedKeys: Array.from(ele.selected.column.keys.deletedKeys) }\n : { all: false, keys: Array.from(ele.selected.column.keys.keys) };\n return { row, column };\n }, this);\n return selected;\n }\n\n /**\n * Set a given row active. Triggers a ojRowAction Event.\n * @param itemLocator.rowKey The rowKey associated with the row.\n */\n async doRowAction<K>(itemLocator: { rowKey: K }): Promise<void> {\n await this.whenReady();\n try {\n const row = await this.findElement(By.css(`[data-oj-key=\"${itemLocator.rowKey}\"]`));\n await row?.click();\n } catch (e) {\n throw new error.NoSuchElementError(`Row with specified key cannot be found`);\n }\n }\n\n /**\n * Retrieve a SlotProxy which represents a cell.\n * Cell content is only retrievable if there is a cell template for the cell.\n * Throws if there is no matching cell or if there is not cell template for the cell.\n *\n * @param itemLocator.rowKey The rowKey associated with the cell\n * @param itemLocator.columnKey The columnKey associated with the cell\n */\n async findCell<K, C>(itemLocator: { rowKey: K; columnKey: C }): Promise<SlotProxy> {\n await this.whenReady();\n const el = await this.getDriver().executeScript<WebElement | null>(\n (element: any, columnKey: C, rowKey: K) => {\n const column = element.columns[columnKey];\n const hasDefaultCellTemplate = element.firstElementChild.getAttribute('data-oj-ct');\n if (column['template'] == null && !hasDefaultCellTemplate) {\n return null;\n }\n const row = element.querySelector(`[data-oj-key=\"${rowKey}\"]`);\n if (row) {\n return row.querySelector(`[data-oj-column-key=\"${columnKey}\"]`);\n }\n return null;\n },\n this,\n itemLocator.columnKey,\n itemLocator.rowKey\n );\n\n if (el) {\n return slotProxy(el, this);\n } else {\n throw Error(`No corresponding item found for the itemLocator`);\n }\n }\n\n /**\n * Retrieve a SlotProxy which represents a header cell.\n * Header content is only retrievable if there is a header template for the cell.\n * Throws if there is no matching header or if there is not header template for the cell.\n *\n * @param itemLocator.columnKey The columnKey associated with the header cell\n */\n async findHeader<C>(itemLocator: { columnKey: C }): Promise<SlotProxy> {\n await this.whenReady();\n const el = await this.getDriver().executeScript<WebElement | null>(\n (element: any, columnKey: C) => {\n const column = element.columns[columnKey];\n const hasDefaultHeaderTemplate = element.firstElementChild.getAttribute('data-oj-ht');\n if (column['headerTemplate'] == null && !hasDefaultHeaderTemplate) {\n return null;\n }\n return element.querySelector(\n `[data-oj-cell-type=\"header\"][data-oj-column-key=\"${columnKey}\"]`\n );\n },\n this,\n itemLocator.columnKey\n );\n\n if (el) {\n return slotProxy(el, this);\n } else {\n throw Error(`No corresponding item found for the itemLocator`);\n }\n }\n\n /**\n * Retrieve a SlotProxy which represents a footer cell.\n * Footer content is only retrievable if there is a footer template for the cell.\n * Throws if there is no matching footer or if there is not footer template for the cell.\n *\n * @param itemLocator.columnKey The columnKey associated with the footer cell\n */\n async findFooter<C>(itemLocator: { columnKey: C }): Promise<SlotProxy> {\n await this.whenReady();\n const el = await this.getDriver().executeScript<WebElement | null>(\n (element: any, columnKey: C) => {\n const column = element.columns[columnKey];\n const hasDefaultFooterTemplate = element.firstElementChild.getAttribute('data-oj-ft');\n if (column['footerTemplate'] == null && !hasDefaultFooterTemplate) {\n return null;\n }\n return element.querySelector(\n `[data-oj-cell-type=\"footer\"][data-oj-column-key=\"${columnKey}\"]`\n );\n },\n this,\n itemLocator.columnKey\n );\n\n if (el) {\n return slotProxy(el, this);\n } else {\n throw Error(`No corresponding item found for the itemLocator`);\n }\n }\n\n /**\n * Retrieve a SlotProxy which represents no data content.\n */\n async findNoData(): Promise<SlotProxy> {\n await this.whenReady();\n const el = await this.getDriver().executeScript<WebElement | null>((element: any) => {\n if (!element.firstElementChild.getAttribute('data-oj-ndt')) {\n return null;\n }\n return element.querySelector('[data-oj-cell-type=\"noData\"]');\n }, this);\n if (el) {\n return slotProxy(el, this);\n } else {\n throw Error(`No corresponding item found for the itemLocator`);\n }\n }\n}\n"]}
@@ -0,0 +1,153 @@
1
+ import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';
2
+ /**
3
+ * This is the base class for oj-c-table WebElement, and is generated from the
4
+ * component's metadata. Do not modify these contents since they'll be replaced
5
+ * during the next generation.
6
+ * Put overrides into the WebElements's subclass, TableWebElement.ts.
7
+ */
8
+ export declare class TableWebElementBase extends OjWebElement {
9
+ /**
10
+ * Gets the value of <code>layout</code> property.
11
+ * The column sizing method used for the Table's columns.
12
+ * @return The value of <code>layout</code> property.
13
+ *
14
+ */
15
+ getLayout(): Promise<string>;
16
+ /**
17
+ * Gets the value of <code>columns</code> property.
18
+ * The set of columns that can be displayed in the Table.
19
+ * @return The value of <code>columns</code> property.
20
+ *
21
+ */
22
+ getColumns(): Promise<object>;
23
+ /**
24
+ * Gets the value of <code>row</code> property.
25
+ * A subset of attributes for controlling certain behaviors on a per row basis.
26
+ * @return The value of <code>row</code> property.
27
+ *
28
+ */
29
+ getRow(): Promise<Row>;
30
+ /**
31
+ * Gets the value of <code>horizontalGridVisible</code> property.
32
+ * Controls the display of the Table's horizontal gridlines.
33
+ * @return The value of <code>horizontalGridVisible</code> property.
34
+ *
35
+ */
36
+ getHorizontalGridVisible(): Promise<string>;
37
+ /**
38
+ * Gets the value of <code>verticalGridVisible</code> property.
39
+ * Controls the display of the Table's vertical gridlines.
40
+ * @return The value of <code>verticalGridVisible</code> property.
41
+ *
42
+ */
43
+ getVerticalGridVisible(): Promise<string>;
44
+ /**
45
+ * Sets the value of <code>selected</code> property.
46
+ * The selected rows and/or columns. See the Help documentation for more information.
47
+ * @param selected The value to set for <code>selected</code>
48
+ *
49
+ */
50
+ changeSelected(selected: Selected): Promise<void>;
51
+ /**
52
+ * Gets the value of <code>selected</code> property.
53
+ * The selected rows and/or columns. See the Help documentation for more information.
54
+ * @return The value of <code>selected</code> property.
55
+ *
56
+ */
57
+ getSelected(): Promise<Selected>;
58
+ /**
59
+ * Gets the value of <code>selectionMode</code> property.
60
+ * Specifies whether row and/or column selection gestures are enabled on the Table, and the cardinality of each (single/multiple/none).
61
+ * @return The value of <code>selectionMode</code> property.
62
+ *
63
+ */
64
+ getSelectionMode(): Promise<SelectionMode>;
65
+ /**
66
+ * Gets the value of <code>selectAllControl</code> property.
67
+ * Controls the display of the Table's select all control when multiple row selection is enabled.
68
+ * @return The value of <code>selectAllControl</code> property.
69
+ *
70
+ */
71
+ getSelectAllControl(): Promise<string>;
72
+ /**
73
+ * Sets the value of <code>columnOrder</code> property.
74
+ * Display and order of columns. See the Help documentation for more information.
75
+ * @param columnOrder The value to set for <code>columnOrder</code>
76
+ *
77
+ */
78
+ changeColumnOrder(columnOrder: Array<string>): Promise<void>;
79
+ /**
80
+ * Gets the value of <code>columnOrder</code> property.
81
+ * Display and order of columns. See the Help documentation for more information.
82
+ * @return The value of <code>columnOrder</code> property.
83
+ *
84
+ */
85
+ getColumnOrder(): Promise<Array<string>>;
86
+ /**
87
+ * Gets the value of <code>currentCellOverride</code> property.
88
+ * The cell override to apply to the current cell of the Table. In order for this property to be honored, a new object instance must be set.
89
+ * @return The value of <code>currentCellOverride</code> property.
90
+ *
91
+ */
92
+ getCurrentCellOverride(): Promise<object>;
93
+ /**
94
+ * Gets the value of <code>currentCell</code> property.
95
+ * The cell currently being used as the target for keyboard gestures made on the Table.
96
+ * @return The value of <code>currentCell</code> property.
97
+ *
98
+ */
99
+ getCurrentCell(): Promise<object>;
100
+ /**
101
+ * Sets the value of <code>columnWidths</code> property.
102
+ * The desired widths of table columns. A record mapping column keys to numbers representing pixel widths for each column.
103
+ * @param columnWidths The value to set for <code>columnWidths</code>
104
+ *
105
+ */
106
+ changeColumnWidths(columnWidths: object): Promise<void>;
107
+ /**
108
+ * Gets the value of <code>columnWidths</code> property.
109
+ * The desired widths of table columns. A record mapping column keys to numbers representing pixel widths for each column.
110
+ * @return The value of <code>columnWidths</code> property.
111
+ *
112
+ */
113
+ getColumnWidths(): Promise<object>;
114
+ /**
115
+ * Gets the value of <code>scrollPolicyOptions</code> property.
116
+ * Options related to the Table's fetching and scrolling behaviors.
117
+ * @return The value of <code>scrollPolicyOptions</code> property.
118
+ *
119
+ */
120
+ getScrollPolicyOptions(): Promise<ScrollPolicyOptions>;
121
+ }
122
+ export interface Row {
123
+ /**
124
+ * The column key(s) to be used as the accessible row header(s) for assistive technologies. See the Help documentation for more information.
125
+ */
126
+ accessibleRowHeader: any;
127
+ }
128
+ export interface Selected {
129
+ /**
130
+ * The selected columns. See the Help documentation for more information.
131
+ */
132
+ column: object;
133
+ /**
134
+ * The selected rows. See the Help documentation for more information.
135
+ */
136
+ row: object;
137
+ }
138
+ export interface SelectionMode {
139
+ /**
140
+ * Specifies whether column selection gestures are enabled on the Table.
141
+ */
142
+ column: string;
143
+ /**
144
+ * Specifies whether row selection gestures are enabled on the Table.
145
+ */
146
+ row: string;
147
+ }
148
+ export interface ScrollPolicyOptions {
149
+ /**
150
+ * The number of records the Table will request during each data fetch.
151
+ */
152
+ fetchSize: number;
153
+ }
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TableWebElementBase = void 0;
4
+ var elements_1 = require("@oracle/oraclejet-webdriver/elements");
5
+ /**
6
+ * This is the base class for oj-c-table WebElement, and is generated from the
7
+ * component's metadata. Do not modify these contents since they'll be replaced
8
+ * during the next generation.
9
+ * Put overrides into the WebElements's subclass, TableWebElement.ts.
10
+ */
11
+ class TableWebElementBase extends elements_1.OjWebElement {
12
+ /**
13
+ * Gets the value of <code>layout</code> property.
14
+ * The column sizing method used for the Table's columns.
15
+ * @return The value of <code>layout</code> property.
16
+ *
17
+ */
18
+ getLayout() {
19
+ return this.getProperty('layout');
20
+ }
21
+ /**
22
+ * Gets the value of <code>columns</code> property.
23
+ * The set of columns that can be displayed in the Table.
24
+ * @return The value of <code>columns</code> property.
25
+ *
26
+ */
27
+ getColumns() {
28
+ return this.getProperty('columns');
29
+ }
30
+ /**
31
+ * Gets the value of <code>row</code> property.
32
+ * A subset of attributes for controlling certain behaviors on a per row basis.
33
+ * @return The value of <code>row</code> property.
34
+ *
35
+ */
36
+ getRow() {
37
+ return this.getProperty('row');
38
+ }
39
+ /**
40
+ * Gets the value of <code>horizontalGridVisible</code> property.
41
+ * Controls the display of the Table's horizontal gridlines.
42
+ * @return The value of <code>horizontalGridVisible</code> property.
43
+ *
44
+ */
45
+ getHorizontalGridVisible() {
46
+ return this.getProperty('horizontalGridVisible');
47
+ }
48
+ /**
49
+ * Gets the value of <code>verticalGridVisible</code> property.
50
+ * Controls the display of the Table's vertical gridlines.
51
+ * @return The value of <code>verticalGridVisible</code> property.
52
+ *
53
+ */
54
+ getVerticalGridVisible() {
55
+ return this.getProperty('verticalGridVisible');
56
+ }
57
+ /**
58
+ * Sets the value of <code>selected</code> property.
59
+ * The selected rows and/or columns. See the Help documentation for more information.
60
+ * @param selected The value to set for <code>selected</code>
61
+ *
62
+ */
63
+ changeSelected(selected) {
64
+ return this.setProperty('selected', selected);
65
+ }
66
+ /**
67
+ * Gets the value of <code>selected</code> property.
68
+ * The selected rows and/or columns. See the Help documentation for more information.
69
+ * @return The value of <code>selected</code> property.
70
+ *
71
+ */
72
+ getSelected() {
73
+ return this.getProperty('selected');
74
+ }
75
+ /**
76
+ * Gets the value of <code>selectionMode</code> property.
77
+ * Specifies whether row and/or column selection gestures are enabled on the Table, and the cardinality of each (single/multiple/none).
78
+ * @return The value of <code>selectionMode</code> property.
79
+ *
80
+ */
81
+ getSelectionMode() {
82
+ return this.getProperty('selectionMode');
83
+ }
84
+ /**
85
+ * Gets the value of <code>selectAllControl</code> property.
86
+ * Controls the display of the Table's select all control when multiple row selection is enabled.
87
+ * @return The value of <code>selectAllControl</code> property.
88
+ *
89
+ */
90
+ getSelectAllControl() {
91
+ return this.getProperty('selectAllControl');
92
+ }
93
+ /**
94
+ * Sets the value of <code>columnOrder</code> property.
95
+ * Display and order of columns. See the Help documentation for more information.
96
+ * @param columnOrder The value to set for <code>columnOrder</code>
97
+ *
98
+ */
99
+ changeColumnOrder(columnOrder) {
100
+ return this.setProperty('columnOrder', columnOrder);
101
+ }
102
+ /**
103
+ * Gets the value of <code>columnOrder</code> property.
104
+ * Display and order of columns. See the Help documentation for more information.
105
+ * @return The value of <code>columnOrder</code> property.
106
+ *
107
+ */
108
+ getColumnOrder() {
109
+ return this.getProperty('columnOrder');
110
+ }
111
+ /**
112
+ * Gets the value of <code>currentCellOverride</code> property.
113
+ * The cell override to apply to the current cell of the Table. In order for this property to be honored, a new object instance must be set.
114
+ * @return The value of <code>currentCellOverride</code> property.
115
+ *
116
+ */
117
+ getCurrentCellOverride() {
118
+ return this.getProperty('currentCellOverride');
119
+ }
120
+ /**
121
+ * Gets the value of <code>currentCell</code> property.
122
+ * The cell currently being used as the target for keyboard gestures made on the Table.
123
+ * @return The value of <code>currentCell</code> property.
124
+ *
125
+ */
126
+ getCurrentCell() {
127
+ return this.getProperty('currentCell');
128
+ }
129
+ /**
130
+ * Sets the value of <code>columnWidths</code> property.
131
+ * The desired widths of table columns. A record mapping column keys to numbers representing pixel widths for each column.
132
+ * @param columnWidths The value to set for <code>columnWidths</code>
133
+ *
134
+ */
135
+ changeColumnWidths(columnWidths) {
136
+ return this.setProperty('columnWidths', columnWidths);
137
+ }
138
+ /**
139
+ * Gets the value of <code>columnWidths</code> property.
140
+ * The desired widths of table columns. A record mapping column keys to numbers representing pixel widths for each column.
141
+ * @return The value of <code>columnWidths</code> property.
142
+ *
143
+ */
144
+ getColumnWidths() {
145
+ return this.getProperty('columnWidths');
146
+ }
147
+ /**
148
+ * Gets the value of <code>scrollPolicyOptions</code> property.
149
+ * Options related to the Table's fetching and scrolling behaviors.
150
+ * @return The value of <code>scrollPolicyOptions</code> property.
151
+ *
152
+ */
153
+ getScrollPolicyOptions() {
154
+ return this.getProperty('scrollPolicyOptions');
155
+ }
156
+ }
157
+ exports.TableWebElementBase = TableWebElementBase;
158
+ //# sourceMappingURL=TableWebElementBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableWebElementBase.js","sourceRoot":"","sources":["TableWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,mBAAoB,SAAQ,uBAAY;IACnD;;;;;OAKG;IACI,SAAS;QACd,OAAO,IAAI,CAAC,WAAW,CAAS,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACI,UAAU;QACf,OAAO,IAAI,CAAC,WAAW,CAAS,SAAS,CAAC,CAAC;IAC7C,CAAC;IAED;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAM,KAAK,CAAC,CAAC;IACtC,CA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AED;;;;;OAKG;IACI,sBAAsB;QAC3B,OAAO,IAAI,CAAC,WAAW,CAAsB,qBAAqB,CAAC,CAAC;IACtE,CAAC;CACF;AAhKD,kDAgKC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-table 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, TableWebElement.ts.\n */\nexport class TableWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>layout</code> property.\n * The column sizing method used for the Table's columns.\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>columns</code> property.\n * The set of columns that can be displayed in the Table.\n * @return The value of <code>columns</code> property.\n *\n */\n public getColumns(): Promise<object> {\n return this.getProperty<object>('columns');\n }\n\n /**\n * Gets the value of <code>row</code> property.\n * A subset of attributes for controlling certain behaviors on a per row basis.\n * @return The value of <code>row</code> property.\n *\n */\n public getRow(): Promise<Row> {\n return this.getProperty<Row>('row');\n }\n\n /**\n * Gets the value of <code>horizontalGridVisible</code> property.\n * Controls the display of the Table's horizontal gridlines.\n * @return The value of <code>horizontalGridVisible</code> property.\n *\n */\n public getHorizontalGridVisible(): Promise<string> {\n return this.getProperty<string>('horizontalGridVisible');\n }\n\n /**\n * Gets the value of <code>verticalGridVisible</code> property.\n * Controls the display of the Table's vertical gridlines.\n * @return The value of <code>verticalGridVisible</code> property.\n *\n */\n public getVerticalGridVisible(): Promise<string> {\n return this.getProperty<string>('verticalGridVisible');\n }\n\n /**\n * Sets the value of <code>selected</code> property.\n * The selected rows and/or columns. See the Help documentation for more information.\n * @param selected The value to set for <code>selected</code>\n *\n */\n public changeSelected(selected: Selected): Promise<void> {\n return this.setProperty<Selected>('selected', selected);\n }\n\n /**\n * Gets the value of <code>selected</code> property.\n * The selected rows and/or columns. See the Help documentation for more information.\n * @return The value of <code>selected</code> property.\n *\n */\n public getSelected(): Promise<Selected> {\n return this.getProperty<Selected>('selected');\n }\n\n /**\n * Gets the value of <code>selectionMode</code> property.\n * Specifies whether row and/or column selection gestures are enabled on the Table, and the cardinality of each (single/multiple/none).\n * @return The value of <code>selectionMode</code> property.\n *\n */\n public getSelectionMode(): Promise<SelectionMode> {\n return this.getProperty<SelectionMode>('selectionMode');\n }\n\n /**\n * Gets the value of <code>selectAllControl</code> property.\n * Controls the display of the Table's select all control when multiple row selection is enabled.\n * @return The value of <code>selectAllControl</code> property.\n *\n */\n public getSelectAllControl(): Promise<string> {\n return this.getProperty<string>('selectAllControl');\n }\n\n /**\n * Sets the value of <code>columnOrder</code> property.\n * Display and order of columns. See the Help documentation for more information.\n * @param columnOrder The value to set for <code>columnOrder</code>\n *\n */\n public changeColumnOrder(columnOrder: Array<string>): Promise<void> {\n return this.setProperty<Array<string>>('columnOrder', columnOrder);\n }\n\n /**\n * Gets the value of <code>columnOrder</code> property.\n * Display and order of columns. See the Help documentation for more information.\n * @return The value of <code>columnOrder</code> property.\n *\n */\n public getColumnOrder(): Promise<Array<string>> {\n return this.getProperty<Array<string>>('columnOrder');\n }\n\n /**\n * Gets the value of <code>currentCellOverride</code> property.\n * The cell override to apply to the current cell of the Table. In order for this property to be honored, a new object instance must be set.\n * @return The value of <code>currentCellOverride</code> property.\n *\n */\n public getCurrentCellOverride(): Promise<object> {\n return this.getProperty<object>('currentCellOverride');\n }\n\n /**\n * Gets the value of <code>currentCell</code> property.\n * The cell currently being used as the target for keyboard gestures made on the Table.\n * @return The value of <code>currentCell</code> property.\n *\n */\n public getCurrentCell(): Promise<object> {\n return this.getProperty<object>('currentCell');\n }\n\n /**\n * Sets the value of <code>columnWidths</code> property.\n * The desired widths of table columns. A record mapping column keys to numbers representing pixel widths for each column.\n * @param columnWidths The value to set for <code>columnWidths</code>\n *\n */\n public changeColumnWidths(columnWidths: object): Promise<void> {\n return this.setProperty<object>('columnWidths', columnWidths);\n }\n\n /**\n * Gets the value of <code>columnWidths</code> property.\n * The desired widths of table columns. A record mapping column keys to numbers representing pixel widths for each column.\n * @return The value of <code>columnWidths</code> property.\n *\n */\n public getColumnWidths(): Promise<object> {\n return this.getProperty<object>('columnWidths');\n }\n\n /**\n * Gets the value of <code>scrollPolicyOptions</code> property.\n * Options related to the Table's fetching and scrolling behaviors.\n * @return The value of <code>scrollPolicyOptions</code> property.\n *\n */\n public getScrollPolicyOptions(): Promise<ScrollPolicyOptions> {\n return this.getProperty<ScrollPolicyOptions>('scrollPolicyOptions');\n }\n}\nexport interface Row {\n /**\n * The column key(s) to be used as the accessible row header(s) for assistive technologies. See the Help documentation for more information.\n */\n accessibleRowHeader: any;\n}\nexport interface Selected {\n /**\n * The selected columns. See the Help documentation for more information.\n */\n column: object;\n /**\n * The selected rows. See the Help documentation for more information.\n */\n row: object;\n}\nexport interface SelectionMode {\n /**\n * Specifies whether column selection gestures are enabled on the Table.\n */\n column: string;\n /**\n * Specifies whether row selection gestures are enabled on the Table.\n */\n row: string;\n}\nexport interface ScrollPolicyOptions {\n /**\n * The number of records the Table will request during each data fetch.\n */\n fetchSize: number;\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import { By } from 'selenium-webdriver';
2
+ import { DriverLike } from '@oracle/oraclejet-webdriver';
3
+ import { TableWebElement } from './TableWebElement';
4
+ export { TableWebElement };
5
+ /**
6
+ * Retrieve an instance of [TableWebElement](../classes/TableWebElement.html).
7
+ * @example
8
+ * ```javascript
9
+ * import { findTable } from '@oracle/oraclejet-core-pack/webdriver';
10
+ * const el = await findTable(driver, By.id('my-oj-c-table'));
11
+ * ```
12
+ * @param driver A WebDriver/WebElement instance from where the element will be
13
+ * searched. If WebDriver is passed, the element will be searched globally in the
14
+ * document. If WebElement is passed, the search will be relative to this element.
15
+ * @param by The locator with which to find the element
16
+ */
17
+ export declare function findTable(driver: DriverLike, by: By): Promise<TableWebElement>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findTable = exports.TableWebElement = void 0;
4
+ var oraclejet_webdriver_1 = require("@oracle/oraclejet-webdriver");
5
+ var TableWebElement_1 = require("./TableWebElement");
6
+ Object.defineProperty(exports, "TableWebElement", { enumerable: true, get: function () { return TableWebElement_1.TableWebElement; } });
7
+ /**
8
+ * Retrieve an instance of [TableWebElement](../classes/TableWebElement.html).
9
+ * @example
10
+ * ```javascript
11
+ * import { findTable } from '@oracle/oraclejet-core-pack/webdriver';
12
+ * const el = await findTable(driver, By.id('my-oj-c-table'));
13
+ * ```
14
+ * @param driver A WebDriver/WebElement instance from where the element will be
15
+ * searched. If WebDriver is passed, the element will be searched globally in the
16
+ * document. If WebElement is passed, the search will be relative to this element.
17
+ * @param by The locator with which to find the element
18
+ */
19
+ async function findTable(driver, by) {
20
+ const webEl = await driver.findElement(by);
21
+ // Check that the element is of type TableWebElement
22
+ if (!(webEl instanceof TableWebElement_1.TableWebElement)) {
23
+ const tagName = await webEl.getTagName();
24
+ let supplemental = '';
25
+ if (webEl.constructor.name === 'TableWebElement') {
26
+ supplemental = 'You likely have multiple installations of this package.';
27
+ }
28
+ throw Error(`findTable(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${TableWebElement_1.TableWebElement.name}. ${supplemental}`);
29
+ }
30
+ return webEl;
31
+ }
32
+ exports.findTable = findTable;
33
+ (0, oraclejet_webdriver_1.register)('oj-c-table', TableWebElement_1.TableWebElement);
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,mEAAmE;AACnE,qDAAoD;AAC3C,gGADA,iCAAe,OACA;AAExB;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,SAAS,CAAC,MAAkB,EAAE,EAAM;IACxD,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC3C,oDAAoD;IACpD,IAAI,CAAC,CAAC,KAAK,YAAY,iCAAe,CAAC,EAAE,CAAC;QACxC,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC;QACzC,IAAI,YAAY,GAAG,EAAE,CAAC;QACtB,IAAI,KAAK,CAAC,WAAW,CAAC,IAAI,KAAK,iBAAiB,EAAE,CAAC;YACjD,YAAY,GAAG,yDAAyD,CAAC;QAC3E,CAAC;QACD,MAAM,KAAK,CACT,aAAa,EAAE,aAAa,KAAK,CAAC,WAAW,CAAC,IAAI,SAAS,OAAO,mBAAmB,iCAAe,CAAC,IAAI,KAAK,YAAY,EAAE,CAC7H,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAdD,8BAcC;AAED,IAAA,8BAAQ,EAAC,YAAY,EAAE,iCAAe,CAAC,CAAC","sourcesContent":["import { By } from 'selenium-webdriver';\nimport { DriverLike, register } from '@oracle/oraclejet-webdriver';\nimport { TableWebElement } from './TableWebElement';\nexport { TableWebElement };\n\n/**\n * Retrieve an instance of [TableWebElement](../classes/TableWebElement.html).\n * @example\n * ```javascript\n * import { findTable } from '@oracle/oraclejet-core-pack/webdriver';\n * const el = await findTable(driver, By.id('my-oj-c-table'));\n * ```\n * @param driver A WebDriver/WebElement instance from where the element will be\n * searched. If WebDriver is passed, the element will be searched globally in the\n * document. If WebElement is passed, the search will be relative to this element.\n * @param by The locator with which to find the element\n */\nexport async function findTable(driver: DriverLike, by: By): Promise<TableWebElement> {\n const webEl = await driver.findElement(by);\n // Check that the element is of type TableWebElement\n if (!(webEl instanceof TableWebElement)) {\n const tagName = await webEl.getTagName();\n let supplemental = '';\n if (webEl.constructor.name === 'TableWebElement') {\n supplemental = 'You likely have multiple installations of this package.';\n }\n throw Error(\n `findTable(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${TableWebElement.name}. ${supplemental}`\n );\n }\n return webEl;\n}\n\nregister('oj-c-table', TableWebElement);\n"]}