@vaadin/date-picker 25.1.0-alpha9 → 25.1.0-beta2
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 +16 -222
- package/package.json +13 -13
- package/src/vaadin-date-picker-mixin.js +1 -4
- package/web-types.json +8 -4
- package/web-types.lit.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -476,19 +476,9 @@
|
|
|
476
476
|
"kind": "field",
|
|
477
477
|
"name": "i18n",
|
|
478
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
|
-
"
|
|
480
|
-
"
|
|
481
|
-
"text": "!DatePickerI18n"
|
|
482
|
-
}
|
|
479
|
+
"type": {
|
|
480
|
+
"text": "Object"
|
|
483
481
|
},
|
|
484
|
-
"parameters": [
|
|
485
|
-
{
|
|
486
|
-
"name": "value",
|
|
487
|
-
"type": {
|
|
488
|
-
"text": "Object"
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
],
|
|
492
482
|
"inheritedFrom": {
|
|
493
483
|
"name": "I18nMixin",
|
|
494
484
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -655,6 +645,18 @@
|
|
|
655
645
|
{
|
|
656
646
|
"name": "I18nMixin",
|
|
657
647
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"name": "DelegateFocusMixin",
|
|
651
|
+
"package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"name": "InputConstraintsMixin",
|
|
655
|
+
"package": "@vaadin/field-base/src/input-constraints-mixin.js"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "KeyboardMixin",
|
|
659
|
+
"package": "@vaadin/a11y-base/src/keyboard-mixin.js"
|
|
658
660
|
}
|
|
659
661
|
],
|
|
660
662
|
"parameters": [
|
|
@@ -686,12 +688,6 @@
|
|
|
686
688
|
}
|
|
687
689
|
]
|
|
688
690
|
},
|
|
689
|
-
{
|
|
690
|
-
"kind": "javascript-module",
|
|
691
|
-
"path": "src/vaadin-date-picker-month-scroller.js",
|
|
692
|
-
"declarations": [],
|
|
693
|
-
"exports": []
|
|
694
|
-
},
|
|
695
691
|
{
|
|
696
692
|
"kind": "javascript-module",
|
|
697
693
|
"path": "src/vaadin-date-picker-overlay-content-mixin.js",
|
|
@@ -980,12 +976,6 @@
|
|
|
980
976
|
}
|
|
981
977
|
]
|
|
982
978
|
},
|
|
983
|
-
{
|
|
984
|
-
"kind": "javascript-module",
|
|
985
|
-
"path": "src/vaadin-date-picker-overlay-content.js",
|
|
986
|
-
"declarations": [],
|
|
987
|
-
"exports": []
|
|
988
|
-
},
|
|
989
979
|
{
|
|
990
980
|
"kind": "javascript-module",
|
|
991
981
|
"path": "src/vaadin-date-picker-overlay-mixin.js",
|
|
@@ -1498,89 +1488,6 @@
|
|
|
1498
1488
|
}
|
|
1499
1489
|
]
|
|
1500
1490
|
},
|
|
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
1491
|
{
|
|
1585
1492
|
"kind": "javascript-module",
|
|
1586
1493
|
"path": "src/vaadin-date-picker.js",
|
|
@@ -1729,19 +1636,9 @@
|
|
|
1729
1636
|
"kind": "field",
|
|
1730
1637
|
"name": "i18n",
|
|
1731
1638
|
"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
|
-
"
|
|
1733
|
-
"
|
|
1734
|
-
"text": "!DatePickerI18n"
|
|
1735
|
-
}
|
|
1639
|
+
"type": {
|
|
1640
|
+
"text": "Object"
|
|
1736
1641
|
},
|
|
1737
|
-
"parameters": [
|
|
1738
|
-
{
|
|
1739
|
-
"name": "value",
|
|
1740
|
-
"type": {
|
|
1741
|
-
"text": "Object"
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
|
-
],
|
|
1745
1642
|
"inheritedFrom": {
|
|
1746
1643
|
"name": "I18nMixin",
|
|
1747
1644
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -2239,103 +2136,6 @@
|
|
|
2239
2136
|
}
|
|
2240
2137
|
]
|
|
2241
2138
|
},
|
|
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
2139
|
{
|
|
2340
2140
|
"kind": "javascript-module",
|
|
2341
2141
|
"path": "src/vaadin-month-calendar-mixin.js",
|
|
@@ -2545,12 +2345,6 @@
|
|
|
2545
2345
|
}
|
|
2546
2346
|
}
|
|
2547
2347
|
]
|
|
2548
|
-
},
|
|
2549
|
-
{
|
|
2550
|
-
"kind": "javascript-module",
|
|
2551
|
-
"path": "src/vaadin-month-calendar.js",
|
|
2552
|
-
"declarations": [],
|
|
2553
|
-
"exports": []
|
|
2554
2348
|
}
|
|
2555
2349
|
]
|
|
2556
2350
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/date-picker",
|
|
3
|
-
"version": "25.1.0-
|
|
3
|
+
"version": "25.1.0-beta2",
|
|
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.1.0-
|
|
39
|
-
"@vaadin/button": "25.1.0-
|
|
40
|
-
"@vaadin/component-base": "25.1.0-
|
|
41
|
-
"@vaadin/field-base": "25.1.0-
|
|
42
|
-
"@vaadin/input-container": "25.1.0-
|
|
43
|
-
"@vaadin/overlay": "25.1.0-
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "25.1.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.1.0-beta2",
|
|
39
|
+
"@vaadin/button": "25.1.0-beta2",
|
|
40
|
+
"@vaadin/component-base": "25.1.0-beta2",
|
|
41
|
+
"@vaadin/field-base": "25.1.0-beta2",
|
|
42
|
+
"@vaadin/input-container": "25.1.0-beta2",
|
|
43
|
+
"@vaadin/overlay": "25.1.0-beta2",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "25.1.0-beta2",
|
|
45
45
|
"lit": "^3.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@vaadin/aura": "25.1.0-
|
|
49
|
-
"@vaadin/chai-plugins": "25.1.0-
|
|
50
|
-
"@vaadin/test-runner-commands": "25.1.0-
|
|
48
|
+
"@vaadin/aura": "25.1.0-beta2",
|
|
49
|
+
"@vaadin/chai-plugins": "25.1.0-beta2",
|
|
50
|
+
"@vaadin/test-runner-commands": "25.1.0-beta2",
|
|
51
51
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
52
|
-
"@vaadin/vaadin-lumo-styles": "25.1.0-
|
|
52
|
+
"@vaadin/vaadin-lumo-styles": "25.1.0-beta2",
|
|
53
53
|
"sinon": "^21.0.0"
|
|
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": "ffbedbae08a5160d13bcd1c6fcaa328df5103a05"
|
|
61
61
|
}
|
|
@@ -119,7 +119,6 @@ export const DatePickerMixin = (subclass) =>
|
|
|
119
119
|
* - ISO 8601 `"YYYY-MM-DD"` (default)
|
|
120
120
|
* - 6-digit extended ISO 8601 `"+YYYYYY-MM-DD"`, `"-YYYYYY-MM-DD"`
|
|
121
121
|
*
|
|
122
|
-
* @type {string}
|
|
123
122
|
*/
|
|
124
123
|
value: {
|
|
125
124
|
type: String,
|
|
@@ -169,7 +168,6 @@ export const DatePickerMixin = (subclass) =>
|
|
|
169
168
|
},
|
|
170
169
|
|
|
171
170
|
/**
|
|
172
|
-
* @type {boolean}
|
|
173
171
|
* @protected
|
|
174
172
|
*/
|
|
175
173
|
_fullscreen: {
|
|
@@ -179,7 +177,6 @@ export const DatePickerMixin = (subclass) =>
|
|
|
179
177
|
},
|
|
180
178
|
|
|
181
179
|
/**
|
|
182
|
-
* @type {string}
|
|
183
180
|
* @protected
|
|
184
181
|
*/
|
|
185
182
|
_fullscreenMediaQuery: {
|
|
@@ -369,7 +366,7 @@ export const DatePickerMixin = (subclass) =>
|
|
|
369
366
|
* }
|
|
370
367
|
* }
|
|
371
368
|
* ```
|
|
372
|
-
* @
|
|
369
|
+
* @type {!DatePickerI18n}
|
|
373
370
|
*/
|
|
374
371
|
get i18n() {
|
|
375
372
|
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-
|
|
4
|
+
"version": "25.1.0-beta2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -277,7 +277,9 @@
|
|
|
277
277
|
"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
278
|
"value": {
|
|
279
279
|
"type": [
|
|
280
|
-
"string"
|
|
280
|
+
"string",
|
|
281
|
+
"null",
|
|
282
|
+
"undefined"
|
|
281
283
|
]
|
|
282
284
|
}
|
|
283
285
|
}
|
|
@@ -399,7 +401,7 @@
|
|
|
399
401
|
"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
402
|
"value": {
|
|
401
403
|
"type": [
|
|
402
|
-
"
|
|
404
|
+
"?"
|
|
403
405
|
]
|
|
404
406
|
}
|
|
405
407
|
},
|
|
@@ -559,7 +561,9 @@
|
|
|
559
561
|
"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
562
|
"value": {
|
|
561
563
|
"type": [
|
|
562
|
-
"string"
|
|
564
|
+
"string",
|
|
565
|
+
"null",
|
|
566
|
+
"undefined"
|
|
563
567
|
]
|
|
564
568
|
}
|
|
565
569
|
}
|