@vaadin/date-picker 25.4.0-alpha3 → 25.4.0-alpha5

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.
@@ -857,6 +857,62 @@
857
857
  "description": "",
858
858
  "name": "DatePickerMixin",
859
859
  "members": [
860
+ {
861
+ "kind": "field",
862
+ "name": "accessibleDescriptionRef",
863
+ "privacy": "public",
864
+ "type": {
865
+ "text": "string"
866
+ },
867
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
868
+ "attribute": "accessible-description-ref",
869
+ "inheritedFrom": {
870
+ "name": "FieldMixin",
871
+ "package": "@vaadin/field-base/src/field-mixin.js"
872
+ }
873
+ },
874
+ {
875
+ "kind": "field",
876
+ "name": "accessibleName",
877
+ "privacy": "public",
878
+ "type": {
879
+ "text": "string"
880
+ },
881
+ "description": "String used to label the component for screen reader users.",
882
+ "attribute": "accessible-name",
883
+ "inheritedFrom": {
884
+ "name": "FieldMixin",
885
+ "package": "@vaadin/field-base/src/field-mixin.js"
886
+ }
887
+ },
888
+ {
889
+ "kind": "field",
890
+ "name": "accessibleNameRef",
891
+ "privacy": "public",
892
+ "type": {
893
+ "text": "string"
894
+ },
895
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
896
+ "attribute": "accessible-name-ref",
897
+ "inheritedFrom": {
898
+ "name": "FieldMixin",
899
+ "package": "@vaadin/field-base/src/field-mixin.js"
900
+ }
901
+ },
902
+ {
903
+ "kind": "field",
904
+ "name": "allowedCharPattern",
905
+ "privacy": "public",
906
+ "type": {
907
+ "text": "string"
908
+ },
909
+ "description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
910
+ "attribute": "allowed-char-pattern",
911
+ "inheritedFrom": {
912
+ "name": "InputControlMixin",
913
+ "package": "@vaadin/field-base/src/input-control-mixin.js"
914
+ }
915
+ },
860
916
  {
861
917
  "kind": "field",
862
918
  "name": "autofocus",
@@ -881,6 +937,20 @@
881
937
  "description": "Set true to prevent the overlay from opening automatically.",
882
938
  "attribute": "auto-open-disabled"
883
939
  },
940
+ {
941
+ "kind": "field",
942
+ "name": "autoselect",
943
+ "privacy": "public",
944
+ "type": {
945
+ "text": "boolean"
946
+ },
947
+ "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
948
+ "attribute": "autoselect",
949
+ "inheritedFrom": {
950
+ "name": "InputControlMixin",
951
+ "package": "@vaadin/field-base/src/input-control-mixin.js"
952
+ }
953
+ },
884
954
  {
885
955
  "kind": "method",
886
956
  "name": "checkValidity",
@@ -889,10 +959,6 @@
889
959
  "type": {
890
960
  "text": "boolean"
891
961
  }
892
- },
893
- "inheritedFrom": {
894
- "name": "ValidateMixin",
895
- "package": "@vaadin/field-base/src/validate-mixin.js"
896
962
  }
897
963
  },
898
964
  {
@@ -904,6 +970,20 @@
904
970
  "package": "@vaadin/field-base/src/input-mixin.js"
905
971
  }
906
972
  },
973
+ {
974
+ "kind": "field",
975
+ "name": "clearButtonVisible",
976
+ "privacy": "public",
977
+ "type": {
978
+ "text": "boolean"
979
+ },
980
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
981
+ "attribute": "clear-button-visible",
982
+ "inheritedFrom": {
983
+ "name": "ClearButtonMixin",
984
+ "package": "@vaadin/field-base/src/clear-button-mixin.js"
985
+ }
986
+ },
907
987
  {
908
988
  "kind": "method",
909
989
  "name": "clearCache",
@@ -921,8 +1001,7 @@
921
1001
  "type": {
922
1002
  "text": "DatePickerDateMetadataProvider | null | undefined"
923
1003
  },
924
- "description": "A function that provides metadata for the dates the calendar is about to render: whether they\nare disabled, and CSS `part` names for styling from outside using the `::part()` selector.\nUnlike `isDateDisabled`, which is called once per date, the metadata provider is called for\na range of dates at a time, and again as the calendar renders further dates.\n\nIt receives a `DatePickerDateRange` and returns an array of `DatePickerDateMetadata` objects\nfor the dates in that range that have metadata. It can return a `Promise` to load the metadata\nasynchronously, and `null` or `undefined` when no date in the range has metadata.\n\nThe returned array has the following structure:\n\n```js\n[\n // The date is an ISO 8601 string.\n { date: '2026-01-01', disabled: true },\n\n // Adds a custom part name to the date.\n { date: '2026-01-02', part: 'busy' },\n]\n```\n\nA date is disabled if its metadata marks it disabled, or `isDateDisabled` returns `true`, or\nit is outside `min` and `max`. Disabled dates are not selectable, and typing a disabled date in\nthe field makes it invalid. The provider does not affect which date is focused when opening the\noverlay. Use `initialPosition` property to provide a selectable date.\n\nWhile a returned `Promise` is pending, the dates it covers are not disabled yet and render with\nthe `loading` part. If the function throws or rejects, corresponding dates are requested again\nthe next time the user navigates.\n\nThe provider is used for validation also when the overlay is closed. Date is considered valid\nwhile the provider is pending, and is re-validated again after the metadata is loaded.\n\nKeep a stable reference to the function: assigning a new one clears the cache and re-fetches\nvisible range. Call `clearCache()` to re-fetch when the data behind the same function changed.",
925
- "attribute": "date-metadata-provider"
1004
+ "description": "A function that provides metadata for the dates the calendar is about to render: whether they\nare disabled, and CSS `part` names for styling from outside using the `::part()` selector.\nUnlike `isDateDisabled`, which is called once per date, the metadata provider is called for\na range of dates at a time, and again as the calendar renders further dates.\n\nIt receives a `DatePickerDateRange` and returns an array of `DatePickerDateMetadata` objects\nfor the dates in that range that have metadata. It can return a `Promise` to load the metadata\nasynchronously, and `null` or `undefined` when no date in the range has metadata.\n\nThe returned array has the following structure:\n\n```js\n[\n // The date is an ISO 8601 string.\n { date: '2026-01-01', disabled: true },\n\n // Adds a custom part name to the date.\n { date: '2026-01-02', part: 'busy' },\n]\n```\n\nA date is disabled if its metadata marks it disabled, or `isDateDisabled` returns `true`, or\nit is outside `min` and `max`. Disabled dates are not selectable, and typing a disabled date in\nthe field makes it invalid. The provider does not affect which date is focused when opening the\noverlay. Use `initialPosition` property to provide a selectable date.\n\nWhile a returned `Promise` is pending, the dates it covers are not disabled yet and render with\nthe `loading` part. If the function throws or rejects, corresponding dates are requested again\nthe next time the user navigates.\n\nThe provider is used for validation also when the overlay is closed. Date is considered valid\nwhile the provider is pending, and is re-validated again after the metadata is loaded.\n\nKeep a stable reference to the function: assigning a new one clears the cache and re-fetches\nvisible range. Call `clearCache()` to re-fetch when the data behind the same function changed."
926
1005
  },
