@refinitiv-ui/elements 5.3.4 → 5.8.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 (352) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/lib/accordion/custom-elements.md +18 -0
  3. package/lib/accordion/index.d.ts +5 -5
  4. package/lib/accordion/index.js +8 -11
  5. package/lib/appstate-bar/custom-elements.md +22 -0
  6. package/lib/appstate-bar/index.d.ts +5 -5
  7. package/lib/appstate-bar/index.js +8 -11
  8. package/lib/autosuggest/custom-elements.json +24 -4
  9. package/lib/autosuggest/custom-elements.md +54 -0
  10. package/lib/autosuggest/helpers/types.d.ts +1 -1
  11. package/lib/autosuggest/helpers/utils.d.ts +2 -2
  12. package/lib/autosuggest/helpers/utils.js +1 -2
  13. package/lib/autosuggest/index.d.ts +13 -8
  14. package/lib/autosuggest/index.js +38 -31
  15. package/lib/button/custom-elements.json +2 -2
  16. package/lib/button/custom-elements.md +23 -0
  17. package/lib/button/index.d.ts +13 -13
  18. package/lib/button/index.js +41 -31
  19. package/lib/button-bar/custom-elements.md +9 -0
  20. package/lib/button-bar/index.d.ts +3 -3
  21. package/lib/button-bar/index.js +8 -10
  22. package/lib/calendar/constants.d.ts +22 -0
  23. package/lib/calendar/constants.js +23 -0
  24. package/lib/calendar/custom-elements.json +8 -6
  25. package/lib/calendar/custom-elements.md +35 -0
  26. package/lib/calendar/index.d.ts +9 -7
  27. package/lib/calendar/index.js +20 -38
  28. package/lib/calendar/locales.d.ts +1 -31
  29. package/lib/calendar/locales.js +0 -104
  30. package/lib/calendar/types.d.ts +1 -5
  31. package/lib/calendar/types.js +1 -6
  32. package/lib/calendar/utils.d.ts +31 -1
  33. package/lib/calendar/utils.js +104 -2
  34. package/lib/canvas/custom-elements.json +7 -5
  35. package/lib/canvas/custom-elements.md +27 -0
  36. package/lib/canvas/index.d.ts +4 -3
  37. package/lib/canvas/index.js +8 -10
  38. package/lib/card/custom-elements.json +3 -1
  39. package/lib/card/custom-elements.md +24 -0
  40. package/lib/card/helpers/types.d.ts +1 -1
  41. package/lib/card/index.d.ts +10 -8
  42. package/lib/card/index.js +14 -13
  43. package/lib/chart/custom-elements.json +1 -1
  44. package/lib/chart/custom-elements.md +16 -0
  45. package/lib/chart/helpers/index.d.ts +2 -2
  46. package/lib/chart/helpers/index.js +2 -2
  47. package/lib/chart/index.d.ts +6 -6
  48. package/lib/chart/index.js +12 -14
  49. package/lib/checkbox/custom-elements.json +4 -4
  50. package/lib/checkbox/custom-elements.md +18 -0
  51. package/lib/checkbox/index.d.ts +21 -13
  52. package/lib/checkbox/index.js +56 -31
  53. package/lib/clock/custom-elements.json +21 -4
  54. package/lib/clock/custom-elements.md +28 -0
  55. package/lib/clock/index.d.ts +17 -5
  56. package/lib/clock/index.js +37 -18
  57. package/lib/clock/themes/halo/dark/index.js +1 -1
  58. package/lib/clock/themes/halo/light/index.js +1 -1
  59. package/lib/clock/themes/solar/charcoal/index.js +1 -1
  60. package/lib/clock/themes/solar/pearl/index.js +1 -1
  61. package/lib/clock/utils/TickManager.js +2 -2
  62. package/lib/collapse/custom-elements.md +27 -0
  63. package/lib/collapse/index.d.ts +7 -7
  64. package/lib/collapse/index.js +11 -13
  65. package/lib/color-dialog/custom-elements.json +29 -16
  66. package/lib/color-dialog/custom-elements.md +39 -0
  67. package/lib/color-dialog/elements/color-palettes.d.ts +5 -5
  68. package/lib/color-dialog/elements/color-palettes.js +9 -13
  69. package/lib/color-dialog/elements/grayscale-palettes.d.ts +5 -5
  70. package/lib/color-dialog/elements/grayscale-palettes.js +10 -13
  71. package/lib/color-dialog/elements/palettes.d.ts +10 -3
  72. package/lib/color-dialog/elements/palettes.js +58 -45
  73. package/lib/color-dialog/helpers/color-helpers.d.ts +7 -53
  74. package/lib/color-dialog/helpers/color-helpers.js +12 -109
  75. package/lib/color-dialog/helpers/value-model.d.ts +1 -1
  76. package/lib/color-dialog/helpers/value-model.js +18 -16
  77. package/lib/color-dialog/index.d.ts +19 -19
  78. package/lib/color-dialog/index.js +47 -45
  79. package/lib/combo-box/custom-elements.json +28 -16
  80. package/lib/combo-box/custom-elements.md +35 -0
  81. package/lib/combo-box/helpers/filter.d.ts +4 -4
  82. package/lib/combo-box/helpers/types.d.ts +2 -2
  83. package/lib/combo-box/index.d.ts +26 -18
  84. package/lib/combo-box/index.js +36 -27
  85. package/lib/combo-box/themes/halo/dark/index.js +1 -1
  86. package/lib/combo-box/themes/halo/light/index.js +1 -1
  87. package/lib/combo-box/themes/solar/charcoal/index.js +1 -1
  88. package/lib/combo-box/themes/solar/pearl/index.js +1 -1
  89. package/lib/counter/custom-elements.json +8 -4
  90. package/lib/counter/custom-elements.md +11 -0
  91. package/lib/counter/index.d.ts +5 -3
  92. package/lib/counter/index.js +11 -12
  93. package/lib/datetime-picker/custom-elements.json +52 -23
  94. package/lib/datetime-picker/custom-elements.md +57 -0
  95. package/lib/datetime-picker/index.d.ts +25 -14
  96. package/lib/datetime-picker/index.js +46 -35
  97. package/lib/datetime-picker/locales.d.ts +1 -1
  98. package/lib/datetime-picker/locales.js +12 -1
  99. package/lib/datetime-picker/themes/solar/charcoal/index.js +1 -1
  100. package/lib/datetime-picker/themes/solar/pearl/index.js +1 -1
  101. package/lib/datetime-picker/types.d.ts +1 -1
  102. package/lib/datetime-picker/utils.js +1 -1
  103. package/lib/dialog/custom-elements.json +34 -12
  104. package/lib/dialog/custom-elements.md +47 -0
  105. package/lib/dialog/index.d.ts +17 -20
  106. package/lib/dialog/index.js +28 -31
  107. package/lib/email-field/custom-elements.json +81 -94
  108. package/lib/email-field/custom-elements.md +37 -0
  109. package/lib/email-field/index.d.ts +44 -116
  110. package/lib/email-field/index.js +48 -249
  111. package/lib/email-field/themes/solar/charcoal/index.js +1 -1
  112. package/lib/email-field/themes/solar/pearl/index.js +1 -1
  113. package/lib/events.d.ts +2 -2
  114. package/lib/events.js +1 -2
  115. package/lib/flag/custom-elements.md +10 -0
  116. package/lib/flag/index.d.ts +6 -4
  117. package/lib/flag/index.js +12 -12
  118. package/lib/flag/utils/FlagLoader.d.ts +1 -1
  119. package/lib/flag/utils/FlagLoader.js +1 -1
  120. package/lib/header/custom-elements.md +18 -0
  121. package/lib/header/index.d.ts +2 -2
  122. package/lib/header/index.js +5 -8
  123. package/lib/heatmap/custom-elements.md +26 -0
  124. package/lib/heatmap/helpers/color.d.ts +1 -1
  125. package/lib/heatmap/helpers/color.js +1 -1
  126. package/lib/heatmap/helpers/text.d.ts +1 -1
  127. package/lib/heatmap/index.d.ts +7 -7
  128. package/lib/heatmap/index.js +15 -16
  129. package/lib/icon/custom-elements.json +6 -4
  130. package/lib/icon/custom-elements.md +8 -0
  131. package/lib/icon/index.d.ts +9 -6
  132. package/lib/icon/index.js +28 -18
  133. package/lib/icon/utils/IconLoader.d.ts +6 -1
  134. package/lib/icon/utils/IconLoader.js +24 -17
  135. package/lib/index.d.ts +2 -1
  136. package/lib/index.js +2 -1
  137. package/lib/interactive-chart/custom-elements.json +6 -10
  138. package/lib/interactive-chart/custom-elements.md +31 -0
  139. package/lib/interactive-chart/helpers/types.d.ts +2 -2
  140. package/lib/interactive-chart/index.d.ts +11 -8
  141. package/lib/interactive-chart/index.js +17 -17
  142. package/lib/item/custom-elements.json +4 -4
  143. package/lib/item/custom-elements.md +29 -0
  144. package/lib/item/helpers/types.d.ts +1 -1
  145. package/lib/item/index.d.ts +18 -8
  146. package/lib/item/index.js +36 -16
  147. package/lib/label/custom-elements.md +11 -0
  148. package/lib/label/index.d.ts +3 -3
  149. package/lib/label/index.js +12 -20
  150. package/lib/layout/custom-elements.md +26 -0
  151. package/lib/layout/index.d.ts +3 -3
  152. package/lib/layout/index.js +6 -9
  153. package/lib/led-gauge/custom-elements.json +4 -4
  154. package/lib/led-gauge/custom-elements.md +17 -0
  155. package/lib/led-gauge/index.d.ts +5 -4
  156. package/lib/led-gauge/index.js +9 -11
  157. package/lib/list/custom-elements.json +18 -5
  158. package/lib/list/custom-elements.md +32 -0
  159. package/lib/list/helpers/list-renderer.d.ts +2 -2
  160. package/lib/list/helpers/list-renderer.js +4 -2
  161. package/lib/list/helpers/types.d.ts +2 -2
  162. package/lib/list/index.d.ts +27 -10
  163. package/lib/list/index.js +54 -25
  164. package/lib/list/renderer.d.ts +2 -2
  165. package/lib/list/renderer.js +1 -1
  166. package/lib/loader/custom-elements.md +5 -0
  167. package/lib/loader/index.js +4 -8
  168. package/lib/multi-input/custom-elements.json +7 -6
  169. package/lib/multi-input/custom-elements.md +43 -0
  170. package/lib/multi-input/helpers/types.d.ts +1 -1
  171. package/lib/multi-input/index.d.ts +11 -7
  172. package/lib/multi-input/index.js +20 -17
  173. package/lib/multi-input/themes/solar/charcoal/index.js +1 -1
  174. package/lib/multi-input/themes/solar/pearl/index.js +1 -1
  175. package/lib/notification/custom-elements.md +26 -0
  176. package/lib/notification/elements/notification-tray.d.ts +2 -2
  177. package/lib/notification/elements/notification-tray.js +6 -9
  178. package/lib/notification/elements/notification.d.ts +5 -5
  179. package/lib/notification/elements/notification.js +8 -11
  180. package/lib/notification/helpers/status.d.ts +1 -1
  181. package/lib/notification/helpers/status.js +1 -1
  182. package/lib/notification/helpers/types.d.ts +1 -1
  183. package/lib/notification/index.d.ts +2 -2
  184. package/lib/notification/index.js +2 -2
  185. package/lib/number-field/custom-elements.json +99 -54
  186. package/lib/number-field/custom-elements.md +42 -0
  187. package/lib/number-field/index.d.ts +96 -51
  188. package/lib/number-field/index.js +121 -89
  189. package/lib/number-field/themes/solar/charcoal/index.js +1 -1
  190. package/lib/number-field/themes/solar/pearl/index.js +1 -1
  191. package/lib/overlay/custom-elements.json +26 -13
  192. package/lib/overlay/custom-elements.md +54 -0
  193. package/lib/overlay/elements/overlay-backdrop.d.ts +4 -4
  194. package/lib/overlay/elements/overlay-backdrop.js +6 -9
  195. package/lib/overlay/elements/overlay-viewport.d.ts +3 -3
  196. package/lib/overlay/elements/overlay-viewport.js +5 -9
  197. package/lib/overlay/elements/overlay.d.ts +10 -5
  198. package/lib/overlay/elements/overlay.js +27 -28
  199. package/lib/overlay/index.d.ts +2 -2
  200. package/lib/overlay/index.js +1 -1
  201. package/lib/overlay/managers/backdrop-manager.d.ts +1 -1
  202. package/lib/overlay/managers/backdrop-manager.js +2 -2
  203. package/lib/overlay/managers/close-manager.js +1 -1
  204. package/lib/overlay/managers/focus-manager.js +2 -2
  205. package/lib/overlay/managers/interaction-lock-manager.js +2 -2
  206. package/lib/overlay/managers/viewport-manager.d.ts +2 -2
  207. package/lib/overlay/managers/viewport-manager.js +6 -2
  208. package/lib/overlay/managers/zindex-manager.js +1 -1
  209. package/lib/overlay-menu/custom-elements.json +70 -20
  210. package/lib/overlay-menu/custom-elements.md +44 -0
  211. package/lib/overlay-menu/helpers/types.d.ts +3 -3
  212. package/lib/overlay-menu/index.d.ts +26 -19
  213. package/lib/overlay-menu/index.js +47 -33
  214. package/lib/overlay-menu/managers/menu-manager.d.ts +2 -2
  215. package/lib/overlay-menu/managers/menu-manager.js +3 -3
  216. package/lib/pagination/custom-elements.md +27 -0
  217. package/lib/pagination/index.d.ts +8 -8
  218. package/lib/pagination/index.js +13 -15
  219. package/lib/panel/custom-elements.md +11 -0
  220. package/lib/panel/index.d.ts +3 -3
  221. package/lib/panel/index.js +6 -9
  222. package/lib/password-field/custom-elements.json +62 -67
  223. package/lib/password-field/custom-elements.md +39 -0
  224. package/lib/password-field/index.d.ts +43 -94
  225. package/lib/password-field/index.js +52 -198
  226. package/lib/password-field/themes/solar/charcoal/index.js +1 -1
  227. package/lib/password-field/themes/solar/pearl/index.js +1 -1
  228. package/lib/pill/custom-elements.json +8 -6
  229. package/lib/pill/custom-elements.md +22 -0
  230. package/lib/pill/index.d.ts +5 -5
  231. package/lib/pill/index.js +9 -11
  232. package/lib/progress-bar/custom-elements.md +18 -0
  233. package/lib/progress-bar/index.d.ts +3 -3
  234. package/lib/progress-bar/index.js +7 -9
  235. package/lib/radio-button/custom-elements.json +4 -4
  236. package/lib/radio-button/custom-elements.md +19 -0
  237. package/lib/radio-button/index.d.ts +25 -8
  238. package/lib/radio-button/index.js +84 -21
  239. package/lib/radio-button/radio-button-registry.d.ts +3 -2
  240. package/lib/radio-button/radio-button-registry.js +57 -4
  241. package/lib/rating/custom-elements.md +17 -0
  242. package/lib/rating/index.d.ts +3 -3
  243. package/lib/rating/index.js +9 -10
  244. package/lib/search-field/custom-elements.json +70 -74
  245. package/lib/search-field/custom-elements.md +41 -0
  246. package/lib/search-field/index.d.ts +44 -101
  247. package/lib/search-field/index.js +50 -220
  248. package/lib/search-field/themes/solar/charcoal/index.js +1 -1
  249. package/lib/search-field/themes/solar/pearl/index.js +1 -1
  250. package/lib/select/custom-elements.json +5 -4
  251. package/lib/select/custom-elements.md +24 -0
  252. package/lib/select/helpers/types.d.ts +1 -1
  253. package/lib/select/index.d.ts +18 -10
  254. package/lib/select/index.js +84 -45
  255. package/lib/sidebar-layout/custom-elements.json +2 -6
  256. package/lib/sidebar-layout/custom-elements.md +21 -0
  257. package/lib/sidebar-layout/index.d.ts +7 -6
  258. package/lib/sidebar-layout/index.js +9 -10
  259. package/lib/slider/custom-elements.json +4 -4
  260. package/lib/slider/custom-elements.md +28 -0
  261. package/lib/slider/index.d.ts +4 -4
  262. package/lib/slider/index.js +9 -10
  263. package/lib/sparkline/custom-elements.json +4 -4
  264. package/lib/sparkline/custom-elements.md +16 -0
  265. package/lib/sparkline/index.d.ts +6 -4
  266. package/lib/sparkline/index.js +10 -10
  267. package/lib/swing-gauge/custom-elements.json +5 -3
  268. package/lib/swing-gauge/custom-elements.md +17 -0
  269. package/lib/swing-gauge/helpers.d.ts +1 -1
  270. package/lib/swing-gauge/helpers.js +1 -1
  271. package/lib/swing-gauge/index.d.ts +9 -7
  272. package/lib/swing-gauge/index.js +17 -15
  273. package/lib/tab/custom-elements.json +2 -2
  274. package/lib/tab/custom-elements.md +22 -0
  275. package/lib/tab/index.d.ts +5 -5
  276. package/lib/tab/index.js +9 -12
  277. package/lib/tab/themes/solar/charcoal/index.js +1 -1
  278. package/lib/tab/themes/solar/pearl/index.js +1 -1
  279. package/lib/tab-bar/custom-elements.md +11 -0
  280. package/lib/tab-bar/index.d.ts +4 -4
  281. package/lib/tab-bar/index.js +9 -11
  282. package/lib/tab-bar/themes/solar/charcoal/index.js +1 -1
  283. package/lib/tab-bar/themes/solar/pearl/index.js +1 -1
  284. package/lib/text-field/custom-elements.json +78 -89
  285. package/lib/text-field/custom-elements.md +35 -0
  286. package/lib/text-field/index.d.ts +59 -79
  287. package/lib/text-field/index.js +99 -158
  288. package/lib/text-field/themes/solar/charcoal/index.js +1 -1
  289. package/lib/text-field/themes/solar/pearl/index.js +1 -1
  290. package/lib/time-picker/custom-elements.json +4 -4
  291. package/lib/time-picker/custom-elements.md +28 -0
  292. package/lib/time-picker/index.d.ts +7 -4
  293. package/lib/time-picker/index.js +15 -14
  294. package/lib/time-picker/themes/solar/charcoal/index.js +1 -1
  295. package/lib/time-picker/themes/solar/pearl/index.js +1 -1
  296. package/lib/toggle/custom-elements.json +4 -4
  297. package/lib/toggle/custom-elements.md +19 -0
  298. package/lib/toggle/index.d.ts +14 -4
  299. package/lib/toggle/index.js +31 -12
  300. package/lib/tooltip/custom-elements.md +14 -0
  301. package/lib/tooltip/elements/title-tooltip.js +2 -2
  302. package/lib/tooltip/elements/tooltip-element.d.ts +1 -1
  303. package/lib/tooltip/helpers/overflow-tooltip.d.ts +1 -1
  304. package/lib/tooltip/helpers/overflow-tooltip.js +1 -1
  305. package/lib/tooltip/helpers/renderer.d.ts +1 -1
  306. package/lib/tooltip/helpers/types.d.ts +1 -1
  307. package/lib/tooltip/index.d.ts +9 -9
  308. package/lib/tooltip/index.js +18 -20
  309. package/lib/tooltip/managers/tooltip-manager.d.ts +2 -2
  310. package/lib/tooltip/managers/tooltip-manager.js +3 -7
  311. package/lib/tornado-chart/custom-elements.md +18 -0
  312. package/lib/tornado-chart/elements/tornado-chart.d.ts +4 -4
  313. package/lib/tornado-chart/elements/tornado-chart.js +8 -11
  314. package/lib/tornado-chart/elements/tornado-item.d.ts +5 -5
  315. package/lib/tornado-chart/elements/tornado-item.js +10 -12
  316. package/lib/tornado-chart/index.d.ts +2 -2
  317. package/lib/tornado-chart/index.js +2 -2
  318. package/lib/tree/custom-elements.json +17 -3
  319. package/lib/tree/custom-elements.md +32 -0
  320. package/lib/tree/elements/tree-item.d.ts +4 -4
  321. package/lib/tree/elements/tree-item.js +10 -13
  322. package/lib/tree/elements/tree.d.ts +51 -5
  323. package/lib/tree/elements/tree.js +138 -11
  324. package/lib/tree/helpers/filter.d.ts +8 -0
  325. package/lib/tree/helpers/filter.js +33 -0
  326. package/lib/tree/helpers/renderer.d.ts +2 -2
  327. package/lib/tree/helpers/renderer.js +3 -3
  328. package/lib/tree/helpers/types.d.ts +9 -1
  329. package/lib/tree/index.d.ts +4 -4
  330. package/lib/tree/index.js +3 -3
  331. package/lib/tree/managers/tree-manager.d.ts +22 -10
  332. package/lib/tree/managers/tree-manager.js +56 -40
  333. package/lib/tree/themes/halo/dark/index.js +1 -1
  334. package/lib/tree/themes/halo/light/index.js +1 -1
  335. package/lib/tree/themes/solar/charcoal/index.js +1 -1
  336. package/lib/tree/themes/solar/pearl/index.js +1 -1
  337. package/lib/tree-select/custom-elements.json +10 -6
  338. package/lib/tree-select/custom-elements.md +26 -0
  339. package/lib/tree-select/helpers/types.d.ts +2 -2
  340. package/lib/tree-select/index.d.ts +32 -28
  341. package/lib/tree-select/index.js +54 -44
  342. package/lib/tree-select/themes/halo/dark/index.js +1 -1
  343. package/lib/tree-select/themes/halo/light/index.js +1 -1
  344. package/lib/tree-select/themes/solar/charcoal/index.js +1 -1
  345. package/lib/tree-select/themes/solar/pearl/index.js +1 -1
  346. package/lib/version.d.ts +1 -0
  347. package/lib/version.js +1 -0
  348. package/package.json +298 -15
  349. package/lib/autosuggest/helpers/const.d.ts +0 -2
  350. package/lib/autosuggest/helpers/const.js +0 -3
  351. package/lib/overlay-menu/helpers/uuid.d.ts +0 -7
  352. package/lib/overlay-menu/helpers/uuid.js +0 -13
