@refinitiv-ui/elements 5.7.0 → 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 (161) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/lib/autosuggest/custom-elements.json +14 -4
  3. package/lib/autosuggest/custom-elements.md +21 -14
  4. package/lib/autosuggest/index.d.ts +4 -0
  5. package/lib/autosuggest/index.js +4 -0
  6. package/lib/calendar/custom-elements.json +4 -2
  7. package/lib/calendar/custom-elements.md +2 -2
  8. package/lib/calendar/index.d.ts +2 -0
  9. package/lib/calendar/index.js +2 -0
  10. package/lib/canvas/custom-elements.json +7 -5
  11. package/lib/canvas/custom-elements.md +8 -8
  12. package/lib/canvas/index.d.ts +1 -0
  13. package/lib/canvas/index.js +1 -0
  14. package/lib/card/custom-elements.json +3 -1
  15. package/lib/card/custom-elements.md +5 -5
  16. package/lib/card/index.d.ts +2 -0
  17. package/lib/card/index.js +2 -0
  18. package/lib/chart/custom-elements.json +1 -1
  19. package/lib/chart/custom-elements.md +4 -4
  20. package/lib/checkbox/custom-elements.json +8 -4
  21. package/lib/checkbox/custom-elements.md +2 -2
  22. package/lib/checkbox/index.d.ts +3 -1
  23. package/lib/checkbox/index.js +2 -0
  24. package/lib/clock/custom-elements.json +8 -4
  25. package/lib/clock/custom-elements.md +9 -9
  26. package/lib/clock/index.d.ts +2 -0
  27. package/lib/clock/index.js +2 -0
  28. package/lib/clock/themes/halo/dark/index.js +1 -1
  29. package/lib/clock/themes/halo/light/index.js +1 -1
  30. package/lib/clock/themes/solar/charcoal/index.js +1 -1
  31. package/lib/clock/themes/solar/pearl/index.js +1 -1
  32. package/lib/color-dialog/custom-elements.json +21 -8
  33. package/lib/color-dialog/custom-elements.md +22 -22
  34. package/lib/color-dialog/index.d.ts +8 -8
  35. package/lib/color-dialog/index.js +8 -8
  36. package/lib/combo-box/custom-elements.json +19 -10
  37. package/lib/combo-box/custom-elements.md +20 -20
  38. package/lib/combo-box/index.d.ts +10 -2
  39. package/lib/combo-box/index.js +10 -1
  40. package/lib/combo-box/themes/halo/dark/index.js +1 -1
  41. package/lib/combo-box/themes/halo/light/index.js +1 -1
  42. package/lib/combo-box/themes/solar/charcoal/index.js +1 -1
  43. package/lib/combo-box/themes/solar/pearl/index.js +1 -1
  44. package/lib/counter/custom-elements.json +8 -4
  45. package/lib/counter/custom-elements.md +4 -4
  46. package/lib/counter/index.d.ts +2 -0
  47. package/lib/counter/index.js +2 -0
  48. package/lib/datetime-picker/custom-elements.json +48 -19
  49. package/lib/datetime-picker/custom-elements.md +36 -28
  50. package/lib/datetime-picker/index.d.ts +15 -4
  51. package/lib/datetime-picker/index.js +15 -4
  52. package/lib/dialog/custom-elements.json +30 -8
  53. package/lib/dialog/custom-elements.md +16 -16
  54. package/lib/dialog/index.d.ts +7 -10
  55. package/lib/dialog/index.js +7 -10
  56. package/lib/email-field/custom-elements.json +80 -93
  57. package/lib/email-field/custom-elements.md +22 -20
  58. package/lib/email-field/index.d.ts +43 -115
  59. package/lib/email-field/index.js +44 -244
  60. package/lib/flag/custom-elements.md +4 -4
  61. package/lib/flag/index.d.ts +2 -0
  62. package/lib/flag/index.js +2 -0
  63. package/lib/icon/custom-elements.md +4 -4
  64. package/lib/icon/index.d.ts +2 -0
  65. package/lib/icon/index.js +2 -0
  66. package/lib/interactive-chart/custom-elements.json +6 -10
  67. package/lib/interactive-chart/custom-elements.md +6 -7
  68. package/lib/interactive-chart/index.d.ts +5 -2
  69. package/lib/interactive-chart/index.js +5 -2
  70. package/lib/item/custom-elements.json +8 -6
  71. package/lib/item/custom-elements.md +14 -14
  72. package/lib/item/index.d.ts +2 -1
  73. package/lib/item/index.js +2 -1
  74. package/lib/led-gauge/custom-elements.json +4 -4
  75. package/lib/led-gauge/custom-elements.md +2 -2
  76. package/lib/led-gauge/index.d.ts +1 -0
  77. package/lib/led-gauge/index.js +1 -0
  78. package/lib/list/custom-elements.json +18 -5
  79. package/lib/list/custom-elements.md +12 -10
  80. package/lib/list/helpers/list-renderer.js +2 -0
  81. package/lib/list/index.d.ts +19 -2
  82. package/lib/list/index.js +34 -1
  83. package/lib/multi-input/custom-elements.json +3 -2
  84. package/lib/multi-input/custom-elements.md +16 -16
  85. package/lib/multi-input/index.d.ts +4 -0
  86. package/lib/multi-input/index.js +4 -0
  87. package/lib/number-field/custom-elements.json +97 -52
  88. package/lib/number-field/custom-elements.md +27 -22
  89. package/lib/number-field/index.d.ts +92 -47
  90. package/lib/number-field/index.js +113 -80
  91. package/lib/overlay/custom-elements.json +23 -13
  92. package/lib/overlay/custom-elements.md +29 -29
  93. package/lib/overlay/elements/overlay.d.ts +5 -0
  94. package/lib/overlay-menu/custom-elements.json +66 -14
  95. package/lib/overlay-menu/custom-elements.md +19 -19
  96. package/lib/overlay-menu/index.d.ts +13 -11
  97. package/lib/overlay-menu/index.js +13 -11
  98. package/lib/password-field/custom-elements.json +62 -67
  99. package/lib/password-field/custom-elements.md +19 -11
  100. package/lib/password-field/index.d.ts +42 -94
  101. package/lib/password-field/index.js +48 -194
  102. package/lib/pill/custom-elements.json +4 -2
  103. package/lib/pill/custom-elements.md +1 -1
  104. package/lib/pill/index.d.ts +1 -1
  105. package/lib/pill/index.js +1 -1
  106. package/lib/radio-button/custom-elements.json +8 -6
  107. package/lib/radio-button/custom-elements.md +3 -3
  108. package/lib/radio-button/index.d.ts +6 -5
  109. package/lib/radio-button/index.js +5 -4
  110. package/lib/search-field/custom-elements.json +70 -74
  111. package/lib/search-field/custom-elements.md +24 -16
  112. package/lib/search-field/index.d.ts +43 -100
  113. package/lib/search-field/index.js +46 -215
  114. package/lib/select/custom-elements.json +3 -2
  115. package/lib/select/custom-elements.md +10 -10
  116. package/lib/select/index.d.ts +11 -3
  117. package/lib/select/index.js +65 -26
  118. package/lib/sidebar-layout/custom-elements.json +2 -6
  119. package/lib/sidebar-layout/custom-elements.md +5 -6
  120. package/lib/sidebar-layout/index.d.ts +2 -1
  121. package/lib/slider/custom-elements.json +2 -2
  122. package/lib/slider/custom-elements.md +1 -1
  123. package/lib/slider/index.d.ts +1 -1
  124. package/lib/slider/index.js +1 -1
  125. package/lib/sparkline/custom-elements.json +4 -4
  126. package/lib/sparkline/custom-elements.md +2 -2
  127. package/lib/sparkline/index.d.ts +3 -1
  128. package/lib/sparkline/index.js +2 -0
  129. package/lib/swing-gauge/custom-elements.json +5 -3
  130. package/lib/swing-gauge/custom-elements.md +11 -11
  131. package/lib/swing-gauge/index.d.ts +3 -1
  132. package/lib/swing-gauge/index.js +3 -1
  133. package/lib/text-field/custom-elements.json +76 -87
  134. package/lib/text-field/custom-elements.md +24 -26
  135. package/lib/text-field/index.d.ts +50 -92
  136. package/lib/text-field/index.js +81 -230
  137. package/lib/time-picker/custom-elements.md +3 -3
  138. package/lib/time-picker/index.d.ts +3 -0
  139. package/lib/time-picker/index.js +3 -0
  140. package/lib/toggle/custom-elements.json +4 -2
  141. package/lib/toggle/custom-elements.md +1 -1
  142. package/lib/toggle/index.d.ts +2 -1
  143. package/lib/toggle/index.js +1 -0
  144. package/lib/tree/custom-elements.json +2 -1
  145. package/lib/tree/custom-elements.md +1 -1
  146. package/lib/tree/elements/tree.d.ts +1 -0
  147. package/lib/tree/elements/tree.js +1 -0
  148. package/lib/tree/themes/halo/dark/index.js +1 -1
  149. package/lib/tree/themes/halo/light/index.js +1 -1
  150. package/lib/tree/themes/solar/charcoal/index.js +1 -1
  151. package/lib/tree/themes/solar/pearl/index.js +1 -1
  152. package/lib/tree-select/custom-elements.json +8 -4
  153. package/lib/tree-select/custom-elements.md +3 -3
  154. package/lib/tree-select/index.d.ts +5 -3
  155. package/lib/tree-select/index.js +3 -2
  156. package/lib/tree-select/themes/halo/dark/index.js +1 -1
  157. package/lib/tree-select/themes/halo/light/index.js +1 -1
  158. package/lib/tree-select/themes/solar/charcoal/index.js +1 -1
  159. package/lib/tree-select/themes/solar/pearl/index.js +1 -1
  160. package/lib/version.js +1 -1
  161. package/package.json +10 -10
