@oracle/oraclejet-core-pack 16.0.6 → 16.1.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 (472) hide show
  1. package/oj-c/ActionCard.json +6 -6
  2. package/oj-c/AreaChart.json +458 -1546
  3. package/oj-c/AreaChartGroup.json +8 -7
  4. package/oj-c/AreaChartItem.json +35 -16
  5. package/oj-c/AreaChartSeries.json +15 -14
  6. package/oj-c/Avatar.json +10 -10
  7. package/oj-c/Button.json +19 -19
  8. package/oj-c/Checkbox.json +29 -29
  9. package/oj-c/Checkboxset.json +35 -35
  10. package/oj-c/Collapsible.json +14 -14
  11. package/oj-c/DrawerPopup.json +12 -12
  12. package/oj-c/FilePicker.json +20 -20
  13. package/oj-c/FormLayout.json +15 -15
  14. package/oj-c/HighlightText.json +6 -6
  15. package/oj-c/InputDateMask.json +75 -75
  16. package/oj-c/InputDateText.json +44 -44
  17. package/oj-c/InputMonthMask.json +1402 -0
  18. package/oj-c/InputNumber.json +51 -51
  19. package/oj-c/InputPassword.json +42 -42
  20. package/oj-c/InputSensitiveText.json +1420 -0
  21. package/oj-c/InputText.json +48 -48
  22. package/oj-c/LabelledLink.json +21 -21
  23. package/oj-c/Legend.json +36 -36
  24. package/oj-c/LegendItem.json +20 -15
  25. package/oj-c/LegendSection.json +6 -5
  26. package/oj-c/LineChart.json +459 -1546
  27. package/oj-c/LineChartGroup.json +8 -7
  28. package/oj-c/LineChartItem.json +35 -16
  29. package/oj-c/LineChartSeries.json +17 -16
  30. package/oj-c/ListItemLayout.json +16 -16
  31. package/oj-c/ListView.json +18 -18
  32. package/oj-c/MenuButton.json +21 -21
  33. package/oj-c/MessageBanner.json +11 -11
  34. package/oj-c/MessageToast.json +13 -13
  35. package/oj-c/MeterBar.json +26 -26
  36. package/oj-c/MeterCircle.json +30 -30
  37. package/oj-c/ProgressBar.json +7 -7
  38. package/oj-c/ProgressCircle.json +7 -7
  39. package/oj-c/Radioset.json +35 -35
  40. package/oj-c/RatingGauge.json +21 -21
  41. package/oj-c/SelectMultiple.json +41 -41
  42. package/oj-c/SelectSingle.json +45 -45
  43. package/oj-c/SelectionCard.json +6 -6
  44. package/oj-c/Selector.json +8 -8
  45. package/oj-c/SelectorAll.json +25 -5
  46. package/oj-c/SplitMenuButton.json +60 -17
  47. package/oj-c/TabBarMixed.json +606 -0
  48. package/oj-c/TagCloud.json +18 -18
  49. package/oj-c/TagCloudItem.json +11 -10
  50. package/oj-c/TextArea.json +45 -45
  51. package/oj-c/action-card/component.json +2 -2
  52. package/oj-c/area-chart/__webdriver__/AreaChartWebElementBase.d.ts +175 -38
  53. package/oj-c/area-chart/__webdriver__/AreaChartWebElementBase.js +16 -7
  54. package/oj-c/area-chart/__webdriver__/AreaChartWebElementBase.js.map +1 -1
  55. package/oj-c/area-chart/area-chart.js +4 -4
  56. package/oj-c/area-chart/component.json +552 -770
  57. package/oj-c/area-chart-group/area-chart-group.js +1 -1
  58. package/oj-c/area-chart-group/component.json +4 -3
  59. package/oj-c/area-chart-item/area-chart-item.js +1 -1
  60. package/oj-c/area-chart-item/component.json +10 -4
  61. package/oj-c/area-chart-series/area-chart-series.js +1 -1
  62. package/oj-c/area-chart-series/component.json +4 -3
  63. package/oj-c/avatar/component.json +2 -2
  64. package/oj-c/button/button.js +7 -7
  65. package/oj-c/button/component.json +2 -2
  66. package/oj-c/checkbox/component.json +2 -2
  67. package/oj-c/checkboxset/component.json +2 -2
  68. package/oj-c/collapsible/component.json +2 -2
  69. package/oj-c/component.json +15 -3
  70. package/oj-c/corepackbundle.js +883 -353
  71. package/oj-c/docs/action-card.html +59 -50
  72. package/oj-c/docs/area-chart-group.html +59 -50
  73. package/oj-c/docs/area-chart-item.html +59 -50
  74. package/oj-c/docs/area-chart-series.html +59 -50
  75. package/oj-c/docs/area-chart.html +59 -50
  76. package/oj-c/docs/avatar.html +59 -50
  77. package/oj-c/docs/button.html +59 -50
  78. package/oj-c/docs/checkbox.html +59 -50
  79. package/oj-c/docs/checkboxset.html +59 -50
  80. package/oj-c/docs/collapsible.html +59 -50
  81. package/oj-c/docs/drawer-popup.html +59 -50
  82. package/oj-c/docs/file-picker.html +59 -50
  83. package/oj-c/docs/form-layout.html +59 -50
  84. package/oj-c/docs/highlight-text.html +59 -50
  85. package/oj-c/docs/index.html +59 -50
  86. package/oj-c/docs/input-date-mask.html +59 -50
  87. package/oj-c/docs/input-date-text.html +59 -50
  88. package/oj-c/docs/input-month-mask.html +249 -0
  89. package/oj-c/docs/input-number.html +59 -50
  90. package/oj-c/docs/input-password.html +59 -50
  91. package/oj-c/docs/input-sensitive-text.html +249 -0
  92. package/oj-c/docs/input-text.html +59 -50
  93. package/oj-c/docs/jsDocMd.json +1 -1
  94. package/oj-c/docs/labelled-link.html +59 -50
  95. package/oj-c/docs/legend-item.html +59 -50
  96. package/oj-c/docs/legend-section.html +59 -50
  97. package/oj-c/docs/legend.html +59 -50
  98. package/oj-c/docs/line-chart-group.html +59 -50
  99. package/oj-c/docs/line-chart-item.html +59 -50
  100. package/oj-c/docs/line-chart-series.html +59 -50
  101. package/oj-c/docs/line-chart.html +59 -50
  102. package/oj-c/docs/list-item-layout.html +59 -50
  103. package/oj-c/docs/list-view.html +59 -50
  104. package/oj-c/docs/menu-button.html +59 -50
  105. package/oj-c/docs/message-banner.html +59 -50
  106. package/oj-c/docs/message-toast.html +59 -50
  107. package/oj-c/docs/meter-bar.html +59 -50
  108. package/oj-c/docs/meter-circle.html +59 -50
  109. package/oj-c/docs/oj-c.ActionCard.html +60 -51
  110. package/oj-c/docs/oj-c.AreaChart.html +1452 -214
  111. package/oj-c/docs/oj-c.AreaChartGroup.html +63 -51
  112. package/oj-c/docs/oj-c.AreaChartItem.html +125 -54
  113. package/oj-c/docs/oj-c.AreaChartSeries.html +63 -51
  114. package/oj-c/docs/oj-c.Avatar.html +60 -51
  115. package/oj-c/docs/oj-c.Button.html +60 -51
  116. package/oj-c/docs/oj-c.Checkbox.html +60 -51
  117. package/oj-c/docs/oj-c.Checkboxset.html +60 -51
  118. package/oj-c/docs/oj-c.Collapsible.html +60 -51
  119. package/oj-c/docs/oj-c.DrawerPopup.html +60 -51
  120. package/oj-c/docs/oj-c.FilePicker.html +60 -51
  121. package/oj-c/docs/oj-c.FormLayout.html +60 -51
  122. package/oj-c/docs/oj-c.HighlightText.html +60 -51
  123. package/oj-c/docs/oj-c.InputDateMask.html +81 -64
  124. package/oj-c/docs/oj-c.InputDateText.html +60 -51
  125. package/oj-c/docs/oj-c.InputMonthMask.html +5940 -0
  126. package/oj-c/docs/oj-c.InputNumber.html +60 -51
  127. package/oj-c/docs/oj-c.InputPassword.html +80 -62
  128. package/oj-c/docs/oj-c.InputSensitiveText.html +5723 -0
  129. package/oj-c/docs/oj-c.InputText.html +60 -51
  130. package/oj-c/docs/oj-c.LabelledLink.html +60 -51
  131. package/oj-c/docs/oj-c.Legend.html +60 -51
  132. package/oj-c/docs/oj-c.LegendItem.html +75 -51
  133. package/oj-c/docs/oj-c.LegendSection.html +63 -51
  134. package/oj-c/docs/oj-c.LineChart.html +1455 -217
  135. package/oj-c/docs/oj-c.LineChartGroup.html +63 -51
  136. package/oj-c/docs/oj-c.LineChartItem.html +125 -54
  137. package/oj-c/docs/oj-c.LineChartSeries.html +63 -51
  138. package/oj-c/docs/oj-c.ListItemLayout.html +60 -51
  139. package/oj-c/docs/oj-c.ListView.html +60 -51
  140. package/oj-c/docs/oj-c.MenuButton.html +60 -51
  141. package/oj-c/docs/oj-c.MessageBanner.html +60 -51
  142. package/oj-c/docs/oj-c.MessageToast.html +60 -51
  143. package/oj-c/docs/oj-c.MeterBar.html +60 -51
  144. package/oj-c/docs/oj-c.MeterCircle.html +60 -51
  145. package/oj-c/docs/oj-c.ProgressBar.html +60 -51
  146. package/oj-c/docs/oj-c.ProgressCircle.html +60 -51
  147. package/oj-c/docs/oj-c.Radioset.html +60 -51
  148. package/oj-c/docs/oj-c.RatingGauge.html +60 -51
  149. package/oj-c/docs/oj-c.SelectMultiple.html +60 -51
  150. package/oj-c/docs/oj-c.SelectSingle.html +60 -51
  151. package/oj-c/docs/oj-c.Selector.html +60 -51
  152. package/oj-c/docs/oj-c.SelectorAll.html +149 -52
  153. package/oj-c/docs/oj-c.SplitMenuButton.html +299 -52
  154. package/oj-c/docs/oj-c.TabBarMixed.html +2660 -0
  155. package/oj-c/docs/oj-c.TagCloud.html +60 -51
  156. package/oj-c/docs/oj-c.TagCloudItem.html +63 -51
  157. package/oj-c/docs/oj-c.TextArea.html +60 -51
  158. package/oj-c/docs/progress-bar.html +59 -50
  159. package/oj-c/docs/progress-circle.html +59 -50
  160. package/oj-c/docs/radioset.html +59 -50
  161. package/oj-c/docs/rating-gauge.html +59 -50
  162. package/oj-c/docs/select-multiple.html +59 -50
  163. package/oj-c/docs/select-single.html +59 -50
  164. package/oj-c/docs/selection-card.html +59 -50
  165. package/oj-c/docs/selector-all.html +59 -50
  166. package/oj-c/docs/selector.html +59 -50
  167. package/oj-c/docs/split-menu-button.html +59 -50
  168. package/oj-c/docs/tab-bar-mixed.html +249 -0
  169. package/oj-c/docs/tag-cloud-item.html +59 -50
  170. package/oj-c/docs/tag-cloud.html +59 -50
  171. package/oj-c/docs/text-area.html +59 -50
  172. package/oj-c/drawer-popup/component.json +2 -2
  173. package/oj-c/file-picker/component.json +2 -2
  174. package/oj-c/form-layout/component.json +2 -2
  175. package/oj-c/highlight-text/component.json +2 -2
  176. package/oj-c/hooks/UNSAFE_useListData/useListData.js +5 -2
  177. package/oj-c/input-date-mask/component.json +17 -15
  178. package/oj-c/input-date-mask/input-date-mask.js +45 -88
  179. package/oj-c/input-date-text/component.json +3 -6
  180. package/oj-c/input-month-mask/CalendarMonthConverter.js +32 -0
  181. package/oj-c/input-month-mask/CalendarMonthRangeValidator.js +56 -0
  182. package/oj-c/input-month-mask/__webdriver__/InputMonthMaskWebElement.d.ts +16 -0
  183. package/oj-c/input-month-mask/__webdriver__/InputMonthMaskWebElement.js +23 -0
  184. package/oj-c/input-month-mask/__webdriver__/InputMonthMaskWebElement.js.map +1 -0
  185. package/oj-c/input-month-mask/__webdriver__/InputMonthMaskWebElementBase.d.ts +275 -0
  186. package/oj-c/input-month-mask/__webdriver__/InputMonthMaskWebElementBase.js +248 -0
  187. package/oj-c/input-month-mask/__webdriver__/InputMonthMaskWebElementBase.js.map +1 -0
  188. package/oj-c/input-month-mask/__webdriver__/index.d.ts +17 -0
  189. package/oj-c/input-month-mask/__webdriver__/index.js +34 -0
  190. package/oj-c/input-month-mask/__webdriver__/index.js.map +1 -0
  191. package/oj-c/input-month-mask/component.json +493 -0
  192. package/oj-c/input-month-mask/index.js +6 -0
  193. package/oj-c/input-month-mask/input-month-mask-styles.css +14 -0
  194. package/oj-c/input-month-mask/input-month-mask.js +69 -0
  195. package/oj-c/input-month-mask/useImplicitCalendarMonthRangeValidator.js +26 -0
  196. package/oj-c/input-month-mask/useInputMonthMaskPreact.js +88 -0
  197. package/oj-c/input-month-mask.js +6 -0
  198. package/oj-c/input-number/component.json +2 -2
  199. package/oj-c/input-password/__webdriver__/InputPasswordWebElementBase.d.ts +1 -1
  200. package/oj-c/input-password/__webdriver__/InputPasswordWebElementBase.js +1 -1
  201. package/oj-c/input-password/__webdriver__/InputPasswordWebElementBase.js.map +1 -1
  202. package/oj-c/input-password/component.json +5 -5
  203. package/oj-c/input-sensitive-text/__webdriver__/InputSensitiveTextWebElement.d.ts +17 -0
  204. package/oj-c/input-sensitive-text/__webdriver__/InputSensitiveTextWebElement.js +50 -0
  205. package/oj-c/input-sensitive-text/__webdriver__/InputSensitiveTextWebElement.js.map +1 -0
  206. package/oj-c/input-sensitive-text/__webdriver__/InputSensitiveTextWebElementBase.d.ts +259 -0
  207. package/oj-c/input-sensitive-text/__webdriver__/InputSensitiveTextWebElementBase.js +266 -0
  208. package/oj-c/input-sensitive-text/__webdriver__/InputSensitiveTextWebElementBase.js.map +1 -0
  209. package/oj-c/input-sensitive-text/__webdriver__/index.d.ts +17 -0
  210. package/oj-c/input-sensitive-text/__webdriver__/index.js +34 -0
  211. package/oj-c/input-sensitive-text/__webdriver__/index.js.map +1 -0
  212. package/oj-c/input-sensitive-text/component.json +574 -0
  213. package/oj-c/input-sensitive-text/index.js +6 -0
  214. package/oj-c/input-sensitive-text/input-sensitive-text-styles.css +13 -0
  215. package/oj-c/input-sensitive-text/input-sensitive-text.js +74 -0
  216. package/oj-c/input-sensitive-text/useInputSensitiveTextPreact.js +52 -0
  217. package/oj-c/input-sensitive-text.js +6 -0
  218. package/oj-c/input-text/component.json +2 -2
  219. package/oj-c/labelled-link/component.json +2 -2
  220. package/oj-c/legend/component.json +2 -2
  221. package/oj-c/legend/legend-styles.css +1 -0
  222. package/oj-c/legend-item/component.json +12 -7
  223. package/oj-c/legend-item/legend-item.js +1 -1
  224. package/oj-c/legend-section/component.json +4 -3
  225. package/oj-c/legend-section/legend-section.js +1 -1
  226. package/oj-c/line-chart/__webdriver__/LineChartWebElementBase.d.ts +172 -35
  227. package/oj-c/line-chart/__webdriver__/LineChartWebElementBase.js +13 -4
  228. package/oj-c/line-chart/__webdriver__/LineChartWebElementBase.js.map +1 -1
  229. package/oj-c/line-chart/component.json +558 -775
  230. package/oj-c/line-chart/line-chart.js +4 -4
  231. package/oj-c/line-chart-group/component.json +4 -3
  232. package/oj-c/line-chart-group/line-chart-group.js +1 -1
  233. package/oj-c/line-chart-item/component.json +11 -5
  234. package/oj-c/line-chart-item/line-chart-item.js +1 -1
  235. package/oj-c/line-chart-series/component.json +4 -3
  236. package/oj-c/line-chart-series/line-chart-series.js +1 -1
  237. package/oj-c/list-item-layout/component.json +2 -2
  238. package/oj-c/list-view/component.json +2 -2
  239. package/oj-c/menu-button/component.json +2 -2
  240. package/oj-c/menu-button/menu-button.js +2 -2
  241. package/oj-c/message-banner/component.json +2 -2
  242. package/oj-c/message-toast/component.json +2 -2
  243. package/oj-c/metadata/allComponents.json +3619 -2700
  244. package/oj-c/meter-bar/component.json +2 -2
  245. package/oj-c/meter-circle/component.json +2 -2
  246. package/oj-c/min/area-chart-group.js +1 -1
  247. package/oj-c/min/area-chart-group.js.map +1 -1
  248. package/oj-c/min/area-chart-item.js +1 -1
  249. package/oj-c/min/area-chart-item.js.map +1 -1
  250. package/oj-c/min/area-chart-series.js +1 -1
  251. package/oj-c/min/area-chart-series.js.map +1 -1
  252. package/oj-c/min/area-chart.js +1 -1
  253. package/oj-c/min/area-chart.js.map +1 -1
  254. package/oj-c/min/button.js +1 -1
  255. package/oj-c/min/button.js.map +1 -1
  256. package/oj-c/min/corepackbundle.css +28 -1
  257. package/oj-c/min/corepackbundle.js +1 -1
  258. package/oj-c/min/corepackbundle.js.map +1 -1
  259. package/oj-c/min/hooks/UNSAFE_useListData/useListData.js +5 -2
  260. package/oj-c/min/input-date-mask.js +1 -1
  261. package/oj-c/min/input-date-mask.js.map +1 -1
  262. package/oj-c/min/input-month-mask/input-month-mask-styles.css +14 -0
  263. package/oj-c/min/input-month-mask.js +2 -0
  264. package/oj-c/min/input-month-mask.js.map +1 -0
  265. package/oj-c/min/input-sensitive-text/input-sensitive-text-styles.css +13 -0
  266. package/oj-c/min/input-sensitive-text.js +2 -0
  267. package/oj-c/min/input-sensitive-text.js.map +1 -0
  268. package/oj-c/min/legend/legend-styles.css +1 -0
  269. package/oj-c/min/legend-item.js +1 -1
  270. package/oj-c/min/legend-item.js.map +1 -1
  271. package/oj-c/min/legend-section.js +1 -1
  272. package/oj-c/min/legend-section.js.map +1 -1
  273. package/oj-c/min/legend.js +1 -1
  274. package/oj-c/min/legend.js.map +1 -1
  275. package/oj-c/min/line-chart-group.js +1 -1
  276. package/oj-c/min/line-chart-group.js.map +1 -1
  277. package/oj-c/min/line-chart-item.js +1 -1
  278. package/oj-c/min/line-chart-item.js.map +1 -1
  279. package/oj-c/min/line-chart-series.js +1 -1
  280. package/oj-c/min/line-chart-series.js.map +1 -1
  281. package/oj-c/min/line-chart.js +1 -1
  282. package/oj-c/min/line-chart.js.map +1 -1
  283. package/oj-c/min/list-view.js +1 -1
  284. package/oj-c/min/list-view.js.map +1 -1
  285. package/oj-c/min/menu-button.js +1 -1
  286. package/oj-c/min/menu-button.js.map +1 -1
  287. package/oj-c/min/select-multiple.js +2 -2
  288. package/oj-c/min/select-multiple.js.map +1 -1
  289. package/oj-c/min/select-single.js +2 -2
  290. package/oj-c/min/select-single.js.map +1 -1
  291. package/oj-c/min/selector-all.js +1 -1
  292. package/oj-c/min/selector-all.js.map +1 -1
  293. package/oj-c/min/split-menu-button.js +1 -1
  294. package/oj-c/min/split-menu-button.js.map +1 -1
  295. package/oj-c/min/tab-bar-mixed/tab-bar-mixed-styles.css +11 -0
  296. package/oj-c/min/tab-bar-mixed.js +2 -0
  297. package/oj-c/min/tab-bar-mixed.js.map +1 -0
  298. package/oj-c/min/tag-cloud-item.js +1 -1
  299. package/oj-c/min/tag-cloud-item.js.map +1 -1
  300. package/oj-c/min/tag-cloud.js +1 -1
  301. package/oj-c/min/tag-cloud.js.map +1 -1
  302. package/oj-c/min/utils/PRIVATE_ItemsMenu/items-menu.js +7 -5
  303. package/oj-c/min/utils/PRIVATE_chartUtils/axisUtils.js +24 -0
  304. package/oj-c/progress-bar/component.json +2 -2
  305. package/oj-c/progress-circle/component.json +2 -2
  306. package/oj-c/radioset/component.json +2 -2
  307. package/oj-c/rating-gauge/component.json +2 -2
  308. package/oj-c/select-multiple/component.json +2 -2
  309. package/oj-c/select-single/component.json +2 -2
  310. package/oj-c/selection-card/component.json +2 -2
  311. package/oj-c/selector/component.json +2 -2
  312. package/oj-c/selector-all/__webdriver__/SelectorAllWebElementBase.d.ts +7 -0
  313. package/oj-c/selector-all/__webdriver__/SelectorAllWebElementBase.js +9 -0
  314. package/oj-c/selector-all/__webdriver__/SelectorAllWebElementBase.js.map +1 -1
  315. package/oj-c/selector-all/component.json +12 -2
  316. package/oj-c/selector-all/selector-all.js +3 -3
  317. package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElement.d.ts +1 -1
  318. package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElement.js +1 -1
  319. package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElement.js.map +1 -1
  320. package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElementBase.d.ts +7 -0
  321. package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElementBase.js +9 -0
  322. package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElementBase.js.map +1 -1
  323. package/oj-c/split-menu-button/component.json +21 -2
  324. package/oj-c/split-menu-button/split-menu-button.js +18 -27
  325. package/oj-c/tab-bar-mixed/DataTabBarMixed.js +43 -0
  326. package/oj-c/tab-bar-mixed/DataTabBarMixed.types.js +4 -0
  327. package/oj-c/tab-bar-mixed/DataTabBarMixedIcon.js +16 -0
  328. package/oj-c/tab-bar-mixed/__mocks__/@oracle/oraclejet-preact/UNSAFE_ConveyorBelt.js +10 -0
  329. package/oj-c/tab-bar-mixed/__mocks__/@oracle/oraclejet-preact/UNSAFE_TabBarMixed.js +34 -0
  330. package/oj-c/tab-bar-mixed/__webdriver__/TabBarMixedWebElement.d.ts +8 -0
  331. package/oj-c/tab-bar-mixed/__webdriver__/TabBarMixedWebElement.js +13 -0
  332. package/oj-c/tab-bar-mixed/__webdriver__/TabBarMixedWebElement.js.map +1 -0
  333. package/oj-c/tab-bar-mixed/__webdriver__/TabBarMixedWebElementBase.d.ts +116 -0
  334. package/oj-c/tab-bar-mixed/__webdriver__/TabBarMixedWebElementBase.js +95 -0
  335. package/oj-c/tab-bar-mixed/__webdriver__/TabBarMixedWebElementBase.js.map +1 -0
  336. package/oj-c/tab-bar-mixed/__webdriver__/index.d.ts +17 -0
  337. package/oj-c/tab-bar-mixed/__webdriver__/index.js +34 -0
  338. package/oj-c/tab-bar-mixed/__webdriver__/index.js.map +1 -0
  339. package/oj-c/tab-bar-mixed/component.json +236 -0
  340. package/oj-c/tab-bar-mixed/environment.js +13 -0
  341. package/oj-c/tab-bar-mixed/index.js +6 -0
  342. package/oj-c/tab-bar-mixed/sumBadge.js +23 -0
  343. package/oj-c/tab-bar-mixed/tab-bar-mixed-styles.css +11 -0
  344. package/oj-c/tab-bar-mixed/tab-bar-mixed.js +39 -0
  345. package/oj-c/tab-bar-mixed.js +6 -0
  346. package/oj-c/tag-cloud/component.json +2 -2
  347. package/oj-c/tag-cloud-item/component.json +4 -3
  348. package/oj-c/tag-cloud-item/tag-cloud-item.js +1 -1
  349. package/oj-c/text-area/component.json +2 -2
  350. package/oj-c/types/area-chart/area-chart.d.ts +7 -2
  351. package/oj-c/types/area-chart-item/area-chart-item.d.ts +5 -0
  352. package/oj-c/types/input-date-mask/input-date-mask.d.ts +15 -20
  353. package/oj-c/types/input-month-mask/CalendarMonthConverter.d.ts +19 -0
  354. package/oj-c/types/input-month-mask/CalendarMonthRangeValidator.d.ts +34 -0
  355. package/oj-c/types/input-month-mask/index.d.ts +2 -0
  356. package/oj-c/types/input-month-mask/input-month-mask.d.ts +184 -0
  357. package/oj-c/types/input-month-mask/useImplicitCalendarMonthRangeValidator.d.ts +13 -0
  358. package/oj-c/types/input-month-mask/useInputMonthMaskPreact.d.ts +39 -0
  359. package/oj-c/types/input-number/useImplicitNumberConverter.d.ts +1 -1
  360. package/oj-c/types/input-sensitive-text/index.d.ts +2 -0
  361. package/oj-c/types/input-sensitive-text/input-sensitive-text.d.ts +199 -0
  362. package/oj-c/types/input-sensitive-text/useInputSensitiveTextPreact.d.ts +41 -0
  363. package/oj-c/types/line-chart/line-chart.d.ts +7 -2
  364. package/oj-c/types/line-chart-item/line-chart-item.d.ts +5 -0
  365. package/oj-c/types/selector-all/selector-all.d.ts +10 -3
  366. package/oj-c/types/split-menu-button/index.d.ts +1 -1
  367. package/oj-c/types/split-menu-button/split-menu-button.d.ts +18 -14
  368. package/oj-c/types/tab-bar-mixed/DataTabBarMixed.d.ts +2 -0
  369. package/oj-c/types/tab-bar-mixed/DataTabBarMixed.types.d.ts +27 -0
  370. package/oj-c/types/tab-bar-mixed/DataTabBarMixedIcon.d.ts +12 -0
  371. package/oj-c/types/tab-bar-mixed/environment.d.ts +1 -0
  372. package/oj-c/types/tab-bar-mixed/index.d.ts +2 -0
  373. package/oj-c/types/tab-bar-mixed/sumBadge.d.ts +6 -0
  374. package/oj-c/types/tab-bar-mixed/tab-bar-mixed.d.ts +104 -0
  375. package/oj-c/types/utils/PRIVATE_ItemsMenu/index.d.ts +1 -1
  376. package/oj-c/types/utils/PRIVATE_ItemsMenu/items-menu.d.ts +3 -2
  377. package/oj-c/types/utils/PRIVATE_chartUtils/axisUtils.d.ts +3 -0
  378. package/oj-c/types/utils/UNSAFE_vizTypes/chartTypes.d.ts +55 -19
  379. package/oj-c/types/utils/UNSAFE_vizTypes/index.d.ts +1 -0
  380. package/oj-c/utils/PRIVATE_ItemsMenu/items-menu.js +7 -5
  381. package/oj-c/utils/PRIVATE_chartUtils/axisUtils.js +24 -0
  382. package/package.json +4 -4
  383. package/webdriver/docs/assets/navigation.js +1 -1
  384. package/webdriver/docs/assets/search.js +1 -1
  385. package/webdriver/docs/classes/ActionCardWebElement.html +1 -1
  386. package/webdriver/docs/classes/AreaChartWebElement.html +19 -8
  387. package/webdriver/docs/classes/AvatarWebElement.html +1 -1
  388. package/webdriver/docs/classes/ButtonWebElement.html +1 -1
  389. package/webdriver/docs/classes/CheckboxWebElement.html +1 -1
  390. package/webdriver/docs/classes/CheckboxsetWebElement.html +1 -1
  391. package/webdriver/docs/classes/CollapsibleWebElement.html +1 -1
  392. package/webdriver/docs/classes/DrawerPopupWebElement.html +1 -1
  393. package/webdriver/docs/classes/FilePickerWebElement.html +1 -1
  394. package/webdriver/docs/classes/FormLayoutWebElement.html +1 -1
  395. package/webdriver/docs/classes/HighlightTextWebElement.html +1 -1
  396. package/webdriver/docs/classes/InputDateMaskWebElement.html +1 -1
  397. package/webdriver/docs/classes/InputDateTextWebElement.html +1 -1
  398. package/webdriver/docs/classes/InputMonthMaskWebElement.html +211 -0
  399. package/webdriver/docs/classes/InputNumberWebElement.html +1 -1
  400. package/webdriver/docs/classes/InputPasswordWebElement.html +2 -2
  401. package/webdriver/docs/classes/InputSensitiveTextWebElement.html +215 -0
  402. package/webdriver/docs/classes/InputTextWebElement.html +1 -1
  403. package/webdriver/docs/classes/LabelledLinkWebElement.html +1 -1
  404. package/webdriver/docs/classes/LegendWebElement.html +1 -1
  405. package/webdriver/docs/classes/LineChartWebElement.html +12 -6
  406. package/webdriver/docs/classes/ListItemLayoutWebElement.html +1 -1
  407. package/webdriver/docs/classes/ListViewWebElement.html +1 -1
  408. package/webdriver/docs/classes/MenuButtonWebElement.html +1 -1
  409. package/webdriver/docs/classes/MessageBannerWebElement.html +1 -1
  410. package/webdriver/docs/classes/MessageToastWebElement.html +1 -1
  411. package/webdriver/docs/classes/MeterBarWebElement.html +1 -1
  412. package/webdriver/docs/classes/MeterCircleWebElement.html +1 -1
  413. package/webdriver/docs/classes/ProgressBarWebElement.html +1 -1
  414. package/webdriver/docs/classes/ProgressCircleWebElement.html +1 -1
  415. package/webdriver/docs/classes/RadiosetWebElement.html +1 -1
  416. package/webdriver/docs/classes/RatingGaugeWebElement.html +1 -1
  417. package/webdriver/docs/classes/SelectMultipleWebElement.html +1 -1
  418. package/webdriver/docs/classes/SelectSingleWebElement.html +1 -1
  419. package/webdriver/docs/classes/SelectionCardWebElement.html +1 -1
  420. package/webdriver/docs/classes/SelectorAllWebElement.html +6 -2
  421. package/webdriver/docs/classes/SelectorWebElement.html +1 -1
  422. package/webdriver/docs/classes/SplitMenuButtonWebElement.html +7 -3
  423. package/webdriver/docs/classes/TabBarMixedWebElement.html +139 -0
  424. package/webdriver/docs/classes/TagCloudWebElement.html +1 -1
  425. package/webdriver/docs/classes/TextAreaWebElement.html +1 -1
  426. package/webdriver/docs/functions/findActionCard.html +1 -1
  427. package/webdriver/docs/functions/findAreaChart.html +1 -1
  428. package/webdriver/docs/functions/findAvatar.html +1 -1
  429. package/webdriver/docs/functions/findButton.html +1 -1
  430. package/webdriver/docs/functions/findCheckbox.html +1 -1
  431. package/webdriver/docs/functions/findCheckboxset.html +1 -1
  432. package/webdriver/docs/functions/findCollapsible.html +1 -1
  433. package/webdriver/docs/functions/findDrawerPopup.html +1 -1
  434. package/webdriver/docs/functions/findFilePicker.html +1 -1
  435. package/webdriver/docs/functions/findFormLayout.html +1 -1
  436. package/webdriver/docs/functions/findHighlightText.html +1 -1
  437. package/webdriver/docs/functions/findInputDateMask.html +1 -1
  438. package/webdriver/docs/functions/findInputDateText.html +1 -1
  439. package/webdriver/docs/functions/findInputMonthMask.html +8 -0
  440. package/webdriver/docs/functions/findInputNumber.html +1 -1
  441. package/webdriver/docs/functions/findInputPassword.html +1 -1
  442. package/webdriver/docs/functions/findInputSensitiveText.html +8 -0
  443. package/webdriver/docs/functions/findInputText.html +1 -1
  444. package/webdriver/docs/functions/findLabelledLink.html +1 -1
  445. package/webdriver/docs/functions/findLegend.html +1 -1
  446. package/webdriver/docs/functions/findLineChart.html +1 -1
  447. package/webdriver/docs/functions/findListItemLayout.html +1 -1
  448. package/webdriver/docs/functions/findListView.html +1 -1
  449. package/webdriver/docs/functions/findMenuButton.html +1 -1
  450. package/webdriver/docs/functions/findMessageBanner.html +1 -1
  451. package/webdriver/docs/functions/findMessageToast.html +1 -1
  452. package/webdriver/docs/functions/findMeterBar.html +1 -1
  453. package/webdriver/docs/functions/findMeterCircle.html +1 -1
  454. package/webdriver/docs/functions/findProgressBar.html +1 -1
  455. package/webdriver/docs/functions/findProgressCircle.html +1 -1
  456. package/webdriver/docs/functions/findRadioset.html +1 -1
  457. package/webdriver/docs/functions/findRatingGauge.html +1 -1
  458. package/webdriver/docs/functions/findSelectMultiple.html +1 -1
  459. package/webdriver/docs/functions/findSelectSingle.html +1 -1
  460. package/webdriver/docs/functions/findSelectionCard.html +1 -1
  461. package/webdriver/docs/functions/findSelector.html +1 -1
  462. package/webdriver/docs/functions/findSelectorAll.html +1 -1
  463. package/webdriver/docs/functions/findSplitMenuButton.html +1 -1
  464. package/webdriver/docs/functions/findTabBarMixed.html +8 -0
  465. package/webdriver/docs/functions/findTagCloud.html +1 -1
  466. package/webdriver/docs/functions/findTextArea.html +1 -1
  467. package/webdriver/docs/index.html +1 -1
  468. package/webdriver/docs/modules.html +7 -1
  469. package/webdriver/index.d.ts +3 -0
  470. package/webdriver/index.js +3 -0
  471. package/webdriver/index.js.map +1 -1
  472. package/webdriver/index.ts +3 -0
