@oracle/oraclejet-core-pack 15.0.2 → 15.0.4

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 (354) hide show
  1. package/oj-c/Avatar.json +10 -10
  2. package/oj-c/Button.json +19 -19
  3. package/oj-c/Collapsible.json +14 -14
  4. package/oj-c/FilePicker.json +19 -19
  5. package/oj-c/HighlightText.json +6 -6
  6. package/oj-c/InputDateText.json +43 -43
  7. package/oj-c/InputNumber.json +49 -49
  8. package/oj-c/InputPassword.json +40 -40
  9. package/oj-c/InputText.json +47 -47
  10. package/oj-c/Legend.json +34 -34
  11. package/oj-c/LegendItem.json +15 -15
  12. package/oj-c/LegendSection.json +5 -5
  13. package/oj-c/ListItemLayout.json +16 -16
  14. package/oj-c/ListView.json +18 -18
  15. package/oj-c/MessageToast.json +36 -16
  16. package/oj-c/MeterBar.json +26 -26
  17. package/oj-c/MeterCircle.json +30 -30
  18. package/oj-c/ProgressBar.json +7 -7
  19. package/oj-c/ProgressCircle.json +7 -7
  20. package/oj-c/RatingGauge.json +21 -21
  21. package/oj-c/SelectMultiple.json +39 -39
  22. package/oj-c/SelectSingle.json +39 -39
  23. package/oj-c/Selector.json +8 -8
  24. package/oj-c/SelectorAll.json +5 -5
  25. package/oj-c/SplitMenuButton.json +17 -17
  26. package/oj-c/TagCloud.json +18 -18
  27. package/oj-c/TagCloudItem.json +10 -10
  28. package/oj-c/TextArea.json +44 -44
  29. package/oj-c/avatar/__webdriver__/AvatarWebElement.d.ts +8 -0
  30. package/oj-c/avatar/__webdriver__/AvatarWebElement.js +3 -22
  31. package/oj-c/avatar/__webdriver__/AvatarWebElement.js.map +1 -0
  32. package/oj-c/avatar/__webdriver__/AvatarWebElementBase.d.ts +51 -0
  33. package/oj-c/avatar/__webdriver__/AvatarWebElementBase.js +15 -34
  34. package/oj-c/avatar/__webdriver__/AvatarWebElementBase.js.map +1 -0
  35. package/oj-c/avatar/__webdriver__/index.d.ts +17 -0
  36. package/oj-c/avatar/__webdriver__/index.js +9 -53
  37. package/oj-c/avatar/__webdriver__/index.js.map +1 -0
  38. package/oj-c/avatar/component.json +2 -2
  39. package/oj-c/button/__webdriver__/ButtonWebElement.d.ts +65 -0
  40. package/oj-c/button/__webdriver__/ButtonWebElement.js +32 -36
  41. package/oj-c/button/__webdriver__/ButtonWebElement.js.map +1 -0
  42. package/oj-c/button/__webdriver__/ButtonWebElementBase.d.ts +65 -0
  43. package/oj-c/button/__webdriver__/ButtonWebElementBase.js +19 -38
  44. package/oj-c/button/__webdriver__/ButtonWebElementBase.js.map +1 -0
  45. package/oj-c/button/__webdriver__/index.d.ts +17 -0
  46. package/oj-c/button/__webdriver__/index.js +9 -53
  47. package/oj-c/button/__webdriver__/index.js.map +1 -0
  48. package/oj-c/button/component.json +2 -2
  49. package/oj-c/collapsible/__webdriver__/CollapsibleWebElement.d.ts +21 -0
  50. package/oj-c/collapsible/__webdriver__/CollapsibleWebElement.js +17 -90
  51. package/oj-c/collapsible/__webdriver__/CollapsibleWebElement.js.map +1 -0
  52. package/oj-c/collapsible/__webdriver__/CollapsibleWebElementBase.d.ts +30 -0
  53. package/oj-c/collapsible/__webdriver__/CollapsibleWebElementBase.js +9 -28
  54. package/oj-c/collapsible/__webdriver__/CollapsibleWebElementBase.js.map +1 -0
  55. package/oj-c/collapsible/__webdriver__/index.d.ts +17 -0
  56. package/oj-c/collapsible/__webdriver__/index.js +9 -53
  57. package/oj-c/collapsible/__webdriver__/index.js.map +1 -0
  58. package/oj-c/collapsible/component.json +2 -2
  59. package/oj-c/component.json +3 -3
  60. package/oj-c/corepackbundle.js +7 -4
  61. package/oj-c/docs/avatar.html +3 -3
  62. package/oj-c/docs/button.html +3 -3
  63. package/oj-c/docs/collapsible.html +3 -3
  64. package/oj-c/docs/file-picker.html +3 -3
  65. package/oj-c/docs/highlight-text.html +3 -3
  66. package/oj-c/docs/index.html +3 -3
  67. package/oj-c/docs/input-date-text.html +3 -3
  68. package/oj-c/docs/input-number.html +3 -3
  69. package/oj-c/docs/input-password.html +3 -3
  70. package/oj-c/docs/input-text.html +3 -3
  71. package/oj-c/docs/legend-item.html +3 -3
  72. package/oj-c/docs/legend-section.html +3 -3
  73. package/oj-c/docs/legend.html +3 -3
  74. package/oj-c/docs/list-item-layout.html +3 -3
  75. package/oj-c/docs/list-view.html +3 -3
  76. package/oj-c/docs/message-toast.html +3 -3
  77. package/oj-c/docs/meter-bar.html +3 -3
  78. package/oj-c/docs/meter-circle.html +3 -3
  79. package/oj-c/docs/oj-c.Avatar.html +3 -3
  80. package/oj-c/docs/oj-c.Button.html +3 -3
  81. package/oj-c/docs/oj-c.Collapsible.html +3 -3
  82. package/oj-c/docs/oj-c.FilePicker.html +3 -3
  83. package/oj-c/docs/oj-c.HighlightText.html +3 -3
  84. package/oj-c/docs/oj-c.InputDateText.html +3 -3
  85. package/oj-c/docs/oj-c.InputNumber.html +3 -3
  86. package/oj-c/docs/oj-c.InputPassword.html +3 -3
  87. package/oj-c/docs/oj-c.InputText.html +3 -3
  88. package/oj-c/docs/oj-c.Legend.html +3 -3
  89. package/oj-c/docs/oj-c.LegendItem.html +3 -3
  90. package/oj-c/docs/oj-c.LegendSection.html +3 -3
  91. package/oj-c/docs/oj-c.ListItemLayout.html +3 -3
  92. package/oj-c/docs/oj-c.ListView.html +3 -3
  93. package/oj-c/docs/oj-c.MessageToast.html +11 -6
  94. package/oj-c/docs/oj-c.MeterBar.html +3 -3
  95. package/oj-c/docs/oj-c.MeterCircle.html +3 -3
  96. package/oj-c/docs/oj-c.ProgressBar.html +3 -3
  97. package/oj-c/docs/oj-c.ProgressCircle.html +3 -3
  98. package/oj-c/docs/oj-c.RatingGauge.html +3 -3
  99. package/oj-c/docs/oj-c.SelectMultiple.html +3 -3
  100. package/oj-c/docs/oj-c.SelectSingle.html +3 -3
  101. package/oj-c/docs/oj-c.Selector.html +3 -3
  102. package/oj-c/docs/oj-c.SelectorAll.html +3 -3
  103. package/oj-c/docs/oj-c.SplitMenuButton.html +3 -3
  104. package/oj-c/docs/oj-c.TagCloud.html +3 -3
  105. package/oj-c/docs/oj-c.TagCloudItem.html +3 -3
  106. package/oj-c/docs/oj-c.TextArea.html +3 -3
  107. package/oj-c/docs/progress-bar.html +3 -3
  108. package/oj-c/docs/progress-circle.html +3 -3
  109. package/oj-c/docs/rating-gauge.html +3 -3
  110. package/oj-c/docs/select-multiple.html +3 -3
  111. package/oj-c/docs/select-single.html +3 -3
  112. package/oj-c/docs/selector-all.html +3 -3
  113. package/oj-c/docs/selector.html +3 -3
  114. package/oj-c/docs/split-menu-button.html +3 -3
  115. package/oj-c/docs/tag-cloud-item.html +3 -3
  116. package/oj-c/docs/tag-cloud.html +3 -3
  117. package/oj-c/docs/text-area.html +3 -3
  118. package/oj-c/file-picker/__webdriver__/FilePickerWebElement.d.ts +8 -0
  119. package/oj-c/file-picker/__webdriver__/FilePickerWebElement.js +3 -22
  120. package/oj-c/file-picker/__webdriver__/FilePickerWebElement.js.map +1 -0
  121. package/oj-c/file-picker/__webdriver__/FilePickerWebElementBase.d.ts +51 -0
  122. package/oj-c/file-picker/__webdriver__/FilePickerWebElementBase.js +15 -34
  123. package/oj-c/file-picker/__webdriver__/FilePickerWebElementBase.js.map +1 -0
  124. package/oj-c/file-picker/__webdriver__/index.d.ts +17 -0
  125. package/oj-c/file-picker/__webdriver__/index.js +9 -53
  126. package/oj-c/file-picker/__webdriver__/index.js.map +1 -0
  127. package/oj-c/file-picker/component.json +2 -2
  128. package/oj-c/highlight-text/__webdriver__/HighlightTextWebElement.d.ts +8 -0
  129. package/oj-c/highlight-text/__webdriver__/HighlightTextWebElement.js +3 -22
  130. package/oj-c/highlight-text/__webdriver__/HighlightTextWebElement.js.map +1 -0
  131. package/oj-c/highlight-text/__webdriver__/HighlightTextWebElementBase.d.ts +23 -0
  132. package/oj-c/highlight-text/__webdriver__/HighlightTextWebElementBase.js +7 -26
  133. package/oj-c/highlight-text/__webdriver__/HighlightTextWebElementBase.js.map +1 -0
  134. package/oj-c/highlight-text/__webdriver__/index.d.ts +17 -0
  135. package/oj-c/highlight-text/__webdriver__/index.js +9 -53
  136. package/oj-c/highlight-text/__webdriver__/index.js.map +1 -0
  137. package/oj-c/highlight-text/component.json +2 -2
  138. package/oj-c/input-date-text/__webdriver__/InputDateTextWebElement.d.ts +8 -0
  139. package/oj-c/input-date-text/__webdriver__/InputDateTextWebElement.js +3 -22
  140. package/oj-c/input-date-text/__webdriver__/InputDateTextWebElement.js.map +1 -0
  141. package/oj-c/input-date-text/__webdriver__/InputDateTextWebElementBase.d.ts +246 -0
  142. package/oj-c/input-date-text/__webdriver__/InputDateTextWebElementBase.js +57 -76
  143. package/oj-c/input-date-text/__webdriver__/InputDateTextWebElementBase.js.map +1 -0
  144. package/oj-c/input-date-text/__webdriver__/index.d.ts +17 -0
  145. package/oj-c/input-date-text/__webdriver__/index.js +9 -53
  146. package/oj-c/input-date-text/__webdriver__/index.js.map +1 -0
  147. package/oj-c/input-date-text/component.json +2 -2
  148. package/oj-c/input-number/__webdriver__/InputNumberWebElement.d.ts +8 -0
  149. package/oj-c/input-number/__webdriver__/InputNumberWebElement.js +3 -22
  150. package/oj-c/input-number/__webdriver__/InputNumberWebElement.js.map +1 -0
  151. package/oj-c/input-number/__webdriver__/InputNumberWebElementBase.d.ts +302 -0
  152. package/oj-c/input-number/__webdriver__/InputNumberWebElementBase.js +73 -92
  153. package/oj-c/input-number/__webdriver__/InputNumberWebElementBase.js.map +1 -0
  154. package/oj-c/input-number/__webdriver__/index.d.ts +17 -0
  155. package/oj-c/input-number/__webdriver__/index.js +9 -53
  156. package/oj-c/input-number/__webdriver__/index.js.map +1 -0
  157. package/oj-c/input-number/component.json +2 -2
  158. package/oj-c/input-password/__webdriver__/InputPasswordWebElement.d.ts +8 -0
  159. package/oj-c/input-password/__webdriver__/InputPasswordWebElement.js +3 -22
  160. package/oj-c/input-password/__webdriver__/InputPasswordWebElement.js.map +1 -0
  161. package/oj-c/input-password/__webdriver__/InputPasswordWebElementBase.d.ts +239 -0
  162. package/oj-c/input-password/__webdriver__/InputPasswordWebElementBase.js +55 -74
  163. package/oj-c/input-password/__webdriver__/InputPasswordWebElementBase.js.map +1 -0
  164. package/oj-c/input-password/__webdriver__/index.d.ts +17 -0
  165. package/oj-c/input-password/__webdriver__/index.js +9 -53
  166. package/oj-c/input-password/__webdriver__/index.js.map +1 -0
  167. package/oj-c/input-password/component.json +2 -2
  168. package/oj-c/input-text/__webdriver__/InputTextWebElement.d.ts +8 -0
  169. package/oj-c/input-text/__webdriver__/InputTextWebElement.js +3 -22
  170. package/oj-c/input-text/__webdriver__/InputTextWebElement.js.map +1 -0
  171. package/oj-c/input-text/__webdriver__/InputTextWebElementBase.d.ts +277 -0
  172. package/oj-c/input-text/__webdriver__/InputTextWebElementBase.js +63 -82
  173. package/oj-c/input-text/__webdriver__/InputTextWebElementBase.js.map +1 -0
  174. package/oj-c/input-text/__webdriver__/index.d.ts +17 -0
  175. package/oj-c/input-text/__webdriver__/index.js +9 -53
  176. package/oj-c/input-text/__webdriver__/index.js.map +1 -0
  177. package/oj-c/input-text/component.json +2 -2
  178. package/oj-c/legend/__webdriver__/LegendWebElement.d.ts +8 -0
  179. package/oj-c/legend/__webdriver__/LegendWebElement.js +3 -22
  180. package/oj-c/legend/__webdriver__/LegendWebElement.js.map +1 -0
  181. package/oj-c/legend/__webdriver__/LegendWebElementBase.d.ts +173 -0
  182. package/oj-c/legend/__webdriver__/LegendWebElementBase.js +35 -54
  183. package/oj-c/legend/__webdriver__/LegendWebElementBase.js.map +1 -0
  184. package/oj-c/legend/__webdriver__/index.d.ts +17 -0
  185. package/oj-c/legend/__webdriver__/index.js +9 -53
  186. package/oj-c/legend/__webdriver__/index.js.map +1 -0
  187. package/oj-c/legend/component.json +2 -2
  188. package/oj-c/legend-item/component.json +2 -2
  189. package/oj-c/legend-section/component.json +2 -2
  190. package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElement.d.ts +8 -0
  191. package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElement.js +3 -22
  192. package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElement.js.map +1 -0
  193. package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElementBase.d.ts +16 -0
  194. package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElementBase.js +5 -24
  195. package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElementBase.js.map +1 -0
  196. package/oj-c/list-item-layout/__webdriver__/index.d.ts +17 -0
  197. package/oj-c/list-item-layout/__webdriver__/index.js +9 -53
  198. package/oj-c/list-item-layout/__webdriver__/index.js.map +1 -0
  199. package/oj-c/list-item-layout/component.json +2 -2
  200. package/oj-c/list-view/__webdriver__/ListViewWebElement.d.ts +8 -0
  201. package/oj-c/list-view/__webdriver__/ListViewWebElement.js +3 -22
  202. package/oj-c/list-view/__webdriver__/ListViewWebElement.js.map +1 -0
  203. package/oj-c/list-view/__webdriver__/ListViewWebElementBase.d.ts +75 -0
  204. package/oj-c/list-view/__webdriver__/ListViewWebElementBase.js +15 -34
  205. package/oj-c/list-view/__webdriver__/ListViewWebElementBase.js.map +1 -0
  206. package/oj-c/list-view/__webdriver__/index.d.ts +17 -0
  207. package/oj-c/list-view/__webdriver__/index.js +9 -53
  208. package/oj-c/list-view/__webdriver__/index.js.map +1 -0
  209. package/oj-c/list-view/component.json +2 -2
  210. package/oj-c/message-toast/__webdriver__/MessageToastWebElement.d.ts +52 -0
  211. package/oj-c/message-toast/__webdriver__/MessageToastWebElement.js +87 -21
  212. package/oj-c/message-toast/__webdriver__/MessageToastWebElement.js.map +1 -0
  213. package/oj-c/message-toast/__webdriver__/MessageToastWebElementBase.d.ts +44 -0
  214. package/oj-c/message-toast/__webdriver__/MessageToastWebElementBase.js +13 -32
  215. package/oj-c/message-toast/__webdriver__/MessageToastWebElementBase.js.map +1 -0
  216. package/oj-c/message-toast/__webdriver__/index.d.ts +17 -0
  217. package/oj-c/message-toast/__webdriver__/index.js +9 -53
  218. package/oj-c/message-toast/__webdriver__/index.js.map +1 -0
  219. package/oj-c/message-toast/component.json +2 -2
  220. package/oj-c/message-toast/message-toast.js +7 -4
  221. package/oj-c/metadata/allComponents.json +57 -57
  222. package/oj-c/meter-bar/__webdriver__/MeterBarWebElement.d.ts +8 -0
  223. package/oj-c/meter-bar/__webdriver__/MeterBarWebElement.js +3 -22
  224. package/oj-c/meter-bar/__webdriver__/MeterBarWebElement.js.map +1 -0
  225. package/oj-c/meter-bar/__webdriver__/MeterBarWebElementBase.d.ts +173 -0
  226. package/oj-c/meter-bar/__webdriver__/MeterBarWebElementBase.js +39 -58
  227. package/oj-c/meter-bar/__webdriver__/MeterBarWebElementBase.js.map +1 -0
  228. package/oj-c/meter-bar/__webdriver__/index.d.ts +17 -0
  229. package/oj-c/meter-bar/__webdriver__/index.js +9 -53
  230. package/oj-c/meter-bar/__webdriver__/index.js.map +1 -0
  231. package/oj-c/meter-bar/component.json +2 -2
  232. package/oj-c/meter-circle/__webdriver__/MeterCircleWebElement.d.ts +8 -0
  233. package/oj-c/meter-circle/__webdriver__/MeterCircleWebElement.js +3 -22
  234. package/oj-c/meter-circle/__webdriver__/MeterCircleWebElement.js.map +1 -0
  235. package/oj-c/meter-circle/__webdriver__/MeterCircleWebElementBase.d.ts +183 -0
  236. package/oj-c/meter-circle/__webdriver__/MeterCircleWebElementBase.js +43 -62
  237. package/oj-c/meter-circle/__webdriver__/MeterCircleWebElementBase.js.map +1 -0
  238. package/oj-c/meter-circle/__webdriver__/index.d.ts +17 -0
  239. package/oj-c/meter-circle/__webdriver__/index.js +9 -53
  240. package/oj-c/meter-circle/__webdriver__/index.js.map +1 -0
  241. package/oj-c/meter-circle/component.json +2 -2
  242. package/oj-c/min/corepackbundle.js +4 -4
  243. package/oj-c/min/corepackbundle.js.map +1 -1
  244. package/oj-c/min/message-toast.js +1 -1
  245. package/oj-c/min/message-toast.js.map +1 -1
  246. package/oj-c/progress-bar/__webdriver__/ProgressBarWebElement.d.ts +8 -0
  247. package/oj-c/progress-bar/__webdriver__/ProgressBarWebElement.js +3 -22
  248. package/oj-c/progress-bar/__webdriver__/ProgressBarWebElement.js.map +1 -0
  249. package/oj-c/progress-bar/__webdriver__/ProgressBarWebElementBase.d.ts +30 -0
  250. package/oj-c/progress-bar/__webdriver__/ProgressBarWebElementBase.js +9 -28
  251. package/oj-c/progress-bar/__webdriver__/ProgressBarWebElementBase.js.map +1 -0
  252. package/oj-c/progress-bar/__webdriver__/index.d.ts +17 -0
  253. package/oj-c/progress-bar/__webdriver__/index.js +9 -53
  254. package/oj-c/progress-bar/__webdriver__/index.js.map +1 -0
  255. package/oj-c/progress-bar/component.json +2 -2
  256. package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElement.d.ts +8 -0
  257. package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElement.js +3 -22
  258. package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElement.js.map +1 -0
  259. package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElementBase.d.ts +30 -0
  260. package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElementBase.js +9 -28
  261. package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElementBase.js.map +1 -0
  262. package/oj-c/progress-circle/__webdriver__/index.d.ts +17 -0
  263. package/oj-c/progress-circle/__webdriver__/index.js +9 -53
  264. package/oj-c/progress-circle/__webdriver__/index.js.map +1 -0
  265. package/oj-c/progress-circle/component.json +2 -2
  266. package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElement.d.ts +8 -0
  267. package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElement.js +3 -22
  268. package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElement.js.map +1 -0
  269. package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElementBase.d.ts +135 -0
  270. package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElementBase.js +35 -54
  271. package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElementBase.js.map +1 -0
  272. package/oj-c/rating-gauge/__webdriver__/index.d.ts +17 -0
  273. package/oj-c/rating-gauge/__webdriver__/index.js +9 -53
  274. package/oj-c/rating-gauge/__webdriver__/index.js.map +1 -0
  275. package/oj-c/rating-gauge/component.json +2 -2
  276. package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElement.d.ts +8 -0
  277. package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElement.js +3 -22
  278. package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElement.js.map +1 -0
  279. package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElementBase.d.ts +231 -0
  280. package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElementBase.js +55 -74
  281. package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElementBase.js.map +1 -0
  282. package/oj-c/select-multiple/__webdriver__/index.d.ts +17 -0
  283. package/oj-c/select-multiple/__webdriver__/index.js +9 -53
  284. package/oj-c/select-multiple/__webdriver__/index.js.map +1 -0
  285. package/oj-c/select-multiple/component.json +2 -2
  286. package/oj-c/select-single/__webdriver__/SelectSingleWebElement.d.ts +8 -0
  287. package/oj-c/select-single/__webdriver__/SelectSingleWebElement.js +3 -22
  288. package/oj-c/select-single/__webdriver__/SelectSingleWebElement.js.map +1 -0
  289. package/oj-c/select-single/__webdriver__/SelectSingleWebElementBase.d.ts +289 -0
  290. package/oj-c/select-single/__webdriver__/SelectSingleWebElementBase.js +55 -74
  291. package/oj-c/select-single/__webdriver__/SelectSingleWebElementBase.js.map +1 -0
  292. package/oj-c/select-single/__webdriver__/index.d.ts +17 -0
  293. package/oj-c/select-single/__webdriver__/index.js +9 -53
  294. package/oj-c/select-single/__webdriver__/index.js.map +1 -0
  295. package/oj-c/select-single/component.json +2 -2
  296. package/oj-c/selector/__webdriver__/SelectorWebElement.d.ts +8 -0
  297. package/oj-c/selector/__webdriver__/SelectorWebElement.js +3 -22
  298. package/oj-c/selector/__webdriver__/SelectorWebElement.js.map +1 -0
  299. package/oj-c/selector/__webdriver__/SelectorWebElementBase.d.ts +44 -0
  300. package/oj-c/selector/__webdriver__/SelectorWebElementBase.js +13 -32
  301. package/oj-c/selector/__webdriver__/SelectorWebElementBase.js.map +1 -0
  302. package/oj-c/selector/__webdriver__/index.d.ts +17 -0
  303. package/oj-c/selector/__webdriver__/index.js +9 -53
  304. package/oj-c/selector/__webdriver__/index.js.map +1 -0
  305. package/oj-c/selector/component.json +2 -2
  306. package/oj-c/selector-all/__webdriver__/SelectorAllWebElement.d.ts +8 -0
  307. package/oj-c/selector-all/__webdriver__/SelectorAllWebElement.js +3 -22
  308. package/oj-c/selector-all/__webdriver__/SelectorAllWebElement.js.map +1 -0
  309. package/oj-c/selector-all/__webdriver__/SelectorAllWebElementBase.d.ts +23 -0
  310. package/oj-c/selector-all/__webdriver__/SelectorAllWebElementBase.js +7 -26
  311. package/oj-c/selector-all/__webdriver__/SelectorAllWebElementBase.js.map +1 -0
  312. package/oj-c/selector-all/__webdriver__/index.d.ts +17 -0
  313. package/oj-c/selector-all/__webdriver__/index.js +9 -53
  314. package/oj-c/selector-all/__webdriver__/index.js.map +1 -0
  315. package/oj-c/selector-all/component.json +2 -2
  316. package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElement.d.ts +8 -0
  317. package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElement.js +3 -22
  318. package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElement.js.map +1 -0
  319. package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElementBase.d.ts +65 -0
  320. package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElementBase.js +15 -34
  321. package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElementBase.js.map +1 -0
  322. package/oj-c/split-menu-button/__webdriver__/index.d.ts +17 -0
  323. package/oj-c/split-menu-button/__webdriver__/index.js +9 -53
  324. package/oj-c/split-menu-button/__webdriver__/index.js.map +1 -0
  325. package/oj-c/split-menu-button/component.json +2 -2
  326. package/oj-c/tag-cloud/__webdriver__/TagCloudWebElement.d.ts +8 -0
  327. package/oj-c/tag-cloud/__webdriver__/TagCloudWebElement.js +3 -22
  328. package/oj-c/tag-cloud/__webdriver__/TagCloudWebElement.js.map +1 -0
  329. package/oj-c/tag-cloud/__webdriver__/TagCloudWebElementBase.d.ts +100 -0
  330. package/oj-c/tag-cloud/__webdriver__/TagCloudWebElementBase.js +29 -48
  331. package/oj-c/tag-cloud/__webdriver__/TagCloudWebElementBase.js.map +1 -0
  332. package/oj-c/tag-cloud/__webdriver__/index.d.ts +17 -0
  333. package/oj-c/tag-cloud/__webdriver__/index.js +9 -53
  334. package/oj-c/tag-cloud/__webdriver__/index.js.map +1 -0
  335. package/oj-c/tag-cloud/component.json +2 -2
  336. package/oj-c/tag-cloud-item/component.json +2 -2
  337. package/oj-c/text-area/__webdriver__/TextAreaWebElement.d.ts +8 -0
  338. package/oj-c/text-area/__webdriver__/TextAreaWebElement.js +3 -22
  339. package/oj-c/text-area/__webdriver__/TextAreaWebElement.js.map +1 -0
  340. package/oj-c/text-area/__webdriver__/TextAreaWebElementBase.d.ts +274 -0
  341. package/oj-c/text-area/__webdriver__/TextAreaWebElementBase.js +61 -80
  342. package/oj-c/text-area/__webdriver__/TextAreaWebElementBase.js.map +1 -0
  343. package/oj-c/text-area/__webdriver__/index.d.ts +17 -0
  344. package/oj-c/text-area/__webdriver__/index.js +9 -53
  345. package/oj-c/text-area/__webdriver__/index.js.map +1 -0
  346. package/oj-c/text-area/component.json +2 -2
  347. package/oj-c/types/message-toast/message-toast.d.ts +44 -44
  348. package/package.json +3 -3
  349. package/webdriver/docs/assets/search.js +1 -1
  350. package/webdriver/docs/classes/ButtonWebElement.html +17 -7
  351. package/webdriver/docs/classes/MessageToastWebElement.html +89 -0
  352. package/webdriver/index.d.ts +25 -0
  353. package/webdriver/index.js +1 -0
  354. package/webdriver/index.js.map +1 -0