@@ -17,7 +17,7 @@ Allows users to make selections from a range of values
17
17
  | `showSteps` | `show-steps` | `boolean` | false | Show steps marker on slider. |
18
18
  | `step` | `step` | `string` | "1" | Specified size of increment or decrement jump between value. |
19
19
  | `to` | `to` | `string` | "100" | Uses with `range`. High value of slider in range mode |
20
- | `value` | `value` | `string` | 0 | Value of slider. Not applicable in range mode. |
20
+ | `value` | `value` | `string` | "0" | Value of slider. Not applicable in range mode. |
21
21
 
22
22
  ## Events
23
23
 
@@ -5,7 +5,7 @@ import '../number-field/index.js';
5
5
  * Allows users to make selections from a range of values
6
6
  *
7
7
  * @attr {string} value - Value of slider. Not applicable in range mode.
8
- * @prop {string} [value=0] - Value of slider. Not applicable in range mode.
8
+ * @prop {string} [value="0"] - Value of slider. Not applicable in range mode.
9
9
  *
10
10
  * @attr {boolean} readonly - Set readonly state
11
11
  * @prop {boolean} [readonly=false] - Set readonly state
@@ -49,7 +49,7 @@ const clamp = function (value, min, max) {
49
49
  * Allows users to make selections from a range of values
50
50
  *
51
51
  * @attr {string} value - Value of slider. Not applicable in range mode.
52
- * @prop {string} [value=0] - Value of slider. Not applicable in range mode.
52
+ * @prop {string} [value="0"] - Value of slider. Not applicable in range mode.
53
53
  *
54
54
  * @attr {boolean} readonly - Set readonly state
55
55
  * @prop {boolean} [readonly=false] - Set readonly state
@@ -7,13 +7,13 @@
7
7
  {
8
8
  "name": "data",
9
9
  "description": "Chart data as an array of number.",
10
- "type": "object",
10
+ "type": "number[]",
11
11
  "default": "[]"
12
12
  },
13
13
  {
14
14
  "name": "previous-data",
15
15
  "description": "Chart previous data as an array of number.",
16
- "type": "object",
16
+ "type": "number[]",
17
17
  "default": "[]"
18
18
  },
19
19
  {
@@ -27,14 +27,14 @@
27
27
  "name": "data",
28
28
  "attribute": "data",
29
29
  "description": "Chart data as an array of number.",
30
- "type": "object",
30
+ "type": "number[]",
31
31
  "default": "[]"
32
32
  },
33
33
  {
34
34
  "name": "previousData",
35
35
  "attribute": "previous-data",
36
36
  "description": "Chart previous data as an array of number.",
37
- "type": "object",
37
+ "type": "number[]",
38
38
  "default": "[]"
39
39
  },
40
40
  {
@@ -4,8 +4,8 @@
4
4
 
5
5
  | Property | Attribute | Type | Default | Description |
6
6
  |------------------|-------------------|-----------------------|---------|--------------------------------------------------|
7
- | `data` | `data` | `object` | [] | Chart data as an array of number. |
8
- | `previousData` | `previous-data` | `object` | [] | Chart previous data as an array of number. |
7
+ | `data` | `data` | `number[]` | [] | Chart data as an array of number. |
8
+ | `previousData` | `previous-data` | `number[]` | [] | Chart previous data as an array of number. |
9
9
  | `referenceValue` | `reference-value` | `number \| undefined` | | Baseline value to show horizontal line (optional) |
10
10
 
11
11
  ## Events
@@ -11,12 +11,14 @@ export declare class Sparkline extends ResponsiveElement {
11
11
  static get version(): string;
12
12
  /**
13
13
  * Chart data as an array of number.
14
+ * @type {number[]}
14
15
  */
15
16
  data: number[];
16
17
  /**
17
18
  * Chart previous data as an array of number.
19
+ * @type {number[]}
18
20
  */
19
- previousData: never[];
21
+ previousData: number[];
20
22
  /**
21
23
  * Baseline value to show horizontal line (optional)
22
24
  */
@@ -11,10 +11,12 @@ let Sparkline = class Sparkline extends ResponsiveElement {
11
11
  super(...arguments);
12
12
  /**
13
13
  * Chart data as an array of number.
14
+ * @type {number[]}
14
15
  */
15
16
  this.data = [];
16
17
  /**
17
18
  * Chart previous data as an array of number.
19
+ * @type {number[]}
18
20
  */
19
21
  this.previousData = [];
20
22
  /**
@@ -96,12 +96,14 @@
96
96
  },
97
97
  {
98
98
  "name": "valueFormatter",
99
- "description": "Custome value formatter",
99
+ "description": "Custom value formatter",
100
+ "type": "SwingGaugeValueFormatter",
100
101
  "default": "\"defaultValueFormatter\""
101
102
  },
102
103
  {
103
- "name": "canvasSize",
104
- "description": "Getter size of component"
104
+ "name": "canvasSize (readonly)",
105
+ "description": "Getter size of component",
106
+ "type": "SwingGaugeCanvasSize"
105
107
  }
106
108
  ]
107
109
  }
@@ -4,14 +4,14 @@ Data visualisation showing the percentage between two values
4
4
 
5
5
  ## Properties
6
6
 
7
- | Property | Attribute | Modifiers | Type | Default | Description |
8
- |-------------------|--------------------|-----------|----------|-------------------------|------------------------------------|
9
- | `canvasSize` | | readonly | | | Getter size of component |
10
- | `duration` | `duration` | | `number` | 1000 | Animation duration in milliseconds |
11
- | `primaryLabel` | `primary-label` | | `string` | "" | Primary label |
12
- | `primaryLegend` | `primary-legend` | | `string` | "" | Primary value legend |
13
- | `primaryValue` | `primary-value` | | `number` | | Primary value |
14
- | `secondaryLabel` | `secondary-label` | | `string` | "" | Secondary label |
15
- | `secondaryLegend` | `secondary-legend` | | `string` | "" | Secondary value legend |
16
- | `secondaryValue` | `secondary-value` | | `number` | | Secondary value |
17
- | `valueFormatter` | | | | "defaultValueFormatter" | Custome value formatter |
7
+ | Property | Attribute | Type | Default | Description |
8
+ |-------------------------|--------------------|----------------------------|-------------------------|------------------------------------|
9
+ | `canvasSize (readonly)` | | `SwingGaugeCanvasSize` | | Getter size of component |
10
+ | `duration` | `duration` | `number` | 1000 | Animation duration in milliseconds |
11
+ | `primaryLabel` | `primary-label` | `string` | "" | Primary label |
12
+ | `primaryLegend` | `primary-legend` | `string` | "" | Primary value legend |
13
+ | `primaryValue` | `primary-value` | `number` | | Primary value |
14
+ | `secondaryLabel` | `secondary-label` | `string` | "" | Secondary label |
15
+ | `secondaryLegend` | `secondary-legend` | `string` | "" | Secondary value legend |
16
+ | `secondaryValue` | `secondary-value` | `number` | | Secondary value |
17
+ | `valueFormatter` | | `SwingGaugeValueFormatter` | "defaultValueFormatter" | Custom value formatter |
@@ -55,7 +55,8 @@ export declare class SwingGauge extends ResponsiveElement {
55
55
  */
56
56
  secondaryLegend: string;
57
57
  /**
58
- * Custome value formatter
58
+ * Custom value formatter
59
+ * @type {SwingGaugeValueFormatter}
59
60
  */
60
61
  valueFormatter: SwingGaugeValueFormatter;
61
62
  /**
@@ -149,6 +150,7 @@ export declare class SwingGauge extends ResponsiveElement {
149
150
  private canvas;
150
151
  /**
151
152
  * Getter size of component
153
+ * @type {SwingGaugeCanvasSize}
152
154
  * @returns return size of canvas
153
155
  */
154
156
  get canvasSize(): SwingGaugeCanvasSize;
@@ -61,7 +61,8 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
61
61
  */
62
62
  this.secondaryLegend = '';
63
63
  /**
64
- * Custome value formatter
64
+ * Custom value formatter
65
+ * @type {SwingGaugeValueFormatter}
65
66
  */
66
67
  this.valueFormatter = this.defaultValueFormatter;
67
68
  /**
@@ -242,6 +243,7 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
242
243
  }
243
244
  /**
244
245
  * Getter size of component
246
+ * @type {SwingGaugeCanvasSize}
245
247
  * @returns return size of canvas
246
248
  */
247
249
  get canvasSize() {
@@ -3,7 +3,7 @@
3
3
  "tags": [
4
4
  {
5
5
  "name": "ef-text-field",
6
- "description": "Form control element for text",
6
+ "description": "Form control element for text.",
7
7
  "attributes": [
8
8
  {
9
9
  "name": "pattern",
@@ -11,29 +11,10 @@
11
11
  "type": "string",
12
12
  "default": "\"\""
13
13
  },
14
- {
15
- "name": "placeholder",
16
- "description": "Set place holder text",
17
- "type": "string",
18
- "default": "\"\""
19
- },
20
- {
21
- "name": "error",
22
- "description": "Set state to error",
23
- "type": "boolean",
24
- "default": "false"
25
- },
26
- {
27
- "name": "warning",
28
- "description": "Set state to warning",
29
- "type": "boolean",
30
- "default": "false"
31
- },
32
14
  {
33
15
  "name": "icon",
34
16
  "description": "Specify icon to display in input. Value can be icon name",
35
- "type": "string",
36
- "default": "\"\""
17
+ "type": "string | null"
37
18
  },
38
19
  {
39
20
  "name": "icon-has-action",
@@ -41,12 +22,6 @@
41
22
  "type": "boolean",
42
23
  "default": "false"
43
24
  },
44
- {
45
- "name": "transparent",
46
- "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.",
47
- "type": "boolean",
48
- "default": "false"
49
- },
50
25
  {
51
26
  "name": "maxlength",
52
27
  "description": "Set character max limit",
@@ -58,59 +33,61 @@
58
33
  "type": "number | null"
59
34
  },
60
35
  {
61
- "name": "value",
62
- "description": "Input's value",
63
- "type": "string",
64
- "default": "0"
65
- },
66
- {
67
- "name": "readonly",
68
- "description": "Set readonly state",
36
+ "name": "disabled",
37
+ "description": "Set disabled state",
69
38
  "type": "boolean",
70
39
  "default": "false"
71
40
  },
72
41
  {
73
- "name": "disabled",
74
- "description": "Set disabled state",
42
+ "name": "error",
43
+ "description": "Set error state",
75
44
  "type": "boolean",
76
45
  "default": "false"
77
- }
78
- ],
79
- "properties": [
80
- {
81
- "name": "pattern",
82
- "attribute": "pattern",
83
- "description": "Set regular expression for input validation",
84
- "type": "string",
85
- "default": "\"\""
86
46
  },
87
47
  {
88
48
  "name": "placeholder",
89
- "attribute": "placeholder",
90
- "description": "Set place holder text",
49
+ "description": "Set placeholder text",
91
50
  "type": "string",
92
51
  "default": "\"\""
93
52
  },
94
53
  {
95
- "name": "error",
96
- "attribute": "error",
97
- "description": "Set state to error",
54
+ "name": "readonly",
55
+ "description": "Set readonly state",
56
+ "type": "boolean",
57
+ "default": "false"
58
+ },
59
+ {
60
+ "name": "transparent",
61
+ "description": "Disables all other states and border/background styles.",
98
62
  "type": "boolean",
99
63
  "default": "false"
100
64
  },
101
65
  {
102
66
  "name": "warning",
103
- "attribute": "warning",
104
- "description": "Set state to warning",
67
+ "description": "Set warning state",
105
68
  "type": "boolean",
106
69
  "default": "false"
107
70
  },
71
+ {
72
+ "name": "value",
73
+ "description": "Input's value",
74
+ "type": "string",
75
+ "default": "\"\""
76
+ }
77
+ ],
78
+ "properties": [
79
+ {
80
+ "name": "pattern",
81
+ "attribute": "pattern",
82
+ "description": "Set regular expression for input validation",
83
+ "type": "string",
84
+ "default": "\"\""
85
+ },
108
86
  {
109
87
  "name": "icon",
110
88
  "attribute": "icon",
111
89
  "description": "Specify icon to display in input. Value can be icon name",
112
- "type": "string",
113
- "default": "\"\""
90
+ "type": "string | null"
114
91
  },
115
92
  {
116
93
  "name": "iconHasAction",
@@ -119,13 +96,6 @@
119
96
  "type": "boolean",
120
97
  "default": "false"
121
98
  },
122
- {
123
- "name": "transparent",
124
- "attribute": "transparent",
125
- "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.",
126
- "type": "boolean",
127
- "default": "false"
128
- },
129
99
  {
130
100
  "name": "maxLength",
131
101
  "attribute": "maxlength",
@@ -139,21 +109,25 @@
139
109
  "type": "number | null"
140
110
  },
141
111
  {
142
- "name": "selectionStart",
143
- "description": "Selection start index",
144
- "type": "number | null"
112
+ "name": "disabled",
113
+ "attribute": "disabled",
114
+ "description": "Set disabled state",
115
+ "type": "boolean",
116
+ "default": "false"
145
117
  },
146
118
  {
147
- "name": "selectionEnd",
148
- "description": "Selection end index",
149
- "type": "number | null"
119
+ "name": "error",
120
+ "attribute": "error",
121
+ "description": "Set error state",
122
+ "type": "boolean",
123
+ "default": "false"
150
124
  },
151
125
  {
152
- "name": "value",
153
- "attribute": "value",
154
- "description": "Input's value",
126
+ "name": "placeholder",
127
+ "attribute": "placeholder",
128
+ "description": "Set placeholder text",
155
129
  "type": "string",
156
- "default": "0"
130
+ "default": "\"\""
157
131
  },
158
132
  {
159
133
  "name": "readonly",
@@ -163,11 +137,25 @@
163
137
  "default": "false"
164
138
  },
165
139
  {
166
- "name": "disabled",
167
- "attribute": "disabled",
168
- "description": "Set disabled state",
140
+ "name": "transparent",
141
+ "attribute": "transparent",
142
+ "description": "Disables all other states and border/background styles.",
169
143
  "type": "boolean",
170
144
  "default": "false"
145
+ },
146
+ {
147
+ "name": "warning",
148
+ "attribute": "warning",
149
+ "description": "Set warning state",
150
+ "type": "boolean",
151
+ "default": "false"
152
+ },
153
+ {
154
+ "name": "value",
155
+ "attribute": "value",
156
+ "description": "Input's value",
157
+ "type": "string",
158
+ "default": "\"\""
171
159
  }
172
160
  ],
173
161
  "events": [
@@ -181,26 +169,27 @@
181
169
  },
182
170
  {
183
171
  "name": "icon-click",
184
- "description": "Dispatched only when element has icon-has-action attribute and icon is clicked"
172
+ "description": "Dispatched when icon is clicked"
185
173
  }
186
174
  ],
187
175
  "methods": [
188
176
  {
189
- "name": "select",
190
- "description": "Select the contents of input",
191
- "params": []
177
+ "name": "onInputInput",
178
+ "description": "",
179
+ "params": [
180
+ {
181
+ "name": "event",
182
+ "type": "InputEvent"
183
+ }
184
+ ]
192
185
  },
193
186
  {
194
- "name": "setSelectionRange",
195
- "description": "Set the selection range",
187
+ "name": "onInputChange",
188
+ "description": "",
196
189
  "params": [
197
190
  {
198
- "name": "startSelection",
199
- "description": "Start of selection"
200
- },
201
- {
202
- "name": "endSelection",
203
- "description": "End of the selection"
191
+ "name": "event",
192
+ "type": "InputEvent"
204
193
  }
205
194
  ]
206
195
  }
@@ -1,37 +1,35 @@
1
1
  # ef-text-field
2
2
 
3
- Form control element for text
3
+ Form control element for text.
4
4
 
5
5
  ## Properties
6
6
 
7
- | Property | Attribute | Type | Default | Description |
8
- |------------------|-------------------|------------------|---------|--------------------------------------------------|
9
- | `disabled` | `disabled` | `boolean` | false | Set disabled state |
10
- | `error` | `error` | `boolean` | false | Set state to error |
11
- | `icon` | `icon` | `string` | "" | Specify icon to display in input. Value can be icon name |
12
- | `iconHasAction` | `icon-has-action` | `boolean` | false | Specify when icon need to be clickable |
13
- | `maxLength` | `maxlength` | `number \| null` | null | Set character max limit |
14
- | `minLength` | `minlength` | `number \| null` | null | Set character min limit |
15
- | `pattern` | `pattern` | `string` | "" | Set regular expression for input validation |
16
- | `placeholder` | `placeholder` | `string` | "" | Set place holder text |
17
- | `readonly` | `readonly` | `boolean` | false | Set readonly state |
18
- | `selectionEnd` | | `number \| null` | | Selection end index |
19
- | `selectionStart` | | `number \| null` | | Selection start index |
20
- | `transparent` | `transparent` | `boolean` | false | Disables all other states and border/background styles.<br />Use with advanced composite elements requiring e.g. multi selection in<br />combo-box when parent container handles element states. |
21
- | `value` | `value` | `string` | 0 | Input's value |
22
- | `warning` | `warning` | `boolean` | false | Set state to warning |
7
+ | Property | Attribute | Type | Default | Description |
8
+ |-----------------|-------------------|------------------|---------|--------------------------------------------------|
9
+ | `disabled` | `disabled` | `boolean` | false | Set disabled state |
10
+ | `error` | `error` | `boolean` | false | Set error state |
11
+ | `icon` | `icon` | `string \| null` | null | Specify icon to display in input. Value can be icon name |
12
+ | `iconHasAction` | `icon-has-action` | `boolean` | false | Specify when icon need to be clickable |
13
+ | `maxLength` | `maxlength` | `number \| null` | null | Set character max limit |
14
+ | `minLength` | `minlength` | `number \| null` | null | Set character min limit |
15
+ | `pattern` | `pattern` | `string` | "" | Set regular expression for input validation |
16
+ | `placeholder` | `placeholder` | `string` | "" | Set placeholder text |
17
+ | `readonly` | `readonly` | `boolean` | false | Set readonly state |
18
+ | `transparent` | `transparent` | `boolean` | false | Disables all other states and border/background styles. |
19
+ | `value` | `value` | `string` | "" | Input's value |
20
+ | `warning` | `warning` | `boolean` | false | Set warning state |
23
21
 
24
22
  ## Methods
25
23
 
26
- | Method | Type | Description |
27
- |---------------------|--------------------------------------------------|--------------------------------------------------|
28
- | `select` | `(): void` | Select the contents of input |
29
- | `setSelectionRange` | `(startSelection: number, endSelection: number): void` | Set the selection range<br /><br />**startSelection**: Start of selection<br />**endSelection**: End of the selection |
24
+ | Method | Type |
25
+ |-----------------|----------------------|
26
+ | `onInputChange` | `(event: any): void` |
27
+ | `onInputInput` | `(event: any): void` |
30
28
 
31
29
  ## Events
32
30
 
33
- | Event | Description |
34
- |-----------------|--------------------------------------------------|
35
- | `error-changed` | Dispatched when error state changes |
36
- | `icon-click` | Dispatched only when element has icon-has-action attribute and icon is clicked |
37
- | `value-changed` | Dispatched when value changes |
31
+ | Event | Description |
32
+ |-----------------|-------------------------------------|
33
+ | `error-changed` | Dispatched when error state changes |
34
+ | `icon-click` | Dispatched when icon is clicked |
35
+ | `value-changed` | Dispatched when value changes |