@refinitiv-ui/elements 5.6.0 → 5.8.2-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 (185) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/lib/accordion/custom-elements.md +18 -0
  3. package/lib/appstate-bar/custom-elements.md +22 -0
  4. package/lib/autosuggest/custom-elements.json +24 -4
  5. package/lib/autosuggest/custom-elements.md +54 -0
  6. package/lib/autosuggest/index.d.ts +4 -0
  7. package/lib/autosuggest/index.js +4 -0
  8. package/lib/button/custom-elements.json +2 -2
  9. package/lib/button/custom-elements.md +23 -0
  10. package/lib/button-bar/custom-elements.md +9 -0
  11. package/lib/calendar/custom-elements.json +8 -6
  12. package/lib/calendar/custom-elements.md +35 -0
  13. package/lib/calendar/index.d.ts +2 -0
  14. package/lib/calendar/index.js +2 -0
  15. package/lib/canvas/custom-elements.json +7 -5
  16. package/lib/canvas/custom-elements.md +27 -0
  17. package/lib/canvas/index.d.ts +1 -0
  18. package/lib/canvas/index.js +1 -0
  19. package/lib/card/custom-elements.json +3 -1
  20. package/lib/card/custom-elements.md +24 -0
  21. package/lib/card/index.d.ts +2 -0
  22. package/lib/card/index.js +2 -0
  23. package/lib/chart/custom-elements.json +1 -1
  24. package/lib/chart/custom-elements.md +16 -0
  25. package/lib/checkbox/custom-elements.json +12 -8
  26. package/lib/checkbox/custom-elements.md +18 -0
  27. package/lib/checkbox/index.d.ts +3 -1
  28. package/lib/checkbox/index.js +2 -0
  29. package/lib/clock/custom-elements.json +8 -4
  30. package/lib/clock/custom-elements.md +28 -0
  31. package/lib/clock/index.d.ts +2 -0
  32. package/lib/clock/index.js +2 -0
  33. package/lib/clock/themes/halo/dark/index.js +1 -1
  34. package/lib/clock/themes/halo/light/index.js +1 -1
  35. package/lib/clock/themes/solar/charcoal/index.js +1 -1
  36. package/lib/clock/themes/solar/pearl/index.js +1 -1
  37. package/lib/collapse/custom-elements.md +27 -0
  38. package/lib/color-dialog/custom-elements.json +29 -16
  39. package/lib/color-dialog/custom-elements.md +39 -0
  40. package/lib/color-dialog/index.d.ts +8 -8
  41. package/lib/color-dialog/index.js +8 -8
  42. package/lib/combo-box/custom-elements.json +28 -16
  43. package/lib/combo-box/custom-elements.md +35 -0
  44. package/lib/combo-box/index.d.ts +10 -2
  45. package/lib/combo-box/index.js +10 -1
  46. package/lib/combo-box/themes/halo/dark/index.js +1 -1
  47. package/lib/combo-box/themes/halo/light/index.js +1 -1
  48. package/lib/combo-box/themes/solar/charcoal/index.js +1 -1
  49. package/lib/combo-box/themes/solar/pearl/index.js +1 -1
  50. package/lib/counter/custom-elements.json +8 -4
  51. package/lib/counter/custom-elements.md +11 -0
  52. package/lib/counter/index.d.ts +2 -0
  53. package/lib/counter/index.js +2 -0
  54. package/lib/datetime-picker/custom-elements.json +52 -23
  55. package/lib/datetime-picker/custom-elements.md +57 -0
  56. package/lib/datetime-picker/index.d.ts +15 -4
  57. package/lib/datetime-picker/index.js +15 -4
  58. package/lib/dialog/custom-elements.json +34 -12
  59. package/lib/dialog/custom-elements.md +47 -0
  60. package/lib/dialog/index.d.ts +7 -10
  61. package/lib/dialog/index.js +7 -10
  62. package/lib/email-field/custom-elements.json +81 -94
  63. package/lib/email-field/custom-elements.md +37 -0
  64. package/lib/email-field/index.d.ts +43 -115
  65. package/lib/email-field/index.js +44 -244
  66. package/lib/flag/custom-elements.md +10 -0
  67. package/lib/flag/index.d.ts +2 -0
  68. package/lib/flag/index.js +2 -0
  69. package/lib/header/custom-elements.md +18 -0
  70. package/lib/heatmap/custom-elements.md +26 -0
  71. package/lib/icon/custom-elements.md +8 -0
  72. package/lib/icon/index.d.ts +2 -0
  73. package/lib/icon/index.js +2 -0
  74. package/lib/interactive-chart/custom-elements.json +6 -10
  75. package/lib/interactive-chart/custom-elements.md +31 -0
  76. package/lib/interactive-chart/index.d.ts +5 -2
  77. package/lib/interactive-chart/index.js +5 -2
  78. package/lib/item/custom-elements.json +4 -4
  79. package/lib/item/custom-elements.md +29 -0
  80. package/lib/item/index.d.ts +11 -2
  81. package/lib/item/index.js +25 -4
  82. package/lib/label/custom-elements.md +11 -0
  83. package/lib/layout/custom-elements.md +26 -0
  84. package/lib/led-gauge/custom-elements.json +4 -4
  85. package/lib/led-gauge/custom-elements.md +17 -0
  86. package/lib/led-gauge/index.d.ts +1 -0
  87. package/lib/led-gauge/index.js +1 -0
  88. package/lib/list/custom-elements.json +18 -5
  89. package/lib/list/custom-elements.md +32 -0
  90. package/lib/list/helpers/list-renderer.js +2 -0
  91. package/lib/list/index.d.ts +19 -2
  92. package/lib/list/index.js +34 -1
  93. package/lib/loader/custom-elements.md +5 -0
  94. package/lib/multi-input/custom-elements.json +7 -6
  95. package/lib/multi-input/custom-elements.md +43 -0
  96. package/lib/multi-input/index.d.ts +4 -0
  97. package/lib/multi-input/index.js +4 -0
  98. package/lib/notification/custom-elements.md +26 -0
  99. package/lib/number-field/custom-elements.json +99 -54
  100. package/lib/number-field/custom-elements.md +42 -0
  101. package/lib/number-field/index.d.ts +92 -47
  102. package/lib/number-field/index.js +113 -80
  103. package/lib/overlay/custom-elements.json +26 -13
  104. package/lib/overlay/custom-elements.md +54 -0
  105. package/lib/overlay/elements/overlay.d.ts +5 -0
  106. package/lib/overlay-menu/custom-elements.json +70 -20
  107. package/lib/overlay-menu/custom-elements.md +44 -0
  108. package/lib/overlay-menu/index.d.ts +13 -11
  109. package/lib/overlay-menu/index.js +13 -11
  110. package/lib/pagination/custom-elements.md +27 -0
  111. package/lib/panel/custom-elements.md +11 -0
  112. package/lib/password-field/custom-elements.json +62 -67
  113. package/lib/password-field/custom-elements.md +39 -0
  114. package/lib/password-field/index.d.ts +42 -94
  115. package/lib/password-field/index.js +48 -194
  116. package/lib/pill/custom-elements.json +8 -6
  117. package/lib/pill/custom-elements.md +22 -0
  118. package/lib/pill/index.d.ts +1 -1
  119. package/lib/pill/index.js +1 -1
  120. package/lib/progress-bar/custom-elements.md +18 -0
  121. package/lib/radio-button/custom-elements.json +8 -6
  122. package/lib/radio-button/custom-elements.md +19 -0
  123. package/lib/radio-button/index.d.ts +6 -5
  124. package/lib/radio-button/index.js +5 -4
  125. package/lib/rating/custom-elements.md +17 -0
  126. package/lib/search-field/custom-elements.json +70 -74
  127. package/lib/search-field/custom-elements.md +41 -0
  128. package/lib/search-field/index.d.ts +43 -100
  129. package/lib/search-field/index.js +46 -215
  130. package/lib/select/custom-elements.json +5 -4
  131. package/lib/select/custom-elements.md +24 -0
  132. package/lib/select/index.d.ts +11 -3
  133. package/lib/select/index.js +65 -26
  134. package/lib/sidebar-layout/custom-elements.json +2 -6
  135. package/lib/sidebar-layout/custom-elements.md +21 -0
  136. package/lib/sidebar-layout/index.d.ts +2 -1
  137. package/lib/slider/custom-elements.json +4 -4
  138. package/lib/slider/custom-elements.md +28 -0
  139. package/lib/slider/index.d.ts +1 -1
  140. package/lib/slider/index.js +1 -1
  141. package/lib/sparkline/custom-elements.json +4 -4
  142. package/lib/sparkline/custom-elements.md +16 -0
  143. package/lib/sparkline/index.d.ts +3 -1
  144. package/lib/sparkline/index.js +2 -0
  145. package/lib/swing-gauge/custom-elements.json +5 -3
  146. package/lib/swing-gauge/custom-elements.md +17 -0
  147. package/lib/swing-gauge/index.d.ts +3 -1
  148. package/lib/swing-gauge/index.js +3 -1
  149. package/lib/tab/custom-elements.json +2 -2
  150. package/lib/tab/custom-elements.md +22 -0
  151. package/lib/tab-bar/custom-elements.md +11 -0
  152. package/lib/text-field/custom-elements.json +78 -89
  153. package/lib/text-field/custom-elements.md +35 -0
  154. package/lib/text-field/index.d.ts +50 -92
  155. package/lib/text-field/index.js +81 -230
  156. package/lib/time-picker/custom-elements.json +4 -4
  157. package/lib/time-picker/custom-elements.md +28 -0
  158. package/lib/time-picker/index.d.ts +3 -0
  159. package/lib/time-picker/index.js +3 -0
  160. package/lib/toggle/custom-elements.json +8 -6
  161. package/lib/toggle/custom-elements.md +19 -0
  162. package/lib/toggle/index.d.ts +2 -1
  163. package/lib/toggle/index.js +1 -0
  164. package/lib/tooltip/custom-elements.md +14 -0
  165. package/lib/tornado-chart/custom-elements.md +18 -0
  166. package/lib/tree/custom-elements.json +4 -3
  167. package/lib/tree/custom-elements.md +32 -0
  168. package/lib/tree/elements/tree.d.ts +1 -0
  169. package/lib/tree/elements/tree.js +1 -0
  170. package/lib/tree/managers/tree-manager.d.ts +20 -2
  171. package/lib/tree/managers/tree-manager.js +55 -28
  172. package/lib/tree/themes/halo/dark/index.js +1 -1
  173. package/lib/tree/themes/halo/light/index.js +1 -1
  174. package/lib/tree/themes/solar/charcoal/index.js +1 -1
  175. package/lib/tree/themes/solar/pearl/index.js +1 -1
  176. package/lib/tree-select/custom-elements.json +10 -6
  177. package/lib/tree-select/custom-elements.md +26 -0
  178. package/lib/tree-select/index.d.ts +5 -3
  179. package/lib/tree-select/index.js +3 -2
  180. package/lib/tree-select/themes/halo/dark/index.js +1 -1
  181. package/lib/tree-select/themes/halo/light/index.js +1 -1
  182. package/lib/tree-select/themes/solar/charcoal/index.js +1 -1
  183. package/lib/tree-select/themes/solar/pearl/index.js +1 -1
  184. package/lib/version.js +1 -1
  185. package/package.json +293 -12