@@ -1,2 +1,2 @@
1
- define("oj-c/hooks/UNSAFE_useDataProvider/utils",["require","exports"],(function(require,t){"use strict";function e(t,e,a,s){const o=[...s];return t.forEach(((t,s)=>{const r={data:e[s],key:a[s]?.key,metadata:a[s]};t>=0?o.splice(t,0,r):o.push(r)})),o}async function a(t,e){const a=[],s=(await t.fetchByKeys({keys:e})).results;for(const t of e)if(s.has(t)){const e=s.get(t);a.push({...e,key:t})}return a}function s(t,e){return t.has(e)?t.get(e):-1}function o(t,e){const a=[...e];return t.sort(((t,e)=>e-t)),t.forEach((t=>{t<a.length&&a.splice(t,1)})),a}Object.defineProperty(t,"__esModule",{value:!0}),t.getUpdatedItemsFromMutationDetail=void 0,t.getUpdatedItemsFromMutationDetail=async function(t,r,n){const{add:i,remove:d,update:c}=t??{},u=new Map;for(const[t,e]of r.entries())u.set(e.key,t);let l=[...r];return d&&(l=function(t,e,a){const{indexes:r,keys:n}=t;let i=[...e];r?.length?i=o(r,i):n?.size&&(i=function(t,e,a){const r=[];return t.forEach((t=>{const e=s(a,t);-1!==e&&r.push(e)})),o(r,e)}(n,i,a));return i}(d,l,u)),i&&(l=await async function(t,o,r,n){const{addBeforeKeys:i,data:d,indexes:c,keys:u,metadata:l}=t;let f=[...o],h=d||[],p=l||[];if(0===h.length&&u?.size){const t=await a(n,u)??[];h=t.map((t=>t.data)),p=t.map((t=>t.metadata))}0===p.length&&u?.size&&(p=[...u].map((t=>({key:t}))));h.length&&(f=c?.length?e(c,h,p,f):i?.length?function(t,a,o,r){const n=[],i=[];return t.forEach((t=>{n.push(s(r,t)),i.push({key:t})})),e(n,a,i,o)}(i,h,f,r):function(t,a,s){return e(new Array(t.length).fill(-1),t,a,s)}(h,p,f));return f}(i,l,u,n)),c&&(l=await async function(t,e,o,r){const{data:n,indexes:i,keys:d,metadata:c}=t;let u=[...e],l=n||[],f=c||[];if(0===l.length&&d?.size){const t=await a(r,d)??[];l=t.map((t=>t.data)),f=t.map((t=>t.metadata))}0===f.length&&d?.size&&(f=[...d].map((t=>({key:t}))));l.length&&(i?.length?u=function(t,e,a,s){const o=[...s];return t.forEach(((t,s)=>{if(o[t]){const r={data:e[s],key:a[s]?.key,metadata:a[s]};o.splice(t,1,r)}})),o}(i,l,f,u):d?.size&&(u=function(t,e,a,o,r){const n=[...o];return t.forEach((t=>{const o=s(r,t),i={data:e[o],key:a[o]?.key,metadata:a[o]};o>=0&&n.splice(o,1,i)})),n}(d,l,f,u,o)));return u}(c,l,u,n)),l}})),define("oj-c/hooks/UNSAFE_useDataProvider/DataProviderHandler",["require","exports","./utils"],(function(require,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataProviderHandler=void 0;t.DataProviderHandler=class{constructor(t,a,s){this.handleMutateEvent=async t=>{const{detail:a}=t,s=this.addBusyState("updating data from mutation event"),o=await(0,e.getUpdatedItemsFromMutationDetail)(a,this.currentData,this.dataProvider);s?.(),this.currentData=o,this.callback?.onDataUpdated?.(o)},this.handleRefreshEvent=()=>{this._fetchDataAndNotify()},this.addBusyState=a,this.callback=s,this.dataProvider=t,this.currentData=[],t.addEventListener("refresh",this.handleRefreshEvent),t.addEventListener("mutate",this.handleMutateEvent),this._fetchDataAndNotify()}destroy(){this.callback=void 0,this.currentData=[],this.dataProvider.removeEventListener("refresh",this.handleRefreshEvent),this.dataProvider.removeEventListener("mutate",this.handleMutateEvent)}async _fetchData(){const t=[],e=this.dataProvider.fetchFirst({size:-1});for await(const a of e){const e=a.data.map(((t,e)=>({data:t,key:a.metadata[e].key,metadata:a.metadata[e]})));t.push(...e)}return this.currentData=t.slice(),t}async _fetchDataAndNotify(){const t=this.addBusyState("fetching data"),e=await this._fetchData();this.callback?.onDataUpdated?.(e),t()}}})),define("oj-c/hooks/UNSAFE_useDataProvider/useDataProvider",["require","exports","preact/hooks","./DataProviderHandler"],(function(require,t,e,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDataProvider=void 0,t.useDataProvider=function({addBusyState:t,data:s}){const[o,r]=(0,e.useState)([]),n=(0,e.useRef)();return(0,e.useEffect)((()=>(void 0!==s&&(n.current=new a.DataProviderHandler(s,t,{onDataUpdated:r})),()=>{n.current?.destroy(),n.current=void 0})),[s,t]),{data:o}}}));var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};define("oj-c/message-toast/message-toast",["require","exports","preact/jsx-runtime","@oracle/oraclejet-preact/translationBundle","@oracle/oraclejet-preact/hooks/UNSAFE_useMessagesContext","@oracle/oraclejet-preact/UNSAFE_MessageToast","oj-c/hooks/UNSAFE_useDataProvider/useDataProvider","ojs/ojcontext","ojs/ojvcomponent","preact/hooks","css!oj-c/message-toast/message-toast-styles.css"],(function(require,t,e,a,s,o,r,n,i,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageToast=void 0,a=__importDefault(a),n=__importDefault(n),t.MessageToast=(0,i.registerCustomElement)("oj-c-message-toast",(({data:t,detailTemplateValue:a,iconTemplateValue:c,messageTemplates:u,offset:l=0,position:f="bottom",onOjClose:h})=>{const p=(0,d.useRef)(!0),m=(0,d.useRef)(),[y,v]=(0,d.useState)(Symbol()),g=(0,d.useCallback)(((t="MessageToast: busyState")=>m.current?n.default.getContext(m.current).getBusyContext().addBusyState({description:t}):()=>{}),[]);(0,d.useEffect)((()=>{p.current?p.current=!1:v(Symbol())}),[t]);const{data:D}=(0,r.useDataProvider)({data:t,addBusyState:g}),_=(0,d.useMemo)((()=>({addBusyState:g})),[]);return(0,e.jsx)(i.Root,{ref:m,children:(0,e.jsx)(s.MessagesContext.Provider,{value:_,children:(0,e.jsx)(o.MessageToast,{data:D,detailRendererKey:a,iconRendererKey:c,offset:l,onClose:h,position:f,renderers:u},y)})})}),"MessageToast",{properties:{data:{type:"DataProvider"},detailTemplateValue:{type:"string|function"},iconTemplateValue:{type:"string|function"},offset:{type:"number|object"},position:{type:"string",enumValues:["bottom","top","top-start","top-end","bottom-start","bottom-end","top-left","bottom-left","top-right","bottom-right"]}},extension:{_DYNAMIC_SLOT:{prop:"messageTemplates",isTemplate:1}},events:{ojClose:{}}},{offset:0,position:"bottom"},{"@oracle/oraclejet-preact":a.default})}));
1
+ define("oj-c/hooks/UNSAFE_useDataProvider/utils",["require","exports"],(function(require,e){"use strict";function t(e,t,a,s){const o=[...s];return e.forEach(((e,s)=>{const r={data:t[s],key:a[s]?.key,metadata:a[s]};e>=0?o.splice(e,0,r):o.push(r)})),o}async function a(e,t){const a=[],s=(await e.fetchByKeys({keys:t})).results;for(const e of t)if(s.has(e)){const t=s.get(e);a.push({...t,key:e})}return a}function s(e,t){return e.has(t)?e.get(t):-1}function o(e,t){const a=[...t];return e.sort(((e,t)=>t-e)),e.forEach((e=>{e<a.length&&a.splice(e,1)})),a}Object.defineProperty(e,"__esModule",{value:!0}),e.getUpdatedItemsFromMutationDetail=void 0,e.getUpdatedItemsFromMutationDetail=async function(e,r,n){const{add:i,remove:d,update:c}=e??{},u=new Map;for(const[e,t]of r.entries())u.set(t.key,e);let l=[...r];return d&&(l=function(e,t,a){const{indexes:r,keys:n}=e;let i=[...t];r?.length?i=o(r,i):n?.size&&(i=function(e,t,a){const r=[];return e.forEach((e=>{const t=s(a,e);-1!==t&&r.push(t)})),o(r,t)}(n,i,a));return i}(d,l,u)),i&&(l=await async function(e,o,r,n){const{addBeforeKeys:i,data:d,indexes:c,keys:u,metadata:l}=e;let f=[...o],h=d||[],p=l||[];if(0===h.length&&u?.size){const e=await a(n,u)??[];h=e.map((e=>e.data)),p=e.map((e=>e.metadata))}0===p.length&&u?.size&&(p=[...u].map((e=>({key:e}))));h.length&&(f=c?.length?t(c,h,p,f):i?.length?function(e,a,o,r){const n=[],i=[];return e.forEach((e=>{n.push(s(r,e)),i.push({key:e})})),t(n,a,i,o)}(i,h,f,r):function(e,a,s){return t(new Array(e.length).fill(-1),e,a,s)}(h,p,f));return f}(i,l,u,n)),c&&(l=await async function(e,t,o,r){const{data:n,indexes:i,keys:d,metadata:c}=e;let u=[...t],l=n||[],f=c||[];if(0===l.length&&d?.size){const e=await a(r,d)??[];l=e.map((e=>e.data)),f=e.map((e=>e.metadata))}0===f.length&&d?.size&&(f=[...d].map((e=>({key:e}))));l.length&&(i?.length?u=function(e,t,a,s){const o=[...s];return e.forEach(((e,s)=>{if(o[e]){const r={data:t[s],key:a[s]?.key,metadata:a[s]};o.splice(e,1,r)}})),o}(i,l,f,u):d?.size&&(u=function(e,t,a,o,r){const n=[...o];return e.forEach((e=>{const o=s(r,e),i={data:t[o],key:a[o]?.key,metadata:a[o]};o>=0&&n.splice(o,1,i)})),n}(d,l,f,u,o)));return u}(c,l,u,n)),l}})),define("oj-c/hooks/UNSAFE_useDataProvider/DataProviderHandler",["require","exports","./utils"],(function(require,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataProviderHandler=void 0;e.DataProviderHandler=class{constructor(e,a,s){this.handleMutateEvent=async e=>{const{detail:a}=e,s=this.addBusyState("updating data from mutation event"),o=await(0,t.getUpdatedItemsFromMutationDetail)(a,this.currentData,this.dataProvider);s?.(),this.currentData=o,this.callback?.onDataUpdated?.(o)},this.handleRefreshEvent=()=>{this._fetchDataAndNotify()},this.addBusyState=a,this.callback=s,this.dataProvider=e,this.currentData=[],e.addEventListener("refresh",this.handleRefreshEvent),e.addEventListener("mutate",this.handleMutateEvent),this._fetchDataAndNotify()}destroy(){this.callback=void 0,this.currentData=[],this.dataProvider.removeEventListener("refresh",this.handleRefreshEvent),this.dataProvider.removeEventListener("mutate",this.handleMutateEvent)}async _fetchData(){const e=[],t=this.dataProvider.fetchFirst({size:-1});for await(const a of t){const t=a.data.map(((e,t)=>({data:e,key:a.metadata[t].key,metadata:a.metadata[t]})));e.push(...t)}return this.currentData=e.slice(),e}async _fetchDataAndNotify(){const e=this.addBusyState("fetching data"),t=await this._fetchData();this.callback?.onDataUpdated?.(t),e()}}})),define("oj-c/hooks/UNSAFE_useDataProvider/useDataProvider",["require","exports","preact/hooks","./DataProviderHandler"],(function(require,e,t,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useDataProvider=void 0,e.useDataProvider=function({addBusyState:e,data:s}){const[o,r]=(0,t.useState)([]),n=(0,t.useRef)();return(0,t.useEffect)((()=>(void 0!==s&&(n.current=new a.DataProviderHandler(s,e,{onDataUpdated:r})),()=>{n.current?.destroy(),n.current=void 0})),[s,e]),{data:o}}}));var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};define("oj-c/message-toast/message-toast",["require","exports","preact/jsx-runtime","@oracle/oraclejet-preact/translationBundle","@oracle/oraclejet-preact/hooks/UNSAFE_useMessagesContext","@oracle/oraclejet-preact/UNSAFE_MessageToast","oj-c/hooks/UNSAFE_useDataProvider/useDataProvider","ojs/ojcontext","ojs/ojvcomponent","preact/hooks","css!oj-c/message-toast/message-toast-styles.css"],(function(require,e,t,a,s,o,r,n,i,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageToast=void 0,a=__importDefault(a),n=__importDefault(n),e.MessageToast=(0,i.registerCustomElement)("oj-c-message-toast",(function({data:e,detailTemplateValue:a,iconTemplateValue:c,messageTemplates:u,offset:l=0,position:f="bottom",onOjClose:h}){const p=(0,d.useRef)(!0),m=(0,d.useRef)((0,i.getUniqueId)()),y=(0,d.useRef)(),[v,g]=(0,d.useState)(Symbol()),D=(0,d.useCallback)(((e="MessageToast: busyState")=>y.current?n.default.getContext(y.current).getBusyContext().addBusyState({description:e}):()=>{}),[]);(0,d.useEffect)((()=>{p.current?p.current=!1:g(Symbol())}),[e]);const{data:_}=(0,r.useDataProvider)({data:e,addBusyState:D}),k=`messageToastLayer_${m.current}`,j=(0,d.useMemo)((()=>({addBusyState:D,UNSAFE_messagesLayerId:k})),[D,k]);return(0,t.jsx)(i.Root,{ref:y,"data-oj-messages-layer-id":k,children:(0,t.jsx)(s.MessagesContext.Provider,{value:j,children:(0,t.jsx)(o.MessageToast,{data:_,detailRendererKey:a,iconRendererKey:c,offset:l,onClose:h,position:f,renderers:u},v)})})}),"MessageToast",{properties:{data:{type:"DataProvider"},detailTemplateValue:{type:"string|function"},iconTemplateValue:{type:"string|function"},offset:{type:"number|object"},position:{type:"string",enumValues:["bottom","top","top-start","top-end","bottom-start","bottom-end","top-left","bottom-left","top-right","bottom-right"]}},extension:{_DYNAMIC_SLOT:{prop:"messageTemplates",isTemplate:1}},events:{ojClose:{}}},{offset:0,position:"bottom"},{"@oracle/oraclejet-preact":a.default})}));
2
2
  //# sourceMappingURL=message-toast.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"message-toast.js","names":["define","require","exports","addItemsAtIndices","indices","itemsToAdd","itemMetadataToAdd","items","returnItems","forEach","addAtIndex","index","addItem","data","key","metadata","splice","push","async","fetchDataByKeys","dataProvider","keys","fetchedData","results","fetchByKeys","has","result","get","getIndexByKey","keyIndexMap","removeItemsAtIndices","sort","a","b","length","Object","defineProperty","value","getUpdatedItemsFromMutationDetail","detail","currentData","add","remove","update","Map","item","entries","set","mutatedData","indexes","size","indicesToRemove","removeItemsAtKeys","removeItemsFromDetail","addBeforeKeys","treatedData","treatedMetaData","fetchResults","map","itemContext","beforeKeys","addIndices","addItemsBeforeKeys","Array","fill","addItemsAtEnd","addItemsFromDetail","itemsToUpdate","itemMetadataToUpdate","updateAtIndex","updateItemsAtIndices","updateItemsAtKeys","updateItemsFromDetail","utils_1","DataProviderHandler","constructor","addBusyState","callback","this","handleMutateEvent","event","resolver","updatedData","onDataUpdated","handleRefreshEvent","_fetchDataAndNotify","addEventListener","destroy","undefined","removeEventListener","asyncIterable","fetchFirst","contextArray","slice","_fetchData","hooks_1","DataProviderHandler_1","useDataProvider","setFetchedData","useState","dataProviderHandler","useRef","useEffect","current","__importDefault","mod","__esModule","default","jsx_runtime_1","translationBundle_1","UNSAFE_useMessagesContext_1","UNSAFE_MessageToast_1","useDataProvider_1","ojcontext_1","ojvcomponent_1","MessageToast","registerCustomElement","detailTemplateValue","iconTemplateValue","messageTemplates","offset","position","onOjClose","initialRender","rootRef","dpKey","setDpKey","Symbol","useCallback","description","getContext","getBusyContext","dataArr","messagesContext","useMemo","jsx","Root","ref","children","MessagesContext","Provider","detailRendererKey","iconRendererKey","onClose","renderers","properties","type","enumValues","extension","_DYNAMIC_SLOT","prop","isTemplate","events","ojClose"],"sources":["message-toast.js"],"mappings":"AAAAA,OAAO,0CAA0C,CAAC,UAAW,YAAY,SAAUC,QAASC,GACxF,aA0BA,SAASC,EAAkBC,EAASC,EAAYC,EAAmBC,GAC/D,MAAMC,EAAc,IAAID,GAcxB,OAbAH,EAAQK,SAAQ,CAACC,EAAYC,KACzB,MAAMC,EAAU,CACZC,KAAMR,EAAWM,GACjBG,IAAKR,EAAkBK,IAAQG,IAC/BC,SAAUT,EAAkBK,IAE5BD,GAAc,EACdF,EAAYQ,OAAON,EAAY,EAAGE,GAGlCJ,EAAYS,KAAKL,EACrB,IAEGJ,CACX,CAoCAU,eAAeC,EAAgBC,EAAcC,GACzC,MAAMC,EAAc,GACdC,SAAiBH,EAAaI,YAAY,CAAEH,UAASE,QAC3D,IAAK,MAAMT,KAAOO,EACd,GAAIE,EAAQE,IAAIX,GAAM,CAClB,MAAMY,EAASH,EAAQI,IAAIb,GAC3BQ,EAAYL,KAAK,IAAKS,EAAQZ,OAClC,CAEJ,OAAOQ,CACX,CACA,SAASM,EAAcC,EAAaf,GAChC,OAAIe,EAAYJ,IAAIX,GACTe,EAAYF,IAAIb,IAEnB,CACZ,CACA,SAASgB,EAAqB1B,EAASG,GACnC,MAAMC,EAAc,IAAID,GAOxB,OANAH,EAAQ2B,MAAK,CAACC,EAAGC,IAAMA,EAAID,IAC3B5B,EAAQK,SAASE,IACTA,EAAQH,EAAY0B,QACpB1B,EAAYQ,OAAOL,EAAO,EAC9B,IAEGH,CACX,CAvGA2B,OAAOC,eAAelC,EAAS,aAAc,CAAEmC,OAAO,IACtDnC,EAAQoC,uCAAoC,EAmB5CpC,EAAQoC,kCAlBRpB,eAAiDqB,EAAQC,EAAapB,GAClE,MAAMqB,IAAEA,EAAGC,OAAEA,EAAMC,OAAEA,GAAWJ,GAAU,CAAC,EACrCV,EAAc,IAAIe,IACxB,IAAK,MAA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H,EAASS,kBAAmBxB,EAAqByB,gBAAiBxB,EAAmBE,OAAQA,EAAQuB,QAASrB,EAAWD,SAAUA,EAAUuB,UAAWzB,GAAoBM,MAAa,GAC5b,eAAgB,CAAEoB,WAAc,CAAEpI,KAAQ,CAAEqI,KAAQ,gBAAkB7B,oBAAuB,CAAE6B,KAAQ,mBAAqB5B,kBAAqB,CAAE4B,KAAQ,mBAAqB1B,OAAU,CAAE0B,KAAQ,iBAAmBzB,SAAY,CAAEyB,KAAQ,SAAUC,WAAc,CAAC,SAAU,MAAO,YAAa,UAAW,eAAgB,aAAc,WAAY,cAAe,YAAa,kBAAqBC,UAAa,CAAEC,cAAiB,CAAEC,KAAQ,mBAAoBC,WAAc,IAAOC,OAAU,CAAEC,QAAW,CAAC,IAAO,CAAEjC,OAAU,EAAGC,SAAY,UAAY,CACliB,2BAA4BZ,EAAoBF,SAExD"}
