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