@vaadin/time-picker 25.2.0-alpha10 → 25.2.0-alpha12
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/custom-elements.json +51 -55
- package/package.json +14 -14
- package/src/vaadin-time-picker-item.js +0 -3
- package/src/vaadin-time-picker-mixin.js +6 -11
- package/src/vaadin-time-picker-overlay.js +0 -4
- package/src/vaadin-time-picker-scroller.js +0 -1
- package/src/vaadin-time-picker.js +0 -3
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -216,8 +216,8 @@
|
|
|
216
216
|
}
|
|
217
217
|
},
|
|
218
218
|
"inheritedFrom": {
|
|
219
|
-
"name": "
|
|
220
|
-
"package": "@vaadin/field-base/src/
|
|
219
|
+
"name": "FieldMixin",
|
|
220
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
223
|
{
|
|
@@ -225,8 +225,8 @@
|
|
|
225
225
|
"name": "clear",
|
|
226
226
|
"description": "Clear the value of the field.",
|
|
227
227
|
"inheritedFrom": {
|
|
228
|
-
"name": "
|
|
229
|
-
"package": "@vaadin/field-base/src/
|
|
228
|
+
"name": "ClearButtonMixin",
|
|
229
|
+
"package": "@vaadin/field-base/src/clear-button-mixin.js"
|
|
230
230
|
}
|
|
231
231
|
},
|
|
232
232
|
{
|
|
@@ -318,8 +318,8 @@
|
|
|
318
318
|
"description": "Set to true when the field is invalid.",
|
|
319
319
|
"attribute": "invalid",
|
|
320
320
|
"inheritedFrom": {
|
|
321
|
-
"name": "
|
|
322
|
-
"package": "@vaadin/field-base/src/
|
|
321
|
+
"name": "FieldMixin",
|
|
322
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
323
323
|
}
|
|
324
324
|
},
|
|
325
325
|
{
|
|
@@ -346,8 +346,8 @@
|
|
|
346
346
|
"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.",
|
|
347
347
|
"attribute": "manual-validation",
|
|
348
348
|
"inheritedFrom": {
|
|
349
|
-
"name": "
|
|
350
|
-
"package": "@vaadin/field-base/src/
|
|
349
|
+
"name": "FieldMixin",
|
|
350
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
351
351
|
}
|
|
352
352
|
},
|
|
353
353
|
{
|
|
@@ -459,8 +459,8 @@
|
|
|
459
459
|
"description": "Specifies that the user must fill in a value.",
|
|
460
460
|
"attribute": "required",
|
|
461
461
|
"inheritedFrom": {
|
|
462
|
-
"name": "
|
|
463
|
-
"package": "@vaadin/field-base/src/
|
|
462
|
+
"name": "FieldMixin",
|
|
463
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
464
464
|
}
|
|
465
465
|
},
|
|
466
466
|
{
|
|
@@ -497,8 +497,8 @@
|
|
|
497
497
|
}
|
|
498
498
|
},
|
|
499
499
|
"inheritedFrom": {
|
|
500
|
-
"name": "
|
|
501
|
-
"package": "@vaadin/field-base/src/
|
|
500
|
+
"name": "FieldMixin",
|
|
501
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
502
502
|
}
|
|
503
503
|
},
|
|
504
504
|
{
|
|
@@ -511,8 +511,8 @@
|
|
|
511
511
|
"description": "The time value for this element.\n\nSupported time formats are in ISO 8601:\n- `hh:mm` (default)\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
|
|
512
512
|
"attribute": "value",
|
|
513
513
|
"inheritedFrom": {
|
|
514
|
-
"name": "
|
|
515
|
-
"package": "@vaadin/field-base/src/
|
|
514
|
+
"name": "ClearButtonMixin",
|
|
515
|
+
"package": "@vaadin/field-base/src/clear-button-mixin.js"
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
],
|
|
@@ -539,8 +539,8 @@
|
|
|
539
539
|
"text": "CustomEvent"
|
|
540
540
|
},
|
|
541
541
|
"inheritedFrom": {
|
|
542
|
-
"name": "
|
|
543
|
-
"package": "@vaadin/field-base/src/
|
|
542
|
+
"name": "FieldMixin",
|
|
543
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
],
|
|
@@ -685,8 +685,8 @@
|
|
|
685
685
|
"description": "Set to true when the field is invalid.",
|
|
686
686
|
"fieldName": "invalid",
|
|
687
687
|
"inheritedFrom": {
|
|
688
|
-
"name": "
|
|
689
|
-
"package": "@vaadin/field-base/src/
|
|
688
|
+
"name": "FieldMixin",
|
|
689
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
690
690
|
}
|
|
691
691
|
},
|
|
692
692
|
{
|
|
@@ -709,8 +709,8 @@
|
|
|
709
709
|
"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.",
|
|
710
710
|
"fieldName": "manualValidation",
|
|
711
711
|
"inheritedFrom": {
|
|
712
|
-
"name": "
|
|
713
|
-
"package": "@vaadin/field-base/src/
|
|
712
|
+
"name": "FieldMixin",
|
|
713
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
714
714
|
}
|
|
715
715
|
},
|
|
716
716
|
{
|
|
@@ -797,8 +797,8 @@
|
|
|
797
797
|
"description": "Specifies that the user must fill in a value.",
|
|
798
798
|
"fieldName": "required",
|
|
799
799
|
"inheritedFrom": {
|
|
800
|
-
"name": "
|
|
801
|
-
"package": "@vaadin/field-base/src/
|
|
800
|
+
"name": "FieldMixin",
|
|
801
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
802
802
|
}
|
|
803
803
|
},
|
|
804
804
|
{
|
|
@@ -829,8 +829,8 @@
|
|
|
829
829
|
"description": "The time value for this element.\n\nSupported time formats are in ISO 8601:\n- `hh:mm` (default)\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
|
|
830
830
|
"fieldName": "value",
|
|
831
831
|
"inheritedFrom": {
|
|
832
|
-
"name": "
|
|
833
|
-
"package": "@vaadin/field-base/src/
|
|
832
|
+
"name": "ClearButtonMixin",
|
|
833
|
+
"package": "@vaadin/field-base/src/clear-button-mixin.js"
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
836
|
],
|
|
@@ -839,6 +839,10 @@
|
|
|
839
839
|
"name": "I18nMixin",
|
|
840
840
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
841
841
|
},
|
|
842
|
+
{
|
|
843
|
+
"name": "PatternMixin",
|
|
844
|
+
"package": "@vaadin/field-base/src/pattern-mixin.js"
|
|
845
|
+
},
|
|
842
846
|
{
|
|
843
847
|
"name": "ComboBoxBaseMixin",
|
|
844
848
|
"package": "@vaadin/combo-box/src/vaadin-combo-box-base-mixin.js"
|
|
@@ -846,10 +850,6 @@
|
|
|
846
850
|
{
|
|
847
851
|
"name": "InputControlMixin",
|
|
848
852
|
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
"name": "PatternMixin",
|
|
852
|
-
"package": "@vaadin/field-base/src/pattern-mixin.js"
|
|
853
853
|
}
|
|
854
854
|
],
|
|
855
855
|
"parameters": [
|
|
@@ -981,8 +981,8 @@
|
|
|
981
981
|
}
|
|
982
982
|
},
|
|
983
983
|
"inheritedFrom": {
|
|
984
|
-
"name": "
|
|
985
|
-
"package": "@vaadin/field-base/src/
|
|
984
|
+
"name": "InputConstraintsMixin",
|
|
985
|
+
"package": "@vaadin/field-base/src/input-constraints-mixin.js"
|
|
986
986
|
}
|
|
987
987
|
},
|
|
988
988
|
{
|
|
@@ -990,8 +990,8 @@
|
|
|
990
990
|
"name": "clear",
|
|
991
991
|
"description": "Clear the value of the field.",
|
|
992
992
|
"inheritedFrom": {
|
|
993
|
-
"name": "
|
|
994
|
-
"package": "@vaadin/field-base/src/
|
|
993
|
+
"name": "ClearButtonMixin",
|
|
994
|
+
"package": "@vaadin/field-base/src/clear-button-mixin.js"
|
|
995
995
|
}
|
|
996
996
|
},
|
|
997
997
|
{
|
|
@@ -1083,8 +1083,8 @@
|
|
|
1083
1083
|
"description": "Set to true when the field is invalid.",
|
|
1084
1084
|
"attribute": "invalid",
|
|
1085
1085
|
"inheritedFrom": {
|
|
1086
|
-
"name": "
|
|
1087
|
-
"package": "@vaadin/field-base/src/
|
|
1086
|
+
"name": "FieldMixin",
|
|
1087
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1088
1088
|
}
|
|
1089
1089
|
},
|
|
1090
1090
|
{
|
|
@@ -1111,8 +1111,8 @@
|
|
|
1111
1111
|
"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.",
|
|
1112
1112
|
"attribute": "manual-validation",
|
|
1113
1113
|
"inheritedFrom": {
|
|
1114
|
-
"name": "
|
|
1115
|
-
"package": "@vaadin/field-base/src/
|
|
1114
|
+
"name": "FieldMixin",
|
|
1115
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1116
1116
|
}
|
|
1117
1117
|
},
|
|
1118
1118
|
{
|
|
@@ -1232,8 +1232,8 @@
|
|
|
1232
1232
|
"description": "Specifies that the user must fill in a value.",
|
|
1233
1233
|
"attribute": "required",
|
|
1234
1234
|
"inheritedFrom": {
|
|
1235
|
-
"name": "
|
|
1236
|
-
"package": "@vaadin/field-base/src/
|
|
1235
|
+
"name": "FieldMixin",
|
|
1236
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1237
1237
|
}
|
|
1238
1238
|
},
|
|
1239
1239
|
{
|
|
@@ -1274,8 +1274,8 @@
|
|
|
1274
1274
|
}
|
|
1275
1275
|
},
|
|
1276
1276
|
"inheritedFrom": {
|
|
1277
|
-
"name": "
|
|
1278
|
-
"package": "@vaadin/field-base/src/
|
|
1277
|
+
"name": "FieldMixin",
|
|
1278
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1279
1279
|
}
|
|
1280
1280
|
},
|
|
1281
1281
|
{
|
|
@@ -1288,8 +1288,8 @@
|
|
|
1288
1288
|
"description": "The time value for this element.\n\nSupported time formats are in ISO 8601:\n- `hh:mm` (default)\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
|
|
1289
1289
|
"attribute": "value",
|
|
1290
1290
|
"inheritedFrom": {
|
|
1291
|
-
"name": "
|
|
1292
|
-
"
|
|
1291
|
+
"name": "TimePickerMixin",
|
|
1292
|
+
"module": "src/vaadin-time-picker-mixin.js"
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
1295
|
],
|
|
@@ -1331,15 +1331,11 @@
|
|
|
1331
1331
|
}
|
|
1332
1332
|
},
|
|
1333
1333
|
{
|
|
1334
|
-
"name": "validated",
|
|
1335
1334
|
"type": {
|
|
1336
1335
|
"text": "CustomEvent"
|
|
1337
1336
|
},
|
|
1338
1337
|
"description": "Fired whenever the field is validated.",
|
|
1339
|
-
"
|
|
1340
|
-
"name": "ValidateMixin",
|
|
1341
|
-
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
1342
|
-
}
|
|
1338
|
+
"name": "validated"
|
|
1343
1339
|
},
|
|
1344
1340
|
{
|
|
1345
1341
|
"type": {
|
|
@@ -1518,8 +1514,8 @@
|
|
|
1518
1514
|
"description": "Set to true when the field is invalid.",
|
|
1519
1515
|
"fieldName": "invalid",
|
|
1520
1516
|
"inheritedFrom": {
|
|
1521
|
-
"name": "
|
|
1522
|
-
"package": "@vaadin/field-base/src/
|
|
1517
|
+
"name": "FieldMixin",
|
|
1518
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1523
1519
|
}
|
|
1524
1520
|
},
|
|
1525
1521
|
{
|
|
@@ -1542,8 +1538,8 @@
|
|
|
1542
1538
|
"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.",
|
|
1543
1539
|
"fieldName": "manualValidation",
|
|
1544
1540
|
"inheritedFrom": {
|
|
1545
|
-
"name": "
|
|
1546
|
-
"package": "@vaadin/field-base/src/
|
|
1541
|
+
"name": "FieldMixin",
|
|
1542
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1547
1543
|
}
|
|
1548
1544
|
},
|
|
1549
1545
|
{
|
|
@@ -1638,8 +1634,8 @@
|
|
|
1638
1634
|
"description": "Specifies that the user must fill in a value.",
|
|
1639
1635
|
"fieldName": "required",
|
|
1640
1636
|
"inheritedFrom": {
|
|
1641
|
-
"name": "
|
|
1642
|
-
"package": "@vaadin/field-base/src/
|
|
1637
|
+
"name": "FieldMixin",
|
|
1638
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1643
1639
|
}
|
|
1644
1640
|
},
|
|
1645
1641
|
{
|
|
@@ -1674,8 +1670,8 @@
|
|
|
1674
1670
|
"description": "The time value for this element.\n\nSupported time formats are in ISO 8601:\n- `hh:mm` (default)\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
|
|
1675
1671
|
"fieldName": "value",
|
|
1676
1672
|
"inheritedFrom": {
|
|
1677
|
-
"name": "
|
|
1678
|
-
"
|
|
1673
|
+
"name": "TimePickerMixin",
|
|
1674
|
+
"module": "src/vaadin-time-picker-mixin.js"
|
|
1679
1675
|
}
|
|
1680
1676
|
}
|
|
1681
1677
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/time-picker",
|
|
3
|
-
"version": "25.2.0-
|
|
3
|
+
"version": "25.2.0-alpha12",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "25.2.0-
|
|
39
|
-
"@vaadin/combo-box": "25.2.0-
|
|
40
|
-
"@vaadin/component-base": "25.2.0-
|
|
41
|
-
"@vaadin/field-base": "25.2.0-
|
|
42
|
-
"@vaadin/input-container": "25.2.0-
|
|
43
|
-
"@vaadin/item": "25.2.0-
|
|
44
|
-
"@vaadin/overlay": "25.2.0-
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "25.2.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.2.0-alpha12",
|
|
39
|
+
"@vaadin/combo-box": "25.2.0-alpha12",
|
|
40
|
+
"@vaadin/component-base": "25.2.0-alpha12",
|
|
41
|
+
"@vaadin/field-base": "25.2.0-alpha12",
|
|
42
|
+
"@vaadin/input-container": "25.2.0-alpha12",
|
|
43
|
+
"@vaadin/item": "25.2.0-alpha12",
|
|
44
|
+
"@vaadin/overlay": "25.2.0-alpha12",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "25.2.0-alpha12",
|
|
46
46
|
"lit": "^3.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@vaadin/aura": "25.2.0-
|
|
50
|
-
"@vaadin/chai-plugins": "25.2.0-
|
|
51
|
-
"@vaadin/test-runner-commands": "25.2.0-
|
|
49
|
+
"@vaadin/aura": "25.2.0-alpha12",
|
|
50
|
+
"@vaadin/chai-plugins": "25.2.0-alpha12",
|
|
51
|
+
"@vaadin/test-runner-commands": "25.2.0-alpha12",
|
|
52
52
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
53
|
-
"@vaadin/vaadin-lumo-styles": "25.2.0-
|
|
53
|
+
"@vaadin/vaadin-lumo-styles": "25.2.0-alpha12",
|
|
54
54
|
"sinon": "^21.0.2"
|
|
55
55
|
},
|
|
56
56
|
"customElements": "custom-elements.json",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"web-types.json",
|
|
59
59
|
"web-types.lit.json"
|
|
60
60
|
],
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "ae1e4373aec3653d63a45b6be18eee36f4b245a1"
|
|
62
62
|
}
|
|
@@ -35,9 +35,6 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
35
35
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
36
36
|
*
|
|
37
37
|
* @customElement vaadin-time-picker-item
|
|
38
|
-
* @mixes ComboBoxItemMixin
|
|
39
|
-
* @mixes ThemableMixin
|
|
40
|
-
* @mixes DirMixin
|
|
41
38
|
* @private
|
|
42
39
|
*/
|
|
43
40
|
export class TimePickerItem extends ComboBoxItemMixin(
|
|
@@ -22,18 +22,9 @@ const MAX_ALLOWED_TIME = '23:59:59.999';
|
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* A mixin providing common time-picker functionality.
|
|
25
|
-
*
|
|
26
|
-
* @polymerMixin
|
|
27
|
-
* @mixes ComboBoxBaseMixin
|
|
28
|
-
* @mixes I18nMixin
|
|
29
|
-
* @mixes InputControlMixin
|
|
30
|
-
* @mixes PatternMixin
|
|
31
25
|
*/
|
|
32
26
|
export const TimePickerMixin = (superClass) =>
|
|
33
|
-
class TimePickerMixinClass extends I18nMixin(
|
|
34
|
-
timePickerI18nDefaults,
|
|
35
|
-
PatternMixin(ComboBoxBaseMixin(InputControlMixin(superClass))),
|
|
36
|
-
) {
|
|
27
|
+
class TimePickerMixinClass extends I18nMixin(PatternMixin(ComboBoxBaseMixin(InputControlMixin(superClass)))) {
|
|
37
28
|
static get properties() {
|
|
38
29
|
return {
|
|
39
30
|
/**
|
|
@@ -123,6 +114,10 @@ export const TimePickerMixin = (superClass) =>
|
|
|
123
114
|
];
|
|
124
115
|
}
|
|
125
116
|
|
|
117
|
+
static get defaultI18n() {
|
|
118
|
+
return timePickerI18nDefaults;
|
|
119
|
+
}
|
|
120
|
+
|
|
126
121
|
static get constraints() {
|
|
127
122
|
return [...super.constraints, 'min', 'max'];
|
|
128
123
|
}
|
|
@@ -589,7 +584,7 @@ export const TimePickerMixin = (superClass) =>
|
|
|
589
584
|
|
|
590
585
|
if (value !== '' && value !== null && !parsedObj) {
|
|
591
586
|
// Value can not be parsed, reset to the old one.
|
|
592
|
-
this.value = oldValue
|
|
587
|
+
this.value = oldValue ?? '';
|
|
593
588
|
} else if (value !== newValue) {
|
|
594
589
|
// Value can be parsed (e.g. 12 -> 12:00), adjust.
|
|
595
590
|
this.value = newValue;
|
|
@@ -18,10 +18,6 @@ import { timePickerOverlayStyles } from './styles/vaadin-time-picker-overlay-bas
|
|
|
18
18
|
* An element used internally by `<vaadin-time-picker>`. Not intended to be used separately.
|
|
19
19
|
*
|
|
20
20
|
* @extends HTMLElement
|
|
21
|
-
* @mixes ComboBoxOverlayMixin
|
|
22
|
-
* @mixes DirMixin
|
|
23
|
-
* @mixes OverlayMixin
|
|
24
|
-
* @mixes ThemableMixin
|
|
25
21
|
* @private
|
|
26
22
|
*/
|
|
27
23
|
export class TimePickerOverlay extends ComboBoxOverlayMixin(
|
|
@@ -14,7 +14,6 @@ import { timePickerScrollerStyles } from './styles/vaadin-time-picker-scroller-b
|
|
|
14
14
|
*
|
|
15
15
|
* @customElement vaadin-time-picker-scroller
|
|
16
16
|
* @extends HTMLElement
|
|
17
|
-
* @mixes ComboBoxScrollerMixin
|
|
18
17
|
* @private
|
|
19
18
|
*/
|
|
20
19
|
export class TimePickerScroller extends ComboBoxScrollerMixin(PolylitMixin(LitElement)) {
|
|
@@ -105,9 +105,6 @@ import { TimePickerMixin } from './vaadin-time-picker-mixin.js';
|
|
|
105
105
|
*
|
|
106
106
|
* @customElement vaadin-time-picker
|
|
107
107
|
* @extends HTMLElement
|
|
108
|
-
* @mixes ElementMixin
|
|
109
|
-
* @mixes ThemableMixin
|
|
110
|
-
* @mixes TimePickerMixin
|
|
111
108
|
*/
|
|
112
109
|
class TimePicker extends TimePickerMixin(ThemableMixin(ElementMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
|
|
113
110
|
static get is() {
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/time-picker",
|
|
4
|
-
"version": "25.2.0-
|
|
4
|
+
"version": "25.2.0-alpha12",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-time-picker",
|
|
11
|
-
"description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\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 buttons\n`field-button` | Set on both clear and toggle buttons\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`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\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`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`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.2.0-
|
|
11
|
+
"description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\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 buttons\n`field-button` | Set on both clear and toggle buttons\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`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\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`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`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.2.0-alpha12/#/elements/vaadin-item).\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 | unparsable-change",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "accessible-name",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/time-picker",
|
|
4
|
-
"version": "25.2.0-
|
|
4
|
+
"version": "25.2.0-alpha12",
|
|
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-time-picker",
|
|
19
|
-
"description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\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 buttons\n`field-button` | Set on both clear and toggle buttons\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`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\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`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`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.2.0-
|
|
19
|
+
"description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\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 buttons\n`field-button` | Set on both clear and toggle buttons\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`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\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`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`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.2.0-alpha12/#/elements/vaadin-item).\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 | unparsable-change",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|