927
1006
  {
928
1007
  "kind": "field",
@@ -934,24 +1013,47 @@
934
1013
  "description": "If true, the user cannot interact with this element.",
935
1014
  "attribute": "disabled",
936
1015
  "inheritedFrom": {
937
- "name": "TabindexMixin",
938
- "package": "@vaadin/a11y-base/src/tabindex-mixin.js"
1016
+ "name": "DisabledMixin",
1017
+ "package": "@vaadin/a11y-base/src/disabled-mixin.js"
939
1018
  }
940
1019
  },
941
1020
  {
942
1021
  "kind": "field",
943
- "name": "i18n",
1022
+ "name": "errorMessage",
944
1023
  "privacy": "public",
945
1024
  "type": {
946
- "text": "Object | undefined"
1025
+ "text": "string"
947
1026
  },
948
- "description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\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 // Accessible name of the overlay content, announced by screen readers\n // when the overlay opens.\n dialogAccessibleName: 'Calendar',\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```",
949
- "attribute": "i18n",
1027
+ "description": "Error to show when the field is invalid.",
1028
+ "attribute": "error-message",
950
1029
  "inheritedFrom": {
951
- "name": "I18nMixin",
952
- "package": "@vaadin/component-base/src/i18n-mixin.js"
1030
+ "name": "FieldMixin",
1031
+ "package": "@vaadin/field-base/src/field-mixin.js"
953
1032
  }
954
1033
  },
1034
+ {
1035
+ "kind": "field",
1036
+ "name": "helperText",
1037
+ "privacy": "public",
1038
+ "type": {
1039
+ "text": "string"
1040
+ },
1041
+ "description": "String used for the helper text.",
1042
+ "attribute": "helper-text",
1043
+ "inheritedFrom": {
1044
+ "name": "FieldMixin",
1045
+ "package": "@vaadin/field-base/src/field-mixin.js"
1046
+ }
1047
+ },
1048
+ {
1049
+ "kind": "field",
1050
+ "name": "i18n",
1051
+ "description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\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 // Accessible name of the overlay content, announced by screen readers\n // when the overlay opens.\n dialogAccessibleName: 'Calendar',\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```",
1052
+ "type": {
1053
+ "text": "DatePickerI18n | undefined"
1054
+ },
1055
+ "privacy": "public"
1056
+ },
955
1057
  {
956
1058
  "kind": "field",
957
1059
  "name": "initialPosition",
@@ -983,8 +1085,21 @@
983
1085
  "type": {
984
1086
  "text": "function(DatePickerDate): boolean | undefined"
985
1087
  },
986
- "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.\n\nThe function is called once per date and has to answer synchronously. Use\n`dateMetadataProvider` when the answer has to be loaded first, or when dates also need\ncustom part names. A date is disabled when either of the two disables it.",
987
- "attribute": "is-date-disabled"
1088
+ "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.\n\nThe function is called once per date and has to answer synchronously. Use\n`dateMetadataProvider` when the answer has to be loaded first, or when dates also need\ncustom part names. A date is disabled when either of the two disables it."
1089
+ },
1090
+ {
1091
+ "kind": "field",
1092
+ "name": "label",
1093
+ "privacy": "public",
1094
+ "type": {
1095
+ "text": "string"
1096
+ },
1097
+ "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
1098
+ "attribute": "label",
1099
+ "inheritedFrom": {
1100
+ "name": "LabelMixin",
1101
+ "package": "@vaadin/field-base/src/label-mixin.js"
1102
+ }
988
1103
  },
989
1104
  {
990
1105
  "kind": "field",
@@ -1020,6 +1135,20 @@
1020
1135
  "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\"`",
1021
1136
  "attribute": "min"
1022
1137
  },
1138
+ {
1139
+ "kind": "field",
1140
+ "name": "name",
1141
+ "privacy": "public",
1142
+ "type": {
1143
+ "text": "string"
1144
+ },
1145
+ "description": "The name of this field.",
1146
+ "attribute": "name",
1147
+ "inheritedFrom": {
1148
+ "name": "InputControlMixin",
1149
+ "package": "@vaadin/field-base/src/input-control-mixin.js"
1150
+ }
1151
+ },
1023
1152
  {
1024
1153
  "kind": "method",
1025
1154
  "name": "open",
@@ -1035,6 +1164,34 @@
1035
1164
  "description": "Set true to open the date selector overlay.",
1036
1165
  "attribute": "opened"
1037
1166
  },
1167
+ {
1168
+ "kind": "field",
1169
+ "name": "placeholder",
1170
+ "privacy": "public",
1171
+ "type": {
1172
+ "text": "string"
1173
+ },
1174
+ "description": "A hint to the user of what can be entered in the field.",
1175
+ "attribute": "placeholder",
1176
+ "inheritedFrom": {
1177
+ "name": "InputControlMixin",
1178
+ "package": "@vaadin/field-base/src/input-control-mixin.js"
1179
+ }
1180
+ },
1181
+ {
1182
+ "kind": "field",
1183
+ "name": "readonly",
1184
+ "privacy": "public",
1185
+ "type": {
1186
+ "text": "boolean"
1187
+ },
1188
+ "description": "When present, it specifies that the field is read-only.",
1189
+ "attribute": "readonly",
1190
+ "inheritedFrom": {
1191
+ "name": "InputControlMixin",
1192
+ "package": "@vaadin/field-base/src/input-control-mixin.js"
1193
+ }
1194
+ },
1038
1195
  {
1039
1196
  "kind": "field",
1040
1197
  "name": "required",
@@ -1059,6 +1216,20 @@
1059
1216
  "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).",
1060
1217
  "attribute": "show-week-numbers"
1061
1218
  },
