@vaadin/number-field
Advanced tools
Comparing version 23.2.0 to 23.3.0-alpha1
{ | ||
"name": "@vaadin/number-field", | ||
"version": "23.2.0", | ||
"version": "23.3.0-alpha1", | ||
"publishConfig": { | ||
@@ -38,8 +38,8 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "^23.2.0", | ||
"@vaadin/field-base": "^23.2.0", | ||
"@vaadin/input-container": "^23.2.0", | ||
"@vaadin/vaadin-lumo-styles": "^23.2.0", | ||
"@vaadin/vaadin-material-styles": "^23.2.0", | ||
"@vaadin/vaadin-themable-mixin": "^23.2.0" | ||
"@vaadin/component-base": "23.3.0-alpha1", | ||
"@vaadin/field-base": "23.3.0-alpha1", | ||
"@vaadin/input-container": "23.3.0-alpha1", | ||
"@vaadin/vaadin-lumo-styles": "23.3.0-alpha1", | ||
"@vaadin/vaadin-material-styles": "23.3.0-alpha1", | ||
"@vaadin/vaadin-themable-mixin": "23.3.0-alpha1" | ||
}, | ||
@@ -55,3 +55,3 @@ "devDependencies": { | ||
], | ||
"gitHead": "8b1f5941f26ac41ca038e75e24c8584e331bc7a8" | ||
"gitHead": "beabc527d4b1274eb798ff701d406fed45cfe638" | ||
} |
@@ -8,3 +8,2 @@ /** | ||
import { InputFieldMixin } from '@vaadin/field-base/src/input-field-mixin.js'; | ||
import { SlotStylesMixin } from '@vaadin/field-base/src/slot-styles-mixin.js'; | ||
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
@@ -73,3 +72,3 @@ | ||
*/ | ||
declare class NumberField extends InputFieldMixin(SlotStylesMixin(ThemableMixin(ElementMixin(HTMLElement)))) { | ||
declare class NumberField extends InputFieldMixin(ThemableMixin(ElementMixin(HTMLElement))) { | ||
/** | ||
@@ -76,0 +75,0 @@ * Set to true to display value increase/decrease controls. |
@@ -9,6 +9,6 @@ /** | ||
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js'; | ||
import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js'; | ||
import { InputController } from '@vaadin/field-base/src/input-controller.js'; | ||
import { InputFieldMixin } from '@vaadin/field-base/src/input-field-mixin.js'; | ||
import { LabelledInputController } from '@vaadin/field-base/src/labelled-input-controller.js'; | ||
import { SlotStylesMixin } from '@vaadin/field-base/src/slot-styles-mixin.js'; | ||
import { inputFieldShared } from '@vaadin/field-base/src/styles/input-field-shared-styles.js'; | ||
@@ -54,3 +54,3 @@ import { registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
*/ | ||
export class NumberField extends InputFieldMixin(SlotStylesMixin(ThemableMixin(ElementMixin(PolymerElement)))) { | ||
export class NumberField extends InputFieldMixin(ThemableMixin(ElementMixin(PolymerElement))) { | ||
static get is() { | ||
@@ -132,2 +132,4 @@ return 'vaadin-number-field'; | ||
</div> | ||
<slot name="tooltip"></slot> | ||
`; | ||
@@ -193,2 +195,3 @@ } | ||
return [ | ||
...super.slotStyles, | ||
` | ||
@@ -238,2 +241,5 @@ ${tag} input[type="number"]::-webkit-outer-spin-button, | ||
this.addController(new LabelledInputController(this.inputElement, this._labelController)); | ||
this._tooltipController = new TooltipController(this); | ||
this.addController(this._tooltipController); | ||
} | ||
@@ -240,0 +246,0 @@ |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/number-field", | ||
"version": "23.2.0", | ||
"version": "23.3.0-alpha1", | ||
"description-markup": "markdown", | ||
@@ -11,3 +11,3 @@ "contributions": { | ||
"name": "vaadin-number-field", | ||
"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/23.2.0/#/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.", | ||
"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/23.3.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.", | ||
"attributes": [ | ||
@@ -521,2 +521,10 @@ { | ||
"description": "Fired when the value is changed by the user: on every typing keystroke,\nand the value is cleared using the clear button." | ||
}, | ||
{ | ||
"name": "invalid-changed", | ||
"description": "Fired when the `invalid` property changes." | ||
}, | ||
{ | ||
"name": "value-changed", | ||
"description": "Fired when the `value` property changes." | ||
} | ||
@@ -523,0 +531,0 @@ ] |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/number-field", | ||
"version": "23.2.0", | ||
"version": "23.3.0-alpha1", | ||
"description-markup": "markdown", | ||
@@ -19,3 +19,3 @@ "framework": "lit", | ||
"name": "vaadin-number-field", | ||
"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/23.2.0/#/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.", | ||
"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/23.3.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.", | ||
"extension": true, | ||
@@ -197,2 +197,16 @@ "attributes": [ | ||
} | ||
}, | ||
{ | ||
"name": "@invalid-changed", | ||
"description": "Fired when the `invalid` property changes.", | ||
"value": { | ||
"kind": "expression" | ||
} | ||
}, | ||
{ | ||
"name": "@value-changed", | ||
"description": "Fired when the `value` property changes.", | ||
"value": { | ||
"kind": "expression" | ||
} | ||
} | ||
@@ -199,0 +213,0 @@ ] |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
60028
1326
1
+ Added@vaadin/component-base@23.3.0-alpha1(transitive)
+ Added@vaadin/field-base@23.3.0-alpha1(transitive)
+ Added@vaadin/icon@23.3.0-alpha1(transitive)
+ Added@vaadin/input-container@23.3.0-alpha1(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.3.0-alpha1(transitive)
+ Added@vaadin/vaadin-material-styles@23.3.0-alpha1(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.3.0-alpha1(transitive)
- Removed@vaadin/component-base@23.5.12(transitive)
- Removed@vaadin/field-base@23.5.12(transitive)
- Removed@vaadin/icon@23.5.12(transitive)
- Removed@vaadin/input-container@23.5.12(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.5.12(transitive)
- Removed@vaadin/vaadin-material-styles@23.5.12(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.5.12(transitive)