@oracle/oraclejet-webdriver 16.1.6 → 17.0.1

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 (249) hide show
  1. package/elements/OjWebElement.js +2 -26
  2. package/elements/OjWebElement.js.map +1 -1
  3. package/elements/OjWebElement.ts +6 -40
  4. package/elements/oj-chart/OjChartBase.ts +8 -0
  5. package/elements/oj-checkboxset/OjCheckboxset.js +11 -12
  6. package/elements/oj-checkboxset/OjCheckboxset.js.map +1 -1
  7. package/elements/oj-checkboxset/OjCheckboxset.ts +14 -14
  8. package/elements/oj-combobox-many/OjComboboxMany.js +11 -20
  9. package/elements/oj-combobox-many/OjComboboxMany.js.map +1 -1
  10. package/elements/oj-combobox-many/OjComboboxMany.ts +14 -22
  11. package/elements/oj-combobox-one/OjComboboxOne.js +9 -18
  12. package/elements/oj-combobox-one/OjComboboxOne.js.map +1 -1
  13. package/elements/oj-combobox-one/OjComboboxOne.ts +12 -20
  14. package/elements/oj-data-grid/OjDataGridBase.ts +24 -0
  15. package/elements/oj-date-picker/OjDatePickerBase.js +20 -20
  16. package/elements/oj-date-picker/OjDatePickerBase.ts +53 -20
  17. package/elements/oj-date-time-picker/OjDateTimePickerBase.js +16 -16
  18. package/elements/oj-date-time-picker/OjDateTimePickerBase.ts +48 -16
  19. package/elements/oj-diagram/OjDiagramBase.ts +4 -0
  20. package/elements/oj-file-picker/OjFilePicker.js +90 -24
  21. package/elements/oj-file-picker/OjFilePicker.js.map +1 -1
  22. package/elements/oj-file-picker/OjFilePicker.ts +101 -27
  23. package/elements/oj-input-date/OjInputDateBase.js +7 -7
  24. package/elements/oj-input-date/OjInputDateBase.ts +37 -7
  25. package/elements/oj-input-date-time/OjInputDateTimeBase.js +7 -7
  26. package/elements/oj-input-date-time/OjInputDateTimeBase.ts +37 -7
  27. package/elements/oj-list-view/OjListView.js +6 -6
  28. package/elements/oj-list-view/OjListView.js.map +1 -1
  29. package/elements/oj-list-view/OjListView.ts +9 -8
  30. package/elements/oj-navigation-list/OjNavigationList.js +8 -10
  31. package/elements/oj-navigation-list/OjNavigationList.js.map +1 -1
  32. package/elements/oj-navigation-list/OjNavigationList.ts +11 -12
  33. package/elements/oj-navigation-list/OjNavigationListBase.js +2 -2
  34. package/elements/oj-navigation-list/OjNavigationListBase.ts +3 -2
  35. package/elements/oj-popup/OjPopupBase.js +1 -1
  36. package/elements/oj-popup/OjPopupBase.ts +1 -1
  37. package/elements/oj-row-expander/OjRowExpanderBase.ts +4 -0
  38. package/elements/oj-select-many/OjSelectMany.js +11 -20
  39. package/elements/oj-select-many/OjSelectMany.js.map +1 -1
  40. package/elements/oj-select-many/OjSelectMany.ts +14 -22
  41. package/elements/oj-select-one/OjSelectOne.js +9 -17
  42. package/elements/oj-select-one/OjSelectOne.js.map +1 -1
  43. package/elements/oj-select-one/OjSelectOne.ts +12 -19
  44. package/elements/oj-select-single/OjSelectSingle.js +7 -14
  45. package/elements/oj-select-single/OjSelectSingle.js.map +1 -1
  46. package/elements/oj-select-single/OjSelectSingle.ts +10 -16
  47. package/elements/oj-stream-list/OjStreamList.js +28 -33
  48. package/elements/oj-stream-list/OjStreamList.js.map +1 -1
  49. package/elements/oj-stream-list/OjStreamList.ts +28 -34
  50. package/elements/oj-sunburst/OjSunburstBase.ts +8 -0
  51. package/elements/oj-swipe-actions/OjSwipeActions.js +7 -10
  52. package/elements/oj-swipe-actions/OjSwipeActions.js.map +1 -1
  53. package/elements/oj-swipe-actions/OjSwipeActions.ts +11 -15
  54. package/elements/oj-tab-bar/OjTabBarBase.ts +1 -0
  55. package/elements/oj-table/OjTable.js +100 -81
  56. package/elements/oj-table/OjTable.js.map +1 -1
  57. package/elements/oj-table/OjTable.ts +146 -97
  58. package/elements/oj-table/OjTableBase.js +9 -0
  59. package/elements/oj-table/OjTableBase.js.map +1 -1
  60. package/elements/oj-table/OjTableBase.ts +10 -0
  61. package/elements/oj-tree-view/OjTreeView.js +25 -29
  62. package/elements/oj-tree-view/OjTreeView.js.map +1 -1
  63. package/elements/oj-tree-view/OjTreeView.ts +34 -35
  64. package/elements/oj-treemap/OjTreemapBase.ts +8 -0
  65. package/index.js +28 -139
  66. package/index.js.map +1 -1
  67. package/index.ts +29 -151
  68. package/lib/busy-context-utils.js +28 -46
  69. package/lib/busy-context-utils.js.map +1 -1
  70. package/lib/busy-context-utils.ts +39 -48
  71. package/lib/dataprovider-utils.js +24 -28
  72. package/lib/dataprovider-utils.js.map +1 -1
  73. package/lib/dataprovider-utils.ts +28 -31
  74. package/lib/no-require-jet.js +12 -0
  75. package/lib/no-require-jet.js.map +1 -0
  76. package/lib/no-require-jet.ts +8 -0
  77. package/lib/oj-module-proxy.js +113 -0
  78. package/lib/oj-module-proxy.js.map +1 -0
  79. package/lib/oj-module-proxy.ts +123 -0
  80. package/lib/viewmodel-utils.js +99 -0
  81. package/lib/viewmodel-utils.js.map +1 -0
  82. package/lib/viewmodel-utils.ts +107 -0
  83. package/package.json +6 -6
  84. package/tsconfig.json +2 -1
  85. package/wdtsdoc/assets/navigation.js +1 -1
  86. package/wdtsdoc/assets/search.js +1 -1
  87. package/wdtsdoc/classes/elements.OjAccordion.html +2 -2
  88. package/wdtsdoc/classes/elements.OjActionCard.html +2 -2
  89. package/wdtsdoc/classes/elements.OjButton.html +2 -2
  90. package/wdtsdoc/classes/elements.OjButtonsetMany.html +2 -2
  91. package/wdtsdoc/classes/elements.OjButtonsetOne.html +2 -2
  92. package/wdtsdoc/classes/elements.OjChart.html +2 -2
  93. package/wdtsdoc/classes/elements.OjCheckboxset.html +2 -2
  94. package/wdtsdoc/classes/elements.OjCollapsible.html +2 -2
  95. package/wdtsdoc/classes/elements.OjColorPalette.html +2 -2
  96. package/wdtsdoc/classes/elements.OjColorSpectrum.html +2 -2
  97. package/wdtsdoc/classes/elements.OjComboboxMany.html +2 -2
  98. package/wdtsdoc/classes/elements.OjComboboxOne.html +2 -2
  99. package/wdtsdoc/classes/elements.OjConveyorBelt.html +2 -2
  100. package/wdtsdoc/classes/elements.OjDataGrid.html +2 -2
  101. package/wdtsdoc/classes/elements.OjDatePicker.html +67 -49
  102. package/wdtsdoc/classes/elements.OjDateTimePicker.html +57 -42
  103. package/wdtsdoc/classes/elements.OjDiagram.html +2 -2
  104. package/wdtsdoc/classes/elements.OjDialog.html +2 -2
  105. package/wdtsdoc/classes/elements.OjDrawerLayout.html +2 -2
  106. package/wdtsdoc/classes/elements.OjDrawerPopup.html +2 -2
  107. package/wdtsdoc/classes/elements.OjFilePicker.html +11 -2
  108. package/wdtsdoc/classes/elements.OjFilmStrip.html +2 -2
  109. package/wdtsdoc/classes/elements.OjGantt.html +2 -2
  110. package/wdtsdoc/classes/elements.OjIndexer.html +2 -2
  111. package/wdtsdoc/classes/elements.OjInputDate.html +28 -21
  112. package/wdtsdoc/classes/elements.OjInputDateTime.html +28 -21
  113. package/wdtsdoc/classes/elements.OjInputNumber.html +2 -2
  114. package/wdtsdoc/classes/elements.OjInputPassword.html +2 -2
  115. package/wdtsdoc/classes/elements.OjInputSearch.html +2 -2
  116. package/wdtsdoc/classes/elements.OjInputText.html +2 -2
  117. package/wdtsdoc/classes/elements.OjInputTime.html +2 -2
  118. package/wdtsdoc/classes/elements.OjLabel.html +2 -2
  119. package/wdtsdoc/classes/elements.OjLedGauge.html +2 -2
  120. package/wdtsdoc/classes/elements.OjLegend.html +2 -2
  121. package/wdtsdoc/classes/elements.OjListView.html +4 -4
  122. package/wdtsdoc/classes/elements.OjMasonryLayout.html +2 -2
  123. package/wdtsdoc/classes/elements.OjMenu.html +2 -2
  124. package/wdtsdoc/classes/elements.OjMenuButton.html +2 -2
  125. package/wdtsdoc/classes/elements.OjMessage.html +2 -2
  126. package/wdtsdoc/classes/elements.OjMessageBanner.html +2 -2
  127. package/wdtsdoc/classes/elements.OjNBox.html +2 -2
  128. package/wdtsdoc/classes/elements.OjNavigationList.html +14 -12
  129. package/wdtsdoc/classes/elements.OjPagingControl.html +2 -2
  130. package/wdtsdoc/classes/elements.OjPictoChart.html +2 -2
  131. package/wdtsdoc/classes/elements.OjPopup.html +6 -5
  132. package/wdtsdoc/classes/elements.OjProgress.html +2 -2
  133. package/wdtsdoc/classes/elements.OjProgressList.html +2 -2
  134. package/wdtsdoc/classes/elements.OjRadioset.html +2 -2
  135. package/wdtsdoc/classes/elements.OjRatingGauge.html +2 -2
  136. package/wdtsdoc/classes/elements.OjRefresher.html +2 -2
  137. package/wdtsdoc/classes/elements.OjRowExpander.html +2 -2
  138. package/wdtsdoc/classes/elements.OjSelectMany.html +2 -2
  139. package/wdtsdoc/classes/elements.OjSelectOne.html +2 -2
  140. package/wdtsdoc/classes/elements.OjSelectSingle.html +2 -2
  141. package/wdtsdoc/classes/elements.OjSelector.html +2 -2
  142. package/wdtsdoc/classes/elements.OjSlider.html +2 -2
  143. package/wdtsdoc/classes/elements.OjSparkChart.html +2 -2
  144. package/wdtsdoc/classes/elements.OjStatusMeterGauge.html +2 -2
  145. package/wdtsdoc/classes/elements.OjStreamList.html +2 -2
  146. package/wdtsdoc/classes/elements.OjSunburst.html +2 -2
  147. package/wdtsdoc/classes/elements.OjSwipeActions.html +2 -2
  148. package/wdtsdoc/classes/elements.OjSwitch.html +2 -2
  149. package/wdtsdoc/classes/elements.OjTabBar.html +2 -2
  150. package/wdtsdoc/classes/elements.OjTable.html +27 -9
  151. package/wdtsdoc/classes/elements.OjTagCloud.html +2 -2
  152. package/wdtsdoc/classes/elements.OjTextArea.html +2 -2
  153. package/wdtsdoc/classes/elements.OjThematicMap.html +2 -2
  154. package/wdtsdoc/classes/elements.OjTimeAxis.html +2 -2
  155. package/wdtsdoc/classes/elements.OjTimeline.html +2 -2
  156. package/wdtsdoc/classes/elements.OjTrain.html +2 -2
  157. package/wdtsdoc/classes/elements.OjTreeView.html +5 -5
  158. package/wdtsdoc/classes/elements.OjTreemap.html +2 -2
  159. package/wdtsdoc/classes/elements.OjWaterfallLayout.html +2 -2
  160. package/wdtsdoc/classes/elements.OjWebElement.html +2 -2
  161. package/wdtsdoc/classes/index.DriverManager.html +2 -2
  162. package/wdtsdoc/classes/index.Expectation.html +2 -2
  163. package/wdtsdoc/functions/elements.ojAccordion-1.html +2 -2
  164. package/wdtsdoc/functions/elements.ojActionCard-1.html +2 -2
  165. package/wdtsdoc/functions/elements.ojButton-1.html +2 -2
  166. package/wdtsdoc/functions/elements.ojButtonsetMany-1.html +2 -2
  167. package/wdtsdoc/functions/elements.ojButtonsetOne-1.html +2 -2
  168. package/wdtsdoc/functions/elements.ojChart-1.html +2 -2
  169. package/wdtsdoc/functions/elements.ojCheckboxset-1.html +2 -2
  170. package/wdtsdoc/functions/elements.ojCollapsible-1.html +2 -2
  171. package/wdtsdoc/functions/elements.ojColorPalette-1.html +2 -2
  172. package/wdtsdoc/functions/elements.ojColorSpectrum-1.html +2 -2
  173. package/wdtsdoc/functions/elements.ojComboboxMany-1.html +2 -2
  174. package/wdtsdoc/functions/elements.ojComboboxOne-1.html +2 -2
  175. package/wdtsdoc/functions/elements.ojConveyorBelt-1.html +2 -2
  176. package/wdtsdoc/functions/elements.ojDataGrid-1.html +2 -2
  177. package/wdtsdoc/functions/elements.ojDatePicker-1.html +2 -2
  178. package/wdtsdoc/functions/elements.ojDateTimePicker-1.html +2 -2
  179. package/wdtsdoc/functions/elements.ojDiagram-1.html +2 -2
  180. package/wdtsdoc/functions/elements.ojDialog-1.html +2 -2
  181. package/wdtsdoc/functions/elements.ojDrawerLayout-1.html +2 -2
  182. package/wdtsdoc/functions/elements.ojDrawerPopup-1.html +2 -2
  183. package/wdtsdoc/functions/elements.ojFilePicker-1.html +2 -2
  184. package/wdtsdoc/functions/elements.ojFilmStrip-1.html +2 -2
  185. package/wdtsdoc/functions/elements.ojGantt-1.html +2 -2
  186. package/wdtsdoc/functions/elements.ojIndexer-1.html +2 -2
  187. package/wdtsdoc/functions/elements.ojInputDate-1.html +2 -2
  188. package/wdtsdoc/functions/elements.ojInputDateTime-1.html +2 -2
  189. package/wdtsdoc/functions/elements.ojInputNumber-1.html +2 -2
  190. package/wdtsdoc/functions/elements.ojInputPassword-1.html +2 -2
  191. package/wdtsdoc/functions/elements.ojInputSearch-1.html +2 -2
  192. package/wdtsdoc/functions/elements.ojInputText-1.html +2 -2
  193. package/wdtsdoc/functions/elements.ojInputTime-1.html +2 -2
  194. package/wdtsdoc/functions/elements.ojLabel-1.html +2 -2
  195. package/wdtsdoc/functions/elements.ojLedGauge-1.html +2 -2
  196. package/wdtsdoc/functions/elements.ojLegend-1.html +2 -2
  197. package/wdtsdoc/functions/elements.ojListView-1.html +2 -2
  198. package/wdtsdoc/functions/elements.ojMasonryLayout-1.html +2 -2
  199. package/wdtsdoc/functions/elements.ojMenu-1.html +2 -2
  200. package/wdtsdoc/functions/elements.ojMenuButton-1.html +2 -2
  201. package/wdtsdoc/functions/elements.ojMessage-1.html +2 -2
  202. package/wdtsdoc/functions/elements.ojMessageBanner-1.html +2 -2
  203. package/wdtsdoc/functions/elements.ojNBox-1.html +2 -2
  204. package/wdtsdoc/functions/elements.ojNavigationList-1.html +2 -2
  205. package/wdtsdoc/functions/elements.ojPagingControl-1.html +2 -2
  206. package/wdtsdoc/functions/elements.ojPictoChart-1.html +2 -2
  207. package/wdtsdoc/functions/elements.ojPopup-1.html +2 -2
  208. package/wdtsdoc/functions/elements.ojProgress-1.html +2 -2
  209. package/wdtsdoc/functions/elements.ojProgressList-1.html +2 -2
  210. package/wdtsdoc/functions/elements.ojRadioset-1.html +2 -2
  211. package/wdtsdoc/functions/elements.ojRatingGauge-1.html +2 -2
  212. package/wdtsdoc/functions/elements.ojRefresher-1.html +2 -2
  213. package/wdtsdoc/functions/elements.ojRowExpander-1.html +2 -2
  214. package/wdtsdoc/functions/elements.ojSelectMany-1.html +2 -2
  215. package/wdtsdoc/functions/elements.ojSelectOne-1.html +2 -2
  216. package/wdtsdoc/functions/elements.ojSelectSingle-1.html +2 -2
  217. package/wdtsdoc/functions/elements.ojSelector-1.html +2 -2
  218. package/wdtsdoc/functions/elements.ojSlider-1.html +2 -2
  219. package/wdtsdoc/functions/elements.ojSparkChart-1.html +2 -2
  220. package/wdtsdoc/functions/elements.ojStatusMeterGauge-1.html +2 -2
  221. package/wdtsdoc/functions/elements.ojStreamList-1.html +2 -2
  222. package/wdtsdoc/functions/elements.ojSunburst-1.html +2 -2
  223. package/wdtsdoc/functions/elements.ojSwipeActions-1.html +2 -2
  224. package/wdtsdoc/functions/elements.ojSwitch-1.html +2 -2
  225. package/wdtsdoc/functions/elements.ojTabBar-1.html +2 -2
  226. package/wdtsdoc/functions/elements.ojTable-1.html +2 -2
  227. package/wdtsdoc/functions/elements.ojTagCloud-1.html +2 -2
  228. package/wdtsdoc/functions/elements.ojTextArea-1.html +2 -2
  229. package/wdtsdoc/functions/elements.ojThematicMap-1.html +2 -2
  230. package/wdtsdoc/functions/elements.ojTimeAxis-1.html +2 -2
  231. package/wdtsdoc/functions/elements.ojTimeline-1.html +2 -2
  232. package/wdtsdoc/functions/elements.ojTrain-1.html +2 -2
  233. package/wdtsdoc/functions/elements.ojTreeView-1.html +2 -2
  234. package/wdtsdoc/functions/elements.ojTreemap-1.html +2 -2
  235. package/wdtsdoc/functions/elements.ojWaterfallLayout-1.html +2 -2
  236. package/wdtsdoc/functions/elements.ojWebElement-1.html +2 -2
  237. package/wdtsdoc/functions/index.ScreenshotManager.create.html +2 -2
  238. package/wdtsdoc/functions/index.ScreenshotManager.get.html +2 -2
  239. package/wdtsdoc/functions/index.ScreenshotManager.set.html +2 -2
  240. package/wdtsdoc/functions/index.fetchKeyByFilter.html +2 -2
  241. package/wdtsdoc/functions/index.register.html +2 -2
  242. package/wdtsdoc/functions/index.slotProxy-1.html +2 -2
  243. package/wdtsdoc/index.html +2 -2
  244. package/wdtsdoc/interfaces/index.DriverLike.html +2 -2
  245. package/wdtsdoc/interfaces/index.SlotProxy.html +2 -2
  246. package/wdtsdoc/modules/elements.html +2 -2
  247. package/wdtsdoc/modules/index.ScreenshotManager.html +2 -2
  248. package/wdtsdoc/modules/index.html +2 -2
  249. package/wdtsdoc/variables/index.default.html +7 -4