@@ -1,22 +1,39 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- define(["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/translationBundle', "@oracle/oraclejet-preact/hooks/UNSAFE_useFormContext", "@oracle/oraclejet-preact/hooks/UNSAFE_useFormVariantContext", "@oracle/oraclejet-preact/hooks/UNSAFE_useTabbableMode", "@oracle/oraclejet-preact/UNSAFE_InputDateMask", "oj-c/editable-value/UNSAFE_useAssistiveText/useAssistiveText", "ojs/ojcontext", "ojs/ojvcomponent", "ojs/ojvcomponent-binding", "preact", "preact/compat", "preact/hooks", "./useInputDateMaskPreact", "@oracle/oraclejet-preact/utils/UNSAFE_styles/Layout", "@oracle/oraclejet-preact/UNSAFE_IntlDateTime", "css!oj-c/input-date-mask/input-date-mask-styles.css"], function (require, exports, jsx_runtime_1, translationBundle_1, UNSAFE_useFormContext_1, UNSAFE_useFormVariantContext_1, UNSAFE_useTabbableMode_1, UNSAFE_InputDateMask_1, useAssistiveText_1, Context, ojvcomponent_1, ojvcomponent_binding_1, preact_1, compat_1, hooks_1, useInputDateMaskPreact_1, Layout_1, UNSAFE_IntlDateTime_1) {
1
+ define(["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/translationBundle', "@oracle/oraclejet-preact/hooks/UNSAFE_useFormContext", "@oracle/oraclejet-preact/hooks/UNSAFE_useFormVariantContext", "@oracle/oraclejet-preact/hooks/UNSAFE_useTabbableMode", "@oracle/oraclejet-preact/UNSAFE_InputDateMask", "oj-c/editable-value/UNSAFE_useAssistiveText/useAssistiveText", "ojs/ojcontext", "ojs/ojvcomponent", "preact/compat", "preact/hooks", "./useInputDateMaskPreact", "@oracle/oraclejet-preact/utils/UNSAFE_styles/Layout", "@oracle/oraclejet-preact/UNSAFE_IntlDateTime", "css!oj-c/input-date-mask/input-date-mask-styles.css"], function (require, exports, jsx_runtime_1, translationBundle_1, UNSAFE_useFormContext_1, UNSAFE_useFormVariantContext_1, UNSAFE_useTabbableMode_1, UNSAFE_InputDateMask_1, useAssistiveText_1, Context, ojvcomponent_1, compat_1, hooks_1, useInputDateMaskPreact_1, Layout_1, UNSAFE_IntlDateTime_1) {
8
2
  "use strict";
9
3
  Object.defineProperty(exports, "__esModule", { value: true });
10
4
  exports.InputDateMask = void 0;
11
- const FunctionalInputDateMask = (0, compat_1.forwardRef)((props, ref) => {
12
- const { busyContextRef, displayOptions, help, helpHints, validators } = props;
5
+ const displayOptionsDefault = {
6
+ messages: 'display',
7
+ validatorHint: 'display'
8
+ };
9
+ const helpDefault = {
10
+ instruction: ''
11
+ };
12
+ const helpHintsDefault = {
13
+ definition: '',
14
+ source: ''
15
+ };
16
+ const messagesCustomDefault = [];
17
+ const validatorsDefault = [];
18
+ const InputDateMaskImpl = ({ columnSpan = 1, disabled = false, displayOptions = displayOptionsDefault, help = helpDefault, helpHints = helpHintsDefault, messagesCustom = messagesCustomDefault, readonly = false, required = false, userAssistanceDensity = 'reflow', validators = validatorsDefault, value = null, ...otherProps }, ref) => {
19
+ const rootRef = (0, hooks_1.useRef)();
13
20
  const inputDateMaskRef = (0, hooks_1.useRef)();
14
- const addBusyState = (0, hooks_1.useCallback)((desc) => {
15
- return busyContextRef.current?.addBusyState({
16
- description: `oj-c-input-date-mask id=${props.id} is ${desc}`
17
- });
21
+ const addBusyState = (0, hooks_1.useCallback)((description = 'InputDateMask: busyState') => {
22
+ return rootRef.current
23
+ ? Context.getContext(rootRef.current).getBusyContext().addBusyState({ description })
24
+ : () => { };
18
25
  }, []);
19
- const { inputDateMaskProps, methods } = (0, useInputDateMaskPreact_1.useInputDateMaskPreact)(props, addBusyState);
26
+ const { inputDateMaskProps, methods } = (0, useInputDateMaskPreact_1.useInputDateMaskPreact)({
27
+ disabled,
28
+ displayOptions,
29
+ messagesCustom,
30
+ readonly,
31
+ required,
32
+ userAssistanceDensity,
33
+ validators,
34
+ value,
35
+ ...otherProps
36
+ }, addBusyState);
20
37
  (0, hooks_1.useImperativeHandle)(ref, () => ({
21
38
  blur: () => inputDateMaskRef.current?.blur(),
22
39
  focus: () => inputDateMaskRef.current?.focus(),
@@ -30,83 +47,23 @@ define(["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/tr
30
47
  validators
31
48
  });
32
49
  const variant = (0, UNSAFE_useFormVariantContext_1.useFormVariantContext)();
33
- return ((0, jsx_runtime_1.jsx)(UNSAFE_InputDateMask_1.InputDateMask, { ref: inputDateMaskRef, ...assistiveTextProps, ...inputDateMaskProps, variant: variant }));
34
- });
35
- let InputDateMask = class InputDateMask extends preact_1.Component {
36
- constructor() {
37
- super(...arguments);
38
- this.busyContextRef = (0, preact_1.createRef)();
39
- this.inputDateMaskRef = (0, preact_1.createRef)();
40
- this.rootRef = (0, preact_1.createRef)();
41
- }
42
- componentDidMount() {
43
- this.busyContextRef.current = Context.getContext(this.rootRef.current).getBusyContext();
44
- }
45
- render({ columnSpan, ...props }) {
46
- const containerProps = {
47
- isFormLayout: props.containerReadonly !== undefined,
48
- isReadonly: props.containerReadonly,
49
- labelWrapping: props.labelWrapping
50
- };
51
- if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(props.value)) {
52
- throw new Error('value must be a date-only ISO string');
53
- }
54
- if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(props.min)) {
55
- throw new Error('min must be a date-only ISO string');
56
- }
57
- if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(props.max)) {
58
- throw new Error('max must be a date-only ISO string');
59
- }
60
- return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { id: props.id, ref: this.rootRef, class: columnSpan ? Layout_1.layoutSpanStyles.layoutSpanColumn[columnSpan] : '', children: (0, jsx_runtime_1.jsx)(UNSAFE_useFormContext_1.FormContext.Provider, { value: containerProps, children: (0, jsx_runtime_1.jsx)(FunctionalInputDateMask, { busyContextRef: this.busyContextRef, ref: this.inputDateMaskRef, ...props }) }) }));
50
+ const containerProps = {
51
+ isFormLayout: otherProps.containerReadonly !== undefined,
52
+ isReadonly: otherProps.containerReadonly,
53
+ labelWrapping: otherProps.labelWrapping
54
+ };
55
+ if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(value)) {
56
+ throw new Error('value must be a date-only ISO string');
61
57
  }
62
- componentWillUnmount() {
63
- this.busyContextRef.current = null;
58
+ if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(otherProps.min)) {
59
+ throw new Error('min must be a date-only ISO string');
64
60
  }
65
- reset() {
66
- this.inputDateMaskRef.current?.reset();
61
+ if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(otherProps.max)) {
62
+ throw new Error('max must be a date-only ISO string');
67
63
  }
68
- showMessages() {
69
- this.inputDateMaskRef.current?.showMessages();
70
- }
71
- validate() {
72
- return this.inputDateMaskRef.current?.validate();
73
- }
74
- blur() {
75
- this.inputDateMaskRef.current?.blur();
76
- }
77
- focus() {
78
- this.inputDateMaskRef.current?.focus();
79
- }
80
- };
81
- exports.InputDateMask = InputDateMask;
82
- InputDateMask.defaultProps = {
83
- columnSpan: 1,
84
- disabled: false,
85
- displayOptions: {
86
- messages: 'display',
87
- validatorHint: 'display'
88
- },
89
- help: {
90
- instruction: ''
91
- },
92
- helpHints: {
93
- definition: '',
94
- source: '',
95
- sourceText: undefined
96
- },
97
- messagesCustom: [],
98
- readonly: false,
99
- required: false,
100
- userAssistanceDensity: 'reflow',
101
- validators: [],
102
- value: null
64
+ return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { id: otherProps.id, ref: rootRef, class: Layout_1.layoutSpanStyles.layoutSpanColumn[columnSpan], children: (0, jsx_runtime_1.jsx)(UNSAFE_useFormContext_1.FormContext.Provider, { value: containerProps, children: (0, jsx_runtime_1.jsx)(UNSAFE_InputDateMask_1.InputDateMask, { ref: inputDateMaskRef, ...assistiveTextProps, ...inputDateMaskProps, variant: variant }) }) }));
103
65
  };
104
- InputDateMask._metadata = { "properties": { "columnSpan": { "type": "number" }, "containerReadonly": { "type": "boolean", "binding": { "consume": { "name": "containerReadonly" } } }, "dateRangeOverflowMessageDetail": { "type": "string" }, "dateRangeUnderflowMessageDetail": { "type": "string" }, "disabled": { "type": "boolean" }, "displayOptions": { "type": "object", "properties": { "messages": { "type": "string", "enumValues": ["none", "display"] }, "validatorHint": { "type": "string", "enumValues": ["none", "display"] } } }, "help": { "type": "object", "properties": { "instruction": { "type": "string" } } }, "helpHints": { "type": "object", "properties": { "definition": { "type": "string" }, "source": { "type": "string" }, "sourceText": { "type": "string" } } }, "labelEdge": { "type": "string", "enumValues": ["none", "start", "top", "inside"], "binding": { "consume": { "name": "containerLabelEdge" } } }, "labelHint": { "type": "string" }, "labelStartWidth": { "type": "number|string", "binding": { "consume": { "name": "labelWidth" } } }, "labelWrapping": { "type": "string", "enumValues": ["truncate", "wrap"], "binding": { "consume": { "name": "labelWrapping" } } }, "max": { "type": "string|null" }, "messagesCustom": { "type": "Array<object>", "writeback": true }, "min": { "type": "string|null" }, "readonly": { "type": "boolean", "binding": { "consume": { "name": "containerReadonly" } } }, "required": { "type": "boolean" }, "requiredMessageDetail": { "type": "string" }, "textAlign": { "type": "string", "enumValues": ["end", "start", "right"] }, "userAssistanceDensity": { "type": "string", "enumValues": ["compact", "reflow", "efficient"], "binding": { "consume": { "name": "containerUserAssistanceDensity" } } }, "validators": { "type": "Array<object>|null" }, "value": { "type": "string|null", "writeback": true }, "rawValue": { "type": "object", "properties": { "year": { "type": "number" }, "month": { "type": "number" }, "day": { "type": "number" } }, "readOnly": true, "writeback": true }, "valid": { "type": "string", "enumValues": ["pending", "valid", "invalidHidden", "invalidShown"], "readOnly": true, "writeback": true } }, "extension": { "_WRITEBACK_PROPS": ["messagesCustom", "rawValue", "valid", "value"], "_READ_ONLY_PROPS": ["rawValue", "valid"], "_OBSERVED_GLOBAL_PROPS": ["aria-describedby", "id"] }, "methods": { "reset": {}, "showMessages": {}, "validate": {}, "blur": {}, "focus": {} } };
105
- InputDateMask._translationBundleMap = {
66
+ exports.InputDateMask = (0, ojvcomponent_1.registerCustomElement)('oj-c-input-date-mask', (0, compat_1.forwardRef)(InputDateMaskImpl), "InputDateMask", { "properties": { "columnSpan": { "type": "number" }, "containerReadonly": { "type": "boolean", "binding": { "consume": { "name": "containerReadonly" } } }, "dateRangeOverflowMessageDetail": { "type": "string" }, "dateRangeUnderflowMessageDetail": { "type": "string" }, "disabled": { "type": "boolean" }, "displayOptions": { "type": "object", "properties": { "messages": { "type": "string", "enumValues": ["none", "display"] }, "validatorHint": { "type": "string", "enumValues": ["none", "display"] } } }, "help": { "type": "object", "properties": { "instruction": { "type": "string" } } }, "helpHints": { "type": "object", "properties": { "definition": { "type": "string" }, "source": { "type": "string" }, "sourceText": { "type": "string" } } }, "labelEdge": { "type": "string", "enumValues": ["none", "start", "top", "inside"], "binding": { "consume": { "name": "containerLabelEdge" } } }, "labelHint": { "type": "string" }, "labelStartWidth": { "type": "number|string", "binding": { "consume": { "name": "labelWidth" } } }, "labelWrapping": { "type": "string", "enumValues": ["truncate", "wrap"], "binding": { "consume": { "name": "labelWrapping" } } }, "max": { "type": "string|null" }, "messagesCustom": { "type": "Array<object>", "writeback": true }, "min": { "type": "string|null" }, "readonly": { "type": "boolean", "binding": { "consume": { "name": "containerReadonly" } } }, "required": { "type": "boolean" }, "requiredMessageDetail": { "type": "string" }, "textAlign": { "type": "string", "enumValues": ["end", "start", "right"] }, "userAssistanceDensity": { "type": "string", "enumValues": ["compact", "reflow", "efficient"], "binding": { "consume": { "name": "containerUserAssistanceDensity" } } }, "validators": { "type": "Array<object>|null" }, "value": { "type": "string|null", "writeback": true }, "rawValue": { "type": "object", "properties": { "year": { "type": "number" }, "month": { "type": "number" }, "day": { "type": "number" } }, "readOnly": true, "writeback": true }, "valid": { "type": "string", "enumValues": ["pending", "valid", "invalidHidden", "invalidShown"], "readOnly": true, "writeback": true } }, "extension": { "_WRITEBACK_PROPS": ["messagesCustom", "rawValue", "valid", "value"], "_READ_ONLY_PROPS": ["rawValue", "valid"], "_OBSERVED_GLOBAL_PROPS": ["aria-describedby", "id"] }, "methods": { "blur": {}, "focus": {}, "showMessages": {}, "reset": {}, "validate": {} } }, { "columnSpan": 1, "disabled": false, "displayOptions": { "messages": "display", "validatorHint": "display" }, "help": { "instruction": "" }, "helpHints": { "definition": "", "source": "" }, "messagesCustom": [], "readonly": false, "required": false, "userAssistanceDensity": "reflow", "validators": [], "value": null }, {
106
67
  '@oracle/oraclejet-preact': translationBundle_1.default
107
- };
108
- InputDateMask._consumedContexts = [UNSAFE_useFormVariantContext_1.FormVariantContext, UNSAFE_useTabbableMode_1.TabbableModeContext];
109
- exports.InputDateMask = InputDateMask = __decorate([
110
- (0, ojvcomponent_1.customElement)('oj-c-input-date-mask')
111
- ], InputDateMask);
68
+ }, { consume: [UNSAFE_useFormVariantContext_1.FormVariantContext, UNSAFE_useTabbableMode_1.TabbableModeContext] });
112
69
  });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "input-date-text",
3
- "version": "16.0.6",
4
- "jetVersion": "^16.0.6",
3
+ "version": "16.1.1",
4
+ "jetVersion": "^16.1.1",
5
5
  "pack": "oj-c",
6
6
  "type": "composite",
7
7
  "dependencyScope": "runtime",
@@ -23,10 +23,7 @@
23
23
  "minColumns": 2
24
24
  },
