@vaadin/date-picker 25.1.0-beta1 → 25.1.0-beta3

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.
@@ -475,20 +475,12 @@
475
475
  {
476
476
  "kind": "field",
477
477
  "name": "i18n",
478
- "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n\n```js\n{\n // An array with the full names of months starting\n // with January.\n monthNames: [\n 'January', 'February', 'March', 'April', 'May',\n 'June', 'July', 'August', 'September',\n 'October', 'November', 'December'\n ],\n\n // An array of weekday names starting with Sunday. Used\n // in screen reader announcements.\n weekdays: [\n 'Sunday', 'Monday', 'Tuesday', 'Wednesday',\n 'Thursday', 'Friday', 'Saturday'\n ],\n\n // An array of short weekday names starting with Sunday.\n // Displayed in the calendar.\n weekdaysShort: [\n 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'\n ],\n\n // An integer indicating the first day of the week\n // (0 = Sunday, 1 = Monday, etc.).\n firstDayOfWeek: 0,\n\n // Translation of the Today shortcut button text.\n today: 'Today',\n\n // Translation of the Cancel button text.\n cancel: 'Cancel',\n\n // Used for adjusting the year value when parsing dates with short years.\n // The year values between 0 and 99 are evaluated and adjusted.\n // Example: for a referenceDate of 1970-10-30;\n // dateToBeParsed: 40-10-30, result: 1940-10-30\n // dateToBeParsed: 80-10-30, result: 1980-10-30\n // dateToBeParsed: 10-10-30, result: 2010-10-30\n // Supported date format: ISO 8601 `\"YYYY-MM-DD\"` (default)\n // The default value is the current date.\n referenceDate: '',\n\n // A function to format given `Object` as\n // date string. Object is in the format `{ day: ..., month: ..., year: ... }`\n // Note: The argument month is 0-based. This means that January = 0 and December = 11.\n formatDate: d => {\n // returns a string representation of the given\n // object in 'MM/DD/YYYY' -format\n },\n\n // A function to parse the given text to an `Object` in the format `{ day: ..., month: ..., year: ... }`.\n // Must properly parse (at least) text formatted by `formatDate`.\n // Setting the property to null will disable keyboard input feature.\n // Note: The argument month is 0-based. This means that January = 0 and December = 11.\n parseDate: text => {\n // Parses a string in 'MM/DD/YY', 'MM/DD' or 'DD' -format to\n // an `Object` in the format `{ day: ..., month: ..., year: ... }`.\n }\n\n // A function to format given `monthName` and\n // `fullYear` integer as calendar title string.\n formatTitle: (monthName, fullYear) => {\n return monthName + ' ' + fullYear;\n }\n}\n```",
479
- "return": {
480
- "type": {
481
- "text": "!DatePickerI18n"
482
- }
478
+ "privacy": "public",
479
+ "type": {
480
+ "text": "Object"
483
481
  },
484
- "parameters": [
485
- {
486
- "name": "value",
487
- "type": {
488
- "text": "Object"
489
- }
490
- }
491
- ],
482
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n\n```js\n{\n // An array with the full names of months starting\n // with January.\n monthNames: [\n 'January', 'February', 'March', 'April', 'May',\n 'June', 'July', 'August', 'September',\n 'October', 'November', 'December'\n ],\n\n // An array of weekday names starting with Sunday. Used\n // in screen reader announcements.\n weekdays: [\n 'Sunday', 'Monday', 'Tuesday', 'Wednesday',\n 'Thursday', 'Friday', 'Saturday'\n ],\n\n // An array of short weekday names starting with Sunday.\n // Displayed in the calendar.\n weekdaysShort: [\n 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'\n ],\n\n // An integer indicating the first day of the week\n // (0 = Sunday, 1 = Monday, etc.).\n firstDayOfWeek: 0,\n\n // Translation of the Today shortcut button text.\n today: 'Today',\n\n // Translation of the Cancel button text.\n cancel: 'Cancel',\n\n // Used for adjusting the year value when parsing dates with short years.\n // The year values between 0 and 99 are evaluated and adjusted.\n // Example: for a referenceDate of 1970-10-30;\n // dateToBeParsed: 40-10-30, result: 1940-10-30\n // dateToBeParsed: 80-10-30, result: 1980-10-30\n // dateToBeParsed: 10-10-30, result: 2010-10-30\n // Supported date format: ISO 8601 `\"YYYY-MM-DD\"` (default)\n // The default value is the current date.\n referenceDate: '',\n\n // A function to format given `Object` as\n // date string. Object is in the format `{ day: ..., month: ..., year: ... }`\n // Note: The argument month is 0-based. This means that January = 0 and December = 11.\n formatDate: d => {\n // returns a string representation of the given\n // object in 'MM/DD/YYYY' -format\n },\n\n // A function to parse the given text to an `Object` in the format `{ day: ..., month: ..., year: ... }`.\n // Must properly parse (at least) text formatted by `formatDate`.\n // Setting the property to null will disable keyboard input feature.\n // Note: The argument month is 0-based. This means that January = 0 and December = 11.\n parseDate: text => {\n // Parses a string in 'MM/DD/YY', 'MM/DD' or 'DD' -format to\n // an `Object` in the format `{ day: ..., month: ..., year: ... }`.\n }\n\n // A function to format given `monthName` and\n // `fullYear` integer as calendar title string.\n formatTitle: (monthName, fullYear) => {\n return monthName + ' ' + fullYear;\n }\n}\n```",
483
+ "attribute": "i18n",
492
484
  "inheritedFrom": {
493
485
  "name": "I18nMixin",
494
486
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -498,6 +490,9 @@
498
490
  "kind": "field",
499
491
  "name": "initialPosition",
500
492
  "privacy": "public",
493
+ "type": {
494
+ "text": "string"
495
+ },
501
496
  "description": "Date which should be visible when there is no value selected.\n\nThe same date formats as for the `value` property are supported.",
502
497
  "attribute": "initial-position"
503
498
  },
@@ -516,7 +511,7 @@
516
511
  "name": "max",
517
512
  "privacy": "public",
518
513
  "type": {
519
- "text": "string | undefined"
514
+ "text": "string"
520
515
  },
521
516
  "description": "The latest date that can be selected. All later dates will be disabled.\n\nSupported date formats:\n- ISO 8601 `\"YYYY-MM-DD\"` (default)\n- 6-digit extended ISO 8601 `\"+YYYYYY-MM-DD\"`, `\"-YYYYYY-MM-DD\"`",
522
517
  "attribute": "max"
@@ -526,7 +521,7 @@
526
521
  "name": "min",
527
522
  "privacy": "public",
528
523
  "type": {
529
- "text": "string | undefined"
524
+ "text": "string"
530
525
  },
531
526
  "description": "The earliest date that can be selected. All earlier dates will be disabled.\n\nSupported date formats:\n- ISO 8601 `\"YYYY-MM-DD\"` (default)\n- 6-digit extended ISO 8601 `\"+YYYYYY-MM-DD\"`, `\"-YYYYYY-MM-DD\"`",
532
527
  "attribute": "min"
@@ -592,6 +587,11 @@
592
587
  },
593
588
  {
594
589
  "name": "i18n",
590
+ "type": {
591
+ "text": "Object"
592
+ },
593
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
594
+ "fieldName": "i18n",
595
595
  "inheritedFrom": {
596
596
  "name": "I18nMixin",
597
597
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -599,6 +599,9 @@
599
599
  },
600
600
  {
601
601
  "name": "initial-position",
602
+ "type": {
603
+ "text": "string"
604
+ },
602
605
  "description": "Date which should be visible when there is no value selected.\n\nThe same date formats as for the `value` property are supported.",
603
606
  "fieldName": "initialPosition"
604
607
  },
@@ -613,7 +616,7 @@
613
616
  {
614
617
  "name": "max",
615
618
  "type": {
616
- "text": "string | undefined"
619
+ "text": "string"
617
620
  },
618
621
  "description": "The latest date that can be selected. All later dates will be disabled.\n\nSupported date formats:\n- ISO 8601 `\"YYYY-MM-DD\"` (default)\n- 6-digit extended ISO 8601 `\"+YYYYYY-MM-DD\"`, `\"-YYYYYY-MM-DD\"`",
619
622
  "fieldName": "max"
@@ -621,7 +624,7 @@
621
624
  {
622
625
  "name": "min",
623
626
  "type": {
624
- "text": "string | undefined"
627
+ "text": "string"
625
628
  },
626
629
  "description": "The earliest date that can be selected. All earlier dates will be disabled.\n\nSupported date formats:\n- ISO 8601 `\"YYYY-MM-DD\"` (default)\n- 6-digit extended ISO 8601 `\"+YYYYYY-MM-DD\"`, `\"-YYYYYY-MM-DD\"`",
627
630
  "fieldName": "min"
@@ -655,6 +658,18 @@
655
658
  {
656
659
  "name": "I18nMixin",
657
660
  "package": "@vaadin/component-base/src/i18n-mixin.js"
661
+ },
662
+ {
663
+ "name": "DelegateFocusMixin",
664
+ "package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
665
+ },
666
+ {
667
+ "name": "InputConstraintsMixin",
668
+ "package": "@vaadin/field-base/src/input-constraints-mixin.js"
669
+ },
670
+ {
671
+ "name": "KeyboardMixin",
672
+ "package": "@vaadin/a11y-base/src/keyboard-mixin.js"
658
673
  }
659
674
  ],
660
675
  "parameters": [
@@ -686,12 +701,6 @@
686
701
  }
687
702
  ]
688
703
  },
689
- {
690
- "kind": "javascript-module",
691
- "path": "src/vaadin-date-picker-month-scroller.js",
692
- "declarations": [],
693
- "exports": []
694
- },
695
704
  {
696
705
  "kind": "javascript-module",
697
706
  "path": "src/vaadin-date-picker-overlay-content-mixin.js",
@@ -980,12 +989,6 @@
980
989
  }
981
990
  ]