1
+ {"version":3,"file":"message-toast.js","names":["define","require","exports","addItemsAtIndices","indices","itemsToAdd","itemMetadataToAdd","items","returnItems","forEach","addAtIndex","index","addItem","data","key","metadata","splice","push","async","fetchDataByKeys","dataProvider","keys","fetchedData","results","fetchByKeys","has","result","get","getIndexByKey","keyIndexMap","removeItemsAtIndices","sort","a","b","length","Object","defineProperty","value","getUpdatedItemsFromMutationDetail","detail","currentData","add","remove","update","Map","item","entries","set","mutatedData","indexes","size","indicesToRemove","removeItemsAtKeys","removeItemsFromDetail","addBeforeKeys","treatedData","treatedMetaData","fetchResults","map","itemContext","beforeKeys","addIndices","addItemsBeforeKeys","Array","fill","addItemsAtEnd","addItemsFromDetail","itemsToUpdate","itemMetadataToUpdate","updateAtIndex","updateItemsAtIndices","updateItemsAtKeys","updateItemsFromDetail","utils_1","DataProviderHandler","constructor","addBusyState","callback","this","handleMutateEvent","event","resolver","updatedData","onDataUpdated","handleRefreshEvent","_fetchDataAndNotify","addEventListener","destroy","undefined","removeEventListener","asyncIterable","fetchFirst","contextArray","slice","_fetchData","hooks_1","DataProviderHandler_1","useDataProvider","setFetchedData","useState","dataProviderHandler","useRef","useEffect","current","__importDefault","mod","__esModule","default","jsx_runtime_1","translationBundle_1","UNSAFE_useMessagesContext_1","UNSAFE_MessageToast_1","useDataProvider_1","ojcontext_1","ojvcomponent_1","MessageToast","registerCustomElement","detailTemplateValue","iconTemplateValue","messageTemplates","offset","position","onOjClose","initialRender","uniqueId","getUniqueId","rootRef","dpKey","setDpKey","Symbol","useCallback","description","getContext","getBusyContext","dataArr","UNSAFE_messagesLayerId","messagesContext","useMemo","jsx","Root","ref","children","MessagesContext","Provider","detailRendererKey","iconRendererKey","onClose","renderers","properties","type","enumValues","extension","_DYNAMIC_SLOT","prop","isTemplate","events","ojClose"],"sources":["message-toast.js"],"mappings":"AAAAA,OAAO,0CAA0C,CAAC,UAAW,YAAY,SAAUC,QAASC,GACxF,aA0BA,SAASC,EAAkBC,EAASC,EAAYC,EAAmBC,GAC/D,MAAMC,EAAc,IAAID,GAcxB,OAbAH,EAAQK,SAAQ,CAACC,EAAYC,KACzB,MAAMC,EAAU,CACZC,KAAMR,EAAWM,GACjBG,IAAKR,EAAkBK,IAAQG,IAC/BC,SAAUT,EAAkBK,IAE5BD,GAAc,EACdF,EAAYQ,OAAON,EAAY,EAAGE,GAGlCJ,EAAYS,KAAKL,EACrB,IAEGJ,CACX,CAoCAU,eAAeC,EAAgBC,EAAcC,GACzC,MAAMC,EAAc,GACdC,SAAiBH,EAAaI,YAAY,CAAEH,UAASE,QAC3D,IAAK,MAAMT,KAAOO,EACd,GAAIE,EAAQE,IAAIX,GAAM,CAClB,MAAMY,EAASH,EAAQI,IAAIb,GAC3BQ,EAAYL,KAAK,IAAKS,EAAQZ,OAClC,CAEJ,OAAOQ,CACX,CACA,SAASM,EAAcC,EAAaf,GAChC,OAAIe,EAAYJ,IAAIX,GACTe,EAAYF,IAAIb,IAEnB,CACZ,CACA,SAASgB,EAAqB1B,EAASG,GACnC,MAAMC,EAAc,IAAID,GAOxB,OANAH,EAAQ2B,MAAK,C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uD,gBAChF,QACP,KACH,EAAIpC,EAAQO,YAAW,KACfqB,EAAcpB,QACdoB,EAAcpB,SAAU,EAG5ByB,EAASC,SAAS,GACnB,CAACpH,IACJ,MAAQA,KAAMyH,IAAY,EAAItB,EAAkBf,iBAAiB,CAC7DpF,OACA+D,iBAEE2D,EAAyB,qBAAqBX,EAASrB,UACvDiC,GAAkB,EAAIzC,EAAQ0C,UAAS,KAAM,CAAG7D,eAAc2D,4BAA2B,CAAC3D,EAAc2D,IAC9G,OAAQ,EAAI3B,EAAc8B,KAAKxB,EAAeyB,KAAM,CAAEC,IAAKd,EAAS,4BAA6BS,EAAwBM,UAAU,EAAIjC,EAAc8B,KAAK5B,EAA4BgC,gBAAgBC,SAAU,CAAE1G,MAAOmG,EAAiBK,UAAU,EAAIjC,EAAc8B,KAAK3B,EAAsBI,aAAc,CAAEtG,KAAMyH,EAASU,kBAAmB3B,EAAqB4B,gBAAiB3B,EAAmBE,OAAQA,EAAQ0B,QAASxB,EAAWD,SAAUA,EAAU0B,UAAW5B,GAAoBQ,MACve,GACyG,eAAgB,CAAEqB,WAAc,CAAEvI,KAAQ,CAAEwI,KAAQ,gBAAkBhC,oBAAuB,CAAEgC,KAAQ,mBAAqB/B,kBAAqB,CAAE+B,KAAQ,mBAAqB7B,OAAU,CAAE6B,KAAQ,iBAAmB5B,SAAY,CAAE4B,KAAQ,SAAUC,WAAc,CAAC,SAAU,MAAO,YAAa,UAAW,eAAgB,aAAc,WAAY,cAAe,YAAa,kBAAqBC,UAAa,CAAEC,cAAiB,CAAEC,KAAQ,mBAAoBC,WAAc,IAAOC,OAAU,CAAEC,QAAW,CAAC,IAAO,CAAEpC,OAAU,EAAGC,SAAY,UAAY,CACxoB,2BAA4BZ,EAAoBF,SAExD"}
@@ -0,0 +1,8 @@
1
+ import { ProgressBarWebElementBase } from './ProgressBarWebElementBase';
2
+ /**
3
+ * The component WebElement for [oj-c-progress-bar](../../../oj-c/docs/oj.ProgressBar.html).
4
+ * Do not instantiate this class directly, instead, use
5
+ * [findProgressBar](../modules.html#findProgressBar).
6
+ */
7
+ export declare class ProgressBarWebElement extends ProgressBarWebElementBase {
8
+ }
@@ -1,19 +1,4 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  exports.ProgressBarWebElement = void 0;
19
4
  var ProgressBarWebElementBase_1 = require("./ProgressBarWebElementBase");