1219
+ {
1220
+ "kind": "field",
1221
+ "name": "title",
1222
+ "privacy": "public",
1223
+ "type": {
1224
+ "text": "string"
1225
+ },
1226
+ "description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
1227
+ "attribute": "title",
1228
+ "inheritedFrom": {
1229
+ "name": "InputControlMixin",
1230
+ "package": "@vaadin/field-base/src/input-control-mixin.js"
1231
+ }
1232
+ },
1062
1233
  {
1063
1234
  "kind": "method",
1064
1235
  "name": "validate",
@@ -1081,11 +1252,7 @@
1081
1252
  "text": "string"
1082
1253
  },
1083
1254
  "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\"`",
1084
- "attribute": "value",
1085
- "inheritedFrom": {
1086
- "name": "InputMixin",
1087
- "package": "@vaadin/field-base/src/input-mixin.js"
1088
- }
1255
+ "attribute": "value"
1089
1256
  }
1090
1257
  ],
1091
1258
  "events": [
@@ -1093,10 +1260,6 @@
1093
1260
  "name": "change",
1094
1261
  "type": {
1095
1262
  "text": "CustomEvent"
1096
- },
1097
- "inheritedFrom": {
1098
- "name": "InputConstraintsMixin",
1099
- "package": "@vaadin/field-base/src/input-constraints-mixin.js"
1100
1263
  }
1101
1264
  },
1102
1265
  {
@@ -1117,6 +1280,54 @@
1117
1280
  }
1118
1281
  ],
1119
1282
  "attributes": [
1283
+ {
1284
+ "name": "accessible-description-ref",
1285
+ "type": {
1286
+ "text": "string"
1287
+ },
1288
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
1289
+ "fieldName": "accessibleDescriptionRef",
1290
+ "inheritedFrom": {
1291
+ "name": "FieldMixin",
1292
+ "package": "@vaadin/field-base/src/field-mixin.js"
1293
+ }
1294
+ },
1295
+ {
1296
+ "name": "accessible-name",
1297
+ "type": {
1298
+ "text": "string"
1299
+ },
1300
+ "description": "String used to label the component for screen reader users.",
1301
+ "fieldName": "accessibleName",
1302
+ "inheritedFrom": {
1303
+ "name": "FieldMixin",
1304
+ "package": "@vaadin/field-base/src/field-mixin.js"
1305
+ }
1306
+ },
1307
+ {
1308
+ "name": "accessible-name-ref",
1309
+ "type": {
1310
+ "text": "string"
1311
+ },
1312
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
1313
+ "fieldName": "accessibleNameRef",
1314
+ "inheritedFrom": {
1315
+ "name": "FieldMixin",
1316
+ "package": "@vaadin/field-base/src/field-mixin.js"
1317
+ }
1318
+ },
1319
+ {
1320
+ "name": "allowed-char-pattern",
1321
+ "type": {
1322
+ "text": "string"
1323
+ },
1324
+ "description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
1325
+ "fieldName": "allowedCharPattern",
1326
+ "inheritedFrom": {
1327
+ "name": "InputControlMixin",
1328
+ "package": "@vaadin/field-base/src/input-control-mixin.js"
1329
+ }
1330
+ },
1120
1331
  {
1121
1332
  "name": "auto-open-disabled",
1122
1333
  "type": {
@@ -1138,12 +1349,28 @@
1138
1349
  }
1139
1350
  },
1140
1351
  {
1141
- "name": "date-metadata-provider",
1352
+ "name": "autoselect",
1142
1353
  "type": {
1143
- "text": "DatePickerDateMetadataProvider | null | undefined"
1354
+ "text": "boolean"
1144
1355
  },
1145
- "description": "A function that provides metadata for the dates the calendar is about to render: whether they\nare disabled, and CSS `part` names for styling from outside using the `::part()` selector.\nUnlike `isDateDisabled`, which is called once per date, the metadata provider is called for\na range of dates at a time, and again as the calendar renders further dates.\n\nIt receives a `DatePickerDateRange` and returns an array of `DatePickerDateMetadata` objects\nfor the dates in that range that have metadata. It can return a `Promise` to load the metadata\nasynchronously, and `null` or `undefined` when no date in the range has metadata.\n\nThe returned array has the following structure:\n\n```js\n[\n // The date is an ISO 8601 string.\n { date: '2026-01-01', disabled: true },\n\n // Adds a custom part name to the date.\n { date: '2026-01-02', part: 'busy' },\n]\n```\n\nA date is disabled if its metadata marks it disabled, or `isDateDisabled` returns `true`, or\nit is outside `min` and `max`. Disabled dates are not selectable, and typing a disabled date in\nthe field makes it invalid. The provider does not affect which date is focused when opening the\noverlay. Use `initialPosition` property to provide a selectable date.\n\nWhile a returned `Promise` is pending, the dates it covers are not disabled yet and render with\nthe `loading` part. If the function throws or rejects, corresponding dates are requested again\nthe next time the user navigates.\n\nThe provider is used for validation also when the overlay is closed. Date is considered valid\nwhile the provider is pending, and is re-validated again after the metadata is loaded.\n\nKeep a stable reference to the function: assigning a new one clears the cache and re-fetches\nvisible range. Call `clearCache()` to re-fetch when the data behind the same function changed.",
1146
- "fieldName": "dateMetadataProvider"
1356
+ "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
1357
+ "fieldName": "autoselect",
1358
+ "inheritedFrom": {
1359
+ "name": "InputControlMixin",
1360
+ "package": "@vaadin/field-base/src/input-control-mixin.js"
1361
+ }
1362
+ },
1363
+ {
1364
+ "name": "clear-button-visible",
1365
+ "type": {
1366
+ "text": "boolean"
1367
+ },
1368
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
1369
+ "fieldName": "clearButtonVisible",
1370
+ "inheritedFrom": {
1371
+ "name": "ClearButtonMixin",
1372
+ "package": "@vaadin/field-base/src/clear-button-mixin.js"
1373
+ }
1147
1374
  },
1148
1375
  {
1149
1376
  "name": "disabled",
@@ -1153,20 +1380,32 @@
1153
1380
  "description": "If true, the user cannot interact with this element.",
1154
1381
  "fieldName": "disabled",
1155
1382
  "inheritedFrom": {
1156
- "name": "TabindexMixin",
1157
- "package": "@vaadin/a11y-base/src/tabindex-mixin.js"
1383
+ "name": "DisabledMixin",
1384
+ "package": "@vaadin/a11y-base/src/disabled-mixin.js"
1158
1385
  }
1159
1386
  },
1160
1387
  {
1161
- "name": "i18n",
1388
+ "name": "error-message",
1162
1389
  "type": {
1163
- "text": "Object | undefined"
1390
+ "text": "string"
1164
1391
  },
1165
- "description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
1166
- "fieldName": "i18n",
1392
+ "description": "Error to show when the field is invalid.",
1393
+ "fieldName": "errorMessage",
1167
1394
  "inheritedFrom": {
1168
- "name": "I18nMixin",
1169
- "package": "@vaadin/component-base/src/i18n-mixin.js"
1395
+ "name": "FieldMixin",
1396
+ "package": "@vaadin/field-base/src/field-mixin.js"
1397
+ }
1398
+ },
1399
+ {
1400
+ "name": "helper-text",
1401
+ "type": {
1402
+ "text": "string"
1403
+ },
1404
+ "description": "String used for the helper text.",
1405
+ "fieldName": "helperText",
1406
+ "inheritedFrom": {
1407
+ "name": "FieldMixin",
1408
+ "package": "@vaadin/field-base/src/field-mixin.js"
1170
1409
  }
1171
1410
  },
1172
1411
  {
@@ -1190,12 +1429,16 @@
1190
1429
  }
1191
1430
  },
