@vaadin/number-field 24.2.0-beta2 → 24.2.0-beta3

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.2.0-beta2",
3
+ "version": "24.2.0-beta3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,13 +38,13 @@
38
38
  "dependencies": {
39
39
  "@open-wc/dedupe-mixin": "^1.3.0",
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/a11y-base": "24.2.0-beta2",
42
- "@vaadin/component-base": "24.2.0-beta2",
43
- "@vaadin/field-base": "24.2.0-beta2",
44
- "@vaadin/input-container": "24.2.0-beta2",
45
- "@vaadin/vaadin-lumo-styles": "24.2.0-beta2",
46
- "@vaadin/vaadin-material-styles": "24.2.0-beta2",
47
- "@vaadin/vaadin-themable-mixin": "24.2.0-beta2",
41
+ "@vaadin/a11y-base": "24.2.0-beta3",
42
+ "@vaadin/component-base": "24.2.0-beta3",
43
+ "@vaadin/field-base": "24.2.0-beta3",
44
+ "@vaadin/input-container": "24.2.0-beta3",
45
+ "@vaadin/vaadin-lumo-styles": "24.2.0-beta3",
46
+ "@vaadin/vaadin-material-styles": "24.2.0-beta3",
47
+ "@vaadin/vaadin-themable-mixin": "24.2.0-beta3",
48
48
  "lit": "^2.0.0"
49
49
  },
50
50
  "devDependencies": {
@@ -56,5 +56,5 @@
56
56
  "web-types.json",
57
57
  "web-types.lit.json"
58
58
  ],
59
- "gitHead": "4b852f9a12d4dade7f0fb3c73b7212436cebf310"
59
+ "gitHead": "91ea11e7ad706065340acdb93b92316919ce5e69"
60
60
  }
@@ -20,11 +20,6 @@ export type NumberFieldChangeEvent = Event & {
20
20
  */
21
21
  export type NumberFieldInvalidChangedEvent = CustomEvent<{ value: boolean }>;
22
22
 
23
- /**
24
- * Fired when the `dirty` property changes.
25
- */
26
- export type NumberFieldDirtyChangedEvent = CustomEvent<{ value: boolean }>;
27
-
28
23
  /**
29
24
  * Fired when the `value` property changes.
30
25
  */
@@ -38,8 +33,6 @@ export type NumberFieldValidatedEvent = CustomEvent<{ valid: boolean }>;
38
33
  export interface NumberFieldCustomEventMap {
39
34
  'invalid-changed': NumberFieldInvalidChangedEvent;
40
35
 
41
- 'dirty-changed': NumberFieldDirtyChangedEvent;
42
-
43
36
  'value-changed': NumberFieldValueChangedEvent;
44
37
 
45
38
  validated: NumberFieldValidatedEvent;
@@ -73,7 +66,6 @@ export interface NumberFieldEventMap extends HTMLElementEventMap, NumberFieldCus
73
66
  * @fires {Event} input - Fired when the value is changed by the user: on every typing keystroke, and the value is cleared using the clear button.
74
67
  * @fires {Event} change - Fired when the user commits a value change.
75
68
  * @fires {CustomEvent} invalid-changed - Fired when the `invalid` property changes.
76
- * @fires {CustomEvent} dirty-changed - Fired when the `dirty` property changes.
77
69
  * @fires {CustomEvent} value-changed - Fired when the `value` property changes.
78
70
  * @fires {CustomEvent} validated - Fired whenever the field is validated.
79
71
  */
@@ -3,6 +3,7 @@
3
3
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
+ import '@vaadin/input-container/theme/lumo/vaadin-input-container-styles.js';
6
7
  import '@vaadin/vaadin-lumo-styles/sizing.js';
7
8
  import { fieldButton } from '@vaadin/vaadin-lumo-styles/mixins/field-button.js';
8
9
  import { inputFieldShared } from '@vaadin/vaadin-lumo-styles/mixins/input-field-shared.js';
@@ -3,6 +3,5 @@
3
3
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import '@vaadin/input-container/theme/lumo/vaadin-input-container.js';
7
6
  import './vaadin-number-field-styles.js';
8
7
  import '../../src/vaadin-number-field.js';
@@ -3,6 +3,7 @@
3
3
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
+ import '@vaadin/input-container/theme/material/vaadin-input-container-styles.js';
6
7
  import { fieldButton } from '@vaadin/vaadin-material-styles/mixins/field-button.js';
7
8
  import { inputFieldShared } from '@vaadin/vaadin-material-styles/mixins/input-field-shared.js';
8
9
  import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
@@ -3,6 +3,5 @@
3
3
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import '@vaadin/input-container/theme/material/vaadin-input-container.js';
7
6
  import './vaadin-number-field-styles.js';
8
7
  import '../../src/vaadin-number-field.js';
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.2.0-beta2",
4
+ "version": "24.2.0-beta3",
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.2.0-beta2/#/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.",
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.2.0-beta3/#/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.",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "disabled",
@@ -120,17 +120,6 @@
120
120
  ]
121
121
  }
122
122
  },
123
- {
124
- "name": "dirty",
125
- "description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\nan `input` or `change` event. Additionally, the field can be manually\nmarked as dirty by setting the property to `true`.",
126
- "value": {
127
- "type": [
128
- "boolean",
129
- "null",
130
- "undefined"
131
- ]
132
- }
133
- },
134
123
  {
135
124
  "name": "clear-button-visible",
136
125
  "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
@@ -407,17 +396,6 @@
407
396
  ]
408
397
  }
409
398
  },
410
- {
411
- "name": "dirty",
412
- "description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\nan `input` or `change` event. Additionally, the field can be manually\nmarked as dirty by setting the property to `true`.",
413
- "value": {
414
- "type": [
415
- "boolean",
416
- "null",
417
- "undefined"
418
- ]
419
- }
420
- },
421
399
  {
422
400
  "name": "clearButtonVisible",
423
401
  "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
@@ -591,10 +569,6 @@
591
569
  {
592
570
  "name": "value-changed",
593
571
  "description": "Fired when the `value` property changes."
594
- },
595
- {
596
- "name": "dirty-changed",
597
- "description": "Fired when the `dirty` property changes."
598
572
  }
599
573
  ]
600
574
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/number-field",
4
- "version": "24.2.0-beta2",
4
+ "version": "24.2.0-beta3",
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.2.0-beta2/#/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.",
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.2.0-beta3/#/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.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {
@@ -47,13 +47,6 @@
47
47
  "kind": "expression"
48
48
  }
49
49
  },
50
- {
51
- "name": "?dirty",
52
- "description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\nan `input` or `change` event. Additionally, the field can be manually\nmarked as dirty by setting the property to `true`.",
53
- "value": {
54
- "kind": "expression"
55
- }
56
- },
57
50
  {
58
51
  "name": "?clearButtonVisible",
59
52
  "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
@@ -228,13 +221,6 @@
228
221
  "value": {
229
222
  "kind": "expression"
230
223
  }
231
- },
232
- {
233
- "name": "@dirty-changed",
234
- "description": "Fired when the `dirty` property changes.",
235
- "value": {
236
- "kind": "expression"
237
- }
238
224
  }
239
225
  ]
240
226
  }