@vaadin/number-field 22.0.18 → 22.0.19
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/number-field",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.19",
|
|
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.19",
|
|
36
|
+
"@vaadin/field-base": "^22.0.19",
|
|
37
|
+
"@vaadin/input-container": "^22.0.19",
|
|
38
|
+
"@vaadin/vaadin-lumo-styles": "^22.0.19",
|
|
39
|
+
"@vaadin/vaadin-material-styles": "^22.0.19",
|
|
40
|
+
"@vaadin/vaadin-themable-mixin": "^22.0.19"
|
|
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": "6995c629cf6314ccbfebfcbc819bcfc47e1745ce"
|
|
48
48
|
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
7
7
|
import { InputFieldMixin } from '@vaadin/field-base/src/input-field-mixin.js';
|
|
8
|
-
import { SlotStylesMixin } from '@vaadin/field-base/src/slot-styles-mixin.js';
|
|
9
8
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -52,7 +51,7 @@ export interface NumberFieldEventMap extends HTMLElementEventMap, NumberFieldCus
|
|
|
52
51
|
* @fires {CustomEvent} invalid-changed - Fired when the `invalid` property changes.
|
|
53
52
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
54
53
|
*/
|
|
55
|
-
declare class NumberField extends InputFieldMixin(
|
|
54
|
+
declare class NumberField extends InputFieldMixin(ThemableMixin(ElementMixin(HTMLElement))) {
|
|
56
55
|
/**
|
|
57
56
|
* Set to true to display value increase/decrease controls.
|
|
58
57
|
* @attr {boolean} has-controls
|
|
@@ -9,7 +9,6 @@ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
|
9
9
|
import { InputController } from '@vaadin/field-base/src/input-controller.js';
|
|
10
10
|
import { InputFieldMixin } from '@vaadin/field-base/src/input-field-mixin.js';
|
|
11
11
|
import { LabelledInputController } from '@vaadin/field-base/src/labelled-input-controller.js';
|
|
12
|
-
import { SlotStylesMixin } from '@vaadin/field-base/src/slot-styles-mixin.js';
|
|
13
12
|
import { inputFieldShared } from '@vaadin/field-base/src/styles/input-field-shared-styles.js';
|
|
14
13
|
import { registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
15
14
|
|
|
@@ -49,7 +48,7 @@ registerStyles('vaadin-number-field', inputFieldShared, { moduleId: 'vaadin-numb
|
|
|
49
48
|
* @mixes ElementMixin
|
|
50
49
|
* @mixes ThemableMixin
|
|
51
50
|
*/
|
|
52
|
-
export class NumberField extends InputFieldMixin(
|
|
51
|
+
export class NumberField extends InputFieldMixin(ThemableMixin(ElementMixin(PolymerElement))) {
|
|
53
52
|
static get is() {
|
|
54
53
|
return 'vaadin-number-field';
|
|
55
54
|
}
|
|
@@ -182,6 +181,7 @@ export class NumberField extends InputFieldMixin(SlotStylesMixin(ThemableMixin(E
|
|
|
182
181
|
get slotStyles() {
|
|
183
182
|
const tag = this.localName;
|
|
184
183
|
return [
|
|
184
|
+
...super.slotStyles,
|
|
185
185
|
`
|
|
186
186
|
${tag} input[type="number"]::-webkit-outer-spin-button,
|
|
187
187
|
${tag} input[type="number"]::-webkit-inner-spin-button {
|