@vaadin/field-base 24.7.0-alpha1 → 24.7.0-alpha10
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 +7 -6
- package/src/checked-mixin.d.ts +1 -1
- package/src/checked-mixin.js +1 -1
- package/src/clear-button-mixin.d.ts +1 -1
- package/src/clear-button-mixin.js +2 -2
- package/src/error-controller.d.ts +1 -1
- package/src/error-controller.js +5 -6
- package/src/field-mixin.d.ts +1 -1
- package/src/field-mixin.js +1 -1
- package/src/helper-controller.d.ts +1 -1
- package/src/helper-controller.js +1 -1
- package/src/input-constraints-mixin.d.ts +1 -1
- package/src/input-constraints-mixin.js +1 -1
- package/src/input-control-mixin.d.ts +1 -1
- package/src/input-control-mixin.js +1 -1
- package/src/input-controller.d.ts +1 -1
- package/src/input-controller.js +1 -1
- package/src/input-field-mixin.d.ts +1 -1
- package/src/input-field-mixin.js +2 -1
- package/src/input-mixin.d.ts +1 -3
- package/src/input-mixin.js +3 -54
- package/src/label-controller.d.ts +1 -1
- package/src/label-controller.js +1 -1
- package/src/label-mixin.d.ts +1 -1
- package/src/label-mixin.js +1 -1
- package/src/labelled-input-controller.d.ts +1 -1
- package/src/labelled-input-controller.js +1 -1
- package/src/pattern-mixin.d.ts +1 -1
- package/src/pattern-mixin.js +1 -1
- package/src/styles/clear-button-styles.d.ts +1 -1
- package/src/styles/clear-button-styles.js +1 -1
- package/src/styles/field-shared-styles.d.ts +1 -1
- package/src/styles/field-shared-styles.js +1 -1
- package/src/styles/input-field-container-styles.d.ts +1 -1
- package/src/styles/input-field-container-styles.js +1 -1
- package/src/styles/input-field-shared-styles.d.ts +1 -1
- package/src/styles/input-field-shared-styles.js +1 -1
- package/src/text-area-controller.d.ts +1 -1
- package/src/text-area-controller.js +1 -1
- package/src/validate-mixin.d.ts +1 -1
- package/src/validate-mixin.js +3 -1
- package/src/virtual-keyboard-controller.d.ts +1 -1
- package/src/virtual-keyboard-controller.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/field-base",
|
|
3
|
-
"version": "24.7.0-
|
|
3
|
+
"version": "24.7.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,14 +32,15 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
34
34
|
"@polymer/polymer": "^3.0.0",
|
|
35
|
-
"@vaadin/a11y-base": "24.7.0-
|
|
36
|
-
"@vaadin/component-base": "24.7.0-
|
|
35
|
+
"@vaadin/a11y-base": "24.7.0-alpha10",
|
|
36
|
+
"@vaadin/component-base": "24.7.0-alpha10",
|
|
37
37
|
"lit": "^3.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@vaadin/chai-plugins": "24.7.0-
|
|
41
|
-
"@vaadin/
|
|
40
|
+
"@vaadin/chai-plugins": "24.7.0-alpha10",
|
|
41
|
+
"@vaadin/test-runner-commands": "24.7.0-alpha10",
|
|
42
|
+
"@vaadin/testing-helpers": "^1.1.0",
|
|
42
43
|
"sinon": "^18.0.0"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "c0f8933df2a6a40648d3fb9cfbae6bbf86a8aa90"
|
|
45
46
|
}
|
package/src/checked-mixin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
package/src/checked-mixin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { KeyboardMixin } from '@vaadin/a11y-base/src/keyboard-mixin.js';
|
|
@@ -89,7 +89,7 @@ export const ClearButtonMixin = (superclass) =>
|
|
|
89
89
|
_onEscape(event) {
|
|
90
90
|
super._onEscape(event);
|
|
91
91
|
|
|
92
|
-
if (this.clearButtonVisible && !!this.value) {
|
|
92
|
+
if (this.clearButtonVisible && !!this.value && !this.readonly) {
|
|
93
93
|
event.stopPropagation();
|
|
94
94
|
this._onClearAction();
|
|
95
95
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { SlotChildObserveController } from '@vaadin/component-base/src/slot-child-observe-controller.js';
|
package/src/error-controller.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
+
import { announce } from '@vaadin/a11y-base/src/announce.js';
|
|
6
7
|
import { SlotChildObserveController } from '@vaadin/component-base/src/slot-child-observe-controller.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -108,12 +109,10 @@ export class ErrorController extends SlotChildObserveController {
|
|
|
108
109
|
errorNode.textContent = hasError ? errorMessage : '';
|
|
109
110
|
errorNode.hidden = !hasError;
|
|
110
111
|
|
|
111
|
-
// Role alert will make the error message announce immediately
|
|
112
|
-
// as the field becomes invalid
|
|
113
112
|
if (hasError) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
// Assertive mode ensures VoiceOver reads
|
|
114
|
+
// the error message on commit with Enter.
|
|
115
|
+
announce(errorMessage, { mode: 'assertive' });
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
|
package/src/field-mixin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
package/src/field-mixin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { FieldAriaController } from '@vaadin/a11y-base/src/field-aria-controller.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { SlotChildObserveController } from '@vaadin/component-base/src/slot-child-observe-controller.js';
|
package/src/helper-controller.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { SlotChildObserveController } from '@vaadin/component-base/src/slot-child-observe-controller.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { DelegateFocusMixin } from '@vaadin/a11y-base/src/delegate-focus-mixin.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
package/src/input-controller.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
package/src/input-field-mixin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { InputControlMixin } from './input-control-mixin.js';
|
|
@@ -33,6 +33,7 @@ export const InputFieldMixin = (superclass) =>
|
|
|
33
33
|
*/
|
|
34
34
|
autocorrect: {
|
|
35
35
|
type: String,
|
|
36
|
+
reflectToAttribute: true,
|
|
36
37
|
},
|
|
37
38
|
|
|
38
39
|
/**
|
package/src/input-mixin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -68,6 +68,4 @@ export declare class InputMixinClass {
|
|
|
68
68
|
protected _toggleHasValue(hasValue: boolean): void;
|
|
69
69
|
|
|
70
70
|
protected _valueChanged(value?: string, oldValue?: string): void;
|
|
71
|
-
|
|
72
|
-
protected _setHasInputValue(event: InputEvent): void;
|
|
73
71
|
}
|
package/src/input-mixin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';
|
|
@@ -32,6 +32,7 @@ export const InputMixin = dedupingMixin(
|
|
|
32
32
|
type: Object,
|
|
33
33
|
readOnly: true,
|
|
34
34
|
observer: '_inputElementChanged',
|
|
35
|
+
sync: true,
|
|
35
36
|
},
|
|
36
37
|
|
|
37
38
|
/**
|
|
@@ -53,24 +54,13 @@ export const InputMixin = dedupingMixin(
|
|
|
53
54
|
notify: true,
|
|
54
55
|
sync: true,
|
|
55
56
|
},
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Whether the input element has a non-empty value.
|
|
59
|
-
*
|
|
60
|
-
* @protected
|
|
61
|
-
*/
|
|
62
|
-
_hasInputValue: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
value: false,
|
|
65
|
-
observer: '_hasInputValueChanged',
|
|
66
|
-
},
|
|
67
57
|
};
|
|
68
58
|
}
|
|
69
59
|
|
|
70
60
|
constructor() {
|
|
71
61
|
super();
|
|
72
62
|
|
|
73
|
-
this._boundOnInput = this.
|
|
63
|
+
this._boundOnInput = this._onInput.bind(this);
|
|
74
64
|
this._boundOnChange = this._onChange.bind(this);
|
|
75
65
|
}
|
|
76
66
|
|
|
@@ -115,16 +105,12 @@ export const InputMixin = dedupingMixin(
|
|
|
115
105
|
if (this.inputElement) {
|
|
116
106
|
this.inputElement[this._inputElementValueProperty] = value;
|
|
117
107
|
}
|
|
118
|
-
|
|
119
|
-
this._hasInputValue = value && value.length > 0;
|
|
120
108
|
}
|
|
121
109
|
|
|
122
110
|
/**
|
|
123
111
|
* Clear the value of the field.
|
|
124
112
|
*/
|
|
125
113
|
clear() {
|
|
126
|
-
this._hasInputValue = false;
|
|
127
|
-
|
|
128
114
|
this.value = '';
|
|
129
115
|
|
|
130
116
|
// Clear the input immediately without waiting for the observer.
|
|
@@ -185,29 +171,6 @@ export const InputMixin = dedupingMixin(
|
|
|
185
171
|
}
|
|
186
172
|
}
|
|
187
173
|
|
|
188
|
-
/**
|
|
189
|
-
* Observer to notify about the change of private property.
|
|
190
|
-
*
|
|
191
|
-
* @private
|
|
192
|
-
*/
|
|
193
|
-
_hasInputValueChanged(hasValue, oldHasValue) {
|
|
194
|
-
if (hasValue || oldHasValue) {
|
|
195
|
-
this.dispatchEvent(new CustomEvent('has-input-value-changed'));
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* An input event listener used to update `_hasInputValue` property.
|
|
201
|
-
* Do not override this method.
|
|
202
|
-
*
|
|
203
|
-
* @param {Event} event
|
|
204
|
-
* @private
|
|
205
|
-
*/
|
|
206
|
-
__onInput(event) {
|
|
207
|
-
this._setHasInputValue(event);
|
|
208
|
-
this._onInput(event);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
174
|
/**
|
|
212
175
|
* An input event listener used to update the field value.
|
|
213
176
|
*
|
|
@@ -265,19 +228,5 @@ export const InputMixin = dedupingMixin(
|
|
|
265
228
|
// Setting a value programmatically, sync it to input element.
|
|
266
229
|
this._forwardInputValue(newVal);
|
|
267
230
|
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Sets the `_hasInputValue` property based on the `input` event.
|
|
271
|
-
*
|
|
272
|
-
* @param {InputEvent} event
|
|
273
|
-
* @protected
|
|
274
|
-
*/
|
|
275
|
-
_setHasInputValue(event) {
|
|
276
|
-
// In the case a custom web component is passed as `inputElement`,
|
|
277
|
-
// the actual native input element, on which the event occurred,
|
|
278
|
-
// can be inside shadow trees.
|
|
279
|
-
const target = event.composedPath()[0];
|
|
280
|
-
this._hasInputValue = target.value.length > 0;
|
|
281
|
-
}
|
|
282
231
|
},
|
|
283
232
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { SlotChildObserveController } from '@vaadin/component-base/src/slot-child-observe-controller.js';
|
package/src/label-controller.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { SlotChildObserveController } from '@vaadin/component-base/src/slot-child-observe-controller.js';
|
package/src/label-mixin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
package/src/label-mixin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';
|
package/src/pattern-mixin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
package/src/pattern-mixin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { InputConstraintsMixin } from './input-constraints-mixin.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { clearButton } from './clear-button-styles.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
package/src/validate-mixin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
package/src/validate-mixin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';
|
|
@@ -23,6 +23,7 @@ export const ValidateMixin = dedupingMixin(
|
|
|
23
23
|
reflectToAttribute: true,
|
|
24
24
|
notify: true,
|
|
25
25
|
value: false,
|
|
26
|
+
sync: true,
|
|
26
27
|
},
|
|
27
28
|
|
|
28
29
|
/**
|
|
@@ -47,6 +48,7 @@ export const ValidateMixin = dedupingMixin(
|
|
|
47
48
|
required: {
|
|
48
49
|
type: Boolean,
|
|
49
50
|
reflectToAttribute: true,
|
|
51
|
+
sync: true,
|
|
50
52
|
},
|
|
51
53
|
};
|
|
52
54
|
}
|