@oracle/oraclejet-core-pack 16.0.6 → 16.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -790,12 +790,37 @@ define('oj-c/utils/PRIVATE_chartUtils/plotAreaUtils',["require", "exports"], fun
790
790
  exports.getPlotArea = getPlotArea;
791
791
  });
792
792
 
793
+ define('oj-c/utils/PRIVATE_chartUtils/axisUtils',["require", "exports"], function (require, exports) {
794
+ "use strict";
795
+ Object.defineProperty(exports, "__esModule", { value: true });
796
+ exports.getPreactAxisProps = void 0;
797
+ const getPreactAxisProps = (axisProps) => {
798
+ const newProps = {};
799
+ const { tickLabel, ...rest } = axisProps;
800
+ if (tickLabel?.converter) {
801
+ if (Array.isArray(tickLabel.converter)) {
802
+ newProps['format'] = [
803
+ (value) => tickLabel.converter[0]?.format?.(new Date(value).toISOString()),
804
+ (value) => tickLabel.converter[1]?.format?.(new Date(value).toISOString())
805
+ ];
806
+ }
807
+ else {
808
+ newProps['format'] = (value) => tickLabel.converter?.format?.(axisProps['timeAxisType'] ? new Date(value).toISOString() : value);
809
+ }
810
+ }
811
+ newProps['isRendered'] = tickLabel?.rendered != 'off';
812
+ newProps['style'] = tickLabel?.style;
813
+ return { tickLabel: newProps, ...rest };
814
+ };
815
+ exports.getPreactAxisProps = getPreactAxisProps;
816
+ });
793
817
 
794
- define('oj-c/area-chart/area-chart',["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/translationBundle', "preact/hooks", "@oracle/oraclejet-preact/UNSAFE_LineAreaChart", "ojs/ojcontext", "@oracle/oraclejet-preact/UNSAFE_Legend", "@oracle/oraclejet-preact/UNSAFE_ChartWithLegend", "ojs/ojvcomponent", "../hooks/UNSAFE_useChartData/useChartData", "../utils/PRIVATE_chartUtils/events", "../utils/PRIVATE_chartUtils/legendUtils", "../hooks/UNSAFE_useVizCategories/useVizCategories", "../hooks/UNSAFE_useLegendPosition/useLegendPosition", "../utils/PRIVATE_chartUtils/lineAreaUtils", "../utils/PRIVATE_chartUtils/plotAreaUtils", "css!oj-c/area-chart/area-chart-styles.css"], function (require, exports, jsx_runtime_1, translationBundle_1, hooks_1, UNSAFE_LineAreaChart_1, Context, UNSAFE_Legend_1, UNSAFE_ChartWithLegend_1, ojvcomponent_1, useChartData_1, events_1, legendUtils_1, useVizCategories_1, useLegendPosition_1, lineAreaUtils_1, plotAreaUtils_1) {
818
+
819
+ define('oj-c/area-chart/area-chart',["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/translationBundle', "preact/hooks", "@oracle/oraclejet-preact/UNSAFE_LineAreaChart", "ojs/ojcontext", "@oracle/oraclejet-preact/UNSAFE_Legend", "@oracle/oraclejet-preact/UNSAFE_ChartWithLegend", "ojs/ojvcomponent", "../hooks/UNSAFE_useChartData/useChartData", "../utils/PRIVATE_chartUtils/events", "../utils/PRIVATE_chartUtils/legendUtils", "../hooks/UNSAFE_useVizCategories/useVizCategories", "../hooks/UNSAFE_useLegendPosition/useLegendPosition", "../utils/PRIVATE_chartUtils/lineAreaUtils", "../utils/PRIVATE_chartUtils/plotAreaUtils", "../utils/PRIVATE_chartUtils/axisUtils", "css!oj-c/area-chart/area-chart-styles.css"], function (require, exports, jsx_runtime_1, translationBundle_1, hooks_1, UNSAFE_LineAreaChart_1, Context, UNSAFE_Legend_1, UNSAFE_ChartWithLegend_1, ojvcomponent_1, useChartData_1, events_1, legendUtils_1, useVizCategories_1, useLegendPosition_1, lineAreaUtils_1, plotAreaUtils_1, axisUtils_1) {
795
820
  "use strict";
796
821
  Object.defineProperty(exports, "__esModule", { value: true });
797
822
  exports.AreaChart = void 0;
798
- function AreaChartComp({ data, hideAndShowBehavior = 'none', orientation = 'vertical', xAxis, yAxis, hoverBehavior = 'none', valueFormats, plotArea, zoomAndScroll, itemTemplate, seriesTemplate, groupTemplate, seriesComparator, groupComparator, drilling = 'off', hiddenCategories = [], highlightedCategories = [], highlightMatch = 'any', selection = [], selectionMode = 'none', stack = 'off', legend = {
823
+ function AreaChartComp({ data, hideAndShowBehavior = 'none', orientation = 'vertical', xAxis, yAxis, hoverBehavior = 'none', valueFormats, plotArea, zoomAndScroll, itemTemplate, seriesTemplate, groupTemplate, seriesComparator, groupComparator, drilling = 'off', hiddenCategories = [], highlightedCategories = [], highlightMatch = 'any', selection = [], selectionMode = 'none', timeAxisType, stack = 'off', legend = {
799
824
  rendered: 'on',
800
825
  position: 'auto'
801
826
  }, ...props }) {
@@ -838,11 +863,11 @@ define('oj-c/area-chart/area-chart',["require", "exports", "preact/jsx-runtime",
838
863
  updateHighlighted(detail.itemId);
839
864
  }
840
865
  };
841
- const chart = series.length > 0 && groups.length > 0 ? ((0, jsx_runtime_1.jsx)(UNSAFE_LineAreaChart_1.LineAreaChart, { type: "area", width: "100%", height: "100%", series: series, groups: groups, getDataItem: getDataItem, onItemInput: onItemInput, drilling: drilling, onItemDrill: itemDrillHandler, onGroupDrill: groupDrillHandler, onSelectionChange: selectionChangeHandler, selectionMode: selectionMode, selectedIds: selectionMode === 'none' ? undefined : selection, orientation: orientation, xAxis: xAxisRest, yAxis: yAxisRest, highlightedIds: highlightedIds.length === 0 ? undefined : highlightedIds, hiddenIds: hiddenIds, plotArea: (0, plotAreaUtils_1.getPlotArea)(plotArea, yMajorTick, yMinorTick, xMajorTick), hideAndShowBehavior: hideAndShowBehavior, hoverBehavior: hoverBehavior, isStacked: stack === 'on', valueFormats: (0, lineAreaUtils_1.transformValueFormats)(valueFormats), "aria-label": props['aria-label'], "aria-describedBy": props['aria-describedby'], "aria-labelledBy": props['aria-labelledby'] })) : undefined;
866
+ const chart = series.length > 0 && groups.length > 0 ? ((0, jsx_runtime_1.jsx)(UNSAFE_LineAreaChart_1.LineAreaChart, { type: "area", width: "100%", height: "100%", series: series, groups: groups, getDataItem: getDataItem, onItemInput: onItemInput, drilling: drilling, onItemDrill: itemDrillHandler, onGroupDrill: groupDrillHandler, onSelectionChange: selectionChangeHandler, selectionMode: selectionMode, selectedIds: selectionMode === 'none' ? undefined : selection, orientation: orientation, xAxis: (0, axisUtils_1.getPreactAxisProps)({ ...xAxisRest, timeAxisType }), yAxis: (0, axisUtils_1.getPreactAxisProps)(yAxisRest), highlightedIds: highlightedIds.length === 0 ? undefined : highlightedIds, hiddenIds: hiddenIds, plotArea: (0, plotAreaUtils_1.getPlotArea)(plotArea, yMajorTick, yMinorTick, xMajorTick), hideAndShowBehavior: hideAndShowBehavior, hoverBehavior: hoverBehavior, isStacked: stack === 'on', valueFormats: (0, lineAreaUtils_1.transformValueFormats)(valueFormats), "aria-label": props['aria-label'], "aria-describedBy": props['aria-describedby'], "aria-labelledBy": props['aria-labelledby'] })) : undefined;
842
867
  const chartLegend = isLegendRendered && legendData.length > 0 ? ((0, jsx_runtime_1.jsx)(UNSAFE_Legend_1.Legend, { items: legendData, orientation: legendPosition === 'start' || legendPosition === 'end' ? 'vertical' : 'horizontal', isReadOnly: !isLegendInteractive, highlightedIds: highlightedIds.length === 0 ? undefined : highlightedIds, hiddenIds: hiddenIds.length === 0 ? undefined : hiddenIds, symbolHeight: legend.symbolHeight, symbolWidth: legend.symbolWidth, onItemAction: legendItemActionHandler, onInput: legendItemInputHandler })) : undefined;
843
868
  return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { ref: rootRef, children: (0, jsx_runtime_1.jsx)(UNSAFE_ChartWithLegend_1.ChartWithLegend, { chart: chart, position: legendPosition, maxSize: legend.maxSize, size: legend.size, legend: chartLegend }) }));
844
869
  }
845
- exports.AreaChart = (0, ojvcomponent_1.registerCustomElement)('oj-c-area-chart', AreaChartComp, "AreaChart", { "properties": { "data": { "type": "DataProvider|null" }, "seriesComparator": { "type": "function" }, "groupComparator": { "type": "function" }, "stack": { "type": "string", "enumValues": ["off", "on"] }, "drilling": { "type": "string", "enumValues": ["off", "on"] }, "orientation": { "type": "string", "enumValues": ["horizontal", "vertical"] }, "yAxis": { "type": "object", "properties": { "majorTick": { "type": "object", "properties": { "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "lineColor": { "type": "string" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "minorTick": { "type": "object", "properties": { "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "lineColor": { "type": "string" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } } } }, "xAxis": { "type": "object", "properties": { "majorTick": { "type": "object", "properties": { "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "lineColor": { "type": "string" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } } } }, "plotArea": { "type": "object", "properties": { "backgroundColor": { "type": "string" } } }, "zoomAndScroll": { "type": "string", "enumValues": ["off", "live"] }, "valueFormats": { "type": "object", "properties": { "group": { "type": "object", "properties": { "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } }, "series": { "type": "object", "properties": { "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } }, "value": { "type": "object", "properties": { "converter": { "type": "any" }, "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } } } }, "selectionMode": { "type": "string", "enumValues": ["none", "multiple", "single"] }, "selection": { "type": "Array<any>", "writeback": true }, "hiddenCategories": { "type": "Array<string>", "writeback": true }, "highlightedCategories": { "type": "Array<string>", "writeback": true }, "hideAndShowBehavior": { "type": "string", "enumValues": ["none", "withoutRescale", "withRescale"] }, "hoverBehavior": { "type": "string", "enumValues": ["none", "dim"] }, "highlightMatch": { "type": "string", "enumValues": ["all", "any"] }, "legend": { "type": "object", "properties": { "position": { "type": "string", "enumValues": ["auto", "end", "start", "top", "bottom"] }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] }, "maxSize": { "type": "number|string" }, "size": { "type": "number|string" }, "symbolHeight": { "type": "number" }, "symbolWidth": { "type": "number" } } } }, "slots": { "itemTemplate": { "data": {} }, "seriesTemplate": { "data": {} }, "groupTemplate": { "data": {} } }, "events": { "ojViewportChange": {}, "ojItemDrill": {}, "ojGroupDrill": {}, "ojSeriesDrill": {} }, "extension": { "_WRITEBACK_PROPS": ["selection", "hiddenCategories", "highlightedCategories"], "_READ_ONLY_PROPS": [], "_OBSERVED_GLOBAL_PROPS": ["aria-label", "aria-describedby", "aria-labelledby"] } }, { "hideAndShowBehavior": "none", "orientation": "vertical", "hoverBehavior": "none", "drilling": "off", "hiddenCategories": [], "highlightedCategories": [], "highlightMatch": "any", "selection": [], "selectionMode": "none", "stack": "off", "legend": { "rendered": "on", "position": "auto" } }, {
870
+ exports.AreaChart = (0, ojvcomponent_1.registerCustomElement)('oj-c-area-chart', AreaChartComp, "AreaChart", { "properties": { "data": { "type": "DataProvider|null" }, "seriesComparator": { "type": "function" }, "groupComparator": { "type": "function" }, "stack": { "type": "string", "enumValues": ["off", "on"] }, "drilling": { "type": "string", "enumValues": ["off", "on"] }, "orientation": { "type": "string", "enumValues": ["horizontal", "vertical"] }, "timeAxisType": { "type": "string", "enumValues": ["enabled", "mixedFrequency", "skipGaps"] }, "yAxis": { "type": "object", "properties": { "dataMax": { "type": "number" }, "dataMin": { "type": "number" }, "max": { "type": "number" }, "min": { "type": "number" }, "majorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "minorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "tickLabel": { "type": "object", "properties": { "converter": { "type": "object" }, "rendered": { "type": "string", "enumValues": ["off", "on"] }, "style": { "type": "object" } } }, "viewportMin": { "type": "number" }, "viewportMax": { "type": "number" }, "step": { "type": "number" }, "size": { "type": "number" }, "scale": { "type": "string", "enumValues": ["linear", "log"] }, "title": { "type": "string" }, "titleStyle": { "type": "object" } } }, "xAxis": { "type": "object", "properties": { "majorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "minorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "tickLabel": { "type": "object", "properties": { "converter": { "type": "object|" }, "rendered": { "type": "string", "enumValues": ["off", "on"] }, "style": { "type": "object" } } }, "viewportMin": { "type": "number" }, "viewportMax": { "type": "number" }, "step": { "type": "number" }, "size": { "type": "number" }, "scale": { "type": "string", "enumValues": ["linear", "log"] }, "title": { "type": "string" }, "titleStyle": { "type": "object" } } }, "plotArea": { "type": "object", "properties": { "backgroundColor": { "type": "string" } } }, "zoomAndScroll": { "type": "string", "enumValues": ["off", "live"] }, "valueFormats": { "type": "object", "properties": { "group": { "type": "object", "properties": { "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } }, "series": { "type": "object", "properties": { "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } }, "value": { "type": "object", "properties": { "converter": { "type": "object" }, "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } } } }, "selectionMode": { "type": "string", "enumValues": ["none", "multiple", "single"] }, "selection": { "type": "Array<any>", "writeback": true }, "hiddenCategories": { "type": "Array<string>", "writeback": true }, "highlightedCategories": { "type": "Array<string>", "writeback": true }, "hideAndShowBehavior": { "type": "string", "enumValues": ["none", "withoutRescale", "withRescale"] }, "hoverBehavior": { "type": "string", "enumValues": ["none", "dim"] }, "highlightMatch": { "type": "string", "enumValues": ["all", "any"] }, "legend": { "type": "object", "properties": { "position": { "type": "string", "enumValues": ["auto", "end", "start", "top", "bottom"] }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] }, "maxSize": { "type": "number|string" }, "size": { "type": "number|string" }, "symbolHeight": { "type": "number" }, "symbolWidth": { "type": "number" } } } }, "slots": { "itemTemplate": { "data": {} }, "seriesTemplate": { "data": {} }, "groupTemplate": { "data": {} } }, "events": { "ojViewportChange": {}, "ojItemDrill": {}, "ojGroupDrill": {}, "ojSeriesDrill": {} }, "extension": { "_WRITEBACK_PROPS": ["selection", "hiddenCategories", "highlightedCategories"], "_READ_ONLY_PROPS": [], "_OBSERVED_GLOBAL_PROPS": ["aria-label", "aria-describedby", "aria-labelledby"] } }, { "hideAndShowBehavior": "none", "orientation": "vertical", "hoverBehavior": "none", "drilling": "off", "hiddenCategories": [], "highlightedCategories": [], "highlightMatch": "any", "selection": [], "selectionMode": "none", "stack": "off", "legend": { "rendered": "on", "position": "auto" } }, {
846
871
  '@oracle/oraclejet-preact': translationBundle_1.default
847
872
  });
848
873
  });
@@ -860,7 +885,7 @@ define('oj-c/area-chart-item/area-chart-item',["require", "exports", '@oracle/or
860
885
  exports.AreaChartItem = void 0;
861
886
  exports.AreaChartItem = (0, ojvcomponent_1.registerCustomElement)('oj-c-area-chart-item', ({}) => {
862
887
  return null;
863
- }, "AreaChartItem", { "properties": { "seriesId": { "type": "string" }, "groupId": { "type": "Array<string>" }, "value": { "type": "number" }, "color": { "type": "string" }, "markerDisplayed": { "type": "string", "enumValues": ["auto", "off", "on"] }, "markerShape": { "type": "string", "enumValues": ["auto", "square", "circle", "diamond", "human", "plus", "star", "triangleDown", "triangleUp"] }, "markerSize": { "type": "number" }, "categories": { "type": "Array<string>" }, "drilling": { "type": "string", "enumValues": ["inherit", "off", "on"] }, "shortDesc": { "type": "string" } } }, undefined, {
888
+ }, "AreaChartItem", { "properties": { "seriesId": { "type": "string" }, "groupId": { "type": "Array<string>" }, "value": { "type": "number" }, "x": { "type": "string" }, "color": { "type": "string" }, "markerDisplayed": { "type": "string", "enumValues": ["auto", "off", "on"] }, "markerShape": { "type": "string", "enumValues": ["auto", "square", "circle", "diamond", "human", "plus", "star", "triangleDown", "triangleUp"] }, "markerSize": { "type": "number" }, "categories": { "type": "Array<string>" }, "drilling": { "type": "string", "enumValues": ["inherit", "off", "on"] }, "shortDesc": { "type": "string" } } }, undefined, {
864
889
  '@oracle/oraclejet-preact': translationBundle_1.default
865
890
  });
866
891
  });
@@ -881,7 +906,7 @@ define('oj-c/area-chart-series/area-chart-series',["require", "exports", '@oracl
881
906
  };
882
907
  exports.AreaChartSeries = (0, ojvcomponent_1.registerCustomElement)('oj-c-area-chart-series', ({ drilling = exports.AreaChartSeriesDefaults.drilling, ...props }) => {
883
908
  return null;
884
- }, "AreaChartSeries", { "properties": { "categories": { "type": "Array<string>" }, "color": { "type": "string" }, "drilling": { "type": "string", "enumValues": ["inherit", "off", "on"] }, "lineType": { "type": "string", "enumValues": ["curved", "straight"] }, "markerShape": { "type": "string", "enumValues": ["auto", "square", "circle", "diamond", "human", "plus", "star", "triangleDown", "triangleUp"] }, "markerColor": { "type": "string" }, "markerDisplayed": { "type": "string" }, "markerSize": { "type": "number" }, "name": { "type": "string" }, "shortDesc": { "type": "string" } } }, undefined, {
909
+ }, "AreaChartSeries", { "properties": { "categories": { "type": "Array<string>" }, "color": { "type": "string" }, "drilling": { "type": "string", "enumValues": ["inherit", "off", "on"] }, "lineType": { "type": "string", "enumValues": ["curved", "straight"] }, "markerShape": { "type": "string", "enumValues": ["auto", "square", "circle", "diamond", "human", "plus", "star", "triangleDown", "triangleUp"] }, "markerColor": { "type": "string" }, "markerDisplayed": { "type": "string" }, "markerSize": { "type": "number" }, "name": { "type": "string" }, "shortDesc": { "type": "string" } } }, { "drilling": "inherit" }, {
885
910
  '@oracle/oraclejet-preact': translationBundle_1.default
886
911
  });
887
912
  });
@@ -902,7 +927,7 @@ define('oj-c/area-chart-group/area-chart-group',["require", "exports", '@oracle/
902
927
  };
903
928
  exports.AreaChartGroup = (0, ojvcomponent_1.registerCustomElement)('oj-c-area-chart-group', ({ drilling = exports.AreaChartGroupDefaults.drilling, ...props }) => {
904
929
  return null;
905
- }, "AreaChartGroup", { "properties": { "drilling": { "type": "string", "enumValues": ["inherit", "off", "on"] }, "name": { "type": "string" }, "shortDesc": { "type": "string" } } }, undefined, {
930
+ }, "AreaChartGroup", { "properties": { "drilling": { "type": "string", "enumValues": ["inherit", "off", "on"] }, "name": { "type": "string" }, "shortDesc": { "type": "string" } } }, { "drilling": "inherit" }, {
906
931
  '@oracle/oraclejet-preact': translationBundle_1.default
907
932
  });
908
933
  });
@@ -2364,25 +2389,42 @@ define('oj-c/input-date-mask/useInputDateMaskPreact',["require", "exports", "oj-
2364
2389
  });
2365
2390
 
2366
2391
 
2367
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2368
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2369
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2370
- 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;
2371
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2372
- };
2373
- define('oj-c/input-date-mask/input-date-mask',["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) {
2392
+ define('oj-c/input-date-mask/input-date-mask',["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) {
2374
2393
  "use strict";
2375
2394
  Object.defineProperty(exports, "__esModule", { value: true });
2376
2395
  exports.InputDateMask = void 0;
2377
- const FunctionalInputDateMask = (0, compat_1.forwardRef)((props, ref) => {
2378
- const { busyContextRef, displayOptions, help, helpHints, validators } = props;
2396
+ const displayOptionsDefault = {
2397
+ messages: 'display',
2398
+ validatorHint: 'display'
2399
+ };
2400
+ const helpDefault = {
2401
+ instruction: ''
2402
+ };
2403
+ const helpHintsDefault = {
2404
+ definition: '',
2405
+ source: ''
2406
+ };
2407
+ const messagesCustomDefault = [];
2408
+ const validatorsDefault = [];
2409
+ 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) => {
2410
+ const rootRef = (0, hooks_1.useRef)();
2379
2411
  const inputDateMaskRef = (0, hooks_1.useRef)();
2380
- const addBusyState = (0, hooks_1.useCallback)((desc) => {
2381
- return busyContextRef.current?.addBusyState({
2382
- description: `oj-c-input-date-mask id=${props.id} is ${desc}`
2383
- });
2412
+ const addBusyState = (0, hooks_1.useCallback)((description = 'InputDateMask: busyState') => {
2413
+ return rootRef.current
2414
+ ? Context.getContext(rootRef.current).getBusyContext().addBusyState({ description })
2415
+ : () => { };
2384
2416
  }, []);
2385
- const { inputDateMaskProps, methods } = (0, useInputDateMaskPreact_1.useInputDateMaskPreact)(props, addBusyState);
2417
+ const { inputDateMaskProps, methods } = (0, useInputDateMaskPreact_1.useInputDateMaskPreact)({
2418
+ disabled,
2419
+ displayOptions,
2420
+ messagesCustom,
2421
+ readonly,
2422
+ required,
2423
+ userAssistanceDensity,
2424
+ validators,
2425
+ value,
2426
+ ...otherProps
2427
+ }, addBusyState);
2386
2428
  (0, hooks_1.useImperativeHandle)(ref, () => ({
2387
2429
  blur: () => inputDateMaskRef.current?.blur(),
2388
2430
  focus: () => inputDateMaskRef.current?.focus(),
@@ -2396,85 +2438,25 @@ define('oj-c/input-date-mask/input-date-mask',["require", "exports", "preact/jsx
2396
2438
  validators
2397
2439
  });
2398
2440
  const variant = (0, UNSAFE_useFormVariantContext_1.useFormVariantContext)();
2399
- return ((0, jsx_runtime_1.jsx)(UNSAFE_InputDateMask_1.InputDateMask, { ref: inputDateMaskRef, ...assistiveTextProps, ...inputDateMaskProps, variant: variant }));
2400
- });
2401
- let InputDateMask = class InputDateMask extends preact_1.Component {
2402
- constructor() {
2403
- super(...arguments);
2404
- this.busyContextRef = (0, preact_1.createRef)();
2405
- this.inputDateMaskRef = (0, preact_1.createRef)();
2406
- this.rootRef = (0, preact_1.createRef)();
2407
- }
2408
- componentDidMount() {
2409
- this.busyContextRef.current = Context.getContext(this.rootRef.current).getBusyContext();
2410
- }
2411
- render({ columnSpan, ...props }) {
2412
- const containerProps = {
2413
- isFormLayout: props.containerReadonly !== undefined,
2414
- isReadonly: props.containerReadonly,
2415
- labelWrapping: props.labelWrapping
2416
- };
2417
- if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(props.value)) {
2418
- throw new Error('value must be a date-only ISO string');
2419
- }
2420
- if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(props.min)) {
2421
- throw new Error('min must be a date-only ISO string');
2422
- }
2423
- if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(props.max)) {
2424
- throw new Error('max must be a date-only ISO string');
2425
- }
2426
- 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 }) }) }));
2427
- }
2428
- componentWillUnmount() {
2429
- this.busyContextRef.current = null;
2430
- }
2431
- reset() {
2432
- this.inputDateMaskRef.current?.reset();
2433
- }
2434
- showMessages() {
2435
- this.inputDateMaskRef.current?.showMessages();
2436
- }
2437
- validate() {
2438
- return this.inputDateMaskRef.current?.validate();
2441
+ const containerProps = {
2442
+ isFormLayout: otherProps.containerReadonly !== undefined,
2443
+ isReadonly: otherProps.containerReadonly,
2444
+ labelWrapping: otherProps.labelWrapping
2445
+ };
2446
+ if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(value)) {
2447
+ throw new Error('value must be a date-only ISO string');
2439
2448
  }
2440
- blur() {
2441
- this.inputDateMaskRef.current?.blur();
2449
+ if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(otherProps.min)) {
2450
+ throw new Error('min must be a date-only ISO string');
2442
2451
  }
2443
- focus() {
2444
- this.inputDateMaskRef.current?.focus();
2452
+ if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(otherProps.max)) {
2453
+ throw new Error('max must be a date-only ISO string');
2445
2454
  }
2455
+ 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 }) }) }));
2446
2456
  };