1192
1431
  {
1193
- "name": "is-date-disabled",
1432
+ "name": "label",
1194
1433
  "type": {
1195
- "text": "function(DatePickerDate): boolean | undefined"
1434
+ "text": "string"
1196
1435
  },
1197
- "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.\n\nThe function is called once per date and has to answer synchronously. Use\n`dateMetadataProvider` when the answer has to be loaded first, or when dates also need\ncustom part names. A date is disabled when either of the two disables it.",
1198
- "fieldName": "isDateDisabled"
1436
+ "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
1437
+ "fieldName": "label",
1438
+ "inheritedFrom": {
1439
+ "name": "LabelMixin",
1440
+ "package": "@vaadin/field-base/src/label-mixin.js"
1441
+ }
1199
1442
  },
1200
1443
  {
1201
1444
  "name": "manual-validation",
@@ -1225,6 +1468,18 @@
1225
1468
  "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\"`",
1226
1469
  "fieldName": "min"
1227
1470
  },
1471
+ {
1472
+ "name": "name",
1473
+ "type": {
1474
+ "text": "string"
1475
+ },
1476
+ "description": "The name of this field.",
1477
+ "fieldName": "name",
1478
+ "inheritedFrom": {
1479
+ "name": "InputControlMixin",
1480
+ "package": "@vaadin/field-base/src/input-control-mixin.js"
1481
+ }
1482
+ },
1228
1483
  {
1229
1484
  "name": "opened",
1230
1485
  "type": {
@@ -1233,6 +1488,30 @@
1233
1488
  "description": "Set true to open the date selector overlay.",
1234
1489
  "fieldName": "opened"
1235
1490
  },
1491
+ {
1492
+ "name": "placeholder",
1493
+ "type": {
1494
+ "text": "string"
1495
+ },
1496
+ "description": "A hint to the user of what can be entered in the field.",
1497
+ "fieldName": "placeholder",
1498
+ "inheritedFrom": {
1499
+ "name": "InputControlMixin",
1500
+ "package": "@vaadin/field-base/src/input-control-mixin.js"
1501
+ }
1502
+ },
1503
+ {
1504
+ "name": "readonly",
1505
+ "type": {
1506
+ "text": "boolean"
1507
+ },
1508
+ "description": "When present, it specifies that the field is read-only.",
1509
+ "fieldName": "readonly",
1510
+ "inheritedFrom": {
1511
+ "name": "InputControlMixin",
1512
+ "package": "@vaadin/field-base/src/input-control-mixin.js"
1513
+ }
1514
+ },
1236
1515
  {
1237
1516
  "name": "required",
1238
1517
  "type": {
@@ -1254,16 +1533,24 @@
1254
1533
  "fieldName": "showWeekNumbers"
1255
1534
  },
1256
1535
  {
1257
- "name": "value",
1536
+ "name": "title",
1258
1537
  "type": {
1259
1538
  "text": "string"
1260
1539
  },
1261
- "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\"`",
1262
- "fieldName": "value",
1540
+ "description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
1541
+ "fieldName": "title",
1263
1542
  "inheritedFrom": {
1264
- "name": "InputMixin",
1265
- "package": "@vaadin/field-base/src/input-mixin.js"
1543
+ "name": "InputControlMixin",
1544
+ "package": "@vaadin/field-base/src/input-control-mixin.js"
1266
1545
  }
1546
+ },
1547
+ {
1548
+ "name": "value",
1549
+ "type": {
1550
+ "text": "string"
1551
+ },
1552
+ "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\"`",
1553
+ "fieldName": "value"
1267
1554
  }
1268
1555
  ],
1269
1556
  "mixins": [
@@ -1272,16 +1559,8 @@
1272
1559
  "package": "@vaadin/component-base/src/i18n-mixin.js"
1273
1560
  },
1274
1561
  {
1275
- "name": "DelegateFocusMixin",
1276
- "package": "@vaadin/a11y-base/src/delegate-focus-mixin.js"
1277
- },
1278
- {
1279
- "name": "InputConstraintsMixin",
1280
- "package": "@vaadin/field-base/src/input-constraints-mixin.js"
1281
- },
1282
- {
1283
- "name": "KeyboardMixin",
1284
- "package": "@vaadin/a11y-base/src/keyboard-mixin.js"
1562
+ "name": "InputControlMixin",
1563
+ "package": "@vaadin/field-base/src/input-control-mixin.js"
1285
1564
  }
1286
1565
  ],