@@ -22,11 +7,7 @@ var ProgressBarWebElementBase_1 = require("./ProgressBarWebElementBase");
22
7
  * Do not instantiate this class directly, instead, use
23
8
  * [findProgressBar](../modules.html#findProgressBar).
24
9
  */
25
- var ProgressBarWebElement = /** @class */ (function (_super) {
26
- __extends(ProgressBarWebElement, _super);
27
- function ProgressBarWebElement() {
28
- return _super !== null && _super.apply(this, arguments) || this;
29
- }
30
- return ProgressBarWebElement;
31
- }(ProgressBarWebElementBase_1.ProgressBarWebElementBase));
10
+ class ProgressBarWebElement extends ProgressBarWebElementBase_1.ProgressBarWebElementBase {
11
+ }
32
12
  exports.ProgressBarWebElement = ProgressBarWebElement;
13
+ //# sourceMappingURL=ProgressBarWebElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressBarWebElement.js","sourceRoot":"","sources":["ProgressBarWebElement.ts"],"names":[],"mappings":";;;AAAA,yEAAwE;AAExE;;;;GAIG;AACH,MAAa,qBAAsB,SAAQ,qDAAyB;CAEnE;AAFD,sDAEC","sourcesContent":["import { ProgressBarWebElementBase } from './ProgressBarWebElementBase';\n\n/**\n * The component WebElement for [oj-c-progress-bar](../../../oj-c/docs/oj.ProgressBar.html).\n * Do not instantiate this class directly, instead, use\n * [findProgressBar](../modules.html#findProgressBar).\n */\nexport class ProgressBarWebElement extends ProgressBarWebElementBase {\n // Put overrides here\n}\n"]}
@@ -0,0 +1,30 @@
1
+ import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';
2
+ /**
3
+ * This is the base class for oj-c-progress-bar 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, ProgressBarWebElement.ts.
7
+ */
8
+ export declare class ProgressBarWebElementBase extends OjWebElement {
9
+ /**
10
+ * Gets the value of <code>max</code> property.
11
+ * The maximum allowed value.
12
+ * @return The value of <code>max</code> property.
13
+ *
14
+ */
15
+ getMax(): Promise<number>;
16
+ /**
17
+ * Gets the value of <code>value</code> property.
18
+ * The value of the Progress Bar.
19
+ * @return The value of <code>value</code> property.
20
+ *
21
+ */
22
+ getValue(): Promise<number>;
23
+ /**
24
+ * Gets the value of <code>edge</code> property.
25
+ * Specifies whether the progress bar is on the top edge of a container
26
+ * @return The value of <code>edge</code> property.
27
+ *
28
+ */
29
+ getEdge(): Promise<string>;
30
+ }
@@ -1,19 +1,4 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  exports.ProgressBarWebElementBase = void 0;
19
4
  var elements_1 = require("@oracle/oraclejet-webdriver/elements");
@@ -23,38 +8,34 @@ var elements_1 = require("@oracle/oraclejet-webdriver/elements");
23
8
  * during the next generation.
24
9
  * Put overrides into the WebElements's subclass, ProgressBarWebElement.ts.
25
10
  */
26
- var ProgressBarWebElementBase = /** @class */ (function (_super) {
27
- __extends(ProgressBarWebElementBase, _super);
28
- function ProgressBarWebElementBase() {
29
- return _super !== null && _super.apply(this, arguments) || this;
30
- }
11
+ class ProgressBarWebElementBase extends elements_1.OjWebElement {
31
12
  /**
32
13
  * Gets the value of <code>max</code> property.
33
14
  * The maximum allowed value.
34
15
  * @return The value of <code>max</code> property.
35
16
  *
36
17
  */
37
- ProgressBarWebElementBase.prototype.getMax = function () {
18
+ getMax() {
38
19
  return this.getProperty('max');
39
- };
20
+ }
40
21
  /**
41
22
  * Gets the value of <code>value</code> property.
42
23
  * The value of the Progress Bar.
43
24
  * @return The value of <code>value</code> property.
44
25
  *
45
26
  */
46
- ProgressBarWebElementBase.prototype.getValue = function () {
27
+ getValue() {
47
28
  return this.getProperty('value');
48
- };
29
+ }
49
30
  /**
50
31
  * Gets the value of <code>edge</code> property.
51
32
  * Specifies whether the progress bar is on the top edge of a container
52
33
  * @return The value of <code>edge</code> property.
53
34
  *
54
35
  */
55
- ProgressBarWebElementBase.prototype.getEdge = function () {
36
+ getEdge() {
56
37
  return this.getProperty('edge');
57
- };
58
- return ProgressBarWebElementBase;
59
- }(elements_1.OjWebElement));
38
+ }
39
+ }
60
40
  exports.ProgressBarWebElementBase = ProgressBarWebElementBase;
41
+ //# sourceMappingURL=ProgressBarWebElementBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressBarWebElementBase.js","sourceRoot":"","sources":["ProgressBarWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,yBAA0B,SAAQ,uBAAY;IACzD;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAS,KAAK,CAAC,CAAC;IACzC,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAS,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;OAKG;IACI,OAAO;QACZ,OAAO,IAAI,CAAC,WAAW,CAAS,MAAM,CAAC,CAAC;IAC1C,CAAC;CACF;AA9BD,8DA8BC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-progress-bar 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, ProgressBarWebElement.ts.\n */\nexport class ProgressBarWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>max</code> property.\n * The maximum allowed value.\n * @return The value of <code>max</code> property.\n *\n */\n public getMax(): Promise<number> {\n return this.getProperty<number>('max');\n }\n\n /**\n * Gets the value of <code>value</code> property.\n * The value of the Progress Bar.\n * @return The value of <code>value</code> property.\n *\n */\n public getValue(): Promise<number> {\n return this.getProperty<number>('value');\n }\n\n /**\n * Gets the value of <code>edge</code> property.\n * Specifies whether the progress bar is on the top edge of a container\n * @return The value of <code>edge</code> property.\n *\n */\n public getEdge(): Promise<string> {\n return this.getProperty<string>('edge');\n }\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import { By } from 'selenium-webdriver';
2
+ import { DriverLike } from '@oracle/oraclejet-webdriver';
3
+ import { ProgressBarWebElement } from './ProgressBarWebElement';
4
+ export { ProgressBarWebElement };
5
+ /**
6
+ * Retrieve an instance of [[ProgressBarWebElement]].
7
+ * @example
8
+ * ```javascript
9
+ * import { findProgressBar } from '@oracle/oraclejet-core-pack/webdriver';
10
+ * const el = await findProgressBar(driver, By.id('my-oj-c-progress-bar'));
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 findProgressBar(driver: DriverLike, by: By): Promise<ProgressBarWebElement>;
@@ -1,40 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
2
  Object.defineProperty(exports, "__esModule", { value: true });
39
3
  exports.findProgressBar = exports.ProgressBarWebElement = void 0;
40
4
  var oraclejet_webdriver_1 = require("@oracle/oraclejet-webdriver");
@@ -52,23 +16,15 @@ Object.defineProperty(exports, "ProgressBarWebElement", { enumerable: true, get:
52
16
  * document. If WebElement is passed, the search will be relative to this element.
53
17
  * @param by The locator with which to find the element
54
18
  */
55
- function findProgressBar(driver, by) {
56
- return __awaiter(this, void 0, void 0, function () {
57
- var webEl, tagName;
58
- return __generator(this, function (_a) {
59
- switch (_a.label) {
60
- case 0: return [4 /*yield*/, driver.findElement(by)];
61
- case 1:
62
- webEl = _a.sent();
63
- if (!!(webEl instanceof ProgressBarWebElement_1.ProgressBarWebElement)) return [3 /*break*/, 3];
64
- return [4 /*yield*/, webEl.getTagName()];
65
- case 2:
66
- tagName = _a.sent();
67
- throw Error("findProgressBar(".concat(by, ") created ").concat(webEl.constructor.name, " for <").concat(tagName, ">, but expected ").concat(ProgressBarWebElement_1.ProgressBarWebElement.name));
68
- case 3: return [2 /*return*/, webEl];
69
- }
70
- });
71
- });
19
+ async function findProgressBar(driver, by) {
20
+ const webEl = await driver.findElement(by);
21
+ // Check that the element is of type ProgressBarWebElement
22
+ if (!(webEl instanceof ProgressBarWebElement_1.ProgressBarWebElement)) {
23
+ const tagName = await webEl.getTagName();
24
+ throw Error(`findProgressBar(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${ProgressBarWebElement_1.ProgressBarWebElement.name}`);
25
+ }
26
+ return webEl;
72
27
  }
73
28
  exports.findProgressBar = findProgressBar;
74
29
  (0, oraclejet_webdriver_1.register)('oj-c-progress-bar', ProgressBarWebElement_1.ProgressBarWebElement);
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,mEAAmE;AACnE,iEAAgE;AACvD,sGADA,6CAAqB,OACA;AAE9B;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,eAAe,CAAC,MAAkB,EAAE,EAAM;IAC9D,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC3C,0DAA0D;IAC1D,IAAI,CAAC,CAAC,KAAK,YAAY,6CAAqB,CAAC,EAAE;QAC7C,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC;QACzC,MAAM,KAAK,CACT,mBAAmB,EAAE,aAAa,KAAK,CAAC,WAAW,CAAC,IAAI,SAAS,OAAO,mBAAmB,6CAAqB,CAAC,IAAI,EAAE,CACxH,CAAC;KACH;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAVD,0CAUC;AAED,IAAA,8BAAQ,EAAC,mBAAmB,EAAE,6CAAqB,CAAC,CAAC","sourcesContent":["import { By } from 'selenium-webdriver';\nimport { DriverLike, register } from '@oracle/oraclejet-webdriver';\nimport { ProgressBarWebElement } from './ProgressBarWebElement';\nexport { ProgressBarWebElement };\n\n/**\n * Retrieve an instance of [[ProgressBarWebElement]].\n * @example\n * ```javascript\n * import { findProgressBar } from '@oracle/oraclejet-core-pack/webdriver';\n * const el = await findProgressBar(driver, By.id('my-oj-c-progress-bar'));\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 findProgressBar(driver: DriverLike, by: By): Promise<ProgressBarWebElement> {\n const webEl = await driver.findElement(by);\n // Check that the element is of type ProgressBarWebElement\n if (!(webEl instanceof ProgressBarWebElement)) {\n const tagName = await webEl.getTagName();\n throw Error(\n `findProgressBar(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${ProgressBarWebElement.name}`\n );\n }\n return webEl;\n}\n\nregister('oj-c-progress-bar', ProgressBarWebElement);\n"]}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "progress-bar",
3
- "version": "15.0.2",
4
- "jetVersion": "^15.0.2",
3
+ "version": "15.0.4",
4
+ "jetVersion": "^15.0.4",
5
5
  "pack": "oj-c",
6
6
  "type": "composite",
7
7
  "license": "https://opensource.org/licenses/UPL",
@@ -0,0 +1,8 @@
1
+ import { ProgressCircleWebElementBase } from './ProgressCircleWebElementBase';
2
+ /**
3
+ * The component WebElement for [oj-c-progress-circle](../../../oj-c/docs/oj.ProgressCircle.html).
4
+ * Do not instantiate this class directly, instead, use
5
+ * [findProgressCircle](../modules.html#findProgressCircle).
6
+ */
7
+ export declare class ProgressCircleWebElement extends ProgressCircleWebElementBase {
8
+ }
@@ -1,19 +1,4 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  exports.ProgressCircleWebElement = void 0;
19
4
  var ProgressCircleWebElementBase_1 = require("./ProgressCircleWebElementBase");
@@ -22,11 +7,7 @@ var ProgressCircleWebElementBase_1 = require("./ProgressCircleWebElementBase");
22
7
  * Do not instantiate this class directly, instead, use
23
8
  * [findProgressCircle](../modules.html#findProgressCircle).
24
9
  */
25
- var ProgressCircleWebElement = /** @class */ (function (_super) {
26
- __extends(ProgressCircleWebElement, _super);
27
- function ProgressCircleWebElement() {
28
- return _super !== null && _super.apply(this, arguments) || this;
29
- }
30
- return ProgressCircleWebElement;
31
- }(ProgressCircleWebElementBase_1.ProgressCircleWebElementBase));
10
+ class ProgressCircleWebElement extends ProgressCircleWebElementBase_1.ProgressCircleWebElementBase {
11
+ }
32
12
  exports.ProgressCircleWebElement = ProgressCircleWebElement;
13
+ //# sourceMappingURL=ProgressCircleWebElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressCircleWebElement.js","sourceRoot":"","sources":["ProgressCircleWebElement.ts"],"names":[],"mappings":";;;AAAA,+EAA8E;AAE9E;;;;GAIG;AACH,MAAa,wBAAyB,SAAQ,2DAA4B;CAEzE;AAFD,4DAEC","sourcesContent":["import { ProgressCircleWebElementBase } from './ProgressCircleWebElementBase';\n\n/**\n * The component WebElement for [oj-c-progress-circle](../../../oj-c/docs/oj.ProgressCircle.html).\n * Do not instantiate this class directly, instead, use\n * [findProgressCircle](../modules.html#findProgressCircle).\n */\nexport class ProgressCircleWebElement extends ProgressCircleWebElementBase {\n // Put overrides here\n}\n"]}
@@ -0,0 +1,30 @@
1
+ import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';
2
+ /**
3
+ * This is the base class for oj-c-progress-circle 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, ProgressCircleWebElement.ts.
7
+ */
8
+ export declare class ProgressCircleWebElementBase extends OjWebElement {
9
+ /**
10
+ * Gets the value of <code>max</code> property.
11
+ * The maximum allowed value.
12
+ * @return The value of <code>max</code> property.
13
+ *
14
+ */
15
+ getMax(): Promise<number>;
16
+ /**
17
+ * Gets the value of <code>value</code> property.
18
+ * The value of the Progress Circle.
19
+ * @return The value of <code>value</code> property.
20
+ *
21
+ */
22
+ getValue(): Promise<number>;
23
+ /**
24
+ * Gets the value of <code>size</code> property.
25
+ * Specifies the size of the progress circle.
26
+ * @return The value of <code>size</code> property.
27
+ *
28
+ */
29
+ getSizeProperty(): Promise<string>;
30
+ }
@@ -1,19 +1,4 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  exports.ProgressCircleWebElementBase = void 0;
19
4
  var elements_1 = require("@oracle/oraclejet-webdriver/elements");
@@ -23,38 +8,34 @@ var elements_1 = require("@oracle/oraclejet-webdriver/elements");
23
8
  * during the next generation.
24
9
  * Put overrides into the WebElements's subclass, ProgressCircleWebElement.ts.
25
10
  */
26
- var ProgressCircleWebElementBase = /** @class */ (function (_super) {
27
- __extends(ProgressCircleWebElementBase, _super);
28
- function ProgressCircleWebElementBase() {
29
- return _super !== null && _super.apply(this, arguments) || this;
30
- }
11
+ class ProgressCircleWebElementBase extends elements_1.OjWebElement {
31
12
  /**
32
13
  * Gets the value of <code>max</code> property.
33
14
  * The maximum allowed value.
34
15
  * @return The value of <code>max</code> property.
35
16
  *
36
17
  */
37
- ProgressCircleWebElementBase.prototype.getMax = function () {
18
+ getMax() {
38
19
  return this.getProperty('max');
39
- };
20
+ }
40
21
  /**
41
22
  * Gets the value of <code>value</code> property.
42
23
  * The value of the Progress Circle.
43
24
  * @return The value of <code>value</code> property.
44
25
  *
45
26
  */
46
- ProgressCircleWebElementBase.prototype.getValue = function () {
27
+ getValue() {
47
28
  return this.getProperty('value');
48
- };
29
+ }
49
30
  /**
50
31
  * Gets the value of <code>size</code> property.
51
32
  * Specifies the size of the progress circle.
52
33
  * @return The value of <code>size</code> property.
53
34
  *
54
35
  */
55
- ProgressCircleWebElementBase.prototype.getSizeProperty = function () {
36
+ getSizeProperty() {
56
37
  return this.getProperty('size');
57
- };
58
- return ProgressCircleWebElementBase;
59
- }(elements_1.OjWebElement));
38
+ }
39
+ }
60
40
  exports.ProgressCircleWebElementBase = ProgressCircleWebElementBase;
41
+ //# sourceMappingURL=ProgressCircleWebElementBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressCircleWebElementBase.js","sourceRoot":"","sources":["ProgressCircleWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,4BAA6B,SAAQ,uBAAY;IAC5D;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAS,KAAK,CAAC,CAAC;IACzC,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAS,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;OAKG;IACI,eAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAS,MAAM,CAAC,CAAC;IAC1C,CAAC;CACF;AA9BD,oEA8BC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-progress-circle 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, ProgressCircleWebElement.ts.\n */\nexport class ProgressCircleWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>max</code> property.\n * The maximum allowed value.\n * @return The value of <code>max</code> property.\n *\n */\n public getMax(): Promise<number> {\n return this.getProperty<number>('max');\n }\n\n /**\n * Gets the value of <code>value</code> property.\n * The value of the Progress Circle.\n * @return The value of <code>value</code> property.\n *\n */\n public getValue(): Promise<number> {\n return this.getProperty<number>('value');\n }\n\n /**\n * Gets the value of <code>size</code> property.\n * Specifies the size of the progress circle.\n * @return The value of <code>size</code> property.\n *\n */\n public getSizeProperty(): Promise<string> {\n return this.getProperty<string>('size');\n }\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import { By } from 'selenium-webdriver';
2
+ import { DriverLike } from '@oracle/oraclejet-webdriver';
3
+ import { ProgressCircleWebElement } from './ProgressCircleWebElement';
4
+ export { ProgressCircleWebElement };
5
+ /**
6
+ * Retrieve an instance of [[ProgressCircleWebElement]].
7
+ * @example
8
+ * ```javascript
9
+ * import { findProgressCircle } from '@oracle/oraclejet-core-pack/webdriver';
10
+ * const el = await findProgressCircle(driver, By.id('my-oj-c-progress-circle'));
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 findProgressCircle(driver: DriverLike, by: By): Promise<ProgressCircleWebElement>;
@@ -1,40 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
2
  Object.defineProperty(exports, "__esModule", { value: true });
39
3
  exports.findProgressCircle = exports.ProgressCircleWebElement = void 0;
40
4
  var oraclejet_webdriver_1 = require("@oracle/oraclejet-webdriver");
@@ -52,23 +16,15 @@ Object.defineProperty(exports, "ProgressCircleWebElement", { enumerable: true, g
52
16
  * document. If WebElement is passed, the search will be relative to this element.
53
17
  * @param by The locator with which to find the element
54
18
  */
55
- function findProgressCircle(driver, by) {
56
- return __awaiter(this, void 0, void 0, function () {
57
- var webEl, tagName;
58
- return __generator(this, function (_a) {
59
- switch (_a.label) {
60
- case 0: return [4 /*yield*/, driver.findElement(by)];
61
- case 1:
62
- webEl = _a.sent();
63
- if (!!(webEl instanceof ProgressCircleWebElement_1.ProgressCircleWebElement)) return [3 /*break*/, 3];
64
- return [4 /*yield*/, webEl.getTagName()];
65
- case 2:
66
- tagName = _a.sent();
67
- throw Error("findProgressCircle(".concat(by, ") created ").concat(webEl.constructor.name, " for <").concat(tagName, ">, but expected ").concat(ProgressCircleWebElement_1.ProgressCircleWebElement.name));
68
- case 3: return [2 /*return*/, webEl];
69
- }
70
- });
71
- });
19
+ async function findProgressCircle(driver, by) {
20
+ const webEl = await driver.findElement(by);
21
+ // Check that the element is of type ProgressCircleWebElement
22
+ if (!(webEl instanceof ProgressCircleWebElement_1.ProgressCircleWebElement)) {
23
+ const tagName = await webEl.getTagName();
24
+ throw Error(`findProgressCircle(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${ProgressCircleWebElement_1.ProgressCircleWebElement.name}`);
25
+ }
26
+ return webEl;
72
27
  }
73
28
  exports.findProgressCircle = findProgressCircle;
74
29
  (0, oraclejet_webdriver_1.register)('oj-c-progress-circle', ProgressCircleWebElement_1.ProgressCircleWebElement);
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,mEAAmE;AACnE,uEAAsE;AAC7D,yGADA,mDAAwB,OACA;AAEjC;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,kBAAkB,CACtC,MAAkB,EAClB,EAAM;IAEN,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC3C,6DAA6D;IAC7D,IAAI,CAAC,CAAC,KAAK,YAAY,mDAAwB,CAAC,EAAE;QAChD,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC;QACzC,MAAM,KAAK,CACT,sBAAsB,EAAE,aAAa,KAAK,CAAC,WAAW,CAAC,IAAI,SAAS,OAAO,mBAAmB,mDAAwB,CAAC,IAAI,EAAE,CAC9H,CAAC;KACH;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAbD,gDAaC;AAED,IAAA,8BAAQ,EAAC,sBAAsB,EAAE,mDAAwB,CAAC,CAAC","sourcesContent":["import { By } from 'selenium-webdriver';\nimport { DriverLike, register } from '@oracle/oraclejet-webdriver';\nimport { ProgressCircleWebElement } from './ProgressCircleWebElement';\nexport { ProgressCircleWebElement };\n\n/**\n * Retrieve an instance of [[ProgressCircleWebElement]].\n * @example\n * ```javascript\n * import { findProgressCircle } from '@oracle/oraclejet-core-pack/webdriver';\n * const el = await findProgressCircle(driver, By.id('my-oj-c-progress-circle'));\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 findProgressCircle(\n driver: DriverLike,\n by: By\n): Promise<ProgressCircleWebElement> {\n const webEl = await driver.findElement(by);\n // Check that the element is of type ProgressCircleWebElement\n if (!(webEl instanceof ProgressCircleWebElement)) {\n const tagName = await webEl.getTagName();\n throw Error(\n `findProgressCircle(${by}) created ${webEl.constructor.name} for <${tagName}>, but expected ${ProgressCircleWebElement.name}`\n );\n }\n return webEl;\n}\n\nregister('oj-c-progress-circle', ProgressCircleWebElement);\n"]}