2447
- exports.InputDateMask = InputDateMask;
2448
- InputDateMask.defaultProps = {
2449
- columnSpan: 1,
2450
- disabled: false,
2451
- displayOptions: {
2452
- messages: 'display',
2453
- validatorHint: 'display'
2454
- },
2455
- help: {
2456
- instruction: ''
2457
- },
2458
- helpHints: {
2459
- definition: '',
2460
- source: '',
2461
- sourceText: undefined
2462
- },
2463
- messagesCustom: [],
2464
- readonly: false,
2465
- required: false,
2466
- userAssistanceDensity: 'reflow',
2467
- validators: [],
2468
- value: null
2469
- };
2470
- 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": {} } };
2471
- InputDateMask._translationBundleMap = {
2457
+ 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 }, {
2472
2458
  '@oracle/oraclejet-preact': translationBundle_1.default
2473
- };
2474
- InputDateMask._consumedContexts = [UNSAFE_useFormVariantContext_1.FormVariantContext, UNSAFE_useTabbableMode_1.TabbableModeContext];
2475
- exports.InputDateMask = InputDateMask = __decorate([
2476
- (0, ojvcomponent_1.customElement)('oj-c-input-date-mask')
2477
- ], InputDateMask);
2459
+ }, { consume: [UNSAFE_useFormVariantContext_1.FormVariantContext, UNSAFE_useTabbableMode_1.TabbableModeContext] });
2478
2460
  });
2479
2461
 
