@vaadin/text-field 24.2.0-alpha1 → 24.2.0-alpha11
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/package.json +10 -10
- package/src/vaadin-text-field-mixin.d.ts +1 -1
- package/src/vaadin-text-field.d.ts +8 -0
- package/src/vaadin-text-field.js +1 -0
- package/web-types.json +27 -1
- package/web-types.lit.json +15 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/text-field",
|
|
3
|
-
"version": "24.2.0-
|
|
3
|
+
"version": "24.2.0-alpha11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
40
|
"@polymer/polymer": "^3.0.0",
|
|
41
|
-
"@vaadin/a11y-base": "24.2.0-
|
|
42
|
-
"@vaadin/component-base": "24.2.0-
|
|
43
|
-
"@vaadin/field-base": "24.2.0-
|
|
44
|
-
"@vaadin/input-container": "24.2.0-
|
|
45
|
-
"@vaadin/vaadin-lumo-styles": "24.2.0-
|
|
46
|
-
"@vaadin/vaadin-material-styles": "24.2.0-
|
|
47
|
-
"@vaadin/vaadin-themable-mixin": "24.2.0-
|
|
41
|
+
"@vaadin/a11y-base": "24.2.0-alpha11",
|
|
42
|
+
"@vaadin/component-base": "24.2.0-alpha11",
|
|
43
|
+
"@vaadin/field-base": "24.2.0-alpha11",
|
|
44
|
+
"@vaadin/input-container": "24.2.0-alpha11",
|
|
45
|
+
"@vaadin/vaadin-lumo-styles": "24.2.0-alpha11",
|
|
46
|
+
"@vaadin/vaadin-material-styles": "24.2.0-alpha11",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "24.2.0-alpha11",
|
|
48
48
|
"lit": "^2.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@esm-bundle/chai": "^4.3.4",
|
|
52
|
-
"@vaadin/testing-helpers": "^0.
|
|
52
|
+
"@vaadin/testing-helpers": "^0.5.0",
|
|
53
53
|
"sinon": "^13.0.2"
|
|
54
54
|
},
|
|
55
55
|
"web-types": [
|
|
56
56
|
"web-types.json",
|
|
57
57
|
"web-types.lit.json"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "a958207d5f6a09ca0e2dcf9f62194b3f92c8766a"
|
|
60
60
|
}
|
|
@@ -10,6 +10,7 @@ import type { FocusMixinClass } from '@vaadin/a11y-base/src/focus-mixin.js';
|
|
|
10
10
|
import type { KeyboardMixinClass } from '@vaadin/a11y-base/src/keyboard-mixin.js';
|
|
11
11
|
import type { ControllerMixinClass } from '@vaadin/component-base/src/controller-mixin.js';
|
|
12
12
|
import type { DelegateStateMixinClass } from '@vaadin/component-base/src/delegate-state-mixin.js';
|
|
13
|
+
import type { SlotStylesMixinClass } from '@vaadin/component-base/src/slot-styles-mixin.js';
|
|
13
14
|
import type { ClearButtonMixinClass } from '@vaadin/field-base/src/clear-button-mixin.js';
|
|
14
15
|
import type { FieldMixinClass } from '@vaadin/field-base/src/field-mixin.js';
|
|
15
16
|
import type { InputConstraintsMixinClass } from '@vaadin/field-base/src/input-constraints-mixin.js';
|
|
@@ -17,7 +18,6 @@ import type { InputControlMixinClass } from '@vaadin/field-base/src/input-contro
|
|
|
17
18
|
import type { InputFieldMixinClass } from '@vaadin/field-base/src/input-field-mixin.js';
|
|
18
19
|
import type { InputMixinClass } from '@vaadin/field-base/src/input-mixin.js';
|
|
19
20
|
import type { LabelMixinClass } from '@vaadin/field-base/src/label-mixin.js';
|
|
20
|
-
import type { SlotStylesMixinClass } from '@vaadin/field-base/src/slot-styles-mixin.js';
|
|
21
21
|
import type { ValidateMixinClass } from '@vaadin/field-base/src/validate-mixin.js';
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -19,6 +19,11 @@ export type TextFieldChangeEvent = Event & {
|
|
|
19
19
|
*/
|
|
20
20
|
export type TextFieldInvalidChangedEvent = CustomEvent<{ value: boolean }>;
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Fired when the `dirty` property changes.
|
|
24
|
+
*/
|
|
25
|
+
export type TextFieldDirtyChangedEvent = CustomEvent<{ value: boolean }>;
|
|
26
|
+
|
|
22
27
|
/**
|
|
23
28
|
* Fired when the `value` property changes.
|
|
24
29
|
*/
|
|
@@ -32,6 +37,8 @@ export type TextFieldValidatedEvent = CustomEvent<{ valid: boolean }>;
|
|
|
32
37
|
export interface TextFieldCustomEventMap {
|
|
33
38
|
'invalid-changed': TextFieldInvalidChangedEvent;
|
|
34
39
|
|
|
40
|
+
'dirty-changed': TextFieldDirtyChangedEvent;
|
|
41
|
+
|
|
35
42
|
'value-changed': TextFieldValueChangedEvent;
|
|
36
43
|
|
|
37
44
|
validated: TextFieldValidatedEvent;
|
|
@@ -101,6 +108,7 @@ export interface TextFieldEventMap extends HTMLElementEventMap, TextFieldCustomE
|
|
|
101
108
|
* @fires {Event} input - Fired when the value is changed by the user: on every typing keystroke, and the value is cleared using the clear button.
|
|
102
109
|
* @fires {Event} change - Fired when the user commits a value change.
|
|
103
110
|
* @fires {CustomEvent} invalid-changed - Fired when the `invalid` property changes.
|
|
111
|
+
* @fires {CustomEvent} dirty-changed - Fired when the `dirty` property changes.
|
|
104
112
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
105
113
|
* @fires {CustomEvent} validated - Fired whenever the field is validated.
|
|
106
114
|
*/
|
package/src/vaadin-text-field.js
CHANGED
|
@@ -149,6 +149,7 @@ export class TextField extends TextFieldMixin(ThemableMixin(ElementMixin(Polymer
|
|
|
149
149
|
|
|
150
150
|
this._tooltipController = new TooltipController(this);
|
|
151
151
|
this._tooltipController.setPosition('top');
|
|
152
|
+
this._tooltipController.setAriaTarget(this.inputElement);
|
|
152
153
|
this.addController(this._tooltipController);
|
|
153
154
|
}
|
|
154
155
|
}
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/text-field",
|
|
4
|
-
"version": "24.2.0-
|
|
4
|
+
"version": "24.2.0-alpha11",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -120,6 +120,17 @@
|
|
|
120
120
|
]
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
+
{
|
|
124
|
+
"name": "dirty",
|
|
125
|
+
"description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\nan `input` or `change` event. Additionally, the field can be manually\nmarked as dirty by setting the property to `true`.",
|
|
126
|
+
"value": {
|
|
127
|
+
"type": [
|
|
128
|
+
"boolean",
|
|
129
|
+
"null",
|
|
130
|
+
"undefined"
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
},
|
|
123
134
|
{
|
|
124
135
|
"name": "clear-button-visible",
|
|
125
136
|
"description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
|
|
@@ -387,6 +398,17 @@
|
|
|
387
398
|
]
|
|
388
399
|
}
|
|
389
400
|
},
|
|
401
|
+
{
|
|
402
|
+
"name": "dirty",
|
|
403
|
+
"description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\nan `input` or `change` event. Additionally, the field can be manually\nmarked as dirty by setting the property to `true`.",
|
|
404
|
+
"value": {
|
|
405
|
+
"type": [
|
|
406
|
+
"boolean",
|
|
407
|
+
"null",
|
|
408
|
+
"undefined"
|
|
409
|
+
]
|
|
410
|
+
}
|
|
411
|
+
},
|
|
390
412
|
{
|
|
391
413
|
"name": "clearButtonVisible",
|
|
392
414
|
"description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
|
|
@@ -551,6 +573,10 @@
|
|
|
551
573
|
{
|
|
552
574
|
"name": "value-changed",
|
|
553
575
|
"description": "Fired when the `value` property changes."
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "dirty-changed",
|
|
579
|
+
"description": "Fired when the `dirty` property changes."
|
|
554
580
|
}
|
|
555
581
|
]
|
|
556
582
|
}
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/text-field",
|
|
4
|
-
"version": "24.2.0-
|
|
4
|
+
"version": "24.2.0-alpha11",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -47,6 +47,13 @@
|
|
|
47
47
|
"kind": "expression"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
+
{
|
|
51
|
+
"name": "?dirty",
|
|
52
|
+
"description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\nan `input` or `change` event. Additionally, the field can be manually\nmarked as dirty by setting the property to `true`.",
|
|
53
|
+
"value": {
|
|
54
|
+
"kind": "expression"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
50
57
|
{
|
|
51
58
|
"name": "?clearButtonVisible",
|
|
52
59
|
"description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
|
|
@@ -214,6 +221,13 @@
|
|
|
214
221
|
"value": {
|
|
215
222
|
"kind": "expression"
|
|
216
223
|
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "@dirty-changed",
|
|
227
|
+
"description": "Fired when the `dirty` property changes.",
|
|
228
|
+
"value": {
|
|
229
|
+
"kind": "expression"
|
|
230
|
+
}
|
|
217
231
|
}
|
|
218
232
|
]
|
|
219
233
|
}
|