@vaadin/number-field 25.1.2 → 25.2.0-alpha10

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.
@@ -110,6 +110,20 @@
110
110
  "package": "@vaadin/field-base/src/input-field-mixin.js"
111
111
  }
112
112
  },
113
+ {
114
+ "kind": "field",
115
+ "name": "autofocus",
116
+ "privacy": "public",
117
+ "type": {
118
+ "text": "boolean"
119
+ },
120
+ "description": "Specify that this control should have input focus when the page loads.",
121
+ "attribute": "autofocus",
122
+ "inheritedFrom": {
123
+ "name": "DelegateFocusMixin",
124
+ "package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
125
+ }
126
+ },
113
127
  {
114
128
  "kind": "field",
115
129
  "name": "autoselect",
@@ -127,7 +141,25 @@
127
141
  {
128
142
  "kind": "method",
129
143
  "name": "checkValidity",
130
- "description": "Override the method from `InputConstraintsMixin`\nto enforce HTML constraint validation even if\nthe user didn't add any constraints explicitly:\nthe field has to be regardless checked for bad input."
144
+ "description": "Override the method from `InputConstraintsMixin`\nto enforce HTML constraint validation even if\nthe user didn't add any constraints explicitly:\nthe field has to be regardless checked for bad input.",
145
+ "return": {
146
+ "type": {
147
+ "text": "boolean"
148
+ }
149
+ },
150
+ "inheritedFrom": {
151
+ "name": "FieldMixin",
152
+ "package": "@vaadin/field-base/src/field-mixin.js"
153
+ }
154
+ },
155
+ {
156
+ "kind": "method",
157
+ "name": "clear",
158
+ "description": "Clear the value of the field.",
159
+ "inheritedFrom": {
160
+ "name": "ClearButtonMixin",
161
+ "package": "@vaadin/field-base/src/clear-button-mixin.js"
162
+ }
131
163
  },
132
164
  {
133
165
  "kind": "field",
@@ -143,6 +175,20 @@
143
175
  "package": "@vaadin/field-base/src/clear-button-mixin.js"
144
176
  }
145
177
  },
178
+ {
179
+ "kind": "field",
180
+ "name": "disabled",
181
+ "privacy": "public",
182
+ "type": {
183
+ "text": "boolean"
184
+ },
185
+ "description": "If true, the user cannot interact with this element.",
186
+ "attribute": "disabled",
187
+ "inheritedFrom": {
188
+ "name": "DelegateFocusMixin",
189
+ "package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
190
+ }
191
+ },
146
192
  {
147
193
  "kind": "field",
148
194
  "name": "errorMessage",
@@ -171,6 +217,20 @@
171
217
  "package": "@vaadin/field-base/src/field-mixin.js"
172
218
  }
173
219
  },
220
+ {
221
+ "kind": "field",
222
+ "name": "invalid",
223
+ "privacy": "public",
224
+ "type": {
225
+ "text": "boolean"
226
+ },
227
+ "description": "Set to true when the field is invalid.",
228
+ "attribute": "invalid",
229
+ "inheritedFrom": {
230
+ "name": "FieldMixin",
231
+ "package": "@vaadin/field-base/src/field-mixin.js"
232
+ }
233
+ },
174
234
  {
175
235
  "kind": "field",
176
236
  "name": "label",
@@ -185,6 +245,20 @@
185
245
  "package": "@vaadin/field-base/src/field-mixin.js"
186
246
  }
187
247
  },
248
+ {
249
+ "kind": "field",
250
+ "name": "manualValidation",
251
+ "privacy": "public",
252
+ "type": {
253
+ "text": "boolean"
254
+ },
255
+ "description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
256
+ "attribute": "manual-validation",
257
+ "inheritedFrom": {
258
+ "name": "FieldMixin",
259
+ "package": "@vaadin/field-base/src/field-mixin.js"
260
+ }
261
+ },
188
262
  {
189
263
  "kind": "field",
190
264
  "name": "max",
@@ -247,6 +321,20 @@
247
321
  "package": "@vaadin/field-base/src/input-control-mixin.js"
248
322
  }
249
323
  },
324
+ {
325
+ "kind": "field",
326
+ "name": "required",
327
+ "privacy": "public",
328
+ "type": {
329
+ "text": "boolean"
330
+ },
331
+ "description": "Specifies that the user must fill in a value.",
332
+ "attribute": "required",
333
+ "inheritedFrom": {
334
+ "name": "FieldMixin",
335
+ "package": "@vaadin/field-base/src/field-mixin.js"
336
+ }
337
+ },
250
338
  {
251
339
  "kind": "field",
252
340
  "name": "step",
@@ -280,6 +368,34 @@
280
368
  "name": "InputControlMixin",
281
369
  "package": "@vaadin/field-base/src/input-control-mixin.js"
282
370
  }
