@refinitiv-ui/elements 5.6.0 → 5.7.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 +16 -0
- package/lib/accordion/custom-elements.md +18 -0
- package/lib/appstate-bar/custom-elements.md +22 -0
- package/lib/autosuggest/custom-elements.json +12 -2
- package/lib/autosuggest/custom-elements.md +47 -0
- package/lib/button/custom-elements.json +2 -2
- package/lib/button/custom-elements.md +23 -0
- package/lib/button-bar/custom-elements.md +9 -0
- package/lib/calendar/custom-elements.json +4 -4
- package/lib/calendar/custom-elements.md +35 -0
- package/lib/canvas/custom-elements.md +27 -0
- package/lib/card/custom-elements.md +24 -0
- package/lib/chart/custom-elements.md +16 -0
- package/lib/checkbox/custom-elements.json +4 -4
- package/lib/checkbox/custom-elements.md +18 -0
- package/lib/clock/custom-elements.md +28 -0
- package/lib/collapse/custom-elements.md +27 -0
- package/lib/color-dialog/custom-elements.json +8 -8
- package/lib/color-dialog/custom-elements.md +39 -0
- package/lib/combo-box/custom-elements.json +9 -6
- package/lib/combo-box/custom-elements.md +35 -0
- package/lib/counter/custom-elements.md +11 -0
- package/lib/datetime-picker/custom-elements.json +4 -4
- package/lib/datetime-picker/custom-elements.md +49 -0
- package/lib/dialog/custom-elements.json +4 -4
- package/lib/dialog/custom-elements.md +47 -0
- package/lib/email-field/custom-elements.json +6 -6
- package/lib/email-field/custom-elements.md +35 -0
- package/lib/flag/custom-elements.md +10 -0
- package/lib/header/custom-elements.md +18 -0
- package/lib/heatmap/custom-elements.md +26 -0
- package/lib/icon/custom-elements.md +8 -0
- package/lib/interactive-chart/custom-elements.md +32 -0
- package/lib/item/custom-elements.json +6 -8
- package/lib/item/custom-elements.md +29 -0
- package/lib/item/index.d.ts +9 -1
- package/lib/item/index.js +23 -3
- package/lib/label/custom-elements.md +11 -0
- package/lib/layout/custom-elements.md +26 -0
- package/lib/led-gauge/custom-elements.md +17 -0
- package/lib/list/custom-elements.md +30 -0
- package/lib/loader/custom-elements.md +5 -0
- package/lib/multi-input/custom-elements.json +4 -4
- package/lib/multi-input/custom-elements.md +43 -0
- package/lib/notification/custom-elements.md +26 -0
- package/lib/number-field/custom-elements.json +6 -6
- package/lib/number-field/custom-elements.md +37 -0
- package/lib/overlay/custom-elements.json +3 -0
- package/lib/overlay/custom-elements.md +54 -0
- package/lib/overlay-menu/custom-elements.json +10 -12
- package/lib/overlay-menu/custom-elements.md +44 -0
- package/lib/pagination/custom-elements.md +27 -0
- package/lib/panel/custom-elements.md +11 -0
- package/lib/password-field/custom-elements.json +6 -6
- package/lib/password-field/custom-elements.md +31 -0
- package/lib/pill/custom-elements.json +4 -4
- package/lib/pill/custom-elements.md +22 -0
- package/lib/progress-bar/custom-elements.md +18 -0
- package/lib/radio-button/custom-elements.json +8 -8
- package/lib/radio-button/custom-elements.md +19 -0
- package/lib/rating/custom-elements.md +17 -0
- package/lib/search-field/custom-elements.json +6 -6
- package/lib/search-field/custom-elements.md +33 -0
- package/lib/select/custom-elements.json +2 -2
- package/lib/select/custom-elements.md +24 -0
- package/lib/sidebar-layout/custom-elements.md +22 -0
- package/lib/slider/custom-elements.json +6 -6
- package/lib/slider/custom-elements.md +28 -0
- package/lib/sparkline/custom-elements.md +16 -0
- package/lib/swing-gauge/custom-elements.md +17 -0
- package/lib/tab/custom-elements.json +2 -2
- package/lib/tab/custom-elements.md +22 -0
- package/lib/tab-bar/custom-elements.md +11 -0
- package/lib/text-field/custom-elements.json +6 -6
- package/lib/text-field/custom-elements.md +37 -0
- package/lib/time-picker/custom-elements.json +4 -4
- package/lib/time-picker/custom-elements.md +28 -0
- package/lib/toggle/custom-elements.json +4 -4
- package/lib/toggle/custom-elements.md +19 -0
- package/lib/tooltip/custom-elements.md +14 -0
- package/lib/tornado-chart/custom-elements.md +18 -0
- package/lib/tree/custom-elements.json +2 -2
- package/lib/tree/custom-elements.md +32 -0
- package/lib/tree/managers/tree-manager.d.ts +20 -2
- package/lib/tree/managers/tree-manager.js +55 -28
- package/lib/tree-select/custom-elements.json +2 -2
- package/lib/tree-select/custom-elements.md +26 -0
- package/lib/version.js +1 -1
- package/package.json +7 -7
|
@@ -14,25 +14,25 @@
|
|
|
14
14
|
"name": "value",
|
|
15
15
|
"description": "Value of the radio button",
|
|
16
16
|
"type": "string",
|
|
17
|
-
"default": "
|
|
17
|
+
"default": "0"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"name": "name",
|
|
21
21
|
"description": "Group multiple radio buttons by assigning the same name",
|
|
22
22
|
"type": "string",
|
|
23
|
-
"default": "
|
|
23
|
+
"default": "0"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "readonly",
|
|
27
27
|
"description": "Set readonly state",
|
|
28
28
|
"type": "boolean",
|
|
29
|
-
"default": "
|
|
29
|
+
"default": "false"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"name": "disabled",
|
|
33
33
|
"description": "Set disabled state",
|
|
34
34
|
"type": "boolean",
|
|
35
|
-
"default": "
|
|
35
|
+
"default": "false"
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
"properties": [
|
|
@@ -47,28 +47,28 @@
|
|
|
47
47
|
"attribute": "value",
|
|
48
48
|
"description": "Value of the radio button",
|
|
49
49
|
"type": "string",
|
|
50
|
-
"default": "
|
|
50
|
+
"default": "0"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"name": "name",
|
|
54
54
|
"attribute": "name",
|
|
55
55
|
"description": "Group multiple radio buttons by assigning the same name",
|
|
56
56
|
"type": "string",
|
|
57
|
-
"default": "
|
|
57
|
+
"default": "0"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"name": "readonly",
|
|
61
61
|
"attribute": "readonly",
|
|
62
62
|
"description": "Set readonly state",
|
|
63
63
|
"type": "boolean",
|
|
64
|
-
"default": "
|
|
64
|
+
"default": "false"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "disabled",
|
|
68
68
|
"attribute": "disabled",
|
|
69
69
|
"description": "Set disabled state",
|
|
70
70
|
"type": "boolean",
|
|
71
|
-
"default": "
|
|
71
|
+
"default": "false"
|
|
72
72
|
}
|
|
73
73
|
],
|
|
74
74
|
"events": [
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# ef-radio-button
|
|
2
|
+
|
|
3
|
+
Basic radio button
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|------------|------------|-----------|---------|--------------------------------------------------|
|
|
9
|
+
| `checked` | `checked` | `boolean` | | Radio button checked state |
|
|
10
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
11
|
+
| `name` | `name` | `string` | 0 | Group multiple radio buttons by assigning the same name |
|
|
12
|
+
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
13
|
+
| `value` | `value` | `string` | 0 | Value of the radio button |
|
|
14
|
+
|
|
15
|
+
## Events
|
|
16
|
+
|
|
17
|
+
| Event | Description |
|
|
18
|
+
|-------------------|--------------------------------------------|
|
|
19
|
+
| `checked-changed` | Fired when the `checked` property changes. |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# ef-rating
|
|
2
|
+
|
|
3
|
+
Star visualisation component that is generally used for ranking
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|---------------|---------------|-----------|---------|--------------------------------------------------|
|
|
9
|
+
| `interactive` | `interactive` | `boolean` | false | Make it possible to interact with rating control and change the value |
|
|
10
|
+
| `max` | `max` | `string` | "5" | Set number of total stars |
|
|
11
|
+
| `value` | `value` | `string` | "0" | Set number of selected stars. Value can be any number between 0 and `max`.<br />Decimal values are calculated to empty star (0 - .25); half-star (.25 - .75) and full star (.75 - 1) |
|
|
12
|
+
|
|
13
|
+
## Events
|
|
14
|
+
|
|
15
|
+
| Event | Description |
|
|
16
|
+
|-----------------|---------------------------------|
|
|
17
|
+
| `value-changed` | Fired when the `value` changes. |
|
|
@@ -55,19 +55,19 @@
|
|
|
55
55
|
"name": "value",
|
|
56
56
|
"description": "Input's value",
|
|
57
57
|
"type": "string",
|
|
58
|
-
"default": "
|
|
58
|
+
"default": "0"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"name": "readonly",
|
|
62
62
|
"description": "Set readonly state",
|
|
63
63
|
"type": "boolean",
|
|
64
|
-
"default": "
|
|
64
|
+
"default": "false"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "disabled",
|
|
68
68
|
"description": "Set disabled state",
|
|
69
69
|
"type": "boolean",
|
|
70
|
-
"default": "
|
|
70
|
+
"default": "false"
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
73
|
"properties": [
|
|
@@ -130,21 +130,21 @@
|
|
|
130
130
|
"attribute": "value",
|
|
131
131
|
"description": "Input's value",
|
|
132
132
|
"type": "string",
|
|
133
|
-
"default": "
|
|
133
|
+
"default": "0"
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
"name": "readonly",
|
|
137
137
|
"attribute": "readonly",
|
|
138
138
|
"description": "Set readonly state",
|
|
139
139
|
"type": "boolean",
|
|
140
|
-
"default": "
|
|
140
|
+
"default": "false"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"name": "disabled",
|
|
144
144
|
"attribute": "disabled",
|
|
145
145
|
"description": "Set disabled state",
|
|
146
146
|
"type": "boolean",
|
|
147
|
-
"default": "
|
|
147
|
+
"default": "false"
|
|
148
148
|
}
|
|
149
149
|
],
|
|
150
150
|
"events": [
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# ef-search-field
|
|
2
|
+
|
|
3
|
+
Form control to get a search input from users.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
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
|
+
| `iconHasAction` | `icon-has-action` | `boolean` | false | Specify when icon need to be clickable |
|
|
12
|
+
| `maxLength` | `maxlength` | `number \| null` | null | Set character max limit |
|
|
13
|
+
| `minLength` | `minlength` | `number \| null` | null | Set character min limit |
|
|
14
|
+
| `pattern` | `pattern` | `string` | "" | Set regular expression for input validation |
|
|
15
|
+
| `placeholder` | `placeholder` | `string` | "" | Set place holder text |
|
|
16
|
+
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
17
|
+
| `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. |
|
|
18
|
+
| `value` | `value` | `string` | 0 | Input's value |
|
|
19
|
+
| `warning` | `warning` | `boolean` | false | Set state to warning |
|
|
20
|
+
|
|
21
|
+
## Methods
|
|
22
|
+
|
|
23
|
+
| Method | Type | Description |
|
|
24
|
+
|----------|------------|------------------------------|
|
|
25
|
+
| `select` | `(): void` | Select the contents of input |
|
|
26
|
+
|
|
27
|
+
## Events
|
|
28
|
+
|
|
29
|
+
| Event | Description |
|
|
30
|
+
|-----------------|--------------------------------------------------|
|
|
31
|
+
| `error-changed` | Dispatched when error state changes |
|
|
32
|
+
| `icon-click` | Dispatched only when element has icon-has-action attribute and icon is clicked |
|
|
33
|
+
| `value-changed` | Dispatched when value changes |
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"name": "disabled",
|
|
34
34
|
"description": "Set disabled state",
|
|
35
35
|
"type": "boolean",
|
|
36
|
-
"default": "
|
|
36
|
+
"default": "false"
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
39
|
"properties": [
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"attribute": "disabled",
|
|
86
86
|
"description": "Set disabled state",
|
|
87
87
|
"type": "boolean",
|
|
88
|
-
"default": "
|
|
88
|
+
"default": "false"
|
|
89
89
|
}
|
|
90
90
|
],
|
|
91
91
|
"events": [
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ef-select
|
|
2
|
+
|
|
3
|
+
Expands upon the native select element,
|
|
4
|
+
providing a fully themeable dropdown element.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Modifiers | Type | Default | Description |
|
|
9
|
+
|---------------|---------------|-----------|----------------------|---------|--------------------------------------------------|
|
|
10
|
+
| `data` | | | `SelectData \| null` | | Construct the menu from data object. Cannot be used with slotted content |
|
|
11
|
+
| `disabled` | `disabled` | | `boolean` | false | Set disabled state |
|
|
12
|
+
| `error` | `error` | | `boolean` | false | Set state to error |
|
|
13
|
+
| `label` | | readonly | `string` | | Current text content of the selected value |
|
|
14
|
+
| `opened` | `opened` | | `boolean` | false | Toggles the opened state of the list |
|
|
15
|
+
| `placeholder` | `placeholder` | | `string` | "" | Placeholder to display when no value is set |
|
|
16
|
+
| `value` | | | `string` | | Value of the element |
|
|
17
|
+
| `warning` | `warning` | | `boolean` | false | Set state to warning |
|
|
18
|
+
|
|
19
|
+
## Events
|
|
20
|
+
|
|
21
|
+
| Event | Description |
|
|
22
|
+
|------------------|-----------------------------------------|
|
|
23
|
+
| `opened-changed` | Fired when the opened property changes. |
|
|
24
|
+
| `value-changed` | Fired when the value property changes. |
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ef-sidebar-layout
|
|
2
|
+
|
|
3
|
+
Provides an app layout with sidebar.
|
|
4
|
+
There are 4 sections that can be slotted a component in.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|-------------------|--------------------|---------------------|---------|--------------------------------------------------|
|
|
10
|
+
| `collapsed` | `collapsed` | `boolean` | false | Set to hide sidebar |
|
|
11
|
+
| `sidebar` | | | | Property to get sidebar |
|
|
12
|
+
| `sidebarPosition` | `sidebar-position` | `"left" \| "right"` | "left" | Set sidebar position to left or right |
|
|
13
|
+
| `sidebarWidth` | `sidebar-width` | `string` | | Set the width of the sidebar. The value could be in both px or %, e.g. 300px, 30% |
|
|
14
|
+
|
|
15
|
+
## Slots
|
|
16
|
+
|
|
17
|
+
| Name | Description |
|
|
18
|
+
|-------------------|--------------------------|
|
|
19
|
+
| `main-content` | Content of main section. |
|
|
20
|
+
| `main-header` | Main header. |
|
|
21
|
+
| `sidebar-content` | Content of sidebar. |
|
|
22
|
+
| `sidebar-header` | Sidebar header. |
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
"name": "value",
|
|
63
63
|
"description": "Value of slider. Not applicable in range mode.",
|
|
64
64
|
"type": "string",
|
|
65
|
-
"default": "
|
|
65
|
+
"default": "0"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"name": "readonly",
|
|
69
69
|
"description": "Set readonly state",
|
|
70
70
|
"type": "boolean",
|
|
71
|
-
"default": "
|
|
71
|
+
"default": "false"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
"name": "disabled",
|
|
75
75
|
"description": "Set disabled state",
|
|
76
76
|
"type": "boolean",
|
|
77
|
-
"default": "
|
|
77
|
+
"default": "false"
|
|
78
78
|
}
|
|
79
79
|
],
|
|
80
80
|
"properties": [
|
|
@@ -145,21 +145,21 @@
|
|
|
145
145
|
"attribute": "value",
|
|
146
146
|
"description": "Value of slider. Not applicable in range mode.",
|
|
147
147
|
"type": "string",
|
|
148
|
-
"default": "
|
|
148
|
+
"default": "0"
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
"name": "readonly",
|
|
152
152
|
"attribute": "readonly",
|
|
153
153
|
"description": "Set readonly state",
|
|
154
154
|
"type": "boolean",
|
|
155
|
-
"default": "
|
|
155
|
+
"default": "false"
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
"name": "disabled",
|
|
159
159
|
"attribute": "disabled",
|
|
160
160
|
"description": "Set disabled state",
|
|
161
161
|
"type": "boolean",
|
|
162
|
-
"default": "
|
|
162
|
+
"default": "false"
|
|
163
163
|
}
|
|
164
164
|
],
|
|
165
165
|
"events": [
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ef-slider
|
|
2
|
+
|
|
3
|
+
Allows users to make selections from a range of values
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|------------------|--------------------|----------------------------|---------|--------------------------------------------------|
|
|
9
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
10
|
+
| `from` | `from` | `string` | "0" | Uses with `range`. Low value of slider in range mode. |
|
|
11
|
+
| `max` | `max` | `string` | "100" | Slider maximum value of slider. |
|
|
12
|
+
| `min` | `min` | `string` | "0" | Set minimum value of slider. |
|
|
13
|
+
| `minRange` | `min-range` | `string` | "0" | Uses with `range`. Set minimum allowance value (distance) between `from` and `to`. |
|
|
14
|
+
| `range` | `range` | `boolean` | false | Set slider to range mode. Instead of a single value, slider will provide `from` and `to`. |
|
|
15
|
+
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
16
|
+
| `showInputField` | `show-input-field` | `"" \| "readonly" \| null` | null | Show input number field. |
|
|
17
|
+
| `showSteps` | `show-steps` | `boolean` | false | Show steps marker on slider. |
|
|
18
|
+
| `step` | `step` | `string` | "1" | Specified size of increment or decrement jump between value. |
|
|
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. |
|
|
21
|
+
|
|
22
|
+
## Events
|
|
23
|
+
|
|
24
|
+
| Event | Description |
|
|
25
|
+
|-----------------|---------------------------------|
|
|
26
|
+
| `from-changed` | Fired when the `from` changes. |
|
|
27
|
+
| `to-changed` | Fired when the `to` changes. |
|
|
28
|
+
| `value-changed` | Fired when the `value` changes. |
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# ef-sparkline
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Property | Attribute | Type | Default | Description |
|
|
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. |
|
|
9
|
+
| `referenceValue` | `reference-value` | `number \| undefined` | | Baseline value to show horizontal line (optional) |
|
|
10
|
+
|
|
11
|
+
## Events
|
|
12
|
+
|
|
13
|
+
| Event | Description |
|
|
14
|
+
|----------------|--------------------------------------------------|
|
|
15
|
+
| `data-changed` | Fired when data is changed |
|
|
16
|
+
| `data-error` | Fired when data has error and chart cannot be updated |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# ef-swing-gauge
|
|
2
|
+
|
|
3
|
+
Data visualisation showing the percentage between two values
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
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 |
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"name": "disabled",
|
|
52
52
|
"description": "Set disabled state",
|
|
53
53
|
"type": "boolean",
|
|
54
|
-
"default": "
|
|
54
|
+
"default": "false"
|
|
55
55
|
}
|
|
56
56
|
],
|
|
57
57
|
"properties": [
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"attribute": "disabled",
|
|
110
110
|
"description": "Set disabled state",
|
|
111
111
|
"type": "boolean",
|
|
112
|
-
"default": "
|
|
112
|
+
"default": "false"
|
|
113
113
|
}
|
|
114
114
|
],
|
|
115
115
|
"events": [
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ef-tab
|
|
2
|
+
|
|
3
|
+
A building block for individual tab
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|-----------------|-------------------|-----------|---------|---------------------------------------------|
|
|
9
|
+
| `active` | `active` | `boolean` | false | Specify tab's active status |
|
|
10
|
+
| `clears` | `clears` | `boolean` | false | Set tab to clearable |
|
|
11
|
+
| `clearsOnHover` | `clears-on-hover` | `boolean` | false | Set tab to clearable on hover |
|
|
12
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
13
|
+
| `icon` | `icon` | `string` | "" | Specify icon name to display in tab |
|
|
14
|
+
| `label` | `label` | `string` | "" | Specify tab's label text |
|
|
15
|
+
| `lineClamp` | `line-clamp` | `number` | 1 | Limit the number of lines before truncating |
|
|
16
|
+
| `subLabel` | `sub-label` | `string` | "" | Specify tab's sub-label text |
|
|
17
|
+
|
|
18
|
+
## Events
|
|
19
|
+
|
|
20
|
+
| Event | Description |
|
|
21
|
+
|---------|----------------------------------------------|
|
|
22
|
+
| `clear` | Dispatched when click on cross button occurs |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# ef-tab-bar
|
|
2
|
+
|
|
3
|
+
Container for tabs
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|-------------|-------------|---------------------------------|---------|--------------------------------------------------|
|
|
9
|
+
| `alignment` | `alignment` | `"left" \| "center" \| "right"` | "left" | Specify tab's horizontal alignment |
|
|
10
|
+
| `level` | `level` | `"1" \| "2" \| "3"` | "1" | Use level styling from theme |
|
|
11
|
+
| `vertical` | `vertical` | `boolean` | false | Use to switch from horizontal to vertical layout. |
|
|
@@ -61,19 +61,19 @@
|
|
|
61
61
|
"name": "value",
|
|
62
62
|
"description": "Input's value",
|
|
63
63
|
"type": "string",
|
|
64
|
-
"default": "
|
|
64
|
+
"default": "0"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "readonly",
|
|
68
68
|
"description": "Set readonly state",
|
|
69
69
|
"type": "boolean",
|
|
70
|
-
"default": "
|
|
70
|
+
"default": "false"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"name": "disabled",
|
|
74
74
|
"description": "Set disabled state",
|
|
75
75
|
"type": "boolean",
|
|
76
|
-
"default": "
|
|
76
|
+
"default": "false"
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
"properties": [
|
|
@@ -153,21 +153,21 @@
|
|
|
153
153
|
"attribute": "value",
|
|
154
154
|
"description": "Input's value",
|
|
155
155
|
"type": "string",
|
|
156
|
-
"default": "
|
|
156
|
+
"default": "0"
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
"name": "readonly",
|
|
160
160
|
"attribute": "readonly",
|
|
161
161
|
"description": "Set readonly state",
|
|
162
162
|
"type": "boolean",
|
|
163
|
-
"default": "
|
|
163
|
+
"default": "false"
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
"name": "disabled",
|
|
167
167
|
"attribute": "disabled",
|
|
168
168
|
"description": "Set disabled state",
|
|
169
169
|
"type": "boolean",
|
|
170
|
-
"default": "
|
|
170
|
+
"default": "false"
|
|
171
171
|
}
|
|
172
172
|
],
|
|
173
173
|
"events": [
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# ef-text-field
|
|
2
|
+
|
|
3
|
+
Form control element for text
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
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 |
|
|
23
|
+
|
|
24
|
+
## Methods
|
|
25
|
+
|
|
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 |
|
|
30
|
+
|
|
31
|
+
## Events
|
|
32
|
+
|
|
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 |
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"name": "readonly",
|
|
43
43
|
"description": "Set readonly state",
|
|
44
44
|
"type": "boolean",
|
|
45
|
-
"default": "
|
|
45
|
+
"default": "false"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"name": "disabled",
|
|
49
49
|
"description": "Set disabled state",
|
|
50
50
|
"type": "boolean",
|
|
51
|
-
"default": "
|
|
51
|
+
"default": "false"
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
"properties": [
|
|
@@ -96,14 +96,14 @@
|
|
|
96
96
|
"attribute": "readonly",
|
|
97
97
|
"description": "Set readonly state",
|
|
98
98
|
"type": "boolean",
|
|
99
|
-
"default": "
|
|
99
|
+
"default": "false"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"name": "disabled",
|
|
103
103
|
"attribute": "disabled",
|
|
104
104
|
"description": "Set disabled state",
|
|
105
105
|
"type": "boolean",
|
|
106
|
-
"default": "
|
|
106
|
+
"default": "false"
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
109
|
"events": [
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ef-time-picker
|
|
2
|
+
|
|
3
|
+
Control the time input
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|---------------|----------------|------------------|---------|--------------------------------------------------|
|
|
9
|
+
| `amPm` | `am-pm` | `boolean` | false | Toggles 12hr time display |
|
|
10
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
11
|
+
| `hours` | `hours` | `number \| null` | | Hours time segment in 24hr format |
|
|
12
|
+
| `minutes` | `minutes` | `number \| null` | | Minutes time segment |
|
|
13
|
+
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
14
|
+
| `seconds` | `seconds` | `number \| null` | | Seconds time segment |
|
|
15
|
+
| `showSeconds` | `show-seconds` | `boolean` | false | Flag to show seconds time segment in display.<br />Seconds are automatically shown when `hh:mm:ss` time format is provided as a value. |
|
|
16
|
+
| `value` | `value` | `string` | "" | Value of the element |
|
|
17
|
+
|
|
18
|
+
## Methods
|
|
19
|
+
|
|
20
|
+
| Method | Type | Description |
|
|
21
|
+
|----------|------------|-------------------------|
|
|
22
|
+
| `toggle` | `(): void` | Toggles the AM/PM state |
|
|
23
|
+
|
|
24
|
+
## Events
|
|
25
|
+
|
|
26
|
+
| Event | Description |
|
|
27
|
+
|-----------------|-------------------------------|
|
|
28
|
+
| `value-changed` | Dispatched when value changes |
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"name": "readonly",
|
|
27
27
|
"description": "Set readonly state",
|
|
28
28
|
"type": "boolean",
|
|
29
|
-
"default": "
|
|
29
|
+
"default": "false"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"name": "disabled",
|
|
33
33
|
"description": "Set disabled state",
|
|
34
34
|
"type": "boolean",
|
|
35
|
-
"default": "
|
|
35
|
+
"default": "false"
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
"properties": [
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"attribute": "readonly",
|
|
62
62
|
"description": "Set readonly state",
|
|
63
63
|
"type": "boolean",
|
|
64
|
-
"default": "
|
|
64
|
+
"default": "false"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "disabled",
|
|
68
68
|
"attribute": "disabled",
|
|
69
69
|
"description": "Set disabled state",
|
|
70
70
|
"type": "boolean",
|
|
71
|
-
"default": "
|
|
71
|
+
"default": "false"
|
|
72
72
|
}
|
|
73
73
|
],
|
|
74
74
|
"events": [
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# ef-toggle
|
|
2
|
+
|
|
3
|
+
Form control that can toggle between 2 states
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|----------------|-----------------|-----------|---------|-------------------------|
|
|
9
|
+
| `checked` | `checked` | `boolean` | | Value of toggle |
|
|
10
|
+
| `checkedLabel` | `checked-label` | `string` | "" | Label of toggle checked |
|
|
11
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
12
|
+
| `label` | `label` | `string` | "" | Label of toggle |
|
|
13
|
+
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
14
|
+
|
|
15
|
+
## Events
|
|
16
|
+
|
|
17
|
+
| Event | Description |
|
|
18
|
+
|-------------------|--------------------------------------------|
|
|
19
|
+
| `checked-changed` | Fired when the `checked` property changes. |
|