@@ -1,12 +1,9 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { BasicElement, html, css, customElement, property } from '@refinitiv-ui/core';
8
- import { VERSION } from '../';
9
- import '../canvas';
1
+ import { __decorate } from "tslib";
2
+ import { BasicElement, html, css } 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 { VERSION } from '../version.js';
6
+ import '../canvas/index.js';
10
7
  const ZERO_MAP = {
11
8
  LEFT: 'left',
12
9
  CENTER: 'center',
@@ -33,6 +30,7 @@ let LedGauge = class LedGauge extends BasicElement {
33
30
  this.bottomValue = null;
34
31
  /**
35
32
  * Value of range. eg [-20, 70]
33
+ * @type {number[]}
36
34
  */
37
35
  this.range = [];
38
36
  /**
@@ -64,7 +62,7 @@ let LedGauge = class LedGauge extends BasicElement {
64
62
  return VERSION;
65
63
  }
66
64
  /**
67
- * A `CSSResult` that will be used
65
+ * A `CSSResultGroup` that will be used
68
66
  * to style the host, slotted children
69
67
  * and the internal template of the element.
70
68
  * @return CSS template
@@ -139,7 +137,7 @@ let LedGauge = class LedGauge extends BasicElement {
139
137
  else {
140
138
  this._zero = ZERO_MAP.CENTER;
141
139
  }
142
- void this.requestUpdate('zero', oldValue);
140
+ this.requestUpdate('zero', oldValue);
143
141
  }
144
142
  get _shadowRoot() {
145
143
  if (!this.shadowRoot) {
@@ -20,12 +20,13 @@
20
20
  {
21
21
  "name": "value",
22
22
  "description": "Returns the first selected item value.\nUse `values` when multiple selection mode is enabled.",
23
- "type": "string"
23
+ "type": "string",
24
+ "default": "\"\""
24
25
  }
25
26
  ],
26
27
  "properties": [
27
28
  {
28
- "name": "delegatesFocus",
29
+ "name": "delegatesFocus (readonly)",
29
30
  "description": "Element focus delegation.\nSet to `false` and relies on native focusing.",
30
31
  "type": "false",
31
32
  "default": "false"
@@ -59,12 +60,14 @@
59
60
  "name": "value",
60
61
  "attribute": "value",
61
62
  "description": "Returns the first selected item value.\nUse `values` when multiple selection mode is enabled.",
62
- "type": "string"
63
+ "type": "string",
64
+ "default": "\"\""
63
65
  },
64
66
  {
65
67
  "name": "values",
66
68
  "description": "Returns a values collection of the currently\nselected item values",
67
- "type": "object"
69
+ "type": "string[]",
70
+ "default": "[]"
68
71
  }
69
72
  ],
70
73
  "events": [
@@ -91,7 +94,17 @@
91
94
  },
92
95
  {
93
96
  "name": "down",
94
- "description": "Navigate up through the list items",
97
+ "description": "Navigate down through the list items",
98
+ "params": []
99
+ },
100
+ {
101
+ "name": "first",
102
+ "description": "Navigate to first focusable item of the list",
103
+ "params": []
104
+ },
105
+ {
106
+ "name": "last",
107
+ "description": "Navigate to first focusable item of the list",
95
108
  "params": []
96
109
  },
97
110
  {
@@ -0,0 +1,32 @@
1
+ # ef-list
2
+
3
+ Provides listing and immutable selection
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Type | Default | Description |
8
+ |-----------------------------|-------------|----------------|--------------------------|--------------------------------------------------|
9
+ | `data` | | `ListData` | null | The data object, used to render the list. |
10
+ | `delegatesFocus (readonly)` | | `false` | false | Element focus delegation.<br />Set to `false` and relies on native focusing. |
11
+ | `multiple` | `multiple` | `boolean` | false | Allow multiple selections |
12
+ | `renderer` | | `ListRenderer` | "new ListRenderer(this)" | Renderer used to render list item elements |
13
+ | `stateless` | `stateless` | `boolean` | false | Disable selections |
14
+ | `value` | `value` | `string` | "" | Returns the first selected item value.<br />Use `values` when multiple selection mode is enabled. |
15
+ | `values` | | `string[]` | [] | Returns a values collection of the currently<br />selected item values |
16
+
17
+ ## Methods
18
+
19
+ | Method | Type | Description |
20
+ |----------------|-------------------------|--------------------------------------------------|
21
+ | `down` | `(): void` | Navigate down through the list items |
22
+ | `first` | `(): void` | Navigate to first focusable item of the list |
23
+ | `last` | `(): void` | Navigate to first focusable item of the list |
24
+ | `scrollToItem` | `(item: T): void` | Scroll to list item element<br /><br />**item**: Data item to scroll to |
25
+ | `selectItem` | `(item?: any): boolean` | Selects an item in the list<br /><br />**item**: Data Item or Item Element |
26
+ | `up` | `(): void` | Navigate up through the list items |
27
+
28
+ ## Events
29
+
30
+ | Event | Description |
31
+ |-----------------|-------------------------------|
32
+ | `value-changed` | Dispatched when value changes |
@@ -1,5 +1,5 @@
1
- import '../../item';
2
- import { Renderer } from '../renderer';
1
+ import '../../item/index.js';
2
+ import { Renderer } from '../renderer.js';
3
3
  /**
4
4
  * Renders list items as `ef-item` elements.
5
5
  * This is the default renderer for lists.
@@ -1,5 +1,5 @@
1
- import '../../item';
2
- import { Renderer } from '../renderer';
1
+ import '../../item/index.js';
2
+ import { Renderer } from '../renderer.js';
3
3
  /**
4
4
  * Renders list items as `ef-item` elements.
5
5
  * This is the default renderer for lists.
@@ -28,6 +28,8 @@ export class ListRenderer extends Renderer {
28
28
  el.hidden = composer.getItemPropertyValue(item, 'hidden') === true;
29
29
  el.type = composer.getItemPropertyValue(item, 'type');
30
30
  el.multiple = !!context && context.multiple === true;
31
+ const itemRole = el.type === 'text' || !el.type ? 'option' : 'presentation';
32
+ el.setAttribute('role', itemRole);
31
33
  tooltip ? el.setAttribute('title', tooltip) : el.removeAttribute('title');
32
34
  return el;
33
35
  });
@@ -1,3 +1,3 @@
1
- import { CollectionComposer, DataItem } from '@refinitiv-ui/utils';
2
- import { ItemData } from '../../item';
1
+ import type { CollectionComposer, DataItem } from '@refinitiv-ui/utils/lib/collection.js';
2
+ import type { ItemData } from '../../item';
3
3
  export declare type ListData<T extends DataItem = ItemData> = T[] | CollectionComposer<T> | null;
@@ -1,11 +1,12 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { ControlElement, CSSResult, PropertyValues, TapEvent, TemplateResult } from '@refinitiv-ui/core';
3
- import { CollectionComposer, DataItem } from '@refinitiv-ui/utils';
4
- import '../item';
5
- import { ItemData } from '../item';
6
- import { ListData } from './helpers/types';
7
- import { ListRenderer } from './helpers/list-renderer';
8
- export { ListData, ListRenderer };
2
+ import { ControlElement, CSSResultGroup, PropertyValues, TapEvent, TemplateResult } from '@refinitiv-ui/core';
3
+ import { CollectionComposer, DataItem } from '@refinitiv-ui/utils/lib/collection.js';
4
+ import type { ItemData } from '../item';
5
+ import type { ListData } from './helpers/types';
6
+ import { ListRenderer } from './helpers/list-renderer.js';
7
+ import '../item/index.js';
8
+ export type { ListData };
9
+ export { ListRenderer };
9
10
  /**
10
11
  * Key direction
11
12
  */
@@ -23,6 +24,7 @@ export declare class List<T extends DataItem = ItemData> extends ControlElement
23
24
  * @returns version number
24
25
  */
25
26
  static get version(): string;
27
+ protected readonly defaultRole: string | null;
26
28
  /**
27
29
  * Used to timestamp renders.
28
30
  * This enables diff checking against item updates,
@@ -71,6 +73,7 @@ export declare class List<T extends DataItem = ItemData> extends ControlElement
71
73
  /**
72
74
  * The data object, used to render the list.
73
75
  * @type {ListData}
76
+ * @default null
74
77
  */
75
78
  get data(): ListData<T>;
76
79
  set data(value: ListData<T>);
@@ -78,12 +81,15 @@ export declare class List<T extends DataItem = ItemData> extends ControlElement
78
81
  /**
79
82
  * Returns the first selected item value.
80
83
  * Use `values` when multiple selection mode is enabled.
84
+ * @default -
81
85
  */
82
86
  get value(): string;
83
87
  set value(value: string);
84
88
  /**
85
89
  * Returns a values collection of the currently
86
90
  * selected item values
91
+ * @type {string[]}
92
+ * @default []
87
93
  * @readonly
88
94
  */
89
95
  get values(): string[];
@@ -100,10 +106,20 @@ export declare class List<T extends DataItem = ItemData> extends ControlElement
100
106
  */
101
107
  up(): void;
102
108
  /**
103
- * Navigate up through the list items
109
+ * Navigate down through the list items
104
110
  * @returns {void}
105
111
  */
106
112
  down(): void;
113
+ /**
114
+ * Navigate to first focusable item of the list
115
+ * @returns {void}
116
+ */
117
+ first(): void;
118
+ /**
119
+ * Navigate to first focusable item of the list
120
+ * @returns {void}
121
+ */
122
+ last(): void;
107
123
  /**
108
124
  * Proxy for querying the composer
109
125
  * @param engine composer querying engine
@@ -262,13 +278,14 @@ export declare class List<T extends DataItem = ItemData> extends ControlElement
262
278
  protected renderLightDOM(): void;
263
279
  protected firstUpdated(changeProperties: PropertyValues): void;
264
280
  protected update(changeProperties: PropertyValues): void;
281
+ protected updated(changedProperties: PropertyValues): void;
265
282
  /**
266
- * A `CSSResult` that will be used
283
+ * A `CSSResultGroup` that will be used
267
284
  * to style the host, slotted children
268
285
  * and the internal template of the element.
269
286
  * @return CSS template
270
287
  */
271
- static get styles(): CSSResult | CSSResult[];
288
+ static get styles(): CSSResultGroup;
272
289
  /**
273
290
  * A `TemplateResult` that will be used
274
291
  * to render the updated internal template.
package/lib/list/index.js CHANGED
@@ -1,14 +1,11 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { ControlElement, css, customElement, html, property, WarningNotice } from '@refinitiv-ui/core';
8
- import { CollectionComposer } from '@refinitiv-ui/utils';
9
- import '../item';
10
- import { ListRenderer } from './helpers/list-renderer';
11
- import { VERSION } from '../';
1
+ import { __decorate } from "tslib";
2
+ import { ControlElement, css, html, 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 { VERSION } from '../version.js';
6
+ import { CollectionComposer } from '@refinitiv-ui/utils/lib/collection.js';
7
+ import { ListRenderer } from './helpers/list-renderer.js';
8
+ import '../item/index.js';
12
9
  export { ListRenderer };
13
10
  /**
14
11
  * Key direction
@@ -26,6 +23,7 @@ const valueFormatWarning = new WarningNotice('The specified \'values\' format do
26
23
  let List = class List extends ControlElement {
27
24
  constructor() {
28
25
  super(...arguments);
26
+ this.defaultRole = 'listbox';
29
27
  /**
30
28
  * Used to timestamp renders.
31
29
  * This enables diff checking against item updates,
@@ -37,7 +35,7 @@ let List = class List extends ControlElement {
37
35
  * @returns Update promise.
38
36
  */
39
37
  this.modificationUpdate = () => {
40
- void this.requestUpdate();
38
+ this.requestUpdate();
41
39
  };
42
40
  /**
43
41
  * Item map; used to link element nodes to data items.
@@ -85,6 +83,7 @@ let List = class List extends ControlElement {
85
83
  /**
86
84
  * The data object, used to render the list.
87
85
  * @type {ListData}
86
+ * @default null
88
87
  */
89
88
  get data() {
90
89
  return this._data;
@@ -108,11 +107,12 @@ let List = class List extends ControlElement {
108
107
  );
109
108
  this.clearMaps();
110
109
  this._data = value;
111
- void this.requestUpdate('data', oldValue);
110
+ this.requestUpdate('data', oldValue);
112
111
  }
113
112
  /**
114
113
  * Returns the first selected item value.
115
114
  * Use `values` when multiple selection mode is enabled.
115
+ * @default -
116
116
  */
117
117
  get value() {
118
118
  return this.values[0] || '';
@@ -125,12 +125,14 @@ let List = class List extends ControlElement {
125
125
  if (item) {
126
126
  this.composer.setItemPropertyValue(item, 'selected', true);
127
127
  }
128
- void this.requestUpdate('value', oldValue);
128
+ this.requestUpdate('value', oldValue);
129
129
  }
130
130
  }
131
131
  /**
132
132
  * Returns a values collection of the currently
133
133
  * selected item values
134
+ * @type {string[]}
135
+ * @default []
134
136
  * @readonly
135
137
  */
136
138
  get values() {
@@ -157,7 +159,7 @@ let List = class List extends ControlElement {
157
159
  matches.forEach((match) => this.composer.setItemPropertyValue(match, 'selected', true));
158
160
  return !this.multiple; // Only set the fist value if multiple is not enabled
159
161
  });
160
- void this.requestUpdate('values', oldValue);
162
+ this.requestUpdate('values', oldValue);
161
163
  }
162
164
  }