371
+ },
372
+ {
373
+ "kind": "method",
374
+ "name": "validate",
375
+ "description": "Validates the field and sets the `invalid` property based on the result.\n\nThe method fires a `validated` event with the result of the validation.",
376
+ "return": {
377
+ "type": {
378
+ "text": "boolean"
379
+ }
380
+ },
381
+ "inheritedFrom": {
382
+ "name": "FieldMixin",
383
+ "package": "@vaadin/field-base/src/field-mixin.js"
384
+ }
385
+ },
386
+ {
387
+ "kind": "field",
388
+ "name": "value",
389
+ "privacy": "public",
390
+ "type": {
391
+ "text": "string"
392
+ },
393
+ "description": "The value of the field.",
394
+ "attribute": "value",
395
+ "inheritedFrom": {
396
+ "name": "ClearButtonMixin",
397
+ "package": "@vaadin/field-base/src/clear-button-mixin.js"
398
+ }
283
399
  }
284
400
  ],
285
401
  "events": [
@@ -287,6 +403,10 @@
287
403
  "name": "change",
288
404
  "type": {
289
405
  "text": "CustomEvent"
406
+ },
407
+ "inheritedFrom": {
408
+ "name": "InputConstraintsMixin",
409
+ "package": "@vaadin/field-base/src/input-constraints-mixin.js"
290
410
  }
291
411
  },
292
412
  {
@@ -294,6 +414,16 @@
294
414
  "type": {
295
415
  "text": "CustomEvent"
296
416
  }
417
+ },
418
+ {
419
+ "name": "validated",
420
+ "type": {
421
+ "text": "CustomEvent"
422
+ },
423
+ "inheritedFrom": {
424
+ "name": "FieldMixin",
425
+ "package": "@vaadin/field-base/src/field-mixin.js"
426
+ }
297
427
  }
298
428
  ],
299
429
  "attributes": [
@@ -369,6 +499,18 @@
369
499
  "package": "@vaadin/field-base/src/input-field-mixin.js"
370
500
  }
371
501
  },
502
+ {
503
+ "name": "autofocus",
504
+ "type": {
505
+ "text": "boolean"
506
+ },
507
+ "description": "Specify that this control should have input focus when the page loads.",
508
+ "fieldName": "autofocus",
509
+ "inheritedFrom": {
510
+ "name": "DelegateFocusMixin",
511
+ "package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
512
+ }
513
+ },
372
514
  {
373
515
  "name": "autoselect",
374
516
  "type": {
@@ -393,6 +535,18 @@
393
535
  "package": "@vaadin/field-base/src/clear-button-mixin.js"
394
536
  }
395
537
  },
538
+ {
539
+ "name": "disabled",
540
+ "type": {
541
+ "text": "boolean"
542
+ },
543
+ "description": "If true, the user cannot interact with this element.",
544
+ "fieldName": "disabled",
545
+ "inheritedFrom": {
546
+ "name": "DelegateFocusMixin",
547
+ "package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
548
+ }
549
+ },
396
550
  {
397
551
  "name": "error-message",
398
552
  "type": {
@@ -417,6 +571,18 @@
417
571
  "package": "@vaadin/field-base/src/field-mixin.js"
418
572
  }
419
573
  },
574
+ {
575
+ "name": "invalid",
576
+ "type": {
577
+ "text": "boolean"
578
+ },
579
+ "description": "Set to true when the field is invalid.",
580
+ "fieldName": "invalid",
581
+ "inheritedFrom": {
582
+ "name": "FieldMixin",
583
+ "package": "@vaadin/field-base/src/field-mixin.js"
584
+ }
585
+ },
420
586
  {
421
587
  "name": "label",
422
588
  "type": {
@@ -429,6 +595,18 @@
429
595
  "package": "@vaadin/field-base/src/field-mixin.js"
430
596
  }
431
597
  },
598
+ {
599
+ "name": "manual-validation",
600
+ "type": {
601
+ "text": "boolean"
602
+ },
603
+ "description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
604
+ "fieldName": "manualValidation",
605
+ "inheritedFrom": {
606
+ "name": "FieldMixin",
607
+ "package": "@vaadin/field-base/src/field-mixin.js"
608
+ }
609
+ },
432
610
  {
433
611
  "name": "max",
434
612
  "type": {
@@ -481,6 +659,18 @@
481
659
  "package": "@vaadin/field-base/src/input-control-mixin.js"
482
660
  }
483
661
  },
