@vaadin/number-field 23.1.2 → 23.2.0-dev.48e5e3967

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": "23.1.2",
3
+ "version": "23.2.0-dev.48e5e3967",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,17 +33,17 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@polymer/polymer": "^3.0.0",
36
- "@vaadin/component-base": "^23.1.2",
37
- "@vaadin/field-base": "^23.1.2",
38
- "@vaadin/input-container": "^23.1.2",
39
- "@vaadin/vaadin-lumo-styles": "^23.1.2",
40
- "@vaadin/vaadin-material-styles": "^23.1.2",
41
- "@vaadin/vaadin-themable-mixin": "^23.1.2"
36
+ "@vaadin/component-base": "23.2.0-dev.48e5e3967",
37
+ "@vaadin/field-base": "23.2.0-dev.48e5e3967",
38
+ "@vaadin/input-container": "23.2.0-dev.48e5e3967",
39
+ "@vaadin/vaadin-lumo-styles": "23.2.0-dev.48e5e3967",
40
+ "@vaadin/vaadin-material-styles": "23.2.0-dev.48e5e3967",
41
+ "@vaadin/vaadin-themable-mixin": "23.2.0-dev.48e5e3967"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@esm-bundle/chai": "^4.3.4",
45
45
  "@vaadin/testing-helpers": "^0.3.2",
46
46
  "sinon": "^13.0.2"
47
47
  },
48
- "gitHead": "6fb205c6e9a761feadfb779dd5d7af96d3102e56"
48
+ "gitHead": "961bc4ae5b707c3c02f12b99819b3c12c9b478aa"
49
49
  }
@@ -54,7 +54,7 @@ export interface NumberFieldEventMap extends HTMLElementEventMap, NumberFieldCus
54
54
  * `increase-button` | Increase ("plus") button
55
55
  * `decrease-button` | Decrease ("minus") button
56
56
  *
57
- * Note, the `input-prevented` state attribute is not supported by `<vaadin-number-field>`.
57
+ * Note, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.
58
58
  *
59
59
  * @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.
60
60
  * @fires {Event} change - Fired when the user commits a value change.
@@ -34,7 +34,7 @@ registerStyles('vaadin-number-field', inputFieldShared, { moduleId: 'vaadin-numb
34
34
  * `increase-button` | Increase ("plus") button
35
35
  * `decrease-button` | Decrease ("minus") button
36
36
  *
37
- * Note, the `input-prevented` state attribute is not supported by `<vaadin-number-field>`.
37
+ * Note, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.
38
38
  *
39
39
  * See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.
40
40
  *
@@ -212,17 +212,6 @@ export class NumberField extends InputFieldMixin(SlotStylesMixin(ThemableMixin(E
212
212
  return this.$.clearButton;
213
213
  }
214
214
 
215
- /** @protected */
216
- connectedCallback() {
217
- super.connectedCallback();
218
-
219
- if (this.inputElement) {
220
- this.inputElement.min = this.min;
221
- this.inputElement.max = this.max;
222
- this.__applyStep(this.step);
223
- }
224
- }
225
-
226
215
  /** @protected */
227
216
  ready() {
228
217
  super.ready();
@@ -235,6 +224,11 @@ export class NumberField extends InputFieldMixin(SlotStylesMixin(ThemableMixin(E
235
224
  this.ariaTarget = input;
236
225
  }),
237
226
  );
227
+
228
+ this.inputElement.min = this.min;
229
+ this.inputElement.max = this.max;
230
+ this.__applyStep(this.step);
231
+
238
232
  this.addController(new LabelledInputController(this.inputElement, this._labelController));
239
233
  }
240
234