@vaadin/number-field 25.0.0-alpha15 → 25.0.0-alpha17

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": "25.0.0-alpha15",
3
+ "version": "25.0.0-alpha17",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,23 +34,23 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@open-wc/dedupe-mixin": "^1.3.0",
37
- "@vaadin/a11y-base": "25.0.0-alpha15",
38
- "@vaadin/component-base": "25.0.0-alpha15",
39
- "@vaadin/field-base": "25.0.0-alpha15",
40
- "@vaadin/input-container": "25.0.0-alpha15",
41
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha15",
37
+ "@vaadin/a11y-base": "25.0.0-alpha17",
38
+ "@vaadin/component-base": "25.0.0-alpha17",
39
+ "@vaadin/field-base": "25.0.0-alpha17",
40
+ "@vaadin/input-container": "25.0.0-alpha17",
41
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha17",
42
42
  "lit": "^3.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@vaadin/chai-plugins": "25.0.0-alpha15",
46
- "@vaadin/test-runner-commands": "25.0.0-alpha15",
45
+ "@vaadin/chai-plugins": "25.0.0-alpha17",
46
+ "@vaadin/test-runner-commands": "25.0.0-alpha17",
47
47
  "@vaadin/testing-helpers": "^2.0.0",
48
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha15",
49
- "sinon": "^18.0.0"
48
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha17",
49
+ "sinon": "^21.0.0"
50
50
  },
51
51
  "web-types": [
52
52
  "web-types.json",
53
53
  "web-types.lit.json"
54
54
  ],
55
- "gitHead": "1ad98437e7600769bf66f870929feefbeef16edf"
55
+ "gitHead": "8264c71309907be99368b09414f0f8d7f591e0b9"
56
56
  }
@@ -436,7 +436,7 @@ export const NumberFieldMixin = (superClass) =>
436
436
  * Override this method from `InputControlMixin`
437
437
  * to stop propagation of the native change event.
438
438
  *
439
- * @param {Event}
439
+ * @param {Event} event
440
440
  * @override
441
441
  * @protected
442
442
  */
@@ -57,18 +57,39 @@ export interface NumberFieldEventMap extends HTMLElementEventMap, NumberFieldCus
57
57
  *
58
58
  * ### Styling
59
59
  *
60
- * `<vaadin-number-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.
61
- * See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
60
+ * The following shadow DOM parts are available for styling:
62
61
  *
63
- * In addition to `<vaadin-text-field>` parts, the following parts are available for theming:
62
+ * Part name | Description
63
+ * ---------------------|----------------
64
+ * `label` | The label element
65
+ * `input-field` | The element that wraps prefix, value and suffix
66
+ * `clear-button` | The clear button
67
+ * `error-message` | The error message element
68
+ * `helper-text` | The helper text element wrapper
69
+ * `required-indicator` | The `required` state indicator element
70
+ * `increase-button` | Increase ("plus") button
71
+ * `decrease-button` | Decrease ("minus") button
64
72
  *
65
- * Part name | Description
66
- * ------------------|-------------------------
67
- * `increase-button` | Increase ("plus") button
68
- * `decrease-button` | Decrease ("minus") button
73
+ * The following state attributes are available for styling:
74
+ *
75
+ * Attribute | Description
76
+ * ---------------------|---------------------------------
77
+ * `disabled` | Set when the element is disabled
78
+ * `has-value` | Set when the element has a value
79
+ * `has-label` | Set when the element has a label
80
+ * `has-helper` | Set when the element has helper text or slot
81
+ * `has-error-message` | Set when the element has an error message
82
+ * `has-tooltip` | Set when the element has a slotted tooltip
83
+ * `invalid` | Set when the element is invalid
84
+ * `input-prevented` | Temporarily set when invalid input is prevented
85
+ * `focused` | Set when the element is focused
86
+ * `focus-ring` | Set when the element is keyboard focused
87
+ * `readonly` | Set when the element is readonly
69
88
  *
70
89
  * Note, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.
71
90
  *
91
+ * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
92
+ *
72
93
  * ### Change events
73
94
  *
74
95
  * Depending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,
@@ -24,15 +24,34 @@ import { NumberFieldMixin } from './vaadin-number-field-mixin.js';
24
24
  *
25
25
  * ### Styling
26
26
  *
27
- * `<vaadin-number-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.
28
- * See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
27
+ * The following shadow DOM parts are available for styling:
29
28
  *
30
- * In addition to `<vaadin-text-field>` parts, the following parts are available for theming:
29
+ * Part name | Description
30
+ * ---------------------|----------------
31
+ * `label` | The label element
32
+ * `input-field` | The element that wraps prefix, value and suffix
33
+ * `clear-button` | The clear button
34
+ * `error-message` | The error message element
35
+ * `helper-text` | The helper text element wrapper
36
+ * `required-indicator` | The `required` state indicator element
37
+ * `increase-button` | Increase ("plus") button
38
+ * `decrease-button` | Decrease ("minus") button
31
39
  *
32
- * Part name | Description
33
- * ------------------|-------------------------
34
- * `increase-button` | Increase ("plus") button
35
- * `decrease-button` | Decrease ("minus") button
40
+ * The following state attributes are available for styling:
41
+ *
42
+ * Attribute | Description
43
+ * ---------------------|---------------------------------
44
+ * `disabled` | Set when the element is disabled
45
+ * `has-value` | Set when the element has a value
46
+ * `has-label` | Set when the element has a label
47
+ * `has-helper` | Set when the element has helper text or slot
48
+ * `has-error-message` | Set when the element has an error message
49
+ * `has-tooltip` | Set when the element has a slotted tooltip
50
+ * `invalid` | Set when the element is invalid
51
+ * `input-prevented` | Temporarily set when invalid input is prevented
52
+ * `focused` | Set when the element is focused
53
+ * `focus-ring` | Set when the element is keyboard focused
54
+ * `readonly` | Set when the element is readonly
36
55
  *
37
56
  * Note, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.
38
57
  *
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": "25.0.0-alpha15",
4
+ "version": "25.0.0-alpha17",
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/25.0.0-alpha15/#/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/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | -\n\nNote, there is currently no way to detect unparsable => unparsable changes because the browser\ndoesn't provide access to unparsable values of native [type=number] inputs.",
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\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`increase-button` | Increase (\"plus\") button\n`decrease-button` | Decrease (\"minus\") button\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | -\n\nNote, there is currently no way to detect unparsable => unparsable changes because the browser\ndoesn't provide access to unparsable values of native [type=number] inputs.",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "disabled",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/number-field",
4
- "version": "25.0.0-alpha15",
4
+ "version": "25.0.0-alpha17",
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/25.0.0-alpha15/#/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/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | -\n\nNote, there is currently no way to detect unparsable => unparsable changes because the browser\ndoesn't provide access to unparsable values of native [type=number] inputs.",
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\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`increase-button` | Increase (\"plus\") button\n`decrease-button` | Decrease (\"minus\") button\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | -\n\nNote, there is currently no way to detect unparsable => unparsable changes because the browser\ndoesn't provide access to unparsable values of native [type=number] inputs.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {