@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.
- package/CHANGELOG.md +19 -0
- package/lib/autosuggest/custom-elements.json +14 -4
- package/lib/autosuggest/custom-elements.md +21 -14
- package/lib/autosuggest/index.d.ts +4 -0
- package/lib/autosuggest/index.js +4 -0
- package/lib/calendar/custom-elements.json +4 -2
- package/lib/calendar/custom-elements.md +2 -2
- package/lib/calendar/index.d.ts +2 -0
- package/lib/calendar/index.js +2 -0
- package/lib/canvas/custom-elements.json +7 -5
- package/lib/canvas/custom-elements.md +8 -8
- package/lib/canvas/index.d.ts +1 -0
- package/lib/canvas/index.js +1 -0
- package/lib/card/custom-elements.json +3 -1
- package/lib/card/custom-elements.md +5 -5
- package/lib/card/index.d.ts +2 -0
- package/lib/card/index.js +2 -0
- package/lib/chart/custom-elements.json +1 -1
- package/lib/chart/custom-elements.md +4 -4
- package/lib/checkbox/custom-elements.json +8 -4
- package/lib/checkbox/custom-elements.md +2 -2
- package/lib/checkbox/index.d.ts +3 -1
- package/lib/checkbox/index.js +2 -0
- package/lib/clock/custom-elements.json +8 -4
- package/lib/clock/custom-elements.md +9 -9
- package/lib/clock/index.d.ts +2 -0
- package/lib/clock/index.js +2 -0
- package/lib/clock/themes/halo/dark/index.js +1 -1
- package/lib/clock/themes/halo/light/index.js +1 -1
- package/lib/clock/themes/solar/charcoal/index.js +1 -1
- package/lib/clock/themes/solar/pearl/index.js +1 -1
- package/lib/color-dialog/custom-elements.json +21 -8
- package/lib/color-dialog/custom-elements.md +22 -22
- package/lib/color-dialog/index.d.ts +8 -8
- package/lib/color-dialog/index.js +8 -8
- package/lib/combo-box/custom-elements.json +19 -10
- package/lib/combo-box/custom-elements.md +20 -20
- package/lib/combo-box/index.d.ts +10 -2
- package/lib/combo-box/index.js +10 -1
- package/lib/combo-box/themes/halo/dark/index.js +1 -1
- package/lib/combo-box/themes/halo/light/index.js +1 -1
- package/lib/combo-box/themes/solar/charcoal/index.js +1 -1
- package/lib/combo-box/themes/solar/pearl/index.js +1 -1
- package/lib/counter/custom-elements.json +8 -4
- package/lib/counter/custom-elements.md +4 -4
- package/lib/counter/index.d.ts +2 -0
- package/lib/counter/index.js +2 -0
- package/lib/datetime-picker/custom-elements.json +48 -19
- package/lib/datetime-picker/custom-elements.md +36 -28
- package/lib/datetime-picker/index.d.ts +15 -4
- package/lib/datetime-picker/index.js +15 -4
- package/lib/dialog/custom-elements.json +30 -8
- package/lib/dialog/custom-elements.md +16 -16
- package/lib/dialog/index.d.ts +7 -10
- package/lib/dialog/index.js +7 -10
- package/lib/email-field/custom-elements.json +80 -93
- package/lib/email-field/custom-elements.md +22 -20
- package/lib/email-field/index.d.ts +43 -115
- package/lib/email-field/index.js +44 -244
- package/lib/flag/custom-elements.md +4 -4
- package/lib/flag/index.d.ts +2 -0
- package/lib/flag/index.js +2 -0
- package/lib/icon/custom-elements.md +4 -4
- package/lib/icon/index.d.ts +2 -0
- package/lib/icon/index.js +2 -0
- package/lib/interactive-chart/custom-elements.json +6 -10
- package/lib/interactive-chart/custom-elements.md +6 -7
- package/lib/interactive-chart/index.d.ts +5 -2
- package/lib/interactive-chart/index.js +5 -2
- package/lib/item/custom-elements.json +8 -6
- package/lib/item/custom-elements.md +14 -14
- package/lib/item/index.d.ts +2 -1
- package/lib/item/index.js +2 -1
- package/lib/led-gauge/custom-elements.json +4 -4
- package/lib/led-gauge/custom-elements.md +2 -2
- package/lib/led-gauge/index.d.ts +1 -0
- package/lib/led-gauge/index.js +1 -0
- package/lib/list/custom-elements.json +18 -5
- package/lib/list/custom-elements.md +12 -10
- package/lib/list/helpers/list-renderer.js +2 -0
- package/lib/list/index.d.ts +19 -2
- package/lib/list/index.js +34 -1
- package/lib/multi-input/custom-elements.json +3 -2
- package/lib/multi-input/custom-elements.md +16 -16
- package/lib/multi-input/index.d.ts +4 -0
- package/lib/multi-input/index.js +4 -0
- package/lib/number-field/custom-elements.json +97 -52
- package/lib/number-field/custom-elements.md +27 -22
- package/lib/number-field/index.d.ts +92 -47
- package/lib/number-field/index.js +113 -80
- package/lib/overlay/custom-elements.json +23 -13
- package/lib/overlay/custom-elements.md +29 -29
- package/lib/overlay/elements/overlay.d.ts +5 -0
- package/lib/overlay-menu/custom-elements.json +66 -14
- package/lib/overlay-menu/custom-elements.md +19 -19
- package/lib/overlay-menu/index.d.ts +13 -11
- package/lib/overlay-menu/index.js +13 -11
- package/lib/password-field/custom-elements.json +62 -67
- package/lib/password-field/custom-elements.md +19 -11
- package/lib/password-field/index.d.ts +42 -94
- package/lib/password-field/index.js +48 -194
- package/lib/pill/custom-elements.json +4 -2
- package/lib/pill/custom-elements.md +1 -1
- package/lib/pill/index.d.ts +1 -1
- package/lib/pill/index.js +1 -1
- package/lib/radio-button/custom-elements.json +8 -6
- package/lib/radio-button/custom-elements.md +3 -3
- package/lib/radio-button/index.d.ts +6 -5
- package/lib/radio-button/index.js +5 -4
- package/lib/search-field/custom-elements.json +70 -74
- package/lib/search-field/custom-elements.md +24 -16
- package/lib/search-field/index.d.ts +43 -100
- package/lib/search-field/index.js +46 -215
- package/lib/select/custom-elements.json +3 -2
- package/lib/select/custom-elements.md +10 -10
- package/lib/select/index.d.ts +11 -3
- package/lib/select/index.js +65 -26
- package/lib/sidebar-layout/custom-elements.json +2 -6
- package/lib/sidebar-layout/custom-elements.md +5 -6
- package/lib/sidebar-layout/index.d.ts +2 -1
- package/lib/slider/custom-elements.json +2 -2
- package/lib/slider/custom-elements.md +1 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +1 -1
- package/lib/sparkline/custom-elements.json +4 -4
- package/lib/sparkline/custom-elements.md +2 -2
- package/lib/sparkline/index.d.ts +3 -1
- package/lib/sparkline/index.js +2 -0
- package/lib/swing-gauge/custom-elements.json +5 -3
- package/lib/swing-gauge/custom-elements.md +11 -11
- package/lib/swing-gauge/index.d.ts +3 -1
- package/lib/swing-gauge/index.js +3 -1
- package/lib/text-field/custom-elements.json +76 -87
- package/lib/text-field/custom-elements.md +24 -26
- package/lib/text-field/index.d.ts +50 -92
- package/lib/text-field/index.js +81 -230
- package/lib/time-picker/custom-elements.md +3 -3
- package/lib/time-picker/index.d.ts +3 -0
- package/lib/time-picker/index.js +3 -0
- package/lib/toggle/custom-elements.json +4 -2
- package/lib/toggle/custom-elements.md +1 -1
- package/lib/toggle/index.d.ts +2 -1
- package/lib/toggle/index.js +1 -0
- package/lib/tree/custom-elements.json +2 -1
- package/lib/tree/custom-elements.md +1 -1
- package/lib/tree/elements/tree.d.ts +1 -0
- package/lib/tree/elements/tree.js +1 -0
- package/lib/tree/themes/halo/dark/index.js +1 -1
- package/lib/tree/themes/halo/light/index.js +1 -1
- package/lib/tree/themes/solar/charcoal/index.js +1 -1
- package/lib/tree/themes/solar/pearl/index.js +1 -1
- package/lib/tree-select/custom-elements.json +8 -4
- package/lib/tree-select/custom-elements.md +3 -3
- package/lib/tree-select/index.d.ts +5 -3
- package/lib/tree-select/index.js +3 -2
- package/lib/tree-select/themes/halo/dark/index.js +1 -1
- package/lib/tree-select/themes/halo/light/index.js +1 -1
- package/lib/tree-select/themes/solar/charcoal/index.js +1 -1
- package/lib/tree-select/themes/solar/pearl/index.js +1 -1
- package/lib/version.js +1 -1
- 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
|
|
20
|
+
| `value` | `value` | `string` | "0" | Value of slider. Not applicable in range mode. |
|
|
21
21
|
|
|
22
22
|
## Events
|
|
23
23
|
|
package/lib/slider/index.d.ts
CHANGED
|
@@ -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
|
package/lib/slider/index.js
CHANGED
|
@@ -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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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` | `
|
|
8
|
-
| `previousData` | `previous-data` | `
|
|
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
|
package/lib/sparkline/index.d.ts
CHANGED
|
@@ -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:
|
|
21
|
+
previousData: number[];
|
|
20
22
|
/**
|
|
21
23
|
* Baseline value to show horizontal line (optional)
|
|
22
24
|
*/
|
package/lib/sparkline/index.js
CHANGED
|
@@ -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": "
|
|
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
|
|
8
|
-
|
|
9
|
-
| `canvasSize`
|
|
10
|
-
| `duration`
|
|
11
|
-
| `primaryLabel`
|
|
12
|
-
| `primaryLegend`
|
|
13
|
-
| `primaryValue`
|
|
14
|
-
| `secondaryLabel`
|
|
15
|
-
| `secondaryLegend`
|
|
16
|
-
| `secondaryValue`
|
|
17
|
-
| `valueFormatter`
|
|
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
|
-
*
|
|
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;
|
package/lib/swing-gauge/index.js
CHANGED
|
@@ -61,7 +61,8 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
61
61
|
*/
|
|
62
62
|
this.secondaryLegend = '';
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
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": "
|
|
62
|
-
"description": "
|
|
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": "
|
|
74
|
-
"description": "Set
|
|
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
|
-
"
|
|
90
|
-
"description": "Set place holder text",
|
|
49
|
+
"description": "Set placeholder text",
|
|
91
50
|
"type": "string",
|
|
92
51
|
"default": "\"\""
|
|
93
52
|
},
|
|
94
53
|
{
|
|
95
|
-
"name": "
|
|
96
|
-
"
|
|
97
|
-
"
|
|
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
|
-
"
|
|
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": "
|
|
143
|
-
"
|
|
144
|
-
"
|
|
112
|
+
"name": "disabled",
|
|
113
|
+
"attribute": "disabled",
|
|
114
|
+
"description": "Set disabled state",
|
|
115
|
+
"type": "boolean",
|
|
116
|
+
"default": "false"
|
|
145
117
|
},
|
|
146
118
|
{
|
|
147
|
-
"name": "
|
|
148
|
-
"
|
|
149
|
-
"
|
|
119
|
+
"name": "error",
|
|
120
|
+
"attribute": "error",
|
|
121
|
+
"description": "Set error state",
|
|
122
|
+
"type": "boolean",
|
|
123
|
+
"default": "false"
|
|
150
124
|
},
|
|
151
125
|
{
|
|
152
|
-
"name": "
|
|
153
|
-
"attribute": "
|
|
154
|
-
"description": "
|
|
126
|
+
"name": "placeholder",
|
|
127
|
+
"attribute": "placeholder",
|
|
128
|
+
"description": "Set placeholder text",
|
|
155
129
|
"type": "string",
|
|
156
|
-
"default": "
|
|
130
|
+
"default": "\"\""
|
|
157
131
|
},
|
|
158
132
|
{
|
|
159
133
|
"name": "readonly",
|
|
@@ -163,11 +137,25 @@
|
|
|
163
137
|
"default": "false"
|
|
164
138
|
},
|
|
165
139
|
{
|
|
166
|
-
"name": "
|
|
167
|
-
"attribute": "
|
|
168
|
-
"description": "
|
|
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
|
|
172
|
+
"description": "Dispatched when icon is clicked"
|
|
185
173
|
}
|
|
186
174
|
],
|
|
187
175
|
"methods": [
|
|
188
176
|
{
|
|
189
|
-
"name": "
|
|
190
|
-
"description": "
|
|
191
|
-
"params": [
|
|
177
|
+
"name": "onInputInput",
|
|
178
|
+
"description": "",
|
|
179
|
+
"params": [
|
|
180
|
+
{
|
|
181
|
+
"name": "event",
|
|
182
|
+
"type": "InputEvent"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
192
185
|
},
|
|
193
186
|
{
|
|
194
|
-
"name": "
|
|
195
|
-
"description": "
|
|
187
|
+
"name": "onInputChange",
|
|
188
|
+
"description": "",
|
|
196
189
|
"params": [
|
|
197
190
|
{
|
|
198
|
-
"name": "
|
|
199
|
-
"
|
|
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
|
|
8
|
-
|
|
9
|
-
| `disabled`
|
|
10
|
-
| `error`
|
|
11
|
-
| `icon`
|
|
12
|
-
| `iconHasAction`
|
|
13
|
-
| `maxLength`
|
|
14
|
-
| `minLength`
|
|
15
|
-
| `pattern`
|
|
16
|
-
| `placeholder`
|
|
17
|
-
| `readonly`
|
|
18
|
-
| `
|
|
19
|
-
| `
|
|
20
|
-
| `
|
|
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
|
|
27
|
-
|
|
28
|
-
| `
|
|
29
|
-
| `
|
|
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
|
|
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 |
|