@@ -15,7 +15,36 @@
15
15
  "name": "opened",
16
16
  "description": "True if the menu is currently displayed",
17
17
  "type": "boolean",
18
- "default": "\"false\""
18
+ "default": "false"
19
+ },
20
+ {
21
+ "name": "with-backdrop",
22
+ "description": "True to show backdrop",
23
+ "type": "boolean",
24
+ "default": "false"
25
+ },
26
+ {
27
+ "name": "no-cancel-on-esc-key",
28
+ "description": "Set to true to disable canceling the overlay with the ESC key",
29
+ "type": "boolean",
30
+ "default": "false"
31
+ },
32
+ {
33
+ "name": "no-cancel-on-outside-click",
34
+ "description": "Set to true to disable canceling the overlay by clicking outside it",
35
+ "type": "boolean",
36
+ "default": "false"
37
+ },
38
+ {
39
+ "name": "lock-position-target",
40
+ "description": "Set to true to lock position target",
41
+ "type": "boolean",
42
+ "default": "false"
43
+ },
44
+ {
45
+ "name": "transition-style",
46
+ "description": "Set the transition style",
47
+ "type": "string | null"
19
48
  },
20
49
  {
21
50
  "name": "value",
@@ -26,12 +55,24 @@
26
55
  {
27
56
  "name": "x",
28
57
  "description": "Set a specific x coordinate",
29
- "type": "number"
58
+ "type": "number | undefined"
30
59
  },
31
60
  {
32
61
  "name": "y",
33
62
  "description": "Set a specific y coordinate",
34
- "type": "number"
63
+ "type": "number | undefined"
64
+ },
65
+ {
66
+ "name": "horizontal-offset",
67
+ "description": "A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget`",
68
+ "type": "number",
69
+ "default": "0"
70
+ },
71
+ {
72
+ "name": "vertical-offset",
73
+ "description": "A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget`",
74
+ "type": "number",
75
+ "default": "0"
35
76
  },
36
77
  {
37
78
  "name": "offset",
@@ -41,7 +82,7 @@
41
82
  {
42
83
  "name": "position",
43
84
  "description": "Set position and align against the attach target.",
44
- "type": "{} | undefined"
85
+ "type": "Position[] | undefined"
45
86
  },
46
87
  {
47
88
  "name": "with-backdrop",
@@ -90,54 +131,59 @@
90
131
  {
91
132
  "name": "values",
92
133
  "description": "Array of item's values",
93
- "type": "string[]"
134
+ "type": "string[]",
135
+ "default": "[]"
94
136
  },
95
137
  {
96
138
  "name": "data",
97
- "description": "Construct the menu from data object.\nCannot be used with internal content"
139
+ "description": "Construct the menu from data object.\nCannot be used with internal content",
140
+ "type": "OverlayMenuData|undefined"
98
141
  },
99
142
  {
100
143
  "name": "opened",
101
144
  "attribute": "opened",
102
145
  "description": "True if the menu is currently displayed",
103
146
  "type": "boolean",
104
- "default": "\"false\""
147
+ "default": "false"
105
148
  },
106
149
  {
107
150
  "name": "withBackdrop",
151
+ "attribute": "with-backdrop",
108
152
  "description": "True to show backdrop",
109
153
  "type": "boolean",
110
- "default": "\"false\""
154
+ "default": "false"
111
155
  },
112
156
  {
113
157
  "name": "noCancelOnEscKey",
158
+ "attribute": "no-cancel-on-esc-key",
114
159
  "description": "Set to true to disable canceling the overlay with the ESC key",
115
160
  "type": "boolean",
116
- "default": "\"false\""
161
+ "default": "false"
117
162
  },
118
163
  {
119
164
  "name": "noCancelOnOutsideClick",
165
+ "attribute": "no-cancel-on-outside-click",
120
166
  "description": "Set to true to disable canceling the overlay by clicking outside it",
121
167
  "type": "boolean",
122
- "default": "\"false\""
168
+ "default": "false"
123
169
  },
124
170
  {
125
171
  "name": "lockPositionTarget",
172
+ "attribute": "lock-position-target",
126
173
  "description": "Set to true to lock position target",
127
174
  "type": "boolean",
128
- "default": "\"false\""
175
+ "default": "false"
129
176
  },
130
177
  {
131
178
  "name": "positionTarget",
132
179
  "description": "Position next to the HTML element",
133
- "type": "HTMLElement|null",
134
- "default": "\"null\""
180
+ "type": "HTMLElement | null"
135
181
  },
136
182
  {
137
183
  "name": "transitionStyle",
184
+ "attribute": "transition-style",
138
185
  "description": "Set the transition style",
139
- "type": "string|null",
140
- "default": "\"null\""
186
+ "type": "string | null"
141
187
  },
142
188
  {
143
189
  "name": "value",
@@ -150,23 +196,27 @@
150
196
  "name": "x",
151
197
  "attribute": "x",
152
198
  "description": "Set a specific x coordinate",
153
- "type": "number"
199
+ "type": "number | undefined"
154
200
  },
155
201
  {
156
202
  "name": "y",
157
203
  "attribute": "y",
158
204
  "description": "Set a specific y coordinate",
159
- "type": "number"
205
+ "type": "number | undefined"
160
206
  },
161
207
  {
162
208
  "name": "horizontalOffset",
209
+ "attribute": "horizontal-offset",
163
210
  "description": "A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget`",
164
- "type": "number"
211
+ "type": "number",
212
+ "default": "0"
165
213
  },
166
214
  {
167
215
  "name": "verticalOffset",
216
+ "attribute": "vertical-offset",
168
217
  "description": "A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget`",
169
- "type": "number"
218
+ "type": "number",
219
+ "default": "0"
170
220
  },
171
221
  {
172
222
  "name": "offset",
@@ -178,7 +228,7 @@
178
228
  "name": "position",
179
229
  "attribute": "position",
180
230
  "description": "Set position and align against the attach target.",
181
- "type": "{} | undefined"
231
+ "type": "Position[] | undefined"
182
232
  }
183
233
  ],
184
234
  "events": [
@@ -0,0 +1,44 @@
1
+ # ef-overlay-menu
2
+
3
+ Overlay that supports single-level and multi-level menus
4
+
5
+ ## Attributes
6
+
7
+ | Attribute | Type | Description |
8
+ |------------------------------|-----------|--------------------------------------------------|
9
+ | `horizontal-offset` | `number` | A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget` |
10
+ | `lock-position-target` | `boolean` | Set to true to lock position target |
11
+ | `no-cancel-on-esc-key` | `boolean` | Set to true to disable canceling the overlay with the ESC key |
12
+ | `no-cancel-on-outside-click` | `boolean` | Set to true to disable canceling the overlay by clicking outside it |
13
+ | `transition-style` | `string` | Set the transition style |
14
+ | `vertical-offset` | `number` | A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget` |
15
+ | `with-backdrop` | `boolean` | True to show backdrop |
16
+
17
+ ## Properties
18
+
19
+ | Property | Attribute | Type | Default | Description |
20
+ |--------------------------|------------------------------|------------------------------|---------|--------------------------------------------------|
21
+ | `compact` | `compact` | `boolean` | false | Switch to compact style menu |
22
+ | `data` | | `OverlayMenuData\|undefined` | | Construct the menu from data object.<br />Cannot be used with internal content |
23
+ | `horizontalOffset` | `horizontal-offset` | `number` | 0 | A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget` |
24
+ | `lockPositionTarget` | `lock-position-target` | `boolean` | false | Set to true to lock position target |
25
+ | `noCancelOnEscKey` | `no-cancel-on-esc-key` | `boolean` | false | Set to true to disable canceling the overlay with the ESC key |
26
+ | `noCancelOnOutsideClick` | `no-cancel-on-outside-click` | `boolean` | false | Set to true to disable canceling the overlay by clicking outside it |
27
+ | `offset` | `offset` | `number` | | A pixel value that will be added to the position calculated on the vertical or horizontal axis. The offset is applied dynamically depending on the `positionTarget` |
28
+ | `opened` | `opened` | `boolean` | false | True if the menu is currently displayed |
29
+ | `position` | `position` | `Position[] \| undefined` | | Set position and align against the attach target. |
30
+ | `positionTarget` | | `HTMLElement \| null` | null | Position next to the HTML element |
31
+ | `transitionStyle` | `transition-style` | `string \| null` | null | Set the transition style |
32
+ | `value` | `value` | `string` | "" | Returns the first selected item value. |
33
+ | `values` | | `string[]` | [] | Array of item's values |
34
+ | `verticalOffset` | `vertical-offset` | `number` | 0 | A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget` |
35
+ | `withBackdrop` | `with-backdrop` | `boolean` | false | True to show backdrop |
36
+ | `x` | `x` | `number \| undefined` | | Set a specific x coordinate |
37
+ | `y` | `y` | `number \| undefined` | | Set a specific y coordinate |
38
+
39
+ ## Events
40
+
41
+ | Event | Description |
42
+ |------------------|--------------------------------------------------|
43
+ | `item-trigger` | Dispatched when user clicks on item |
44
+ | `opened-changed` | Dispatched when when opened attribute changes internally. Prevent default to stop opening/closing pipeline |
@@ -25,30 +25,30 @@ export type { OverlayMenuData };
25
25
  * @attr {boolean} lock-position-target - Set to true to lock position target
26
26
  * @prop {boolean} [lockPositionTarget=false] - Set to true to lock position target
27
27
  *
28
- * @prop {HTMLElement|null} [positionTarget=null] - Position next to the HTML element
28
+ * @prop {HTMLElement | null} [positionTarget=null] - Position next to the HTML element
29
29
  *
30
30
  * @attr {string} transition-style - Set the transition style
31
- * @prop {string|null} [transitionStyle=null] - Set the transition style
31
+ * @prop {string | null} [transitionStyle=null] - Set the transition style
32
32
  *
33
- * @prop {string} [value=] - Returns the first selected item from values.
33
+ * @prop {string} [value=""] - Returns the first selected item from values.
34
34
  *
35
- * @attr {number} x - Set a specific x coordinate
36
- * @prop {number} x - Set a specific x coordinate
35
+ * @attr {number | undefined} x - Set a specific x coordinate
36
+ * @prop {number | undefined} x - Set a specific x coordinate
37
37
  *
38
- * @attr {number} y - Set a specific y coordinate
39
- * @prop {number} y - Set a specific y coordinate
38
+ * @attr {number | undefined} y - Set a specific y coordinate
39
+ * @prop {number | undefined} y - Set a specific y coordinate
40
40
  *
41
41
  * @attr {number} horizontal-offset - A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget`
42
- * @prop {number} horizontalOffset - A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget`
42
+ * @prop {number} [horizontalOffset=0] - A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget`
43
43
  *
44
44
  * @attr {number} vertical-offset - A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget`
45
- * @prop {number} verticalOffset - A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget`
45
+ * @prop {number} [verticalOffset=0] - A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget`
46
46
  *
47
47
  * @attr {number} offset - A pixel value that will be added to the position calculated on the vertical or horizontal axis. The offset is applied dynamically depending on the `positionTarget`
48
48
  * @prop {number} offset - A pixel value that will be added to the position calculated on the vertical or horizontal axis. The offset is applied dynamically depending on the `positionTarget`
49
49
  *
50
- * @attr {{} | undefined} position - Set position and align against the attach target.
51
- * @prop {{} | undefined} position - Set position and align against the attach target.
50
+ * @attr {Position[] | undefined} position - Set position and align against the attach target.
51
+ * @prop {Position[] | undefined} position - Set position and align against the attach target.
52
52
  */
53
53
  export declare class OverlayMenu extends Overlay {
54
54
  /**
@@ -81,6 +81,7 @@ export declare class OverlayMenu extends Overlay {
81
81
  /**
82
82
  * Array of item's values
83
83
  * @type {string[]}
84
+ * @default []
84
85
  */
85
86
  get values(): string[];
86
87
  set values(values: string[]);
@@ -92,6 +93,7 @@ export declare class OverlayMenu extends Overlay {
92
93
  /**
93
94
  * Construct the menu from data object.
94
95
  * Cannot be used with internal content
96
+ * @type {OverlayMenuData|undefined}
95
97
  */
96
98
  get data(): OverlayMenuData | undefined;
97
99
  set data(value: OverlayMenuData | undefined);
@@ -34,30 +34,30 @@ import { OpenedMenusManager } from './managers/menu-manager.js';
34
34
  * @attr {boolean} lock-position-target - Set to true to lock position target
35
35
  * @prop {boolean} [lockPositionTarget=false] - Set to true to lock position target
36
36
  *
37
- * @prop {HTMLElement|null} [positionTarget=null] - Position next to the HTML element
37
+ * @prop {HTMLElement | null} [positionTarget=null] - Position next to the HTML element
38
38
  *
39
39
  * @attr {string} transition-style - Set the transition style
40
- * @prop {string|null} [transitionStyle=null] - Set the transition style
40
+ * @prop {string | null} [transitionStyle=null] - Set the transition style
41
41
  *
42
- * @prop {string} [value=] - Returns the first selected item from values.
42
+ * @prop {string} [value=""] - Returns the first selected item from values.
43
43
  *
44
- * @attr {number} x - Set a specific x coordinate
45
- * @prop {number} x - Set a specific x coordinate
44
+ * @attr {number | undefined} x - Set a specific x coordinate
45
+ * @prop {number | undefined} x - Set a specific x coordinate
46
46
  *
47
- * @attr {number} y - Set a specific y coordinate
48
- * @prop {number} y - Set a specific y coordinate
47
+ * @attr {number | undefined} y - Set a specific y coordinate
48
+ * @prop {number | undefined} y - Set a specific y coordinate
49
49
  *
50
50
  * @attr {number} horizontal-offset - A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget`
51
- * @prop {number} horizontalOffset - A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget`
51
+ * @prop {number} [horizontalOffset=0] - A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget`
52
52
  *
53
53
  * @attr {number} vertical-offset - A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget`
54
- * @prop {number} verticalOffset - A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget`
54
+ * @prop {number} [verticalOffset=0] - A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget`
55
55
  *
56
56
  * @attr {number} offset - A pixel value that will be added to the position calculated on the vertical or horizontal axis. The offset is applied dynamically depending on the `positionTarget`
57
57
  * @prop {number} offset - A pixel value that will be added to the position calculated on the vertical or horizontal axis. The offset is applied dynamically depending on the `positionTarget`
58
58
  *
59
- * @attr {{} | undefined} position - Set position and align against the attach target.
60
- * @prop {{} | undefined} position - Set position and align against the attach target.
59
+ * @attr {Position[] | undefined} position - Set position and align against the attach target.
60
+ * @prop {Position[] | undefined} position - Set position and align against the attach target.
61
61
  */
62
62
  let OverlayMenu = OverlayMenu_1 = class OverlayMenu extends Overlay {
63
63
  constructor() {
@@ -131,6 +131,7 @@ let OverlayMenu = OverlayMenu_1 = class OverlayMenu extends Overlay {
131
131
  /**
132
132
  * Array of item's values
133
133
  * @type {string[]}
134
+ * @default []
134
135
  */
135
136
  get values() {
136
137
  return this.withData ? this.getDataValues() : this.getSlottedValues();
@@ -156,6 +157,7 @@ let OverlayMenu = OverlayMenu_1 = class OverlayMenu extends Overlay {
156
157
  /**
157
158
  * Construct the menu from data object.
158
159
  * Cannot be used with internal content
160
+ * @type {OverlayMenuData|undefined}
159
161
  */
160
162
  get data() {
161
163
  return this._data;
@@ -0,0 +1,27 @@
1
+ # ef-pagination
2
+
3
+ Used to control and navigate through multiple pages
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Type | Default | Description |
8
+ |--------------|---------------|-----------|---------|-------------------------|
9
+ | `disabled` | `disabled` | `boolean` | false | Set state to disable |
10
+ | `page` | `page` | `string` | "1" | Set current page |
11
+ | `pageSize` | `page-size` | `string` | "10" | Number of item per page |
12
+ | `totalItems` | `total-items` | `string` | "10" | Total items |
13
+
14
+ ## Methods
15
+
16
+ | Method | Type | Description |
17
+ |------------|------------|-------------------------|
18
+ | `first` | `(): void` | Go to the first page |
19
+ | `last` | `(): void` | Go to the last page |
20
+ | `next` | `(): void` | Go to the next page |
21
+ | `previous` | `(): void` | Go to the previous page |
22
+
23
+ ## Events
24
+
25
+ | Event | Description |
26
+ |----------------|-------------------------------------------|
27
+ | `page-changed` | Fired when the `page` property is changed |
@@ -0,0 +1,11 @@
1
+ # ef-panel
2
+
3
+ A container for components.
4
+ It provides a standard background color and padding, depends on theme.
5
+
6
+ ## Properties
7
+
8
+ | Property | Attribute | Type | Default | Description |
9
+ |---------------|---------------|-----------|---------|-------------------------------------|
10
+ | `spacing` | `spacing` | `boolean` | false | Apply default padding from theme |
11
+ | `transparent` | `transparent` | `boolean` | false | Set panel background to transparent |
@@ -3,13 +3,19 @@
3
3
  "tags": [
4
4
  {
5
5
  "name": "ef-password-field",
6
- "description": "A form control element for password",
6
+ "description": "A form control element for password.",
7
7
  "attributes": [
8
8
  {
9
- "name": "pattern",
10
- "description": "Set regular expression for input validation",
11
- "type": "string",
12
- "default": "\"\""
9
+ "name": "disabled",
10
+ "description": "Set disabled state",
11
+ "type": "boolean",
12
+ "default": "false"
13
+ },
14
+ {
15
+ "name": "error",
16
+ "description": "Set error state",
17
+ "type": "boolean",
18
+ "default": "false"
13
19
  },
14
20
  {
15
21
  "name": "placeholder",
@@ -18,33 +24,23 @@
18
24
  "default": "\"\""
19
25
  },
20
26
  {
21
- "name": "error",
22
- "description": "Set state to error",
27
+ "name": "readonly",
28
+ "description": "Set readonly state",
23
29
  "type": "boolean",
24
30
  "default": "false"
25
31
  },
26
32
  {
27
- "name": "warning",
28
- "description": "Set state to warning",
33
+ "name": "transparent",
34
+ "description": "Disables all other states and border/background styles.",
29
35
  "type": "boolean",
30
36
  "default": "false"
31
37
  },
32
38
  {
33
- "name": "transparent",
34
- "description": "Disables all other states and border/background styles.\nUse with advanced composite elements requiring e.g. multi selection in\ncombo-box when parent container handles element states.",
39
+ "name": "warning",
40
+ "description": "Set warning state",
35
41
  "type": "boolean",
36
42
  "default": "false"
37
43
  },
38
- {
39
- "name": "minlength",
40
- "description": "Set character minimum limit",
41
- "type": "number | null"
42
- },
43
- {
44
- "name": "maxlength",
45
- "description": "Set character maximum limit",
46
- "type": "number | null"
47
- },
48
44
  {
49
45
  "name": "value",
50
46
  "description": "Input's value",
@@ -52,22 +48,43 @@
52
48
  "default": "\"\""
53
49
  },
54
50
  {
55
- "name": "readonly",
56
- "description": "Set readonly state",
57
- "type": "boolean",
58
- "default": "\"false\""
51
+ "name": "maxlength",
52
+ "description": "Set character max limit",
53
+ "type": "number"
59
54
  },
60
55
  {
61
- "name": "disabled",
62
- "description": "Set disabled state",
63
- "type": "boolean",
64
- "default": "\"false\""
56
+ "name": "minlength",
57
+ "description": "Set character min limit",
58
+ "type": "number"
65
59
  }
66
60
  ],
67
61
  "properties": [
62
+ {
63
+ "name": "disabled",
64
+ "attribute": "disabled",
65
+ "description": "Set disabled state",
66
+ "type": "boolean",
67
+ "default": "false"
68
+ },
69
+ {
70
+ "name": "error",
71
+ "attribute": "error",
72
+ "description": "Set error state",
73
+ "type": "boolean",
74
+ "default": "false"
75
+ },
76
+ {
77
+ "name": "maxLength",
78
+ "description": "Set character max limit",
79
+ "type": "number | null"
80
+ },
81
+ {
82
+ "name": "minLength",
83
+ "description": "Set character min limit",
84
+ "type": "number | null"
85
+ },
68
86
  {
69
87
  "name": "pattern",
70
- "attribute": "pattern",
71
88
  "description": "Set regular expression for input validation",
72
89
  "type": "string",
73
90
  "default": "\"\""
@@ -80,37 +97,25 @@
80
97
  "default": "\"\""
81
98
  },
82
99
  {
83
- "name": "error",
84
- "attribute": "error",
85
- "description": "Set state to error",
86
- "type": "boolean",
87
- "default": "false"
88
- },
89
- {
90
- "name": "warning",
91
- "attribute": "warning",
92
- "description": "Set state to warning",
100
+ "name": "readonly",
101
+ "attribute": "readonly",
102
+ "description": "Set readonly state",
93
103
  "type": "boolean",
94
104
  "default": "false"
95
105
  },
96
106
  {
97
107
  "name": "transparent",
98
108
  "attribute": "transparent",
99
- "description": "Disables all other states and border/background styles.\nUse with advanced composite elements requiring e.g. multi selection in\ncombo-box when parent container handles element states.",
109
+ "description": "Disables all other states and border/background styles.",
100
110
  "type": "boolean",
101
111
  "default": "false"
102
112
  },
103
113
  {
104
- "name": "minLength",
105
- "attribute": "minlength",
106
- "description": "Set character minimum limit",
107
- "type": "number | null"
108
- },
109
- {
110
- "name": "maxLength",
111
- "attribute": "maxlength",
112
- "description": "Set character maximum limit",
113
- "type": "number | null"
114
+ "name": "warning",
115
+ "attribute": "warning",
116
+ "description": "Set warning state",
117
+ "type": "boolean",
118
+ "default": "false"
114
119
  },
115
120
  {
116
121
  "name": "value",
@@ -118,20 +123,6 @@
118
123
  "description": "Input's value",
119
124
  "type": "string",
120
125
  "default": "\"\""
121
- },
122
- {
123
- "name": "readonly",
124
- "attribute": "readonly",
125
- "description": "Set readonly state",
126
- "type": "boolean",
127
- "default": "\"false\""
128
- },
129
- {
130
- "name": "disabled",
131
- "attribute": "disabled",
132
- "description": "Set disabled state",
133
- "type": "boolean",
134
- "default": "\"false\""
135
126
  }
136
127
  ],
137
128
  "events": [
@@ -142,12 +133,16 @@
142
133
  {
143
134
  "name": "error-changed",
144
135
  "description": "Dispatched when error state changes"
136
+ },
137
+ {
138
+ "name": "icon-click",
139
+ "description": "Dispatched when icon is clicked"
145
140
  }
146
141
  ],
147
142
  "methods": [
148
143
  {
149
- "name": "select",
150
- "description": "Select the contents of input",
144
+ "name": "renderIcon",
145
+ "description": "",
151
146
  "params": []
152
147
  }
153
148
  ]
@@ -0,0 +1,39 @@
1
+ # ef-password-field
2
+
3
+ A form control element for password.
4
+
5
+ ## Attributes
6
+
7
+ | Attribute | Type | Description |
8
+ |-------------|----------|-------------------------|
9
+ | `maxlength` | `number` | Set character max limit |
10
+ | `minlength` | `number` | Set character min limit |
11
+
12
+ ## Properties
13
+
14
+ | Property | Attribute | Type | Default | Description |
15
+ |---------------|---------------|------------------|---------|--------------------------------------------------|
16
+ | `disabled` | `disabled` | `boolean` | false | Set disabled state |
17
+ | `error` | `error` | `boolean` | false | Set error state |
18
+ | `maxLength` | | `number \| null` | null | Set character max limit |
19
+ | `minLength` | | `number \| null` | null | Set character min limit |
20
+ | `pattern` | | `string` | "" | Set regular expression for input validation |
21
+ | `placeholder` | `placeholder` | `string` | "" | Set placeholder text |
22
+ | `readonly` | `readonly` | `boolean` | false | Set readonly state |
23
+ | `transparent` | `transparent` | `boolean` | false | Disables all other states and border/background styles. |
24
+ | `value` | `value` | `string` | "" | Input's value |
25
+ | `warning` | `warning` | `boolean` | false | Set warning state |
26
+
27
+ ## Methods
28
+
29
+ | Method | Type |
30
+ |--------------|-----------|
31
+ | `renderIcon` | `(): any` |
32
+
33
+ ## Events
34
+
35
+ | Event | Description |
36
+ |-----------------|-------------------------------------|
37
+ | `error-changed` | Dispatched when error state changes |
38
+ | `icon-click` | Dispatched when icon is clicked |
39
+ | `value-changed` | Dispatched when value changes |