@refinitiv-ui/elements 5.10.1 → 5.12.0-alpha.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 (507) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +4 -4
  3. package/lib/list/custom-elements.json +13 -0
  4. package/lib/list/custom-elements.md +10 -9
  5. package/package.json +25 -293
  6. package/lib/accordion/index.d.ts +0 -76
  7. package/lib/accordion/index.js +0 -136
  8. package/lib/accordion/themes/halo/dark/index.js +0 -3
  9. package/lib/accordion/themes/halo/light/index.js +0 -3
  10. package/lib/accordion/themes/solar/charcoal/index.js +0 -3
  11. package/lib/accordion/themes/solar/pearl/index.js +0 -3
  12. package/lib/appstate-bar/index.d.ts +0 -65
  13. package/lib/appstate-bar/index.js +0 -100
  14. package/lib/appstate-bar/themes/halo/dark/index.js +0 -3
  15. package/lib/appstate-bar/themes/halo/light/index.js +0 -3
  16. package/lib/appstate-bar/themes/solar/charcoal/index.js +0 -3
  17. package/lib/appstate-bar/themes/solar/pearl/index.js +0 -3
  18. package/lib/autosuggest/helpers/types.d.ts +0 -54
  19. package/lib/autosuggest/helpers/types.js +0 -1
  20. package/lib/autosuggest/helpers/utils.d.ts +0 -39
  21. package/lib/autosuggest/helpers/utils.js +0 -75
  22. package/lib/autosuggest/index.d.ts +0 -538
  23. package/lib/autosuggest/index.js +0 -1255
  24. package/lib/autosuggest/themes/halo/dark/index.js +0 -5
  25. package/lib/autosuggest/themes/halo/light/index.js +0 -5
  26. package/lib/autosuggest/themes/solar/charcoal/index.js +0 -5
  27. package/lib/autosuggest/themes/solar/pearl/index.js +0 -5
  28. package/lib/button/index.d.ts +0 -132
  29. package/lib/button/index.js +0 -223
  30. package/lib/button/themes/halo/dark/index.js +0 -3
  31. package/lib/button/themes/halo/light/index.js +0 -3
  32. package/lib/button/themes/solar/charcoal/index.js +0 -3
  33. package/lib/button/themes/solar/pearl/index.js +0 -3
  34. package/lib/button-bar/index.d.ts +0 -76
  35. package/lib/button-bar/index.js +0 -155
  36. package/lib/button-bar/themes/halo/dark/index.js +0 -3
  37. package/lib/button-bar/themes/halo/light/index.js +0 -3
  38. package/lib/button-bar/themes/solar/charcoal/index.js +0 -3
  39. package/lib/button-bar/themes/solar/pearl/index.js +0 -3
  40. package/lib/calendar/constants.d.ts +0 -26
  41. package/lib/calendar/constants.js +0 -28
  42. package/lib/calendar/index.d.ts +0 -412
  43. package/lib/calendar/index.js +0 -1274
  44. package/lib/calendar/locales.d.ts +0 -1
  45. package/lib/calendar/locales.js +0 -41
  46. package/lib/calendar/themes/halo/dark/index.js +0 -3
  47. package/lib/calendar/themes/halo/light/index.js +0 -3
  48. package/lib/calendar/themes/solar/charcoal/index.js +0 -3
  49. package/lib/calendar/themes/solar/pearl/index.js +0 -3
  50. package/lib/calendar/types.d.ts +0 -32
  51. package/lib/calendar/types.js +0 -1
  52. package/lib/calendar/utils.d.ts +0 -42
  53. package/lib/calendar/utils.js +0 -120
  54. package/lib/canvas/index.d.ts +0 -101
  55. package/lib/canvas/index.js +0 -173
  56. package/lib/canvas/themes/halo/dark/index.js +0 -2
  57. package/lib/canvas/themes/halo/light/index.js +0 -2
  58. package/lib/canvas/themes/solar/charcoal/index.js +0 -2
  59. package/lib/canvas/themes/solar/pearl/index.js +0 -2
  60. package/lib/card/helpers/types.d.ts +0 -12
  61. package/lib/card/helpers/types.js +0 -1
  62. package/lib/card/index.d.ts +0 -142
  63. package/lib/card/index.js +0 -248
  64. package/lib/card/themes/halo/dark/index.js +0 -5
  65. package/lib/card/themes/halo/light/index.js +0 -5
  66. package/lib/card/themes/solar/charcoal/index.js +0 -5
  67. package/lib/card/themes/solar/pearl/index.js +0 -5
  68. package/lib/chart/helpers/index.d.ts +0 -2
  69. package/lib/chart/helpers/index.js +0 -2
  70. package/lib/chart/helpers/legend.d.ts +0 -5
  71. package/lib/chart/helpers/legend.js +0 -78
  72. package/lib/chart/helpers/merge.d.ts +0 -15
  73. package/lib/chart/helpers/merge.js +0 -28
  74. package/lib/chart/helpers/types.d.ts +0 -69
  75. package/lib/chart/helpers/types.js +0 -1
  76. package/lib/chart/index.d.ts +0 -187
  77. package/lib/chart/index.js +0 -491
  78. package/lib/chart/plugins/doughnut-center-label.d.ts +0 -3
  79. package/lib/chart/plugins/doughnut-center-label.js +0 -196
  80. package/lib/chart/themes/halo/dark/index.js +0 -4
  81. package/lib/chart/themes/halo/light/index.js +0 -4
  82. package/lib/chart/themes/solar/charcoal/index.js +0 -4
  83. package/lib/chart/themes/solar/pearl/index.js +0 -4
  84. package/lib/checkbox/index.d.ts +0 -97
  85. package/lib/checkbox/index.js +0 -194
  86. package/lib/checkbox/themes/halo/dark/index.js +0 -4
  87. package/lib/checkbox/themes/halo/light/index.js +0 -4
  88. package/lib/checkbox/themes/solar/charcoal/index.js +0 -4
  89. package/lib/checkbox/themes/solar/pearl/index.js +0 -4
  90. package/lib/clock/index.d.ts +0 -321
  91. package/lib/clock/index.js +0 -583
  92. package/lib/clock/themes/halo/dark/index.js +0 -2
  93. package/lib/clock/themes/halo/light/index.js +0 -2
  94. package/lib/clock/themes/solar/charcoal/index.js +0 -2
  95. package/lib/clock/themes/solar/pearl/index.js +0 -2
  96. package/lib/clock/utils/TickManager.d.ts +0 -14
  97. package/lib/clock/utils/TickManager.js +0 -66
  98. package/lib/clock/utils/timestamps.d.ts +0 -6
  99. package/lib/clock/utils/timestamps.js +0 -6
  100. package/lib/collapse/index.d.ts +0 -119
  101. package/lib/collapse/index.js +0 -197
  102. package/lib/collapse/themes/halo/dark/index.js +0 -5
  103. package/lib/collapse/themes/halo/light/index.js +0 -5
  104. package/lib/collapse/themes/solar/charcoal/index.js +0 -5
  105. package/lib/collapse/themes/solar/pearl/index.js +0 -5
  106. package/lib/color-dialog/elements/color-palettes.d.ts +0 -52
  107. package/lib/color-dialog/elements/color-palettes.js +0 -101
  108. package/lib/color-dialog/elements/grayscale-palettes.d.ts +0 -67
  109. package/lib/color-dialog/elements/grayscale-palettes.js +0 -161
  110. package/lib/color-dialog/elements/palettes.d.ts +0 -65
  111. package/lib/color-dialog/elements/palettes.js +0 -132
  112. package/lib/color-dialog/helpers/color-helpers.d.ts +0 -16
  113. package/lib/color-dialog/helpers/color-helpers.js +0 -161
  114. package/lib/color-dialog/helpers/value-model.d.ts +0 -75
  115. package/lib/color-dialog/helpers/value-model.js +0 -141
  116. package/lib/color-dialog/index.d.ts +0 -232
  117. package/lib/color-dialog/index.js +0 -459
  118. package/lib/color-dialog/themes/halo/dark/index.js +0 -7
  119. package/lib/color-dialog/themes/halo/light/index.js +0 -7
  120. package/lib/color-dialog/themes/solar/charcoal/index.js +0 -7
  121. package/lib/color-dialog/themes/solar/pearl/index.js +0 -7
  122. package/lib/combo-box/helpers/filter.d.ts +0 -10
  123. package/lib/combo-box/helpers/filter.js +0 -29
  124. package/lib/combo-box/helpers/keyboard-event.d.ts +0 -17
  125. package/lib/combo-box/helpers/keyboard-event.js +0 -19
  126. package/lib/combo-box/helpers/renderer.d.ts +0 -8
  127. package/lib/combo-box/helpers/renderer.js +0 -24
  128. package/lib/combo-box/helpers/types.d.ts +0 -11
  129. package/lib/combo-box/helpers/types.js +0 -1
  130. package/lib/combo-box/index.d.ts +0 -551
  131. package/lib/combo-box/index.js +0 -1183
  132. package/lib/combo-box/themes/halo/dark/index.js +0 -7
  133. package/lib/combo-box/themes/halo/light/index.js +0 -7
  134. package/lib/combo-box/themes/solar/charcoal/index.js +0 -7
  135. package/lib/combo-box/themes/solar/pearl/index.js +0 -7
  136. package/lib/counter/index.d.ts +0 -91
  137. package/lib/counter/index.js +0 -154
  138. package/lib/counter/themes/halo/dark/index.js +0 -3
  139. package/lib/counter/themes/halo/light/index.js +0 -3
  140. package/lib/counter/themes/solar/charcoal/index.js +0 -3
  141. package/lib/counter/themes/solar/pearl/index.js +0 -3
  142. package/lib/counter/utils.d.ts +0 -13
  143. package/lib/counter/utils.js +0 -52
  144. package/lib/datetime-picker/index.d.ts +0 -509
  145. package/lib/datetime-picker/index.js +0 -1175
  146. package/lib/datetime-picker/locales.d.ts +0 -8
  147. package/lib/datetime-picker/locales.js +0 -57
  148. package/lib/datetime-picker/themes/halo/dark/index.js +0 -7
  149. package/lib/datetime-picker/themes/halo/light/index.js +0 -7
  150. package/lib/datetime-picker/themes/solar/charcoal/index.js +0 -7
  151. package/lib/datetime-picker/themes/solar/pearl/index.js +0 -7
  152. package/lib/datetime-picker/types.d.ts +0 -3
  153. package/lib/datetime-picker/types.js +0 -1
  154. package/lib/datetime-picker/utils.d.ts +0 -55
  155. package/lib/datetime-picker/utils.js +0 -92
  156. package/lib/dialog/draggable-element.d.ts +0 -14
  157. package/lib/dialog/draggable-element.js +0 -221
  158. package/lib/dialog/index.d.ts +0 -196
  159. package/lib/dialog/index.js +0 -328
  160. package/lib/dialog/themes/halo/dark/index.js +0 -7
  161. package/lib/dialog/themes/halo/light/index.js +0 -7
  162. package/lib/dialog/themes/solar/charcoal/index.js +0 -7
  163. package/lib/dialog/themes/solar/pearl/index.js +0 -7
  164. package/lib/email-field/index.d.ts +0 -80
  165. package/lib/email-field/index.js +0 -86
  166. package/lib/email-field/themes/halo/dark/index.js +0 -3
  167. package/lib/email-field/themes/halo/light/index.js +0 -3
  168. package/lib/email-field/themes/solar/charcoal/index.js +0 -3
  169. package/lib/email-field/themes/solar/pearl/index.js +0 -3
  170. package/lib/events.d.ts +0 -121
  171. package/lib/events.js +0 -1
  172. package/lib/flag/index.d.ts +0 -96
  173. package/lib/flag/index.js +0 -168
  174. package/lib/flag/themes/halo/dark/index.js +0 -2
  175. package/lib/flag/themes/halo/light/index.js +0 -2
  176. package/lib/flag/themes/solar/charcoal/index.js +0 -2
  177. package/lib/flag/themes/solar/pearl/index.js +0 -2
  178. package/lib/flag/utils/FlagLoader.d.ts +0 -47
  179. package/lib/flag/utils/FlagLoader.js +0 -86
  180. package/lib/header/index.d.ts +0 -46
  181. package/lib/header/index.js +0 -73
  182. package/lib/header/themes/halo/dark/index.js +0 -2
  183. package/lib/header/themes/halo/light/index.js +0 -2
  184. package/lib/header/themes/solar/charcoal/index.js +0 -2
  185. package/lib/header/themes/solar/pearl/index.js +0 -2
  186. package/lib/heatmap/helpers/color.d.ts +0 -30
  187. package/lib/heatmap/helpers/color.js +0 -68
  188. package/lib/heatmap/helpers/text.d.ts +0 -26
  189. package/lib/heatmap/helpers/text.js +0 -91
  190. package/lib/heatmap/helpers/track.d.ts +0 -102
  191. package/lib/heatmap/helpers/track.js +0 -160
  192. package/lib/heatmap/helpers/types.d.ts +0 -40
  193. package/lib/heatmap/helpers/types.js +0 -1
  194. package/lib/heatmap/index.d.ts +0 -453
  195. package/lib/heatmap/index.js +0 -1103
  196. package/lib/heatmap/themes/halo/dark/index.js +0 -4
  197. package/lib/heatmap/themes/halo/light/index.js +0 -4
  198. package/lib/heatmap/themes/solar/charcoal/index.js +0 -4
  199. package/lib/heatmap/themes/solar/pearl/index.js +0 -4
  200. package/lib/icon/index.d.ts +0 -90
  201. package/lib/icon/index.js +0 -171
  202. package/lib/icon/themes/halo/dark/index.js +0 -2
  203. package/lib/icon/themes/halo/light/index.js +0 -2
  204. package/lib/icon/themes/solar/charcoal/index.js +0 -2
  205. package/lib/icon/themes/solar/pearl/index.js +0 -2
  206. package/lib/icon/utils/IconLoader.d.ts +0 -52
  207. package/lib/icon/utils/IconLoader.js +0 -93
  208. package/lib/index.d.ts +0 -3
  209. package/lib/index.js +0 -3
  210. package/lib/interactive-chart/helpers/merge.d.ts +0 -15
  211. package/lib/interactive-chart/helpers/merge.js +0 -28
  212. package/lib/interactive-chart/helpers/types.d.ts +0 -45
  213. package/lib/interactive-chart/helpers/types.js +0 -6
  214. package/lib/interactive-chart/index.d.ts +0 -383
  215. package/lib/interactive-chart/index.js +0 -1093
  216. package/lib/interactive-chart/themes/halo/dark/index.js +0 -3
  217. package/lib/interactive-chart/themes/halo/light/index.js +0 -3
  218. package/lib/interactive-chart/themes/solar/charcoal/index.js +0 -3
  219. package/lib/interactive-chart/themes/solar/pearl/index.js +0 -3
  220. package/lib/item/helpers/types.d.ts +0 -57
  221. package/lib/item/helpers/types.js +0 -1
  222. package/lib/item/index.d.ts +0 -159
  223. package/lib/item/index.js +0 -272
  224. package/lib/item/themes/halo/dark/index.js +0 -4
  225. package/lib/item/themes/halo/light/index.js +0 -4
  226. package/lib/item/themes/solar/charcoal/index.js +0 -4
  227. package/lib/item/themes/solar/pearl/index.js +0 -4
  228. package/lib/label/index.d.ts +0 -102
  229. package/lib/label/index.js +0 -245
  230. package/lib/label/themes/halo/dark/index.js +0 -3
  231. package/lib/label/themes/halo/light/index.js +0 -3
  232. package/lib/label/themes/solar/charcoal/index.js +0 -3
  233. package/lib/label/themes/solar/pearl/index.js +0 -3
  234. package/lib/layout/index.d.ts +0 -107
  235. package/lib/layout/index.js +0 -212
  236. package/lib/layout/themes/halo/dark/index.js +0 -2
  237. package/lib/layout/themes/halo/light/index.js +0 -2
  238. package/lib/layout/themes/solar/charcoal/index.js +0 -2
  239. package/lib/layout/themes/solar/pearl/index.js +0 -2
  240. package/lib/led-gauge/index.d.ts +0 -144
  241. package/lib/led-gauge/index.js +0 -438
  242. package/lib/led-gauge/themes/halo/dark/index.js +0 -3
  243. package/lib/led-gauge/themes/halo/light/index.js +0 -3
  244. package/lib/led-gauge/themes/solar/charcoal/index.js +0 -3
  245. package/lib/led-gauge/themes/solar/pearl/index.js +0 -3
  246. package/lib/list/extensible-function.d.ts +0 -8
  247. package/lib/list/extensible-function.js +0 -13
  248. package/lib/list/helpers/list-renderer.d.ts +0 -9
  249. package/lib/list/helpers/list-renderer.js +0 -37
  250. package/lib/list/helpers/types.d.ts +0 -3
  251. package/lib/list/helpers/types.js +0 -1
  252. package/lib/list/index.d.ts +0 -309
  253. package/lib/list/index.js +0 -633
  254. package/lib/list/renderer.d.ts +0 -36
  255. package/lib/list/renderer.js +0 -9
  256. package/lib/list/themes/halo/dark/index.js +0 -3
  257. package/lib/list/themes/halo/light/index.js +0 -3
  258. package/lib/list/themes/solar/charcoal/index.js +0 -3
  259. package/lib/list/themes/solar/pearl/index.js +0 -3
  260. package/lib/loader/index.d.ts +0 -41
  261. package/lib/loader/index.js +0 -61
  262. package/lib/loader/themes/halo/dark/index.js +0 -2
  263. package/lib/loader/themes/halo/light/index.js +0 -2
  264. package/lib/loader/themes/solar/charcoal/index.js +0 -2
  265. package/lib/loader/themes/solar/pearl/index.js +0 -2
  266. package/lib/multi-input/helpers/types.d.ts +0 -11
  267. package/lib/multi-input/helpers/types.js +0 -1
  268. package/lib/multi-input/index.d.ts +0 -301
  269. package/lib/multi-input/index.js +0 -594
  270. package/lib/multi-input/themes/halo/dark/index.js +0 -4
  271. package/lib/multi-input/themes/halo/light/index.js +0 -4
  272. package/lib/multi-input/themes/solar/charcoal/index.js +0 -4
  273. package/lib/multi-input/themes/solar/pearl/index.js +0 -4
  274. package/lib/notification/elements/notification-tray.d.ts +0 -97
  275. package/lib/notification/elements/notification-tray.js +0 -167
  276. package/lib/notification/elements/notification.d.ts +0 -90
  277. package/lib/notification/elements/notification.js +0 -154
  278. package/lib/notification/helpers/status.d.ts +0 -30
  279. package/lib/notification/helpers/status.js +0 -130
  280. package/lib/notification/helpers/types.d.ts +0 -10
  281. package/lib/notification/helpers/types.js +0 -1
  282. package/lib/notification/index.d.ts +0 -2
  283. package/lib/notification/index.js +0 -2
  284. package/lib/notification/themes/halo/dark/index.js +0 -5
  285. package/lib/notification/themes/halo/light/index.js +0 -5
  286. package/lib/notification/themes/solar/charcoal/index.js +0 -5
  287. package/lib/notification/themes/solar/pearl/index.js +0 -5
  288. package/lib/number-field/index.d.ts +0 -339
  289. package/lib/number-field/index.js +0 -740
  290. package/lib/number-field/themes/halo/dark/index.js +0 -3
  291. package/lib/number-field/themes/halo/light/index.js +0 -3
  292. package/lib/number-field/themes/solar/charcoal/index.js +0 -3
  293. package/lib/number-field/themes/solar/pearl/index.js +0 -3
  294. package/lib/overlay/elements/overlay-backdrop.d.ts +0 -46
  295. package/lib/overlay/elements/overlay-backdrop.js +0 -64
  296. package/lib/overlay/elements/overlay-viewport.d.ts +0 -40
  297. package/lib/overlay/elements/overlay-viewport.js +0 -52
  298. package/lib/overlay/elements/overlay.d.ts +0 -408
  299. package/lib/overlay/elements/overlay.js +0 -1426
  300. package/lib/overlay/helpers/functions.d.ts +0 -13
  301. package/lib/overlay/helpers/functions.js +0 -16
  302. package/lib/overlay/helpers/types.d.ts +0 -97
  303. package/lib/overlay/helpers/types.js +0 -16
  304. package/lib/overlay/index.d.ts +0 -2
  305. package/lib/overlay/index.js +0 -1
  306. package/lib/overlay/managers/backdrop-manager.d.ts +0 -45
  307. package/lib/overlay/managers/backdrop-manager.js +0 -96
  308. package/lib/overlay/managers/close-manager.d.ts +0 -54
  309. package/lib/overlay/managers/close-manager.js +0 -138
  310. package/lib/overlay/managers/focus-manager.d.ts +0 -71
  311. package/lib/overlay/managers/focus-manager.js +0 -228
  312. package/lib/overlay/managers/interaction-lock-manager.d.ts +0 -138
  313. package/lib/overlay/managers/interaction-lock-manager.js +0 -375
  314. package/lib/overlay/managers/viewport-manager.d.ts +0 -93
  315. package/lib/overlay/managers/viewport-manager.js +0 -211
  316. package/lib/overlay/managers/zindex-manager.d.ts +0 -80
  317. package/lib/overlay/managers/zindex-manager.js +0 -195
  318. package/lib/overlay/themes/halo/dark/index.js +0 -4
  319. package/lib/overlay/themes/halo/light/index.js +0 -4
  320. package/lib/overlay/themes/solar/charcoal/index.js +0 -4
  321. package/lib/overlay/themes/solar/pearl/index.js +0 -4
  322. package/lib/overlay-menu/helpers/types.d.ts +0 -8
  323. package/lib/overlay-menu/helpers/types.js +0 -1
  324. package/lib/overlay-menu/index.d.ts +0 -387
  325. package/lib/overlay-menu/index.js +0 -935
  326. package/lib/overlay-menu/managers/menu-manager.d.ts +0 -98
  327. package/lib/overlay-menu/managers/menu-manager.js +0 -240
  328. package/lib/overlay-menu/themes/halo/dark/index.js +0 -5
  329. package/lib/overlay-menu/themes/halo/light/index.js +0 -5
  330. package/lib/overlay-menu/themes/solar/charcoal/index.js +0 -5
  331. package/lib/overlay-menu/themes/solar/pearl/index.js +0 -5
  332. package/lib/pagination/index.d.ts +0 -275
  333. package/lib/pagination/index.js +0 -552
  334. package/lib/pagination/themes/halo/dark/index.js +0 -6
  335. package/lib/pagination/themes/halo/light/index.js +0 -6
  336. package/lib/pagination/themes/solar/charcoal/index.js +0 -6
  337. package/lib/pagination/themes/solar/pearl/index.js +0 -6
  338. package/lib/panel/index.d.ts +0 -48
  339. package/lib/panel/index.js +0 -74
  340. package/lib/panel/themes/halo/dark/index.js +0 -2
  341. package/lib/panel/themes/halo/light/index.js +0 -2
  342. package/lib/panel/themes/solar/charcoal/index.js +0 -2
  343. package/lib/panel/themes/solar/pearl/index.js +0 -2
  344. package/lib/password-field/index.d.ts +0 -89
  345. package/lib/password-field/index.js +0 -112
  346. package/lib/password-field/themes/halo/dark/index.js +0 -3
  347. package/lib/password-field/themes/halo/light/index.js +0 -3
  348. package/lib/password-field/themes/solar/charcoal/index.js +0 -3
  349. package/lib/password-field/themes/solar/pearl/index.js +0 -3
  350. package/lib/pill/index.d.ts +0 -97
  351. package/lib/pill/index.js +0 -160
  352. package/lib/pill/themes/halo/dark/index.js +0 -3
  353. package/lib/pill/themes/halo/light/index.js +0 -3
  354. package/lib/pill/themes/solar/charcoal/index.js +0 -3
  355. package/lib/pill/themes/solar/pearl/index.js +0 -3
  356. package/lib/progress-bar/index.d.ts +0 -82
  357. package/lib/progress-bar/index.js +0 -157
  358. package/lib/progress-bar/themes/halo/dark/index.js +0 -2
  359. package/lib/progress-bar/themes/halo/light/index.js +0 -2
  360. package/lib/progress-bar/themes/solar/charcoal/index.js +0 -2
  361. package/lib/progress-bar/themes/solar/pearl/index.js +0 -2
  362. package/lib/radio-button/index.d.ts +0 -123
  363. package/lib/radio-button/index.js +0 -261
  364. package/lib/radio-button/radio-button-registry.d.ts +0 -22
  365. package/lib/radio-button/radio-button-registry.js +0 -93
  366. package/lib/radio-button/themes/halo/dark/index.js +0 -3
  367. package/lib/radio-button/themes/halo/light/index.js +0 -3
  368. package/lib/radio-button/themes/solar/charcoal/index.js +0 -3
  369. package/lib/radio-button/themes/solar/pearl/index.js +0 -3
  370. package/lib/rating/index.d.ts +0 -91
  371. package/lib/rating/index.js +0 -157
  372. package/lib/rating/themes/halo/dark/index.js +0 -2
  373. package/lib/rating/themes/halo/light/index.js +0 -2
  374. package/lib/rating/themes/solar/charcoal/index.js +0 -2
  375. package/lib/rating/themes/solar/pearl/index.js +0 -2
  376. package/lib/search-field/index.d.ts +0 -77
  377. package/lib/search-field/index.js +0 -84
  378. package/lib/search-field/themes/halo/dark/index.js +0 -3
  379. package/lib/search-field/themes/halo/light/index.js +0 -3
  380. package/lib/search-field/themes/solar/charcoal/index.js +0 -3
  381. package/lib/search-field/themes/solar/pearl/index.js +0 -3
  382. package/lib/select/helpers/types.d.ts +0 -3
  383. package/lib/select/helpers/types.js +0 -1
  384. package/lib/select/index.d.ts +0 -396
  385. package/lib/select/index.js +0 -981
  386. package/lib/select/themes/halo/dark/index.js +0 -5
  387. package/lib/select/themes/halo/light/index.js +0 -5
  388. package/lib/select/themes/solar/charcoal/index.js +0 -5
  389. package/lib/select/themes/solar/pearl/index.js +0 -5
  390. package/lib/sidebar-layout/index.d.ts +0 -70
  391. package/lib/sidebar-layout/index.js +0 -134
  392. package/lib/sidebar-layout/themes/halo/dark/index.js +0 -3
  393. package/lib/sidebar-layout/themes/halo/light/index.js +0 -3
  394. package/lib/sidebar-layout/themes/solar/charcoal/index.js +0 -3
  395. package/lib/sidebar-layout/themes/solar/pearl/index.js +0 -3
  396. package/lib/slider/index.d.ts +0 -409
  397. package/lib/slider/index.js +0 -1187
  398. package/lib/slider/themes/halo/dark/index.js +0 -3
  399. package/lib/slider/themes/halo/light/index.js +0 -3
  400. package/lib/slider/themes/solar/charcoal/index.js +0 -3
  401. package/lib/slider/themes/solar/pearl/index.js +0 -3
  402. package/lib/sparkline/index.d.ts +0 -109
  403. package/lib/sparkline/index.js +0 -188
  404. package/lib/sparkline/themes/halo/dark/index.js +0 -2
  405. package/lib/sparkline/themes/halo/light/index.js +0 -2
  406. package/lib/sparkline/themes/solar/charcoal/index.js +0 -2
  407. package/lib/sparkline/themes/solar/pearl/index.js +0 -2
  408. package/lib/swing-gauge/const.d.ts +0 -22
  409. package/lib/swing-gauge/const.js +0 -26
  410. package/lib/swing-gauge/helpers.d.ts +0 -8
  411. package/lib/swing-gauge/helpers.js +0 -105
  412. package/lib/swing-gauge/index.d.ts +0 -296
  413. package/lib/swing-gauge/index.js +0 -764
  414. package/lib/swing-gauge/themes/halo/dark/index.js +0 -3
  415. package/lib/swing-gauge/themes/halo/light/index.js +0 -3
  416. package/lib/swing-gauge/themes/solar/charcoal/index.js +0 -3
  417. package/lib/swing-gauge/themes/solar/pearl/index.js +0 -3
  418. package/lib/swing-gauge/types.d.ts +0 -34
  419. package/lib/swing-gauge/types.js +0 -1
  420. package/lib/tab/index.d.ts +0 -118
  421. package/lib/tab/index.js +0 -208
  422. package/lib/tab/themes/halo/dark/index.js +0 -4
  423. package/lib/tab/themes/halo/light/index.js +0 -4
  424. package/lib/tab/themes/solar/charcoal/index.js +0 -4
  425. package/lib/tab/themes/solar/pearl/index.js +0 -4
  426. package/lib/tab-bar/helpers/animate.d.ts +0 -16
  427. package/lib/tab-bar/helpers/animate.js +0 -53
  428. package/lib/tab-bar/index.d.ts +0 -108
  429. package/lib/tab-bar/index.js +0 -218
  430. package/lib/tab-bar/themes/halo/dark/index.js +0 -4
  431. package/lib/tab-bar/themes/halo/light/index.js +0 -4
  432. package/lib/tab-bar/themes/solar/charcoal/index.js +0 -4
  433. package/lib/tab-bar/themes/solar/pearl/index.js +0 -4
  434. package/lib/text-field/index.d.ts +0 -151
  435. package/lib/text-field/index.js +0 -260
  436. package/lib/text-field/themes/halo/dark/index.js +0 -3
  437. package/lib/text-field/themes/halo/light/index.js +0 -3
  438. package/lib/text-field/themes/solar/charcoal/index.js +0 -3
  439. package/lib/text-field/themes/solar/pearl/index.js +0 -3
  440. package/lib/time-picker/index.d.ts +0 -412
  441. package/lib/time-picker/index.js +0 -898
  442. package/lib/time-picker/themes/halo/dark/index.js +0 -4
  443. package/lib/time-picker/themes/halo/light/index.js +0 -4
  444. package/lib/time-picker/themes/solar/charcoal/index.js +0 -4
  445. package/lib/time-picker/themes/solar/pearl/index.js +0 -4
  446. package/lib/toggle/index.d.ts +0 -87
  447. package/lib/toggle/index.js +0 -153
  448. package/lib/toggle/themes/halo/dark/index.js +0 -2
  449. package/lib/toggle/themes/halo/light/index.js +0 -2
  450. package/lib/toggle/themes/solar/charcoal/index.js +0 -2
  451. package/lib/toggle/themes/solar/pearl/index.js +0 -2
  452. package/lib/tooltip/elements/title-tooltip.d.ts +0 -1
  453. package/lib/tooltip/elements/title-tooltip.js +0 -18
  454. package/lib/tooltip/elements/tooltip-element.d.ts +0 -21
  455. package/lib/tooltip/elements/tooltip-element.js +0 -54
  456. package/lib/tooltip/helpers/overflow-tooltip.d.ts +0 -9
  457. package/lib/tooltip/helpers/overflow-tooltip.js +0 -19
  458. package/lib/tooltip/helpers/renderer.d.ts +0 -8
  459. package/lib/tooltip/helpers/renderer.js +0 -11
  460. package/lib/tooltip/helpers/types.d.ts +0 -23
  461. package/lib/tooltip/helpers/types.js +0 -1
  462. package/lib/tooltip/index.d.ts +0 -232
  463. package/lib/tooltip/index.js +0 -477
  464. package/lib/tooltip/managers/tooltip-manager.d.ts +0 -15
  465. package/lib/tooltip/managers/tooltip-manager.js +0 -140
  466. package/lib/tooltip/themes/halo/dark/index.js +0 -3
  467. package/lib/tooltip/themes/halo/light/index.js +0 -3
  468. package/lib/tooltip/themes/solar/charcoal/index.js +0 -3
  469. package/lib/tooltip/themes/solar/pearl/index.js +0 -3
  470. package/lib/tornado-chart/elements/tornado-chart.d.ts +0 -78
  471. package/lib/tornado-chart/elements/tornado-chart.js +0 -122
  472. package/lib/tornado-chart/elements/tornado-item.d.ts +0 -110
  473. package/lib/tornado-chart/elements/tornado-item.js +0 -207
  474. package/lib/tornado-chart/index.d.ts +0 -2
  475. package/lib/tornado-chart/index.js +0 -2
  476. package/lib/tornado-chart/themes/halo/dark/index.js +0 -6
  477. package/lib/tornado-chart/themes/halo/light/index.js +0 -6
  478. package/lib/tornado-chart/themes/solar/charcoal/index.js +0 -6
  479. package/lib/tornado-chart/themes/solar/pearl/index.js +0 -6
  480. package/lib/tree/elements/tree-item.d.ts +0 -96
  481. package/lib/tree/elements/tree-item.js +0 -179
  482. package/lib/tree/elements/tree.d.ts +0 -202
  483. package/lib/tree/elements/tree.js +0 -413
  484. package/lib/tree/helpers/filter.d.ts +0 -8
  485. package/lib/tree/helpers/filter.js +0 -33
  486. package/lib/tree/helpers/renderer.d.ts +0 -5
  487. package/lib/tree/helpers/renderer.js +0 -33
  488. package/lib/tree/helpers/types.d.ts +0 -25
  489. package/lib/tree/helpers/types.js +0 -1
  490. package/lib/tree/index.d.ts +0 -4
  491. package/lib/tree/index.js +0 -3
  492. package/lib/tree/managers/tree-manager.d.ts +0 -248
  493. package/lib/tree/managers/tree-manager.js +0 -395
  494. package/lib/tree/themes/halo/dark/index.js +0 -7
  495. package/lib/tree/themes/halo/light/index.js +0 -7
  496. package/lib/tree/themes/solar/charcoal/index.js +0 -7
  497. package/lib/tree/themes/solar/pearl/index.js +0 -7
  498. package/lib/tree-select/helpers/types.d.ts +0 -4
  499. package/lib/tree-select/helpers/types.js +0 -1
  500. package/lib/tree-select/index.d.ts +0 -404
  501. package/lib/tree-select/index.js +0 -891
  502. package/lib/tree-select/themes/halo/dark/index.js +0 -11
  503. package/lib/tree-select/themes/halo/light/index.js +0 -11
  504. package/lib/tree-select/themes/solar/charcoal/index.js +0 -11
  505. package/lib/tree-select/themes/solar/pearl/index.js +0 -11
  506. package/lib/version.d.ts +0 -1
  507. package/lib/version.js +0 -1