662
+ {
663
+ "name": "required",
664
+ "type": {
665
+ "text": "boolean"
666
+ },
667
+ "description": "Specifies that the user must fill in a value.",
668
+ "fieldName": "required",
669
+ "inheritedFrom": {
670
+ "name": "FieldMixin",
671
+ "package": "@vaadin/field-base/src/field-mixin.js"
672
+ }
673
+ },
484
674
  {
485
675
  "name": "step",
486
676
  "type": {
@@ -508,6 +698,18 @@
508
698
  "name": "InputControlMixin",
509
699
  "package": "@vaadin/field-base/src/input-control-mixin.js"
510
700
  }
701
+ },
702
+ {
703
+ "name": "value",
704
+ "type": {
705
+ "text": "string"
706
+ },
707
+ "description": "The value of the field.",
708
+ "fieldName": "value",
709
+ "inheritedFrom": {
710
+ "name": "ClearButtonMixin",
711
+ "package": "@vaadin/field-base/src/clear-button-mixin.js"
712
+ }
511
713
  }
512
714
  ],
513
715
  "mixins": [
@@ -627,6 +829,20 @@
627
829
  "package": "@vaadin/field-base/src/input-field-mixin.js"
628
830
  }
629
831
  },
832
+ {
833
+ "kind": "field",
834
+ "name": "autofocus",
835
+ "privacy": "public",
836
+ "type": {
837
+ "text": "boolean"
838
+ },
839
+ "description": "Specify that this control should have input focus when the page loads.",
840
+ "attribute": "autofocus",
841
+ "inheritedFrom": {
842
+ "name": "DelegateFocusMixin",
843
+ "package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
844
+ }
845
+ },
630
846
  {
631
847
  "kind": "field",
632
848
  "name": "autoselect",
@@ -645,9 +861,23 @@
645
861
  "kind": "method",
646
862
  "name": "checkValidity",
647
863
  "description": "Override the method from `InputConstraintsMixin`\nto enforce HTML constraint validation even if\nthe user didn't add any constraints explicitly:\nthe field has to be regardless checked for bad input.",
864
+ "return": {
865
+ "type": {
866
+ "text": "boolean"
867
+ }
868
+ },
648
869
  "inheritedFrom": {
649
- "name": "NumberFieldMixin",
650
- "module": "src/vaadin-number-field-mixin.js"
870
+ "name": "InputConstraintsMixin",
871
+ "package": "@vaadin/field-base/src/input-constraints-mixin.js"
872
+ }
873
+ },
874
+ {
875
+ "kind": "method",
876
+ "name": "clear",
877
+ "description": "Clear the value of the field.",
878
+ "inheritedFrom": {
879
+ "name": "ClearButtonMixin",
880
+ "package": "@vaadin/field-base/src/clear-button-mixin.js"
651
881
  }
652
882
  },
653
883
  {
@@ -664,6 +894,20 @@
664
894
  "package": "@vaadin/field-base/src/clear-button-mixin.js"
665
895
  }
666
896
  },
897
+ {
898
+ "kind": "field",
899
+ "name": "disabled",
900
+ "privacy": "public",
901
+ "type": {
902
+ "text": "boolean"
903
+ },
904
+ "description": "If true, the user cannot interact with this element.",
905
+ "attribute": "disabled",
906
+ "inheritedFrom": {
907
+ "name": "DelegateFocusMixin",
908
+ "package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
909
+ }
910
+ },
667
911
  {
668
912
  "kind": "field",
669
913
  "name": "errorMessage",
@@ -692,6 +936,48 @@
692
936
  "package": "@vaadin/field-base/src/field-mixin.js"
693
937
  }
694
938
  },