1287
1566
  "parameters": [
@@ -1325,8 +1604,7 @@
1325
1604
  "privacy": "public",
1326
1605
  "type": {
1327
1606
  "text": "array"
1328
- },
1329
- "attribute": "calendars"
1607
+ }
1330
1608
  },
1331
1609
  {
1332
1610
  "kind": "method",
@@ -1339,8 +1617,12 @@
1339
1617
  "privacy": "public",
1340
1618
  "type": {
1341
1619
  "text": "date"
1342
- },
1343
- "attribute": "entered-date"
1620
+ }
1621
+ },
1622
+ {
1623
+ "kind": "field",
1624
+ "name": "focusableDateButton",
1625
+ "readonly": true
1344
1626
  },
1345
1627
  {
1346
1628
  "kind": "field",
@@ -1381,8 +1663,7 @@
1381
1663
  "type": {
1382
1664
  "text": "object"
1383
1665
  },
1384
- "description": "Date value which is focused using keyboard.",
1385
- "attribute": "focused-date"
1666
+ "description": "Date value which is focused using keyboard."
1386
1667
  },
1387
1668
  {
1388
1669
  "kind": "field",
@@ -1390,8 +1671,7 @@
1390
1671
  "privacy": "public",
1391
1672
  "type": {
1392
1673
  "text": "object"
1393
- },
1394
- "attribute": "i18n"
1674
+ }
1395
1675
  },
1396
1676
  {
1397
1677
  "kind": "field",
@@ -1400,8 +1680,7 @@
1400
1680
  "type": {
1401
1681
  "text": "object"
1402
1682
  },
1403
- "description": "Date which should be visible when there is no value selected.",
1404
- "attribute": "initial-position"
1683
+ "description": "Date which should be visible when there is no value selected."
1405
1684
  },
1406
1685
  {
1407
1686
  "kind": "field",
@@ -1410,8 +1689,7 @@
1410
1689
  "type": {
1411
1690
  "text": "function(DatePickerDate): boolean | undefined"
1412
1691
  },
1413
- "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.",
1414
- "attribute": "is-date-disabled"
1692
+ "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."
1415
1693
  },
1416
1694
  {
1417
1695
  "kind": "field",
@@ -1432,8 +1710,7 @@
1432
1710
  "type": {
1433
1711
  "text": "object"
1434
1712
  },
1435
- "description": "The latest date that can be selected. All later dates will be disabled.",
1436
- "attribute": "max-date"
1713
+ "description": "The latest date that can be selected. All later dates will be disabled."
1437
1714
  },
1438
1715
  {
1439
1716
  "kind": "field",
@@ -1442,8 +1719,7 @@
1442
1719
  "type": {
1443
1720
  "text": "object"
1444
1721
  },
1445
- "description": "The earliest date that can be selected. All earlier dates will be disabled.",
1446
- "attribute": "min-date"
1722
+ "description": "The earliest date that can be selected. All earlier dates will be disabled."
1447
1723
  },
1448
1724
  {
1449
1725
  "kind": "method",
@@ -1492,8 +1768,7 @@
1492
1768
  "type": {
1493
1769
  "text": "object"
1494
1770
  },
1495
- "description": "The value for this element.",
1496
- "attribute": "selected-date"
1771
+ "description": "The value for this element."
1497
1772
  },
1498
1773
  {
1499
1774
  "kind": "field",
@@ -1515,8 +1790,7 @@
1515
1790
  "privacy": "public",
1516
1791
  "type": {
1517
1792
  "text": "array"
1518
- },
1519
- "attribute": "years"
1793
+ }
1520
1794
  }
1521
1795
  ],
1522
1796
  "events": [
@@ -1546,28 +1820,6 @@
1546
1820
  }
1547
1821
  ],
1548
1822
  "attributes": [
1549
- {
1550
- "name": "calendars",
1551
- "type": {
1552
- "text": "array"
1553
- },
1554
- "fieldName": "calendars"
1555
- },
1556
- {
1557
- "name": "entered-date",
1558
- "type": {
1559
- "text": "date"
1560
- },
1561
- "fieldName": "enteredDate"
1562
- },
1563
- {
1564
- "name": "is-date-disabled",
1565
- "type": {
1566
- "text": "function(DatePickerDate): boolean | undefined"
1567
- },
1568
- "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.",
1569
- "fieldName": "isDateDisabled"
1570
- },
1571
1823
  {
1572
1824
  "name": "label",
1573
1825
  "description": "Input label",
@@ -1586,13 +1838,6 @@
1586
1838
  "text": "boolean"
1587
1839
  },
1588
1840
  "fieldName": "showWeekNumbers"
1589
- },
1590
- {
1591
- "name": "years",
1592
- "type": {
1593
- "text": "array"
1594
- },
1595
- "fieldName": "years"
1596
1841
  }
1597
1842
  ],
1598
1843
  "parameters": [
@@ -1711,7 +1956,6 @@
1711
1956
  "text": "object"
1712
1957
  },
1713
1958
  "description": "Object with properties that is passed to `renderer` function",
1714
- "attribute": "model",
1715
1959
  "inheritedFrom": {
1716
1960
  "name": "OverlayMixin",
1717
1961
  "package": "@vaadin/overlay/src/vaadin-overlay-mixin.js"
@@ -1781,7 +2025,6 @@
1781
2025
  "text": "HTMLElement"
1782
2026
  },
1783
2027
  "description": "Owner element passed with renderer function",
1784
- "attribute": "owner",
1785
2028
  "inheritedFrom": {
1786
2029
  "name": "OverlayMixin",
1787
2030
  "package": "@vaadin/overlay/src/vaadin-overlay-mixin.js"
@@ -1795,7 +2038,6 @@
1795
2038
  "text": "object"
1796
2039
  },
1797
2040
  "description": "The element next to which this overlay should be aligned.\nThe position of the overlay relative to the positionTarget can be adjusted\nwith properties `horizontalAlign`, `verticalAlign`, `noHorizontalOverlap`\nand `noVerticalOverlap`.",
1798
- "attribute": "position-target",
1799
2041
  "inheritedFrom": {
1800
2042
  "name": "PositionMixin",
1801
2043
  "package": "@vaadin/overlay/src/vaadin-overlay-position-mixin.js"
@@ -1809,7 +2051,6 @@
1809
2051
  "text": "OverlayRenderer | null | undefined"
1810
2052
  },