163
165
  }
@@ -192,12 +194,28 @@ let List = class List extends ControlElement {
192
194
  this.highlightItem(this.getNextHighlightItem(Direction.UP), true);
193
195
  }
194
196
  /**
195
- * Navigate up through the list items
197
+ * Navigate down through the list items
196
198
  * @returns {void}
197
199
  */
198
200
  down() {
199
201
  this.highlightItem(this.getNextHighlightItem(Direction.DOWN), true);
200
202
  }
203
+ /**
204
+ * Navigate to first focusable item of the list
205
+ * @returns {void}
206
+ */
207
+ first() {
208
+ const firstItem = this.itemMap.get(this.tabbableElements[0]);
209
+ this.highlightItem(firstItem, true);
210
+ }
211
+ /**
212
+ * Navigate to first focusable item of the list
213
+ * @returns {void}
214
+ */
215
+ last() {
216
+ const lastItem = this.itemMap.get(this.tabbableElements[this.tabbableElements.length - 1]);
217
+ this.highlightItem(lastItem, true);
218
+ }
201
219
  /**
202
220
  * Proxy for querying the composer
203
221
  * @param engine composer querying engine
@@ -355,6 +373,12 @@ let List = class List extends ControlElement {
355
373
  case 'ArrowDown':
356
374
  this.down();
357
375
  break;
376
+ case 'Home':
377
+ this.first();
378
+ break;
379
+ case 'End':
380
+ this.last();
381
+ break;
358
382
  default:
359
383
  return;
360
384
  }
@@ -439,7 +463,7 @@ let List = class List extends ControlElement {
439
463
  clearSelection() {
440
464
  this.queryItemsByPropertyValue('selected', true)
441
465
  .forEach((item) => this.composer.setItemPropertyValue(item, 'selected', false));
442
- void this.requestUpdate();
466
+ this.requestUpdate();
443
467
  }
444
468
  /**
445
469
  * Queries and returns all renderable items.
@@ -525,15 +549,14 @@ let List = class List extends ControlElement {
525
549
  const currentChildren = Array.from(this.children);
526
550
  const recyclableElements = this.calculateRecyclableElements(renderItems);
527
551
  const renderChildren = renderItems.map((item) => this.createListItem(item, recyclableElements));
528
- const deletions = currentChildren.filter(item => !renderChildren.includes(item));
529
- deletions.forEach(item => this.removeChild(item));
530
- renderChildren.forEach(item => {
531
- const index = renderChildren.indexOf(item);
552
+ const deletions = currentChildren.filter(element => !renderChildren.includes(element));
553
+ deletions.forEach(element => this.removeChild(element));
554
+ renderChildren.forEach((element, index) => {
532
555
  if (this.children.length === index) {
533
- this.appendChild(item);
556
+ this.appendChild(element);
534
557
  }
535
- else {
536
- this.insertBefore(item, this.children[index]);
558
+ else if (element !== this.children[index]) {
559
+ this.insertBefore(element, this.children[index]);
537
560
  }
538
561
  });
539
562
  }
@@ -552,8 +575,14 @@ let List = class List extends ControlElement {
552
575
  }
553
576
  return super.update(changeProperties);
554
577
  }
578
+ updated(changedProperties) {
579
+ super.updated(changedProperties);
580
+ if (changedProperties.has('multiple')) {
581
+ this.setAttribute('aria-multiselectable', this.multiple ? 'true' : 'false');
582
+ }
583
+ }
555
584
  /**
556
- * A `CSSResult` that will be used
585
+ * A `CSSResultGroup` that will be used
557
586
  * to style the host, slotted children
558
587
  * and the internal template of the element.
559
588
  * @return CSS template
@@ -1,5 +1,5 @@
1
- import { ExtensibleFunction } from './extensible-function';
2
- import { DataItem, CollectionComposer } from '@refinitiv-ui/utils';
1
+ import { ExtensibleFunction } from './extensible-function.js';
2
+ import type { DataItem, CollectionComposer } from '@refinitiv-ui/utils/lib/collection.js';
3
3
  /**
4
4
  * Render function interface
5
5
  * TODO: Move this to @refinitiv-ui/utils
@@ -1,4 +1,4 @@
1
- import { ExtensibleFunction } from './extensible-function';
1
+ import { ExtensibleFunction } from './extensible-function.js';
2
2
  /**
3
3
  * Renderer base class.
4
4
  * Used for creating renderers to render data items.
@@ -0,0 +1,5 @@
1
+ # ef-loader
2
+
3
+ An animated graphical component,
4
+ used to show that an app is performing an action
5
+ in the background such as downloading content.
@@ -1,11 +1,7 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { BasicElement, customElement, html } from '@refinitiv-ui/core';
8
- import { VERSION } from '../';
1
+ import { __decorate } from "tslib";
2
+ import { BasicElement, html } from '@refinitiv-ui/core';
3
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
+ import { VERSION } from '../version.js';
9
5
  /**
10
6
  * Global cache for loader template parts
11
7
  */