939
+ {
940
+ "kind": "field",
941
+ "name": "invalid",
942
+ "privacy": "public",
943
+ "type": {
944
+ "text": "boolean"
945
+ },
946
+ "description": "Set to true when the field is invalid.",
947
+ "attribute": "invalid",
948
+ "inheritedFrom": {
949
+ "name": "FieldMixin",
950
+ "package": "@vaadin/field-base/src/field-mixin.js"
951
+ }
952
+ },
953
+ {
954
+ "kind": "field",
955
+ "name": "label",
956
+ "privacy": "public",
957
+ "type": {
958
+ "text": "string"
959
+ },
960
+ "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
961
+ "attribute": "label",
962
+ "inheritedFrom": {
963
+ "name": "FieldMixin",
964
+ "package": "@vaadin/field-base/src/field-mixin.js"
965
+ }
966
+ },
967
+ {
968
+ "kind": "field",
969
+ "name": "manualValidation",
970
+ "privacy": "public",
971
+ "type": {
972
+ "text": "boolean"
973
+ },
974
+ "description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
975
+ "attribute": "manual-validation",
976
+ "inheritedFrom": {
977
+ "name": "FieldMixin",
978
+ "package": "@vaadin/field-base/src/field-mixin.js"
979
+ }
980
+ },
695
981
  {
696
982
  "kind": "field",
697
983
  "name": "max",
@@ -762,6 +1048,20 @@
762
1048
  "package": "@vaadin/field-base/src/input-control-mixin.js"
763
1049
  }
764
1050
  },
1051
+ {
1052
+ "kind": "field",
1053
+ "name": "required",
1054
+ "privacy": "public",
1055
+ "type": {
1056
+ "text": "boolean"
1057
+ },
1058
+ "description": "Specifies that the user must fill in a value.",
1059
+ "attribute": "required",
1060
+ "inheritedFrom": {
1061
+ "name": "FieldMixin",
1062
+ "package": "@vaadin/field-base/src/field-mixin.js"
1063
+ }
1064
+ },
765
1065
  {
766
1066
  "kind": "field",
767
1067
  "name": "step",
@@ -803,6 +1103,34 @@
803
1103
  "name": "InputControlMixin",
804
1104
  "package": "@vaadin/field-base/src/input-control-mixin.js"
805
1105
  }
1106
+ },
1107
+ {
1108
+ "kind": "method",
1109
+ "name": "validate",
1110
+ "description": "Validates the field and sets the `invalid` property based on the result.\n\nThe method fires a `validated` event with the result of the validation.",
1111
+ "return": {
1112
+ "type": {
1113
+ "text": "boolean"
1114
+ }
1115
+ },
1116
+ "inheritedFrom": {
1117
+ "name": "FieldMixin",
1118
+ "package": "@vaadin/field-base/src/field-mixin.js"
1119
+ }
1120
+ },
1121
+ {
1122
+ "kind": "field",
1123
+ "name": "value",
1124
+ "privacy": "public",
1125
+ "type": {
1126
+ "text": "string"
1127
+ },
1128
+ "description": "The value of the field.",
1129
+ "attribute": "value",
1130
+ "inheritedFrom": {
1131
+ "name": "ClearButtonMixin",
1132
+ "package": "@vaadin/field-base/src/clear-button-mixin.js"
1133
+ }
806
1134
  }
807
1135
  ],
808
1136
  "events": [
@@ -813,8 +1141,8 @@
813
1141
  },
814
1142
  "description": "Fired when the user commits a value change.",
815
1143
  "inheritedFrom": {
816
- "name": "NumberFieldMixin",
817
- "module": "src/vaadin-number-field-mixin.js"
1144
+ "name": "InputConstraintsMixin",
1145
+ "package": "@vaadin/field-base/src/input-constraints-mixin.js"
818
1146
  }
819
1147
  },
820
1148
  {
@@ -958,6 +1286,18 @@
958
1286
  "package": "@vaadin/field-base/src/input-field-mixin.js"
959
1287
  }
960
1288
  },
1289
+ {
1290
+ "name": "autofocus",
1291
+ "type": {
1292
+ "text": "boolean"
1293
+ },
1294
+ "description": "Specify that this control should have input focus when the page loads.",
1295
+ "fieldName": "autofocus",
1296
+ "inheritedFrom": {
1297
+ "name": "DelegateFocusMixin",
1298
+ "package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
1299
+ }
1300
+ },
961
1301
  {
962
1302
  "name": "autoselect",
963
1303
  "type": {
@@ -982,6 +1322,18 @@
982
1322
  "package": "@vaadin/field-base/src/clear-button-mixin.js"
983
1323
  }
984
1324
  },
1325
+ {
1326
+ "name": "disabled",
1327
+ "type": {
1328
+ "text": "boolean"
1329
+ },
1330
+ "description": "If true, the user cannot interact with this element.",
1331
+ "fieldName": "disabled",
1332
+ "inheritedFrom": {
1333
+ "name": "DelegateFocusMixin",
1334
+ "package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
1335
+ }
1336
+ },
985
1337
  {
986
1338
  "name": "error-message",
987
1339
  "type": {
@@ -1006,6 +1358,42 @@
1006
1358
  "package": "@vaadin/field-base/src/field-mixin.js"
1007
1359
  }
1008
1360
  },
