@vaadin/number-field 24.0.0-alpha1 → 24.0.0-alpha3

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": "24.0.0-alpha1",
3
+ "version": "24.0.0-alpha3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,12 +35,12 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@polymer/polymer": "^3.0.0",
38
- "@vaadin/component-base": "24.0.0-alpha1",
39
- "@vaadin/field-base": "24.0.0-alpha1",
40
- "@vaadin/input-container": "24.0.0-alpha1",
41
- "@vaadin/vaadin-lumo-styles": "24.0.0-alpha1",
42
- "@vaadin/vaadin-material-styles": "24.0.0-alpha1",
43
- "@vaadin/vaadin-themable-mixin": "24.0.0-alpha1"
38
+ "@vaadin/component-base": "24.0.0-alpha3",
39
+ "@vaadin/field-base": "24.0.0-alpha3",
40
+ "@vaadin/input-container": "24.0.0-alpha3",
41
+ "@vaadin/vaadin-lumo-styles": "24.0.0-alpha3",
42
+ "@vaadin/vaadin-material-styles": "24.0.0-alpha3",
43
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha3"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@esm-bundle/chai": "^4.3.4",
@@ -51,5 +51,5 @@
51
51
  "web-types.json",
52
52
  "web-types.lit.json"
53
53
  ],
54
- "gitHead": "427527c27c4b27822d61fd41d38d7b170134770b"
54
+ "gitHead": "7a013a3c5a56abd61dd4f7773c6ec77c3541bdf2"
55
55
  }
@@ -70,10 +70,10 @@ export interface NumberFieldEventMap extends HTMLElementEventMap, NumberFieldCus
70
70
  */
71
71
  declare class NumberField extends InputFieldMixin(ThemableMixin(ElementMixin(HTMLElement))) {
72
72
  /**
73
- * Set to true to display value increase/decrease controls.
74
- * @attr {boolean} has-controls
73
+ * Set to true to show increase/decrease buttons.
74
+ * @attr {boolean} step-buttons-visible
75
75
  */
76
- hasControls: boolean;
76
+ stepButtonsVisible: boolean;
77
77
 
78
78
  /**
79
79
  * The minimum value of the field.
@@ -100,7 +100,7 @@ export class NumberField extends InputFieldMixin(ThemableMixin(ElementMixin(Poly
100
100
  part="decrease-button"
101
101
  on-click="_decreaseValue"
102
102
  on-touchend="_decreaseButtonTouchend"
103
- hidden$="[[!hasControls]]"
103
+ hidden$="[[!stepButtonsVisible]]"
104
104
  aria-hidden="true"
105
105
  slot="prefix"
106
106
  ></div>
@@ -113,7 +113,7 @@ export class NumberField extends InputFieldMixin(ThemableMixin(ElementMixin(Poly
113
113
  part="increase-button"
114
114
  on-click="_increaseValue"
115
115
  on-touchend="_increaseButtonTouchend"
116
- hidden$="[[!hasControls]]"
116
+ hidden$="[[!stepButtonsVisible]]"
117
117
  aria-hidden="true"
118
118
  slot="suffix"
119
119
  ></div>
@@ -135,10 +135,10 @@ export class NumberField extends InputFieldMixin(ThemableMixin(ElementMixin(Poly
135
135
  static get properties() {
136
136
  return {
137
137
  /**
138
- * Set to true to display value increase/decrease controls.
139
- * @attr {boolean} has-controls
138
+ * Set to true to show increase/decrease buttons.
139
+ * @attr {boolean} step-buttons-visible
140
140
  */
141
- hasControls: {
141
+ stepButtonsVisible: {
142
142
  type: Boolean,
143
143
  value: false,
144
144
  reflectToAttribute: true,
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/number-field",
4
- "version": "24.0.0-alpha1",
4
+ "version": "24.0.0-alpha3",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-number-field",
11
- "description": "`<vaadin-number-field>` is an input field web component that only accepts numeric input.\n\n```html\n<vaadin-number-field label=\"Balance\"></vaadin-number-field>\n```\n\n### Styling\n\n`<vaadin-number-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha1/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n------------------|-------------------------\n`increase-button` | Increase (\"plus\") button\n`decrease-button` | Decrease (\"minus\") button\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
11
+ "description": "`<vaadin-number-field>` is an input field web component that only accepts numeric input.\n\n```html\n<vaadin-number-field label=\"Balance\"></vaadin-number-field>\n```\n\n### Styling\n\n`<vaadin-number-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha3/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n------------------|-------------------------\n`increase-button` | Increase (\"plus\") button\n`decrease-button` | Decrease (\"minus\") button\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "disabled",
@@ -209,8 +209,8 @@
209
209
  }
210
210
  },
211
211
  {
212
- "name": "has-controls",
213
- "description": "Set to true to display value increase/decrease controls.",
212
+ "name": "step-buttons-visible",
213
+ "description": "Set to true to show increase/decrease buttons.",
214
214
  "value": {
215
215
  "type": [
216
216
  "boolean",
@@ -463,8 +463,8 @@
463
463
  }
464
464
  },
465
465
  {
466
- "name": "hasControls",
467
- "description": "Set to true to display value increase/decrease controls.",
466
+ "name": "stepButtonsVisible",
467
+ "description": "Set to true to show increase/decrease buttons.",
468
468
  "value": {
469
469
  "type": [
470
470
  "boolean",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/number-field",
4
- "version": "24.0.0-alpha1",
4
+ "version": "24.0.0-alpha3",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,7 +16,7 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-number-field",
19
- "description": "`<vaadin-number-field>` is an input field web component that only accepts numeric input.\n\n```html\n<vaadin-number-field label=\"Balance\"></vaadin-number-field>\n```\n\n### Styling\n\n`<vaadin-number-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha1/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n------------------|-------------------------\n`increase-button` | Increase (\"plus\") button\n`decrease-button` | Decrease (\"minus\") button\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
19
+ "description": "`<vaadin-number-field>` is an input field web component that only accepts numeric input.\n\n```html\n<vaadin-number-field label=\"Balance\"></vaadin-number-field>\n```\n\n### Styling\n\n`<vaadin-number-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha3/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n------------------|-------------------------\n`increase-button` | Increase (\"plus\") button\n`decrease-button` | Decrease (\"minus\") button\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {
@@ -69,8 +69,8 @@
69
69
  }
70
70
  },
71
71
  {
72
- "name": "?hasControls",
73
- "description": "Set to true to display value increase/decrease controls.",
72
+ "name": "?stepButtonsVisible",
73
+ "description": "Set to true to show increase/decrease buttons.",
74
74
  "value": {
75
75
  "kind": "expression"
76
76
  }