982
991
  },
983
- {
984
- "kind": "javascript-module",
985
- "path": "src/vaadin-date-picker-overlay-content.js",
986
- "declarations": [],
987
- "exports": []
988
- },
989
992
  {
990
993
  "kind": "javascript-module",
991
994
  "path": "src/vaadin-date-picker-overlay-mixin.js",
@@ -1498,89 +1501,6 @@
1498
1501
  }
1499
1502
  ]
1500
1503
  },
1501
- {
1502
- "kind": "javascript-module",
1503
- "path": "src/vaadin-date-picker-overlay.js",
1504
- "declarations": [],
1505
- "exports": []
1506
- },
1507
- {
1508
- "kind": "javascript-module",
1509
- "path": "src/vaadin-date-picker-year-scroller.js",
1510
- "declarations": [],
1511
- "exports": []
1512
- },
1513
- {
1514
- "kind": "javascript-module",
1515
- "path": "src/vaadin-date-picker-year.js",
1516
- "declarations": [
1517
- {
1518
- "kind": "class",
1519
- "description": "An element used internally by `<vaadin-date-picker>`. Not intended to be used separately.",
1520
- "name": "DatePickerYear",
1521
- "members": [
1522
- {
1523
- "kind": "field",
1524
- "name": "selectedDate",
1525
- "privacy": "public",
1526
- "type": {
1527
- "text": "object"
1528
- },
1529
- "attribute": "selected-date"
1530
- },
1531
- {
1532
- "kind": "field",
1533
- "name": "year",
1534
- "privacy": "public",
1535
- "type": {
1536
- "text": "string"
1537
- },
1538
- "attribute": "year"
1539
- }
1540
- ],
1541
- "attributes": [
1542
- {
1543
- "name": "year",
1544
- "type": {
1545
- "text": "string"
1546
- },
1547
- "fieldName": "year"
1548
- }
1549
- ],
1550
- "mixins": [
1551
- {
1552
- "name": "ThemableMixin",
1553
- "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
1554
- },
1555
- {
1556
- "name": "PolylitMixin",
1557
- "package": "@vaadin/component-base/src/polylit-mixin.js"
1558
- },
1559
- {
1560
- "name": "LumoInjectionMixin",
1561
- "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
1562
- }
1563
- ],
1564
- "superclass": {
1565
- "name": "LitElement",
1566
- "package": "lit"
1567
- },
1568
- "tagName": "vaadin-date-picker-year",
1569
- "customElement": true,
1570
- "events": []
1571
- }
1572
- ],
1573
- "exports": [
1574
- {
1575
- "kind": "js",
1576
- "name": "DatePickerYear",
1577
- "declaration": {
1578
- "name": "DatePickerYear",
1579
- "module": "src/vaadin-date-picker-year.js"
1580
- }
1581
- }
1582
- ]
1583
- },
1584
1504
  {
1585
1505
  "kind": "javascript-module",
1586
1506
  "path": "src/vaadin-date-picker.js",
@@ -1728,20 +1648,12 @@
1728
1648
  {
1729
1649
  "kind": "field",
1730
1650
  "name": "i18n",
1731
- "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n\n```js\n{\n // An array with the full names of months starting\n // with January.\n monthNames: [\n 'January', 'February', 'March', 'April', 'May',\n 'June', 'July', 'August', 'September',\n 'October', 'November', 'December'\n ],\n\n // An array of weekday names starting with Sunday. Used\n // in screen reader announcements.\n weekdays: [\n 'Sunday', 'Monday', 'Tuesday', 'Wednesday',\n 'Thursday', 'Friday', 'Saturday'\n ],\n\n // An array of short weekday names starting with Sunday.\n // Displayed in the calendar.\n weekdaysShort: [\n 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'\n ],\n\n // An integer indicating the first day of the week\n // (0 = Sunday, 1 = Monday, etc.).\n firstDayOfWeek: 0,\n\n // Translation of the Today shortcut button text.\n today: 'Today',\n\n // Translation of the Cancel button text.\n cancel: 'Cancel',\n\n // Used for adjusting the year value when parsing dates with short years.\n // The year values between 0 and 99 are evaluated and adjusted.\n // Example: for a referenceDate of 1970-10-30;\n // dateToBeParsed: 40-10-30, result: 1940-10-30\n // dateToBeParsed: 80-10-30, result: 1980-10-30\n // dateToBeParsed: 10-10-30, result: 2010-10-30\n // Supported date format: ISO 8601 `\"YYYY-MM-DD\"` (default)\n // The default value is the current date.\n referenceDate: '',\n\n // A function to format given `Object` as\n // date string. Object is in the format `{ day: ..., month: ..., year: ... }`\n // Note: The argument month is 0-based. This means that January = 0 and December = 11.\n formatDate: d => {\n // returns a string representation of the given\n // object in 'MM/DD/YYYY' -format\n },\n\n // A function to parse the given text to an `Object` in the format `{ day: ..., month: ..., year: ... }`.\n // Must properly parse (at least) text formatted by `formatDate`.\n // Setting the property to null will disable keyboard input feature.\n // Note: The argument month is 0-based. This means that January = 0 and December = 11.\n parseDate: text => {\n // Parses a string in 'MM/DD/YY', 'MM/DD' or 'DD' -format to\n // an `Object` in the format `{ day: ..., month: ..., year: ... }`.\n }\n\n // A function to format given `monthName` and\n // `fullYear` integer as calendar title string.\n formatTitle: (monthName, fullYear) => {\n return monthName + ' ' + fullYear;\n }\n}\n```",
1732
- "return": {
1733
- "type": {
1734
- "text": "!DatePickerI18n"
1735
- }
1651
+ "privacy": "public",
1652
+ "type": {
1653
+ "text": "Object"
1736
1654
  },
1737
- "parameters": [
1738
- {
1739
- "name": "value",
1740
- "type": {
1741
- "text": "Object"
1742
- }
1743
- }
1744
- ],
1655
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n\n```js\n{\n // An array with the full names of months starting\n // with January.\n monthNames: [\n 'January', 'February', 'March', 'April', 'May',\n 'June', 'July', 'August', 'September',\n 'October', 'November', 'December'\n ],\n\n // An array of weekday names starting with Sunday. Used\n // in screen reader announcements.\n weekdays: [\n 'Sunday', 'Monday', 'Tuesday', 'Wednesday',\n 'Thursday', 'Friday', 'Saturday'\n ],\n\n // An array of short weekday names starting with Sunday.\n // Displayed in the calendar.\n weekdaysShort: [\n 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'\n ],\n\n // An integer indicating the first day of the week\n // (0 = Sunday, 1 = Monday, etc.).\n firstDayOfWeek: 0,\n\n // Translation of the Today shortcut button text.\n today: 'Today',\n\n // Translation of the Cancel button text.\n cancel: 'Cancel',\n\n // Used for adjusting the year value when parsing dates with short years.\n // The year values between 0 and 99 are evaluated and adjusted.\n // Example: for a referenceDate of 1970-10-30;\n // dateToBeParsed: 40-10-30, result: 1940-10-30\n // dateToBeParsed: 80-10-30, result: 1980-10-30\n // dateToBeParsed: 10-10-30, result: 2010-10-30\n // Supported date format: ISO 8601 `\"YYYY-MM-DD\"` (default)\n // The default value is the current date.\n referenceDate: '',\n\n // A function to format given `Object` as\n // date string. Object is in the format `{ day: ..., month: ..., year: ... }`\n // Note: The argument month is 0-based. This means that January = 0 and December = 11.\n formatDate: d => {\n // returns a string representation of the given\n // object in 'MM/DD/YYYY' -format\n },\n\n // A function to parse the given text to an `Object` in the format `{ day: ..., month: ..., year: ... }`.\n // Must properly parse (at least) text formatted by `formatDate`.\n // Setting the property to null will disable keyboard input feature.\n // Note: The argument month is 0-based. This means that January = 0 and December = 11.\n parseDate: text => {\n // Parses a string in 'MM/DD/YY', 'MM/DD' or 'DD' -format to\n // an `Object` in the format `{ day: ..., month: ..., year: ... }`.\n }\n\n // A function to format given `monthName` and\n // `fullYear` integer as calendar title string.\n formatTitle: (monthName, fullYear) => {\n return monthName + ' ' + fullYear;\n }\n}\n```",
1656
+ "attribute": "i18n",
1745
1657
  "inheritedFrom": {
1746
1658
  "name": "I18nMixin",
1747
1659
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -1751,6 +1663,9 @@
1751
1663
  "kind": "field",
1752
1664
  "name": "initialPosition",
1753
1665
  "privacy": "public",
1666
+ "type": {
1667
+ "text": "string"
1668
+ },
1754
1669
  "description": "Date which should be visible when there is no value selected.\n\nThe same date formats as for the `value` property are supported.",
1755
1670
  "attribute": "initial-position",
1756
1671
  "inheritedFrom": {
@@ -1777,7 +1692,7 @@
1777
1692
  "name": "max",
1778
1693
  "privacy": "public",
1779
1694
  "type": {
1780
- "text": "string | undefined"
1695
+ "text": "string"
1781
1696
  },
1782
1697
  "description": "The latest date that can be selected. All later dates will be disabled.\n\nSupported date formats:\n- ISO 8601 `\"YYYY-MM-DD\"` (default)\n- 6-digit extended ISO 8601 `\"+YYYYYY-MM-DD\"`, `\"-YYYYYY-MM-DD\"`",
1783
1698
  "attribute": "max",
@@ -1791,7 +1706,7 @@
1791
1706
  "name": "min",
1792
1707
  "privacy": "public",
1793
1708
  "type": {
1794
- "text": "string | undefined"
1709
+ "text": "string"
1795
1710
  },
1796
1711
  "description": "The earliest date that can be selected. All earlier dates will be disabled.\n\nSupported date formats:\n- ISO 8601 `\"YYYY-MM-DD\"` (default)\n- 6-digit extended ISO 8601 `\"+YYYYYY-MM-DD\"`, `\"-YYYYYY-MM-DD\"`",
1797
1712
  "attribute": "min",
@@ -2059,6 +1974,11 @@
2059
1974
  },
2060
1975
  {
2061
1976
  "name": "i18n",
1977
+ "type": {
1978
+ "text": "Object"
1979
+ },
1980
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
1981
+ "fieldName": "i18n",
2062
1982
  "inheritedFrom": {
2063
1983
  "name": "I18nMixin",
2064
1984
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -2066,6 +1986,9 @@
2066
1986
  },
2067
1987
  {
2068
1988
  "name": "initial-position",
1989
+ "type": {
1990
+ "text": "string"
1991
+ },
2069
1992
  "description": "Date which should be visible when there is no value selected.\n\nThe same date formats as for the `value` property are supported.",
2070
1993
  "fieldName": "initialPosition",
2071
1994
  "inheritedFrom": {
@@ -2088,7 +2011,7 @@
2088
2011
  {
2089
2012
  "name": "max",
2090
2013
  "type": {
2091
- "text": "string | undefined"
2014
+ "text": "string"
2092
2015
  },
2093
2016
  "description": "The latest date that can be selected. All later dates will be disabled.\n\nSupported date formats:\n- ISO 8601 `\"YYYY-MM-DD\"` (default)\n- 6-digit extended ISO 8601 `\"+YYYYYY-MM-DD\"`, `\"-YYYYYY-MM-DD\"`",
2094
2017
  "fieldName": "max",
@@ -2100,7 +2023,7 @@
2100
2023
  {
2101
2024
  "name": "min",
2102
2025
  "type": {
2103
- "text": "string | undefined"
2026
+ "text": "string"
2104
2027
  },
2105
2028
  "description": "The earliest date that can be selected. All earlier dates will be disabled.\n\nSupported date formats:\n- ISO 8601 `\"YYYY-MM-DD\"` (default)\n- 6-digit extended ISO 8601 `\"+YYYYYY-MM-DD\"`, `\"-YYYYYY-MM-DD\"`",
2106
2029
  "fieldName": "min",
@@ -2239,103 +2162,6 @@
2239
2162
  }
2240
2163
  ]
2241
2164
  },
2242
- {
2243
- "kind": "javascript-module",
2244
- "path": "src/vaadin-infinite-scroller.js",
2245
- "declarations": [
2246
- {
2247
- "kind": "class",
2248
- "description": "",
2249
- "name": "InfiniteScroller",
2250
- "members": [
2251
- {
2252
- "kind": "field",
2253
- "name": "active",
2254
- "return": {
2255
- "type": {
2256
- "text": "boolean"
2257
- }
2258
- }
2259
- },
2260
- {
2261
- "kind": "field",
2262
- "name": "bufferOffset",
2263
- "return": {
2264
- "type": {
2265
- "text": "number"
2266
- }
2267
- },
2268
- "readonly": true
2269
- },
2270
- {
2271
- "kind": "field",
2272
- "name": "bufferSize",
2273
- "type": {
2274
- "text": "number"
2275
- },
2276
- "description": "Count of individual items in each buffer.\nThe scroller has 2 buffers altogether so bufferSize of 20\nwill result in 40 buffered DOM items in total.\nChanging after initialization not supported.",
2277
- "default": "20"
2278
- },
2279
- {
2280
- "kind": "method",
2281
- "name": "forceUpdate",
2282
- "description": "Force the scroller to update clones after a reset, without\nwaiting for the debouncer to resolve."
2283
- },
2284
- {
2285
- "kind": "field",
2286
- "name": "itemHeight",
2287
- "return": {
2288
- "type": {
2289
- "text": "number"
2290
- }
2291
- },
2292
- "readonly": true
2293
- },
2294
- {
2295
- "kind": "field",
2296
- "name": "position",
2297
- "return": {
2298
- "type": {
2299
- "text": "number"
2300
- }
2301
- },
2302
- "description": "Current scroller position as index. Can be a fractional number.",
2303
- "type": {
2304
- "text": "number"
2305
- }
2306
- }
2307
- ],
2308
- "events": [
2309
- {
2310
- "name": "custom-scroll",
2311
- "type": {
2312
- "text": "CustomEvent"
2313
- }
2314
- },
2315
- {
2316
- "name": "init-done",
2317
- "type": {
2318
- "text": "CustomEvent"
2319
- }
2320
- }
2321
- ],
2322
- "superclass": {
2323
- "name": "HTMLElement"
2324
- },
2325
- "customElement": true
2326
- }
2327
- ],
2328
- "exports": [
2329
- {
2330
- "kind": "js",
2331
- "name": "InfiniteScroller",
2332
- "declaration": {
2333
- "name": "InfiniteScroller",
2334
- "module": "src/vaadin-infinite-scroller.js"
2335
- }
2336
- }
2337
- ]
2338
- },
2339
2165
  {
2340
2166
  "kind": "javascript-module",
2341
2167
  "path": "src/vaadin-month-calendar-mixin.js",
@@ -2545,12 +2371,6 @@
2545
2371
  }
2546
2372
  }
2547
2373
  ]
2548
- },
2549
- {
2550
- "kind": "javascript-module",
2551
- "path": "src/vaadin-month-calendar.js",
2552
- "declarations": [],
2553
- "exports": []
2554
2374
  }
2555
2375
  ]
2556
2376
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/date-picker",
3
- "version": "25.1.0-beta1",
3
+ "version": "25.1.0-beta3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,27 +35,27 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "25.1.0-beta1",
39
- "@vaadin/button": "25.1.0-beta1",
40
- "@vaadin/component-base": "25.1.0-beta1",
41
- "@vaadin/field-base": "25.1.0-beta1",
42
- "@vaadin/input-container": "25.1.0-beta1",
43
- "@vaadin/overlay": "25.1.0-beta1",
44
- "@vaadin/vaadin-themable-mixin": "25.1.0-beta1",
38
+ "@vaadin/a11y-base": "25.1.0-beta3",
39
+ "@vaadin/button": "25.1.0-beta3",
40
+ "@vaadin/component-base": "25.1.0-beta3",
41
+ "@vaadin/field-base": "25.1.0-beta3",
42
+ "@vaadin/input-container": "25.1.0-beta3",
43
+ "@vaadin/overlay": "25.1.0-beta3",
44
+ "@vaadin/vaadin-themable-mixin": "25.1.0-beta3",
45
45
  "lit": "^3.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@vaadin/aura": "25.1.0-beta1",
49
- "@vaadin/chai-plugins": "25.1.0-beta1",
50
- "@vaadin/test-runner-commands": "25.1.0-beta1",
48
+ "@vaadin/aura": "25.1.0-beta3",
49
+ "@vaadin/chai-plugins": "25.1.0-beta3",
50
+ "@vaadin/test-runner-commands": "25.1.0-beta3",
51
51
  "@vaadin/testing-helpers": "^2.0.0",
52
- "@vaadin/vaadin-lumo-styles": "25.1.0-beta1",
53
- "sinon": "^21.0.0"
52
+ "@vaadin/vaadin-lumo-styles": "25.1.0-beta3",
53
+ "sinon": "^21.0.2"
54
54
  },
55
55
  "customElements": "custom-elements.json",
56
56
  "web-types": [
57
57
  "web-types.json",
58
58
  "web-types.lit.json"
59
59
  ],
60
- "gitHead": "0ccf77c385fc6a92ac2a6344ce8804b94956226d"
60
+ "gitHead": "4251850231a42298fda23b83928da588831cdb5d"
61
61
  }