1361
+ {
1362
+ "name": "invalid",
1363
+ "type": {
1364
+ "text": "boolean"
1365
+ },
1366
+ "description": "Set to true when the field is invalid.",
1367
+ "fieldName": "invalid",
1368
+ "inheritedFrom": {
1369
+ "name": "FieldMixin",
1370
+ "package": "@vaadin/field-base/src/field-mixin.js"
1371
+ }
1372
+ },
1373
+ {
1374
+ "name": "label",
1375
+ "type": {
1376
+ "text": "string"
1377
+ },
1378
+ "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
1379
+ "fieldName": "label",
1380
+ "inheritedFrom": {
1381
+ "name": "FieldMixin",
1382
+ "package": "@vaadin/field-base/src/field-mixin.js"
1383
+ }
1384
+ },
1385
+ {
1386
+ "name": "manual-validation",
1387
+ "type": {
1388
+ "text": "boolean"
1389
+ },
1390
+ "description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
1391
+ "fieldName": "manualValidation",
1392
+ "inheritedFrom": {
1393
+ "name": "FieldMixin",
1394
+ "package": "@vaadin/field-base/src/field-mixin.js"
1395
+ }
1396
+ },
1009
1397
  {
1010
1398
  "name": "max",
1011
1399
  "type": {
@@ -1066,6 +1454,18 @@
1066
1454
  "package": "@vaadin/field-base/src/input-control-mixin.js"
1067
1455
  }
1068
1456
  },
1457
+ {
1458
+ "name": "required",
1459
+ "type": {
1460
+ "text": "boolean"
1461
+ },
1462
+ "description": "Specifies that the user must fill in a value.",
1463
+ "fieldName": "required",
1464
+ "inheritedFrom": {
1465
+ "name": "FieldMixin",
1466
+ "package": "@vaadin/field-base/src/field-mixin.js"
1467
+ }
1468
+ },
1069
1469
  {
1070
1470
  "name": "step",
1071
1471
  "type": {
@@ -1101,6 +1501,18 @@
1101
1501
  "name": "InputControlMixin",
1102
1502
  "package": "@vaadin/field-base/src/input-control-mixin.js"
1103
1503
  }
1504
+ },
1505
+ {
1506
+ "name": "value",
1507
+ "type": {
1508
+ "text": "string"
1509
+ },
1510
+ "description": "The value of the field.",
1511
+ "fieldName": "value",
1512
+ "inheritedFrom": {
1513
+ "name": "ClearButtonMixin",
1514
+ "package": "@vaadin/field-base/src/clear-button-mixin.js"
1515
+ }
1104
1516
  }
1105
1517
  ]
1106
1518
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/number-field",
3
- "version": "25.1.2",
3
+ "version": "25.2.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,19 +35,19 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "~25.1.2",
39
- "@vaadin/component-base": "~25.1.2",
40
- "@vaadin/field-base": "~25.1.2",
41
- "@vaadin/input-container": "~25.1.2",
42
- "@vaadin/vaadin-themable-mixin": "~25.1.2",
38
+ "@vaadin/a11y-base": "25.2.0-alpha10",
39
+ "@vaadin/component-base": "25.2.0-alpha10",
40
+ "@vaadin/field-base": "25.2.0-alpha10",
41
+ "@vaadin/input-container": "25.2.0-alpha10",
42
+ "@vaadin/vaadin-themable-mixin": "25.2.0-alpha10",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/aura": "~25.1.2",
47
- "@vaadin/chai-plugins": "~25.1.2",
48
- "@vaadin/test-runner-commands": "~25.1.2",
46
+ "@vaadin/aura": "25.2.0-alpha10",
47
+ "@vaadin/chai-plugins": "25.2.0-alpha10",
48
+ "@vaadin/test-runner-commands": "25.2.0-alpha10",
49
49
  "@vaadin/testing-helpers": "^2.0.0",
50
- "@vaadin/vaadin-lumo-styles": "~25.1.2",
50
+ "@vaadin/vaadin-lumo-styles": "25.2.0-alpha10",
51
51
  "sinon": "^21.0.2"
52
52
  },
53
53
  "customElements": "custom-elements.json",
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "48e5dc507ac5eb8d34839be06cac652f1635fe1c"
58
+ "gitHead": "1303b6a3eeecb44a9d26f2b53cb56d9e906febdf"
59
59
  }