@vaadin/date-picker 25.2.0-alpha1 → 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.
- package/custom-elements.json +364 -6
- package/package.json +13 -13
- package/src/vaadin-date-picker-mixin.js +0 -18
- package/src/vaadin-date-picker-overlay-content-mixin.js +4 -11
- package/src/vaadin-date-picker.js +1 -1
- package/src/vaadin-month-calendar-mixin.js +1 -1
- package/web-types.json +56 -163
- package/web-types.lit.json +56 -56
package/custom-elements.json
CHANGED
|
@@ -447,6 +447,20 @@
|
|
|
447
447
|
"description": "",
|
|
448
448
|
"name": "DatePickerMixin",
|
|
449
449
|
"members": [
|
|
450
|
+
{
|
|
451
|
+
"kind": "field",
|
|
452
|
+
"name": "autofocus",
|
|
453
|
+
"privacy": "public",
|
|
454
|
+
"type": {
|
|
455
|
+
"text": "boolean"
|
|
456
|
+
},
|
|
457
|
+
"description": "Specify that this control should have input focus when the page loads.",
|
|
458
|
+
"attribute": "autofocus",
|
|
459
|
+
"inheritedFrom": {
|
|
460
|
+
"name": "DelegateFocusMixin",
|
|
461
|
+
"package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
|
|
462
|
+
}
|
|
463
|
+
},
|
|
450
464
|
{
|
|
451
465
|
"kind": "field",
|
|
452
466
|
"name": "autoOpenDisabled",
|
|
@@ -465,6 +479,19 @@
|
|
|
465
479
|
"type": {
|
|
466
480
|
"text": "boolean"
|
|
467
481
|
}
|
|
482
|
+
},
|
|
483
|
+
"inheritedFrom": {
|
|
484
|
+
"name": "ValidateMixin",
|
|
485
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"kind": "method",
|
|
490
|
+
"name": "clear",
|
|
491
|
+
"description": "Clear the value of the field.",
|
|
492
|
+
"inheritedFrom": {
|
|
493
|
+
"name": "InputMixin",
|
|
494
|
+
"package": "@vaadin/field-base/src/input-mixin.js"
|
|
468
495
|
}
|
|
469
496
|
},
|
|
470
497
|
{
|
|
@@ -472,6 +499,20 @@
|
|
|
472
499
|
"name": "close",
|
|
473
500
|
"description": "Closes the dropdown."
|
|
474
501
|
},
|
|
502
|
+
{
|
|
503
|
+
"kind": "field",
|
|
504
|
+
"name": "disabled",
|
|
505
|
+
"privacy": "public",
|
|
506
|
+
"type": {
|
|
507
|
+
"text": "boolean"
|
|
508
|
+
},
|
|
509
|
+
"description": "If true, the user cannot interact with this element.",
|
|
510
|
+
"attribute": "disabled",
|
|
511
|
+
"inheritedFrom": {
|
|
512
|
+
"name": "TabindexMixin",
|
|
513
|
+
"package": "@vaadin/a11y-base/src/tabindex-mixin.js"
|
|
514
|
+
}
|
|
515
|
+
},
|
|
475
516
|
{
|
|
476
517
|
"kind": "field",
|
|
477
518
|
"name": "i18n",
|
|
@@ -496,6 +537,20 @@
|
|
|
496
537
|
"description": "Date which should be visible when there is no value selected.\n\nThe same date formats as for the `value` property are supported.",
|
|
497
538
|
"attribute": "initial-position"
|
|
498
539
|
},
|
|
540
|
+
{
|
|
541
|
+
"kind": "field",
|
|
542
|
+
"name": "invalid",
|
|
543
|
+
"privacy": "public",
|
|
544
|
+
"type": {
|
|
545
|
+
"text": "boolean"
|
|
546
|
+
},
|
|
547
|
+
"description": "Set to true when the field is invalid.",
|
|
548
|
+
"attribute": "invalid",
|
|
549
|
+
"inheritedFrom": {
|
|
550
|
+
"name": "ValidateMixin",
|
|
551
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
499
554
|
{
|
|
500
555
|
"kind": "field",
|
|
501
556
|
"name": "isDateDisabled",
|
|
@@ -506,6 +561,20 @@
|
|
|
506
561
|
"description": "A function to be used to determine whether the user can select a given date.\nReceives a `DatePickerDate` object of the date to be selected and should return a\nboolean.",
|
|
507
562
|
"attribute": "is-date-disabled"
|
|
508
563
|
},
|
|
564
|
+
{
|
|
565
|
+
"kind": "field",
|
|
566
|
+
"name": "manualValidation",
|
|
567
|
+
"privacy": "public",
|
|
568
|
+
"type": {
|
|
569
|
+
"text": "boolean"
|
|
570
|
+
},
|
|
571
|
+
"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.",
|
|
572
|
+
"attribute": "manual-validation",
|
|
573
|
+
"inheritedFrom": {
|
|
574
|
+
"name": "ValidateMixin",
|
|
575
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
509
578
|
{
|
|
510
579
|
"kind": "field",
|
|
511
580
|
"name": "max",
|
|
@@ -541,6 +610,20 @@
|
|
|
541
610
|
"description": "Set true to open the date selector overlay.",
|
|
542
611
|
"attribute": "opened"
|
|
543
612
|
},
|
|
613
|
+
{
|
|
614
|
+
"kind": "field",
|
|
615
|
+
"name": "required",
|
|
616
|
+
"privacy": "public",
|
|
617
|
+
"type": {
|
|
618
|
+
"text": "boolean"
|
|
619
|
+
},
|
|
620
|
+
"description": "Specifies that the user must fill in a value.",
|
|
621
|
+
"attribute": "required",
|
|
622
|
+
"inheritedFrom": {
|
|
623
|
+
"name": "ValidateMixin",
|
|
624
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
625
|
+
}
|
|
626
|
+
},
|
|
544
627
|
{
|
|
545
628
|
"kind": "field",
|
|
546
629
|
"name": "showWeekNumbers",
|
|
@@ -551,6 +634,20 @@
|
|
|
551
634
|
"description": "Set true to display ISO-8601 week numbers in the calendar. Notice that\ndisplaying week numbers is only supported when `i18n.firstDayOfWeek`\nis 1 (Monday).",
|
|
552
635
|
"attribute": "show-week-numbers"
|
|
553
636
|
},
|
|
637
|
+
{
|
|
638
|
+
"kind": "method",
|
|
639
|
+
"name": "validate",
|
|
640
|
+
"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.",
|
|
641
|
+
"return": {
|
|
642
|
+
"type": {
|
|
643
|
+
"text": "boolean"
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
"inheritedFrom": {
|
|
647
|
+
"name": "ValidateMixin",
|
|
648
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
649
|
+
}
|
|
650
|
+
},
|
|
554
651
|
{
|
|
555
652
|
"kind": "field",
|
|
556
653
|
"name": "value",
|
|
@@ -559,7 +656,11 @@
|
|
|
559
656
|
"text": "string"
|
|
560
657
|
},
|
|
561
658
|
"description": "Selected date.\n\nSupported date formats:\n- ISO 8601 `\"YYYY-MM-DD\"` (default)\n- 6-digit extended ISO 8601 `\"+YYYYYY-MM-DD\"`, `\"-YYYYYY-MM-DD\"`",
|
|
562
|
-
"attribute": "value"
|
|
659
|
+
"attribute": "value",
|
|
660
|
+
"inheritedFrom": {
|
|
661
|
+
"name": "InputMixin",
|
|
662
|
+
"package": "@vaadin/field-base/src/input-mixin.js"
|
|
663
|
+
}
|
|
563
664
|
}
|
|
564
665
|
],
|
|
565
666
|
"events": [
|
|
@@ -567,6 +668,10 @@
|
|
|
567
668
|
"name": "change",
|
|
568
669
|
"type": {
|
|
569
670
|
"text": "CustomEvent"
|
|
671
|
+
},
|
|
672
|
+
"inheritedFrom": {
|
|
673
|
+
"name": "InputConstraintsMixin",
|
|
674
|
+
"package": "@vaadin/field-base/src/input-constraints-mixin.js"
|
|
570
675
|
}
|
|
571
676
|
},
|
|
572
677
|
{
|
|
@@ -574,6 +679,16 @@
|
|
|
574
679
|
"type": {
|
|
575
680
|
"text": "CustomEvent"
|
|
576
681
|
}
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"name": "validated",
|
|
685
|
+
"type": {
|
|
686
|
+
"text": "CustomEvent"
|
|
687
|
+
},
|
|
688
|
+
"inheritedFrom": {
|
|
689
|
+
"name": "ValidateMixin",
|
|
690
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
691
|
+
}
|
|
577
692
|
}
|
|
578
693
|
],
|
|
579
694
|
"attributes": [
|
|
@@ -585,6 +700,30 @@
|
|
|
585
700
|
"description": "Set true to prevent the overlay from opening automatically.",
|
|
586
701
|
"fieldName": "autoOpenDisabled"
|
|
587
702
|
},
|
|
703
|
+
{
|
|
704
|
+
"name": "autofocus",
|
|
705
|
+
"type": {
|
|
706
|
+
"text": "boolean"
|
|
707
|
+
},
|
|
708
|
+
"description": "Specify that this control should have input focus when the page loads.",
|
|
709
|
+
"fieldName": "autofocus",
|
|
710
|
+
"inheritedFrom": {
|
|
711
|
+
"name": "DelegateFocusMixin",
|
|
712
|
+
"package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"name": "disabled",
|
|
717
|
+
"type": {
|
|
718
|
+
"text": "boolean"
|
|
719
|
+
},
|
|
720
|
+
"description": "If true, the user cannot interact with this element.",
|
|
721
|
+
"fieldName": "disabled",
|
|
722
|
+
"inheritedFrom": {
|
|
723
|
+
"name": "TabindexMixin",
|
|
724
|
+
"package": "@vaadin/a11y-base/src/tabindex-mixin.js"
|
|
725
|
+
}
|
|
726
|
+
},
|
|
588
727
|
{
|
|
589
728
|
"name": "i18n",
|
|
590
729
|
"type": {
|
|
@@ -605,6 +744,18 @@
|
|
|
605
744
|
"description": "Date which should be visible when there is no value selected.\n\nThe same date formats as for the `value` property are supported.",
|
|
606
745
|
"fieldName": "initialPosition"
|
|
607
746
|
},
|
|
747
|
+
{
|
|
748
|
+
"name": "invalid",
|
|
749
|
+
"type": {
|
|
750
|
+
"text": "boolean"
|
|
751
|
+
},
|
|
752
|
+
"description": "Set to true when the field is invalid.",
|
|
753
|
+
"fieldName": "invalid",
|
|
754
|
+
"inheritedFrom": {
|
|
755
|
+
"name": "ValidateMixin",
|
|
756
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
757
|
+
}
|
|
758
|
+
},
|
|
608
759
|
{
|
|
609
760
|
"name": "is-date-disabled",
|
|
610
761
|
"type": {
|
|
@@ -613,6 +764,18 @@
|
|
|
613
764
|
"description": "A function to be used to determine whether the user can select a given date.\nReceives a `DatePickerDate` object of the date to be selected and should return a\nboolean.",
|
|
614
765
|
"fieldName": "isDateDisabled"
|
|
615
766
|
},
|
|
767
|
+
{
|
|
768
|
+
"name": "manual-validation",
|
|
769
|
+
"type": {
|
|
770
|
+
"text": "boolean"
|
|
771
|
+
},
|
|
772
|
+
"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.",
|
|
773
|
+
"fieldName": "manualValidation",
|
|
774
|
+
"inheritedFrom": {
|
|
775
|
+
"name": "ValidateMixin",
|
|
776
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
777
|
+
}
|
|
778
|
+
},
|
|
616
779
|
{
|
|
617
780
|
"name": "max",
|
|
618
781
|
"type": {
|
|
@@ -637,6 +800,18 @@
|
|
|
637
800
|
"description": "Set true to open the date selector overlay.",
|
|
638
801
|
"fieldName": "opened"
|
|
639
802
|
},
|
|
803
|
+
{
|
|
804
|
+
"name": "required",
|
|
805
|
+
"type": {
|
|
806
|
+
"text": "boolean"
|
|
807
|
+
},
|
|
808
|
+
"description": "Specifies that the user must fill in a value.",
|
|
809
|
+
"fieldName": "required",
|
|
810
|
+
"inheritedFrom": {
|
|
811
|
+
"name": "ValidateMixin",
|
|
812
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
813
|
+
}
|
|
814
|
+
},
|
|
640
815
|
{
|
|
641
816
|
"name": "show-week-numbers",
|
|
642
817
|
"type": {
|
|
@@ -651,7 +826,11 @@
|
|
|
651
826
|
"text": "string"
|
|
652
827
|
},
|
|
653
828
|
"description": "Selected date.\n\nSupported date formats:\n- ISO 8601 `\"YYYY-MM-DD\"` (default)\n- 6-digit extended ISO 8601 `\"+YYYYYY-MM-DD\"`, `\"-YYYYYY-MM-DD\"`",
|
|
654
|
-
"fieldName": "value"
|
|
829
|
+
"fieldName": "value",
|
|
830
|
+
"inheritedFrom": {
|
|
831
|
+
"name": "InputMixin",
|
|
832
|
+
"package": "@vaadin/field-base/src/input-mixin.js"
|
|
833
|
+
}
|
|
655
834
|
}
|
|
656
835
|
],
|
|
657
836
|
"mixins": [
|
|
@@ -1552,6 +1731,20 @@
|
|
|
1552
1731
|
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
1553
1732
|
}
|
|
1554
1733
|
},
|
|
1734
|
+
{
|
|
1735
|
+
"kind": "field",
|
|
1736
|
+
"name": "autofocus",
|
|
1737
|
+
"privacy": "public",
|
|
1738
|
+
"type": {
|
|
1739
|
+
"text": "boolean"
|
|
1740
|
+
},
|
|
1741
|
+
"description": "Specify that this control should have input focus when the page loads.",
|
|
1742
|
+
"attribute": "autofocus",
|
|
1743
|
+
"inheritedFrom": {
|
|
1744
|
+
"name": "DelegateFocusMixin",
|
|
1745
|
+
"package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
|
|
1746
|
+
}
|
|
1747
|
+
},
|
|
1555
1748
|
{
|
|
1556
1749
|
"kind": "field",
|
|
1557
1750
|
"name": "autoOpenDisabled",
|
|
@@ -1590,8 +1783,17 @@
|
|
|
1590
1783
|
}
|
|
1591
1784
|
},
|
|
1592
1785
|
"inheritedFrom": {
|
|
1593
|
-
"name": "
|
|
1594
|
-
"
|
|
1786
|
+
"name": "InputConstraintsMixin",
|
|
1787
|
+
"package": "@vaadin/field-base/src/input-constraints-mixin.js"
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
"kind": "method",
|
|
1792
|
+
"name": "clear",
|
|
1793
|
+
"description": "Clear the value of the field.",
|
|
1794
|
+
"inheritedFrom": {
|
|
1795
|
+
"name": "InputMixin",
|
|
1796
|
+
"package": "@vaadin/field-base/src/input-mixin.js"
|
|
1595
1797
|
}
|
|
1596
1798
|
},
|
|
1597
1799
|
{
|
|
@@ -1617,6 +1819,20 @@
|
|
|
1617
1819
|
"module": "src/vaadin-date-picker-mixin.js"
|
|
1618
1820
|
}
|
|
1619
1821
|
},
|
|
1822
|
+
{
|
|
1823
|
+
"kind": "field",
|
|
1824
|
+
"name": "disabled",
|
|
1825
|
+
"privacy": "public",
|
|
1826
|
+
"type": {
|
|
1827
|
+
"text": "boolean"
|
|
1828
|
+
},
|
|
1829
|
+
"description": "If true, the user cannot interact with this element.",
|
|
1830
|
+
"attribute": "disabled",
|
|
1831
|
+
"inheritedFrom": {
|
|
1832
|
+
"name": "TabindexMixin",
|
|
1833
|
+
"package": "@vaadin/a11y-base/src/tabindex-mixin.js"
|
|
1834
|
+
}
|
|
1835
|
+
},
|
|
1620
1836
|
{
|
|
1621
1837
|
"kind": "field",
|
|
1622
1838
|
"name": "errorMessage",
|
|
@@ -1673,6 +1889,20 @@
|
|
|
1673
1889
|
"module": "src/vaadin-date-picker-mixin.js"
|
|
1674
1890
|
}
|
|
1675
1891
|
},
|
|
1892
|
+
{
|
|
1893
|
+
"kind": "field",
|
|
1894
|
+
"name": "invalid",
|
|
1895
|
+
"privacy": "public",
|
|
1896
|
+
"type": {
|
|
1897
|
+
"text": "boolean"
|
|
1898
|
+
},
|
|
1899
|
+
"description": "Set to true when the field is invalid.",
|
|
1900
|
+
"attribute": "invalid",
|
|
1901
|
+
"inheritedFrom": {
|
|
1902
|
+
"name": "ValidateMixin",
|
|
1903
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
1904
|
+
}
|
|
1905
|
+
},
|
|
1676
1906
|
{
|
|
1677
1907
|
"kind": "field",
|
|
1678
1908
|
"name": "isDateDisabled",
|
|
@@ -1687,6 +1917,34 @@
|
|
|
1687
1917
|
"module": "src/vaadin-date-picker-mixin.js"
|
|
1688
1918
|
}
|
|
1689
1919
|
},
|
|
1920
|
+
{
|
|
1921
|
+
"kind": "field",
|
|
1922
|
+
"name": "label",
|
|
1923
|
+
"privacy": "public",
|
|
1924
|
+
"type": {
|
|
1925
|
+
"text": "string"
|
|
1926
|
+
},
|
|
1927
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
1928
|
+
"attribute": "label",
|
|
1929
|
+
"inheritedFrom": {
|
|
1930
|
+
"name": "LabelMixin",
|
|
1931
|
+
"package": "@vaadin/field-base/src/label-mixin.js"
|
|
1932
|
+
}
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
"kind": "field",
|
|
1936
|
+
"name": "manualValidation",
|
|
1937
|
+
"privacy": "public",
|
|
1938
|
+
"type": {
|
|
1939
|
+
"text": "boolean"
|
|
1940
|
+
},
|
|
1941
|
+
"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.",
|
|
1942
|
+
"attribute": "manual-validation",
|
|
1943
|
+
"inheritedFrom": {
|
|
1944
|
+
"name": "ValidateMixin",
|
|
1945
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
1946
|
+
}
|
|
1947
|
+
},
|
|
1690
1948
|
{
|
|
1691
1949
|
"kind": "field",
|
|
1692
1950
|
"name": "max",
|
|
@@ -1780,6 +2038,20 @@
|
|
|
1780
2038
|
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
1781
2039
|
}
|
|
1782
2040
|
},
|
|
2041
|
+
{
|
|
2042
|
+
"kind": "field",
|
|
2043
|
+
"name": "required",
|
|
2044
|
+
"privacy": "public",
|
|
2045
|
+
"type": {
|
|
2046
|
+
"text": "boolean"
|
|
2047
|
+
},
|
|
2048
|
+
"description": "Specifies that the user must fill in a value.",
|
|
2049
|
+
"attribute": "required",
|
|
2050
|
+
"inheritedFrom": {
|
|
2051
|
+
"name": "ValidateMixin",
|
|
2052
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
2053
|
+
}
|
|
2054
|
+
},
|
|
1783
2055
|
{
|
|
1784
2056
|
"kind": "field",
|
|
1785
2057
|
"name": "showWeekNumbers",
|
|
@@ -1808,6 +2080,20 @@
|
|
|
1808
2080
|
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
1809
2081
|
}
|
|
1810
2082
|
},
|
|
2083
|
+
{
|
|
2084
|
+
"kind": "method",
|
|
2085
|
+
"name": "validate",
|
|
2086
|
+
"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.",
|
|
2087
|
+
"return": {
|
|
2088
|
+
"type": {
|
|
2089
|
+
"text": "boolean"
|
|
2090
|
+
}
|
|
2091
|
+
},
|
|
2092
|
+
"inheritedFrom": {
|
|
2093
|
+
"name": "ValidateMixin",
|
|
2094
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
2095
|
+
}
|
|
2096
|
+
},
|
|
1811
2097
|
{
|
|
1812
2098
|
"kind": "field",
|
|
1813
2099
|
"name": "value",
|
|
@@ -1831,8 +2117,8 @@
|
|
|
1831
2117
|
},
|
|
1832
2118
|
"description": "Fired when the user commits a value change.",
|
|
1833
2119
|
"inheritedFrom": {
|
|
1834
|
-
"name": "
|
|
1835
|
-
"
|
|
2120
|
+
"name": "InputConstraintsMixin",
|
|
2121
|
+
"package": "@vaadin/field-base/src/input-constraints-mixin.js"
|
|
1836
2122
|
}
|
|
1837
2123
|
},
|
|
1838
2124
|
{
|
|
@@ -1924,6 +2210,18 @@
|
|
|
1924
2210
|
"module": "src/vaadin-date-picker-mixin.js"
|
|
1925
2211
|
}
|
|
1926
2212
|
},
|
|
2213
|
+
{
|
|
2214
|
+
"name": "autofocus",
|
|
2215
|
+
"type": {
|
|
2216
|
+
"text": "boolean"
|
|
2217
|
+
},
|
|
2218
|
+
"description": "Specify that this control should have input focus when the page loads.",
|
|
2219
|
+
"fieldName": "autofocus",
|
|
2220
|
+
"inheritedFrom": {
|
|
2221
|
+
"name": "DelegateFocusMixin",
|
|
2222
|
+
"package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
|
|
2223
|
+
}
|
|
2224
|
+
},
|
|
1927
2225
|
{
|
|
1928
2226
|
"name": "autoselect",
|
|
1929
2227
|
"type": {
|
|
@@ -1948,6 +2246,18 @@
|
|
|
1948
2246
|
"package": "@vaadin/field-base/src/clear-button-mixin.js"
|
|
1949
2247
|
}
|
|
1950
2248
|
},
|
|
2249
|
+
{
|
|
2250
|
+
"name": "disabled",
|
|
2251
|
+
"type": {
|
|
2252
|
+
"text": "boolean"
|
|
2253
|
+
},
|
|
2254
|
+
"description": "If true, the user cannot interact with this element.",
|
|
2255
|
+
"fieldName": "disabled",
|
|
2256
|
+
"inheritedFrom": {
|
|
2257
|
+
"name": "TabindexMixin",
|
|
2258
|
+
"package": "@vaadin/a11y-base/src/tabindex-mixin.js"
|
|
2259
|
+
}
|
|
2260
|
+
},
|
|
1951
2261
|
{
|
|
1952
2262
|
"name": "error-message",
|
|
1953
2263
|
"type": {
|
|
@@ -1996,6 +2306,18 @@
|
|
|
1996
2306
|
"module": "src/vaadin-date-picker-mixin.js"
|
|
1997
2307
|
}
|
|
1998
2308
|
},
|
|
2309
|
+
{
|
|
2310
|
+
"name": "invalid",
|
|
2311
|
+
"type": {
|
|
2312
|
+
"text": "boolean"
|
|
2313
|
+
},
|
|
2314
|
+
"description": "Set to true when the field is invalid.",
|
|
2315
|
+
"fieldName": "invalid",
|
|
2316
|
+
"inheritedFrom": {
|
|
2317
|
+
"name": "ValidateMixin",
|
|
2318
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
2319
|
+
}
|
|
2320
|
+
},
|
|
1999
2321
|
{
|
|
2000
2322
|
"name": "is-date-disabled",
|
|
2001
2323
|
"type": {
|
|
@@ -2008,6 +2330,30 @@
|
|
|
2008
2330
|
"module": "src/vaadin-date-picker-mixin.js"
|
|
2009
2331
|
}
|
|
2010
2332
|
},
|
|
2333
|
+
{
|
|
2334
|
+
"name": "label",
|
|
2335
|
+
"type": {
|
|
2336
|
+
"text": "string"
|
|
2337
|
+
},
|
|
2338
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
2339
|
+
"fieldName": "label",
|
|
2340
|
+
"inheritedFrom": {
|
|
2341
|
+
"name": "LabelMixin",
|
|
2342
|
+
"package": "@vaadin/field-base/src/label-mixin.js"
|
|
2343
|
+
}
|
|
2344
|
+
},
|
|
2345
|
+
{
|
|
2346
|
+
"name": "manual-validation",
|
|
2347
|
+
"type": {
|
|
2348
|
+
"text": "boolean"
|
|
2349
|
+
},
|
|
2350
|
+
"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.",
|
|
2351
|
+
"fieldName": "manualValidation",
|
|
2352
|
+
"inheritedFrom": {
|
|
2353
|
+
"name": "ValidateMixin",
|
|
2354
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
2355
|
+
}
|
|
2356
|
+
},
|
|
2011
2357
|
{
|
|
2012
2358
|
"name": "max",
|
|
2013
2359
|
"type": {
|
|
@@ -2080,6 +2426,18 @@
|
|
|
2080
2426
|
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
2081
2427
|
}
|
|
2082
2428
|
},
|
|
2429
|
+
{
|
|
2430
|
+
"name": "required",
|
|
2431
|
+
"type": {
|
|
2432
|
+
"text": "boolean"
|
|
2433
|
+
},
|
|
2434
|
+
"description": "Specifies that the user must fill in a value.",
|
|
2435
|
+
"fieldName": "required",
|
|
2436
|
+
"inheritedFrom": {
|
|
2437
|
+
"name": "ValidateMixin",
|
|
2438
|
+
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
2439
|
+
}
|
|
2440
|
+
},
|
|
2083
2441
|
{
|
|
2084
2442
|
"name": "show-week-numbers",
|
|
2085
2443
|
"type": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/date-picker",
|
|
3
|
-
"version": "25.2.0-
|
|
3
|
+
"version": "25.2.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "25.2.0-
|
|
39
|
-
"@vaadin/button": "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/overlay": "25.2.0-
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "25.2.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.2.0-alpha10",
|
|
39
|
+
"@vaadin/button": "25.2.0-alpha10",
|
|
40
|
+
"@vaadin/component-base": "25.2.0-alpha10",
|
|
41
|
+
"@vaadin/field-base": "25.2.0-alpha10",
|
|
42
|
+
"@vaadin/input-container": "25.2.0-alpha10",
|
|
43
|
+
"@vaadin/overlay": "25.2.0-alpha10",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "25.2.0-alpha10",
|
|
45
45
|
"lit": "^3.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@vaadin/aura": "25.2.0-
|
|
49
|
-
"@vaadin/chai-plugins": "25.2.0-
|
|
50
|
-
"@vaadin/test-runner-commands": "25.2.0-
|
|
48
|
+
"@vaadin/aura": "25.2.0-alpha10",
|
|
49
|
+
"@vaadin/chai-plugins": "25.2.0-alpha10",
|
|
50
|
+
"@vaadin/test-runner-commands": "25.2.0-alpha10",
|
|
51
51
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
52
|
-
"@vaadin/vaadin-lumo-styles": "25.2.0-
|
|
52
|
+
"@vaadin/vaadin-lumo-styles": "25.2.0-alpha10",
|
|
53
53
|
"sinon": "^21.0.2"
|
|
54
54
|
},
|
|
55
55
|
"customElements": "custom-elements.json",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"web-types.json",
|
|
58
58
|
"web-types.lit.json"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "1303b6a3eeecb44a9d26f2b53cb56d9e906febdf"
|
|
61
61
|
}
|
|
@@ -1219,22 +1219,4 @@ export const DatePickerMixin = (subclass) =>
|
|
|
1219
1219
|
__computeMinOrMaxDate(dateString) {
|
|
1220
1220
|
return parseDate(dateString);
|
|
1221
1221
|
}
|
|
1222
|
-
|
|
1223
|
-
/**
|
|
1224
|
-
* Fired when the user commits a value change.
|
|
1225
|
-
*
|
|
1226
|
-
* @event change
|
|
1227
|
-
*/
|
|
1228
|
-
|
|
1229
|
-
/**
|
|
1230
|
-
* Fired when `value` property value changes.
|
|
1231
|
-
*
|
|
1232
|
-
* @event value-changed
|
|
1233
|
-
*/
|
|
1234
|
-
|
|
1235
|
-
/**
|
|
1236
|
-
* Fired when `opened` property value changes.
|
|
1237
|
-
*
|
|
1238
|
-
* @event opened-changed
|
|
1239
|
-
*/
|
|
1240
1222
|
};
|
|
@@ -290,14 +290,14 @@ export const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
290
290
|
/** @private */
|
|
291
291
|
__updateCancelButton(cancelButton, i18n) {
|
|
292
292
|
if (cancelButton) {
|
|
293
|
-
cancelButton.textContent = i18n
|
|
293
|
+
cancelButton.textContent = i18n?.cancel;
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
/** @private */
|
|
298
298
|
__updateTodayButton(todayButton, i18n, minDate, maxDate, isDateDisabled) {
|
|
299
299
|
if (todayButton) {
|
|
300
|
-
todayButton.textContent = i18n
|
|
300
|
+
todayButton.textContent = i18n?.today;
|
|
301
301
|
todayButton.disabled = !this._isTodayAllowed(minDate, maxDate, isDateDisabled);
|
|
302
302
|
}
|
|
303
303
|
}
|
|
@@ -316,7 +316,7 @@ export const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
316
316
|
isDateDisabled,
|
|
317
317
|
enteredDate,
|
|
318
318
|
) {
|
|
319
|
-
if (calendars
|
|
319
|
+
if (calendars?.length) {
|
|
320
320
|
calendars.forEach((calendar) => {
|
|
321
321
|
calendar.i18n = i18n;
|
|
322
322
|
calendar.minDate = minDate;
|
|
@@ -339,7 +339,7 @@ export const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
339
339
|
|
|
340
340
|
/** @private */
|
|
341
341
|
__updateYears(years, selectedDate, theme) {
|
|
342
|
-
if (years
|
|
342
|
+
if (years?.length) {
|
|
343
343
|
years.forEach((year) => {
|
|
344
344
|
year.selectedDate = selectedDate;
|
|
345
345
|
|
|
@@ -933,11 +933,4 @@ export const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
933
933
|
todayMidnight.setDate(today.getDate());
|
|
934
934
|
return todayMidnight;
|
|
935
935
|
}
|
|
936
|
-
|
|
937
|
-
/**
|
|
938
|
-
* Fired when the scroller reaches the target scrolling position.
|
|
939
|
-
* @event scroll-animation-finished
|
|
940
|
-
* @param {Number} detail.position new position
|
|
941
|
-
* @param {Number} detail.oldPosition old position
|
|
942
|
-
*/
|
|
943
936
|
};
|