@@ -49,13 +49,13 @@
49
49
  "name": "readonly",
50
50
  "description": "Hides text field and clear icon from all pills",
51
51
  "type": "boolean",
52
- "default": "\"false\""
52
+ "default": "false"
53
53
  },
54
54
  {
55
55
  "name": "disabled",
56
56
  "description": "Set disabled state",
57
57
  "type": "boolean",
58
- "default": "\"false\""
58
+ "default": "false"
59
59
  },
60
60
  {
61
61
  "name": "value",
@@ -66,9 +66,10 @@
66
66
  ],
67
67
  "properties": [
68
68
  {
69
- "name": "values",
69
+ "name": "values (readonly)",
70
70
  "description": "Array of item's values ( readonly )",
71
- "type": "string[]"
71
+ "type": "string[]",
72
+ "default": "[]"
72
73
  },
73
74
  {
74
75
  "name": "pillsOnly",
@@ -137,14 +138,14 @@
137
138
  "attribute": "readonly",
138
139
  "description": "Hides text field and clear icon from all pills",
139
140
  "type": "boolean",
140
- "default": "\"false\""
141
+ "default": "false"
141
142
  },
142
143
  {
143
144
  "name": "disabled",
144
145
  "attribute": "disabled",
145
146
  "description": "Set disabled state",
146
147
  "type": "boolean",
147
- "default": "\"false\""
148
+ "default": "false"
148
149
  },
149
150
  {
150
151
  "name": "value",
@@ -0,0 +1,43 @@
1
+ # ef-multi-input
2
+
3
+ An input control component to display a selection of pills
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Type | Default | Description |
8
+ |---------------------|---------------|--------------------------|---------|------------------------------------------------|
9
+ | `data` | | `MultiInputData \| null` | null | The data object, used to render the list. |
10
+ | `disabled` | `disabled` | `boolean` | false | Set disabled state |
11
+ | `error` | `error` | `boolean` | false | Set state to error |
12
+ | `icon` | `icon` | `string` | "" | Specify icon to display inside input box |
13
+ | `maxLength` | `maxlength` | `number \| null` | null | Set character max limit |
14
+ | `minLength` | `minlength` | `number \| null` | null | Set character min limit |
15
+ | `pillsOnly` | `pills-only` | `boolean` | false | Hide text input box |
16
+ | `placeholder` | `placeholder` | `string` | "" | Placeholder text to display in input box |
17
+ | `readonly` | `readonly` | `boolean` | false | Hides text field and clear icon from all pills |
18
+ | `selectionEnd` | | `number \| null` | null | Selection end index |
19
+ | `selectionStart` | | `number \| null` | null | Selection start index |
20
+ | `value` | `value` | `string` | "" | Current value of text field |
21
+ | `values (readonly)` | | `string[]` | [] | Array of item's values ( readonly ) |
22
+ | `warning` | `warning` | `boolean` | false | Set state to warning |
23
+
24
+ ## Methods
25
+
26
+ | Method | Type | Description |
27
+ |---------------------|--------------------------------------------------|--------------------------------------------------|
28
+ | `add` | `(item: any): MultiInputDataItem \| null` | Add a new item to the input. Return newly added object or null if added invalid object.<br /><br />**item**: to add. Object must have at least value and label |
29
+ | `removeByIndex` | `(index: number): MultiInputDataItem \| null` | Removes pill by index. Returns item that removed or null if list was empty<br /><br />**index**: of pill to be removed |
30
+ | `removeByValue` | `(value: string): string` | Removes the item by the value and returns array of removed items<br /><br />**value**: Value of item to remove |
31
+ | `removeLastItem` | `(): MultiInputDataItem \| null` | Removes last item. Returns item that removed or null if list was empty |
32
+ | `select` | `(): void` | Select the contents of input |
33
+ | `setSelectionRange` | `(startSelection: number, endSelection: number): void` | Set the selection range<br /><br />**startSelection**: Start of selection<br />**endSelection**: End of the selection |
34
+
35
+ ## Events
36
+
37
+ | Event | Description |
38
+ |-----------------|--------------------------------------------------|
39
+ | `error-changed` | Dispatched when error state changes.<br />Property `detail.error` is error from validation. |
40
+ | `item-added` | Fired when new pill is added.<br />Property `detail.item` is new added pill.<br />Property `detail.items` is new list of all pills. |
41
+ | `item-error` | Fired when item that attempt to add is invalid.<br />Property `detail.item` is item with an error.<br />Property `detail.items` a current list of pills. |
42
+ | `item-removed` | Fired when item is removed.<br />Property `detail.item` is pill that removed.<br />Property `detail.items` is new list of all pills. |
43
+ | `value-changed` | Fired when new value of text field is changed.<br />Property `detail.value` will be the new value. |
@@ -1,4 +1,4 @@
1
- import { CollectionItem } from '@refinitiv-ui/utils';
1
+ import type { CollectionItem } from '@refinitiv-ui/utils/lib/collection.js';
2
2
  export declare type SelectionIndex = number | null;
3
3
  export declare type MultiInputEvents = 'item-added' | 'item-removed' | 'item-error';
4
4
  export declare type MultiInputData = MultiInputDataItem[];
@@ -1,9 +1,9 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { ControlElement, CSSResult, MultiValue, TemplateResult, PropertyValues } from '@refinitiv-ui/core';
3
- import '../pill';
4
- import '../text-field';
5
- import { MultiInputData, MultiInputDataItem, SelectionIndex } from './helpers/types';
6
- export { MultiInputData, MultiInputDataItem };
2
+ import { ControlElement, CSSResultGroup, MultiValue, TemplateResult, PropertyValues } from '@refinitiv-ui/core';
3
+ import type { MultiInputData, MultiInputDataItem, SelectionIndex } from './helpers/types';
4
+ import '../pill/index.js';
5
+ import '../text-field/index.js';
6
+ export type { MultiInputData, MultiInputDataItem };
7
7
  /**
8
8
  * An input control component to display a selection of pills
9
9
  *
@@ -42,16 +42,17 @@ export declare class MultiInput extends ControlElement implements MultiValue {
42
42
  */
43
43
  static get version(): string;
44
44
  /**
45
- * A `CSSResult` that will be used
45
+ * A `CSSResultGroup` that will be used
46
46
  * to style the host, slotted children
47
47
  * and the internal template of the element.
48
48
  * @return CSS template
49
49
  */
50
- static get styles(): CSSResult | CSSResult[];
50
+ static get styles(): CSSResultGroup;
51
51
  /**
52
52
  * Array of item's values ( readonly )
53
53
  * @readonly
54
54
  * @type {string[]}
55
+ * @default []
55
56
  */
56
57
  get values(): string[];
57
58
  /**
@@ -84,17 +85,20 @@ export declare class MultiInput extends ControlElement implements MultiValue {
84
85
  minLength: number | null;
85
86
  /**
86
87
  * Selection start index
88
+ * @default null
87
89
  */
88
90
  get selectionStart(): number | null;
89
91
  set selectionStart(index: SelectionIndex);
90
92
  /**
91
93
  * Selection end index
94
+ * @default null
92
95
  */
93
96
  get selectionEnd(): number | null;
94
97
  set selectionEnd(index: SelectionIndex);
95
98
  /**
96
99
  * The data object, used to render the list.
97
100
  * @type {MultiInputData | null}
101
+ * @default null
98
102
  */
99
103
  get data(): MultiInputData | null;
100
104
  set data(value: MultiInputData | null);