@vaadin/number-field 22.0.1 → 22.0.5
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 +8 -8
- package/src/vaadin-number-field.d.ts +1 -1
- package/src/vaadin-number-field.js +5 -3
- package/theme/lumo/vaadin-number-field-styles.js +1 -1
- package/theme/lumo/vaadin-number-field.js +1 -1
- package/theme/material/vaadin-number-field-styles.js +1 -1
- package/theme/material/vaadin-number-field.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/number-field",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@polymer/polymer": "^3.0.0",
|
|
35
|
-
"@vaadin/component-base": "^22.0.
|
|
36
|
-
"@vaadin/field-base": "^22.0.
|
|
37
|
-
"@vaadin/input-container": "^22.0.
|
|
38
|
-
"@vaadin/vaadin-lumo-styles": "^22.0.
|
|
39
|
-
"@vaadin/vaadin-material-styles": "^22.0.
|
|
40
|
-
"@vaadin/vaadin-themable-mixin": "^22.0.
|
|
35
|
+
"@vaadin/component-base": "^22.0.5",
|
|
36
|
+
"@vaadin/field-base": "^22.0.5",
|
|
37
|
+
"@vaadin/input-container": "^22.0.5",
|
|
38
|
+
"@vaadin/vaadin-lumo-styles": "^22.0.5",
|
|
39
|
+
"@vaadin/vaadin-material-styles": "^22.0.5",
|
|
40
|
+
"@vaadin/vaadin-themable-mixin": "^22.0.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@esm-bundle/chai": "^4.3.4",
|
|
44
44
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
45
45
|
"sinon": "^9.2.1"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "3e1990867670f3de2dec6fa1200d945623b2710c"
|
|
48
48
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 Vaadin Ltd.
|
|
3
|
+
* Copyright (c) 2021 - 2022 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 { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 Vaadin Ltd.
|
|
3
|
+
* Copyright (c) 2021 - 2022 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 '@vaadin/input-container/src/vaadin-input-container.js';
|
|
@@ -100,18 +100,20 @@ export class NumberField extends InputFieldMixin(SlotStylesMixin(ThemableMixin(E
|
|
|
100
100
|
on-click="_decreaseValue"
|
|
101
101
|
on-touchend="_decreaseButtonTouchend"
|
|
102
102
|
hidden$="[[!hasControls]]"
|
|
103
|
+
aria-hidden="true"
|
|
103
104
|
slot="prefix"
|
|
104
105
|
></div>
|
|
105
106
|
<slot name="prefix" slot="prefix"></slot>
|
|
106
107
|
<slot name="input"></slot>
|
|
107
108
|
<slot name="suffix" slot="suffix"></slot>
|
|
108
|
-
<div id="clearButton" part="clear-button" slot="suffix"></div>
|
|
109
|
+
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
|
109
110
|
<div
|
|
110
111
|
disabled$="[[!_allowed(1, value, min, max, step)]]"
|
|
111
112
|
part="increase-button"
|
|
112
113
|
on-click="_increaseValue"
|
|
113
114
|
on-touchend="_increaseButtonTouchend"
|
|
114
115
|
hidden$="[[!hasControls]]"
|
|
116
|
+
aria-hidden="true"
|
|
115
117
|
slot="suffix"
|
|
116
118
|
></div>
|
|
117
119
|
</vaadin-input-container>
|
|
@@ -233,7 +235,7 @@ export class NumberField extends InputFieldMixin(SlotStylesMixin(ThemableMixin(E
|
|
|
233
235
|
this.ariaTarget = input;
|
|
234
236
|
})
|
|
235
237
|
);
|
|
236
|
-
this.addController(new LabelledInputController(this.inputElement, this.
|
|
238
|
+
this.addController(new LabelledInputController(this.inputElement, this._labelController));
|
|
237
239
|
}
|
|
238
240
|
|
|
239
241
|
/** @private */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 Vaadin Ltd.
|
|
3
|
+
* Copyright (c) 2021 - 2022 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 '@vaadin/input-container/theme/lumo/vaadin-input-container.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 Vaadin Ltd.
|
|
3
|
+
* Copyright (c) 2021 - 2022 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 { fieldButton } from '@vaadin/vaadin-material-styles/mixins/field-button.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 Vaadin Ltd.
|
|
3
|
+
* Copyright (c) 2021 - 2022 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 '@vaadin/input-container/theme/material/vaadin-input-container.js';
|