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