@refinitiv-ui/elements 5.12.2 → 6.0.0-next.2

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 (365) hide show
  1. package/README.md +4 -4
  2. package/lib/accordion/index.d.ts +5 -0
  3. package/lib/accordion/index.js +2 -2
  4. package/lib/accordion/themes/halo/dark/index.js +1 -1
  5. package/lib/accordion/themes/halo/light/index.js +1 -1
  6. package/lib/accordion/themes/solar/charcoal/index.js +1 -1
  7. package/lib/accordion/themes/solar/pearl/index.js +1 -1
  8. package/lib/appstate-bar/index.d.ts +11 -0
  9. package/lib/appstate-bar/index.js +8 -3
  10. package/lib/appstate-bar/themes/halo/dark/index.js +1 -1
  11. package/lib/appstate-bar/themes/halo/light/index.js +1 -1
  12. package/lib/appstate-bar/themes/solar/charcoal/index.js +1 -1
  13. package/lib/appstate-bar/themes/solar/pearl/index.js +1 -1
  14. package/lib/autosuggest/index.d.ts +5 -0
  15. package/lib/autosuggest/index.js +22 -12
  16. package/lib/autosuggest/themes/halo/dark/index.js +3 -3
  17. package/lib/autosuggest/themes/halo/light/index.js +3 -3
  18. package/lib/autosuggest/themes/solar/charcoal/index.js +3 -3
  19. package/lib/autosuggest/themes/solar/pearl/index.js +3 -3
  20. package/lib/button/index.d.ts +7 -13
  21. package/lib/button/index.js +8 -43
  22. package/lib/button/themes/halo/dark/index.js +1 -1
  23. package/lib/button/themes/halo/light/index.js +1 -1
  24. package/lib/button/themes/solar/charcoal/index.js +1 -1
  25. package/lib/button/themes/solar/pearl/index.js +1 -1
  26. package/lib/button-bar/index.d.ts +5 -0
  27. package/lib/button-bar/index.js +4 -5
  28. package/lib/button-bar/themes/halo/dark/index.js +1 -1
  29. package/lib/button-bar/themes/halo/light/index.js +1 -1
  30. package/lib/button-bar/themes/solar/charcoal/index.js +1 -1
  31. package/lib/button-bar/themes/solar/pearl/index.js +1 -1
  32. package/lib/calendar/constants.js +1 -1
  33. package/lib/calendar/index.d.ts +6 -1
  34. package/lib/calendar/index.js +39 -15
  35. package/lib/calendar/locales.js +5 -5
  36. package/lib/calendar/themes/halo/dark/index.js +1 -1
  37. package/lib/calendar/themes/halo/light/index.js +1 -1
  38. package/lib/calendar/themes/solar/charcoal/index.js +1 -1
  39. package/lib/calendar/themes/solar/pearl/index.js +1 -1
  40. package/lib/calendar/types.d.ts +1 -1
  41. package/lib/calendar/utils.js +5 -5
  42. package/lib/canvas/index.d.ts +5 -0
  43. package/lib/canvas/index.js +3 -4
  44. package/lib/card/index.d.ts +21 -0
  45. package/lib/card/index.js +37 -15
  46. package/lib/card/themes/halo/dark/index.js +3 -3
  47. package/lib/card/themes/halo/light/index.js +3 -3
  48. package/lib/card/themes/solar/charcoal/index.js +3 -3
  49. package/lib/card/themes/solar/pearl/index.js +3 -3
  50. package/lib/chart/index.d.ts +5 -0
  51. package/lib/chart/index.js +18 -22
  52. package/lib/chart/plugins/doughnut-center-label.js +6 -11
  53. package/lib/chart/themes/halo/dark/index.js +2 -2
  54. package/lib/chart/themes/halo/light/index.js +2 -2
  55. package/lib/chart/themes/solar/charcoal/index.js +2 -2
  56. package/lib/chart/themes/solar/pearl/index.js +2 -2
  57. package/lib/checkbox/index.d.ts +5 -0
  58. package/lib/checkbox/index.js +3 -3
  59. package/lib/checkbox/themes/halo/dark/index.js +2 -2
  60. package/lib/checkbox/themes/halo/light/index.js +2 -2
  61. package/lib/checkbox/themes/solar/charcoal/index.js +2 -2
  62. package/lib/checkbox/themes/solar/pearl/index.js +2 -2
  63. package/lib/clock/index.d.ts +5 -0
  64. package/lib/clock/index.js +6 -6
  65. package/lib/clock/utils/TickManager.js +2 -2
  66. package/lib/collapse/index.d.ts +5 -0
  67. package/lib/collapse/index.js +7 -9
  68. package/lib/collapse/themes/halo/dark/index.js +3 -3
  69. package/lib/collapse/themes/halo/light/index.js +3 -3
  70. package/lib/collapse/themes/solar/charcoal/index.js +3 -3
  71. package/lib/collapse/themes/solar/pearl/index.js +3 -3
  72. package/lib/color-dialog/elements/color-palettes.d.ts +5 -0
  73. package/lib/color-dialog/elements/color-palettes.js +1 -1
  74. package/lib/color-dialog/elements/grayscale-palettes.d.ts +5 -0
  75. package/lib/color-dialog/elements/grayscale-palettes.js +2 -2
  76. package/lib/color-dialog/elements/palettes.js +4 -5
  77. package/lib/color-dialog/helpers/value-model.js +1 -1
  78. package/lib/color-dialog/index.d.ts +6 -1
  79. package/lib/color-dialog/index.js +17 -12
  80. package/lib/color-dialog/themes/halo/dark/index.js +5 -5
  81. package/lib/color-dialog/themes/halo/light/index.js +5 -5
  82. package/lib/color-dialog/themes/solar/charcoal/index.js +5 -5
  83. package/lib/color-dialog/themes/solar/pearl/index.js +5 -5
  84. package/lib/combo-box/helpers/filter.d.ts +1 -1
  85. package/lib/combo-box/helpers/types.d.ts +1 -1
  86. package/lib/combo-box/index.d.ts +9 -4
  87. package/lib/combo-box/index.js +31 -14
  88. package/lib/combo-box/themes/halo/dark/index.js +5 -5
  89. package/lib/combo-box/themes/halo/light/index.js +5 -5
  90. package/lib/combo-box/themes/solar/charcoal/index.js +5 -5
  91. package/lib/combo-box/themes/solar/pearl/index.js +5 -5
  92. package/lib/counter/index.d.ts +11 -6
  93. package/lib/counter/index.js +8 -8
  94. package/lib/counter/themes/halo/dark/index.js +1 -1
  95. package/lib/counter/themes/halo/light/index.js +1 -1
  96. package/lib/counter/themes/solar/charcoal/index.js +1 -1
  97. package/lib/counter/themes/solar/pearl/index.js +1 -1
  98. package/lib/datetime-field/constants.d.ts +4 -0
  99. package/lib/datetime-field/constants.js +5 -0
  100. package/lib/datetime-field/custom-elements.json +345 -0
  101. package/lib/datetime-field/custom-elements.md +61 -0
  102. package/lib/datetime-field/index.d.ts +322 -0
  103. package/lib/datetime-field/index.js +660 -0
  104. package/lib/datetime-field/themes/halo/dark/index.js +3 -0
  105. package/lib/datetime-field/themes/halo/light/index.js +3 -0
  106. package/lib/datetime-field/themes/solar/charcoal/index.js +3 -0
  107. package/lib/datetime-field/themes/solar/pearl/index.js +3 -0
  108. package/lib/datetime-field/types.d.ts +10 -0
  109. package/lib/datetime-field/types.js +1 -0
  110. package/lib/datetime-field/utils.d.ts +25 -0
  111. package/lib/datetime-field/utils.js +79 -0
  112. package/lib/datetime-picker/index.d.ts +5 -0
  113. package/lib/datetime-picker/index.js +6 -7
  114. package/lib/datetime-picker/themes/halo/dark/index.js +5 -5
  115. package/lib/datetime-picker/themes/halo/light/index.js +5 -5
  116. package/lib/datetime-picker/themes/solar/charcoal/index.js +5 -5
  117. package/lib/datetime-picker/themes/solar/pearl/index.js +5 -5
  118. package/lib/datetime-picker/utils.js +1 -1
  119. package/lib/dialog/draggable-element.js +1 -2
  120. package/lib/dialog/index.d.ts +6 -1
  121. package/lib/dialog/index.js +5 -5
  122. package/lib/dialog/themes/halo/dark/index.js +5 -5
  123. package/lib/dialog/themes/halo/light/index.js +5 -5
  124. package/lib/dialog/themes/solar/charcoal/index.js +5 -5
  125. package/lib/dialog/themes/solar/pearl/index.js +5 -5
  126. package/lib/email-field/index.d.ts +6 -1
  127. package/lib/email-field/index.js +8 -3
  128. package/lib/email-field/themes/halo/dark/index.js +1 -1
  129. package/lib/email-field/themes/halo/light/index.js +1 -1
  130. package/lib/email-field/themes/solar/charcoal/index.js +1 -1
  131. package/lib/email-field/themes/solar/pearl/index.js +1 -1
  132. package/lib/flag/index.d.ts +5 -0
  133. package/lib/flag/index.js +3 -3
  134. package/lib/flag/utils/FlagLoader.d.ts +1 -1
  135. package/lib/flag/utils/FlagLoader.js +1 -1
  136. package/lib/header/index.d.ts +5 -0
  137. package/lib/header/index.js +2 -2
  138. package/lib/heatmap/helpers/color.d.ts +1 -1
  139. package/lib/heatmap/helpers/color.js +3 -5
  140. package/lib/heatmap/helpers/text.d.ts +1 -7
  141. package/lib/heatmap/helpers/text.js +1 -18
  142. package/lib/heatmap/index.d.ts +5 -0
  143. package/lib/heatmap/index.js +22 -30
  144. package/lib/heatmap/themes/halo/dark/index.js +2 -2
  145. package/lib/heatmap/themes/halo/light/index.js +2 -2
  146. package/lib/heatmap/themes/solar/charcoal/index.js +2 -2
  147. package/lib/heatmap/themes/solar/pearl/index.js +2 -2
  148. package/lib/icon/index.d.ts +5 -0
  149. package/lib/icon/index.js +3 -3
  150. package/lib/icon/utils/IconLoader.d.ts +1 -1
  151. package/lib/icon/utils/IconLoader.js +1 -1
  152. package/lib/interactive-chart/helpers/types.d.ts +1 -1
  153. package/lib/interactive-chart/index.d.ts +5 -12
  154. package/lib/interactive-chart/index.js +20 -36
  155. package/lib/interactive-chart/themes/halo/dark/index.js +1 -1
  156. package/lib/interactive-chart/themes/halo/light/index.js +1 -1
  157. package/lib/interactive-chart/themes/solar/charcoal/index.js +1 -1
  158. package/lib/interactive-chart/themes/solar/pearl/index.js +1 -1
  159. package/lib/item/helpers/types.d.ts +1 -1
  160. package/lib/item/index.d.ts +24 -17
  161. package/lib/item/index.js +45 -48
  162. package/lib/item/themes/halo/dark/index.js +2 -2
  163. package/lib/item/themes/halo/light/index.js +2 -2
  164. package/lib/item/themes/solar/charcoal/index.js +2 -2
  165. package/lib/item/themes/solar/pearl/index.js +2 -2
  166. package/lib/label/index.d.ts +6 -1
  167. package/lib/label/index.js +6 -6
  168. package/lib/label/themes/halo/dark/index.js +1 -1
  169. package/lib/label/themes/halo/light/index.js +1 -1
  170. package/lib/label/themes/solar/charcoal/index.js +1 -1
  171. package/lib/label/themes/solar/pearl/index.js +1 -1
  172. package/lib/layout/index.d.ts +5 -0
  173. package/lib/layout/index.js +2 -2
  174. package/lib/led-gauge/index.d.ts +5 -0
  175. package/lib/led-gauge/index.js +2 -2
  176. package/lib/led-gauge/themes/halo/dark/index.js +1 -1
  177. package/lib/led-gauge/themes/halo/light/index.js +1 -1
  178. package/lib/led-gauge/themes/solar/charcoal/index.js +1 -1
  179. package/lib/led-gauge/themes/solar/pearl/index.js +1 -1
  180. package/lib/list/custom-elements.json +0 -13
  181. package/lib/list/custom-elements.md +9 -10
  182. package/lib/list/helpers/item-id.d.ts +8 -0
  183. package/lib/list/helpers/item-id.js +13 -0
  184. package/lib/list/helpers/{list-renderer.d.ts → renderer.d.ts} +4 -0
  185. package/lib/list/helpers/{list-renderer.js → renderer.js} +8 -0
  186. package/lib/list/helpers/types.d.ts +1 -1
  187. package/lib/list/index.d.ts +18 -12
  188. package/lib/list/index.js +30 -29
  189. package/lib/list/renderer.d.ts +1 -1
  190. package/lib/list/themes/halo/dark/index.js +2 -2
  191. package/lib/list/themes/halo/light/index.js +2 -2
  192. package/lib/list/themes/solar/charcoal/index.js +2 -2
  193. package/lib/list/themes/solar/pearl/index.js +2 -2
  194. package/lib/loader/index.d.ts +6 -0
  195. package/lib/loader/index.js +5 -1
  196. package/lib/multi-input/helpers/types.d.ts +1 -1
  197. package/lib/multi-input/index.d.ts +5 -0
  198. package/lib/multi-input/index.js +6 -7
  199. package/lib/multi-input/themes/halo/dark/index.js +2 -2
  200. package/lib/multi-input/themes/halo/light/index.js +2 -2
  201. package/lib/multi-input/themes/solar/charcoal/index.js +2 -2
  202. package/lib/multi-input/themes/solar/pearl/index.js +2 -2
  203. package/lib/notification/elements/notification-tray.d.ts +5 -0
  204. package/lib/notification/elements/notification-tray.js +4 -4
  205. package/lib/notification/elements/notification.d.ts +15 -0
  206. package/lib/notification/elements/notification.js +12 -3
  207. package/lib/notification/themes/halo/dark/index.js +1 -1
  208. package/lib/notification/themes/halo/light/index.js +1 -1
  209. package/lib/notification/themes/solar/charcoal/index.js +1 -1
  210. package/lib/notification/themes/solar/pearl/index.js +1 -1
  211. package/lib/number-field/index.d.ts +8 -3
  212. package/lib/number-field/index.js +14 -4
  213. package/lib/number-field/themes/halo/dark/index.js +1 -1
  214. package/lib/number-field/themes/halo/light/index.js +1 -1
  215. package/lib/number-field/themes/solar/charcoal/index.js +1 -1
  216. package/lib/number-field/themes/solar/pearl/index.js +1 -1
  217. package/lib/overlay/elements/overlay-backdrop.d.ts +5 -0
  218. package/lib/overlay/elements/overlay-backdrop.js +2 -2
  219. package/lib/overlay/elements/overlay-viewport.d.ts +5 -0
  220. package/lib/overlay/elements/overlay-viewport.js +1 -1
  221. package/lib/overlay/elements/overlay.d.ts +5 -0
  222. package/lib/overlay/elements/overlay.js +7 -5
  223. package/lib/overlay/managers/focus-manager.js +11 -6
  224. package/lib/overlay/managers/interaction-lock-manager.js +1 -1
  225. package/lib/overlay/managers/viewport-manager.js +4 -5
  226. package/lib/overlay/managers/zindex-manager.js +1 -1
  227. package/lib/overlay-menu/helpers/types.d.ts +7 -1
  228. package/lib/overlay-menu/helpers/types.js +7 -1
  229. package/lib/overlay-menu/index.d.ts +14 -4
  230. package/lib/overlay-menu/index.js +57 -29
  231. package/lib/overlay-menu/managers/menu-manager.js +2 -1
  232. package/lib/overlay-menu/themes/halo/dark/index.js +3 -3
  233. package/lib/overlay-menu/themes/halo/light/index.js +3 -3
  234. package/lib/overlay-menu/themes/solar/charcoal/index.js +3 -3
  235. package/lib/overlay-menu/themes/solar/pearl/index.js +3 -3
  236. package/lib/pagination/index.d.ts +79 -91
  237. package/lib/pagination/index.js +205 -239
  238. package/lib/pagination/themes/halo/dark/index.js +4 -5
  239. package/lib/pagination/themes/halo/light/index.js +4 -5
  240. package/lib/pagination/themes/solar/charcoal/index.js +4 -5
  241. package/lib/pagination/themes/solar/pearl/index.js +4 -5
  242. package/lib/panel/index.d.ts +5 -0
  243. package/lib/panel/index.js +2 -2
  244. package/lib/password-field/index.d.ts +7 -2
  245. package/lib/password-field/index.js +7 -4
  246. package/lib/password-field/themes/halo/dark/index.js +1 -1
  247. package/lib/password-field/themes/halo/light/index.js +1 -1
  248. package/lib/password-field/themes/solar/charcoal/index.js +1 -1
  249. package/lib/password-field/themes/solar/pearl/index.js +1 -1
  250. package/lib/pill/index.d.ts +21 -0
  251. package/lib/pill/index.js +36 -5
  252. package/lib/pill/themes/halo/dark/index.js +2 -2
  253. package/lib/pill/themes/halo/light/index.js +2 -2
  254. package/lib/pill/themes/solar/charcoal/index.js +2 -2
  255. package/lib/pill/themes/solar/pearl/index.js +2 -2
  256. package/lib/progress-bar/index.d.ts +5 -0
  257. package/lib/progress-bar/index.js +3 -3
  258. package/lib/radio-button/index.d.ts +5 -0
  259. package/lib/radio-button/index.js +3 -3
  260. package/lib/radio-button/radio-button-registry.d.ts +1 -1
  261. package/lib/radio-button/radio-button-registry.js +4 -2
  262. package/lib/radio-button/themes/halo/dark/index.js +1 -1
  263. package/lib/radio-button/themes/halo/light/index.js +1 -1
  264. package/lib/radio-button/themes/solar/charcoal/index.js +1 -1
  265. package/lib/radio-button/themes/solar/pearl/index.js +1 -1
  266. package/lib/rating/index.d.ts +5 -0
  267. package/lib/rating/index.js +4 -4
  268. package/lib/search-field/index.d.ts +7 -2
  269. package/lib/search-field/index.js +8 -4
  270. package/lib/search-field/themes/halo/dark/index.js +1 -1
  271. package/lib/search-field/themes/halo/light/index.js +1 -1
  272. package/lib/search-field/themes/solar/charcoal/index.js +1 -1
  273. package/lib/search-field/themes/solar/pearl/index.js +1 -1
  274. package/lib/select/index.d.ts +5 -0
  275. package/lib/select/index.js +11 -14
  276. package/lib/select/themes/halo/dark/index.js +3 -3
  277. package/lib/select/themes/halo/light/index.js +3 -3
  278. package/lib/select/themes/solar/charcoal/index.js +3 -3
  279. package/lib/select/themes/solar/pearl/index.js +3 -3
  280. package/lib/sidebar-layout/index.d.ts +5 -0
  281. package/lib/sidebar-layout/index.js +4 -4
  282. package/lib/sidebar-layout/themes/halo/dark/index.js +1 -1
  283. package/lib/sidebar-layout/themes/halo/light/index.js +1 -1
  284. package/lib/sidebar-layout/themes/solar/charcoal/index.js +1 -1
  285. package/lib/sidebar-layout/themes/solar/pearl/index.js +1 -1
  286. package/lib/slider/constants.d.ts +15 -0
  287. package/lib/slider/constants.js +18 -0
  288. package/lib/slider/index.d.ts +55 -80
  289. package/lib/slider/index.js +365 -460
  290. package/lib/slider/themes/halo/dark/index.js +1 -1
  291. package/lib/slider/themes/halo/light/index.js +1 -1
  292. package/lib/slider/themes/solar/charcoal/index.js +1 -1
  293. package/lib/slider/themes/solar/pearl/index.js +1 -1
  294. package/lib/slider/utils.d.ts +35 -0
  295. package/lib/slider/utils.js +54 -0
  296. package/lib/sparkline/index.d.ts +5 -0
  297. package/lib/sparkline/index.js +9 -10
  298. package/lib/swing-gauge/index.d.ts +5 -0
  299. package/lib/swing-gauge/index.js +14 -8
  300. package/lib/swing-gauge/themes/halo/dark/index.js +1 -1
  301. package/lib/swing-gauge/themes/halo/light/index.js +1 -1
  302. package/lib/swing-gauge/themes/solar/charcoal/index.js +1 -1
  303. package/lib/swing-gauge/themes/solar/pearl/index.js +1 -1
  304. package/lib/tab/index.d.ts +5 -0
  305. package/lib/tab/index.js +4 -4
  306. package/lib/tab/themes/halo/dark/index.js +2 -2
  307. package/lib/tab/themes/halo/light/index.js +2 -2
  308. package/lib/tab/themes/solar/charcoal/index.js +2 -2
  309. package/lib/tab/themes/solar/pearl/index.js +2 -2
  310. package/lib/tab-bar/index.d.ts +5 -0
  311. package/lib/tab-bar/index.js +6 -6
  312. package/lib/tab-bar/themes/halo/dark/index.js +2 -2
  313. package/lib/tab-bar/themes/halo/light/index.js +2 -2
  314. package/lib/tab-bar/themes/solar/charcoal/index.js +2 -2
  315. package/lib/tab-bar/themes/solar/pearl/index.js +2 -2
  316. package/lib/text-field/index.d.ts +19 -1
  317. package/lib/text-field/index.js +35 -11
  318. package/lib/text-field/themes/halo/dark/index.js +1 -1
  319. package/lib/text-field/themes/halo/light/index.js +1 -1
  320. package/lib/text-field/themes/solar/charcoal/index.js +1 -1
  321. package/lib/text-field/themes/solar/pearl/index.js +1 -1
  322. package/lib/time-picker/index.d.ts +6 -1
  323. package/lib/time-picker/index.js +11 -11
  324. package/lib/time-picker/themes/halo/dark/index.js +2 -2
  325. package/lib/time-picker/themes/halo/light/index.js +2 -2
  326. package/lib/time-picker/themes/solar/charcoal/index.js +2 -2
  327. package/lib/time-picker/themes/solar/pearl/index.js +2 -2
  328. package/lib/toggle/index.d.ts +5 -0
  329. package/lib/toggle/index.js +2 -2
  330. package/lib/tooltip/elements/tooltip-element.d.ts +1 -2
  331. package/lib/tooltip/index.d.ts +6 -0
  332. package/lib/tooltip/index.js +7 -8
  333. package/lib/tooltip/managers/tooltip-manager.js +2 -2
  334. package/lib/tooltip/themes/halo/dark/index.js +1 -1
  335. package/lib/tooltip/themes/halo/light/index.js +1 -1
  336. package/lib/tooltip/themes/solar/charcoal/index.js +1 -1
  337. package/lib/tooltip/themes/solar/pearl/index.js +1 -1
  338. package/lib/tornado-chart/elements/tornado-chart.d.ts +5 -0
  339. package/lib/tornado-chart/elements/tornado-chart.js +2 -2
  340. package/lib/tornado-chart/elements/tornado-item.d.ts +5 -0
  341. package/lib/tornado-chart/elements/tornado-item.js +3 -3
  342. package/lib/tornado-chart/themes/halo/dark/index.js +2 -2
  343. package/lib/tornado-chart/themes/halo/light/index.js +2 -2
  344. package/lib/tornado-chart/themes/solar/charcoal/index.js +2 -2
  345. package/lib/tornado-chart/themes/solar/pearl/index.js +2 -2
  346. package/lib/tree/elements/tree-item.d.ts +8 -3
  347. package/lib/tree/elements/tree-item.js +5 -6
  348. package/lib/tree/elements/tree.d.ts +7 -3
  349. package/lib/tree/elements/tree.js +6 -7
  350. package/lib/tree/helpers/renderer.d.ts +4 -0
  351. package/lib/tree/helpers/renderer.js +20 -13
  352. package/lib/tree/helpers/types.d.ts +1 -1
  353. package/lib/tree/managers/tree-manager.d.ts +1 -1
  354. package/lib/tree/themes/halo/dark/index.js +4 -4
  355. package/lib/tree/themes/halo/light/index.js +4 -4
  356. package/lib/tree/themes/solar/charcoal/index.js +4 -4
  357. package/lib/tree/themes/solar/pearl/index.js +4 -4
  358. package/lib/tree-select/index.d.ts +8 -7
  359. package/lib/tree-select/index.js +39 -38
  360. package/lib/tree-select/themes/halo/dark/index.js +9 -9
  361. package/lib/tree-select/themes/halo/light/index.js +9 -9
  362. package/lib/tree-select/themes/solar/charcoal/index.js +9 -9
  363. package/lib/tree-select/themes/solar/pearl/index.js +9 -9
  364. package/lib/version.js +1 -1
  365. package/package.json +35 -295