@@ -1,1175 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { ControlElement, html, css, WarningNotice } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
5
- import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
6
- import { ifDefined } from '@refinitiv-ui/core/lib/directives/if-defined.js';
7
- import { VERSION } from '../version.js';
8
- import '../calendar/index.js';
9
- import '../icon/index.js';
10
- import '../overlay/index.js';
11
- import '../text-field/index.js';
12
- import '../time-picker/index.js';
13
- import { translate, getLocale, TranslatePropertyKey } from '@refinitiv-ui/translate';
14
- import { getDateFNSLocale } from './locales.js';
15
- import inputFormat from 'date-fns/esm/format/index.js';
16
- import inputParse from 'date-fns/esm/parse/index.js';
17
- import isValid from 'date-fns/esm/isValid/index.js';
18
- import { addMonths, subMonths, isAfter, isBefore, isValidDate, isValidDateTime, DateFormat, DateTimeFormat, parse, format } from '@refinitiv-ui/utils/lib/date.js';
19
- import { DateTimeSegment, formatToView, getCurrentTime } from './utils.js';
20
- import { preload } from '../icon/index.js';
21
- preload('calendar', 'down', 'left', 'right'); /* preload calendar icons for faster loading */
22
- const POPUP_POSITION = ['bottom-start', 'top-start', 'bottom-end', 'top-end', 'bottom-middle', 'top-middle'];
23
- const INPUT_FORMAT = {
24
- DATE: 'dd-MMM-yyyy',
25
- DATETIME: 'dd-MMM-yyyy HH:mm',
26
- DATETIME_AM_PM: 'dd-MMM-yyyy hh:mm aaa',
27
- DATETIME_SECONDS: 'dd-MMM-yyyy HH:mm:ss',
28
- DATETIME_SECONDS_AM_PM: 'dd-MMM-yyyy hh:mm:ss aaa'
29
- };
30
- /**
31
- * Control to pick date and time
32
- *
33
- * @fires opened-changed - Dispatched when when opened attribute changes internally
34
- * @fires value-changed - Dispatched when value changes
35
- * @fires error-changed - Dispatched when error state changes
36
- * @fires view-changed - Dispatched when internal view changes
37
- *
38
- * @attr {boolean} readonly - Set readonly state
39
- * @prop {boolean} [readonly=false] - Set readonly state
40
- *
41
- * @attr {boolean} disabled - Set disabled state
42
- * @prop {boolean} [disabled=false] - Set disabled state
43
- *
44
- * @slot header - Slot to add custom contents at the top of popup
45
- * @slot right - Slot to add custom contents at the right of popup
46
- * @slot footer - Slot to add custom contents at the bottom of popup
47
- * @slot left - Slot to add custom contents at the left of popup
48
- */
49
- let DatetimePicker = class DatetimePicker extends ControlElement {
50
- constructor() {
51
- super(...arguments);
52
- this.lazyRendered = false; /* speed up rendering by not populating popup window on first load */
53
- this.calendarValues = []; /* used to store date information for calendars */
54
- this.timepickerValues = []; /* used to store time information for timepickers */
55
- this.inputValues = []; /* used to formatted datetime value for inputs */
56
- this.inputSyncing = true; /* true when inputs and pickers are in sync. False while user types in input */
57
- this._min = '';
58
- this.minDate = '';
59
- this._max = '';
60
- this.maxDate = '';
61
- /**
62
- * Only enable weekdays
63
- */
64
- this.weekdaysOnly = false;
65
- /**
66
- * Only enable weekends
67
- */
68
- this.weekendsOnly = false;
69
- /**
70
- * Custom filter, used for enabling/disabling certain dates
71
- * @type {DatetimePickerFilter | null}
72
- */
73
- this.filter = null;
74
- /**
75
- * Set to switch to range select mode
76
- */
77
- this.range = false;
78
- this._values = []; /* list of values as passed by the user */
79
- this._segments = []; /* filtered and processed list of values */
80
- /**
81
- * Toggles 12hr time display
82
- */
83
- this.amPm = false;
84
- /**
85
- * Flag to show seconds time segment in display.
86
- * Seconds are automatically shown when `hh:mm:ss` time format is provided as a value.
87
- */
88
- this.showSeconds = false;
89
- this._placeholder = '';
90
- /**
91
- * Toggles the opened state of the list
92
- */
93
- this.opened = false;
94
- /**
95
- * Set state to error
96
- */
97
- this.error = false;
98
- /**
99
- * Set state to warning
100
- */
101
- this.warning = false;
102
- /**
103
- * Only open picker panel when calendar icon is clicked.
104
- * Clicking on the input will no longer open the picker.
105
- */
106
- this.inputTriggerDisabled = false;
107
- /**
108
- * Disable input part of the picker
109
- */
110
- this.inputDisabled = false;
111
- /**
112
- * Disable the popup
113
- */
114
- this.popupDisabled = false;
115
- this._format = '';
116
- /**
117
- * Toggle to display the time picker
118
- */
119
- this.timepicker = false;
120
- /**
121
- * Display two calendar pickers.
122
- * @type {"" | "consecutive" | "split"}
123
- */
124
- this.duplex = null;
125
- this._views = [];
126
- this._interimSegments = [];
127
- }
128
- /**
129
- * Element version number
130
- * @returns version number
131
- */
132
- static get version() {
133
- return VERSION;
134
- }
135
- /**
136
- * A `CSSResultGroup` that will be used
137
- * to style the host, slotted children
138
- * and the internal template of the element.
139
- * @return CSS template
140
- */
141
- static get styles() {
142
- return css `
143
- :host {
144
- display: inline-block;
145
- height: 48px;
146
- outline: none;
147
- cursor: text;
148
- }
149
- [part=input-wrapper] {
150
- display: flex;
151
- flex: 1;
152
- }
153
- [part=body] {
154
- display: flex;
155
- }
156
- [part=timepicker-wrapper] {
157
- display: flex;
158
- justify-content: space-between;
159
- }
160
- [part=timepicker-wrapper]:before,
161
- [part=timepicker-wrapper]:after {
162
- content: '';
163
- }
164
- [part=input] {
165
- flex: 1;
166
- width: auto;
167
- height: auto;
168
- padding: 0;
169
- margin: 0;
170
- }
171
- [part=calendar-wrapper] {
172
- display: inline-flex;
173
- }
174
- [part=icon] {
175
- cursor: pointer;
176
- }
177
- :host([popup-disabled]) [part=icon], :host([readonly]) [part=icon] {
178
- pointer-event: none;
179
- }
180
- `;
181
- }
182
- /**
183
- * Set minimum date
184
- * @param min date
185
- * @default -
186
- */
187
- set min(min) {
188
- if (!this.isValidValue(min)) {
189
- this.warnInvalidValue(min);
190
- min = '';
191
- }
192
- const oldMin = this.min;
193
- if (oldMin !== min) {
194
- this._min = min;
195
- this.minDate = min ? format(parse(min), DateFormat.yyyyMMdd) : '';
196
- this.requestUpdate('min', oldMin);
197
- }
198
- }
199
- get min() {
200
- return this._min;
201
- }
202
- /**
203
- * Set maximum date
204
- * @param max date
205
- * @default -
206
- */
207
- set max(max) {
208
- if (!this.isValidValue(max)) {
209
- this.warnInvalidValue(max);
210
- max = '';
211
- }
212
- const oldMax = this.max;
213
- if (oldMax !== max) {
214
- this._max = max;
215
- this.maxDate = max ? format(parse(max), DateFormat.yyyyMMdd) : '';
216
- this.requestUpdate('max', oldMax);
217
- }
218
- }
219
- get max() {
220
- return this._max;
221
- }
222
- /**
223
- * Set to switch to multiple select mode
224
- * @ignore
225
- * @param multiple Multiple
226
- */
227
- /* istanbul ignore next */
228
- set multiple(multiple) {
229
- new WarningNotice('multiple is not currently supported').show();
230
- }
231
- /**
232
- * @ignore
233
- */
234
- get multiple() {
235
- return false;
236
- }
237
- /**
238
- * Current date time value
239
- * @param value Calendar value
240
- * @default -
241
- */
242
- set value(value) {
243
- this.values = value ? [value] : [];
244
- }
245
- get value() {
246
- return this.values[0] || '';
247
- }
248
- /**
249
- * Set multiple selected values
250
- * @param values Values to set
251
- * @type {string[]}
252
- * @default []
253
- */
254
- set values(values) {
255
- const oldValues = this._values;
256
- if (String(oldValues) !== String(values)) {
257
- this._values = values;
258
- this.valuesToSegments();
259
- this.requestUpdate('_values', oldValues); /* segments are populated in update */
260
- }
261
- }
262
- get values() {
263
- return this._segments.map(segment => segment.value);
264
- }
265
- /**
266
- * Placeholder to display when no value is set
267
- * @param placeholder Placeholder
268
- * @default -
269
- */
270
- set placeholder(placeholder) {
271
- const oldPlaceholder = this._placeholder;
272
- if (oldPlaceholder !== placeholder) {
273
- this._placeholder = placeholder;
274
- this.requestUpdate('placeholder', oldPlaceholder);
275
- }
276
- }
277
- get placeholder() {
278
- return this._placeholder || this.format;
279
- }
280
- /**
281
- * Set the datetime format
282
- * Based on dane-fns datetime formats
283
- * @param format Date format
284
- * @default -
285
- */
286
- set format(format) {
287
- const oldFormat = this._format;
288
- if (oldFormat !== format) {
289
- this._format = format;
290
- this.requestUpdate('format', oldFormat);
291
- }
292
- }
293
- get format() {
294
- return this._format || (this.timepicker
295
- ? (this.showSeconds
296
- ? (this.amPm ? INPUT_FORMAT.DATETIME_SECONDS_AM_PM : INPUT_FORMAT.DATETIME_SECONDS)
297
- : (this.amPm ? INPUT_FORMAT.DATETIME_AM_PM : INPUT_FORMAT.DATETIME))
298
- : INPUT_FORMAT.DATE);
299
- }
300
- /**
301
- * Set the current calendar view.
302
- * Accepted format: 'yyyy-MM'
303
- * @param view view date
304
- * @default -
305
- */
306
- set view(view) {
307
- this.views = view ? [view] : [];
308
- }
309
- get view() {
310
- return this.views[0] || '';
311
- }
312
- /**
313
- * Set the current calendar views for duplex mode
314
- * Accepted format: 'yyyy-MM'
315
- * @param views view dates
316
- * @type {string[]}
317
- * @default []
318
- */
319
- set views(views) {
320
- const oldViews = this._views;
321
- views = this.filterAndWarnInvalidViews(views);
322
- if (oldViews.toString() !== views.toString()) {
323
- this._views = views;
324
- this.requestUpdate('views', oldViews);
325
- }
326
- }
327
- get views() {
328
- if (this._views.length) {
329
- return this._views;
330
- }
331
- const now = new Date();
332
- const from = this.values[0];
333
- if (!this.isDuplex()) {
334
- return [formatToView(from || now)];
335
- }
336
- const to = this.values[1];
337
- // default duplex mode
338
- if (this.isDuplexConsecutive() || !from || !to || formatToView(from) === formatToView(to) || isBefore(to, from)) {
339
- return this.composeViews(formatToView(from || to || now), !from && to ? 1 : 0, []);
340
- }
341
- // duplex split if as from and to
342
- return [formatToView(from), formatToView(to)];
343
- }
344
- /**
345
- * Validates the input, marking the element as invalid if its value does not meet the validation criteria.
346
- * @returns {void}
347
- */
348
- validateInput() {
349
- const hasError = this.hasError();
350
- if (this.error !== hasError) {
351
- this.error = hasError;
352
- this.notifyPropertyChange('error', this.error);
353
- }
354
- }
355
- /**
356
- * Updates the element
357
- * @param changedProperties Properties that has changed
358
- * @returns {void}
359
- */
360
- update(changedProperties) {
361
- if (changedProperties.has('opened') && this.opened) {
362
- this.lazyRendered = true;
363
- }
364
- // make sure to close popup for disabled
365
- if (this.opened && !this.canOpenPopup) {
366
- this.opened = false; /* this cannot be nor stopped nor listened */
367
- }
368
- if (changedProperties.has('_values') || changedProperties.has(TranslatePropertyKey)) {
369
- this.syncInputValues();
370
- }
371
- if (this.shouldValidateValue(changedProperties)) {
372
- this.validateInput();
373
- }
374
- super.update(changedProperties);
375
- }
376
- /**
377
- * Called after the component is first rendered
378
- * @param changedProperties Properties which have changed
379
- * @returns {void}
380
- */
381
- firstUpdated(changedProperties) {
382
- super.firstUpdated(changedProperties);
383
- this.addEventListener('keydown', this.onKeyDown);
384
- this.addEventListener('tap', this.onTap);
385
- }
386
- /**
387
- * Overwrite validation method for value
388
- *
389
- * @param value value
390
- * @returns {boolean} result
391
- */
392
- isValidValue(value) {
393
- if (value === '') {
394
- return true;
395
- }
396
- // Need to check for the attribute to cover the case when
397
- // timepicker and value attributes are set
398
- return (this.timepicker || this.hasAttribute('timepicker'))
399
- ? isValidDateTime(value)
400
- : isValidDate(value, DateFormat.yyyyMMdd);
401
- }
402
- /**
403
- * Used to show a warning when the value does not pass the validation
404
- * @param value that is invalid
405
- * @returns {void}
406
- */
407
- warnInvalidValue(value) {
408
- new WarningNotice(`The specified value "${value}" does not conform to the required format. The format is ${this.timepicker ? '"yyyy-MM-ddThh:mm" followed by optional ":ss" or ":ss.SSS"' : '"yyyy-MM-dd"'}.`).show();
409
- }
410
- /**
411
- * Show invalid view message
412
- * @param value Invalid value
413
- * @returns {void}
414
- */
415
- warnInvalidView(value) {
416
- new WarningNotice(`The specified value "${value}" does not conform to the required format. The format is "yyyy-MM".`).show();
417
- }
418
- /**
419
- * Convert value string array to date segments
420
- * Warn invalid value if passed value does not confirm a segment
421
- * @returns {void}
422
- */
423
- valuesToSegments() {
424
- const newSegments = this.filterAndWarnInvalidValues(this._values).map(value => DateTimeSegment.fromString(value));
425
- this._segments = newSegments;
426
- this.interimSegments = newSegments;
427
- }
428
- /**
429
- * Check if the value needs re-validation against min/max and format
430
- * @param changedProperties Properties which have changed
431
- * @returns needs re-validation
432
- */
433
- shouldValidateValue(changedProperties) {
434
- // do not validate default value
435
- if (changedProperties.has('_values') && changedProperties.get('_values') !== undefined
436
- || changedProperties.has('min') && changedProperties.get('min') !== undefined
437
- || changedProperties.has('max') && changedProperties.get('max') !== undefined
438
- || changedProperties.has('showSeconds') && changedProperties.get('showSeconds') !== undefined) {
439
- return true;
440
- }
441
- return false;
442
- }
443
- /**
444
- * A helper method to make sure that only valid values are passed
445
- * Warn if passed value is invalid
446
- * @param values Values to check
447
- * @returns Filtered collection of values
448
- */
449
- filterAndWarnInvalidValues(values) {
450
- return values.map(value => {
451
- if (this.isValidValue(value)) {
452
- return value;
453
- }
454
- this.warnInvalidValue(value);
455
- return '';
456
- });
457
- }
458
- /**
459
- * A helper method to make sure that only valid views are passed
460
- * Warn if passed view is invalid
461
- * @param views Views to check
462
- * @returns Filtered collection of values
463
- */
464
- filterAndWarnInvalidViews(views) {
465
- for (let i = 0; i < views.length; i += 1) {
466
- const view = views[i];
467
- if (!isValidDate(view, DateFormat.yyyyMM)) {
468
- this.warnInvalidView(view);
469
- return []; /* if at least one view is invalid, do not care about the rest to avoid empty views */
470
- }
471
- }
472
- return views;
473
- }
474
- /**
475
- * Return true if calendar is in duplex mode
476
- * @returns duplex
477
- */
478
- isDuplex() {
479
- return this.isDuplexSplit() || this.isDuplexConsecutive();
480
- }
481
- /**
482
- * Return true if calendar is in duplex split mode
483
- * @returns duplex split
484
- */
485
- isDuplexSplit() {
486
- return this.duplex === 'split';
487
- }
488
- /**
489
- * Return true if calendar is in duplex consecutive mode
490
- * @returns duplex consecutive
491
- */
492
- isDuplexConsecutive() {
493
- return this.duplex === '' || this.duplex === 'consecutive';
494
- }
495
- /**
496
- * Stop syncing input values and picker values
497
- * @returns {void}
498
- */
499
- disableInputSync() {
500
- this.inputSyncing = false;
501
- }
502
- /**
503
- * Start syncing input values and picker values
504
- * @returns {void}
505
- */
506
- enableInputSync() {
507
- this.inputSyncing = true;
508
- }
509
- /**
510
- * Synchronise input values and values
511
- * @return {void}
512
- */
513
- syncInputValues() {
514
- if (!this.inputSyncing) {
515
- return;
516
- }
517
- // input values cannot be populated off interim segments as require a valid date
518
- // date-fns formats to local if there is time info
519
- this.inputValues = this._segments.map(segment => this.formatSegment(segment));
520
- }
521
- /**
522
- * Format date segment according to format and locale
523
- * @param segment Date segment
524
- * @returns formatted string
525
- */
526
- formatSegment(segment) {
527
- return segment.value ? inputFormat(segment.getTime(), this.format, {
528
- locale: getDateFNSLocale(getLocale(this))
529
- }) : '';
530
- }
531
- /**
532
- * Construct view collection
533
- * @param view The view that has changed
534
- * @param index View index (0 - single, or from); (1 - to)
535
- * @param [views=this.views] The original views collection
536
- * @returns the new view collection
537
- */
538
- composeViews(view, index, views = this.views) {
539
- view = formatToView(view);
540
- if (!this.isDuplex()) {
541
- return [view];
542
- }
543
- if (this.isDuplexConsecutive()) {
544
- if (index === 0) { /* from */
545
- return [view, formatToView(addMonths(view, 1))];
546
- }
547
- else { /* to */
548
- return [formatToView(subMonths(view, 1)), view];
549
- }
550
- }
551
- // duplex split
552
- if (index === 0) { /* from. to must be after or the same */
553
- let after = views[1] || addMonths(view, 1);
554
- if (isBefore(after, view)) {
555
- after = view;
556
- }
557
- return [view, formatToView(after)];
558
- }
559
- if (index === 1) { /* to. from must be before or the same */
560
- let before = views[0] || subMonths(view, 1);
561
- if (isAfter(before, view)) {
562
- before = view;
563
- }
564
- return [formatToView(before), view];
565
- }
566
- return [];
567
- }
568
- /**
569
- * An interim collection of segments to push values when all parts are populated
570
- * and validated
571
- * @param segments Segments
572
- */
573
- set interimSegments(segments) {
574
- const interimSegments = segments.map(segment => DateTimeSegment.fromDateTimeSegment(segment));
575
- this._interimSegments = interimSegments;
576
- // cannot populate calendar if from is after to, it looks broken
577
- this.calendarValues = this.isFromBeforeTo() ? interimSegments.map(segment => segment.dateSegment) : [];
578
- this.timepickerValues = interimSegments.map(segment => segment.timeSegment);
579
- }
580
- /**
581
- * Get interim segments. These are free to modify
582
- * @returns interim segments
583
- */
584
- get interimSegments() {
585
- return this._interimSegments;
586
- }
587
- /**
588
- * Submit interim segments to values.
589
- * Notify value-changed event.
590
- * @returns true if values have changed. False otherwise
591
- */
592
- submitInterimSegments() {
593
- const oldSegments = this._segments;
594
- const newSegments = this.interimSegments;
595
- // compare if different
596
- if (oldSegments.toString() === newSegments.toString()) {
597
- return false;
598
- }
599
- const newValues = newSegments.map(segment => segment.value);
600
- // validate
601
- for (let i = 0; i < newValues.length; i += 1) { /* need this step in case timepicker is not populated */
602
- if (!this.isValidValue(newValues[i])) {
603
- return false;
604
- }
605
- }
606
- this.notifyValuesChange(newValues);
607
- return true;
608
- }
609
- /**
610
- * Notify that values array has been changed
611
- * @param values A collection of string dates
612
- * @returns {void}
613
- */
614
- notifyValuesChange(values) {
615
- if (this.values.toString() !== values.toString()) {
616
- this.values = values;
617
- this.notifyPropertyChange('value', this.value);
618
- }
619
- }
620
- /**
621
- * Notify that views array has been changed
622
- * @param views A collection of string dates
623
- * @returns {void}
624
- */
625
- notifyViewsChange(views) {
626
- if (this._views.toString() !== views.toString()) {
627
- this.views = views;
628
- this.notifyPropertyChange('view', this.view);
629
- }
630
- }
631
- /**
632
- * Handles key input on datetime picker
633
- * @param event Key down event object
634
- * @returns {void}
635
- */
636
- onKeyDown(event) {
637
- switch (event.key) {
638
- case 'Down':
639
- case 'ArrowDown':
640
- this.setOpened(true);
641
- break;
642
- case 'Up':
643
- case 'ArrowUp':
644
- !event.defaultPrevented && this.setOpened(false);
645
- break;
646
- default:
647
- return;
648
- }
649
- event.preventDefault();
650
- }
651
- /**
652
- * Handles key input on calendar picker
653
- * @param event Key down event object
654
- * @returns {void}
655
- */
656
- onCalendarKeyDown(event) {
657
- switch (event.key) {
658
- case 'Esc':
659
- case 'Escape':
660
- this.resetViews();
661
- this.setOpened(false);
662
- break;
663
- default:
664
- return;
665
- }
666
- event.preventDefault();
667
- }
668
- /**
669
- * Handles key input on text field
670
- * @param event Key down event object
671
- * @returns {void}
672
- */
673
- onInputKeyDown(event) {
674
- switch (event.key) {
675
- case 'Esc':
676
- case 'Escape':
677
- !this.opened && this.blur();
678
- this.setOpened(false);
679
- break;
680
- case 'Enter':
681
- this.toggleOpened();
682
- break;
683
- default:
684
- return;
685
- }
686
- event.preventDefault();
687
- }
688
- /**
689
- * Run on tap event
690
- * @param event Tap event
691
- * @returns {void}
692
- */
693
- onTap(event) {
694
- const path = event.composedPath();
695
- if (this.popupEl && path.includes(this.popupEl)) {
696
- return; /* popup is managed separately */
697
- }
698
- if (path.includes(this.iconEl)) {
699
- this.toggleOpened();
700
- }
701
- else if (!this.inputTriggerDisabled) {
702
- this.setOpened(true);
703
- }
704
- }
705
- /**
706
- * Run when popup opened flag changes
707
- * @param event opened-change event
708
- * @returns {void}
709
- */
710
- onPopupOpenedChanged(event) {
711
- event.preventDefault(); /* re-target opened changed event */
712
- this.setOpened(event.detail.value);
713
- }
714
- /**
715
- * Run on calendar view-changed event
716
- * @param event view-changed event
717
- * @returns {void}
718
- */
719
- onCalendarViewChanged(event) {
720
- const index = event.target === this.calendarToEl ? 1 : 0; /* 0 - from, single; 1 - to */
721
- const view = event.detail.value;
722
- this.notifyViewsChange(this.composeViews(view, index));
723
- }
724
- /**
725
- * Run on calendar value-changed event
726
- * @param event value-changed event
727
- * @returns {void}
728
- */
729
- onCalendarValueChanged(event) {
730
- var _a, _b;
731
- const values = event.target.values;
732
- this.interimSegments = values.map((value, index) => {
733
- const segment = this.interimSegments[index] || new DateTimeSegment();
734
- segment.dateSegment = value;
735
- if (this.timepicker && !segment.timeSegment) {
736
- segment.timeSegment = getCurrentTime(this.showSeconds); /* populate time, as otherwise time picker looks broken */
737
- }
738
- return segment;
739
- });
740
- this.submitInterimSegments();
741
- // in duplex mode, avoid jumping on views
742
- // Therefore if any of values have changed, save the current view
743
- if (this.isDuplex() && this.calendarEl && this.calendarToEl) {
744
- this.notifyViewsChange([(_a = this.calendarEl) === null || _a === void 0 ? void 0 : _a.view, (_b = this.calendarToEl) === null || _b === void 0 ? void 0 : _b.view]);
745
- }
746
- // Close popup if there is no time picker
747
- const newValues = this.values;
748
- if (!this.timepicker && newValues[0] && (this.range ? newValues[1] : true)) {
749
- this.setOpened(false);
750
- }
751
- }
752
- /**
753
- * Run on time-picker value-changed event
754
- * @param event value-changed event
755
- * @returns {void}
756
- */
757
- onTimePickerValueChanged(event) {
758
- const target = event.target;
759
- const index = target === this.timepickerToEl ? 1 : 0; /* 0 - from, single; 1 - to */
760
- const segment = this.interimSegments[index] || new DateTimeSegment();
761
- segment.timeSegment = target.value;
762
- this.interimSegments[index] = segment;
763
- this.submitInterimSegments();
764
- }
765
- /**
766
- * Run on input focus
767
- * @returns {void}
768
- */
769
- onInputFocus() {
770
- this.disableInputSync();
771
- }
772
- /**
773
- * Run on input blur
774
- * @param event blur event
775
- * @returns {void}
776
- */
777
- onInputBlur(event) {
778
- this.enableInputSync();
779
- // remove all code once strict formatting is supported in date-fns
780
- const index = event.target === this.inputToEl ? 1 : 0;
781
- const segment = this._segments[index];
782
- if (!segment || !segment.value) {
783
- return;
784
- }
785
- const formattedValue = segment ? this.formatSegment(segment) : '';
786
- if (formattedValue !== this.inputValues[index]) {
787
- const inputValues = [...this.inputValues];
788
- inputValues[index] = formattedValue;
789
- this.inputValues = inputValues;
790
- this.requestUpdate();
791
- }
792
- }
793
- /**
794
- * Run on input value-changed event
795
- * @param event value-changed event
796
- * @returns {void}
797
- */
798
- onInputValueChanged(event) {
799
- const target = event.target;
800
- const index = target === this.inputToEl ? 1 : 0; /* 0 - from, single; 1 - to */
801
- const inputValue = target.value;
802
- const inputValues = [...this.inputValues];
803
- inputValues[index] = inputValue;
804
- this.inputValues = inputValues;
805
- let dateString = '';
806
- if (inputValue) {
807
- const recoveryDate = (this.interimSegments[index] || new DateTimeSegment()).getTime();
808
- const date = inputParse(inputValue, this.format, recoveryDate, {
809
- locale: getDateFNSLocale(getLocale(this))
810
- });
811
- if (isValid(date)) {
812
- dateString = inputFormat(date, this.timepicker ? this.showSeconds ? DateTimeFormat.yyyMMddTHHmmss : DateTimeFormat.yyyMMddTHHmm : DateFormat.yyyyMMdd);
813
- this.resetViews(); /* user input should be treated similar to manually switching the views */
814
- }
815
- }
816
- else {
817
- this.resetViews();
818
- }
819
- this.interimSegments[index] = DateTimeSegment.fromString(dateString);
820
- this.submitInterimSegments();
821
- this.validateInput();
822
- }
823
- /**
824
- * Check if input format conforms to value format
825
- * @returns true if valid format
826
- */
827
- isValidFormat() {
828
- const inputValues = this.inputValues;
829
- const values = this.values;
830
- // No need to format values to validate.
831
- // If input is invalid, value is not populated
832
- for (let i = 0; i < inputValues.length; i += 1) {
833
- if (inputValues[i] && !values[i]) {
834
- return false;
835
- }
836
- }
837
- return true;
838
- }
839
- /**
840
- * Check if `value` is within `min` and `max`
841
- * @returns true if value is within
842
- */
843
- isValueWithinMinMax() {
844
- if (this.min || this.max) {
845
- const minTime = this.min ? parse(this.min).getTime() : -Infinity;
846
- const maxTime = this.max ? parse(this.max).getTime() : Infinity;
847
- for (let i = 0; i < this.values.length; i += 1) {
848
- const valueTime = parse(this.values[i]).getTime();
849
- if (minTime > valueTime || maxTime < valueTime) {
850
- return false;
851
- }
852
- }
853
- }
854
- return true;
855
- }
856
- /**
857
- * Check if `from` is before or the same as `to`
858
- * @returns true if `from` is before or the same as `to`
859
- */
860
- isFromBeforeTo() {
861
- if (this.range) {
862
- const from = this.values[0];
863
- const to = this.values[1];
864
- if (from && to) {
865
- if (parse(from).getTime() > parse(to).getTime()) {
866
- return false;
867
- }
868
- }
869
- }
870
- return true;
871
- }
872
- /**
873
- * Check if datetime picker has an error
874
- * @returns true if error
875
- */
876
- hasError() {
877
- return !(this.isValidFormat() && this.isValueWithinMinMax() && this.isFromBeforeTo());
878
- }
879
- /**
880
- * Toggles the opened state of the list
881
- * @returns {void}
882
- */
883
- toggleOpened() {
884
- this.setOpened(!this.opened);
885
- }
886
- /**
887
- * Return true if popup can be opened
888
- */
889
- get canOpenPopup() {
890
- return !(this.disabled || this.readonly || this.popupDisabled);
891
- }
892
- /**
893
- * Set opened state with event
894
- * @param opened True if opened
895
- * @returns {void}
896
- */
897
- setOpened(opened) {
898
- if (opened && !this.canOpenPopup) { /* never allow to open popup if cannot do so */
899
- return;
900
- }
901
- if (this.opened !== opened && this.notifyPropertyChange('opened', opened, true)) {
902
- this.opened = opened;
903
- }
904
- }
905
- /**
906
- * Reset views to default
907
- * @returns {void}
908
- */
909
- resetViews() {
910
- this.notifyViewsChange([]);
911
- }
912
- /**
913
- * Get time picker template
914
- * @param id Timepicker identifier
915
- * @param value Time picker value
916
- * @returns template result
917
- */
918
- getTimepickerTemplate(id, value = '') {
919
- return html `<ef-time-picker
920
- id="${id}"
921
- part="time-picker"
922
- .showSeconds=${this.showSeconds}
923
- .amPm=${this.amPm}
924
- .value=${value}
925
- @value-changed=${this.onTimePickerValueChanged}></ef-time-picker>`;
926
- }
927
- /**
928
- * Get calendar template
929
- * @param id Calendar identifier
930
- * @param view Calendar view
931
- * @returns template result
932
- */
933
- getCalendarTemplate(id, view = '') {
934
- return html `<ef-calendar
935
- part="calendar"
936
- id=${id}
937
- lang=${ifDefined(this.lang || undefined)}
938
- .fillCells=${!this.isDuplex()}
939
- .range=${this.range}
940
- .multiple=${this.multiple}
941
- .min=${this.minDate}
942
- .max=${this.maxDate}
943
- .weekdaysOnly=${this.weekdaysOnly}
944
- .weekendsOnly=${this.weekendsOnly}
945
- .firstDayOfWeek=${ifDefined(this.firstDayOfWeek)}
946
- .values=${this.calendarValues}
947
- .filter=${this.filter}
948
- .view=${view}
949
- @keydown=${this.onCalendarKeyDown}
950
- @view-changed=${this.onCalendarViewChanged}
951
- @value-changed=${this.onCalendarValueChanged}></ef-calendar>`;
952
- }
953
- /**
954
- * Get calendar templates
955
- */
956
- get calendarsTemplate() {
957
- return html `
958
- ${this.getCalendarTemplate('calendar', this.views[0])}
959
- ${this.isDuplex() ? this.getCalendarTemplate('calendar-to', this.views[1]) : undefined}
960
- `;
961
- }
962
- /**
963
- * Get timepicker templates
964
- */
965
- get timepickersTemplate() {
966
- // TODO: how can we add support timepicker with multiple?
967
- const values = this.timepickerValues;
968
- return html `
969
- ${this.getTimepickerTemplate('timepicker', values[0])}
970
- ${this.range ? html `<div part="input-separator"></div>` : undefined}
971
- ${this.range ? this.getTimepickerTemplate('timepicker-to', values[1]) : undefined}
972
- `;
973
- }
974
- /**
975
- * Get input template
976
- * @param id Input identifier
977
- * @param value Input value
978
- * @returns template result
979
- */
980
- getInputTemplate(id, value = '') {
981
- return html `
982
- <ef-text-field
983
- id=${id}
984
- part="input"
985
- transparent
986
- ?disabled="${this.disabled}"
987
- ?readonly="${this.readonly || this.inputDisabled}"
988
- .value=${value}
989
- .placeholder="${this.placeholder}"
990
- @focus=${this.onInputFocus}
991
- @blur=${this.onInputBlur}
992
- @keydown=${this.onInputKeyDown}
993
- @value-changed=${this.onInputValueChanged}></ef-text-field>
994
- `;
995
- }
996
- /**
997
- * Template for rendering an icon
998
- */
999
- get iconTemplate() {
1000
- return html `
1001
- <ef-icon
1002
- part="icon"
1003
- icon="calendar"></ef-icon>
1004
- `;
1005
- }
1006
- /**
1007
- * Template for inputs
1008
- * @returns inputTemplate
1009
- */
1010
- get inputTemplates() {
1011
- const values = this.inputValues;
1012
- return html `
1013
- <div part="input-wrapper">
1014
- ${this.getInputTemplate('input', values[0])}
1015
- ${this.range ? html `<div part="input-separator"></div>` : undefined}
1016
- ${this.range ? this.getInputTemplate('input-to', values[1]) : undefined}
1017
- </div>
1018
- `;
1019
- }
1020
- /**
1021
- * Popup panel template
1022
- */
1023
- get popupTemplate() {
1024
- if (this.lazyRendered) {
1025
- return html `<ef-overlay
1026
- tabindex="0"
1027
- part="list"
1028
- with-shadow
1029
- no-cancel-on-esc-key
1030
- no-autofocus
1031
- .delegatesFocus=${true}
1032
- .focusBoundary=${this}
1033
- .positionTarget=${this}
1034
- .position=${POPUP_POSITION}
1035
- ?opened=${this.opened}
1036
- @opened-changed=${this.onPopupOpenedChanged}>
1037
- <div><slot name="header"></div>
1038
- <div part="body">
1039
- <div><slot name="left"></div>
1040
- <div part="selectors-wrapper">
1041
- <div part="calendar-wrapper">
1042
- ${this.calendarsTemplate}
1043
- </div>
1044
- ${this.timepicker ? html `<div part="timepicker-wrapper">${this.timepickersTemplate}</div>` : undefined}
1045
- </div>
1046
- <div><slot name="right"></div>
1047
- </div>
1048
- <div><slot name="footer"></div>
1049
- </ef-overlay>`;
1050
- }
1051
- }
1052
- /**
1053
- * A `TemplateResult` that will be used
1054
- * to render the updated internal template.
1055
- * @return Render template
1056
- */
1057
- render() {
1058
- return html `
1059
- ${this.inputTemplates}
1060
- ${this.iconTemplate}
1061
- ${this.popupTemplate}
1062
- `;
1063
- }
1064
- };
1065
- __decorate([
1066
- property({ type: String })
1067
- ], DatetimePicker.prototype, "min", null);
1068
- __decorate([
1069
- property({ type: String })
1070
- ], DatetimePicker.prototype, "max", null);
1071
- __decorate([
1072
- property({ type: Boolean, attribute: 'weekdays-only' })
1073
- ], DatetimePicker.prototype, "weekdaysOnly", void 0);
1074
- __decorate([
1075
- property({ type: Boolean, attribute: 'weekends-only' })
1076
- ], DatetimePicker.prototype, "weekendsOnly", void 0);
1077
- __decorate([
1078
- property({ attribute: false })
1079
- ], DatetimePicker.prototype, "filter", void 0);
1080
- __decorate([
1081
- property({ type: Number, attribute: 'first-day-of-week' })
1082
- ], DatetimePicker.prototype, "firstDayOfWeek", void 0);
1083
- __decorate([
1084
- property({ type: Boolean, reflect: true })
1085
- ], DatetimePicker.prototype, "range", void 0);
1086
- __decorate([
1087
- property({ type: Boolean })
1088
- ], DatetimePicker.prototype, "multiple", null);
1089
- __decorate([
1090
- property({ type: String })
1091
- ], DatetimePicker.prototype, "value", null);
1092
- __decorate([
1093
- property({
1094
- converter: {
1095
- fromAttribute: function (value) {
1096
- return value.split(',');
1097
- }
1098
- }
1099
- })
1100
- ], DatetimePicker.prototype, "values", null);
1101
- __decorate([
1102
- property({ type: Boolean, attribute: 'am-pm', reflect: true })
1103
- ], DatetimePicker.prototype, "amPm", void 0);
1104
- __decorate([
1105
- property({ type: Boolean, attribute: 'show-seconds', reflect: true })
1106
- ], DatetimePicker.prototype, "showSeconds", void 0);
1107
- __decorate([
1108
- property({ type: String })
1109
- ], DatetimePicker.prototype, "placeholder", null);
1110
- __decorate([
1111
- property({ type: Boolean, reflect: true })
1112
- ], DatetimePicker.prototype, "opened", void 0);
1113
- __decorate([
1114
- property({ type: Boolean, reflect: true })
1115
- ], DatetimePicker.prototype, "error", void 0);
1116
- __decorate([
1117
- property({ type: Boolean, reflect: true })
1118
- ], DatetimePicker.prototype, "warning", void 0);
1119
- __decorate([
1120
- property({ type: Boolean, attribute: 'input-trigger-disabled' })
1121
- ], DatetimePicker.prototype, "inputTriggerDisabled", void 0);
1122
- __decorate([
1123
- property({ type: Boolean, attribute: 'input-disabled', reflect: true })
1124
- ], DatetimePicker.prototype, "inputDisabled", void 0);
1125
- __decorate([
1126
- property({ type: Boolean, attribute: 'popup-disabled', reflect: true })
1127
- ], DatetimePicker.prototype, "popupDisabled", void 0);
1128
- __decorate([
1129
- property({ type: String })
1130
- ], DatetimePicker.prototype, "format", null);
1131
- __decorate([
1132
- property({ type: Boolean, reflect: true })
1133
- ], DatetimePicker.prototype, "timepicker", void 0);
1134
- __decorate([
1135
- property({ type: String, reflect: true })
1136
- ], DatetimePicker.prototype, "duplex", void 0);
1137
- __decorate([
1138
- property({ type: String })
1139
- ], DatetimePicker.prototype, "view", null);
1140
- __decorate([
1141
- property({ attribute: false })
1142
- ], DatetimePicker.prototype, "views", null);
1143
- __decorate([
1144
- translate({ mode: 'directive', scope: 'ef-datetime-picker' })
1145
- ], DatetimePicker.prototype, "t", void 0);
1146
- __decorate([
1147
- query('[part=icon]', true)
1148
- ], DatetimePicker.prototype, "iconEl", void 0);
1149
- __decorate([
1150
- query('[part=list]')
1151
- ], DatetimePicker.prototype, "popupEl", void 0);
1152
- __decorate([
1153
- query('#timepicker')
1154
- ], DatetimePicker.prototype, "timepickerEl", void 0);
1155
- __decorate([
1156
- query('#timepicker-to')
1157
- ], DatetimePicker.prototype, "timepickerToEl", void 0);
1158
- __decorate([
1159
- query('#calendar')
1160
- ], DatetimePicker.prototype, "calendarEl", void 0);
1161
- __decorate([
1162
- query('#calendar-to')
1163
- ], DatetimePicker.prototype, "calendarToEl", void 0);
1164
- __decorate([
1165
- query('#input')
1166
- ], DatetimePicker.prototype, "inputEl", void 0);
1167
- __decorate([
1168
- query('#input-to')
1169
- ], DatetimePicker.prototype, "inputToEl", void 0);
1170
- DatetimePicker = __decorate([
1171
- customElement('ef-datetime-picker', {
1172
- alias: 'emerald-datetime-picker'
1173
- })
1174
- ], DatetimePicker);
1175
- export { DatetimePicker };