2480
2462
  define('oj-c/input-date-mask',["require", "exports", "./input-date-mask/input-date-mask"], function (require, exports, input_date_mask_1) {
@@ -2484,137 +2466,421 @@ define('oj-c/input-date-mask',["require", "exports", "./input-date-mask/input-da
2484
2466
  Object.defineProperty(exports, "InputDateMask", { enumerable: true, get: function () { return input_date_mask_1.InputDateMask; } });
2485
2467
  });
2486
2468
 
2487
- define('oj-c/input-number/useImplicitNumberConverter',["require", "exports", "ojs/ojconverter-nativenumber", "preact/hooks"], function (require, exports, ojconverter_nativenumber_1, hooks_1) {
2488
- "use strict";
2489
- Object.defineProperty(exports, "__esModule", { value: true });
2490
- exports.useImplicitNumberConverter = void 0;
2491
- function useImplicitNumberConverter({ converter }) {
2492
- const implicitConverter = (0, hooks_1.useMemo)(() => {
2493
- return converter ?? new ojconverter_nativenumber_1.NumberConverter();
2494
- }, [converter]);
2495
- return implicitConverter;
2496
- }
2497
- exports.useImplicitNumberConverter = useImplicitNumberConverter;
2498
- });
2499
-
2500
- define('oj-c/input-number/useImplicitNumberRangeValidator',["require", "exports", "preact/hooks", "ojs/ojvalidator-numberrange"], function (require, exports, hooks_1, NumberRangeValidator) {
2469
+ define('oj-c/input-month-mask/CalendarMonthConverter',["require", "exports", "@oracle/oraclejet-preact/utils/UNSAFE_calendarDateUtils", "ojs/ojconfig"], function (require, exports, UNSAFE_calendarDateUtils_1, ojconfig_1) {
2501
2470
  "use strict";
2502
2471
  Object.defineProperty(exports, "__esModule", { value: true });
2503
- exports.useImplicitNumberRangeValidator = void 0;
2504
- function useImplicitNumberRangeValidator({ converter, max, min, numberRangeExactMessageDetail, numberRangeOverflowMessageDetail, numberRangeUnderflowMessageDetail }) {
2505
- const numberRangeValidator = (0, hooks_1.useMemo)(() => {
2506
- if (min !== undefined || max !== undefined) {
2507
- return new NumberRangeValidator({
2508
- converter,
2509
- max,
2510
- min,
2511
- messageDetail: {
2512
- exact: numberRangeExactMessageDetail,
2513
- rangeOverflow: numberRangeOverflowMessageDetail,
2514
- rangeUnderflow: numberRangeUnderflowMessageDetail
2515
- }
2516
- });
2472
+ exports.CalendarMonthConverter = void 0;
2473
+ class CalendarMonthConverter {
2474
+ constructor(options) {
2475
+ this.locale = options?.locale ?? (0, ojconfig_1.getLocale)();
2476
+ this.calendarMonthConverter_parseErrorFn = options?.calendarMonthConverter_parseErrorFn;
2477
+ this.customMask = options?.customMask;
2478
+ }
2479
+ format(value) {
2480
+ if (!(0, UNSAFE_calendarDateUtils_1.isCompleteCalendarMonth)(value)) {
2481
+ throw new Error('value must have year and month');
2517
2482
  }
2518
- return null;
2519
- }, [converter, min, max]);
2520
- return numberRangeValidator;
2483
+ return value;
2484
+ }
2485
+ parse(input) {
2486
+ if (input !== undefined && !(0, UNSAFE_calendarDateUtils_1.isCompleteCalendarMonth)(input)) {
2487
+ const now = new Date();
2488
+ const currentYear = now.getFullYear();
2489
+ const formattedDateExample = (0, UNSAFE_calendarDateUtils_1.formatIsoDateStrAsExample)(this.locale, `${currentYear}-11-29`, this.customMask, 'month');
2490
+ const errorStr = this.calendarMonthConverter_parseErrorFn &&
2491
+ this.calendarMonthConverter_parseErrorFn({
2492
+ dateExample: formattedDateExample
2493
+ });
2494
+ throw new Error(errorStr ?? 'parse failed');
2495
+ }
2496
+ return input;
2497
+ }
2521
2498
  }
2522
- exports.useImplicitNumberRangeValidator = useImplicitNumberRangeValidator;
2499
+ exports.CalendarMonthConverter = CalendarMonthConverter;
2523
2500
  });
2524
2501
 
2525
- define('oj-c/input-number/stepBasisUtils',["require", "exports"], function (require, exports) {
2502
+ define('oj-c/input-month-mask/CalendarMonthRangeValidator',["require", "exports"], function (require, exports) {
2526
2503
  "use strict";
2527
2504
  Object.defineProperty(exports, "__esModule", { value: true });
2528
- exports.determineSteppedValue = void 0;
2529
- function determineSteppedValue(step, stepOpt, currentParsedValue, initialValue, maxOpt, minOpt) {
2530
- const precision = _precision(stepOpt, initialValue, minOpt);
2531
- if (precision > 0) {
2532
- const power = Math.pow(10, precision);
2533
- const minOptPower = minOpt !== undefined ? Math.round(minOpt * power) : minOpt;
2534
- const maxOptPower = maxOpt != null ? Math.round(maxOpt * power) : maxOpt;
2535
- const stepOptPower = Math.round(stepOpt * power);
2536
- const adjustValuePower = _adjustValueForZeroPrecision(Math.round(step * power), stepOptPower, Math.round(currentParsedValue * power), initialValue !== undefined && initialValue !== null
2537
- ? Math.round(initialValue * power)
2538
- : initialValue, maxOptPower, minOptPower);
2539
- return adjustValuePower / power;
2540
- }
2541
- return _adjustValueForZeroPrecision(step, stepOpt, currentParsedValue, initialValue, maxOpt, minOpt);
2542
- }
2543
- exports.determineSteppedValue = determineSteppedValue;
2544
- function _adjustValueForZeroPrecision(step, stepOpt, currentParsedValue, initialValue, maxOpt, minOpt) {
2545
- let stepBase = minOpt != null ? minOpt : initialValue;
2546
- if (stepBase === null || stepBase === undefined) {
2547
- stepBase = 0;
2548
- }
2549
- try {
2550
- currentParsedValue = parseFloat(currentParsedValue.toFixed(0));
2551
- }
2552
- catch (e) {
2553
- if (e instanceof TypeError) {
2554
- currentParsedValue = +currentParsedValue;
2505
+ exports.CalendarMonthRangeValidator = void 0;
2506
+ class CalendarMonthRangeValidator {
2507
+ constructor(options) {
2508
+ if (options.min &&
2509
+ options.max &&
2510
+ CalendarMonthRangeValidator._compareCalendarMonths(options.min, options.max) > 0) {
2511
+ throw new Error('min must be less than max');
2512
+ }
2513
+ this.defaultRangeOverflowMessageDetailFn = options.defaultRangeOverflowMessageDetailFn;
2514
+ this.defaultRangeUnderflowMessageDetailFn = options.defaultRangeUnderflowMessageDetailFn;
2515
+ this.min = options.min;
2516
+ this.max = options.max;
2517
+ this.dateRangeOverflowMessageDetail = options.dateRangeOverflowMessageDetail;
2518
+ this.dateRangeUnderflowMessageDetail = options.dateRangeUnderflowMessageDetail;
2519
+ this.formatObj = options.formatObj;
2520
+ }
2521
+ validate(value) {
2522
+ const messageDetailRangeOverflow = this.dateRangeOverflowMessageDetail;
2523
+ const messageDetailRangeUnderflow = this.dateRangeUnderflowMessageDetail;
2524
+ const min = this.min;
2525
+ const max = this.max;
2526
+ if (value === null) {
2527
+ return;
2555
2528
  }
2529
+ const valStr = value ? this.formatObj.format(value) : value;
2530
+ if (max && CalendarMonthRangeValidator._compareCalendarMonths(value, max) > 0) {
2531
+ const maxStr = this.formatObj.format(max);
2532
+ const detail = messageDetailRangeOverflow
2533
+ ? messageDetailRangeOverflow({ max: maxStr, value: valStr })
2534
+ : this.defaultRangeOverflowMessageDetailFn({ max: maxStr });
2535
+ throw new Error(detail);
2536
+ }
2537
+ if (min && CalendarMonthRangeValidator._compareCalendarMonths(value, min) < 0) {
2538
+ const minStr = this.formatObj.format(min);
2539
+ const detail = messageDetailRangeUnderflow
2540
+ ? messageDetailRangeUnderflow({ min: minStr, value: valStr })
2541
+ : this.defaultRangeUnderflowMessageDetailFn({ min: minStr });
2542
+ throw new Error(detail);
2543
+ }
2544
+ return value;
2556
2545
  }
2557
- let aboveMin = currentParsedValue - stepBase;
2558
- let rounded = Math.round(aboveMin / stepOpt) * stepOpt;
2559
- rounded = parseFloat(rounded.toFixed(0));
2560
- const multiple = rounded === aboveMin;
2561
- let newValue;
2562
- if (!multiple) {
2563
- if (step < 0) {
2564
- aboveMin = Math.ceil(aboveMin / stepOpt) * stepOpt;
2546
+ static _compareCalendarMonths(val1, val2) {
2547
+ if (val1.year === val2.year && val1.month === val2.month) {
2548
+ return 0;
2565
2549
  }
2566
- else {
2567
- aboveMin = Math.floor(aboveMin / stepOpt) * stepOpt;
2550
+ if (val1.year === val2.year) {
2551
+ return val1.month > val2.month ? 1 : -1;
2568
2552
  }
2569
- newValue = stepBase + aboveMin + step;
2570
- }
2571
- else {
2572
- newValue = currentParsedValue + step;
2553
+ return val1.year > val2.year ? 1 : -1;
2573
2554
  }
2574
- newValue = parseFloat(newValue.toFixed(0));
2575
- if (minOpt != null && newValue < minOpt) {
2576
- return minOpt;
2577
- }
2578
- if (maxOpt != null && newValue > maxOpt) {
2579
- let validMax = Math.floor((maxOpt - stepBase) / stepOpt) * stepOpt + stepBase;
2580
- validMax = parseFloat(validMax.toFixed(0));
2581
- return validMax;
2582
- }
2583
- return newValue;
2584
- }
2585
- function _precision(stepOpt, initialValue, minOpt) {
2586
- let precision = _precisionOf(stepOpt);
2587
- if (minOpt != null) {
2588
- precision = Math.max(precision, _precisionOf(minOpt));
2589
- }
2590
- if (initialValue != null) {
2591
- precision = Math.max(precision, _precisionOf(initialValue));
2592
- }
2593
- return precision;
2594
2555
  }
2595
- function _precisionOf(num) {
2596
- const str = num.toString();
2597
- const decimal = str.indexOf('.');
2598
- return decimal === -1 ? 0 : str.length - decimal - 1;
2556
+ exports.CalendarMonthRangeValidator = CalendarMonthRangeValidator;
2557
+ });
2558
+
2559
+ define('oj-c/input-month-mask/useImplicitCalendarMonthRangeValidator',["require", "exports", "preact/hooks", "./CalendarMonthRangeValidator", "@oracle/oraclejet-preact/hooks/UNSAFE_useTranslationBundle"], function (require, exports, hooks_1, CalendarMonthRangeValidator_1, UNSAFE_useTranslationBundle_1) {
2560
+ "use strict";
2561
+ Object.defineProperty(exports, "__esModule", { value: true });
2562
+ exports.useImplicitCalendarMonthRangeValidator = void 0;
2563
+ function useImplicitCalendarMonthRangeValidator({ formatObj, dateRangeOverflowMessageDetail, dateRangeUnderflowMessageDetail, max, min }) {
2564
+ const translations = (0, UNSAFE_useTranslationBundle_1.useTranslationBundle)('@oracle/oraclejet-preact');
2565
+ const defaultRangeOverflowMessageDetailFn = translations.inputMonthMask_dateRangeOverflowMessageDetail;
2566
+ const defaultRangeUnderflowMessageDetailFn = translations.inputMonthMask_dateRangeUnderflowMessageDetail;
2567
+ const calendarMonthRangeValidator = (0, hooks_1.useMemo)(() => {
2568
+ if (min !== undefined || max !== undefined) {
2569
+ return new CalendarMonthRangeValidator_1.CalendarMonthRangeValidator({
2570
+ defaultRangeOverflowMessageDetailFn,
2571
+ defaultRangeUnderflowMessageDetailFn,
2572
+ formatObj,
2573
+ max,
2574
+ min,
2575
+ dateRangeOverflowMessageDetail,
2576
+ dateRangeUnderflowMessageDetail
2577
+ });
2578
+ }
2579
+ return null;
2580
+ }, [formatObj, dateRangeOverflowMessageDetail, dateRangeUnderflowMessageDetail, min, max]);
2581
+ return calendarMonthRangeValidator;
2599
2582
  }
2583
+ exports.useImplicitCalendarMonthRangeValidator = useImplicitCalendarMonthRangeValidator;
2600
2584
  });
2601
2585
 
2602
- define('oj-c/input-number/useNumberInputTextPreact',["require", "exports", "oj-c/editable-value/UNSAFE_useEditableValue/useEditableValue", "oj-c/editable-value/UNSAFE_useValidators/useValidators", "./useImplicitNumberConverter", "./useImplicitNumberRangeValidator", "preact/hooks", "oj-c/editable-value/utils/utils", "./stepBasisUtils"], function (require, exports, useEditableValue_1, useValidators_1, useImplicitNumberConverter_1, useImplicitNumberRangeValidator_1, hooks_1, utils_1, stepBasisUtils_1) {
2586
+ define('oj-c/input-month-mask/useInputMonthMaskPreact',["require", "exports", "oj-c/editable-value/UNSAFE_useEditableValueRawValueObject/useEditableValueRawValueObject", "./CalendarMonthConverter", "preact/hooks", "@oracle/oraclejet-preact/hooks/UNSAFE_useTranslationBundle", "ojs/ojconverter-preferences", "@oracle/oraclejet-preact/utils/UNSAFE_calendarDateUtils", "./useImplicitCalendarMonthRangeValidator", "oj-c/editable-value/utils/utils", "ojs/ojconfig"], function (require, exports, useEditableValueRawValueObject_1, CalendarMonthConverter_1, hooks_1, UNSAFE_useTranslationBundle_1, ojconverter_preferences_1, UNSAFE_calendarDateUtils_1, useImplicitCalendarMonthRangeValidator_1, utils_1, ojconfig_1) {
2603
2587
  "use strict";
2604
2588
  Object.defineProperty(exports, "__esModule", { value: true });
2605
- exports.useNumberInputTextPreact = void 0;
2606
- function useNumberInputTextPreact({ autocomplete = 'on', autofocus, converter: propConverter, disabled, displayOptions, inputPrefix, inputSuffix, labelEdge, labelHint, labelStartWidth, max, messagesCustom, min, numberRangeExactMessageDetail, numberRangeOverflowMessageDetail, numberRangeUnderflowMessageDetail, placeholder, readonly, required, requiredMessageDetail, step, stepperVariant, textAlign, userAssistanceDensity, validators, value: propValue, virtualKeyboard, onMessagesCustomChanged, onRawValueChanged, onTransientValueChanged, onValidChanged, onValueChanged, ...otherProps }, addBusyState) {
2589
+ exports.useInputMonthMaskPreact = void 0;
2590
+ function useInputMonthMaskPreact({ dateRangeOverflowMessageDetail, dateRangeUnderflowMessageDetail, disabled, displayOptions, labelEdge, labelHint, labelStartWidth, max, messagesCustom, min, readonly, required, requiredMessageDetail, textAlign, userAssistanceDensity, validators, value: propValue, onMessagesCustomChanged, onRawValueChanged, onValidChanged, onValueChanged, ...otherProps }, addBusyState) {
2607
2591
  const minTreatNull = (0, utils_1.treatNull)(min);
2608
2592
  const maxTreatNull = (0, utils_1.treatNull)(max);
2609
- const converter = (0, useImplicitNumberConverter_1.useImplicitNumberConverter)({
2610
- converter: propConverter
2611
- });
2612
- const implicitComponentValidator = (0, useImplicitNumberRangeValidator_1.useImplicitNumberRangeValidator)({
2613
- converter,
2593
+ const translations = (0, UNSAFE_useTranslationBundle_1.useTranslationBundle)('@oracle/oraclejet-preact');
2594
+ const calendarMonthConverter_parseErrorFn = translations.calendarMonthConverter_parseError;
2595
+ const masksFromUserPref = (0, hooks_1.useMemo)(() => {
2596
+ return getMasksFromDatePatternPreferences();
2597
+ }, []);
2598
+ const implicitConverter = (0, hooks_1.useMemo)(() => {
2599
+ return new CalendarMonthConverter_1.CalendarMonthConverter({
2600
+ calendarMonthConverter_parseErrorFn,
2601
+ customMask: masksFromUserPref
2602
+ });
2603
+ }, [calendarMonthConverter_parseErrorFn, masksFromUserPref]);
2604
+ const exampleFormatter = (0, hooks_1.useMemo)(() => {
2605
+ return {
2606
+ format: (value) => {
2607
+ return (0, UNSAFE_calendarDateUtils_1.formatCalendarMonthRequiredAsExample)((0, ojconfig_1.getLocale)(), value, masksFromUserPref);
2608
+ }
2609
+ };
2610
+ }, [masksFromUserPref]);
2611
+ const implicitComponentValidator = (0, useImplicitCalendarMonthRangeValidator_1.useImplicitCalendarMonthRangeValidator)({
2612
+ formatObj: exampleFormatter,
2613
+ dateRangeOverflowMessageDetail,
2614
+ dateRangeUnderflowMessageDetail,
2614
2615
  max: maxTreatNull,
2615
- min: minTreatNull,
2616
- numberRangeExactMessageDetail,
2617
- numberRangeOverflowMessageDetail,
2616
+ min: minTreatNull
2617
+ });
2618
+ const { methods, textFieldProps, value, setValue } = (0, useEditableValueRawValueObject_1.useEditableValueRawValueObject)({
2619
+ ariaDescribedBy: otherProps['aria-describedby'],
2620
+ converter: implicitConverter,
2621
+ disabled,
2622
+ displayOptions,
2623
+ implicitComponentValidator,
2624
+ labelHint,
2625
+ messagesCustom,
2626
+ readonly,
2627
+ required,
2628
+ requiredMessageDetail,
2629
+ validators,
2630
+ value: propValue,
2631
+ addBusyState,
2632
+ onMessagesCustomChanged,
2633
+ onRawValueChanged,
2634
+ onValidChanged,
2635
+ onValueChanged
2636
+ });
2637
+ const hasNoValue = value === undefined || !isPartialDate(textFieldProps.value);
2638
+ return {
2639
+ value,
2640
+ setValue,
2641
+ methods,
2642
+ inputMonthMaskProps: {
2643
+ isDisabled: disabled,
2644
+ isReadonly: readonly,
2645
+ isRequired: required,
2646
+ isRequiredShown: required && (userAssistanceDensity === 'compact' || hasNoValue),
2647
+ label: labelHint,
2648
+ labelEdge,
2649
+ labelStartWidth,
2650
+ masks: masksFromUserPref,
2651
+ textAlign,
2652
+ userAssistanceDensity,
2653
+ ...textFieldProps
2654
+ }
2655
+ };
2656
+ }
2657
+ exports.useInputMonthMaskPreact = useInputMonthMaskPreact;
2658
+ const isPartialDate = (value) => {
2659
+ if (value === undefined)
2660
+ return false;
2661
+ return value.year !== undefined || value.month !== undefined;
2662
+ };
2663
+ const getMasksFromDatePatternPreferences = () => {
2664
+ const prefs = (0, ojconverter_preferences_1.getDateTimePreferences)();
2665
+ const pattern = prefs.dateStyle?.short?.pattern;
2666
+ if (!pattern || pattern.toUpperCase().includes('MMM')) {
2667
+ return undefined;
2668
+ }
2669
+ const datePlaceholders = (0, UNSAFE_calendarDateUtils_1.getDatePlaceholdersFromPattern)(pattern);
2670
+ const monthDatePlaceholder = (0, UNSAFE_calendarDateUtils_1.getMonthYearPlaceholdersFromDatePlaceholders)(datePlaceholders);
2671
+ return monthDatePlaceholder;
2672
+ };
2673
+ });
2674
+
2675
+
2676
+ define('oj-c/input-month-mask/input-month-mask',["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", "./useInputMonthMaskPreact", "@oracle/oraclejet-preact/utils/UNSAFE_styles/Layout", "@oracle/oraclejet-preact/utils/UNSAFE_calendarDateUtils", "css!oj-c/input-month-mask/input-month-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, useInputMonthMaskPreact_1, Layout_1, UNSAFE_calendarDateUtils_1) {
2677
+ "use strict";
2678
+ Object.defineProperty(exports, "__esModule", { value: true });
2679
+ exports.InputMonthMask = void 0;
2680
+ const displayOptionsDefault = {
2681
+ messages: 'display',
2682
+ validatorHint: 'display'
2683
+ };
2684
+ const helpDefault = {
2685
+ instruction: ''
2686
+ };
2687
+ const helpHintsDefault = {
2688
+ definition: '',
2689
+ source: ''
2690
+ };
2691
+ const messagesCustomDefault = [];
2692
+ const validatorsDefault = [];
2693
+ const InputMonthMaskImpl = ({ columnSpan = 1, disabled = false, displayOptions = displayOptionsDefault, help = helpDefault, helpHints = helpHintsDefault, messagesCustom = messagesCustomDefault, readonly = false, required = false, userAssistanceDensity = 'reflow', validators = validatorsDefault, value = null, ...otherProps }, ref) => {
2694
+ const rootRef = (0, hooks_1.useRef)();
2695
+ const inputMonthMaskRef = (0, hooks_1.useRef)();
2696
+ const addBusyState = (0, hooks_1.useCallback)((description = 'InputMonthMask: busyState') => {
2697
+ return rootRef.current
2698
+ ? Context.getContext(rootRef.current).getBusyContext().addBusyState({ description })
2699
+ : () => { };
2700
+ }, []);
2701
+ const { inputMonthMaskProps, methods } = (0, useInputMonthMaskPreact_1.useInputMonthMaskPreact)({
2702
+ disabled,
2703
+ displayOptions,
2704
+ messagesCustom,
2705
+ readonly,
2706
+ required,
2707
+ userAssistanceDensity,
2708
+ validators,
2709
+ value,
2710
+ ...otherProps
2711
+ }, addBusyState);
2712
+ (0, hooks_1.useImperativeHandle)(ref, () => ({
2713
+ blur: () => inputMonthMaskRef.current?.blur(),
2714
+ focus: () => inputMonthMaskRef.current?.focus(),
2715
+ ...methods
2716
+ }), [methods]);
2717
+ const assistiveTextProps = (0, useAssistiveText_1.useAssistiveText)({
2718
+ displayOptions,
2719
+ help,
2720
+ helpHints,
2721
+ userAssistanceDensity: inputMonthMaskProps.userAssistanceDensity,
2722
+ validators
2723
+ });
2724
+ const variant = (0, UNSAFE_useFormVariantContext_1.useFormVariantContext)();
2725
+ const containerProps = {
2726
+ isFormLayout: otherProps.containerReadonly !== undefined,
2727
+ isReadonly: otherProps.containerReadonly,
2728
+ labelWrapping: otherProps.labelWrapping
2729
+ };
2730
+ if (!(0, UNSAFE_calendarDateUtils_1.isValidCalendarMonthRequired)(value)) {
2731
+ throw new Error('If the value property is defined, it must be an object with year and month defined.');
2732
+ }
2733
+ if (!(0, UNSAFE_calendarDateUtils_1.isValidCalendarMonthRequired)(otherProps.min)) {
2734
+ throw new Error('If the min property is defined, it must be an object with year and month defined.');
2735
+ }
2736
+ if (!(0, UNSAFE_calendarDateUtils_1.isValidCalendarMonthRequired)(otherProps.max)) {
2737
+ throw new Error('If the max property is defined, it must be an object with year and month defined.');
2738
+ }
2739
+ 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: inputMonthMaskRef, ...assistiveTextProps, ...inputMonthMaskProps, variant: variant, granularity: "month" }) }) }));
2740
+ };
2741
+ exports.InputMonthMask = (0, ojvcomponent_1.registerCustomElement)('oj-c-input-month-mask', (0, compat_1.forwardRef)(InputMonthMaskImpl), "InputMonthMask", { "properties": { "columnSpan": { "type": "number" }, "containerReadonly": { "type": "boolean", "binding": { "consume": { "name": "containerReadonly" } } }, "dateRangeOverflowMessageDetail": { "type": "function" }, "dateRangeUnderflowMessageDetail": { "type": "function" }, "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": "object|null", "properties": { "year": { "type": "number" }, "month": { "type": "number" } } }, "messagesCustom": { "type": "Array<object>", "writeback": true }, "min": { "type": "object|null", "properties": { "year": { "type": "number" }, "month": { "type": "number" } } }, "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": "object|null", "properties": { "year": { "type": "number" }, "month": { "type": "number" } }, "writeback": true }, "rawValue": { "type": "object", "properties": { "year": { "type": "number" }, "month": { "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 }, {
2742
+ '@oracle/oraclejet-preact': translationBundle_1.default
2743
+ }, { consume: [UNSAFE_useFormVariantContext_1.FormVariantContext, UNSAFE_useTabbableMode_1.TabbableModeContext] });
2744
+ });
2745
+
2746
+ define('oj-c/input-month-mask',["require", "exports", "./input-month-mask/input-month-mask"], function (require, exports, input_month_mask_1) {
2747
+ "use strict";
2748
+ Object.defineProperty(exports, "__esModule", { value: true });
2749
+ exports.InputMonthMask = void 0;
2750
+ Object.defineProperty(exports, "InputMonthMask", { enumerable: true, get: function () { return input_month_mask_1.InputMonthMask; } });
2751
+ });
2752
+
2753
+ define('oj-c/input-number/useImplicitNumberConverter',["require", "exports", "ojs/ojconverter-nativenumber", "preact/hooks"], function (require, exports, ojconverter_nativenumber_1, hooks_1) {
2754
+ "use strict";
2755
+ Object.defineProperty(exports, "__esModule", { value: true });
2756
+ exports.useImplicitNumberConverter = void 0;
2757
+ function useImplicitNumberConverter({ converter }) {
2758
+ const implicitConverter = (0, hooks_1.useMemo)(() => {
2759
+ return converter ?? new ojconverter_nativenumber_1.NumberConverter();
2760
+ }, [converter]);
2761
+ return implicitConverter;
2762
+ }
2763
+ exports.useImplicitNumberConverter = useImplicitNumberConverter;
2764
+ });
2765
+
2766
+ define('oj-c/input-number/useImplicitNumberRangeValidator',["require", "exports", "preact/hooks", "ojs/ojvalidator-numberrange"], function (require, exports, hooks_1, NumberRangeValidator) {
2767
+ "use strict";
2768
+ Object.defineProperty(exports, "__esModule", { value: true });
2769
+ exports.useImplicitNumberRangeValidator = void 0;
2770
+ function useImplicitNumberRangeValidator({ converter, max, min, numberRangeExactMessageDetail, numberRangeOverflowMessageDetail, numberRangeUnderflowMessageDetail }) {
2771
+ const numberRangeValidator = (0, hooks_1.useMemo)(() => {
2772
+ if (min !== undefined || max !== undefined) {
2773
+ return new NumberRangeValidator({
2774
+ converter,
2775
+ max,
2776
+ min,
2777
+ messageDetail: {
2778
+ exact: numberRangeExactMessageDetail,
2779
+ rangeOverflow: numberRangeOverflowMessageDetail,
2780
+ rangeUnderflow: numberRangeUnderflowMessageDetail
2781
+ }
2782
+ });
2783
+ }
2784
+ return null;
2785
+ }, [converter, min, max]);
2786
+ return numberRangeValidator;
2787
+ }
2788
+ exports.useImplicitNumberRangeValidator = useImplicitNumberRangeValidator;
2789
+ });
2790
+
2791
+ define('oj-c/input-number/stepBasisUtils',["require", "exports"], function (require, exports) {
2792
+ "use strict";
2793
+ Object.defineProperty(exports, "__esModule", { value: true });
2794
+ exports.determineSteppedValue = void 0;
2795
+ function determineSteppedValue(step, stepOpt, currentParsedValue, initialValue, maxOpt, minOpt) {
2796
+ const precision = _precision(stepOpt, initialValue, minOpt);
2797
+ if (precision > 0) {
2798
+ const power = Math.pow(10, precision);
2799
+ const minOptPower = minOpt !== undefined ? Math.round(minOpt * power) : minOpt;
2800
+ const maxOptPower = maxOpt != null ? Math.round(maxOpt * power) : maxOpt;
2801
+ const stepOptPower = Math.round(stepOpt * power);
2802
+ const adjustValuePower = _adjustValueForZeroPrecision(Math.round(step * power), stepOptPower, Math.round(currentParsedValue * power), initialValue !== undefined && initialValue !== null
2803
+ ? Math.round(initialValue * power)
2804
+ : initialValue, maxOptPower, minOptPower);
2805
+ return adjustValuePower / power;
2806
+ }
2807
+ return _adjustValueForZeroPrecision(step, stepOpt, currentParsedValue, initialValue, maxOpt, minOpt);
2808
+ }
2809
+ exports.determineSteppedValue = determineSteppedValue;
2810
+ function _adjustValueForZeroPrecision(step, stepOpt, currentParsedValue, initialValue, maxOpt, minOpt) {
2811
+ let stepBase = minOpt != null ? minOpt : initialValue;
2812
+ if (stepBase === null || stepBase === undefined) {
2813
+ stepBase = 0;
2814
+ }
2815
+ try {
2816
+ currentParsedValue = parseFloat(currentParsedValue.toFixed(0));
2817
+ }
2818
+ catch (e) {
2819
+ if (e instanceof TypeError) {
2820
+ currentParsedValue = +currentParsedValue;
2821
+ }
2822
+ }
2823
+ let aboveMin = currentParsedValue - stepBase;
2824
+ let rounded = Math.round(aboveMin / stepOpt) * stepOpt;
2825
+ rounded = parseFloat(rounded.toFixed(0));
2826
+ const multiple = rounded === aboveMin;
2827
+ let newValue;
2828
+ if (!multiple) {
2829
+ if (step < 0) {
2830
+ aboveMin = Math.ceil(aboveMin / stepOpt) * stepOpt;
2831
+ }
2832
+ else {
2833
+ aboveMin = Math.floor(aboveMin / stepOpt) * stepOpt;
2834
+ }
2835
+ newValue = stepBase + aboveMin + step;
2836
+ }
2837
+ else {
2838
+ newValue = currentParsedValue + step;
2839
+ }
2840
+ newValue = parseFloat(newValue.toFixed(0));
2841
+ if (minOpt != null && newValue < minOpt) {
2842
+ return minOpt;
2843
+ }
2844
+ if (maxOpt != null && newValue > maxOpt) {
2845
+ let validMax = Math.floor((maxOpt - stepBase) / stepOpt) * stepOpt + stepBase;
2846
+ validMax = parseFloat(validMax.toFixed(0));
2847
+ return validMax;
2848
+ }
2849
+ return newValue;
2850
+ }
2851
+ function _precision(stepOpt, initialValue, minOpt) {
2852
+ let precision = _precisionOf(stepOpt);
2853
+ if (minOpt != null) {
2854
+ precision = Math.max(precision, _precisionOf(minOpt));
2855
+ }
2856
+ if (initialValue != null) {
2857
+ precision = Math.max(precision, _precisionOf(initialValue));
2858
+ }
2859
+ return precision;
2860
+ }
2861
+ function _precisionOf(num) {
2862
+ const str = num.toString();
2863
+ const decimal = str.indexOf('.');
2864
+ return decimal === -1 ? 0 : str.length - decimal - 1;
2865
+ }
2866
+ });
2867
+
2868
+ define('oj-c/input-number/useNumberInputTextPreact',["require", "exports", "oj-c/editable-value/UNSAFE_useEditableValue/useEditableValue", "oj-c/editable-value/UNSAFE_useValidators/useValidators", "./useImplicitNumberConverter", "./useImplicitNumberRangeValidator", "preact/hooks", "oj-c/editable-value/utils/utils", "./stepBasisUtils"], function (require, exports, useEditableValue_1, useValidators_1, useImplicitNumberConverter_1, useImplicitNumberRangeValidator_1, hooks_1, utils_1, stepBasisUtils_1) {
2869
+ "use strict";
2870
+ Object.defineProperty(exports, "__esModule", { value: true });
2871
+ exports.useNumberInputTextPreact = void 0;
2872
+ function useNumberInputTextPreact({ autocomplete = 'on', autofocus, converter: propConverter, disabled, displayOptions, inputPrefix, inputSuffix, labelEdge, labelHint, labelStartWidth, max, messagesCustom, min, numberRangeExactMessageDetail, numberRangeOverflowMessageDetail, numberRangeUnderflowMessageDetail, placeholder, readonly, required, requiredMessageDetail, step, stepperVariant, textAlign, userAssistanceDensity, validators, value: propValue, virtualKeyboard, onMessagesCustomChanged, onRawValueChanged, onTransientValueChanged, onValidChanged, onValueChanged, ...otherProps }, addBusyState) {
2873
+ const minTreatNull = (0, utils_1.treatNull)(min);
2874
+ const maxTreatNull = (0, utils_1.treatNull)(max);
2875
+ const converter = (0, useImplicitNumberConverter_1.useImplicitNumberConverter)({
2876
+ converter: propConverter
2877
+ });
2878
+ const implicitComponentValidator = (0, useImplicitNumberRangeValidator_1.useImplicitNumberRangeValidator)({
2879
+ converter,
2880
+ max: maxTreatNull,
2881
+ min: minTreatNull,
2882
+ numberRangeExactMessageDetail,
2883
+ numberRangeOverflowMessageDetail,
2618
2884
  numberRangeUnderflowMessageDetail
2619
2885
  });
2620
2886
  const { onCommitValue, format, normalizeAndParseValue, methods, textFieldProps, value, setValue, displayValue, setDisplayValue, setTransientValue } = (0, useEditableValue_1.useEditableValue)({
@@ -3088,6 +3354,142 @@ define('oj-c/input-password',["require", "exports", "./input-password/input-pass
3088
3354
  Object.defineProperty(exports, "InputPassword", { enumerable: true, get: function () { return input_password_1.InputPassword; } });
3089
3355
  });
3090
3356
 
3357
+ define('oj-c/input-sensitive-text/useInputSensitiveTextPreact',["require", "exports", "oj-c/editable-value/UNSAFE_useEditableValue/useEditableValue", "oj-c/editable-value/utils/utils"], function (require, exports, useEditableValue_1, utils_1) {
3358
+ "use strict";
3359
+ Object.defineProperty(exports, "__esModule", { value: true });
3360
+ exports.useInputSensitiveTextPreact = void 0;
3361
+ function useInputSensitiveTextPreact({ autofocus, clearIcon = 'never', disabled, displayOptions, labelEdge, labelHint, labelStartWidth, length, maskIcon, maskIconLabel, messagesCustom, placeholder, readonly, required, requiredMessageDetail, textAlign, userAssistanceDensity, validators, value: propValue, virtualKeyboard, onMessagesCustomChanged, onRawValueChanged, onValidChanged, onValueChanged, ...otherProps }, addBusyState) {
3362
+ const { methods, textFieldProps, value, setValue } = (0, useEditableValue_1.useEditableValue)({
3363
+ ariaDescribedBy: otherProps['aria-describedby'],
3364
+ disabled,
3365
+ displayOptions,
3366
+ messagesCustom,
3367
+ readonly,
3368
+ required,
3369
+ requiredMessageDetail,
3370
+ validators,
3371
+ value: propValue,
3372
+ addBusyState,
3373
+ onMessagesCustomChanged,
3374
+ onRawValueChanged,
3375
+ onValidChanged,
3376
+ onValueChanged
3377
+ });
3378
+ const hasNoValue = value === null || (typeof value === 'string' && value === '');
3379
+ const hasClearIcon = clearIcon === 'conditional' ? 'conditionally' : clearIcon;
3380
+ const hasRevealToggle = maskIcon === 'hidden' ? 'never' : 'always';
3381
+ return {
3382
+ value,
3383
+ setValue,
3384
+ methods,
3385
+ inputSensitiveTextProps: {
3386
+ ...textFieldProps,
3387
+ autoFocus: autofocus,
3388
+ hasClearIcon,
3389
+ hasRevealToggle,
3390
+ isDisabled: disabled,
3391
+ isReadonly: readonly,
3392
+ isRequired: required,
3393
+ isRequiredShown: required && (userAssistanceDensity === 'compact' || hasNoValue),
3394
+ label: labelHint,
3395
+ labelEdge,
3396
+ labelStartWidth,
3397
+ maxLength: (0, utils_1.treatNull)(length?.max),
3398
+ maxLengthUnit: length?.countBy,
3399
+ placeholder,
3400
+ revealToggleLabel: maskIconLabel,
3401
+ textAlign,
3402
+ userAssistanceDensity,
3403
+ virtualKeyboard
3404
+ }
3405
+ };
3406
+ }
3407
+ exports.useInputSensitiveTextPreact = useInputSensitiveTextPreact;
3408
+ });
3409
+
3410
+
3411
+ define('oj-c/input-sensitive-text/input-sensitive-text',["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/translationBundle', "preact/compat", "@oracle/oraclejet-preact/hooks/UNSAFE_useFormContext", "@oracle/oraclejet-preact/hooks/UNSAFE_useFormVariantContext", "@oracle/oraclejet-preact/hooks/UNSAFE_useTabbableMode", "@oracle/oraclejet-preact/UNSAFE_InputSensitiveText", "@oracle/oraclejet-preact/utils/UNSAFE_styles/Layout", "oj-c/editable-value/UNSAFE_useAssistiveText/useAssistiveText", "ojs/ojvcomponent", "ojs/ojcontext", "./useInputSensitiveTextPreact", "css!oj-c/input-sensitive-text/input-sensitive-text-styles.css"], function (require, exports, jsx_runtime_1, translationBundle_1, compat_1, UNSAFE_useFormContext_1, UNSAFE_useFormVariantContext_1, UNSAFE_useTabbableMode_1, UNSAFE_InputSensitiveText_1, Layout_1, useAssistiveText_1, ojvcomponent_1, Context, useInputSensitiveTextPreact_1) {
3412
+ "use strict";
3413
+ Object.defineProperty(exports, "__esModule", { value: true });
3414
+ exports.InputSensitiveText = void 0;
3415
+ const displayOptionsDefault = {
3416
+ messages: 'display',
3417
+ validatorHint: 'display'
3418
+ };
3419
+ const helpDefault = {
3420
+ instruction: ''
3421
+ };
3422
+ const helpHintsDefault = {
3423
+ definition: '',
3424
+ source: ''
3425
+ };
3426
+ const messagesCustomDefault = [];
3427
+ const validatorsDefault = [];
3428
+ const lengthDefault = {
3429
+ countBy: 'codePoint',
3430
+ max: null
3431
+ };
3432
+ const FunctionalInputSensitiveText = (0, compat_1.forwardRef)(({ clearIcon = 'never', columnSpan = 1, disabled = false, displayOptions = displayOptionsDefault, help = helpDefault, helpHints = helpHintsDefault, id, length = lengthDefault, maskIcon = 'visible', messagesCustom = messagesCustomDefault, maskIconLabel, readonly = false, required = false, userAssistanceDensity = 'reflow', validators = validatorsDefault, value = null, ...otherProps }, ref) => {
3433
+ const rootRef = (0, compat_1.useRef)();
3434
+ const inputSensitiveTextRef = (0, compat_1.useRef)();
3435
+ const addBusyState = (0, compat_1.useCallback)((description) => {
3436
+ return rootRef.current
3437
+ ? Context.getContext(rootRef.current)
3438
+ .getBusyContext()
3439
+ .addBusyState({ description: `oj-c-input-sensitive-text id=${id} is ${description}` })
3440
+ : () => { };
3441
+ }, []);
3442
+ const { inputSensitiveTextProps, methods } = (0, useInputSensitiveTextPreact_1.useInputSensitiveTextPreact)({
3443
+ clearIcon,
3444
+ columnSpan,
3445
+ disabled,
3446
+ displayOptions,
3447
+ help,
3448
+ helpHints,
3449
+ id,
3450
+ length,
3451
+ maskIcon,
3452
+ maskIconLabel,
3453
+ messagesCustom,
3454
+ readonly,
3455
+ required,
3456
+ userAssistanceDensity,
3457
+ validators,
3458
+ value,
3459
+ ...otherProps
3460
+ }, addBusyState);
3461
+ (0, compat_1.useImperativeHandle)(ref, () => ({
3462
+ blur: () => inputSensitiveTextRef.current?.blur(),
3463
+ focus: () => inputSensitiveTextRef.current?.focus(),
3464
+ ...methods
3465
+ }), [methods]);
3466
+ const assistiveTextProps = (0, useAssistiveText_1.useAssistiveText)({
3467
+ displayOptions,
3468
+ help,
3469
+ helpHints,
3470
+ userAssistanceDensity: inputSensitiveTextProps.userAssistanceDensity,
3471
+ validators
3472
+ });
3473
+ const variant = (0, UNSAFE_useFormVariantContext_1.useFormVariantContext)();
3474
+ const containerProps = {
3475
+ isFormLayout: otherProps.containerReadonly !== undefined,
3476
+ isReadonly: otherProps.containerReadonly,
3477
+ labelWrapping: otherProps.labelWrapping
3478
+ };
3479
+ return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { id: 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_InputSensitiveText_1.InputSensitiveText, { ref: inputSensitiveTextRef, ...assistiveTextProps, ...inputSensitiveTextProps, variant: variant }) }) }));
3480
+ });
3481
+ exports.InputSensitiveText = (0, ojvcomponent_1.registerCustomElement)('oj-c-input-sensitive-text', FunctionalInputSensitiveText, "InputSensitiveText", { "properties": { "clearIcon": { "type": "string", "enumValues": ["conditional", "always", "never"] }, "columnSpan": { "type": "number" }, "containerReadonly": { "type": "boolean", "binding": { "consume": { "name": "containerReadonly" } } }, "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" } } }, "length": { "type": "object", "properties": { "countBy": { "type": "string", "enumValues": ["codePoint", "codeUnit"] }, "max": { "type": "number|null" } } }, "maskIcon": { "type": "string", "enumValues": ["hidden", "visible"] }, "maskIconLabel": { "type": "string" }, "messagesCustom": { "type": "Array<object>", "writeback": true }, "placeholder": { "type": "string" }, "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": "any", "writeback": true }, "virtualKeyboard": { "type": "string", "enumValues": ["number", "search", "auto", "url", "text", "email", "tel"] }, "rawValue": { "type": "string", "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", "autofocus"] }, "methods": { "blur": {}, "focus": {}, "showMessages": {}, "reset": {}, "validate": {} } }, { "clearIcon": "never", "columnSpan": 1, "disabled": false, "displayOptions": { "messages": "display", "validatorHint": "display" }, "help": { "instruction": "" }, "helpHints": { "definition": "", "source": "" }, "length": { "countBy": "codePoint", "max": null }, "maskIcon": "visible", "messagesCustom": [], "readonly": false, "required": false, "userAssistanceDensity": "reflow", "validators": [], "value": null }, {
3482
+ '@oracle/oraclejet-preact': translationBundle_1.default
3483
+ }, { consume: [UNSAFE_useFormVariantContext_1.FormVariantContext, UNSAFE_useTabbableMode_1.TabbableModeContext] });
3484
+ });
3485
+
3486
+ define('oj-c/input-sensitive-text',["require", "exports", "./input-sensitive-text/input-sensitive-text"], function (require, exports, input_sensitive_text_1) {
3487
+ "use strict";
3488
+ Object.defineProperty(exports, "__esModule", { value: true });
3489
+ exports.InputSensitiveText = void 0;
3490
+ Object.defineProperty(exports, "InputSensitiveText", { enumerable: true, get: function () { return input_sensitive_text_1.InputSensitiveText; } });
3491
+ });
3492
+
3091
3493
  define('oj-c/input-text/useInputTextPreact',["require", "exports", "oj-c/editable-value/utils/utils", "oj-c/editable-value/UNSAFE_useEditableValue/useEditableValue"], function (require, exports, utils_1, useEditableValue_1) {
3092
3494
  "use strict";
3093
3495
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -3661,18 +4063,18 @@ define('oj-c/button/button',["require", "exports", "preact/jsx-runtime", '@oracl
3661
4063
  text: props.tooltip,
3662
4064
  isDisabled
3663
4065
  });
4066
+ const widthProps = props.width || props.edge !== 'none' ? { style: widthSize } : {};
3664
4067
  if (props.display != 'icons' ||
3665
4068
  (props.startIcon && props.endIcon && props.display == 'icons') ||
3666
4069
  (!props.startIcon && !props.endIcon && props.display == 'icons')) {
3667
- const buttonContent = () => ((0, jsx_runtime_1.jsx)(FunctionalButton, { ref: this.buttonRef, type: "submit", variant: variant, isDisabled: isDisabled, width: '100%', onAction: onAction, "aria-label": accessibleLabel, "aria-describedby": ariaDescribedBy, startIcon: props.startIcon, endIcon: props.endIcon, size: props.size, label: props.display == 'icons'
3668
- ? !props.startIcon && !props.endIcon
3669
- ? props.label
3670
- : ''
3671
- : props.label, display: props.display != 'icons' ? props.display : 'all', ...tooltipProps, ...otherProps }));
3672
- return props.width || props.edge !== 'none' ? ((0, jsx_runtime_1.jsxs)(ojvcomponent_1.Root, { style: widthSize, children: [buttonContent(), tooltipContent] })) : ((0, jsx_runtime_1.jsxs)(ojvcomponent_1.Root, { children: [buttonContent(), tooltipContent] }));
4070
+ return ((0, jsx_runtime_1.jsxs)(ojvcomponent_1.Root, { ...widthProps, children: [(0, jsx_runtime_1.jsx)(FunctionalButton, { ref: this.buttonRef, type: "submit", variant: variant, isDisabled: isDisabled, width: '100%', onAction: onAction, "aria-label": accessibleLabel, "aria-describedby": ariaDescribedBy, startIcon: props.startIcon, endIcon: props.endIcon, size: props.size, label: props.display == 'icons'
4071
+ ? !props.startIcon && !props.endIcon
4072
+ ? props.label
4073
+ : ''
4074
+ : props.label, display: props.display != 'icons' ? props.display : 'all', ...tooltipProps, ...otherProps }), tooltipContent] }));
3673
4075
  }
3674
4076
  else {
3675
- return ((0, jsx_runtime_1.jsx)(FunctionalIconButton, { ref: this.buttonRef, type: "submit", variant: variant, isDisabled: isDisabled, tooltip: props.tooltip && props.tooltip !== '' ? props.tooltip : props.label, onAction: onAction, "aria-label": accessibleLabel && accessibleLabel !== '' ? accessibleLabel : props.label, "aria-describedby": ariaDescribedBy, size: props.size, ...otherProps, children: props.startIcon ?? props.endIcon }));
4077
+ return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { ...widthProps, children: (0, jsx_runtime_1.jsx)(FunctionalIconButton, { width: '100%', ref: this.buttonRef, type: "submit", variant: variant, isDisabled: isDisabled, tooltip: props.tooltip && props.tooltip !== '' ? props.tooltip : props.label, onAction: onAction, "aria-label": accessibleLabel && accessibleLabel !== '' ? accessibleLabel : props.label, "aria-describedby": ariaDescribedBy, size: props.size, ...otherProps, children: props.startIcon ?? props.endIcon }) }));
3676
4078
  }
3677
4079
  }
3678
4080
  blur() {
@@ -4280,10 +4682,12 @@ define('oj-c/hooks/UNSAFE_useListData/useListData',["require", "exports", "ojs/o
4280
4682
  const handleMutation = (0, hooks_1.useCallback)((event) => {
4281
4683
  if (state.status === 'success' && state.data) {
4282
4684
  const dataState = state.data;
4685
+ let count = dataState.data.length;
4283
4686
  let shouldUpdate = false;
4284
4687
  if (event.detail.add) {
4285
4688
  const itemsInserted = handleAddRemoveMutation(event.detail.add, dataState, options, true);
4286
4689
  totalSizeRef.current = totalSizeRef.current + itemsInserted;
4690
+ count = count + itemsInserted;
4287
4691
  shouldUpdate = itemsInserted > 0 || dataState.sizePrecision === 'exact';
4288
4692
  if (itemsInserted === 0) {
4289
4693
  isDoneRef.current = false;
@@ -4291,7 +4695,8 @@ define('oj-c/hooks/UNSAFE_useListData/useListData',["require", "exports", "ojs/o
4291
4695
  }
4292
4696
  if (event.detail.remove) {
4293
4697
  const itemsRemoved = handleAddRemoveMutation(event.detail.remove, dataState, options, false);
4294
- totalSizeRef.current = totalSizeRef.current - itemsRemoved;
4698
+ totalSizeRef.current = Math.max(0, totalSizeRef.current - itemsRemoved);
4699
+ count = Math.max(0, count - itemsRemoved);
4295
4700
  shouldUpdate = shouldUpdate || itemsRemoved > 0;
4296
4701
  }
4297
4702
  let callback;
@@ -4303,7 +4708,7 @@ define('oj-c/hooks/UNSAFE_useListData/useListData',["require", "exports", "ojs/o
4303
4708
  };
4304
4709
  }
4305
4710
  if (shouldUpdate) {
4306
- fetchRange({ offset: dataState.offset, count: dataState.data.length }, callback);
4711
+ fetchRange({ offset: dataState.offset, count }, callback);
4307
4712
  }
4308
4713
  }
4309
4714
  }, [state, options, fetchRange]);
@@ -5744,11 +6149,11 @@ define('oj-c/meter-circle',["require", "exports", "./meter-circle/meter-circle"]
5744
6149
  });
5745
6150
 
5746
6151
 
5747
- define('oj-c/line-chart/line-chart',["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/translationBundle', "preact/hooks", "@oracle/oraclejet-preact/UNSAFE_LineAreaChart", "ojs/ojcontext", "ojs/ojvcomponent", "../hooks/UNSAFE_useChartData/useChartData", "../utils/PRIVATE_chartUtils/events", "../utils/PRIVATE_chartUtils/legendUtils", "../hooks/UNSAFE_useLegendPosition/useLegendPosition", "../hooks/UNSAFE_useVizCategories/useVizCategories", "@oracle/oraclejet-preact/UNSAFE_Legend", "@oracle/oraclejet-preact/UNSAFE_ChartWithLegend", "../utils/PRIVATE_chartUtils/lineAreaUtils", "oj-c/utils/PRIVATE_chartUtils/plotAreaUtils", "css!oj-c/line-chart/line-chart-styles.css"], function (require, exports, jsx_runtime_1, translationBundle_1, hooks_1, UNSAFE_LineAreaChart_1, Context, ojvcomponent_1, useChartData_1, events_1, legendUtils_1, useLegendPosition_1, useVizCategories_1, UNSAFE_Legend_1, UNSAFE_ChartWithLegend_1, lineAreaUtils_1, plotAreaUtils_1) {
6152
+ define('oj-c/line-chart/line-chart',["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/translationBundle', "preact/hooks", "@oracle/oraclejet-preact/UNSAFE_LineAreaChart", "ojs/ojcontext", "ojs/ojvcomponent", "../hooks/UNSAFE_useChartData/useChartData", "../utils/PRIVATE_chartUtils/events", "../utils/PRIVATE_chartUtils/legendUtils", "../hooks/UNSAFE_useLegendPosition/useLegendPosition", "../hooks/UNSAFE_useVizCategories/useVizCategories", "@oracle/oraclejet-preact/UNSAFE_Legend", "@oracle/oraclejet-preact/UNSAFE_ChartWithLegend", "../utils/PRIVATE_chartUtils/lineAreaUtils", "oj-c/utils/PRIVATE_chartUtils/plotAreaUtils", "../utils/PRIVATE_chartUtils/axisUtils", "css!oj-c/line-chart/line-chart-styles.css"], function (require, exports, jsx_runtime_1, translationBundle_1, hooks_1, UNSAFE_LineAreaChart_1, Context, ojvcomponent_1, useChartData_1, events_1, legendUtils_1, useLegendPosition_1, useVizCategories_1, UNSAFE_Legend_1, UNSAFE_ChartWithLegend_1, lineAreaUtils_1, plotAreaUtils_1, axisUtils_1) {
5748
6153
  "use strict";
5749
6154
  Object.defineProperty(exports, "__esModule", { value: true });
5750
6155
  exports.LineChart = void 0;
5751
- function LineChartComp({ data, hideAndShowBehavior = 'none', orientation = 'vertical', xAxis, yAxis, hoverBehavior = 'none', valueFormats, plotArea, zoomAndScroll, itemTemplate, seriesTemplate, groupTemplate, seriesComparator, groupComparator, drilling = 'off', hiddenCategories = [], highlightedCategories = [], highlightMatch = 'any', selection = [], selectionMode = 'none', stack = 'off', legend = {
6156
+ function LineChartComp({ data, hideAndShowBehavior = 'none', orientation = 'vertical', xAxis, yAxis, hoverBehavior = 'none', valueFormats, plotArea, zoomAndScroll, itemTemplate, seriesTemplate, groupTemplate, seriesComparator, groupComparator, drilling = 'off', hiddenCategories = [], timeAxisType, highlightedCategories = [], highlightMatch = 'any', selection = [], selectionMode = 'none', stack = 'off', legend = {
5752
6157
  rendered: 'on',
5753
6158
  position: 'auto'
5754
6159
  }, ...props }) {
@@ -5794,11 +6199,11 @@ define('oj-c/line-chart/line-chart',["require", "exports", "preact/jsx-runtime",
5794
6199
  updateHighlighted(detail.itemId);
5795
6200
  }
5796
6201
  };
5797
- const chart = series.length > 0 && groups.length > 0 ? ((0, jsx_runtime_1.jsx)(UNSAFE_LineAreaChart_1.LineAreaChart, { type: "line", width: "100%", height: "100%", series: series, groups: groups, getDataItem: getDataItem, onItemInput: onItemInput, drilling: drilling !== 'seriesOnly' ? drilling : undefined, onItemDrill: itemDrillHandler, onGroupDrill: groupDrillHandler, onSelectionChange: selectionChangeHandler, selectionMode: selectionMode, selectedIds: selectionMode === 'none' ? undefined : selection, orientation: orientation, xAxis: xAxisRest, yAxis: yAxisRest, highlightedIds: highlightedIds.length === 0 ? undefined : highlightedIds, hiddenIds: hiddenIds, plotArea: (0, plotAreaUtils_1.getPlotArea)(plotArea, yMajorTick, yMinorTick, xMajorTick), hideAndShowBehavior: hideAndShowBehavior, hoverBehavior: hoverBehavior, isStacked: stack === 'on', valueFormats: (0, lineAreaUtils_1.transformValueFormats)(valueFormats), "aria-label": props['aria-label'], "aria-describedBy": props['aria-describedby'], "aria-labelledBy": props['aria-labelledby'] })) : undefined;
6202
+ const chart = series.length > 0 && groups.length > 0 ? ((0, jsx_runtime_1.jsx)(UNSAFE_LineAreaChart_1.LineAreaChart, { type: "line", width: "100%", height: "100%", series: series, groups: groups, getDataItem: getDataItem, onItemInput: onItemInput, drilling: drilling !== 'seriesOnly' ? drilling : undefined, onItemDrill: itemDrillHandler, onGroupDrill: groupDrillHandler, onSelectionChange: selectionChangeHandler, selectionMode: selectionMode, selectedIds: selectionMode === 'none' ? undefined : selection, orientation: orientation, xAxis: (0, axisUtils_1.getPreactAxisProps)({ ...xAxisRest, timeAxisType }), yAxis: (0, axisUtils_1.getPreactAxisProps)(yAxisRest), highlightedIds: highlightedIds.length === 0 ? undefined : highlightedIds, hiddenIds: hiddenIds, plotArea: (0, plotAreaUtils_1.getPlotArea)(plotArea, yMajorTick, yMinorTick, xMajorTick), hideAndShowBehavior: hideAndShowBehavior, hoverBehavior: hoverBehavior, isStacked: stack === 'on', valueFormats: (0, lineAreaUtils_1.transformValueFormats)(valueFormats), "aria-label": props['aria-label'], "aria-describedBy": props['aria-describedby'], "aria-labelledBy": props['aria-labelledby'] })) : undefined;
5798
6203
  const chartLegend = isLegendRendered && legendData.length > 0 ? ((0, jsx_runtime_1.jsx)(UNSAFE_Legend_1.Legend, { items: legendData, orientation: legendPosition === 'start' || legendPosition === 'end' ? 'vertical' : 'horizontal', isReadOnly: !isLegendInteractive, highlightedIds: highlightedIds.length === 0 ? undefined : highlightedIds, hiddenIds: hiddenIds.length === 0 ? undefined : hiddenIds, symbolHeight: legend.symbolHeight, symbolWidth: legend.symbolWidth, onItemAction: legendItemActionHandler, onInput: legendItemInputHandler })) : undefined;
5799
6204
  return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { ref: rootRef, children: (0, jsx_runtime_1.jsx)(UNSAFE_ChartWithLegend_1.ChartWithLegend, { chart: chart, position: legendPosition, maxSize: legend.maxSize, size: legend.size, legend: chartLegend }) }));
5800
6205
  }
5801
- exports.LineChart = (0, ojvcomponent_1.registerCustomElement)('oj-c-line-chart', LineChartComp, "LineChart", { "properties": { "groupComparator": { "type": "function" }, "stack": { "type": "string", "enumValues": ["off", "on"] }, "drilling": { "type": "string", "enumValues": ["off", "on", "groupsOnly", "seriesOnly"] }, "orientation": { "type": "string", "enumValues": ["horizontal", "vertical"] }, "yAxis": { "type": "object", "properties": { "majorTick": { "type": "object", "properties": { "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "lineColor": { "type": "string" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "minorTick": { "type": "object", "properties": { "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "lineColor": { "type": "string" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } } } }, "xAxis": { "type": "object", "properties": { "majorTick": { "type": "object", "properties": { "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "lineColor": { "type": "string" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } } } }, "plotArea": { "type": "object", "properties": { "backgroundColor": { "type": "string" } } }, "zoomAndScroll": { "type": "string", "enumValues": ["off", "live"] }, "valueFormats": { "type": "object", "properties": { "group": { "type": "object", "properties": { "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } }, "series": { "type": "object", "properties": { "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } }, "value": { "type": "object", "properties": { "converter": { "type": "any" }, "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } } } }, "seriesComparator": { "type": "function" }, "data": { "type": "DataProvider|null" }, "selectionMode": { "type": "string", "enumValues": ["none", "multiple", "single"] }, "selection": { "type": "Array<any>", "writeback": true }, "hiddenCategories": { "type": "Array<string>", "writeback": true }, "highlightedCategories": { "type": "Array<string>", "writeback": true }, "hideAndShowBehavior": { "type": "string", "enumValues": ["none", "withoutRescale", "withRescale"] }, "hoverBehavior": { "type": "string", "enumValues": ["none", "dim"] }, "highlightMatch": { "type": "string", "enumValues": ["all", "any"] }, "legend": { "type": "object", "properties": { "position": { "type": "string", "enumValues": ["auto", "end", "start", "top", "bottom"] }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] }, "maxSize": { "type": "number|string" }, "size": { "type": "number|string" }, "symbolHeight": { "type": "number" }, "symbolWidth": { "type": "number" } } } }, "slots": { "itemTemplate": { "data": {} }, "seriesTemplate": { "data": {} }, "groupTemplate": { "data": {} } }, "events": { "ojItemDrill": {}, "ojSeriesDrill": {}, "ojGroupDrill": {}, "ojViewportChange": {} }, "extension": { "_WRITEBACK_PROPS": ["selection", "hiddenCategories", "highlightedCategories"], "_READ_ONLY_PROPS": [], "_OBSERVED_GLOBAL_PROPS": ["aria-label", "aria-describedby", "aria-labelledby"] } }, { "hideAndShowBehavior": "none", "orientation": "vertical", "hoverBehavior": "none", "drilling": "off", "hiddenCategories": [], "highlightedCategories": [], "highlightMatch": "any", "selection": [], "selectionMode": "none", "stack": "off", "legend": { "rendered": "on", "position": "auto" } }, {
6206
+ exports.LineChart = (0, ojvcomponent_1.registerCustomElement)('oj-c-line-chart', LineChartComp, "LineChart", { "properties": { "groupComparator": { "type": "function" }, "stack": { "type": "string", "enumValues": ["off", "on"] }, "drilling": { "type": "string", "enumValues": ["off", "on", "groupsOnly", "seriesOnly"] }, "orientation": { "type": "string", "enumValues": ["horizontal", "vertical"] }, "timeAxisType": { "type": "string", "enumValues": ["enabled", "mixedFrequency", "skipGaps"] }, "yAxis": { "type": "object", "properties": { "dataMax": { "type": "number" }, "dataMin": { "type": "number" }, "max": { "type": "number" }, "min": { "type": "number" }, "majorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "minorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "tickLabel": { "type": "object", "properties": { "converter": { "type": "object" }, "rendered": { "type": "string", "enumValues": ["off", "on"] }, "style": { "type": "object" } } }, "viewportMin": { "type": "number" }, "viewportMax": { "type": "number" }, "step": { "type": "number" }, "size": { "type": "number" }, "scale": { "type": "string", "enumValues": ["linear", "log"] }, "title": { "type": "string" }, "titleStyle": { "type": "object" } } }, "xAxis": { "type": "object", "properties": { "majorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "minorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "tickLabel": { "type": "object", "properties": { "converter": { "type": "object|" }, "rendered": { "type": "string", "enumValues": ["off", "on"] }, "style": { "type": "object" } } }, "viewportMin": { "type": "number" }, "viewportMax": { "type": "number" }, "step": { "type": "number" }, "size": { "type": "number" }, "scale": { "type": "string", "enumValues": ["linear", "log"] }, "title": { "type": "string" }, "titleStyle": { "type": "object" } } }, "plotArea": { "type": "object", "properties": { "backgroundColor": { "type": "string" } } }, "zoomAndScroll": { "type": "string", "enumValues": ["off", "live"] }, "valueFormats": { "type": "object", "properties": { "group": { "type": "object", "properties": { "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } }, "series": { "type": "object", "properties": { "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } }, "value": { "type": "object", "properties": { "converter": { "type": "object" }, "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } } } }, "seriesComparator": { "type": "function" }, "data": { "type": "DataProvider|null" }, "selectionMode": { "type": "string", "enumValues": ["none", "multiple", "single"] }, "selection": { "type": "Array<any>", "writeback": true }, "hiddenCategories": { "type": "Array<string>", "writeback": true }, "highlightedCategories": { "type": "Array<string>", "writeback": true }, "hideAndShowBehavior": { "type": "string", "enumValues": ["none", "withoutRescale", "withRescale"] }, "hoverBehavior": { "type": "string", "enumValues": ["none", "dim"] }, "highlightMatch": { "type": "string", "enumValues": ["all", "any"] }, "legend": { "type": "object", "properties": { "position": { "type": "string", "enumValues": ["auto", "end", "start", "top", "bottom"] }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] }, "maxSize": { "type": "number|string" }, "size": { "type": "number|string" }, "symbolHeight": { "type": "number" }, "symbolWidth": { "type": "number" } } } }, "slots": { "itemTemplate": { "data": {} }, "seriesTemplate": { "data": {} }, "groupTemplate": { "data": {} } }, "events": { "ojItemDrill": {}, "ojSeriesDrill": {}, "ojGroupDrill": {}, "ojViewportChange": {} }, "extension": { "_WRITEBACK_PROPS": ["selection", "hiddenCategories", "highlightedCategories"], "_READ_ONLY_PROPS": [], "_OBSERVED_GLOBAL_PROPS": ["aria-label", "aria-describedby", "aria-labelledby"] } }, { "hideAndShowBehavior": "none", "orientation": "vertical", "hoverBehavior": "none", "drilling": "off", "hiddenCategories": [], "highlightedCategories": [], "highlightMatch": "any", "selection": [], "selectionMode": "none", "stack": "off", "legend": { "rendered": "on", "position": "auto" } }, {
5802
6207
  '@oracle/oraclejet-preact': translationBundle_1.default
5803
6208
  });
5804
6209
  });
@@ -5816,7 +6221,7 @@ define('oj-c/line-chart-item/line-chart-item',["require", "exports", '@oracle/or
5816
6221
  exports.LineChartItem = void 0;
5817
6222
  exports.LineChartItem = (0, ojvcomponent_1.registerCustomElement)('oj-c-line-chart-item', ({}) => {
5818
6223
  return null;
5819
- }, "LineChartItem", { "properties": { "seriesId": { "type": "string" }, "groupId": { "type": "Array<string>" }, "value": { "type": "number" }, "color": { "type": "string" }, "markerDisplayed": { "type": "string", "enumValues": ["auto", "off", "on"] }, "markerShape": { "type": "string", "enumValues": ["auto", "square", "circle", "diamond", "human", "plus", "star", "triangleDown", "triangleUp"] }, "markerSize": { "type": "number" }, "categories": { "type": "Array<string>" }, "drilling": { "type": "string", "enumValues": ["inherit", "off", "on"] }, "shortDesc": { "type": "string" } } }, undefined, {
6224
+ }, "LineChartItem", { "properties": { "seriesId": { "type": "string" }, "groupId": { "type": "Array<string>" }, "value": { "type": "number" }, "x": { "type": "string" }, "color": { "type": "string" }, "markerDisplayed": { "type": "string", "enumValues": ["auto", "off", "on"] }, "markerShape": { "type": "string", "enumValues": ["auto", "square", "circle", "diamond", "human", "plus", "star", "triangleDown", "triangleUp"] }, "markerSize": { "type": "number" }, "categories": { "type": "Array<string>" }, "drilling": { "type": "string", "enumValues": ["inherit", "off", "on"] }, "shortDesc": { "type": "string" } } }, undefined, {
5820
6225
  '@oracle/oraclejet-preact': translationBundle_1.default
5821
6226
  });
5822
6227
  });
@@ -5837,7 +6242,7 @@ define('oj-c/line-chart-series/line-chart-series',["require", "exports", '@oracl
5837
6242
  };
5838
6243
  exports.LineChartSeries = (0, ojvcomponent_1.registerCustomElement)('oj-c-line-chart-series', ({ drilling = exports.LineChartSeriesDefaults.drilling, ...props }) => {
5839
6244
  return null;
5840
- }, "LineChartSeries", { "properties": { "categories": { "type": "Array<string>" }, "color": { "type": "string" }, "drilling": { "type": "string", "enumValues": ["inherit", "off", "on"] }, "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineType": { "type": "string", "enumValues": ["curved", "straight"] }, "lineWidth": { "type": "number" }, "markerShape": { "type": "string", "enumValues": ["auto", "square", "circle", "diamond", "human", "plus", "star", "triangleDown", "triangleUp"] }, "markerColor": { "type": "string" }, "markerDisplayed": { "type": "string" }, "markerSize": { "type": "number" }, "name": { "type": "string" }, "shortDesc": { "type": "string" } } }, undefined, {
6245
+ }, "LineChartSeries", { "properties": { "categories": { "type": "Array<string>" }, "color": { "type": "string" }, "drilling": { "type": "string", "enumValues": ["inherit", "off", "on"] }, "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineType": { "type": "string", "enumValues": ["curved", "straight"] }, "lineWidth": { "type": "number" }, "markerShape": { "type": "string", "enumValues": ["auto", "square", "circle", "diamond", "human", "plus", "star", "triangleDown", "triangleUp"] }, "markerColor": { "type": "string" }, "markerDisplayed": { "type": "string" }, "markerSize": { "type": "number" }, "name": { "type": "string" }, "shortDesc": { "type": "string" } } }, { "drilling": "inherit" }, {
5841
6246
  '@oracle/oraclejet-preact': translationBundle_1.default
5842
6247
  });
5843
6248
  });
@@ -5858,7 +6263,7 @@ define('oj-c/line-chart-group/line-chart-group',["require", "exports", '@oracle/
5858
6263
  };
5859
6264
  exports.LineChartGroup = (0, ojvcomponent_1.registerCustomElement)('oj-c-line-chart-group', ({ drilling = exports.LineChartGroupDefaults.drilling, ...props }) => {
5860
6265
  return null;
5861
- }, "LineChartGroup", { "properties": { "drilling": { "type": "string", "enumValues": ["inherit", "off", "on"] }, "name": { "type": "string" }, "shortDesc": { "type": "string" } } }, undefined, {
6266
+ }, "LineChartGroup", { "properties": { "drilling": { "type": "string", "enumValues": ["inherit", "off", "on"] }, "name": { "type": "string" }, "shortDesc": { "type": "string" } } }, { "drilling": "inherit" }, {
5862
6267
  '@oracle/oraclejet-preact': translationBundle_1.default
5863
6268
  });
5864
6269
  });
@@ -6231,11 +6636,108 @@ define('oj-c/radioset/radioset',["require", "exports", "preact/jsx-runtime", '@o
6231
6636
  }, { consume: [UNSAFE_useTabbableMode_1.TabbableModeContext] });
6232
6637
  });
6233
6638
 
6234
- define('oj-c/radioset',["require", "exports", "./radioset/radioset"], function (require, exports, radioset_1) {
6639
+ define('oj-c/radioset',["require", "exports", "./radioset/radioset"], function (require, exports, radioset_1) {
6640
+ "use strict";
6641
+ Object.defineProperty(exports, "__esModule", { value: true });
6642
+ exports.Radioset = void 0;
6643
+ Object.defineProperty(exports, "Radioset", { enumerable: true, get: function () { return radioset_1.Radioset; } });
6644
+ });
6645
+
6646
+ define('oj-c/utils/PRIVATE_ItemsMenu/menu-item-icon',["require", "exports", "preact/jsx-runtime"], function (require, exports, jsx_runtime_1) {
6647
+ "use strict";
6648
+ Object.defineProperty(exports, "__esModule", { value: true });
6649
+ exports.MenuItemIcon = void 0;
6650
+ function MenuItemIcon(props) {
6651
+ if (props.icon.type === 'img') {
6652
+ return (0, jsx_runtime_1.jsx)("img", { src: props.icon.src });
6653
+ }
6654
+ else {
6655
+ return (0, jsx_runtime_1.jsx)("span", { class: props.icon.class });
6656
+ }
6657
+ }
6658
+ exports.MenuItemIcon = MenuItemIcon;
6659
+ });
6660
+
6661
+ define('oj-c/utils/PRIVATE_ItemsMenu/menu-select-items',["require", "exports", "preact/jsx-runtime", "./menu-item-icon", "@oracle/oraclejet-preact/UNSAFE_Menu"], function (require, exports, jsx_runtime_1, menu_item_icon_1, UNSAFE_Menu_1) {
6235
6662
  "use strict";
6236
6663
  Object.defineProperty(exports, "__esModule", { value: true });
6237
- exports.Radioset = void 0;
6238
- Object.defineProperty(exports, "Radioset", { enumerable: true, get: function () { return radioset_1.Radioset; } });
6664
+ exports.MenuSelectItems = void 0;
6665
+ function MenuSelectItems(props) {
6666
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: props.items.map((item) => {
6667
+ return (item && ((0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.SelectMenuItem, { label: item.label, isDisabled: item.disabled, endIcon: item.endIcon ? (0, jsx_runtime_1.jsx)(menu_item_icon_1.MenuItemIcon, { icon: item.endIcon }) : undefined, value: item.value })));
6668
+ }) }));
6669
+ }
6670
+ exports.MenuSelectItems = MenuSelectItems;
6671
+ });
6672
+
6673
+ define('oj-c/utils/PRIVATE_ItemsMenu/items-menu',["require", "exports", "preact/jsx-runtime", "./menu-item-icon", "./menu-select-items", "@oracle/oraclejet-preact/UNSAFE_Menu"], function (require, exports, jsx_runtime_1, menu_item_icon_1, menu_select_items_1, UNSAFE_Menu_1) {
6674
+ "use strict";
6675
+ Object.defineProperty(exports, "__esModule", { value: true });
6676
+ exports.ItemsMenu = void 0;
6677
+ const ItemsMenu = ({ items = [], selection = {}, onSelectionChanged, onOjMenuAction, isSplitMenu = false }) => {
6678
+ const getSingleGroupSelection = (key) => {
6679
+ const item = selection[key];
6680
+ return item && typeof item == 'string' ? item : undefined;
6681
+ };
6682
+ const getMultipleGroupSelection = (key) => {
6683
+ const item = selection[key];
6684
+ return Array.isArray(item) ? item : [];
6685
+ };
6686
+ const setSelectionValue = (selection, key, value) => {
6687
+ const updatedSelection = { ...selection };
6688
+ if (Array.isArray(value) && value.length === 0) {
6689
+ delete updatedSelection[key];
6690
+ }
6691
+ else {
6692
+ updatedSelection[key] = value;
6693
+ }
6694
+ return updatedSelection;
6695
+ };
6696
+ const getItemActionHandler = (key, onAction) => {
6697
+ return () => {
6698
+ onAction?.();
6699
+ onOjMenuAction?.({ key });
6700
+ };
6701
+ };
6702
+ const getCommit = (key, selection) => {
6703
+ return (detail) => {
6704
+ onSelectionChanged?.(setSelectionValue(selection, key, detail.value));
6705
+ };
6706
+ };
6707
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: items.map((item) => {
6708
+ switch (item.type) {
6709
+ case 'divider':
6710
+ case 'separator':
6711
+ return (0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.MenuSeparator, {});
6712
+ case 'submenu':
6713
+ if (item.items && item.label && !isSplitMenu) {
6714
+ return ((0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.Submenu, { label: item.label, children: (0, jsx_runtime_1.jsx)(exports.ItemsMenu, { items: item.items, selection: selection, onSelectionChanged: onSelectionChanged, onOjMenuAction: onOjMenuAction }) }));
6715
+ }
6716
+ return;
6717
+ case 'selectsingle':
6718
+ if (item.items && item.key && !isSplitMenu) {
6719
+ return ((0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.SelectSingleMenuGroup, { value: getSingleGroupSelection(item.key), onCommit: getCommit(item.key, selection), children: (0, jsx_runtime_1.jsx)(menu_select_items_1.MenuSelectItems, { items: item.items }) }));
6720
+ }
6721
+ return;
6722
+ case 'selectmultiple':
6723
+ if (item.items && item.key && !isSplitMenu) {
6724
+ return ((0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.SelectMultipleMenuGroup, { value: getMultipleGroupSelection(item.key), onCommit: getCommit(item.key, selection), children: (0, jsx_runtime_1.jsx)(menu_select_items_1.MenuSelectItems, { items: item.items }) }));
6725
+ }
6726
+ return;
6727
+ case undefined:
6728
+ case 'item':
6729
+ if (item.label) {
6730
+ return ((0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.MenuItem, { label: item.label, isDisabled: item.disabled, variant: !isSplitMenu ? item.variant : undefined, startIcon: !isSplitMenu &&
6731
+ item.startIcon && (0, jsx_runtime_1.jsx)(menu_item_icon_1.MenuItemIcon, { icon: item.startIcon }), endIcon: !isSplitMenu &&
6732
+ item.endIcon && (0, jsx_runtime_1.jsx)(menu_item_icon_1.MenuItemIcon, { icon: item.endIcon }), onAction: getItemActionHandler(item.key, item.onAction) }));
6733
+ }
6734
+ return;
6735
+ default:
6736
+ return;
6737
+ }
6738
+ }) }));
6739
+ };
6740
+ exports.ItemsMenu = ItemsMenu;
6239
6741
  });
6240
6742
 
6241
6743
 
@@ -6245,41 +6747,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6245
6747
  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;
6246
6748
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6247
6749
  };
6248
- define('oj-c/split-menu-button/split-menu-button',["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/translationBundle', "@oracle/oraclejet-preact/UNSAFE_SplitMenuButton", "@oracle/oraclejet-preact/UNSAFE_Menu", "@oracle/oraclejet-preact/hooks/UNSAFE_useTabbableMode", "preact", "preact/hooks", "preact/compat", "ojs/ojvcomponent", "css!oj-c/split-menu-button/split-menu-button-styles.css"], function (require, exports, jsx_runtime_1, translationBundle_1, UNSAFE_SplitMenuButton_1, UNSAFE_Menu_1, UNSAFE_useTabbableMode_1, preact_1, hooks_1, compat_1, ojvcomponent_1) {
6750
+ define('oj-c/split-menu-button/split-menu-button',["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/translationBundle', "@oracle/oraclejet-preact/UNSAFE_SplitMenuButton", "@oracle/oraclejet-preact/hooks/UNSAFE_useTooltip", "@oracle/oraclejet-preact/hooks/UNSAFE_useTabbableMode", "@oracle/oraclejet-preact/utils/UNSAFE_mergeProps", "preact", "preact/hooks", "preact/compat", "ojs/ojvcomponent", "../utils/PRIVATE_ItemsMenu/items-menu", "css!oj-c/split-menu-button/split-menu-button-styles.css"], function (require, exports, jsx_runtime_1, translationBundle_1, UNSAFE_SplitMenuButton_1, UNSAFE_useTooltip_1, UNSAFE_useTabbableMode_1, UNSAFE_mergeProps_1, preact_1, hooks_1, compat_1, ojvcomponent_1, items_menu_1) {
6249
6751
  "use strict";
6250
6752
  Object.defineProperty(exports, "__esModule", { value: true });
6251
6753
  exports.SplitMenuButton = void 0;
6252
- const FunctionalSplitMenuButton = (0, compat_1.forwardRef)((props, ref) => {
6253
- const buttonRef = (0, hooks_1.useRef)(null);
6254
- (0, hooks_1.useImperativeHandle)(ref, () => ({
6255
- focus: () => buttonRef.current?.focus(),
6256
- blur: () => buttonRef.current?.blur(),
6257
- doAction: () => buttonRef.current?.dispatchEvent(new Event('ojAction', { bubbles: true }))
6258
- }), []);
6259
- return (0, jsx_runtime_1.jsx)(UNSAFE_SplitMenuButton_1.SplitMenuButton, { ref: buttonRef, ...props });
6260
- });
6261
6754
  let SplitMenuButton = class SplitMenuButton extends preact_1.Component {
6262
6755
  constructor() {
6263
6756
  super(...arguments);
6264
6757
  this.buttonRef = (0, preact_1.createRef)();
6265
- this.renderMenu = (items) => {
6266
- return items.map((item) => {
6267
- if (item && (item.type === 'divider' || item.type === 'separator')) {
6268
- return (0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.MenuSeparator, {});
6269
- }
6270
- else if ((item.type === 'item' || !item.type) && item.label) {
6271
- return ((0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.MenuItem, { label: item.label, isDisabled: item.disabled, onAction: item.onAction }));
6272
- }
6273
- else {
6274
- return;
6275
- }
6276
- });
6277
- };
6278
6758
  }
6279
6759
  render(props) {
6280
- const { chroming, label, disabled, size, onOjAction: onAction, items } = { ...props };
6281
- const widthSize = { width: props.width };
6282
- return props.width ? ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { style: widthSize, children: (0, jsx_runtime_1.jsx)(FunctionalSplitMenuButton, { label: label, ref: this.buttonRef, variant: chroming, size: size, width: '100%', isDisabled: disabled, onAction: onAction, children: this.renderMenu(items) }) })) : ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { children: (0, jsx_runtime_1.jsx)(FunctionalSplitMenuButton, { label: label, ref: this.buttonRef, variant: chroming, size: size, width: '100%', isDisabled: disabled, onAction: onAction, children: this.renderMenu(items) }) }));
6760
+ const { chroming, label, disabled, size, items, tooltip, onOjMenuAction, 'aria-describedby': ariaDescribedBy, onOjAction: onAction } = { ...props };
6761
+ const widthSize = props.width ? { width: props.width } : {};
6762
+ return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { style: widthSize, children: (0, jsx_runtime_1.jsx)(FunctionalSplitMenuButton, { tooltip: tooltip, label: label, ref: this.buttonRef, variant: chroming, size: size, width: '100%', "aria-describedby": ariaDescribedBy, isDisabled: disabled, onAction: onAction, children: (0, jsx_runtime_1.jsx)(items_menu_1.ItemsMenu, { isSplitMenu: true, items: items, onOjMenuAction: onOjMenuAction }) }) }));
6283
6763
  }
6284
6764
  blur() {
6285
6765
  this.buttonRef.current?.blur();
@@ -6299,7 +6779,7 @@ define('oj-c/split-menu-button/split-menu-button',["require", "exports", "preact
6299
6779
  size: 'md',
6300
6780
  items: []
6301
6781
  };
6302
- SplitMenuButton._metadata = { "properties": { "label": { "type": "string" }, "items": { "type": "Array<object>" }, "disabled": { "type": "boolean" }, "size": { "type": "string", "enumValues": ["sm", "md", "lg"] }, "width": { "type": "number|string" }, "chroming": { "type": "string", "enumValues": ["solid", "outlined", "callToAction"] } }, "events": { "ojAction": { "bubbles": true } }, "extension": { "_OBSERVED_GLOBAL_PROPS": ["title"] }, "methods": { "blur": {}, "focus": {}, "doAction": {} } };
6782
+ SplitMenuButton._metadata = { "properties": { "label": { "type": "string" }, "items": { "type": "Array<object>" }, "tooltip": { "type": "string" }, "disabled": { "type": "boolean" }, "size": { "type": "string", "enumValues": ["sm", "md", "lg"] }, "width": { "type": "number|string" }, "chroming": { "type": "string", "enumValues": ["solid", "outlined", "callToAction"] } }, "events": { "ojMenuAction": { "bubbles": true }, "ojAction": { "bubbles": true } }, "extension": { "_OBSERVED_GLOBAL_PROPS": ["aria-describedby"] }, "methods": { "blur": {}, "focus": {}, "doAction": {} } };
6303
6783
  SplitMenuButton._translationBundleMap = {
6304
6784
  '@oracle/oraclejet-preact': translationBundle_1.default
6305
6785
  };
@@ -6307,6 +6787,19 @@ define('oj-c/split-menu-button/split-menu-button',["require", "exports", "preact
6307
6787
  exports.SplitMenuButton = SplitMenuButton = __decorate([
6308
6788
  (0, ojvcomponent_1.customElement)('oj-c-split-menu-button')
6309
6789
  ], SplitMenuButton);
6790
+ const FunctionalSplitMenuButton = (0, compat_1.forwardRef)((props, ref) => {
6791
+ const buttonRef = (0, hooks_1.useRef)(null);
6792
+ (0, hooks_1.useImperativeHandle)(ref, () => ({
6793
+ focus: () => buttonRef.current?.focus(),
6794
+ blur: () => buttonRef.current?.blur(),
6795
+ doAction: () => buttonRef.current?.dispatchEvent(new Event('ojAction', { bubbles: true }))
6796
+ }), []);
6797
+ const { tooltipContent, tooltipProps } = (0, UNSAFE_useTooltip_1.useTooltip)({
6798
+ text: props.tooltip,
6799
+ isDisabled: props.isDisabled
6800
+ });
6801
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(UNSAFE_SplitMenuButton_1.SplitMenuButton, { ref: buttonRef, ...(0, UNSAFE_mergeProps_1.mergeProps)(props, tooltipProps) }), tooltipContent] }));
6802
+ });
6310
6803
  });
6311
6804
 
6312
6805
  define('oj-c/split-menu-button',["require", "exports", "./split-menu-button/split-menu-button"], function (require, exports, split_menu_button_1) {
@@ -6341,7 +6834,7 @@ define('oj-c/selector-all/selector-all',["require", "exports", "preact/jsx-runti
6341
6834
  "use strict";
6342
6835
  Object.defineProperty(exports, "__esModule", { value: true });
6343
6836
  exports.SelectorAll = void 0;
6344
- const SelectorAllImpl = ({ selectedKeys, onSelectedKeysChanged }) => {
6837
+ const SelectorAllImpl = ({ selectedKeys, onSelectedKeysChanged, showTooltip, ...otherProps }) => {
6345
6838
  const keys = selectedKeys.keys;
6346
6839
  const selected = (keys.all
6347
6840
  ? keys.deletedKeys.size > 0
@@ -6352,9 +6845,9 @@ define('oj-c/selector-all/selector-all',["require", "exports", "preact/jsx-runti
6352
6845
  : 'none');
6353
6846
  return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { children: (0, jsx_runtime_1.jsx)(UNSAFE_SelectorAll_1.SelectorAll, { selected: selected, onChange: (detail) => {
6354
6847
  onSelectedKeysChanged?.((0, keySetUtils_1.keysToKeySet)(detail.value));
6355
- } }) }));
6848
+ }, showTooltip: showTooltip, ...otherProps }) }));
6356
6849
  };
6357
- exports.SelectorAll = (0, ojvcomponent_1.registerCustomElement)('oj-c-selector-all', SelectorAllImpl, "SelectorAll", { "properties": { "selectedKeys": { "type": "object", "writeback": true } }, "extension": { "_WRITEBACK_PROPS": ["selectedKeys"], "_READ_ONLY_PROPS": [] } }, undefined, {
6850
+ exports.SelectorAll = (0, ojvcomponent_1.registerCustomElement)('oj-c-selector-all', SelectorAllImpl, "SelectorAll", { "properties": { "selectedKeys": { "type": "object", "writeback": true }, "showTooltip": { "type": "string", "enumValues": ["disabled", "enabled"] } }, "extension": { "_WRITEBACK_PROPS": ["selectedKeys"], "_READ_ONLY_PROPS": [], "_OBSERVED_GLOBAL_PROPS": ["aria-label", "aria-labelledby"] } }, undefined, {
6358
6851
  '@oracle/oraclejet-preact': translationBundle_1.default
6359
6852
  });
6360
6853
  });
@@ -6379,7 +6872,7 @@ define('oj-c/legend-item/legend-item',["require", "exports", '@oracle/oraclejet-
6379
6872
  };
6380
6873
  exports.LegendItem = (0, ojvcomponent_1.registerCustomElement)('oj-c-legend-item', ({ markerShape = exports.LegendItemDefaults.markerShape, symbolType = exports.LegendItemDefaults.symbolType, borderColor = exports.LegendItemDefaults.borderColor, categories = exports.LegendItemDefaults.categories, lineStyle = exports.LegendItemDefaults.lineStyle, ...props }) => {
6381
6874
  return null;
6382
- }, "LegendItem", { "properties": { "text": { "type": "string" }, "categories": { "type": "Array<string>" }, "symbolType": { "type": "string", "enumValues": ["marker", "image", "line", "lineWithMarker"] }, "source": { "type": "string" }, "color": { "type": "string" }, "borderColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "markerShape": { "type": "string", "enumValues": ["square", "circle", "ellipse", "diamond", "human", "plus", "star", "triangleDown", "triangleUp", "rectangle"] }, "markerColor": { "type": "string" }, "shortDesc": { "type": "string" } } }, undefined, {
6875
+ }, "LegendItem", { "properties": { "text": { "type": "string" }, "categories": { "type": "Array<string>" }, "symbolType": { "type": "string", "enumValues": ["marker", "image", "line", "lineWithMarker"] }, "source": { "type": "string" }, "color": { "type": "string" }, "borderColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "dotted", "solid"] }, "lineWidth": { "type": "number" }, "markerShape": { "type": "string", "enumValues": ["square", "circle", "ellipse", "diamond", "human", "plus", "star", "triangleDown", "triangleUp", "rectangle"] }, "markerColor": { "type": "string" }, "shortDesc": { "type": "string" } } }, { "markerShape": "square", "symbolType": "marker", "borderColor": "", "categories": [], "lineStyle": "solid" }, {
6383
6876
  '@oracle/oraclejet-preact': translationBundle_1.default
6384
6877
  });
6385
6878
  });
@@ -6393,7 +6886,7 @@ define('oj-c/legend-section/legend-section',["require", "exports", '@oracle/orac
6393
6886
  };
6394
6887
  exports.LegendSection = (0, ojvcomponent_1.registerCustomElement)('oj-c-legend-section', ({ text = exports.LegendSectionDefaults.text, ...props }) => {
6395
6888
  return null;
6396
- }, "LegendSection", { "properties": { "text": { "type": "string" } } }, undefined, {
6889
+ }, "LegendSection", { "properties": { "text": { "type": "string" } } }, { "text": "" }, {
6397
6890
  '@oracle/oraclejet-preact': translationBundle_1.default
6398
6891
  });
6399
6892
  });
@@ -6699,7 +7192,7 @@ define('oj-c/tag-cloud-item/tag-cloud-item',["require", "exports", '@oracle/orac
6699
7192
  };
6700
7193
  exports.TagCloudItem = (0, ojvcomponent_1.registerCustomElement)('oj-c-tag-cloud-item', ({ categories = exports.TagCloudItemDefaults.categories, ...props }) => {
6701
7194
  return null;
6702
- }, "TagCloudItem", { "properties": { "categories": { "type": "Array<string>" }, "color": { "type": "string" }, "label": { "type": "string" }, "value": { "type": "number|null" }, "url": { "type": "string" }, "shortDesc": { "type": "string" } } }, undefined, {
7195
+ }, "TagCloudItem", { "properties": { "categories": { "type": "Array<string>" }, "color": { "type": "string" }, "label": { "type": "string" }, "value": { "type": "number|null" }, "url": { "type": "string" }, "shortDesc": { "type": "string" } } }, { "categories": [] }, {
6703
7196
  '@oracle/oraclejet-preact': translationBundle_1.default
6704
7197
  });
6705
7198
  });
@@ -7059,101 +7552,6 @@ define('oj-c/labelled-link',["require", "exports", "./labelled-link/labelled-lin
7059
7552
  Object.defineProperty(exports, "LabelledLink", { enumerable: true, get: function () { return labelled_link_1.LabelledLink; } });
7060
7553
  });
7061
7554
 
7062
- define('oj-c/utils/PRIVATE_ItemsMenu/menu-item-icon',["require", "exports", "preact/jsx-runtime"], function (require, exports, jsx_runtime_1) {
7063
- "use strict";
7064
- Object.defineProperty(exports, "__esModule", { value: true });
7065
- exports.MenuItemIcon = void 0;
7066
- function MenuItemIcon(props) {
7067
- if (props.icon.type === 'img') {
7068
- return (0, jsx_runtime_1.jsx)("img", { src: props.icon.src });
7069
- }
7070
- else {
7071
- return (0, jsx_runtime_1.jsx)("span", { class: props.icon.class });
7072
- }
7073
- }
7074
- exports.MenuItemIcon = MenuItemIcon;
7075
- });
7076
-
7077
- define('oj-c/utils/PRIVATE_ItemsMenu/menu-select-items',["require", "exports", "preact/jsx-runtime", "./menu-item-icon", "@oracle/oraclejet-preact/UNSAFE_Menu"], function (require, exports, jsx_runtime_1, menu_item_icon_1, UNSAFE_Menu_1) {
7078
- "use strict";
7079
- Object.defineProperty(exports, "__esModule", { value: true });
7080
- exports.MenuSelectItems = void 0;
7081
- function MenuSelectItems(props) {
7082
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: props.items.map((item) => {
7083
- return (item && ((0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.SelectMenuItem, { label: item.label, isDisabled: item.disabled, endIcon: item.endIcon ? (0, jsx_runtime_1.jsx)(menu_item_icon_1.MenuItemIcon, { icon: item.endIcon }) : undefined, value: item.value })));
7084
- }) }));
7085
- }
7086
- exports.MenuSelectItems = MenuSelectItems;
7087
- });
7088
-
7089
- define('oj-c/utils/PRIVATE_ItemsMenu/items-menu',["require", "exports", "preact/jsx-runtime", "./menu-item-icon", "./menu-select-items", "@oracle/oraclejet-preact/UNSAFE_Menu"], function (require, exports, jsx_runtime_1, menu_item_icon_1, menu_select_items_1, UNSAFE_Menu_1) {
7090
- "use strict";
7091
- Object.defineProperty(exports, "__esModule", { value: true });
7092
- exports.ItemsMenu = void 0;
7093
- const ItemsMenu = ({ items = [], selection = {}, onSelectionChanged, onOjMenuAction }) => {
7094
- const getSingleGroupSelection = (key) => {
7095
- const item = selection[key];
7096
- return item && typeof item == 'string' ? item : undefined;
7097
- };
7098
- const getMultipleGroupSelection = (key) => {
7099
- const item = selection[key];
7100
- return Array.isArray(item) ? item : [];
7101
- };
7102
- const setSelectionValue = (selection, key, value) => {
7103
- const updatedSelection = { ...selection };
7104
- if (Array.isArray(value) && value.length === 0) {
7105
- delete updatedSelection[key];
7106
- }
7107
- else {
7108
- updatedSelection[key] = value;
7109
- }
7110
- return updatedSelection;
7111
- };
7112
- const getItemActionHandler = (key, onAction) => {
7113
- return () => {
7114
- onAction?.();
7115
- onOjMenuAction?.({ key });
7116
- };
7117
- };
7118
- const getCommit = (key, selection) => {
7119
- return (detail) => {
7120
- onSelectionChanged?.(setSelectionValue(selection, key, detail.value));
7121
- };
7122
- };
7123
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: items.map((item) => {
7124
- switch (item.type) {
7125
- case 'divider':
7126
- case 'separator':
7127
- return (0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.MenuSeparator, {});
7128
- case 'submenu':
7129
- if (item.items && item.label) {
7130
- return ((0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.Submenu, { label: item.label, children: (0, jsx_runtime_1.jsx)(exports.ItemsMenu, { items: item.items, selection: selection, onSelectionChanged: onSelectionChanged, onOjMenuAction: onOjMenuAction }) }));
7131
- }
7132
- return;
7133
- case 'selectsingle':
7134
- if (item.items && item.key) {
7135
- return ((0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.SelectSingleMenuGroup, { value: getSingleGroupSelection(item.key), onCommit: getCommit(item.key, selection), children: (0, jsx_runtime_1.jsx)(menu_select_items_1.MenuSelectItems, { items: item.items }) }));
7136
- }
7137
- return;
7138
- case 'selectmultiple':
7139
- if (item.items && item.key) {
7140
- return ((0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.SelectMultipleMenuGroup, { value: getMultipleGroupSelection(item.key), onCommit: getCommit(item.key, selection), children: (0, jsx_runtime_1.jsx)(menu_select_items_1.MenuSelectItems, { items: item.items }) }));
7141
- }
7142
- return;
7143
- case undefined:
7144
- case 'item':
7145
- if (item.label) {
7146
- return ((0, jsx_runtime_1.jsx)(UNSAFE_Menu_1.MenuItem, { label: item.label, isDisabled: item.disabled, variant: item.variant, startIcon: item.startIcon && (0, jsx_runtime_1.jsx)(menu_item_icon_1.MenuItemIcon, { icon: item.startIcon }), endIcon: item.endIcon && (0, jsx_runtime_1.jsx)(menu_item_icon_1.MenuItemIcon, { icon: item.endIcon }), onAction: getItemActionHandler(item.key, item.onAction) }));
7147
- }
7148
- return;
7149
- default:
7150
- return;
7151
- }
7152
- }) }));
7153
- };
7154
- exports.ItemsMenu = ItemsMenu;
7155
- });
7156
-
7157
7555
 
7158
7556
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
7159
7557
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -7176,8 +7574,8 @@ define('oj-c/menu-button/menu-button',["require", "exports", "preact/jsx-runtime
7176
7574
  render(props) {
7177
7575
  const { chroming, label, disabled, suffix, size, items, display, startIcon, endIcon, selection, onSelectionChanged, onOjMenuAction, 'aria-label': accessibleLabel, 'aria-describedby': ariaDescribedBy, ...otherProps } = { ...props };
7178
7576
  const { bool: isOpen, toggle: toggleOpen } = (0, UNSAFE_useToggle_1.useToggle)();
7179
- const widthSize = props.width ? { width: props.width } : {};
7180
- return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { style: widthSize, children: display !== 'icons' || (startIcon && endIcon) ? ((0, jsx_runtime_1.jsx)(FunctionalMenuButton, { isMenuOpen: isOpen, onToggleMenu: toggleOpen, label: display === 'icons' ? (!startIcon ? label : '') : label, suffix: display === 'icons' ? (!startIcon ? suffix : '') : suffix, ref: this.buttonRef, variant: chroming, size: size, width: '100%', "aria-label": accessibleLabel, "aria-describedby": ariaDescribedBy, icon: display !== 'label' ? props.startIcon : null, isDisabled: disabled, ...otherProps, children: (0, jsx_runtime_1.jsx)(items_menu_1.ItemsMenu, { items: items, selection: selection, onSelectionChanged: onSelectionChanged, onOjMenuAction: onOjMenuAction }) })) : ((0, jsx_runtime_1.jsx)(FunctionalIconMenuButton, { isMenuOpen: isOpen, width: '100%', onToggleMenu: toggleOpen, ref: this.buttonRef, variant: chroming, isDisabled: disabled, tooltip: props.tooltip, accessibleLabel: accessibleLabel && accessibleLabel !== '' ? accessibleLabel : props.label, "aria-describedby": ariaDescribedBy, size: props.size, isIconOnly: (!props.startIcon && props.endIcon) || (!props.startIcon && !props.endIcon)
7577
+ const widthProps = props.width ? { style: { width: props.width } } : {};
7578
+ return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { ...widthProps, children: display !== 'icons' || (startIcon && endIcon) ? ((0, jsx_runtime_1.jsx)(FunctionalMenuButton, { isMenuOpen: isOpen, onToggleMenu: toggleOpen, label: display === 'icons' ? (!startIcon ? label : '') : label, suffix: display === 'icons' ? (!startIcon ? suffix : '') : suffix, ref: this.buttonRef, variant: chroming, size: size, width: '100%', "aria-label": accessibleLabel, "aria-describedby": ariaDescribedBy, icon: display !== 'label' ? props.startIcon : null, isDisabled: disabled, ...otherProps, children: (0, jsx_runtime_1.jsx)(items_menu_1.ItemsMenu, { items: items, selection: selection, onSelectionChanged: onSelectionChanged, onOjMenuAction: onOjMenuAction }) })) : ((0, jsx_runtime_1.jsx)(FunctionalIconMenuButton, { isMenuOpen: isOpen, width: '100%', onToggleMenu: toggleOpen, ref: this.buttonRef, variant: chroming, isDisabled: disabled, tooltip: props.tooltip, accessibleLabel: accessibleLabel && accessibleLabel !== '' ? accessibleLabel : props.label, "aria-describedby": ariaDescribedBy, size: props.size, isIconOnly: (!props.startIcon && props.endIcon) || (!props.startIcon && !props.endIcon)
7181
7579
  ? display === 'icons'
7182
7580
  : false, ...otherProps, icon: props.startIcon ?? (props.endIcon ? props.endIcon : (0, jsx_runtime_1.jsx)(this.OverFlowIcon, {})), children: (0, jsx_runtime_1.jsx)(items_menu_1.ItemsMenu, { items: items, selection: selection, onSelectionChanged: onSelectionChanged, onOjMenuAction: onOjMenuAction }) })) }));
7183
7581
  }
@@ -7234,6 +7632,138 @@ define('oj-c/menu-button',["require", "exports", "./menu-button/menu-button"], f
7234
7632
  Object.defineProperty(exports, "MenuButton", { enumerable: true, get: function () { return menu_button_1.MenuButton; } });
7235
7633
  });
7236
7634
 
7635
+ define('oj-c/tab-bar-mixed/DataTabBarMixedIcon',["require", "exports", "preact/jsx-runtime"], function (require, exports, jsx_runtime_1) {
7636
+ "use strict";
7637
+ Object.defineProperty(exports, "__esModule", { value: true });
7638
+ exports.DataTabBarMixedIcon = void 0;
7639
+ function DataTabBarMixedIcon(props) {
7640
+ const { icon } = props;
7641
+ if (!icon) {
7642
+ return null;
7643
+ }
7644
+ if (icon.type === 'class') {
7645
+ return (0, jsx_runtime_1.jsx)("span", { class: icon.class });
7646
+ }
7647
+ return null;
7648
+ }
7649
+ exports.DataTabBarMixedIcon = DataTabBarMixedIcon;
7650
+ });
7651
+
7652
+ define('oj-c/tab-bar-mixed/sumBadge',["require", "exports"], function (require, exports) {
7653
+ "use strict";
7654
+ Object.defineProperty(exports, "__esModule", { value: true });
7655
+ exports.sumBadge = void 0;
7656
+ function sumBadge(items) {
7657
+ return items.reduce((total, item) => {
7658
+ if (!item.badge) {
7659
+ return total;
7660
+ }
7661
+ const num = Number(item.badge);
7662
+ if (!Number.isInteger(num)) {
7663
+ console.warn(`Item with itemKey ${item.itemKey} provided a badge of '${item.badge}', expected integer`);
7664
+ return total;
7665
+ }
7666
+ if (num < 0) {
7667
+ console.warn(`Item with itemKey ${item.itemKey} provided a negative numerical badge value of '${item.badge}', expected positive integer. This will be discarded from total.`);
7668
+ return total;
7669
+ }
7670
+ return total + item.badge;
7671
+ }, 0);
7672
+ }
7673
+ exports.sumBadge = sumBadge;
7674
+ });
7675
+
7676
+ define('oj-c/tab-bar-mixed/DataTabBarMixed',["require", "exports", "preact/jsx-runtime", "preact/hooks", "@oracle/oraclejet-preact/UNSAFE_ConveyorBelt", "@oracle/oraclejet-preact/UNSAFE_TabBarMixed", "./DataTabBarMixedIcon", "./sumBadge", "preact"], function (require, exports, jsx_runtime_1, hooks_1, UNSAFE_ConveyorBelt_1, UNSAFE_TabBarMixed_1, DataTabBarMixedIcon_1, sumBadge_1, preact_1) {
7677
+ "use strict";
7678
+ Object.defineProperty(exports, "__esModule", { value: true });
7679
+ exports.DataTabBarMixed = void 0;
7680
+ function DataTabBarMixed(props) {
7681
+ const { dynamicTabs = [], dynamicTabsOverflowIcon, dynamicTabsOverflow, onRemove, onSelect, selection, separatorPadding, size = 'lg', staticTabs = [], staticTabsDisplay, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby } = props;
7682
+ const [isOverflowMenuOpen, setIsOverflowMenuOpen] = (0, hooks_1.useState)(false);
7683
+ const tabBarMixedRef = (0, preact_1.createRef)();
7684
+ const isOutsideMouseDown = (0, hooks_1.useRef)(false);
7685
+ const handleClose = (e) => {
7686
+ if (tabBarMixedRef.current && ['itemAction', 'dismissed'].includes(e.reason)) {
7687
+ tabBarMixedRef?.current?.focus();
7688
+ }
7689
+ if (e.reason === 'outsideMousedown') {
7690
+ isOutsideMouseDown.current = true;
7691
+ }
7692
+ setIsOverflowMenuOpen(false);
7693
+ };
7694
+ const handleSelect = (event) => {
7695
+ if (event.value && event.value === 'overflow') {
7696
+ if (isOutsideMouseDown.current) {
7697
+ setIsOverflowMenuOpen(false);
7698
+ }
7699
+ else {
7700
+ setIsOverflowMenuOpen(true);
7701
+ }
7702
+ }
7703
+ else if (onSelect) {
7704
+ onSelect(event);
7705
+ }
7706
+ isOutsideMouseDown.current = false;
7707
+ };
7708
+ const badgeTotal = (0, sumBadge_1.sumBadge)(dynamicTabs);
7709
+ const isDividerVisible = staticTabs.length > 0 && dynamicTabs.length > 0;
7710
+ return ((0, jsx_runtime_1.jsxs)(UNSAFE_TabBarMixed_1.TabBarMixed, { onRemove: onRemove, onSelect: handleSelect, selection: selection, size: size, ref: tabBarMixedRef, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, children: [(0, jsx_runtime_1.jsxs)(UNSAFE_TabBarMixed_1.TabBarLayout, { layout: "stretch", display: staticTabsDisplay, children: [staticTabs.map((tab) => ((0, jsx_runtime_1.jsx)(UNSAFE_TabBarMixed_1.TabBarItem, { icon: tab.icon ? ((0, jsx_runtime_1.jsx)(DataTabBarMixedIcon_1.DataTabBarMixedIcon, { label: staticTabsDisplay === 'icons' ? tab.label : undefined, icon: tab.icon })) : undefined, itemKey: tab.itemKey, label: tab.label, "aria-controls": tab.tabPanelId }))), dynamicTabsOverflow === 'popup' && ((0, jsx_runtime_1.jsx)(UNSAFE_TabBarMixed_1.OverflowTabBarItem, { badge: badgeTotal > 0 ? badgeTotal.toString() : undefined, icon: (0, jsx_runtime_1.jsx)(DataTabBarMixedIcon_1.DataTabBarMixedIcon, { icon: dynamicTabsOverflowIcon }), isOpen: isOverflowMenuOpen, onClose: handleClose, overflowItemKey: "overflow", overflowItems: dynamicTabs.map((tab) => ({
7711
+ itemKey: tab.itemKey,
7712
+ badge: tab.badge ? tab.badge.toString() : undefined,
7713
+ label: tab.label,
7714
+ isRemovable: true
7715
+ })) }))] }), dynamicTabsOverflow === 'conveyor' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isDividerVisible && (0, jsx_runtime_1.jsx)(UNSAFE_TabBarMixed_1.TabBarMixedSeparator, { padding: separatorPadding }), (0, jsx_runtime_1.jsx)(UNSAFE_ConveyorBelt_1.ConveyorBelt, { children: (0, jsx_runtime_1.jsx)(UNSAFE_TabBarMixed_1.TabBarLayout, { display: "standard", layout: "condense", children: dynamicTabs.map((tab) => ((0, jsx_runtime_1.jsx)(UNSAFE_TabBarMixed_1.RemovableTabBarItem, { badge: tab.badge ? tab.badge.toString() : undefined, itemKey: tab.itemKey, label: tab.label, "aria-controls": tab.tabPanelId }))) }) })] }))] }));
7716
+ }
7717
+ exports.DataTabBarMixed = DataTabBarMixed;
7718
+ });
7719
+
7720
+ define('oj-c/tab-bar-mixed/tab-bar-mixed',["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/translationBundle', "ojs/ojvcomponent", "./DataTabBarMixed"], function (require, exports, jsx_runtime_1, translationBundle_1, ojvcomponent_1, DataTabBarMixed_1) {
7721
+ "use strict";
7722
+ Object.defineProperty(exports, "__esModule", { value: true });
7723
+ exports.TabBarMixed = void 0;
7724
+ exports.TabBarMixed = (0, ojvcomponent_1.registerCustomElement)('oj-c-tab-bar-mixed', (props) => {
7725
+ const { dynamicTabs = [], dynamicTabsOverflow = 'conveyor', dynamicTabsOverflowIcon = { type: 'class', class: 'oj-ux-ico-collection' }, onOjBeforeSelect, onOjRemove, onOjSelectionAction, onSelectionChanged, selection, separatorPadding = '3rem', size, staticTabs = [], staticTabsDisplay = 'standard', 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby } = props;
7726
+ const handleRemove = (event) => {
7727
+ if (onOjRemove) {
7728
+ onOjRemove({ key: event.value });
7729
+ }
7730
+ };
7731
+ const handleSelect = (event) => {
7732
+ if (onOjSelectionAction) {
7733
+ onOjSelectionAction({ previousValue: selection || '', value: event.value });
7734
+ }
7735
+ if (selection === event.value) {
7736
+ return;
7737
+ }
7738
+ (async () => {
7739
+ handleOnSelectionChanged: {
7740
+ if (onOjBeforeSelect) {
7741
+ try {
7742
+ await onOjBeforeSelect({ key: event.value });
7743
+ }
7744
+ catch {
7745
+ break handleOnSelectionChanged;
7746
+ }
7747
+ }
7748
+ if (onSelectionChanged) {
7749
+ onSelectionChanged(event.value);
7750
+ }
7751
+ }
7752
+ })();
7753
+ };
7754
+ return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { children: (0, jsx_runtime_1.jsx)(DataTabBarMixed_1.DataTabBarMixed, { dynamicTabs: dynamicTabs, dynamicTabsOverflow: dynamicTabsOverflow, dynamicTabsOverflowIcon: dynamicTabsOverflowIcon, onRemove: handleRemove, onSelect: handleSelect, selection: selection, separatorPadding: separatorPadding, size: size, staticTabs: staticTabs, staticTabsDisplay: staticTabsDisplay, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby }) }));
7755
+ }, "TabBarMixed", { "properties": { "dynamicTabs": { "type": "Array<object>" }, "dynamicTabsOverflow": { "type": "string", "enumValues": ["popup", "conveyor"] }, "dynamicTabsOverflowIcon": { "type": "object" }, "size": { "type": "string", "enumValues": ["md", "lg"] }, "selection": { "type": "any", "writeback": true }, "separatorPadding": { "type": "string" }, "staticTabs": { "type": "Array<object>" }, "staticTabsDisplay": { "type": "string", "enumValues": ["standard", "icons"] } }, "events": { "ojBeforeSelect": { "cancelable": true }, "ojRemove": {}, "ojSelectionAction": {} }, "extension": { "_WRITEBACK_PROPS": ["selection"], "_READ_ONLY_PROPS": [], "_OBSERVED_GLOBAL_PROPS": ["aria-label", "id", "aria-labelledby"] } }, undefined, {
7756
+ '@oracle/oraclejet-preact': translationBundle_1.default
7757
+ });
7758
+ });
7759
+
7760
+ define('oj-c/tab-bar-mixed',["require", "exports", "./tab-bar-mixed/tab-bar-mixed"], function (require, exports, tab_bar_mixed_1) {
7761
+ "use strict";
7762
+ Object.defineProperty(exports, "__esModule", { value: true });
7763
+ exports.TabBarMixed = void 0;
7764
+ Object.defineProperty(exports, "TabBarMixed", { enumerable: true, get: function () { return tab_bar_mixed_1.TabBarMixed; } });
7765
+ });
7766
+
7237
7767
 
7238
7768
  define("corepackbundle", function(){});
7239
7769