@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
|
@@ -6,45 +6,17 @@
|
|
|
6
6
|
"description": "Form control to get a search input from users.",
|
|
7
7
|
"attributes": [
|
|
8
8
|
{
|
|
9
|
-
"name": "
|
|
10
|
-
"description": "Set
|
|
11
|
-
"type": "string",
|
|
12
|
-
"default": "\"\""
|
|
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",
|
|
9
|
+
"name": "disabled",
|
|
10
|
+
"description": "Set disabled state",
|
|
29
11
|
"type": "boolean",
|
|
30
12
|
"default": "false"
|
|
31
13
|
},
|
|
32
14
|
{
|
|
33
|
-
"name": "
|
|
34
|
-
"description": "
|
|
15
|
+
"name": "error",
|
|
16
|
+
"description": "Set error state",
|
|
35
17
|
"type": "boolean",
|
|
36
18
|
"default": "false"
|
|
37
19
|
},
|
|
38
|
-
{
|
|
39
|
-
"name": "maxlength",
|
|
40
|
-
"description": "Set character max limit",
|
|
41
|
-
"type": "number | null"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "minlength",
|
|
45
|
-
"description": "Set character min limit",
|
|
46
|
-
"type": "number | null"
|
|
47
|
-
},
|
|
48
20
|
{
|
|
49
21
|
"name": "icon-has-action",
|
|
50
22
|
"description": "Specify when icon need to be clickable",
|
|
@@ -52,10 +24,10 @@
|
|
|
52
24
|
"default": "false"
|
|
53
25
|
},
|
|
54
26
|
{
|
|
55
|
-
"name": "
|
|
56
|
-
"description": "
|
|
27
|
+
"name": "placeholder",
|
|
28
|
+
"description": "Set placeholder text",
|
|
57
29
|
"type": "string",
|
|
58
|
-
"default": "
|
|
30
|
+
"default": "\"\""
|
|
59
31
|
},
|
|
60
32
|
{
|
|
61
33
|
"name": "readonly",
|
|
@@ -64,73 +36,83 @@
|
|
|
64
36
|
"default": "false"
|
|
65
37
|
},
|
|
66
38
|
{
|
|
67
|
-
"name": "
|
|
68
|
-
"description": "
|
|
39
|
+
"name": "transparent",
|
|
40
|
+
"description": "Disables all other states and border/background styles.",
|
|
69
41
|
"type": "boolean",
|
|
70
42
|
"default": "false"
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"properties": [
|
|
43
|
+
},
|
|
74
44
|
{
|
|
75
|
-
"name": "
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"default": "\"\""
|
|
45
|
+
"name": "warning",
|
|
46
|
+
"description": "Set warning state",
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"default": "false"
|
|
80
49
|
},
|
|
81
50
|
{
|
|
82
|
-
"name": "
|
|
83
|
-
"
|
|
84
|
-
"description": "Set place holder text",
|
|
51
|
+
"name": "value",
|
|
52
|
+
"description": "Input's value",
|
|
85
53
|
"type": "string",
|
|
86
54
|
"default": "\"\""
|
|
87
55
|
},
|
|
88
56
|
{
|
|
89
|
-
"name": "
|
|
90
|
-
"
|
|
91
|
-
"
|
|
57
|
+
"name": "icon-has-action",
|
|
58
|
+
"description": "Specify when icon need to be clickable",
|
|
59
|
+
"type": "boolean"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "maxlength",
|
|
63
|
+
"description": "Set character max limit",
|
|
64
|
+
"type": "number"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "minlength",
|
|
68
|
+
"description": "Set character min limit",
|
|
69
|
+
"type": "number"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"properties": [
|
|
73
|
+
{
|
|
74
|
+
"name": "disabled",
|
|
75
|
+
"attribute": "disabled",
|
|
76
|
+
"description": "Set disabled state",
|
|
92
77
|
"type": "boolean",
|
|
93
78
|
"default": "false"
|
|
94
79
|
},
|
|
95
80
|
{
|
|
96
|
-
"name": "
|
|
97
|
-
"attribute": "
|
|
98
|
-
"description": "Set state
|
|
81
|
+
"name": "error",
|
|
82
|
+
"attribute": "error",
|
|
83
|
+
"description": "Set error state",
|
|
99
84
|
"type": "boolean",
|
|
100
85
|
"default": "false"
|
|
101
86
|
},
|
|
102
87
|
{
|
|
103
|
-
"name": "
|
|
104
|
-
"attribute": "
|
|
105
|
-
"description": "
|
|
88
|
+
"name": "iconHasAction",
|
|
89
|
+
"attribute": "icon-has-action",
|
|
90
|
+
"description": "Specify when icon need to be clickable",
|
|
106
91
|
"type": "boolean",
|
|
107
92
|
"default": "false"
|
|
108
93
|
},
|
|
109
94
|
{
|
|
110
95
|
"name": "maxLength",
|
|
111
|
-
"attribute": "maxlength",
|
|
112
96
|
"description": "Set character max limit",
|
|
113
97
|
"type": "number | null"
|
|
114
98
|
},
|
|
115
99
|
{
|
|
116
100
|
"name": "minLength",
|
|
117
|
-
"attribute": "minlength",
|
|
118
101
|
"description": "Set character min limit",
|
|
119
102
|
"type": "number | null"
|
|
120
103
|
},
|
|
121
104
|
{
|
|
122
|
-
"name": "
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"default": "false"
|
|
105
|
+
"name": "pattern",
|
|
106
|
+
"description": "Set regular expression for input validation",
|
|
107
|
+
"type": "string",
|
|
108
|
+
"default": "\"\""
|
|
127
109
|
},
|
|
128
110
|
{
|
|
129
|
-
"name": "
|
|
130
|
-
"attribute": "
|
|
131
|
-
"description": "
|
|
111
|
+
"name": "placeholder",
|
|
112
|
+
"attribute": "placeholder",
|
|
113
|
+
"description": "Set placeholder text",
|
|
132
114
|
"type": "string",
|
|
133
|
-
"default": "
|
|
115
|
+
"default": "\"\""
|
|
134
116
|
},
|
|
135
117
|
{
|
|
136
118
|
"name": "readonly",
|
|
@@ -140,11 +122,25 @@
|
|
|
140
122
|
"default": "false"
|
|
141
123
|
},
|
|
142
124
|
{
|
|
143
|
-
"name": "
|
|
144
|
-
"attribute": "
|
|
145
|
-
"description": "
|
|
125
|
+
"name": "transparent",
|
|
126
|
+
"attribute": "transparent",
|
|
127
|
+
"description": "Disables all other states and border/background styles.",
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"default": "false"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "warning",
|
|
133
|
+
"attribute": "warning",
|
|
134
|
+
"description": "Set warning state",
|
|
146
135
|
"type": "boolean",
|
|
147
136
|
"default": "false"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "value",
|
|
140
|
+
"attribute": "value",
|
|
141
|
+
"description": "Input's value",
|
|
142
|
+
"type": "string",
|
|
143
|
+
"default": "\"\""
|
|
148
144
|
}
|
|
149
145
|
],
|
|
150
146
|
"events": [
|
|
@@ -158,13 +154,13 @@
|
|
|
158
154
|
},
|
|
159
155
|
{
|
|
160
156
|
"name": "icon-click",
|
|
161
|
-
"description": "Dispatched
|
|
157
|
+
"description": "Dispatched when icon is clicked"
|
|
162
158
|
}
|
|
163
159
|
],
|
|
164
160
|
"methods": [
|
|
165
161
|
{
|
|
166
|
-
"name": "
|
|
167
|
-
"description": "
|
|
162
|
+
"name": "renderIcon",
|
|
163
|
+
"description": "",
|
|
168
164
|
"params": []
|
|
169
165
|
}
|
|
170
166
|
]
|
|
@@ -2,32 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
Form control to get a search input from users.
|
|
4
4
|
|
|
5
|
+
## Attributes
|
|
6
|
+
|
|
7
|
+
| Attribute | Type | Description |
|
|
8
|
+
|-------------------|-----------|----------------------------------------|
|
|
9
|
+
| `icon-has-action` | `boolean` | Specify when icon need to be clickable |
|
|
10
|
+
| `maxlength` | `number` | Set character max limit |
|
|
11
|
+
| `minlength` | `number` | Set character min limit |
|
|
12
|
+
|
|
5
13
|
## Properties
|
|
6
14
|
|
|
7
15
|
| Property | Attribute | Type | Default | Description |
|
|
8
16
|
|-----------------|-------------------|------------------|---------|--------------------------------------------------|
|
|
9
17
|
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
10
|
-
| `error` | `error` | `boolean` | false | Set state
|
|
18
|
+
| `error` | `error` | `boolean` | false | Set error state |
|
|
11
19
|
| `iconHasAction` | `icon-has-action` | `boolean` | false | Specify when icon need to be clickable |
|
|
12
|
-
| `maxLength` |
|
|
13
|
-
| `minLength` |
|
|
14
|
-
| `pattern` |
|
|
15
|
-
| `placeholder` | `placeholder` | `string` | "" | Set
|
|
20
|
+
| `maxLength` | | `number \| null` | null | Set character max limit |
|
|
21
|
+
| `minLength` | | `number \| null` | null | Set character min limit |
|
|
22
|
+
| `pattern` | | `string` | "" | Set regular expression for input validation |
|
|
23
|
+
| `placeholder` | `placeholder` | `string` | "" | Set placeholder text |
|
|
16
24
|
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
17
|
-
| `transparent` | `transparent` | `boolean` | false | Disables all other states and border/background styles
|
|
18
|
-
| `value` | `value` | `string` |
|
|
19
|
-
| `warning` | `warning` | `boolean` | false | Set state
|
|
25
|
+
| `transparent` | `transparent` | `boolean` | false | Disables all other states and border/background styles. |
|
|
26
|
+
| `value` | `value` | `string` | "" | Input's value |
|
|
27
|
+
| `warning` | `warning` | `boolean` | false | Set warning state |
|
|
20
28
|
|
|
21
29
|
## Methods
|
|
22
30
|
|
|
23
|
-
| Method
|
|
24
|
-
|
|
25
|
-
| `
|
|
31
|
+
| Method | Type |
|
|
32
|
+
|--------------|-----------|
|
|
33
|
+
| `renderIcon` | `(): any` |
|
|
26
34
|
|
|
27
35
|
## Events
|
|
28
36
|
|
|
29
|
-
| Event | Description
|
|
30
|
-
|
|
31
|
-
| `error-changed` | Dispatched when error state changes
|
|
32
|
-
| `icon-click` | Dispatched
|
|
33
|
-
| `value-changed` | Dispatched when value changes
|
|
37
|
+
| Event | Description |
|
|
38
|
+
|-----------------|-------------------------------------|
|
|
39
|
+
| `error-changed` | Dispatched when error state changes |
|
|
40
|
+
| `icon-click` | Dispatched when icon is clicked |
|
|
41
|
+
| `value-changed` | Dispatched when value changes |
|
|
@@ -1,122 +1,65 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import {
|
|
2
|
+
import { TemplateResult } from '@refinitiv-ui/core';
|
|
3
|
+
import { TemplateMap } from '@refinitiv-ui/core/lib/directives/template-map.js';
|
|
3
4
|
import '../icon/index.js';
|
|
5
|
+
import { TextField } from '../text-field/index.js';
|
|
6
|
+
import { Translate } from '@refinitiv-ui/translate';
|
|
7
|
+
import '@refinitiv-ui/phrasebook/lib/locale/en/search-field.js';
|
|
4
8
|
/**
|
|
5
9
|
* Form control to get a search input from users.
|
|
6
10
|
*
|
|
7
11
|
* @fires value-changed - Dispatched when value changes
|
|
8
12
|
* @fires error-changed - Dispatched when error state changes
|
|
13
|
+
* @fires icon-click - Dispatched when icon is clicked
|
|
9
14
|
*
|
|
10
|
-
* @attr {
|
|
11
|
-
* @prop {
|
|
15
|
+
* @attr {boolean} disabled - Set disabled state
|
|
16
|
+
* @prop {boolean} [disabled=false] - Set disabled state
|
|
17
|
+
*
|
|
18
|
+
* @attr {boolean} error - Set error state
|
|
19
|
+
* @prop {boolean} [error=false] - Set error state
|
|
20
|
+
*
|
|
21
|
+
* @attr {boolean} icon-has-action - Specify when icon need to be clickable
|
|
22
|
+
* @prop {boolean} [iconHasAction=false] - Specify when icon need to be clickable
|
|
23
|
+
*
|
|
24
|
+
* @attr {number} maxlength - Set character max limit
|
|
25
|
+
* @prop {number | null} [maxLength=null] - Set character max limit
|
|
26
|
+
*
|
|
27
|
+
* @attr {number} minlength - Set character min limit
|
|
28
|
+
* @prop {number | null} [minLength=null] - Set character min limit
|
|
29
|
+
*
|
|
30
|
+
* @prop {string} [pattern=""] - Set regular expression for input validation
|
|
31
|
+
*
|
|
32
|
+
* @attr {string} placeholder - Set placeholder text
|
|
33
|
+
* @prop {string} [placeholder=""] - Set placeholder text
|
|
12
34
|
*
|
|
13
35
|
* @attr {boolean} readonly - Set readonly state
|
|
14
36
|
* @prop {boolean} [readonly=false] - Set readonly state
|
|
15
37
|
*
|
|
16
|
-
* @attr {boolean}
|
|
17
|
-
* @prop {boolean} [
|
|
38
|
+
* @attr {boolean} transparent - Disables all other states and border/background styles.
|
|
39
|
+
* @prop {boolean} [transparent=false] - Disables all other states and border/background styles.
|
|
40
|
+
*
|
|
41
|
+
* @attr {boolean} warning - Set warning state
|
|
42
|
+
* @prop {boolean} [warning=false] - Set warning state
|
|
43
|
+
*
|
|
44
|
+
* @attr {string} value - Input's value
|
|
45
|
+
* @prop {string} [value=""] - Input's value
|
|
18
46
|
*/
|
|
19
|
-
export declare class SearchField extends
|
|
20
|
-
/**
|
|
21
|
-
* Element version number
|
|
22
|
-
* @returns version number
|
|
23
|
-
*/
|
|
24
|
-
static get version(): string;
|
|
25
|
-
/**
|
|
26
|
-
* A `CSSResultGroup` that will be used
|
|
27
|
-
* to style the host, slotted children
|
|
28
|
-
* and the internal template of the element.
|
|
29
|
-
* @return CSS template
|
|
30
|
-
*/
|
|
31
|
-
static get styles(): CSSResultGroup;
|
|
32
|
-
/**
|
|
33
|
-
* Set regular expression for input validation
|
|
34
|
-
*/
|
|
35
|
-
pattern: string;
|
|
36
|
-
/**
|
|
37
|
-
* Set place holder text
|
|
38
|
-
*/
|
|
39
|
-
placeholder: string;
|
|
40
|
-
/**
|
|
41
|
-
* Set state to error
|
|
42
|
-
*/
|
|
43
|
-
error: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Set state to warning
|
|
46
|
-
*/
|
|
47
|
-
warning: boolean;
|
|
47
|
+
export declare class SearchField extends TextField {
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
* Use with advanced composite elements requiring e.g. multi selection in
|
|
51
|
-
* combo-box when parent container handles element states.
|
|
49
|
+
* Used for translations
|
|
52
50
|
*/
|
|
53
|
-
|
|
51
|
+
protected t: Translate;
|
|
54
52
|
/**
|
|
55
|
-
*
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Set character min limit
|
|
60
|
-
*/
|
|
61
|
-
minLength: number | null;
|
|
62
|
-
/**
|
|
63
|
-
* Specify when icon need to be clickable
|
|
64
|
-
*/
|
|
65
|
-
iconHasAction: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Get native input element from shadow roots
|
|
68
|
-
*/
|
|
69
|
-
private inputElement;
|
|
70
|
-
/**
|
|
71
|
-
* Select the contents of input
|
|
72
|
-
* @returns void
|
|
73
|
-
*/
|
|
74
|
-
select(): void;
|
|
75
|
-
/**
|
|
76
|
-
* A `TemplateResult` that will be used
|
|
77
|
-
* to render the updated internal template.
|
|
78
|
-
* @return Render template
|
|
79
|
-
*/
|
|
80
|
-
protected render(): TemplateResult;
|
|
81
|
-
/**
|
|
82
|
-
* Called when the element’s DOM has been updated and rendered
|
|
83
|
-
* @param changedProperties Properties that has changed
|
|
84
|
-
* @returns {void}
|
|
85
|
-
*/
|
|
86
|
-
protected updated(changedProperties: PropertyValues): void;
|
|
87
|
-
/**
|
|
88
|
-
* Check if input should be re-validated
|
|
89
|
-
* @param changedProperties Properties that has changed
|
|
90
|
-
* @returns True if input should be re-validated
|
|
91
|
-
*/
|
|
92
|
-
private shouldValidateInput;
|
|
93
|
-
/**
|
|
94
|
-
* validate input according `pattern`, `minLength` and `maxLength` properties
|
|
95
|
-
* change state of `error` property according pattern validation
|
|
96
|
-
* @returns {void}
|
|
97
|
-
*/
|
|
98
|
-
private validateInput;
|
|
99
|
-
/**
|
|
100
|
-
* @param error existing state of error
|
|
101
|
-
* @returns true if there is no error and browser is IE11 and minLength more than 0 and value exists
|
|
102
|
-
*/
|
|
103
|
-
private shouldValidateForMinLength;
|
|
104
|
-
/**
|
|
105
|
-
* Check if value is changed
|
|
106
|
-
* @returns {void}
|
|
107
|
-
*/
|
|
108
|
-
private onPossibleValueChange;
|
|
109
|
-
/**
|
|
110
|
-
* Detect `enter` and `space` keydown and fire
|
|
111
|
-
* @param event keydown event
|
|
112
|
-
* @returns {void}
|
|
53
|
+
* Decorate `<input>` element with common properties extended from text-field:
|
|
54
|
+
* type="search" - always `search`
|
|
55
|
+
* @returns template map
|
|
113
56
|
*/
|
|
114
|
-
|
|
57
|
+
protected get decorateInputMap(): TemplateMap;
|
|
115
58
|
/**
|
|
116
|
-
*
|
|
59
|
+
* Renders icon element
|
|
117
60
|
* @returns {void}
|
|
118
61
|
*/
|
|
119
|
-
|
|
62
|
+
protected renderIcon(): TemplateResult | null;
|
|
120
63
|
}
|
|
121
64
|
|
|
122
65
|
declare global {
|
|
@@ -126,7 +69,7 @@ declare global {
|
|
|
126
69
|
|
|
127
70
|
namespace JSX {
|
|
128
71
|
interface IntrinsicElements {
|
|
129
|
-
'ef-search-field': Partial<SearchField> | JSXInterface.
|
|
72
|
+
'ef-search-field': Partial<SearchField> | JSXInterface.HTMLAttributes<SearchField>;
|
|
130
73
|
}
|
|
131
74
|
}
|
|
132
75
|
}
|