1811
2053
  "description": "Custom function for rendering the content of the overlay.\nReceives three arguments:\n\n- `root` The root container DOM element. Append your content to it.\n- `owner` The host element of the renderer function.\n- `model` The object with the properties related with rendering.",
1812
- "attribute": "renderer",
1813
2054
  "inheritedFrom": {
1814
2055
  "name": "OverlayMixin",
1815
2056
  "package": "@vaadin/overlay/src/vaadin-overlay-mixin.js"
@@ -1846,7 +2087,6 @@
1846
2087
  "text": "HTMLElement"
1847
2088
  },
1848
2089
  "description": "Set to specify the element which should be focused on overlay close,\nif `restoreFocusOnClose` is set to true.",
1849
- "attribute": "restore-focus-node",
1850
2090
  "inheritedFrom": {
1851
2091
  "name": "OverlayFocusMixin",
1852
2092
  "package": "@vaadin/overlay/src/vaadin-overlay-focus-mixin.js"
@@ -2031,30 +2271,6 @@
2031
2271
  "package": "@vaadin/overlay/src/vaadin-overlay-mixin.js"
2032
2272
  }
2033
2273
  },
2034
- {
2035
- "name": "owner",
2036
- "type": {
2037
- "text": "HTMLElement"
2038
- },
2039
- "description": "Owner element passed with renderer function",
2040
- "fieldName": "owner",
2041
- "inheritedFrom": {
2042
- "name": "OverlayMixin",
2043
- "package": "@vaadin/overlay/src/vaadin-overlay-mixin.js"
2044
- }
2045
- },
2046
- {
2047
- "name": "renderer",
2048
- "type": {
2049
- "text": "OverlayRenderer | null | undefined"
2050
- },
2051
- "description": "Custom function for rendering the content of the overlay.\nReceives three arguments:\n\n- `root` The root container DOM element. Append your content to it.\n- `owner` The host element of the renderer function.\n- `model` The object with the properties related with rendering.",
2052
- "fieldName": "renderer",
2053
- "inheritedFrom": {
2054
- "name": "OverlayMixin",
2055
- "package": "@vaadin/overlay/src/vaadin-overlay-mixin.js"
2056
- }
2057
- },
2058
2274
  {
2059
2275
  "name": "required-vertical-space",
2060
2276
  "type": {
@@ -2067,18 +2283,6 @@
2067
2283
  "package": "@vaadin/overlay/src/vaadin-overlay-position-mixin.js"
2068
2284
  }
2069
2285
  },
2070
- {
2071
- "name": "restore-focus-node",
2072
- "type": {
2073
- "text": "HTMLElement"
2074
- },
2075
- "description": "Set to specify the element which should be focused on overlay close,\nif `restoreFocusOnClose` is set to true.",
2076
- "fieldName": "restoreFocusNode",
2077
- "inheritedFrom": {
2078
- "name": "OverlayFocusMixin",
2079
- "package": "@vaadin/overlay/src/vaadin-overlay-focus-mixin.js"
2080
- }
2081
- },
2082
2286
  {
2083
2287
  "name": "restore-focus-on-close",
2084
2288
  "type": {
@@ -2268,8 +2472,8 @@
2268
2472
  }
2269
2473
  },
2270
2474
  "inheritedFrom": {
2271
- "name": "InputConstraintsMixin",
2272
- "package": "@vaadin/field-base/src/input-constraints-mixin.js"
2475
+ "name": "DatePickerMixin",
2476
+ "module": "src/vaadin-date-picker-mixin.js"
2273
2477
  }
2274
2478
  },
2275
2479
  {
@@ -2321,7 +2525,6 @@
2321
2525
  "text": "DatePickerDateMetadataProvider | null | undefined"
2322
2526
  },
2323
2527
  "description": "A function that provides metadata for the dates the calendar is about to render: whether they\nare disabled, and CSS `part` names for styling from outside using the `::part()` selector.\nUnlike `isDateDisabled`, which is called once per date, the metadata provider is called for\na range of dates at a time, and again as the calendar renders further dates.\n\nIt receives a `DatePickerDateRange` and returns an array of `DatePickerDateMetadata` objects\nfor the dates in that range that have metadata. It can return a `Promise` to load the metadata\nasynchronously, and `null` or `undefined` when no date in the range has metadata.\n\nThe returned array has the following structure:\n\n```js\n[\n // The date is an ISO 8601 string.\n { date: '2026-01-01', disabled: true },\n\n // Adds a custom part name to the date.\n { date: '2026-01-02', part: 'busy' },\n]\n```\n\nA date is disabled if its metadata marks it disabled, or `isDateDisabled` returns `true`, or\nit is outside `min` and `max`. Disabled dates are not selectable, and typing a disabled date in\nthe field makes it invalid. The provider does not affect which date is focused when opening the\noverlay. Use `initialPosition` property to provide a selectable date.\n\nWhile a returned `Promise` is pending, the dates it covers are not disabled yet and render with\nthe `loading` part. If the function throws or rejects, corresponding dates are requested again\nthe next time the user navigates.\n\nThe provider is used for validation also when the overlay is closed. Date is considered valid\nwhile the provider is pending, and is re-validated again after the metadata is loaded.\n\nKeep a stable reference to the function: assigning a new one clears the cache and re-fetches\nvisible range. Call `clearCache()` to re-fetch when the data behind the same function changed.",
2324
- "attribute": "date-metadata-provider",
2325
2528
  "inheritedFrom": {
2326
2529
  "name": "DatePickerMixin",
2327
2530
  "module": "src/vaadin-date-picker-mixin.js"
@@ -2337,8 +2540,8 @@
2337
2540
  "description": "If true, the user cannot interact with this element.",
2338
2541
  "attribute": "disabled",
2339
2542
  "inheritedFrom": {
2340
- "name": "TabindexMixin",
2341
- "package": "@vaadin/a11y-base/src/tabindex-mixin.js"
2543
+ "name": "DisabledMixin",
2544
+ "package": "@vaadin/a11y-base/src/disabled-mixin.js"
2342
2545
  }
2343
2546
  },