@@ -0,0 +1,345 @@
1
+ {
2
+ "version": "experimental",
3
+ "tags": [
4
+ {
5
+ "name": "ef-datetime-field",
6
+ "description": "A form control element for datetime input.",
7
+ "attributes": [
8
+ {
9
+ "name": "min",
10
+ "description": "Set minimum date.\nThis value must follow the `format` and be less\nthan or equal to the value of the `max` attribute",
11
+ "type": "string | null"
12
+ },
13
+ {
14
+ "name": "max",
15
+ "description": "Set maximum date.\nThis value must follow the `format` and be greater\nthan or equal to the value of the `min` attribute",
16
+ "type": "string | null"
17
+ },
18
+ {
19
+ "name": "timepicker",
20
+ "description": "Toggle to display the time picker",
21
+ "type": "boolean",
22
+ "default": "false"
23
+ },
24
+ {
25
+ "name": "show-seconds",
26
+ "description": "Toggle to display the seconds",
27
+ "type": "boolean",
28
+ "default": "false"
29
+ },
30
+ {
31
+ "name": "am-pm",
32
+ "description": "Overrides 12hr time display format",
33
+ "type": "boolean",
34
+ "default": "false"
35
+ },
36
+ {
37
+ "name": "value",
38
+ "description": "Current date time value",
39
+ "type": "string",
40
+ "default": "\"\""
41
+ },
42
+ {
43
+ "name": "disabled",
44
+ "description": "Set disabled state",
45
+ "type": "boolean",
46
+ "default": "false"
47
+ },
48
+ {
49
+ "name": "error",
50
+ "description": "Set error state",
51
+ "type": "boolean",
52
+ "default": "false"
53
+ },
54
+ {
55
+ "name": "icon",
56
+ "description": "Specify icon to display in input. Value can be icon name",
57
+ "type": "string | null"
58
+ },
59
+ {
60
+ "name": "icon-has-action",
61
+ "description": "Specify when icon need to be clickable",
62
+ "type": "boolean",
63
+ "default": "false"
64
+ },
65
+ {
66
+ "name": "placeholder",
67
+ "description": "Set placeholder text",
68
+ "type": "string",
69
+ "default": "\"\""
70
+ },
71
+ {
72
+ "name": "readonly",
73
+ "description": "Set readonly state",
74
+ "type": "boolean",
75
+ "default": "false"
76
+ },
77
+ {
78
+ "name": "transparent",
79
+ "description": "Disables all other states and border/background styles.",
80
+ "type": "boolean",
81
+ "default": "false"
82
+ },
83
+ {
84
+ "name": "warning",
85
+ "description": "Set warning state",
86
+ "type": "boolean",
87
+ "default": "false"
88
+ },
89
+ {
90
+ "name": "icon-has-action",
91
+ "description": "Specify when icon need to be clickable",
92
+ "type": "boolean"
93
+ },
94
+ {
95
+ "name": "maxlength",
96
+ "description": "Set character max limit",
97
+ "type": "number"
98
+ },
99
+ {
100
+ "name": "minlength",
101
+ "description": "Set character min limit",
102
+ "type": "number"
103
+ }
104
+ ],
105
+ "properties": [
106
+ {
107
+ "name": "min",
108
+ "attribute": "min",
109
+ "description": "Set minimum date.\nThis value must follow the `format` and be less\nthan or equal to the value of the `max` attribute",
110
+ "type": "string | null"
111
+ },
112
+ {
113
+ "name": "max",
114
+ "attribute": "max",
115
+ "description": "Set maximum date.\nThis value must follow the `format` and be greater\nthan or equal to the value of the `min` attribute",
116
+ "type": "string | null"
117
+ },
118
+ {
119
+ "name": "timepicker",
120
+ "attribute": "timepicker",
121
+ "description": "Toggle to display the time picker",
122
+ "type": "boolean",
123
+ "default": "false"
124
+ },
125
+ {
126
+ "name": "showSeconds",
127
+ "attribute": "show-seconds",
128
+ "description": "Toggle to display the seconds",
129
+ "type": "boolean",
130
+ "default": "false"
131
+ },
132
+ {
133
+ "name": "amPm",
134
+ "attribute": "am-pm",
135
+ "description": "Overrides 12hr time display format",
136
+ "type": "boolean",
137
+ "default": "false"
138
+ },
139
+ {
140
+ "name": "formatOptions",
141
+ "description": "Set the datetime format options based on\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat\n`formatOptions` overrides `timepicker` and `showSeconds` properties.\nNote: time-zone is not supported"
142
+ },
143
+ {
144
+ "name": "value",
145
+ "attribute": "value",
146
+ "description": "Current date time value",
147
+ "type": "string",
148
+ "default": "\"\""
149
+ },
150
+ {
151
+ "name": "valueAsNumber",
152
+ "description": "Returns the value of the element, interpreted as double number",
153
+ "type": "number"
154
+ },
155
+ {
156
+ "name": "valueAsDate",
157
+ "description": "Returns the value of the element, interpreted as Date"
158
+ },
159
+ {
160
+ "name": "decorateInputMap (readonly)"
161
+ },
162
+ {
163
+ "name": "disabled",
164
+ "attribute": "disabled",
165
+ "description": "Set disabled state",
166
+ "type": "boolean",
167
+ "default": "false"
168
+ },
169
+ {
170
+ "name": "error",
171
+ "attribute": "error",
172
+ "description": "Set error state",
173
+ "type": "boolean",
174
+ "default": "false"
175
+ },
176
+ {
177
+ "name": "icon",
178
+ "attribute": "icon",
179
+ "description": "Specify icon to display in input. Value can be icon name",
180
+ "type": "string | null"
181
+ },
182
+ {
183
+ "name": "iconHasAction",
184
+ "attribute": "icon-has-action",
185
+ "description": "Specify when icon need to be clickable",
186
+ "type": "boolean",
187
+ "default": "false"
188
+ },
189
+ {
190
+ "name": "maxLength",
191
+ "description": "Set character max limit",
192
+ "type": "number | null"
193
+ },
194
+ {
195
+ "name": "minLength",
196
+ "description": "Set character min limit",
197
+ "type": "number | null"
198
+ },
199
+ {
200
+ "name": "pattern",
201
+ "description": "Set regular expression for input validation",
202
+ "type": "string",
203
+ "default": "\"\""
204
+ },
205
+ {
206
+ "name": "placeholder",
207
+ "attribute": "placeholder",
208
+ "description": "Set placeholder text",
209
+ "type": "string",
210
+ "default": "\"\""
211
+ },
212
+ {
213
+ "name": "readonly",
214
+ "attribute": "readonly",
215
+ "description": "Set readonly state",
216
+ "type": "boolean",
217
+ "default": "false"
218
+ },
219
+ {
220
+ "name": "transparent",
221
+ "attribute": "transparent",
222
+ "description": "Disables all other states and border/background styles.",
223
+ "type": "boolean",
224
+ "default": "false"
225
+ },
226
+ {
227
+ "name": "warning",
228
+ "attribute": "warning",
229
+ "description": "Set warning state",
230
+ "type": "boolean",
231
+ "default": "false"
232
+ }
233
+ ],
234
+ "events": [
235
+ {
236
+ "name": "value-changed",
237
+ "description": "Dispatched when value changes"
238
+ },
239
+ {
240
+ "name": "error-changed",
241
+ "description": "Dispatched when error state changes"
242
+ },
243
+ {
244
+ "name": "icon-click",
245
+ "description": "Dispatched when icon is clicked"
246
+ }
247
+ ],
248
+ "methods": [
249
+ {
250
+ "name": "willUpdate",
251
+ "description": "Updates the element",
252
+ "params": [
253
+ {
254
+ "name": "changedProperties",
255
+ "description": "Properties that has changed",
256
+ "type": "PropertyValues"
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ "name": "shouldSyncInputValue",
262
+ "description": "",
263
+ "params": [
264
+ {
265
+ "name": "changedProperties",
266
+ "type": "PropertyValues"
267
+ }
268
+ ]
269
+ },
270
+ {
271
+ "name": "syncInputValue",
272
+ "description": "",
273
+ "params": [
274
+ {
275
+ "name": "changedProperties",
276
+ "type": "PropertyValues"
277
+ }
278
+ ]
279
+ },
280
+ {
281
+ "name": "shouldValidateInput",
282
+ "description": "",
283
+ "params": [
284
+ {
285
+ "name": "changedProperties",
286
+ "type": "PropertyValues"
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ "name": "validateInput",
292
+ "description": "",
293
+ "params": []
294
+ },
295
+ {
296
+ "name": "isValidValue",
297
+ "description": "",
298
+ "params": [
299
+ {
300
+ "name": "value"
301
+ }
302
+ ]
303
+ },
304
+ {
305
+ "name": "warnInvalidValue",
306
+ "description": "",
307
+ "params": [
308
+ {
309
+ "name": "value"
310
+ }
311
+ ]
312
+ },
313
+ {
314
+ "name": "setValueAndNotify",
315
+ "description": "",
316
+ "params": [
317
+ {
318
+ "name": "value"
319
+ }
320
+ ]
321
+ },
322
+ {
323
+ "name": "checkValidity",
324
+ "description": "Returns true if an input element contains valid data.",
325
+ "params": []
326
+ },
327
+ {
328
+ "name": "reportValidity",
329
+ "description": "Validate input. Mark as error if input is invalid",
330
+ "params": []
331
+ },
332
+ {
333
+ "name": "onPossibleValueChange",
334
+ "description": "",
335
+ "params": [
336
+ {
337
+ "name": "event",
338
+ "type": "InputEvent"
339
+ }
340
+ ]
341
+ }
342
+ ]
343
+ }
344
+ ]
345
+ }
@@ -0,0 +1,61 @@
1
+ # ef-datetime-field
2
+
3
+ A form control element for datetime input.
4
+
5
+ ## Attributes
6
+
7
+ | Attribute | Type | Description |
8
+ |-------------------|-----------|----------------------------------------|
9
+ | `icon-has-action` | `boolean` | Specify when icon need to be clickable |
10
+ | `maxlength` | `number` | Set character max limit |
11
+ | `minlength` | `number` | Set character min limit |
12
+
13
+ ## Properties
14
+
15
+ | Property | Attribute | Type | Default | Description |
16
+ |-------------------------------|-------------------|------------------|---------|--------------------------------------------------|
17
+ | `amPm` | `am-pm` | `boolean` | false | Overrides 12hr time display format |
18
+ | `decorateInputMap (readonly)` | | | | |
19
+ | `disabled` | `disabled` | `boolean` | false | Set disabled state |
20
+ | `error` | `error` | `boolean` | false | Set error state |
21
+ | `formatOptions` | | | null | Set the datetime format options based on<br />https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat<br />`formatOptions` overrides `timepicker` and `showSeconds` properties.<br />Note: time-zone is not supported |
22
+ | `icon` | `icon` | `string \| null` | null | Specify icon to display in input. Value can be icon name |
23
+ | `iconHasAction` | `icon-has-action` | `boolean` | false | Specify when icon need to be clickable |
24
+ | `max` | `max` | `string \| null` | null | Set maximum date.<br />This value must follow the `format` and be greater<br />than or equal to the value of the `min` attribute |
25
+ | `maxLength` | | `number \| null` | null | Set character max limit |
26
+ | `min` | `min` | `string \| null` | null | Set minimum date.<br />This value must follow the `format` and be less<br />than or equal to the value of the `max` attribute |
27
+ | `minLength` | | `number \| null` | null | Set character min limit |
28
+ | `pattern` | | `string` | "" | Set regular expression for input validation |
29
+ | `placeholder` | `placeholder` | `string` | "" | Set placeholder text |
30
+ | `readonly` | `readonly` | `boolean` | false | Set readonly state |
31
+ | `showSeconds` | `show-seconds` | `boolean` | false | Toggle to display the seconds |
32
+ | `timepicker` | `timepicker` | `boolean` | false | Toggle to display the time picker |
33
+ | `transparent` | `transparent` | `boolean` | false | Disables all other states and border/background styles. |
34
+ | `value` | `value` | `string` | "" | Current date time value |
35
+ | `valueAsDate` | | | | Returns the value of the element, interpreted as Date |
36
+ | `valueAsNumber` | | `number` | | Returns the value of the element, interpreted as double number |
37
+ | `warning` | `warning` | `boolean` | false | Set warning state |
38
+
39
+ ## Methods
40
+
41
+ | Method | Type | Description |
42
+ |-------------------------|-------------------------------------------------|--------------------------------------------------|
43
+ | `checkValidity` | `(): boolean` | Returns true if an input element contains valid data. |
44
+ | `isValidValue` | `(value: string): boolean` | |
45
+ | `onPossibleValueChange` | `(event: any): void` | |
46
+ | `reportValidity` | `(): boolean` | Validate input. Mark as error if input is invalid |
47
+ | `setValueAndNotify` | `(value: string): void` | |
48
+ | `shouldSyncInputValue` | `(changedProperties: any): boolean` | |
49
+ | `shouldValidateInput` | `(changedProperties: any): boolean` | |
50
+ | `syncInputValue` | `{ (changedProperties: any): void; (): void; }` | |
51
+ | `validateInput` | `(): void` | |
52
+ | `warnInvalidValue` | `(value: string): void` | |
53
+ | `willUpdate` | `(changedProperties: any): void` | Updates the element<br /><br />**changedProperties**: Properties that has changed |
54
+
55
+ ## Events
56
+
57
+ | Event | Description |
58
+ |-----------------|-------------------------------------|
59
+ | `error-changed` | Dispatched when error state changes |
60
+ | `icon-click` | Dispatched when icon is clicked |
61
+ | `value-changed` | Dispatched when value changes |