@@ -22,7 +22,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
22
22
  * Gets the value of <code>autofocus</code> property.
23
23
  * Specifies whether the component will get input focus when the page is loaded. See the Help documentation for more information.
24
24
  * @return The value of <code>autofocus</code> property.
25
- *
25
+ * @deprecated Since 17.0.0. This is not recommended for accessibility reasons.
26
26
  */
27
27
  getAutofocus() {
28
28
  return this.getProperty('autofocus');
@@ -58,7 +58,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
58
58
  * Gets the value of <code>dayMetaData</code> property.
59
59
  * Specifies additional information to be used when rendering the day. See the Help documentation for more information.
60
60
  * @return The value of <code>dayMetaData</code> property.
61
- *
61
+ * @deprecated Since 17.0.0. Use dayFormatter instead, as it is more flexible.
62
62
  */
63
63
  getDayMetaData() {
64
64
  return this.getProperty('dayMetaData');
@@ -67,7 +67,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
67
67
  * Gets the value of <code>describedBy</code> property.
68
68
  * The form component's oj-label automatically sets described-by to make it accessible. It is not meant to be set by application developer.
69
69
  * @return The value of <code>describedBy</code> property.
70
- *
70
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
71
71
  */
72
72
  getDescribedBy() {
73
73
  return this.getProperty('describedBy');
@@ -76,7 +76,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
76
76
  * Gets the value of <code>disabled</code> property.
77
77
  * Specifies whether the component is disabled. The default is false.
78
78
  * @return The value of <code>disabled</code> property.
79
- *
79
+ * @deprecated Since 17.0.0. Disabled is not supported by the Date Picker UX specification, use readonly property instead.
80
80
  */
81
81
  getDisabled() {
82
82
  return this.getProperty('disabled');
@@ -94,7 +94,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
94
94
  * Gets the value of <code>help</code> property.
95
95
  * Form component help information.
96
96
  * @return The value of <code>help</code> property.
97
- *
97
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
98
98
  */
99
99
  getHelp() {
100
100
  return this.getProperty('help');
@@ -103,7 +103,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
103
103
  * Gets the value of <code>helpHints</code> property.
104
104
  * Represents hints for an oj-form-layout element to render help information on the label of the editable component.
105
105
  * @return The value of <code>helpHints</code> property.
106
- *
106
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
107
107
  */
108
108
  getHelpHints() {
109
109
  return this.getProperty('helpHints');
@@ -112,7 +112,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
112
112
  * Gets the value of <code>keyboardEdit</code> property.
113
113
  * Determines if keyboard entry of the text is allowed. When the datepicker is inline, the only supported value is "disabled".
114
114
  * @return The value of <code>keyboardEdit</code> property.
115
- *
115
+ * @deprecated Since 17.0.0. This was never intended for the oj-date-time-picker component.
116
116
  */
117
117
  getKeyboardEdit() {
118
118
  return this.getProperty('keyboardEdit');
@@ -121,7 +121,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
121
121
  * Gets the value of <code>labelEdge</code> property.
122
122
  * Defines how the label of a component is created. See the Help documentation for more information.
123
123
  * @return The value of <code>labelEdge</code> property.
124
- *
124
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
125
125
  */
126
126
  getLabelEdge() {
127
127
  return this.getProperty('labelEdge');
@@ -130,7 +130,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
130
130
  * Gets the value of <code>labelHint</code> property.
131
131
  * Represents a hint for oj-form-layout element to render a label on the editable component.
132
132
  * @return The value of <code>labelHint</code> property.
133
- *
133
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
134
134
  */
135
135
  getLabelHint() {
136
136
  return this.getProperty('labelHint');
@@ -139,7 +139,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
139
139
  * Gets the value of <code>labelledBy</code> property.
140
140
  * The oj-label sets the labelledBy property programmatically on the form component. See the Help documentation for more information.
141
141
  * @return The value of <code>labelledBy</code> property.
142
- *
142
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
143
143
  */
144
144
  getLabelledBy() {
145
145
  return this.getProperty('labelledBy');
@@ -157,7 +157,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
157
157
  * Sets the value of <code>messagesCustom</code> property.
158
158
  * A list of messages added by an application to the component. See the Help documentation for more information.
159
159
  * @param messagesCustom The value to set for <code>messagesCustom</code>
160
- *
160
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
161
161
  */
162
162
  changeMessagesCustom(messagesCustom) {
163
163
  return this.setProperty('messagesCustom', messagesCustom);
@@ -166,7 +166,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
166
166
  * Gets the value of <code>messagesCustom</code> property.
167
167
  * A list of messages added by an application to the component. See the Help documentation for more information.
168
168
  * @return The value of <code>messagesCustom</code> property.
169
- *
169
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
170
170
  */
171
171
  getMessagesCustom() {
172
172
  return this.getProperty('messagesCustom');
@@ -202,7 +202,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
202
202
  * Gets the value of <code>placeholder</code> property.
203
203
  * The placeholder text to set on the element.
204
204
  * @return The value of <code>placeholder</code> property.
205
- *
205
+ * @deprecated Since 17.0.0. oj-date-time-picker doesn't have a text input, so this was never needed.
206
206
  */
207
207
  getPlaceholder() {
208
208
  return this.getProperty('placeholder');
@@ -238,7 +238,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
238
238
  * Gets the value of <code>required</code> property.
239
239
  * Specifies whether the component is required or optional. See the Help documentation for more information.
240
240
  * @return The value of <code>required</code> property.
241
- *
241
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
242
242
  */
243
243
  getRequired() {
244
244
  return this.getProperty('required');
@@ -265,7 +265,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
265
265
  * Gets the value of <code>userAssistanceDensity</code> property.
266
266
  * Specifies the density of the form component's user assistance presentation.
267
267
  * @return The value of <code>userAssistanceDensity</code> property.
268
- *
268
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
269
269
  */
270
270
  getUserAssistanceDensity() {
271
271
  return this.getProperty('userAssistanceDensity');
@@ -281,7 +281,7 @@ class OjDateTimePickerBase extends __1.OjWebElement {
281
281
  }
282
282
  /**
283
283
  * Gets the value of <code>validators</code> property.
284
- * A list of validators used by the element, along with any implicit component validators, when performing validation. See the Help documentation for more information.
284
+ * Specifies a list of synchronous validators for performing validation by the element. See the Help documentation for more information.
285
285
  * @return The value of <code>validators</code> property.
286
286
  *
287
287
  */
@@ -21,7 +21,7 @@ export class OjDateTimePickerBase extends OjWebElement {
21
21
  * Gets the value of <code>autofocus</code> property.
22
22
  * Specifies whether the component will get input focus when the page is loaded. See the Help documentation for more information.
23
23
  * @return The value of <code>autofocus</code> property.
24
- *
24
+ * @deprecated Since 17.0.0. This is not recommended for accessibility reasons.
25
25
  */
26
26
  public getAutofocus(): Promise<boolean> {
27
27
  return this.getProperty<boolean>('autofocus');
@@ -61,7 +61,7 @@ export class OjDateTimePickerBase extends OjWebElement {
61
61
  * Gets the value of <code>dayMetaData</code> property.
62
62
  * Specifies additional information to be used when rendering the day. See the Help documentation for more information.
63
63
  * @return The value of <code>dayMetaData</code> property.
64
- *
64
+ * @deprecated Since 17.0.0. Use dayFormatter instead, as it is more flexible.
65
65
  */
66
66
  public getDayMetaData(): Promise<object> {
67
67
  return this.getProperty<object>('dayMetaData');
@@ -71,7 +71,7 @@ export class OjDateTimePickerBase extends OjWebElement {
71
71
  * Gets the value of <code>describedBy</code> property.
72
72
  * The form component's oj-label automatically sets described-by to make it accessible. It is not meant to be set by application developer.
73
73
  * @return The value of <code>describedBy</code> property.
74
- *
74
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
75
75
  */
76
76
  public getDescribedBy(): Promise<string> {
77
77
  return this.getProperty<string>('describedBy');
@@ -81,7 +81,7 @@ export class OjDateTimePickerBase extends OjWebElement {
81
81
  * Gets the value of <code>disabled</code> property.
82
82
  * Specifies whether the component is disabled. The default is false.
83
83
  * @return The value of <code>disabled</code> property.
84
- *
84
+ * @deprecated Since 17.0.0. Disabled is not supported by the Date Picker UX specification, use readonly property instead.
85
85
  */
86
86
  public getDisabled(): Promise<boolean> {
87
87
  return this.getProperty<boolean>('disabled');
@@ -101,7 +101,7 @@ export class OjDateTimePickerBase extends OjWebElement {
101
101
  * Gets the value of <code>help</code> property.
102
102
  * Form component help information.
103
103
  * @return The value of <code>help</code> property.
104
- *
104
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
105
105
  */
106
106
  public getHelp(): Promise<Help> {
107
107
  return this.getProperty<Help>('help');
@@ -111,7 +111,7 @@ export class OjDateTimePickerBase extends OjWebElement {
111
111
  * Gets the value of <code>helpHints</code> property.
112
112
  * Represents hints for an oj-form-layout element to render help information on the label of the editable component.
113
113
  * @return The value of <code>helpHints</code> property.
114
- *
114
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
115
115
  */
116
116
  public getHelpHints(): Promise<HelpHints> {
117
117
  return this.getProperty<HelpHints>('helpHints');
@@ -121,7 +121,7 @@ export class OjDateTimePickerBase extends OjWebElement {
121
121
  * Gets the value of <code>keyboardEdit</code> property.
122
122
  * Determines if keyboard entry of the text is allowed. When the datepicker is inline, the only supported value is "disabled".
123
123
  * @return The value of <code>keyboardEdit</code> property.
124
- *
124
+ * @deprecated Since 17.0.0. This was never intended for the oj-date-time-picker component.
125
125
  */
126
126
  public getKeyboardEdit(): Promise<string> {
127
127
  return this.getProperty<string>('keyboardEdit');
@@ -131,7 +131,7 @@ export class OjDateTimePickerBase extends OjWebElement {
131
131
  * Gets the value of <code>labelEdge</code> property.
132
132
  * Defines how the label of a component is created. See the Help documentation for more information.
133
133
  * @return The value of <code>labelEdge</code> property.
134
- *
134
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
135
135
  */
136
136
  public getLabelEdge(): Promise<string> {
137
137
  return this.getProperty<string>('labelEdge');
@@ -141,7 +141,7 @@ export class OjDateTimePickerBase extends OjWebElement {
141
141
  * Gets the value of <code>labelHint</code> property.
142
142
  * Represents a hint for oj-form-layout element to render a label on the editable component.
143
143
  * @return The value of <code>labelHint</code> property.
144
- *
144
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
145
145
  */
146
146
  public getLabelHint(): Promise<string> {
147
147
  return this.getProperty<string>('labelHint');
@@ -151,7 +151,7 @@ export class OjDateTimePickerBase extends OjWebElement {
151
151
  * Gets the value of <code>labelledBy</code> property.
152
152
  * The oj-label sets the labelledBy property programmatically on the form component. See the Help documentation for more information.
153
153
  * @return The value of <code>labelledBy</code> property.
154
- *
154
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
155
155
  */
156
156
  public getLabelledBy(): Promise<string | null> {
157
157
  return this.getProperty<string | null>('labelledBy');
@@ -171,7 +171,7 @@ export class OjDateTimePickerBase extends OjWebElement {
171
171
  * Sets the value of <code>messagesCustom</code> property.
172
172
  * A list of messages added by an application to the component. See the Help documentation for more information.
173
173
  * @param messagesCustom The value to set for <code>messagesCustom</code>
174
- *
174
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
175
175
  */
176
176
  public changeMessagesCustom(messagesCustom: Array<object>): Promise<void> {
177
177
  return this.setProperty<Array<object>>('messagesCustom', messagesCustom);
@@ -181,7 +181,7 @@ export class OjDateTimePickerBase extends OjWebElement {
181
181
  * Gets the value of <code>messagesCustom</code> property.
182
182
  * A list of messages added by an application to the component. See the Help documentation for more information.
183
183
  * @return The value of <code>messagesCustom</code> property.
184
- *
184
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
185
185
  */
186
186
  public getMessagesCustom(): Promise<Array<object>> {
187
187
  return this.getProperty<Array<object>>('messagesCustom');
@@ -221,7 +221,7 @@ export class OjDateTimePickerBase extends OjWebElement {
221
221
  * Gets the value of <code>placeholder</code> property.
222
222
  * The placeholder text to set on the element.
223
223
  * @return The value of <code>placeholder</code> property.
224
- *
224
+ * @deprecated Since 17.0.0. oj-date-time-picker doesn't have a text input, so this was never needed.
225
225
  */
226
226
  public getPlaceholder(): Promise<string> {
227
227
  return this.getProperty<string>('placeholder');
@@ -261,7 +261,7 @@ export class OjDateTimePickerBase extends OjWebElement {
261
261
  * Gets the value of <code>required</code> property.
262
262
  * Specifies whether the component is required or optional. See the Help documentation for more information.
263
263
  * @return The value of <code>required</code> property.
264
- *
264
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
265
265
  */
266
266
  public getRequired(): Promise<boolean> {
267
267
  return this.getProperty<boolean>('required');
@@ -291,7 +291,7 @@ export class OjDateTimePickerBase extends OjWebElement {
291
291
  * Gets the value of <code>userAssistanceDensity</code> property.
292
292
  * Specifies the density of the form component's user assistance presentation.
293
293
  * @return The value of <code>userAssistanceDensity</code> property.
294
- *
294
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
295
295
  */
296
296
  public getUserAssistanceDensity(): Promise<string> {
297
297
  return this.getProperty<string>('userAssistanceDensity');
@@ -309,7 +309,7 @@ export class OjDateTimePickerBase extends OjWebElement {
309
309
 
310
310
  /**
311
311
  * Gets the value of <code>validators</code> property.
312
- * A list of validators used by the element, along with any implicit component validators, when performing validation. See the Help documentation for more information.
312
+ * Specifies a list of synchronous validators for performing validation by the element. See the Help documentation for more information.
313
313
  * @return The value of <code>validators</code> property.
314
314
  *
315
315
  */
@@ -348,6 +348,7 @@ export interface DatePicker {
348
348
  changeYear: string;
349
349
  /**
350
350
  * Specifies the position in multiple months at which to show the current month (starting at 0).
351
+ * @deprecated Since 17.0.0. This is required when date-picker.number-of-months > 1, which is now deprecated, so this is no longer needed.
351
352
  */
352
353
  currentMonthPos: number;
353
354
  /**
@@ -361,18 +362,22 @@ export interface DatePicker {
361
362
  footerLayout: string;
362
363
  /**
363
364
  * Specifies the number of months to show at once. See the Help documentation for more information.
365
+ * @deprecated Since 17.0.0. This is not supported in the Redwood UX specification for Date Picker. See the Range Picker UX specification.
364
366
  */
365
367
  numberOfMonths: number;
366
368
  /**
367
369
  * Specifies when the date picker should be shown.
370
+ * @deprecated Since 17.0.0. This is not supported in the Redwood UX specification.
368
371
  */
369
372
  showOn: string;
370
373
  /**
371
374
  * Specifies the number of months to step backwards and forwards for the Ctrl+Alt+Page Up and Ctrl+Alt+Page Down keystrokes.
375
+ * @deprecated Since 17.0.0. This is not in the Redwood UX specification.
372
376
  */
373
377
  stepBigMonths: number;
374
378
  /**
375
379
  * Specifies how the prev and next keys will step backwards and forwards through the months. See the Help documentation for more information.
380
+ * @deprecated Since 17.0.0. This is not in the Redwood UX specification.
376
381
  */
377
382
  stepMonths: string | number;
378
383
  /**
@@ -381,6 +386,7 @@ export interface DatePicker {
381
386
  weekDisplay: string;
382
387
  /**
383
388
  * Specifies the range of years displayed in the year drop-down. See the Help documentation for more information.
389
+ * @deprecated Since 17.0.0. This is not in the Redwood UX specification. The 'min' and 'max' properties should be used instead.
384
390
  */
385
391
  yearRange: string;
386
392
  }
@@ -406,16 +412,19 @@ export interface DisplayOptions {
406
412
  export interface Help {
407
413
  /**
408
414
  * Represents advisory information for the component, such as would be appropriate for a tooltip.
415
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
409
416
  */
410
417
  instruction: string;
411
418
  }
412
419
  export interface HelpHints {
413
420
  /**
414
421
  * Hint for help definition text associated with the label.
422
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
415
423
  */
416
424
  definition: string;
417
425
  /**
418
426
  * Help source URL associated with the component.
427
+ * @deprecated Since 17.0.0. The oj-date-time-picker is used internally by the oj-input-date-time component and is not meant to display messages, be labelled, or be in a form layout by itself. Per the Redwood UX specification, the oj-date-time-picker is not intended to be a form component.
419
428
  */
420
429
  source: string;
421
430
  }
@@ -448,10 +457,12 @@ export interface TimePicker {
448
457
  export interface Translations {
449
458
  /**
450
459
  * Message to announce to AT via aria-live when the length.max is exceeded.
460
+ * @deprecated Since 17.0.0. This is not supported by the component.
451
461
  */
452
462
  accessibleMaxLengthExceeded: string;
453
463
  /**
454
464
  * Message to annnouce to AT via aria-live for the remaining character count.
465
+ * @deprecated Since 17.0.0. This is not supported by the component.
455
466
  */
456
467
  accessibleMaxLengthRemaining: string;
457
468
  /**
@@ -460,6 +471,7 @@ export interface Translations {
460
471
  cancel: string;
461
472
  /**
462
473
  * The text to display for the current day link.
474
+ * @deprecated Since 17.0.0. The Redwood UX specification does not allow this to be configurable.
463
475
  */
464
476
  currentText: string;
465
477
  /**
@@ -476,14 +488,17 @@ export interface Translations {
476
488
  done: string;
477
489
  /**
478
490
  * The text to display for the next month link.
491
+ * @deprecated Since 17.0.0. The Redwood UX specification does not allow this to be configurable.
479
492
  */
480
493
  nextText: string;
481
494
  /**
482
495
  * The text to display for the previous month link.
496
+ * @deprecated Since 17.0.0. The Redwood UX specification does not allow this to be configurable.
483
497
  */
484
498
  prevText: string;
485
499
  /**
486
500
  * Provides properties to customize the message text used by the implicit regexp validator associated to the InputText and TextArea components.
501
+ * @deprecated Since 17.0.0. This is not supported by the component.
487
502
  */
488
503
  regexp: TranslationsRegexp;
489
504
  /**
@@ -496,28 +511,34 @@ export interface Translations {
496
511
  time: string;
497
512
  /**
498
513
  * Tooltip text for the calendar icon.
514
+ * @deprecated Since 17.0.0. This is not configurable per component instance in the Redwood UX specification.
499
515
  */
500
516
  tooltipCalendar: string;
501
517
  /**
502
518
  * Tooltip text for the calendar icon when the component is disabled.
519
+ * @deprecated Since 17.0.0. This is not configurable per component instance in the Redwood UX specification.
503
520
  */
504
521
  tooltipCalendarDisabled: string;
505
522
  /**
506
523
  * Tooltip text for the calendar + time icon.
524
+ * @deprecated Since 17.0.0. This is not configurable per component instance in the Redwood UX specification.
507
525
  */
508
526
  tooltipCalendarTime: string;
509
527
  /**
510
528
  * Tooltip text for the calendar + time icon when the component is disabled.
529
+ * @deprecated Since 17.0.0. This is not configurable per component instance in the Redwood UX specification.
511
530
  */
512
531
  tooltipCalendarTimeDisabled: string;
513
532
  /**
514
533
  * The text to display for the week of the year column heading.
534
+ * @deprecated Since 17.0.0. The Redwood UX specification does not allow this to be configurable.
515
535
  */
516
536
  weekHeader: string;
517
537
  }
518
538
  export interface TranslationsDateRestriction {
519
539
  /**
520
540
  * Hint text used by the implicit date restriction validator associated to the InputDateTime and InputDate components.
541
+ * @deprecated Since 17.0.0. Please use help-hints instead.
521
542
  */
522
543
  hint: string;
523
544
  /**
@@ -526,12 +547,14 @@ export interface TranslationsDateRestriction {
526
547
  messageDetail: string;
527
548
  /**
528
549
  * Message summary for the implicit date restriction validator associated to the InputDateTime and InputDate components.
550
+ * @deprecated Since 17.0.0. This is not supported in the Redwood UX specification.
529
551
  */
530
552
  messageSummary: string;
531
553
  }
532
554
  export interface TranslationsDateTimeRange {
533
555
  /**
534
556
  * Provides properties to customize the hint text used by the implicit datetime range validator associated to the InputDateTime, InputDate, and InputTime components.
557
+ * @deprecated Since 17.0.0. Please use help-hints instead.
535
558
  */
536
559
  hint: TranslationsDateTimeRangeHint;
537
560
  /**
@@ -540,20 +563,24 @@ export interface TranslationsDateTimeRange {
540
563
  messageDetail: TranslationsDateTimeRangeMessageDetail;
541
564
  /**
542
565
  * Provides properties to customize the error message summary text used by the implicit datetime range validator associated to the InputDateTime, InputDate, and InputTime components.
566
+ * @deprecated Since 17.0.0. This is not supported in the Redwood UX specification.
543
567
  */
544
568
  messageSummary: TranslationsDateTimeRangeMessageSummary;
545
569
  }
546
570
  export interface TranslationsDateTimeRangeHint {
547
571
  /**
548
572
  * Hint text used by the implicit datetime range validator associated to the InputDateTime, InputDate, and InputTime components. hint.inRange is shown when both min and max are set, and is used to tell the user the allowed number range.
573
+ * @deprecated Since 17.0.0. Please use help-hints instead.
549
574
  */
550
575
  inRange: string;
551
576
  /**
552
577
  * Hint text used by the implicit datetime range validator associated to the InputDateTime, InputDate, and InputTime components. hint.max is shown when max is set and min is not set, and is used to tell the user the allowed maximum.
578
+ * @deprecated Since 17.0.0. Please use help-hints instead.
553
579
  */
554
580
  max: string;
555
581
  /**
556
582
  * Hint text used by the implicit datetime range validator associated to the InputDateTime, InputDate, and InputTime components. hint.min is shown when min is set and max is not set, and is used to tell the user the allowed minimum.
583
+ * @deprecated Since 17.0.0. Please use help-hints instead.
557
584
  */
558
585
  min: string;
559
586
  }
@@ -570,26 +597,31 @@ export interface TranslationsDateTimeRangeMessageDetail {
570
597
  export interface TranslationsDateTimeRangeMessageSummary {
571
598
  /**
572
599
  * Error message summary text used by the implicit datetime range validator associated to the InputDateTime, InputDate, and InputTime components. messageSummary.rangeOverflow is shown when max is set, and the value is greater than the maximum.
600
+ * @deprecated Since 17.0.0. This is not supported in the Redwood UX specification.
573
601
  */
574
602
  rangeOverflow: string;
575
603
  /**
576
604
  * Error message summary text used by the implicit datetime range validator associated to the InputDateTime, InputDate, and InputTime components. messageSummary.rangeUnderflow is shown when min is set, and the value is less than the minimum.
605
+ * @deprecated Since 17.0.0. This is not supported in the Redwood UX specification.
577
606
  */
578
607
  rangeUnderflow: string;
579
608
  }
580
609
  export interface TranslationsRegexp {
581
610
  /**
582
611
  * Provides properties to customize the error message detail used by the implicit regexp validator associated to the InputText and TextArea components.
612
+ * @deprecated Since 17.0.0. This is not supported by the component.
583
613
  */
584
614
  messageDetail: string;
585
615
  /**
586
616
  * Provides properties to customize the error message summary used by the implicit regexp validator associated to the InputText and TextArea components.
617
+ * @deprecated Since 17.0.0. This is not supported by the component.
587
618
  */
588
619
  messageSummary: string;
589
620
  }
590
621
  export interface TranslationsRequired {
591
622
  /**
592
623
  * Hint text used by required validation error.
624
+ * @deprecated Since 17.0.0. Please use help-hints instead.
593
625
  */
594
626
  hint: string;
595
627
  /**
@@ -672,18 +672,22 @@ export interface StyleDefaultsNodeDefaultsIcon {
672
672
  shape: string;
673
673
  /**
674
674
  * The URI of the node image
675
+ * @deprecated Since 17.0.0. Node source property has been deprecated. Please use custom renderer instead.
675
676
  */
676
677
  source: string;
677
678
  /**
678
679
  * The optional URI of the node hover image.
680
+ * @deprecated Since 17.0.0. Node sourceHover property has been deprecated. Please use custom renderer instead.
679
681
  */
680
682
  sourceHover: string;
681
683
  /**
682
684
  * The optional URI of the selected image on hover.
685
+ * @deprecated Since 17.0.0. Node sourceHoverSelected property has been deprecated. Please use custom renderer instead.
683
686
  */
684
687
  sourceHoverSelected: string;
685
688
  /**
686
689
  * The optional URI of the selected image.
690
+ * @deprecated Since 17.0.0. Node sourceSelected property has been deprecated. Please use custom renderer instead.
687
691
  */
688
692
  sourceSelected: string;
689
693
  /**
@@ -4,6 +4,7 @@ exports.OjFilePicker = void 0;
4
4
  const OjFilePickerBase_1 = require("./OjFilePickerBase");
5
5
  const fs = require("fs");
6
6
  const path = require("path");
7
+ const busy_context_utils_1 = require("../../lib/busy-context-utils");
7
8
  /**
8
9
  * The component WebElement for [oj-file-picker](../../jsdocs/oj.ojFilePicker.html).
9
10
  * Do not instantiate this class directly, instead, use
@@ -19,32 +20,97 @@ class OjFilePicker extends OjFilePickerBase_1.OjFilePickerBase {
19
20
  * @param files An array of objects containing the path and type of selected files
20
21
  */
21
22
  async doSelect(files) {
22
- await this.whenReady();
23
- let dataList;
24
- dataList = [];
25
- let file;
26
- for (let i = 0; i < files.length; i++) {
27
- const fileInfo = files[i];
28
- const filePath = fileInfo.path;
29
- const fileType = fileInfo.type;
30
- const data = fs.readFileSync(filePath);
31
- if (data) {
32
- file = { bytes: Array.from(data), path: path.basename(filePath), type: fileType };
33
- dataList.push(file);
23
+ await OjFilePicker.setupPickFiles(this.getDriver(), files);
24
+ await this.getDriver().executeScript(`arguments[0].firstChild.click();`, this);
25
+ await this.whenBusyContextReady();
26
+ }
27
+ /**
28
+ * This method should be called right before ojfilepickerutils.pickFiles
29
+ * Takes the webdriver and an Array of objects containing file paths + types.
30
+ * These files will be read from the local filesystem and then sent
31
+ * to the pickFiles method to simulate user file selection. Only the basename of
32
+ * the file will be sent, not the entire path to make it consistent with how
33
+ * the browser sets the value.
34
+ * @param driver the Webdriver of the test
35
+ * @param files An array of objects containing the path and type of selected files
36
+ */
37
+ static async setupPickFiles(driver, files) {
38
+ await (0, busy_context_utils_1.whenBusyContextReady)(driver);
39
+ //create a buffer with the files
40
+ const dataList = files.map(({ path: filePath, type }) => {
41
+ const fileSizeInMB = fs.statSync(filePath).size / (1024 * 1024);
42
+ const numberChunks = Math.ceil(fileSizeInMB / 8);
43
+ const fileContent = Array.from(fs.readFileSync(filePath));
44
+ const chunkSize = Math.floor(fileContent.length / numberChunks);
45
+ const fileChunks = [];
46
+ for (let i = 0; i < numberChunks; i++) {
47
+ if (i + 1 == numberChunks) {
48
+ fileChunks.push(fileContent.slice(i * chunkSize));
49
+ }
50
+ else {
51
+ fileChunks.push(fileContent.slice(i * chunkSize, (i + 1) * chunkSize));
52
+ }
53
+ }
54
+ return {
55
+ bytes: fileChunks, //split it into 8MB chunks
56
+ path: path.basename(filePath),
57
+ type,
58
+ numberChunks
59
+ };
60
+ });
61
+ for (let i = 0; i < dataList.length; i++) {
62
+ const { bytes, path, type, numberChunks } = dataList[i];
63
+ for (let j = 0; j < bytes.length; j++) {
64
+ const file = {
65
+ bytes: bytes[j],
66
+ path,
67
+ type,
68
+ numberChunks,
69
+ chunkNumber: j,
70
+ fileNumber: i
71
+ };
72
+ await driver.executeScript(`const file = arguments[0];
73
+ const chunkNumber = file.chunkNumber;
74
+ var data = {
75
+ bytes: file.bytes,
76
+ path: file.path,
77
+ type: file.type
78
+ }
79
+ if (chunkNumber == 0) {
80
+ window['_file' + file.fileNumber] = [data];
81
+ } else {
82
+ window['_file' + file.fileNumber].push(data);
83
+ }`, file);
34
84
  }
35
85
  }
36
- await this.getDriver().executeAsyncScript([
37
- 'var fileList = [];',
38
- 'var list = arguments[1];',
39
- 'for(var i = 0; i < list.length; i++) {',
40
- 'var data = list[i];',
41
- 'fileList.push(new File([Uint8Array.from(data.bytes)], data.path, {type: data.type}));',
42
- '}',
43
- 'fileList.item = function(i){return fileList[i];}',
44
- //arguments[2] is a callback automatically passed in to continue executing the code
45
- 'arguments[0]._doSelectHelper(fileList).then(arguments[2]);'
46
- ].join('\n'), this, dataList);
47
- await this.whenBusyContextReady();
86
+ driver.executeScript(`const numFiles = arguments[0];
87
+ const list = [];
88
+ for ( let i = 0; i < numFiles; i++) {
89
+ const file = window['_file' + i];
90
+ delete window['_file' + i];
91
+ list.push({
92
+ bytes: file.map(chunk => chunk.bytes).join(''),
93
+ path: file[0].path,
94
+ type: file[0].type
95
+ });
96
+ }
97
+ const fileList = list.map((data) => {
98
+ return new File([Uint8Array.from(data.bytes)], data.path, {type: data.type});
99
+ })
100
+ // Only if setupPickFiles has not been called yet
101
+ if (!HTMLInputElement.prototype._pickerTestData) {
102
+ //Save the native click method
103
+ const clickMethod = HTMLInputElement.prototype.click;
104
+ //Overwrite the click method
105
+ HTMLInputElement.prototype.click = function() {
106
+ const event = new CustomEvent("change");
107
+ this.dispatchEvent(event);
108
+ delete HTMLInputElement.prototype._pickerTestData;
109
+ HTMLInputElement.prototype.click = clickMethod;
110
+ }
111
+ }
112
+ HTMLInputElement.prototype._pickerTestData = fileList;
113
+ `, dataList.length);
48
114
  }
49
115
  }
50
116
  exports.OjFilePicker =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