2344
2547
  {
@@ -2372,15 +2575,14 @@
2372
2575
  {
2373
2576
  "kind": "field",
2374
2577
  "name": "i18n",
2375
- "privacy": "public",
2578
+ "description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\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 // Accessible name of the overlay content, announced by screen readers\n // when the overlay opens.\n dialogAccessibleName: 'Calendar',\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```",
2376
2579
  "type": {
2377
- "text": "Object | undefined"
2580
+ "text": "DatePickerI18n | undefined"
2378
2581
  },
2379
- "description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\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 // Accessible name of the overlay content, announced by screen readers\n // when the overlay opens.\n dialogAccessibleName: 'Calendar',\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```",
2380
- "attribute": "i18n",
2582
+ "privacy": "public",
2381
2583
  "inheritedFrom": {
2382
- "name": "I18nMixin",
2383
- "package": "@vaadin/component-base/src/i18n-mixin.js"
2584
+ "name": "DatePickerMixin",
2585
+ "module": "src/vaadin-date-picker-mixin.js"
2384
2586
  }
2385
2587
  },
2386
2588
  {
@@ -2419,7 +2621,6 @@
2419
2621
  "text": "function(DatePickerDate): boolean | undefined"
2420
2622
  },
2421
2623
  "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.\n\nThe function is called once per date and has to answer synchronously. Use\n`dateMetadataProvider` when the answer has to be loaded first, or when dates also need\ncustom part names. A date is disabled when either of the two disables it.",
2422
- "attribute": "is-date-disabled",
2423
2624
  "inheritedFrom": {
2424
2625
  "name": "DatePickerMixin",
2425
2626
  "module": "src/vaadin-date-picker-mixin.js"
@@ -2619,15 +2820,11 @@
2619
2820
  ],
2620
2821
  "events": [
2621
2822
  {
2622
- "name": "change",
2623
2823
  "type": {
2624
- "text": "CustomEvent"
2824
+ "text": "Event"
2625
2825
  },
2626
2826
  "description": "Fired when the user commits a value change.",
2627
- "inheritedFrom": {
2628
- "name": "InputConstraintsMixin",
2629
- "package": "@vaadin/field-base/src/input-constraints-mixin.js"
2630
- }
2827
+ "name": "change"
2631
2828
  },
2632
2829
  {
2633
2830
  "type": {
@@ -2644,15 +2841,11 @@
2644
2841
  "name": "opened-changed"
2645
2842
  },
2646
2843
  {
2647
- "name": "unparsable-change",
2648
2844
  "type": {
2649
- "text": "CustomEvent"
2845
+ "text": "Event"
2650
2846
  },
2651
2847
  "description": "Fired when the user commits an unparsable value change and there is no change event.",
2652
- "inheritedFrom": {
2653
- "name": "DatePickerMixin",
2654
- "module": "src/vaadin-date-picker-mixin.js"
2655
- }
2848
+ "name": "unparsable-change"
2656
2849
  },
2657
2850
  {
2658
2851
  "type": {
@@ -2766,18 +2959,6 @@
2766
2959
  "package": "@vaadin/field-base/src/clear-button-mixin.js"
2767
2960
  }
2768
2961
  },
2769
- {
2770
- "name": "date-metadata-provider",
2771
- "type": {
2772
- "text": "DatePickerDateMetadataProvider | null | undefined"
2773
- },
2774
- "description": "A function that provides metadata for the dates the calendar is about to render: whether they\nare disabled, and CSS `part` names for styling from outside using the `::part()` selector.\nUnlike `isDateDisabled`, which is called once per date, the metadata provider is called for\na range of dates at a time, and again as the calendar renders further dates.\n\nIt receives a `DatePickerDateRange` and returns an array of `DatePickerDateMetadata` objects\nfor the dates in that range that have metadata. It can return a `Promise` to load the metadata\nasynchronously, and `null` or `undefined` when no date in the range has metadata.\n\nThe returned array has the following structure:\n\n```js\n[\n // The date is an ISO 8601 string.\n { date: '2026-01-01', disabled: true },\n\n // Adds a custom part name to the date.\n { date: '2026-01-02', part: 'busy' },\n]\n```\n\nA date is disabled if its metadata marks it disabled, or `isDateDisabled` returns `true`, or\nit is outside `min` and `max`. Disabled dates are not selectable, and typing a disabled date in\nthe field makes it invalid. The provider does not affect which date is focused when opening the\noverlay. Use `initialPosition` property to provide a selectable date.\n\nWhile a returned `Promise` is pending, the dates it covers are not disabled yet and render with\nthe `loading` part. If the function throws or rejects, corresponding dates are requested again\nthe next time the user navigates.\n\nThe provider is used for validation also when the overlay is closed. Date is considered valid\nwhile the provider is pending, and is re-validated again after the metadata is loaded.\n\nKeep a stable reference to the function: assigning a new one clears the cache and re-fetches\nvisible range. Call `clearCache()` to re-fetch when the data behind the same function changed.",
2775
- "fieldName": "dateMetadataProvider",
2776
- "inheritedFrom": {
2777
- "name": "DatePickerMixin",
2778
- "module": "src/vaadin-date-picker-mixin.js"
2779
- }
2780
- },
2781
2962
  {
2782
2963
  "name": "disabled",
2783
2964
  "type": {
@@ -2786,8 +2967,8 @@
2786
2967
  "description": "If true, the user cannot interact with this element.",
2787
2968
  "fieldName": "disabled",
2788
2969
  "inheritedFrom": {
2789
- "name": "TabindexMixin",
2790
- "package": "@vaadin/a11y-base/src/tabindex-mixin.js"
2970
+ "name": "DisabledMixin",
2971
+ "package": "@vaadin/a11y-base/src/disabled-mixin.js"
2791
2972
  }
2792
2973
  },
2793
2974
  {
@@ -2814,18 +2995,6 @@
2814
2995
  "package": "@vaadin/field-base/src/field-mixin.js"
2815
2996
  }
2816
2997
  },
2817
- {
2818
- "name": "i18n",
2819
- "type": {
2820
- "text": "Object | undefined"
2821
- },
2822
- "description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
2823
- "fieldName": "i18n",
2824
- "inheritedFrom": {
2825
- "name": "I18nMixin",
2826
- "package": "@vaadin/component-base/src/i18n-mixin.js"
2827
- }
2828
- },
2829
2998
  {
2830
2999
  "name": "initial-position",
2831
3000
  "type": {
@@ -2850,18 +3019,6 @@
2850
3019
  "package": "@vaadin/field-base/src/validate-mixin.js"
2851
3020
  }
2852
3021
  },
2853
- {
2854
- "name": "is-date-disabled",
2855
- "type": {
2856
- "text": "function(DatePickerDate): boolean | undefined"
2857
- },
2858
- "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.\n\nThe function is called once per date and has to answer synchronously. Use\n`dateMetadataProvider` when the answer has to be loaded first, or when dates also need\ncustom part names. A date is disabled when either of the two disables it.",
2859
- "fieldName": "isDateDisabled",
2860
- "inheritedFrom": {
2861
- "name": "DatePickerMixin",
2862
- "module": "src/vaadin-date-picker-mixin.js"
2863
- }
2864
- },
2865
3022
  {
2866
3023
  "name": "label",
2867
3024
  "type": {
@@ -3019,10 +3176,6 @@
3019
3176
  "name": "DatePickerMixin",
3020
3177
  "module": "src/vaadin-date-picker-mixin.js"
3021
3178
  },
3022
- {
3023
- "name": "InputControlMixin",
3024
- "package": "@vaadin/field-base/src/input-control-mixin.js"
3025
- },
3026
3179
  {
3027
3180
  "name": "ThemableMixin",
3028
3181
  "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
@@ -3083,12 +3236,18 @@
3083
3236
  "privacy": "public",
3084
3237
  "type": {
3085
3238
  "text": "date"
3086
- },
3087
- "attribute": "entered-date"
3239
+ }
3240
+ },
3241
+ {
3242
+ "kind": "field",
3243
+ "name": "focusableDateButton",
3244
+ "description": "The button inside the cell of the focused date. Screen readers get the date's name and state\nfrom this element, so it is also the element that takes DOM focus.",
3245
+ "readonly": true
3088
3246
  },
3089
3247
  {
3090
3248
  "kind": "field",
3091
3249
  "name": "focusableDateElement",
3250
+ "description": "The date cell of the focused date. It carries the `date` property and the date part names,\nwhile the button inside it is the element that takes DOM focus.",
3092
3251
  "readonly": true
3093
3252
  },
3094
3253
  {
@@ -3098,8 +3257,7 @@
3098
3257
  "type": {
3099
3258
  "text": "object"
3100
3259
  },
3101
- "description": "A `Date` object for the currently focused date.",
3102
- "attribute": "focused-date"
3260
+ "description": "A `Date` object for the currently focused date."
3103
3261
  },
3104
3262
  {
3105
3263
  "kind": "field",
@@ -3107,8 +3265,7 @@
3107
3265
  "privacy": "public",
3108
3266
  "type": {
3109
3267
  "text": "object"
3110
- },
3111
- "attribute": "i18n"
3268
+ }
3112
3269
  },
3113
3270
  {
3114
3271
  "kind": "field",
@@ -3127,8 +3284,7 @@
3127
3284
  "type": {
3128
3285
  "text": "Function | undefined"
3129
3286
  },
3130
- "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.",
3131
- "attribute": "is-date-disabled"
3287
+ "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."
3132
3288
  },
3133
3289
  {
3134
3290
  "kind": "field",
@@ -3137,8 +3293,7 @@
3137
3293
  "type": {
3138
3294
  "text": "date"
3139
3295
  },
3140
- "description": "The latest date that can be selected. All later dates will be disabled.",
3141
- "attribute": "max-date"
3296
+ "description": "The latest date that can be selected. All later dates will be disabled."
3142
3297
  },
3143
3298
  {
3144
3299
  "kind": "field",
@@ -3147,8 +3302,7 @@
3147
3302
  "type": {
3148
3303
  "text": "date"
3149
3304
  },
3150
- "description": "The earliest date that can be selected. All earlier dates will be disabled.",
3151
- "attribute": "min-date"
3305
+ "description": "The earliest date that can be selected. All earlier dates will be disabled."
3152
3306
  },
3153
3307
  {
3154
3308
  "kind": "field",
@@ -3157,8 +3311,7 @@
3157
3311
  "type": {
3158
3312
  "text": "object"
3159
3313
  },
3160
- "description": "A `Date` object defining the month to be displayed. Only year and\nmonth properties are actually used.",
3161
- "attribute": "month"
3314
+ "description": "A `Date` object defining the month to be displayed. Only year and\nmonth properties are actually used."
3162
3315
  },
3163
3316
  {
3164
3317
  "kind": "field",
@@ -3167,8 +3320,7 @@
3167
3320
  "type": {
3168
3321
  "text": "object"
3169
3322
  },
3170
- "description": "A `Date` object for the currently selected date.",
3171
- "attribute": "selected-date"
3323
+ "description": "A `Date` object for the currently selected date."
3172
3324
  },
3173
3325
  {
3174
3326
  "kind": "field",
@@ -3197,13 +3349,6 @@
3197
3349
  },
3198
3350
  "fieldName": "disabled"
3199
3351
  },
3200
- {
3201
- "name": "entered-date",
3202
- "type": {
3203
- "text": "date"
3204
- },
3205
- "fieldName": "enteredDate"
3206
- },
3207
3352
  {
3208
3353
  "name": "ignore-taps",
3209
3354
  "type": {
@@ -3212,30 +3357,6 @@
3212
3357
  "description": "Flag stating whether taps on the component should be ignored.",
3213
3358
  "fieldName": "ignoreTaps"
3214
3359
  },
3215
- {
3216
- "name": "is-date-disabled",
3217
- "type": {
3218
- "text": "Function | undefined"
3219
- },
3220
- "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.",
3221
- "fieldName": "isDateDisabled"
3222
- },
3223
- {
3224
- "name": "max-date",
3225
- "type": {
3226
- "text": "date"
3227
- },
3228
- "description": "The latest date that can be selected. All later dates will be disabled.",
3229
- "fieldName": "maxDate"
3230
- },
3231
- {
3232
- "name": "min-date",
3233
- "type": {
3234
- "text": "date"
3235
- },
3236
- "description": "The earliest date that can be selected. All earlier dates will be disabled.",
3237
- "fieldName": "minDate"
3238
- },
3239
3360
  {
3240
3361
  "name": "show-week-numbers",
3241
3362
  "type": {