25
25
  "oracle": {
26
- "icon": "oj-ux-ico-date",
27
- "uxSpecs": [
28
- "input-date"
29
- ]
26
+ "icon": "oj-ux-ico-date"
30
27
  }
31
28
  },
32
29
  "propertyLayout": [
@@ -0,0 +1,32 @@
1
+ define(["require", "exports", "@oracle/oraclejet-preact/utils/UNSAFE_calendarDateUtils", "ojs/ojconfig"], function (require, exports, UNSAFE_calendarDateUtils_1, ojconfig_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CalendarMonthConverter = void 0;
5
+ class CalendarMonthConverter {
6
+ constructor(options) {
7
+ this.locale = options?.locale ?? (0, ojconfig_1.getLocale)();
8
+ this.calendarMonthConverter_parseErrorFn = options?.calendarMonthConverter_parseErrorFn;
9
+ this.customMask = options?.customMask;
10
+ }
11
+ format(value) {
12
+ if (!(0, UNSAFE_calendarDateUtils_1.isCompleteCalendarMonth)(value)) {
13
+ throw new Error('value must have year and month');
14
+ }
15
+ return value;
16
+ }
17
+ parse(input) {
18
+ if (input !== undefined && !(0, UNSAFE_calendarDateUtils_1.isCompleteCalendarMonth)(input)) {
19
+ const now = new Date();
20
+ const currentYear = now.getFullYear();
21
+ const formattedDateExample = (0, UNSAFE_calendarDateUtils_1.formatIsoDateStrAsExample)(this.locale, `${currentYear}-11-29`, this.customMask, 'month');
22
+ const errorStr = this.calendarMonthConverter_parseErrorFn &&
23
+ this.calendarMonthConverter_parseErrorFn({
24
+ dateExample: formattedDateExample
25
+ });
26
+ throw new Error(errorStr ?? 'parse failed');
27
+ }
28
+ return input;
29
+ }
30
+ }
31
+ exports.CalendarMonthConverter = CalendarMonthConverter;
32
+ });
@@ -0,0 +1,56 @@
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CalendarMonthRangeValidator = void 0;
5
+ class CalendarMonthRangeValidator {
6
+ constructor(options) {
7
+ if (options.min &&
8
+ options.max &&
9
+ CalendarMonthRangeValidator._compareCalendarMonths(options.min, options.max) > 0) {
10
+ throw new Error('min must be less than max');
11
+ }
12
+ this.defaultRangeOverflowMessageDetailFn = options.defaultRangeOverflowMessageDetailFn;
13
+ this.defaultRangeUnderflowMessageDetailFn = options.defaultRangeUnderflowMessageDetailFn;
14
+ this.min = options.min;
15
+ this.max = options.max;
16
+ this.dateRangeOverflowMessageDetail = options.dateRangeOverflowMessageDetail;
17
+ this.dateRangeUnderflowMessageDetail = options.dateRangeUnderflowMessageDetail;
18
+ this.formatObj = options.formatObj;
19
+ }
20
+ validate(value) {
21
+ const messageDetailRangeOverflow = this.dateRangeOverflowMessageDetail;
22
+ const messageDetailRangeUnderflow = this.dateRangeUnderflowMessageDetail;
23
+ const min = this.min;
24
+ const max = this.max;
25
+ if (value === null) {
26
+ return;
27
+ }
28
+ const valStr = value ? this.formatObj.format(value) : value;
29
+ if (max && CalendarMonthRangeValidator._compareCalendarMonths(value, max) > 0) {
30
+ const maxStr = this.formatObj.format(max);
31
+ const detail = messageDetailRangeOverflow
32
+ ? messageDetailRangeOverflow({ max: maxStr, value: valStr })
33
+ : this.defaultRangeOverflowMessageDetailFn({ max: maxStr });
34
+ throw new Error(detail);
35
+ }
36
+ if (min && CalendarMonthRangeValidator._compareCalendarMonths(value, min) < 0) {
37
+ const minStr = this.formatObj.format(min);
38
+ const detail = messageDetailRangeUnderflow
39
+ ? messageDetailRangeUnderflow({ min: minStr, value: valStr })
40
+ : this.defaultRangeUnderflowMessageDetailFn({ min: minStr });
41
+ throw new Error(detail);
42
+ }
43
+ return value;
44
+ }
45
+ static _compareCalendarMonths(val1, val2) {
46
+ if (val1.year === val2.year && val1.month === val2.month) {
47
+ return 0;
48
+ }
49
+ if (val1.year === val2.year) {
50
+ return val1.month > val2.month ? 1 : -1;
51
+ }
52
+ return val1.year > val2.year ? 1 : -1;
53
+ }
54
+ }
55
+ exports.CalendarMonthRangeValidator = CalendarMonthRangeValidator;
56
+ });
@@ -0,0 +1,16 @@
1
+ import { CalendarMonthRequired } from '@oracle/oraclejet-preact/UNSAFE_InputDateMask';
2
+ import { InputMonthMaskWebElementBase } from './InputMonthMaskWebElementBase';
3
+ /**
4
+ * The component WebElement for [oj-c-input-month-mask](../../../oj-c/docs/oj.InputMonthMask.html).
5
+ * Do not instantiate this class directly, instead, use
6
+ * [findInputMonthMask](../modules.html#findInputMonthMask).
7
+ */
8
+ export declare class InputMonthMaskWebElement extends InputMonthMaskWebElementBase {
9
+ /**
10
+ * Sets the value of <code>value</code> property.
11
+ * The value of the component.
12
+ * @param value The value to set for <code>value</code>
13
+ *
14
+ */
15
+ changeDate(value: CalendarMonthRequired): Promise<void>;
16
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InputMonthMaskWebElement = void 0;
4
+ var InputMonthMaskWebElementBase_1 = require("./InputMonthMaskWebElementBase");
5
+ /**
6
+ * The component WebElement for [oj-c-input-month-mask](../../../oj-c/docs/oj.InputMonthMask.html).
7
+ * Do not instantiate this class directly, instead, use
8
+ * [findInputMonthMask](../modules.html#findInputMonthMask).
9
+ */
10
+ class InputMonthMaskWebElement extends InputMonthMaskWebElementBase_1.InputMonthMaskWebElementBase {
11
+ // Put overrides here
12
+ /**
13
+ * Sets the value of <code>value</code> property.
14
+ * The value of the component.
15
+ * @param value The value to set for <code>value</code>
16
+ *
17
+ */
18
+ async changeDate(value) {
19
+ return this.setProperty('value', value);
20
+ }
21
+ }
22
+ exports.InputMonthMaskWebElement = InputMonthMaskWebElement;
23
+ //# sourceMappingURL=InputMonthMaskWebElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputMonthMaskWebElement.js","sourceRoot":"","sources":["InputMonthMaskWebElement.ts"],"names":[],"mappings":";;;AACA,+EAA8E;AAE9E;;;;GAIG;AACH,MAAa,wBAAyB,SAAQ,2DAA4B;IACxE,qBAAqB;IACrB;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CAAC,KAA4B;QAC3C,OAAO,IAAI,CAAC,WAAW,CAAwB,OAAO,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAXD,4DAWC","sourcesContent":["import { CalendarMonthRequired } from '@oracle/oraclejet-preact/UNSAFE_InputDateMask';\nimport { InputMonthMaskWebElementBase } from './InputMonthMaskWebElementBase';\n\n/**\n * The component WebElement for [oj-c-input-month-mask](../../../oj-c/docs/oj.InputMonthMask.html).\n * Do not instantiate this class directly, instead, use\n * [findInputMonthMask](../modules.html#findInputMonthMask).\n */\nexport class InputMonthMaskWebElement extends InputMonthMaskWebElementBase {\n // Put overrides here\n /**\n * Sets the value of <code>value</code> property.\n * The value of the component.\n * @param value The value to set for <code>value</code>\n *\n */\n async changeDate(value: CalendarMonthRequired): Promise<void> {\n return this.setProperty<CalendarMonthRequired>('value', value);\n }\n}\n"]}
@@ -0,0 +1,275 @@
1
+ import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';
2
+ /**
3
+ * This is the base class for oj-c-input-month-mask 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, InputMonthMaskWebElement.ts.
7
+ */
8
+ export declare class InputMonthMaskWebElementBase extends OjWebElement {
9
+ /**
10
+ * Gets the value of <code>columnSpan</code> property.
11
+ * Specifies how many columns this component should span.
12
+ * @return The value of <code>columnSpan</code> property.
13
+ *
14
+ */
15
+ getColumnSpan(): Promise<number>;
16
+ /**
17
+ * Gets the value of <code>containerReadonly</code> property.
18
+ * Specifies whether an ancestor container, like oj-c-form-layout, is readonly.
19
+ * @return The value of <code>containerReadonly</code> property.
20
+ *
21
+ */
22
+ getContainerReadonly(): Promise<boolean>;
23
+ /**
24
+ * Gets the value of <code>dateRangeOverflowMessageDetail</code> property.
25
+ * Overrides the default validator's rangeOverflow message detail.
26
+ * @return The value of <code>dateRangeOverflowMessageDetail</code> property.
27
+ *
28
+ */
29
+ getDateRangeOverflowMessageDetail(): Promise<null>;
30
+ /**
31
+ * Gets the value of <code>dateRangeUnderflowMessageDetail</code> property.
32
+ * Overrides the default validator's rangeUnderflow message detail.
33
+ * @return The value of <code>dateRangeUnderflowMessageDetail</code> property.
34
+ *
35
+ */
36
+ getDateRangeUnderflowMessageDetail(): Promise<null>;
37
+ /**
38
+ * Gets the value of <code>disabled</code> property.
39
+ * Specifies whether the component is disabled.
40
+ * @return The value of <code>disabled</code> property.
41
+ *
42
+ */
43
+ getDisabled(): Promise<boolean>;
44
+ /**
45
+ * Gets the value of <code>displayOptions</code> property.
46
+ * Display options for auxiliary content that determines whether or not it should be displayed.
47
+ * @return The value of <code>displayOptions</code> property.
48
+ *
49
+ */
50
+ getDisplayOptions(): Promise<DisplayOptions>;
51
+ /**
52
+ * Gets the value of <code>help</code> property.
53
+ * Form component help information.
54
+ * @return The value of <code>help</code> property.
55
+ *
56
+ */
57
+ getHelp(): Promise<Help>;
58
+ /**
59
+ * Gets the value of <code>helpHints</code> property.
60
+ * The helpHints object contains a definition property and a source property.
61
+ * @return The value of <code>helpHints</code> property.
62
+ *
63
+ */
64
+ getHelpHints(): Promise<HelpHints>;
65
+ /**
66
+ * Gets the value of <code>labelEdge</code> property.
67
+ * Specifies how the label is positioned for the component
68
+ * @return The value of <code>labelEdge</code> property.
69
+ *
70
+ */
71
+ getLabelEdge(): Promise<string>;
72
+ /**
73
+ * Gets the value of <code>labelHint</code> property.
74
+ * Represents a hint for rendering a label on the component.
75
+ * @return The value of <code>labelHint</code> property.
76
+ *
77
+ */
78
+ getLabelHint(): Promise<string>;
79
+ /**
80
+ * Gets the value of <code>labelStartWidth</code> property.
81
+ * The width of the label when labelEdge is 'start'.
82
+ * @return The value of <code>labelStartWidth</code> property.
83
+ *
84
+ */
85
+ getLabelStartWidth(): Promise<number | string>;
86
+ /**
87
+ * Gets the value of <code>labelWrapping</code> property.
88
+ * Should the labels wrap or truncate when there is not enough available space.
89
+ * @return The value of <code>labelWrapping</code> property.
90
+ *
91
+ */
92
+ getLabelWrapping(): Promise<string>;
93
+ /**
94
+ * Gets the value of <code>max</code> property.
95
+ * The maximum selectable year and month
96
+ * @return The value of <code>max</code> property.
97
+ *
98
+ */
99
+ getMax(): Promise<Max | null>;
100
+ /**
101
+ * Sets the value of <code>messagesCustom</code> property.
102
+ * List of custom component messages
103
+ * @param messagesCustom The value to set for <code>messagesCustom</code>
104
+ *
105
+ */
106
+ changeMessagesCustom(messagesCustom: Array<MessagesCustom>): Promise<void>;
107
+ /**
108
+ * Gets the value of <code>messagesCustom</code> property.
109
+ * List of custom component messages
110
+ * @return The value of <code>messagesCustom</code> property.
111
+ *
112
+ */
113
+ getMessagesCustom(): Promise<Array<MessagesCustom>>;
114
+ /**
115
+ * Gets the value of <code>min</code> property.
116
+ * The minimum selectable year and month
117
+ * @return The value of <code>min</code> property.
118
+ *
119
+ */
120
+ getMin(): Promise<Min | null>;
121
+ /**
122
+ * Gets the value of <code>readonly</code> property.
123
+ * Whether the component is readonly
124
+ * @return The value of <code>readonly</code> property.
125
+ *
126
+ */
127
+ getReadonly(): Promise<boolean>;
128
+ /**
129
+ * Gets the value of <code>required</code> property.
130
+ * Specifies whether or not the component is required.
131
+ * @return The value of <code>required</code> property.
132
+ *
133
+ */
134
+ getRequired(): Promise<boolean>;
135
+ /**
136
+ * Gets the value of <code>requiredMessageDetail</code> property.
137
+ * Overrides the default Required error message.
138
+ * @return The value of <code>requiredMessageDetail</code> property.
139
+ *
140
+ */
141
+ getRequiredMessageDetail(): Promise<string>;
142
+ /**
143
+ * Gets the value of <code>textAlign</code> property.
144
+ * Specifies how the text is aligned within the text field
145
+ * @return The value of <code>textAlign</code> property.
146
+ *
147
+ */
148
+ getTextAlign(): Promise<string>;
149
+ /**
150
+ * Gets the value of <code>userAssistanceDensity</code> property.
151
+ * Specifies the density of the form component's user assistance presentation.
152
+ * @return The value of <code>userAssistanceDensity</code> property.
153
+ *
154
+ */
155
+ getUserAssistanceDensity(): Promise<string>;
156
+ /**
157
+ * Gets the value of <code>validators</code> property.
158
+ * Specifies the validators for the component.
159
+ * @return The value of <code>validators</code> property.
160
+ *
161
+ */
162
+ getValidators(): Promise<Array<object> | null>;
163
+ /**
164
+ * Sets the value of <code>value</code> property.
165
+ * The value of the component.
166
+ * @param value The value to set for <code>value</code>
167
+ *
168
+ */
169
+ changeValue(value: Value | null): Promise<void>;
170
+ /**
171
+ * Gets the value of <code>value</code> property.
172
+ * The value of the component.
173
+ * @return The value of <code>value</code> property.
174
+ *
175
+ */
176
+ getValue(): Promise<Value | null>;
177
+ /**
178
+ * Gets the value of <code>rawValue</code> property.
179
+ * Specifies how the raw value of the component
180
+ * @return The value of <code>rawValue</code> property.
181
+ *
182
+ */
183
+ getRawValue(): Promise<RawValue>;
184
+ /**
185
+ * Gets the value of <code>valid</code> property.
186
+ * Specifies how the valid state of the component
187
+ * @return The value of <code>valid</code> property.
188
+ *
189
+ */
190
+ getValid(): Promise<string>;
191
+ }
192
+ export interface DisplayOptions {
193
+ /**
194
+ *
195
+ */
196
+ messages: string;
197
+ /**
198
+ *
199
+ */
200
+ validatorHint: string;
201
+ }
202
+ export interface Help {
203
+ /**
204
+ *
205
+ */
206
+ instruction: string;
207
+ }
208
+ export interface HelpHints {
209
+ /**
210
+ *
211
+ */
212
+ definition: string;
213
+ /**
214
+ *
215
+ */
216
+ source: string;
217
+ /**
218
+ *
219
+ */
220
+ sourceText: string;
221
+ }
222
+ export interface Max {
223
+ /**
224
+ *
225
+ */
226
+ year: number;
227
+ /**
228
+ *
229
+ */
230
+ month: number;
231
+ }
232
+ export interface MessagesCustom {
233
+ /**
234
+ *
235
+ */
236
+ summary: string;
237
+ /**
238
+ *
239
+ */
240
+ detail: string;
241
+ /**
242
+ *
243
+ */
244
+ severity: string;
245
+ }
246
+ export interface Min {
247
+ /**
248
+ *
249
+ */
250
+ year: number;
251
+ /**
252
+ *
253
+ */
254
+ month: number;
255
+ }
256
+ export interface Value {
257
+ /**
258
+ *
259
+ */
260
+ year: number;
261
+ /**
262
+ *
263
+ */
264
+ month: number;
265
+ }
266
+ export interface RawValue {
267
+ /**
268
+ *
269
+ */
270
+ year: number;
271
+ /**
272
+ *
273
+ */
274
+ month: number;
275
+ }