@@ -118,8 +118,6 @@ export const DatePickerMixin = (subclass) =>
118
118
  * Supported date formats:
119
119
  * - ISO 8601 `"YYYY-MM-DD"` (default)
120
120
  * - 6-digit extended ISO 8601 `"+YYYYYY-MM-DD"`, `"-YYYYYY-MM-DD"`
121
- *
122
- * @type {string}
123
121
  */
124
122
  value: {
125
123
  type: String,
@@ -134,7 +132,9 @@ export const DatePickerMixin = (subclass) =>
134
132
  * The same date formats as for the `value` property are supported.
135
133
  * @attr {string} initial-position
136
134
  */
137
- initialPosition: String,
135
+ initialPosition: {
136
+ type: String,
137
+ },
138
138
 
139
139
  /**
140
140
  * Set true to open the date selector overlay.
@@ -169,7 +169,6 @@ export const DatePickerMixin = (subclass) =>
169
169
  },
170
170
 
171
171
  /**
172
- * @type {boolean}
173
172
  * @protected
174
173
  */
175
174
  _fullscreen: {
@@ -179,7 +178,6 @@ export const DatePickerMixin = (subclass) =>
179
178
  },
180
179
 
181
180
  /**
182
- * @type {string}
183
181
  * @protected
184
182
  */
185
183
  _fullscreenMediaQuery: {
@@ -192,8 +190,6 @@ export const DatePickerMixin = (subclass) =>
192
190
  * Supported date formats:
193
191
  * - ISO 8601 `"YYYY-MM-DD"` (default)
194
192
  * - 6-digit extended ISO 8601 `"+YYYYYY-MM-DD"`, `"-YYYYYY-MM-DD"`
195
- *
196
- * @type {string | undefined}
197
193
  */
198
194
  min: {
199
195
  type: String,
@@ -206,8 +202,6 @@ export const DatePickerMixin = (subclass) =>
206
202
  * Supported date formats:
207
203
  * - ISO 8601 `"YYYY-MM-DD"` (default)
208
204
  * - 6-digit extended ISO 8601 `"+YYYYYY-MM-DD"`, `"-YYYYYY-MM-DD"`
209
- *
210
- * @type {string | undefined}
211
205
  */
212
206
  max: {
213
207
  type: String,
@@ -369,7 +363,7 @@ export const DatePickerMixin = (subclass) =>
369
363
  * }
370
364
  * }
371
365
  * ```
372
- * @return {!DatePickerI18n}
366
+ * @type {!DatePickerI18n}
373
367
  */
374
368
  get i18n() {
375
369
  return super.i18n;
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/date-picker",
4
- "version": "25.1.0-beta1",
4
+ "version": "25.1.0-beta3",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -120,6 +120,17 @@
120
120
  ]
121
121
  }
122
122
  },
123
+ {
124
+ "name": "i18n",
125
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
126
+ "value": {
127
+ "type": [
128
+ "Object",
129
+ "null",
130
+ "undefined"
131
+ ]
132
+ }
133
+ },
123
134
  {
124
135
  "name": "initial-position",
125
136
  "description": "Date which should be visible when there is no value selected.\n\nThe same date formats as for the `value` property are supported.",
@@ -170,6 +181,7 @@
170
181
  "value": {
171
182
  "type": [
172
183
  "string",
184
+ "null",
173
185
  "undefined"
174
186
  ]
175
187
  }
@@ -180,6 +192,7 @@
180
192
  "value": {
181
193
  "type": [
182
194
  "string",
195
+ "null",
183
196
  "undefined"
184
197
  ]
185
198
  }
@@ -277,7 +290,9 @@
277
290
  "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\"`",
278
291
  "value": {
279
292
  "type": [
280
- "string"
293
+ "string",
294
+ "null",
295
+ "undefined"
281
296
  ]
282
297
  }
283
298
  }
@@ -399,7 +414,7 @@
399
414
  "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n\n```js\n{\n // An array with the full names of months starting\n // with January.\n monthNames: [\n 'January', 'February', 'March', 'April', 'May',\n 'June', 'July', 'August', 'September',\n 'October', 'November', 'December'\n ],\n\n // An array of weekday names starting with Sunday. Used\n // in screen reader announcements.\n weekdays: [\n 'Sunday', 'Monday', 'Tuesday', 'Wednesday',\n 'Thursday', 'Friday', 'Saturday'\n ],\n\n // An array of short weekday names starting with Sunday.\n // Displayed in the calendar.\n weekdaysShort: [\n 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'\n ],\n\n // An integer indicating the first day of the week\n // (0 = Sunday, 1 = Monday, etc.).\n firstDayOfWeek: 0,\n\n // Translation of the Today shortcut button text.\n today: 'Today',\n\n // Translation of the Cancel button text.\n cancel: 'Cancel',\n\n // Used for adjusting the year value when parsing dates with short years.\n // The year values between 0 and 99 are evaluated and adjusted.\n // Example: for a referenceDate of 1970-10-30;\n // dateToBeParsed: 40-10-30, result: 1940-10-30\n // dateToBeParsed: 80-10-30, result: 1980-10-30\n // dateToBeParsed: 10-10-30, result: 2010-10-30\n // Supported date format: ISO 8601 `\"YYYY-MM-DD\"` (default)\n // The default value is the current date.\n referenceDate: '',\n\n // A function to format given `Object` as\n // date string. Object is in the format `{ day: ..., month: ..., year: ... }`\n // Note: The argument month is 0-based. This means that January = 0 and December = 11.\n formatDate: d => {\n // returns a string representation of the given\n // object in 'MM/DD/YYYY' -format\n },\n\n // A function to parse the given text to an `Object` in the format `{ day: ..., month: ..., year: ... }`.\n // Must properly parse (at least) text formatted by `formatDate`.\n // Setting the property to null will disable keyboard input feature.\n // Note: The argument month is 0-based. This means that January = 0 and December = 11.\n parseDate: text => {\n // Parses a string in 'MM/DD/YY', 'MM/DD' or 'DD' -format to\n // an `Object` in the format `{ day: ..., month: ..., year: ... }`.\n }\n\n // A function to format given `monthName` and\n // `fullYear` integer as calendar title string.\n formatTitle: (monthName, fullYear) => {\n return monthName + ' ' + fullYear;\n }\n}\n```",
400
415
  "value": {
401
416
  "type": [
402
- "DatePickerI18n"
417
+ "?"
403
418
  ]
404
419
  }
405
420
  },
@@ -463,6 +478,7 @@
463
478
  "value": {
464
479
  "type": [
465
480
  "string",
481
+ "null",
466
482
  "undefined"
467
483
  ]
468
484
  }
@@ -473,6 +489,7 @@
473
489
  "value": {
474
490
  "type": [
475
491
  "string",
492
+ "null",
476
493
  "undefined"
477
494
  ]
478
495
  }
@@ -559,7 +576,9 @@
559
576
  "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\"`",
560
577
  "value": {
561
578
  "type": [
562
- "string"
579
+ "string",
580
+ "null",
581
+ "undefined"
563
582
  ]
564
583
  }
565
584
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/date-picker",
4
- "version": "25.1.0-beta1",
4
+ "version": "25.1.0-beta3",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {