From 29e05b9abe0e5f2e695c3dfa688c7787fbd2ba15 Mon Sep 17 00:00:00 2001 From: delangle Date: Thu, 24 Nov 2022 09:48:15 +0100 Subject: [PATCH 1/2] [docs] Add support for API pages of unstable components --- .../x/api/data-grid/data-grid-premium.json | 2 +- docs/pages/x/api/data-grid/data-grid-pro.json | 2 +- docs/pages/x/api/data-grid/data-grid.json | 2 +- .../x/api/data-grid/grid-filter-form.json | 6 +- .../x/api/data-grid/grid-filter-panel.json | 6 +- .../x/api/date-pickers/date-calendar.json | 5 +- docs/pages/x/api/date-pickers/date-field.js | 23 +++ docs/pages/x/api/date-pickers/date-field.json | 35 +++++ .../pages/x/api/date-pickers/date-picker.json | 5 +- .../api/date-pickers/date-range-calendar.json | 2 +- .../date-pickers/date-range-picker-day.json | 2 +- .../x/api/date-pickers/date-range-picker.json | 2 +- .../x/api/date-pickers/date-time-field.js | 23 +++ .../x/api/date-pickers/date-time-field.json | 43 ++++++ .../date-pickers/date-time-picker-tabs.json | 5 +- .../x/api/date-pickers/date-time-picker.json | 5 +- .../date-pickers/day-calendar-skeleton.json | 5 +- .../api/date-pickers/desktop-date-picker.json | 5 +- .../desktop-date-range-picker.json | 4 +- .../desktop-date-time-picker.json | 5 +- .../date-pickers/desktop-next-date-picker.js | 23 +++ .../desktop-next-date-picker.json | 123 +++++++++++++++ .../desktop-next-date-range-picker.js | 23 +++ .../desktop-next-date-range-picker.json | 105 +++++++++++++ .../desktop-next-date-time-picker.js | 23 +++ .../desktop-next-date-time-picker.json | 136 +++++++++++++++++ .../date-pickers/desktop-next-time-picker.js | 23 +++ .../desktop-next-time-picker.json | 104 +++++++++++++ .../api/date-pickers/desktop-time-picker.json | 5 +- docs/pages/x/api/date-pickers/index.md | 100 ++++++++++--- .../date-pickers/localization-provider.json | 5 +- .../api/date-pickers/mobile-date-picker.json | 5 +- .../mobile-date-range-picker.json | 4 +- .../date-pickers/mobile-date-time-picker.json | 5 +- .../date-pickers/mobile-next-date-picker.js | 23 +++ .../date-pickers/mobile-next-date-picker.json | 112 ++++++++++++++ .../mobile-next-date-range-picker.js | 23 +++ .../mobile-next-date-range-picker.json | 97 ++++++++++++ .../mobile-next-date-time-picker.js | 23 +++ .../mobile-next-date-time-picker.json | 125 ++++++++++++++++ .../date-pickers/mobile-next-time-picker.js | 23 +++ .../date-pickers/mobile-next-time-picker.json | 93 ++++++++++++ .../api/date-pickers/mobile-time-picker.json | 5 +- .../x/api/date-pickers/month-calendar.json | 5 +- .../multi-input-date-range-field.js | 23 +++ .../multi-input-date-range-field.json | 42 ++++++ .../multi-input-date-time-range-field.js | 23 +++ .../multi-input-date-time-range-field.json | 50 +++++++ .../multi-input-time-range-field.js | 23 +++ .../multi-input-time-range-field.json | 45 ++++++ .../x/api/date-pickers/next-date-picker.js | 23 +++ .../x/api/date-pickers/next-date-picker.json | 130 ++++++++++++++++ .../date-pickers/next-date-range-picker.js | 23 +++ .../date-pickers/next-date-range-picker.json | 109 ++++++++++++++ .../api/date-pickers/next-date-time-picker.js | 23 +++ .../date-pickers/next-date-time-picker.json | 140 ++++++++++++++++++ .../x/api/date-pickers/next-time-picker.js | 23 +++ .../x/api/date-pickers/next-time-picker.json | 108 ++++++++++++++ .../date-pickers/picker-static-wrapper.json | 5 +- .../pages/x/api/date-pickers/pickers-day.json | 5 +- .../single-input-date-range-field.js | 23 +++ .../single-input-date-range-field.json | 35 +++++ .../api/date-pickers/static-date-picker.json | 5 +- .../static-date-range-picker.json | 4 +- .../date-pickers/static-date-time-picker.json | 5 +- .../date-pickers/static-next-date-picker.js | 23 +++ .../date-pickers/static-next-date-picker.json | 92 ++++++++++++ .../static-next-date-range-picker.js | 23 +++ .../static-next-date-range-picker.json | 79 ++++++++++ .../static-next-date-time-picker.js | 23 +++ .../static-next-date-time-picker.json | 105 +++++++++++++ .../date-pickers/static-next-time-picker.js | 23 +++ .../date-pickers/static-next-time-picker.json | 73 +++++++++ .../api/date-pickers/static-time-picker.json | 5 +- docs/pages/x/api/date-pickers/time-clock.json | 5 +- docs/pages/x/api/date-pickers/time-field.js | 23 +++ docs/pages/x/api/date-pickers/time-field.json | 36 +++++ .../pages/x/api/date-pickers/time-picker.json | 5 +- .../x/api/date-pickers/year-calendar.json | 5 +- .../api/buildComponentsDocumentation.ts | 41 +++-- docs/scripts/getTypeScriptProjects.ts | 2 + docs/src/modules/components/ApiPage.js | 4 +- .../api-docs/date-pickers/date-field-pt.json | 24 +++ .../api-docs/date-pickers/date-field-zh.json | 24 +++ .../api-docs/date-pickers/date-field.json | 24 +++ .../date-pickers/date-time-field-pt.json | 32 ++++ .../date-pickers/date-time-field-zh.json | 32 ++++ .../date-pickers/date-time-field.json | 32 ++++ .../desktop-next-date-picker-pt.json | 71 +++++++++ .../desktop-next-date-picker-zh.json | 71 +++++++++ .../desktop-next-date-picker.json | 71 +++++++++ .../desktop-next-date-range-picker-pt.json | 63 ++++++++ .../desktop-next-date-range-picker-zh.json | 63 ++++++++ .../desktop-next-date-range-picker.json | 63 ++++++++ .../desktop-next-date-time-picker-pt.json | 81 ++++++++++ .../desktop-next-date-time-picker-zh.json | 81 ++++++++++ .../desktop-next-date-time-picker.json | 81 ++++++++++ .../desktop-next-time-picker-pt.json | 59 ++++++++ .../desktop-next-time-picker-zh.json | 59 ++++++++ .../desktop-next-time-picker.json | 59 ++++++++ .../mobile-next-date-picker-pt.json | 66 +++++++++ .../mobile-next-date-picker-zh.json | 66 +++++++++ .../date-pickers/mobile-next-date-picker.json | 66 +++++++++ .../mobile-next-date-range-picker-pt.json | 61 ++++++++ .../mobile-next-date-range-picker-zh.json | 61 ++++++++ .../mobile-next-date-range-picker.json | 61 ++++++++ .../mobile-next-date-time-picker-pt.json | 76 ++++++++++ .../mobile-next-date-time-picker-zh.json | 76 ++++++++++ .../mobile-next-date-time-picker.json | 76 ++++++++++ .../mobile-next-time-picker-pt.json | 54 +++++++ .../mobile-next-time-picker-zh.json | 54 +++++++ .../date-pickers/mobile-next-time-picker.json | 54 +++++++ .../multi-input-date-range-field-pt.json | 26 ++++ .../multi-input-date-range-field-zh.json | 26 ++++ .../multi-input-date-range-field.json | 26 ++++ .../multi-input-date-time-range-field-pt.json | 34 +++++ .../multi-input-date-time-range-field-zh.json | 34 +++++ .../multi-input-date-time-range-field.json | 34 +++++ .../multi-input-time-range-field-pt.json | 29 ++++ .../multi-input-time-range-field-zh.json | 29 ++++ .../multi-input-time-range-field.json | 29 ++++ .../date-pickers/next-date-picker-pt.json | 75 ++++++++++ .../date-pickers/next-date-picker-zh.json | 75 ++++++++++ .../date-pickers/next-date-picker.json | 75 ++++++++++ .../next-date-range-picker-pt.json | 67 +++++++++ .../next-date-range-picker-zh.json | 67 +++++++++ .../date-pickers/next-date-range-picker.json | 67 +++++++++ .../next-date-time-picker-pt.json | 85 +++++++++++ .../next-date-time-picker-zh.json | 85 +++++++++++ .../date-pickers/next-date-time-picker.json | 85 +++++++++++ .../date-pickers/next-time-picker-pt.json | 63 ++++++++ .../date-pickers/next-time-picker-zh.json | 63 ++++++++ .../date-pickers/next-time-picker.json | 63 ++++++++ .../single-input-date-range-field-pt.json | 22 +++ .../single-input-date-range-field-zh.json | 22 +++ .../single-input-date-range-field.json | 22 +++ .../static-next-date-picker-pt.json | 53 +++++++ .../static-next-date-picker-zh.json | 53 +++++++ .../date-pickers/static-next-date-picker.json | 53 +++++++ .../static-next-date-range-picker-pt.json | 48 ++++++ .../static-next-date-range-picker-zh.json | 48 ++++++ .../static-next-date-range-picker.json | 48 ++++++ .../static-next-date-time-picker-pt.json | 63 ++++++++ .../static-next-date-time-picker-zh.json | 63 ++++++++ .../static-next-date-time-picker.json | 63 ++++++++ .../static-next-time-picker-pt.json | 41 +++++ .../static-next-time-picker-zh.json | 41 +++++ .../date-pickers/static-next-time-picker.json | 41 +++++ .../api-docs/date-pickers/time-field-pt.json | 25 ++++ .../api-docs/date-pickers/time-field-zh.json | 25 ++++ .../api-docs/date-pickers/time-field.json | 25 ++++ 151 files changed, 6422 insertions(+), 66 deletions(-) create mode 100644 docs/pages/x/api/date-pickers/date-field.js create mode 100644 docs/pages/x/api/date-pickers/date-field.json create mode 100644 docs/pages/x/api/date-pickers/date-time-field.js create mode 100644 docs/pages/x/api/date-pickers/date-time-field.json create mode 100644 docs/pages/x/api/date-pickers/desktop-next-date-picker.js create mode 100644 docs/pages/x/api/date-pickers/desktop-next-date-picker.json create mode 100644 docs/pages/x/api/date-pickers/desktop-next-date-range-picker.js create mode 100644 docs/pages/x/api/date-pickers/desktop-next-date-range-picker.json create mode 100644 docs/pages/x/api/date-pickers/desktop-next-date-time-picker.js create mode 100644 docs/pages/x/api/date-pickers/desktop-next-date-time-picker.json create mode 100644 docs/pages/x/api/date-pickers/desktop-next-time-picker.js create mode 100644 docs/pages/x/api/date-pickers/desktop-next-time-picker.json create mode 100644 docs/pages/x/api/date-pickers/mobile-next-date-picker.js create mode 100644 docs/pages/x/api/date-pickers/mobile-next-date-picker.json create mode 100644 docs/pages/x/api/date-pickers/mobile-next-date-range-picker.js create mode 100644 docs/pages/x/api/date-pickers/mobile-next-date-range-picker.json create mode 100644 docs/pages/x/api/date-pickers/mobile-next-date-time-picker.js create mode 100644 docs/pages/x/api/date-pickers/mobile-next-date-time-picker.json create mode 100644 docs/pages/x/api/date-pickers/mobile-next-time-picker.js create mode 100644 docs/pages/x/api/date-pickers/mobile-next-time-picker.json create mode 100644 docs/pages/x/api/date-pickers/multi-input-date-range-field.js create mode 100644 docs/pages/x/api/date-pickers/multi-input-date-range-field.json create mode 100644 docs/pages/x/api/date-pickers/multi-input-date-time-range-field.js create mode 100644 docs/pages/x/api/date-pickers/multi-input-date-time-range-field.json create mode 100644 docs/pages/x/api/date-pickers/multi-input-time-range-field.js create mode 100644 docs/pages/x/api/date-pickers/multi-input-time-range-field.json create mode 100644 docs/pages/x/api/date-pickers/next-date-picker.js create mode 100644 docs/pages/x/api/date-pickers/next-date-picker.json create mode 100644 docs/pages/x/api/date-pickers/next-date-range-picker.js create mode 100644 docs/pages/x/api/date-pickers/next-date-range-picker.json create mode 100644 docs/pages/x/api/date-pickers/next-date-time-picker.js create mode 100644 docs/pages/x/api/date-pickers/next-date-time-picker.json create mode 100644 docs/pages/x/api/date-pickers/next-time-picker.js create mode 100644 docs/pages/x/api/date-pickers/next-time-picker.json create mode 100644 docs/pages/x/api/date-pickers/single-input-date-range-field.js create mode 100644 docs/pages/x/api/date-pickers/single-input-date-range-field.json create mode 100644 docs/pages/x/api/date-pickers/static-next-date-picker.js create mode 100644 docs/pages/x/api/date-pickers/static-next-date-picker.json create mode 100644 docs/pages/x/api/date-pickers/static-next-date-range-picker.js create mode 100644 docs/pages/x/api/date-pickers/static-next-date-range-picker.json create mode 100644 docs/pages/x/api/date-pickers/static-next-date-time-picker.js create mode 100644 docs/pages/x/api/date-pickers/static-next-date-time-picker.json create mode 100644 docs/pages/x/api/date-pickers/static-next-time-picker.js create mode 100644 docs/pages/x/api/date-pickers/static-next-time-picker.json create mode 100644 docs/pages/x/api/date-pickers/time-field.js create mode 100644 docs/pages/x/api/date-pickers/time-field.json create mode 100644 docs/translations/api-docs/date-pickers/date-field-pt.json create mode 100644 docs/translations/api-docs/date-pickers/date-field-zh.json create mode 100644 docs/translations/api-docs/date-pickers/date-field.json create mode 100644 docs/translations/api-docs/date-pickers/date-time-field-pt.json create mode 100644 docs/translations/api-docs/date-pickers/date-time-field-zh.json create mode 100644 docs/translations/api-docs/date-pickers/date-time-field.json create mode 100644 docs/translations/api-docs/date-pickers/desktop-next-date-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/desktop-next-date-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/desktop-next-date-picker.json create mode 100644 docs/translations/api-docs/date-pickers/desktop-next-date-range-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/desktop-next-date-range-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/desktop-next-date-range-picker.json create mode 100644 docs/translations/api-docs/date-pickers/desktop-next-date-time-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/desktop-next-date-time-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/desktop-next-date-time-picker.json create mode 100644 docs/translations/api-docs/date-pickers/desktop-next-time-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/desktop-next-time-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/desktop-next-time-picker.json create mode 100644 docs/translations/api-docs/date-pickers/mobile-next-date-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/mobile-next-date-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/mobile-next-date-picker.json create mode 100644 docs/translations/api-docs/date-pickers/mobile-next-date-range-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/mobile-next-date-range-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/mobile-next-date-range-picker.json create mode 100644 docs/translations/api-docs/date-pickers/mobile-next-date-time-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/mobile-next-date-time-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/mobile-next-date-time-picker.json create mode 100644 docs/translations/api-docs/date-pickers/mobile-next-time-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/mobile-next-time-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/mobile-next-time-picker.json create mode 100644 docs/translations/api-docs/date-pickers/multi-input-date-range-field-pt.json create mode 100644 docs/translations/api-docs/date-pickers/multi-input-date-range-field-zh.json create mode 100644 docs/translations/api-docs/date-pickers/multi-input-date-range-field.json create mode 100644 docs/translations/api-docs/date-pickers/multi-input-date-time-range-field-pt.json create mode 100644 docs/translations/api-docs/date-pickers/multi-input-date-time-range-field-zh.json create mode 100644 docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json create mode 100644 docs/translations/api-docs/date-pickers/multi-input-time-range-field-pt.json create mode 100644 docs/translations/api-docs/date-pickers/multi-input-time-range-field-zh.json create mode 100644 docs/translations/api-docs/date-pickers/multi-input-time-range-field.json create mode 100644 docs/translations/api-docs/date-pickers/next-date-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/next-date-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/next-date-picker.json create mode 100644 docs/translations/api-docs/date-pickers/next-date-range-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/next-date-range-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/next-date-range-picker.json create mode 100644 docs/translations/api-docs/date-pickers/next-date-time-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/next-date-time-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/next-date-time-picker.json create mode 100644 docs/translations/api-docs/date-pickers/next-time-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/next-time-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/next-time-picker.json create mode 100644 docs/translations/api-docs/date-pickers/single-input-date-range-field-pt.json create mode 100644 docs/translations/api-docs/date-pickers/single-input-date-range-field-zh.json create mode 100644 docs/translations/api-docs/date-pickers/single-input-date-range-field.json create mode 100644 docs/translations/api-docs/date-pickers/static-next-date-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/static-next-date-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/static-next-date-picker.json create mode 100644 docs/translations/api-docs/date-pickers/static-next-date-range-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/static-next-date-range-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/static-next-date-range-picker.json create mode 100644 docs/translations/api-docs/date-pickers/static-next-date-time-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/static-next-date-time-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/static-next-date-time-picker.json create mode 100644 docs/translations/api-docs/date-pickers/static-next-time-picker-pt.json create mode 100644 docs/translations/api-docs/date-pickers/static-next-time-picker-zh.json create mode 100644 docs/translations/api-docs/date-pickers/static-next-time-picker.json create mode 100644 docs/translations/api-docs/date-pickers/time-field-pt.json create mode 100644 docs/translations/api-docs/date-pickers/time-field-zh.json create mode 100644 docs/translations/api-docs/date-pickers/time-field.json diff --git a/docs/pages/x/api/data-grid/data-grid-premium.json b/docs/pages/x/api/data-grid/data-grid-premium.json index ad9b078efd989..cdd6612a7afdb 100644 --- a/docs/pages/x/api/data-grid/data-grid-premium.json +++ b/docs/pages/x/api/data-grid/data-grid-premium.json @@ -458,5 +458,5 @@ "forwardsRefTo": "GridRoot", "filename": "/packages/grid/x-data-grid-premium/src/DataGridPremium/DataGridPremium.tsx", "demos": "", - "packages": ["@mui/x-data-grid-premium"] + "packages": [{ "packageName": "@mui/x-data-grid-premium", "componentName": "DataGridPremium" }] } diff --git a/docs/pages/x/api/data-grid/data-grid-pro.json b/docs/pages/x/api/data-grid/data-grid-pro.json index c9def38a3b456..a5787bca7954e 100644 --- a/docs/pages/x/api/data-grid/data-grid-pro.json +++ b/docs/pages/x/api/data-grid/data-grid-pro.json @@ -436,5 +436,5 @@ "forwardsRefTo": "GridRoot", "filename": "/packages/grid/x-data-grid-pro/src/DataGridPro/DataGridPro.tsx", "demos": "", - "packages": ["@mui/x-data-grid-pro"] + "packages": [{ "packageName": "@mui/x-data-grid-pro", "componentName": "DataGridPro" }] } diff --git a/docs/pages/x/api/data-grid/data-grid.json b/docs/pages/x/api/data-grid/data-grid.json index 54c129a73f855..22d232c4dab30 100644 --- a/docs/pages/x/api/data-grid/data-grid.json +++ b/docs/pages/x/api/data-grid/data-grid.json @@ -380,5 +380,5 @@ "forwardsRefTo": "GridRoot", "filename": "/packages/grid/x-data-grid/src/DataGrid/DataGrid.tsx", "demos": "", - "packages": ["@mui/x-data-grid"] + "packages": [{ "packageName": "@mui/x-data-grid", "componentName": "DataGrid" }] } diff --git a/docs/pages/x/api/data-grid/grid-filter-form.json b/docs/pages/x/api/data-grid/grid-filter-form.json index 6cfc9a39311f7..64e805d97a151 100644 --- a/docs/pages/x/api/data-grid/grid-filter-form.json +++ b/docs/pages/x/api/data-grid/grid-filter-form.json @@ -35,5 +35,9 @@ "forwardsRefTo": "GridRoot", "filename": "/packages/grid/x-data-grid/src/components/panel/filterPanel/GridFilterForm.tsx", "demos": "", - "packages": ["@mui/x-data-grid-premium", "@mui/x-data-grid-pro", "@mui/x-data-grid"] + "packages": [ + { "packageName": "@mui/x-data-grid-premium", "componentName": "GridFilterForm" }, + { "packageName": "@mui/x-data-grid-pro", "componentName": "GridFilterForm" }, + { "packageName": "@mui/x-data-grid", "componentName": "GridFilterForm" } + ] } diff --git a/docs/pages/x/api/data-grid/grid-filter-panel.json b/docs/pages/x/api/data-grid/grid-filter-panel.json index 9e554cad41e23..343841c1dc614 100644 --- a/docs/pages/x/api/data-grid/grid-filter-panel.json +++ b/docs/pages/x/api/data-grid/grid-filter-panel.json @@ -25,5 +25,9 @@ "forwardsRefTo": "GridRoot", "filename": "/packages/grid/x-data-grid/src/components/panel/filterPanel/GridFilterPanel.tsx", "demos": "", - "packages": ["@mui/x-data-grid-premium", "@mui/x-data-grid-pro", "@mui/x-data-grid"] + "packages": [ + { "packageName": "@mui/x-data-grid-premium", "componentName": "GridFilterPanel" }, + { "packageName": "@mui/x-data-grid-pro", "componentName": "GridFilterPanel" }, + { "packageName": "@mui/x-data-grid", "componentName": "GridFilterPanel" } + ] } diff --git a/docs/pages/x/api/date-pickers/date-calendar.json b/docs/pages/x/api/date-pickers/date-calendar.json index 843cc79140b05..c86497b11fa8f 100644 --- a/docs/pages/x/api/date-pickers/date-calendar.json +++ b/docs/pages/x/api/date-pickers/date-calendar.json @@ -79,5 +79,8 @@ }, "filename": "/packages/x-date-pickers/src/DateCalendar/DateCalendar.tsx", "demos": "", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "DateCalendar" }, + { "packageName": "@mui/x-date-pickers", "componentName": "DateCalendar" } + ] } diff --git a/docs/pages/x/api/date-pickers/date-field.js b/docs/pages/x/api/date-pickers/date-field.js new file mode 100644 index 0000000000000..08c26b85d0ad3 --- /dev/null +++ b/docs/pages/x/api/date-pickers/date-field.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './date-field.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/date-field(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/date-field.json b/docs/pages/x/api/date-pickers/date-field.json new file mode 100644 index 0000000000000..1228540360b3d --- /dev/null +++ b/docs/pages/x/api/date-pickers/date-field.json @@ -0,0 +1,35 @@ +{ + "props": { + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "defaultValue": { "type": { "name": "any" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "format": { "type": { "name": "string" } }, + "maxDate": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "onChange": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "readOnly": { "type": { "name": "bool" } }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
| 'hours'
| 'meridiem'
| 'minutes'
| 'month'
| 'seconds'
| 'year'
| number
| { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "shouldDisableMonth": { "type": { "name": "func" } }, + "shouldDisableYear": { "type": { "name": "func" } }, + "value": { "type": { "name": "any" } } + }, + "slots": { "Input": { "default": "TextField", "type": { "name": "elementType" } } }, + "name": "DateField", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiDateField" }, + "filename": "/packages/x-date-pickers/src/DateField/DateField.tsx", + "demos": "", + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "Unstable_DateField" }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_DateField" } + ] +} diff --git a/docs/pages/x/api/date-pickers/date-picker.json b/docs/pages/x/api/date-pickers/date-picker.json index 03e900cd9d175..a857181cc15fe 100644 --- a/docs/pages/x/api/date-pickers/date-picker.json +++ b/docs/pages/x/api/date-pickers/date-picker.json @@ -124,5 +124,8 @@ "filename": "/packages/x-date-pickers/src/DatePicker/DatePicker.tsx", "inheritance": null, "demos": "", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "DatePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "DatePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/date-range-calendar.json b/docs/pages/x/api/date-pickers/date-range-calendar.json index 4503e853cad9d..dbe75c3530a1f 100644 --- a/docs/pages/x/api/date-pickers/date-range-calendar.json +++ b/docs/pages/x/api/date-pickers/date-range-calendar.json @@ -60,5 +60,5 @@ "filename": "/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.tsx", "inheritance": null, "demos": "", - "packages": ["@mui/x-date-pickers-pro"] + "packages": [{ "packageName": "@mui/x-date-pickers-pro", "componentName": "DateRangeCalendar" }] } diff --git a/docs/pages/x/api/date-pickers/date-range-picker-day.json b/docs/pages/x/api/date-pickers/date-range-picker-day.json index 01c2f0201ace7..58e2c5d27a0b9 100644 --- a/docs/pages/x/api/date-pickers/date-range-picker-day.json +++ b/docs/pages/x/api/date-pickers/date-range-picker-day.json @@ -42,5 +42,5 @@ "filename": "/packages/x-date-pickers-pro/src/DateRangePickerDay/DateRangePickerDay.tsx", "inheritance": null, "demos": "", - "packages": ["@mui/x-date-pickers-pro"] + "packages": [{ "packageName": "@mui/x-date-pickers-pro", "componentName": "DateRangePickerDay" }] } diff --git a/docs/pages/x/api/date-pickers/date-range-picker.json b/docs/pages/x/api/date-pickers/date-range-picker.json index f253c1214c752..43c06c207e895 100644 --- a/docs/pages/x/api/date-pickers/date-range-picker.json +++ b/docs/pages/x/api/date-pickers/date-range-picker.json @@ -113,5 +113,5 @@ "filename": "/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePicker.tsx", "inheritance": null, "demos": "", - "packages": ["@mui/x-date-pickers-pro"] + "packages": [{ "packageName": "@mui/x-date-pickers-pro", "componentName": "DateRangePicker" }] } diff --git a/docs/pages/x/api/date-pickers/date-time-field.js b/docs/pages/x/api/date-pickers/date-time-field.js new file mode 100644 index 0000000000000..4aa02e541681e --- /dev/null +++ b/docs/pages/x/api/date-pickers/date-time-field.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './date-time-field.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/date-time-field(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/date-time-field.json b/docs/pages/x/api/date-pickers/date-time-field.json new file mode 100644 index 0000000000000..dca076408ba2c --- /dev/null +++ b/docs/pages/x/api/date-pickers/date-time-field.json @@ -0,0 +1,43 @@ +{ + "props": { + "ampm": { "type": { "name": "bool" }, "default": "`utils.is12HourCycleInCurrentLocale()`" }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "defaultValue": { "type": { "name": "any" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableIgnoringDatePartForTimeValidation": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "format": { "type": { "name": "string" } }, + "maxDate": { "type": { "name": "any" } }, + "maxDateTime": { "type": { "name": "any" } }, + "maxTime": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "minDateTime": { "type": { "name": "any" } }, + "minTime": { "type": { "name": "any" } }, + "minutesStep": { "type": { "name": "number" }, "default": "1" }, + "onChange": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "readOnly": { "type": { "name": "bool" } }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
| 'hours'
| 'meridiem'
| 'minutes'
| 'month'
| 'seconds'
| 'year'
| number
| { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "shouldDisableMonth": { "type": { "name": "func" } }, + "shouldDisableTime": { "type": { "name": "func" } }, + "shouldDisableYear": { "type": { "name": "func" } }, + "value": { "type": { "name": "any" } } + }, + "slots": { "Input": { "default": "TextField", "type": { "name": "elementType" } } }, + "name": "DateTimeField", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiDateTimeField" }, + "filename": "/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx", + "demos": "
    ", + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "Unstable_DateTimeField" }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_DateTimeField" } + ] +} diff --git a/docs/pages/x/api/date-pickers/date-time-picker-tabs.json b/docs/pages/x/api/date-pickers/date-time-picker-tabs.json index 681a327da6c30..f867f8c22a045 100644 --- a/docs/pages/x/api/date-pickers/date-time-picker-tabs.json +++ b/docs/pages/x/api/date-pickers/date-time-picker-tabs.json @@ -21,5 +21,8 @@ "styles": { "classes": ["root"], "globalClasses": {}, "name": "MuiDateTimePickerTabs" }, "filename": "/packages/x-date-pickers/src/DateTimePicker/DateTimePickerTabs.tsx", "demos": "
      ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "DateTimePickerTabs" }, + { "packageName": "@mui/x-date-pickers", "componentName": "DateTimePickerTabs" } + ] } diff --git a/docs/pages/x/api/date-pickers/date-time-picker.json b/docs/pages/x/api/date-pickers/date-time-picker.json index 68bf9dca83422..11b92eaf7d067 100644 --- a/docs/pages/x/api/date-pickers/date-time-picker.json +++ b/docs/pages/x/api/date-pickers/date-time-picker.json @@ -136,5 +136,8 @@ "filename": "/packages/x-date-pickers/src/DateTimePicker/DateTimePicker.tsx", "inheritance": null, "demos": "
        ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "DateTimePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "DateTimePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/day-calendar-skeleton.json b/docs/pages/x/api/date-pickers/day-calendar-skeleton.json index c1a12a2c1f1e8..46a7d730518a3 100644 --- a/docs/pages/x/api/date-pickers/day-calendar-skeleton.json +++ b/docs/pages/x/api/date-pickers/day-calendar-skeleton.json @@ -20,5 +20,8 @@ "filename": "/packages/x-date-pickers/src/DayCalendarSkeleton/DayCalendarSkeleton.tsx", "inheritance": null, "demos": "
          ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "DayCalendarSkeleton" }, + { "packageName": "@mui/x-date-pickers", "componentName": "DayCalendarSkeleton" } + ] } diff --git a/docs/pages/x/api/date-pickers/desktop-date-picker.json b/docs/pages/x/api/date-pickers/desktop-date-picker.json index d6095b16660d3..a15c5d09ad458 100644 --- a/docs/pages/x/api/date-pickers/desktop-date-picker.json +++ b/docs/pages/x/api/date-pickers/desktop-date-picker.json @@ -117,5 +117,8 @@ "filename": "/packages/x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx", "inheritance": null, "demos": "
            ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "DesktopDatePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "DesktopDatePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/desktop-date-range-picker.json b/docs/pages/x/api/date-pickers/desktop-date-range-picker.json index b8fbe1448e701..3d2e2521cd5f2 100644 --- a/docs/pages/x/api/date-pickers/desktop-date-range-picker.json +++ b/docs/pages/x/api/date-pickers/desktop-date-range-picker.json @@ -106,5 +106,7 @@ "filename": "/packages/x-date-pickers-pro/src/DesktopDateRangePicker/DesktopDateRangePicker.tsx", "inheritance": null, "demos": "
              ", - "packages": ["@mui/x-date-pickers-pro"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "DesktopDateRangePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/desktop-date-time-picker.json b/docs/pages/x/api/date-pickers/desktop-date-time-picker.json index b5e2e59f6359e..64e5f2ad06054 100644 --- a/docs/pages/x/api/date-pickers/desktop-date-time-picker.json +++ b/docs/pages/x/api/date-pickers/desktop-date-time-picker.json @@ -129,5 +129,8 @@ "filename": "/packages/x-date-pickers/src/DesktopDateTimePicker/DesktopDateTimePicker.tsx", "inheritance": null, "demos": "
                ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "DesktopDateTimePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "DesktopDateTimePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/desktop-next-date-picker.js b/docs/pages/x/api/date-pickers/desktop-next-date-picker.js new file mode 100644 index 0000000000000..4b91c68cf9654 --- /dev/null +++ b/docs/pages/x/api/date-pickers/desktop-next-date-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './desktop-next-date-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/desktop-next-date-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/desktop-next-date-picker.json b/docs/pages/x/api/date-pickers/desktop-next-date-picker.json new file mode 100644 index 0000000000000..78c046a444d5c --- /dev/null +++ b/docs/pages/x/api/date-pickers/desktop-next-date-picker.json @@ -0,0 +1,123 @@ +{ + "props": { + "className": { "type": { "name": "string" } }, + "closeOnSelect": { + "type": { "name": "bool" }, + "default": "`true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)." + }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "dayOfWeekFormatter": { + "type": { "name": "func" }, + "default": "(day) => day.charAt(0).toUpperCase()" + }, + "defaultCalendarMonth": { "type": { "name": "any" } }, + "defaultValue": { "type": { "name": "any" } }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableHighlightToday": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "displayWeekNumber": { "type": { "name": "bool" } }, + "fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" }, + "format": { "type": { "name": "string" } }, + "inputRef": { + "type": { "name": "union", "description": "func
                | { current?: object }" } + }, + "label": { "type": { "name": "node" } }, + "loading": { "type": { "name": "bool" } }, + "localeText": { "type": { "name": "object" } }, + "maxDate": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onMonthChange": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "onViewChange": { "type": { "name": "func" } }, + "onYearChange": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "openTo": { + "type": { + "name": "enum", + "description": "'day'
                | 'month'
                | 'year'" + } + }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
                | 'portrait'" } + }, + "reduceAnimations": { + "type": { "name": "bool" }, + "default": "typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)" + }, + "renderLoading": { + "type": { "name": "func" }, + "default": "() => ..." + }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                | 'hours'
                | 'meridiem'
                | 'minutes'
                | 'month'
                | 'seconds'
                | 'year'
                | number
                | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "shouldDisableMonth": { "type": { "name": "func" } }, + "shouldDisableYear": { "type": { "name": "func" } }, + "showDaysOutsideCurrentMonth": { "type": { "name": "bool" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                | object
                | bool>
                | func
                | object" + } + }, + "value": { "type": { "name": "any" } }, + "views": { + "type": { + "name": "arrayOf", + "description": "Array<'day'
                | 'month'
                | 'year'>" + } + } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "Day": { "default": "PickersDay", "type": { "name": "elementType" } }, + "DesktopPaper": { "default": "PickersPopperPaper", "type": { "name": "elementType" } }, + "DesktopTransition": { + "default": "Grow from @mui/material", + "type": { "name": "elementType" } + }, + "DesktopTrapFocus": { + "default": "TrapFocus from @mui/material", + "type": { "name": "elementType" } + }, + "Field": { "type": { "name": "elementType" } }, + "Input": { "default": "TextField", "type": { "name": "elementType" } }, + "InputAdornment": { "default": "InputAdornment", "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "OpenPickerButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "OpenPickerIcon": { "type": { "name": "elementType" } }, + "PaperContent": { "default": "React.Fragment", "type": { "name": "elementType" } }, + "Popper": { "default": "Popper from @mui/material", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "SwitchViewButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "SwitchViewIcon": { "default": "ArrowDropDown", "type": { "name": "elementType" } }, + "Toolbar": { "default": "DatePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "DesktopNextDatePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiDesktopNextDatePicker" }, + "filename": "/packages/x-date-pickers/src/DesktopNextDatePicker/DesktopNextDatePicker.tsx", + "inheritance": null, + "demos": "
                  ", + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "Unstable_DesktopNextDatePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_DesktopNextDatePicker" } + ] +} diff --git a/docs/pages/x/api/date-pickers/desktop-next-date-range-picker.js b/docs/pages/x/api/date-pickers/desktop-next-date-range-picker.js new file mode 100644 index 0000000000000..85f299c0ca8ef --- /dev/null +++ b/docs/pages/x/api/date-pickers/desktop-next-date-range-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './desktop-next-date-range-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/desktop-next-date-range-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/desktop-next-date-range-picker.json b/docs/pages/x/api/date-pickers/desktop-next-date-range-picker.json new file mode 100644 index 0000000000000..f9313aa1beee5 --- /dev/null +++ b/docs/pages/x/api/date-pickers/desktop-next-date-range-picker.json @@ -0,0 +1,105 @@ +{ + "props": { + "calendars": { + "type": { "name": "enum", "description": "1
                  | 2
                  | 3" }, + "default": "2" + }, + "className": { "type": { "name": "string" } }, + "closeOnSelect": { + "type": { "name": "bool" }, + "default": "`true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)." + }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "dayOfWeekFormatter": { + "type": { "name": "func" }, + "default": "(day) => day.charAt(0).toUpperCase()" + }, + "defaultCalendarMonth": { "type": { "name": "any" } }, + "defaultValue": { "type": { "name": "arrayOf", "description": "Array<any>" } }, + "disableAutoMonthSwitching": { "type": { "name": "bool" } }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableHighlightToday": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "displayWeekNumber": { "type": { "name": "bool" } }, + "fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" }, + "format": { "type": { "name": "string" } }, + "loading": { "type": { "name": "bool" } }, + "localeText": { "type": { "name": "object" } }, + "maxDate": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onMonthChange": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "reduceAnimations": { + "type": { "name": "bool" }, + "default": "typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)" + }, + "renderLoading": { "type": { "name": "func" }, "default": "() => \"...\"" }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                  | 'hours'
                  | 'meridiem'
                  | 'minutes'
                  | 'month'
                  | 'seconds'
                  | 'year'
                  | number
                  | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "showDaysOutsideCurrentMonth": { "type": { "name": "bool" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                  | object
                  | bool>
                  | func
                  | object" + } + }, + "value": { "type": { "name": "arrayOf", "description": "Array<any>" } } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "Day": { "default": "DateRangePickersDay", "type": { "name": "elementType" } }, + "DesktopPaper": { "default": "PickersPopperPaper", "type": { "name": "elementType" } }, + "DesktopTransition": { + "default": "Grow from @mui/material", + "type": { "name": "elementType" } + }, + "DesktopTrapFocus": { + "default": "TrapFocus from @mui/material", + "type": { "name": "elementType" } + }, + "Field": { "type": { "name": "elementType" } }, + "FieldRoot": { "type": { "name": "elementType" } }, + "FieldSeparator": { "type": { "name": "elementType" } }, + "Input": { "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "PaperContent": { "default": "React.Fragment", "type": { "name": "elementType" } }, + "Popper": { "default": "Popper from @mui/material", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "SwitchViewButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "SwitchViewIcon": { "default": "ArrowDropDown", "type": { "name": "elementType" } }, + "Toolbar": { "default": "DateTimePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "DesktopNextDateRangePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiDesktopNextDateRangePicker" }, + "spread": false, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/x-date-pickers-pro/src/DesktopNextDateRangePicker/DesktopNextDateRangePicker.tsx", + "inheritance": null, + "demos": "
                    ", + "packages": [ + { + "packageName": "@mui/x-date-pickers-pro", + "componentName": "Unstable_DesktopNextDateRangePicker" + } + ] +} diff --git a/docs/pages/x/api/date-pickers/desktop-next-date-time-picker.js b/docs/pages/x/api/date-pickers/desktop-next-date-time-picker.js new file mode 100644 index 0000000000000..4ae7dd03ecbf0 --- /dev/null +++ b/docs/pages/x/api/date-pickers/desktop-next-date-time-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './desktop-next-date-time-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/desktop-next-date-time-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/desktop-next-date-time-picker.json b/docs/pages/x/api/date-pickers/desktop-next-date-time-picker.json new file mode 100644 index 0000000000000..2a89e862b4c35 --- /dev/null +++ b/docs/pages/x/api/date-pickers/desktop-next-date-time-picker.json @@ -0,0 +1,136 @@ +{ + "props": { + "ampm": { "type": { "name": "bool" }, "default": "`utils.is12HourCycleInCurrentLocale()`" }, + "ampmInClock": { "type": { "name": "bool" } }, + "className": { "type": { "name": "string" } }, + "closeOnSelect": { + "type": { "name": "bool" }, + "default": "`true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)." + }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "dayOfWeekFormatter": { + "type": { "name": "func" }, + "default": "(day) => day.charAt(0).toUpperCase()" + }, + "defaultCalendarMonth": { "type": { "name": "any" } }, + "defaultValue": { "type": { "name": "any" } }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableHighlightToday": { "type": { "name": "bool" } }, + "disableIgnoringDatePartForTimeValidation": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "displayWeekNumber": { "type": { "name": "bool" } }, + "fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" }, + "format": { "type": { "name": "string" } }, + "inputRef": { + "type": { "name": "union", "description": "func
                    | { current?: object }" } + }, + "label": { "type": { "name": "node" } }, + "loading": { "type": { "name": "bool" } }, + "localeText": { "type": { "name": "object" } }, + "maxDate": { "type": { "name": "any" } }, + "maxDateTime": { "type": { "name": "any" } }, + "maxTime": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "minDateTime": { "type": { "name": "any" } }, + "minTime": { "type": { "name": "any" } }, + "minutesStep": { "type": { "name": "number" }, "default": "1" }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onMonthChange": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "onViewChange": { "type": { "name": "func" } }, + "onYearChange": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "openTo": { + "type": { + "name": "enum", + "description": "'day'
                    | 'hours'
                    | 'minutes'
                    | 'month'
                    | 'seconds'
                    | 'year'" + } + }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
                    | 'portrait'" } + }, + "reduceAnimations": { + "type": { "name": "bool" }, + "default": "typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)" + }, + "renderLoading": { + "type": { "name": "func" }, + "default": "() => ..." + }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                    | 'hours'
                    | 'meridiem'
                    | 'minutes'
                    | 'month'
                    | 'seconds'
                    | 'year'
                    | number
                    | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "shouldDisableMonth": { "type": { "name": "func" } }, + "shouldDisableTime": { "type": { "name": "func" } }, + "shouldDisableYear": { "type": { "name": "func" } }, + "showDaysOutsideCurrentMonth": { "type": { "name": "bool" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                    | object
                    | bool>
                    | func
                    | object" + } + }, + "value": { "type": { "name": "any" } }, + "views": { + "type": { + "name": "arrayOf", + "description": "Array<'day'
                    | 'hours'
                    | 'minutes'
                    | 'month'
                    | 'seconds'
                    | 'year'>" + } + } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "Day": { "default": "PickersDay", "type": { "name": "elementType" } }, + "DesktopPaper": { "default": "PickersPopperPaper", "type": { "name": "elementType" } }, + "DesktopTransition": { + "default": "Grow from @mui/material", + "type": { "name": "elementType" } + }, + "DesktopTrapFocus": { + "default": "TrapFocus from @mui/material", + "type": { "name": "elementType" } + }, + "Field": { "type": { "name": "elementType" } }, + "Input": { "default": "TextField", "type": { "name": "elementType" } }, + "InputAdornment": { "default": "InputAdornment", "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "OpenPickerButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "OpenPickerIcon": { "type": { "name": "elementType" } }, + "PaperContent": { "default": "React.Fragment", "type": { "name": "elementType" } }, + "Popper": { "default": "Popper from @mui/material", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "SwitchViewButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "SwitchViewIcon": { "default": "ArrowDropDown", "type": { "name": "elementType" } }, + "Tabs": { "default": "DateTimePickerTabs", "type": { "name": "elementType" } }, + "Toolbar": { "default": "DateTimePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "DesktopNextDateTimePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiDesktopNextDateTimePicker" }, + "filename": "/packages/x-date-pickers/src/DesktopNextDateTimePicker/DesktopNextDateTimePicker.tsx", + "inheritance": null, + "demos": "
                      ", + "packages": [ + { + "packageName": "@mui/x-date-pickers-pro", + "componentName": "Unstable_DesktopNextDateTimePicker" + }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_DesktopNextDateTimePicker" } + ] +} diff --git a/docs/pages/x/api/date-pickers/desktop-next-time-picker.js b/docs/pages/x/api/date-pickers/desktop-next-time-picker.js new file mode 100644 index 0000000000000..fb7628bcfb569 --- /dev/null +++ b/docs/pages/x/api/date-pickers/desktop-next-time-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './desktop-next-time-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/desktop-next-time-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/desktop-next-time-picker.json b/docs/pages/x/api/date-pickers/desktop-next-time-picker.json new file mode 100644 index 0000000000000..cde4b40562e28 --- /dev/null +++ b/docs/pages/x/api/date-pickers/desktop-next-time-picker.json @@ -0,0 +1,104 @@ +{ + "props": { + "ampm": { "type": { "name": "bool" }, "default": "`utils.is12HourCycleInCurrentLocale()`" }, + "ampmInClock": { "type": { "name": "bool" } }, + "className": { "type": { "name": "string" } }, + "closeOnSelect": { + "type": { "name": "bool" }, + "default": "`true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)." + }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "defaultValue": { "type": { "name": "any" } }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableIgnoringDatePartForTimeValidation": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "format": { "type": { "name": "string" } }, + "inputRef": { + "type": { "name": "union", "description": "func
                      | { current?: object }" } + }, + "label": { "type": { "name": "node" } }, + "localeText": { "type": { "name": "object" } }, + "maxTime": { "type": { "name": "any" } }, + "minTime": { "type": { "name": "any" } }, + "minutesStep": { "type": { "name": "number" }, "default": "1" }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "onViewChange": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "openTo": { + "type": { + "name": "enum", + "description": "'hours'
                      | 'minutes'
                      | 'seconds'" + } + }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
                      | 'portrait'" } + }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                      | 'hours'
                      | 'meridiem'
                      | 'minutes'
                      | 'month'
                      | 'seconds'
                      | 'year'
                      | number
                      | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableTime": { "type": { "name": "func" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                      | object
                      | bool>
                      | func
                      | object" + } + }, + "value": { "type": { "name": "any" } }, + "views": { + "type": { + "name": "arrayOf", + "description": "Array<'hours'
                      | 'minutes'
                      | 'seconds'>" + } + } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "DesktopPaper": { "default": "PickersPopperPaper", "type": { "name": "elementType" } }, + "DesktopTransition": { + "default": "Grow from @mui/material", + "type": { "name": "elementType" } + }, + "DesktopTrapFocus": { + "default": "TrapFocus from @mui/material", + "type": { "name": "elementType" } + }, + "Field": { "type": { "name": "elementType" } }, + "Input": { "default": "TextField", "type": { "name": "elementType" } }, + "InputAdornment": { "default": "InputAdornment", "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "OpenPickerButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "OpenPickerIcon": { "type": { "name": "elementType" } }, + "PaperContent": { "default": "React.Fragment", "type": { "name": "elementType" } }, + "Popper": { "default": "Popper from @mui/material", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "Toolbar": { "default": "TimePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "DesktopNextTimePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiDesktopNextTimePicker" }, + "spread": false, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/x-date-pickers/src/DesktopNextTimePicker/DesktopNextTimePicker.tsx", + "inheritance": null, + "demos": "
                        ", + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "Unstable_DesktopNextTimePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_DesktopNextTimePicker" } + ] +} diff --git a/docs/pages/x/api/date-pickers/desktop-time-picker.json b/docs/pages/x/api/date-pickers/desktop-time-picker.json index e91333a768cfa..7d0c1834db597 100644 --- a/docs/pages/x/api/date-pickers/desktop-time-picker.json +++ b/docs/pages/x/api/date-pickers/desktop-time-picker.json @@ -92,5 +92,8 @@ "filename": "/packages/x-date-pickers/src/DesktopTimePicker/DesktopTimePicker.tsx", "inheritance": null, "demos": "
                          ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "DesktopTimePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "DesktopTimePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/index.md b/docs/pages/x/api/date-pickers/index.md index eee47331d413d..a3037a289e25a 100644 --- a/docs/pages/x/api/date-pickers/index.md +++ b/docs/pages/x/api/date-pickers/index.md @@ -4,27 +4,91 @@ ## Components -- [DateCalendar](/x/api/date-pickers/date-calendar/) +### Pickers + +#### Date Pickers + +- [NextDatePicker](/x/api/date-pickers/next-date-picker/) +- [DesktopNextDatePicker](/x/api/date-pickers/desktop-next-date-picker/) +- [MobileNextDatePicker](/x/api/date-pickers/mobile-next-date-picker/) +- [StaticNextDatePicker](/x/api/date-pickers/static-next-date-picker/) + +#### Time Pickers + +- [NextTimePicker](/x/api/date-pickers/next-time-picker/) +- [DesktopNextTimePicker](/x/api/date-pickers/desktop-next-time-picker/) +- [MobileNextTimePicker](/x/api/date-pickers/mobile-next-time-picker/) +- [StaticNextTimePicker](/x/api/date-pickers/static-next-time-picker/) + +#### Date Time Pickers + +- [NextDateTimePicker](/x/api/date-pickers/next-date-time-picker/) +- [DesktopNextDateTimePicker](/x/api/date-pickers/desktop-next-date-time-picker/) +- [MobileNextDateTimePicker](/x/api/date-pickers/mobile-next-date-time-picker/) +- [StaticNextDateTimePicker](/x/api/date-pickers/static-next-date-time-picker/) + +#### Date Range Pickers + +- [NextDateRangePicker](/x/api/date-pickers/next-date-range-picker/) +- [DesktopNextDateRangePicker](/x/api/date-pickers/desktop-next-date-range-picker/) +- [MobileNextDateRangePicker](/x/api/date-pickers/mobile-next-date-range-picker/) +- [StaticNextDateRangePicker](/x/api/date-pickers/static-next-date-range-picker/) + +### Pickers (legacy) + +#### Date Pickers + - [DatePicker](/x/api/date-pickers/date-picker/) -- [DateRangePicker](/x/api/date-pickers/date-range-picker/) -- [DateRangePickerDay](/x/api/date-pickers/date-range-picker-day/) -- [DateTimePicker](/x/api/date-pickers/date-time-picker/) -- [DayCalendarSkeleton](/x/api/date-pickers/day-calendar-skeleton/) - [DesktopDatePicker](/x/api/date-pickers/desktop-date-picker/) -- [DesktopDateRangePicker](/x/api/date-pickers/desktop-date-range-picker/) -- [DesktopDateTimePicker](/x/api/date-pickers/desktop-date-time-picker/) -- [DesktopTimePicker](/x/api/date-pickers/desktop-time-picker/) -- [LocalizationProvider](/x/api/date-pickers/localization-provider/) - [MobileDatePicker](/x/api/date-pickers/mobile-date-picker/) -- [MobileDateRangePicker](/x/api/date-pickers/mobile-date-range-picker/) -- [MobileDateTimePicker](/x/api/date-pickers/mobile-date-time-picker/) -- [MobileTimePicker](/x/api/date-pickers/mobile-time-picker/) -- [MonthCalendar](/x/api/date-pickers/month-calendar/) -- [PickersDay](/x/api/date-pickers/pickers-day/) - [StaticDatePicker](/x/api/date-pickers/static-date-picker/) -- [StaticDateRangePicker](/x/api/date-pickers/static-date-range-picker/) -- [StaticDateTimePicker](/x/api/date-pickers/static-date-time-picker/) -- [StaticTimePicker](/x/api/date-pickers/static-time-picker/) -- [TimeClock](/x/api/date-pickers/time-clock/) + +#### Time Pickers + - [TimePicker](/x/api/date-pickers/time-picker/) +- [DesktopTimePicker](/x/api/date-pickers/desktop-time-picker/) +- [MobileTimePicker](/x/api/date-pickers/mobile-time-picker/) +- [StaticTimePicker](/x/api/date-pickers/static-time-picker/) + +#### Date Time Pickers + +- [DateTimePicker](/x/api/date-pickers/date-time-picker/) +- [DesktopDateTimePicker](/x/api/date-pickers/desktop-date-time-picker/) +- [MobileDateTimePicker](/x/api/date-pickers/mobile-date-time-picker/) +- [StaticDateTimePicker](/x/api/date-pickers/static-date-time-picker/) + +#### Date Range Pickers + +- [DateRangePicker](/x/api/date-pickers/date-range-picker/) +- [DesktopDateRangePicker](/x/api/date-pickers/desktop-date-range-picker/) +- [MobileDateRangePicker](/x/api/date-pickers/mobile-date-range-picker/) +- [StaticDateRangePicker](/x/api/date-pickers/static-date-range-picker/) + +### Fields + +- [DateField](/x/api/date-pickers/date-field/) +- [TimeField](/x/api/date-pickers/time-field/) +- [DateTimeField](/x/api/date-pickers/date-time-field/) +- [MultiInputDateRangeField](/x/api/date-pickers/multi-input-date-range-field/) +- [SingleInputDateRangeField](/x/api/date-pickers/single-input-date-range-field/) +- [MultiInputTimeRangeField](/x/api/date-pickers/multi-input-time-range-field/) +- [SingleInputTimeRangeField](/x/api/date-pickers/single-input-time-range-field/) +- [SingleInputDateTimeRangeField](/x/api/date-pickers/single-input-date-time-range-field/) +- [MultiInputDateTimeRangeField](/x/api/date-pickers/multi-input-date-time-range-field/) + +### Calendars + +- [DateCalendar](/x/api/date-pickers/date-calendar/) +- [MonthCalendar](/x/api/date-pickers/month-calendar/) - [YearCalendar](/x/api/date-pickers/year-calendar/) + +### Clocks + +- [TimeClock](/x/api/date-pickers/time-clock/) + +### Others + +- [DateRangePickerDay](/x/api/date-pickers/date-range-picker-day/) +- [DayCalendarSkeleton](/x/api/date-pickers/day-calendar-skeleton/) +- [LocalizationProvider](/x/api/date-pickers/localization-provider/) +- [PickersDay](/x/api/date-pickers/pickers-day/) diff --git a/docs/pages/x/api/date-pickers/localization-provider.json b/docs/pages/x/api/date-pickers/localization-provider.json index a912f1a43f7a7..e2690a68d1f9a 100644 --- a/docs/pages/x/api/date-pickers/localization-provider.json +++ b/docs/pages/x/api/date-pickers/localization-provider.json @@ -17,5 +17,8 @@ "filename": "/packages/x-date-pickers/src/LocalizationProvider/LocalizationProvider.tsx", "inheritance": null, "demos": "
                            ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "LocalizationProvider" }, + { "packageName": "@mui/x-date-pickers", "componentName": "LocalizationProvider" } + ] } diff --git a/docs/pages/x/api/date-pickers/mobile-date-picker.json b/docs/pages/x/api/date-pickers/mobile-date-picker.json index b56dfdfe04d6a..bd91695fec6f6 100644 --- a/docs/pages/x/api/date-pickers/mobile-date-picker.json +++ b/docs/pages/x/api/date-pickers/mobile-date-picker.json @@ -109,5 +109,8 @@ "filename": "/packages/x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx", "inheritance": null, "demos": "
                              ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "MobileDatePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "MobileDatePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/mobile-date-range-picker.json b/docs/pages/x/api/date-pickers/mobile-date-range-picker.json index a2463fa03e65a..ed81c7aca6db9 100644 --- a/docs/pages/x/api/date-pickers/mobile-date-range-picker.json +++ b/docs/pages/x/api/date-pickers/mobile-date-range-picker.json @@ -98,5 +98,7 @@ "filename": "/packages/x-date-pickers-pro/src/MobileDateRangePicker/MobileDateRangePicker.tsx", "inheritance": null, "demos": "
                                ", - "packages": ["@mui/x-date-pickers-pro"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "MobileDateRangePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/mobile-date-time-picker.json b/docs/pages/x/api/date-pickers/mobile-date-time-picker.json index 5ceb69c0e05b0..707e10af9d7d4 100644 --- a/docs/pages/x/api/date-pickers/mobile-date-time-picker.json +++ b/docs/pages/x/api/date-pickers/mobile-date-time-picker.json @@ -121,5 +121,8 @@ "filename": "/packages/x-date-pickers/src/MobileDateTimePicker/MobileDateTimePicker.tsx", "inheritance": null, "demos": "
                                  ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "MobileDateTimePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "MobileDateTimePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/mobile-next-date-picker.js b/docs/pages/x/api/date-pickers/mobile-next-date-picker.js new file mode 100644 index 0000000000000..a4cd844be9482 --- /dev/null +++ b/docs/pages/x/api/date-pickers/mobile-next-date-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './mobile-next-date-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/mobile-next-date-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/mobile-next-date-picker.json b/docs/pages/x/api/date-pickers/mobile-next-date-picker.json new file mode 100644 index 0000000000000..4ac4551ec16d6 --- /dev/null +++ b/docs/pages/x/api/date-pickers/mobile-next-date-picker.json @@ -0,0 +1,112 @@ +{ + "props": { + "className": { "type": { "name": "string" } }, + "closeOnSelect": { + "type": { "name": "bool" }, + "default": "`true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)." + }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "dayOfWeekFormatter": { + "type": { "name": "func" }, + "default": "(day) => day.charAt(0).toUpperCase()" + }, + "defaultCalendarMonth": { "type": { "name": "any" } }, + "defaultValue": { "type": { "name": "any" } }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableHighlightToday": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "displayWeekNumber": { "type": { "name": "bool" } }, + "fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" }, + "format": { "type": { "name": "string" } }, + "inputRef": { + "type": { "name": "union", "description": "func
                                  | { current?: object }" } + }, + "label": { "type": { "name": "node" } }, + "loading": { "type": { "name": "bool" } }, + "localeText": { "type": { "name": "object" } }, + "maxDate": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onMonthChange": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "onViewChange": { "type": { "name": "func" } }, + "onYearChange": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "openTo": { + "type": { + "name": "enum", + "description": "'day'
                                  | 'month'
                                  | 'year'" + } + }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
                                  | 'portrait'" } + }, + "reduceAnimations": { + "type": { "name": "bool" }, + "default": "typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)" + }, + "renderLoading": { + "type": { "name": "func" }, + "default": "() => ..." + }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                                  | 'hours'
                                  | 'meridiem'
                                  | 'minutes'
                                  | 'month'
                                  | 'seconds'
                                  | 'year'
                                  | number
                                  | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "shouldDisableMonth": { "type": { "name": "func" } }, + "shouldDisableYear": { "type": { "name": "func" } }, + "showDaysOutsideCurrentMonth": { "type": { "name": "bool" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                                  | object
                                  | bool>
                                  | func
                                  | object" + } + }, + "value": { "type": { "name": "any" } }, + "views": { + "type": { + "name": "arrayOf", + "description": "Array<'day'
                                  | 'month'
                                  | 'year'>" + } + } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "Day": { "default": "PickersDay", "type": { "name": "elementType" } }, + "Dialog": { "default": "PickersModalDialogRoot", "type": { "name": "elementType" } }, + "Field": { "type": { "name": "elementType" } }, + "Input": { "default": "TextField", "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "MobilePaper": { "default": "Paper from @mui/material", "type": { "name": "elementType" } }, + "MobileTransition": { "default": "Fade from @mui/material", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "SwitchViewButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "SwitchViewIcon": { "default": "ArrowDropDown", "type": { "name": "elementType" } }, + "Toolbar": { "default": "DatePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "MobileNextDatePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiMobileNextDatePicker" }, + "filename": "/packages/x-date-pickers/src/MobileNextDatePicker/MobileNextDatePicker.tsx", + "inheritance": null, + "demos": "
                                    ", + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "Unstable_MobileNextDatePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_MobileNextDatePicker" } + ] +} diff --git a/docs/pages/x/api/date-pickers/mobile-next-date-range-picker.js b/docs/pages/x/api/date-pickers/mobile-next-date-range-picker.js new file mode 100644 index 0000000000000..1f299cbd65c7e --- /dev/null +++ b/docs/pages/x/api/date-pickers/mobile-next-date-range-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './mobile-next-date-range-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/mobile-next-date-range-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/mobile-next-date-range-picker.json b/docs/pages/x/api/date-pickers/mobile-next-date-range-picker.json new file mode 100644 index 0000000000000..d003299e2ef1c --- /dev/null +++ b/docs/pages/x/api/date-pickers/mobile-next-date-range-picker.json @@ -0,0 +1,97 @@ +{ + "props": { + "calendars": { + "type": { "name": "enum", "description": "1
                                    | 2
                                    | 3" }, + "default": "2" + }, + "className": { "type": { "name": "string" } }, + "closeOnSelect": { + "type": { "name": "bool" }, + "default": "`true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)." + }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "dayOfWeekFormatter": { + "type": { "name": "func" }, + "default": "(day) => day.charAt(0).toUpperCase()" + }, + "defaultCalendarMonth": { "type": { "name": "any" } }, + "defaultValue": { "type": { "name": "arrayOf", "description": "Array<any>" } }, + "disableAutoMonthSwitching": { "type": { "name": "bool" } }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableHighlightToday": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "displayWeekNumber": { "type": { "name": "bool" } }, + "fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" }, + "format": { "type": { "name": "string" } }, + "loading": { "type": { "name": "bool" } }, + "localeText": { "type": { "name": "object" } }, + "maxDate": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onMonthChange": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "reduceAnimations": { + "type": { "name": "bool" }, + "default": "typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)" + }, + "renderLoading": { "type": { "name": "func" }, "default": "() => \"...\"" }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                                    | 'hours'
                                    | 'meridiem'
                                    | 'minutes'
                                    | 'month'
                                    | 'seconds'
                                    | 'year'
                                    | number
                                    | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "showDaysOutsideCurrentMonth": { "type": { "name": "bool" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                                    | object
                                    | bool>
                                    | func
                                    | object" + } + }, + "value": { "type": { "name": "arrayOf", "description": "Array<any>" } } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "Day": { "default": "DateRangePickersDay", "type": { "name": "elementType" } }, + "Dialog": { "default": "PickersModalDialogRoot", "type": { "name": "elementType" } }, + "Field": { "type": { "name": "elementType" } }, + "FieldRoot": { "type": { "name": "elementType" } }, + "FieldSeparator": { "type": { "name": "elementType" } }, + "Input": { "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "MobilePaper": { "default": "Paper from @mui/material", "type": { "name": "elementType" } }, + "MobileTransition": { "default": "Fade from @mui/material", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "SwitchViewButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "SwitchViewIcon": { "default": "ArrowDropDown", "type": { "name": "elementType" } }, + "Toolbar": { "default": "DateTimePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "MobileNextDateRangePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiMobileNextDateRangePicker" }, + "spread": false, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/x-date-pickers-pro/src/MobileNextDateRangePicker/MobileNextDateRangePicker.tsx", + "inheritance": null, + "demos": "
                                      ", + "packages": [ + { + "packageName": "@mui/x-date-pickers-pro", + "componentName": "Unstable_MobileNextDateRangePicker" + } + ] +} diff --git a/docs/pages/x/api/date-pickers/mobile-next-date-time-picker.js b/docs/pages/x/api/date-pickers/mobile-next-date-time-picker.js new file mode 100644 index 0000000000000..6be8b9d694b5e --- /dev/null +++ b/docs/pages/x/api/date-pickers/mobile-next-date-time-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './mobile-next-date-time-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/mobile-next-date-time-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/mobile-next-date-time-picker.json b/docs/pages/x/api/date-pickers/mobile-next-date-time-picker.json new file mode 100644 index 0000000000000..5715e839d682e --- /dev/null +++ b/docs/pages/x/api/date-pickers/mobile-next-date-time-picker.json @@ -0,0 +1,125 @@ +{ + "props": { + "ampm": { "type": { "name": "bool" }, "default": "`utils.is12HourCycleInCurrentLocale()`" }, + "ampmInClock": { "type": { "name": "bool" } }, + "className": { "type": { "name": "string" } }, + "closeOnSelect": { + "type": { "name": "bool" }, + "default": "`true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)." + }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "dayOfWeekFormatter": { + "type": { "name": "func" }, + "default": "(day) => day.charAt(0).toUpperCase()" + }, + "defaultCalendarMonth": { "type": { "name": "any" } }, + "defaultValue": { "type": { "name": "any" } }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableHighlightToday": { "type": { "name": "bool" } }, + "disableIgnoringDatePartForTimeValidation": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "displayWeekNumber": { "type": { "name": "bool" } }, + "fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" }, + "format": { "type": { "name": "string" } }, + "inputRef": { + "type": { "name": "union", "description": "func
                                      | { current?: object }" } + }, + "label": { "type": { "name": "node" } }, + "loading": { "type": { "name": "bool" } }, + "localeText": { "type": { "name": "object" } }, + "maxDate": { "type": { "name": "any" } }, + "maxDateTime": { "type": { "name": "any" } }, + "maxTime": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "minDateTime": { "type": { "name": "any" } }, + "minTime": { "type": { "name": "any" } }, + "minutesStep": { "type": { "name": "number" }, "default": "1" }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onMonthChange": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "onViewChange": { "type": { "name": "func" } }, + "onYearChange": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "openTo": { + "type": { + "name": "enum", + "description": "'day'
                                      | 'hours'
                                      | 'minutes'
                                      | 'month'
                                      | 'seconds'
                                      | 'year'" + } + }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
                                      | 'portrait'" } + }, + "reduceAnimations": { + "type": { "name": "bool" }, + "default": "typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)" + }, + "renderLoading": { + "type": { "name": "func" }, + "default": "() => ..." + }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                                      | 'hours'
                                      | 'meridiem'
                                      | 'minutes'
                                      | 'month'
                                      | 'seconds'
                                      | 'year'
                                      | number
                                      | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "shouldDisableMonth": { "type": { "name": "func" } }, + "shouldDisableTime": { "type": { "name": "func" } }, + "shouldDisableYear": { "type": { "name": "func" } }, + "showDaysOutsideCurrentMonth": { "type": { "name": "bool" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                                      | object
                                      | bool>
                                      | func
                                      | object" + } + }, + "value": { "type": { "name": "any" } }, + "views": { + "type": { + "name": "arrayOf", + "description": "Array<'day'
                                      | 'hours'
                                      | 'minutes'
                                      | 'month'
                                      | 'seconds'
                                      | 'year'>" + } + } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "Day": { "default": "PickersDay", "type": { "name": "elementType" } }, + "Dialog": { "default": "PickersModalDialogRoot", "type": { "name": "elementType" } }, + "Field": { "type": { "name": "elementType" } }, + "Input": { "default": "TextField", "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "MobilePaper": { "default": "Paper from @mui/material", "type": { "name": "elementType" } }, + "MobileTransition": { "default": "Fade from @mui/material", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "SwitchViewButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "SwitchViewIcon": { "default": "ArrowDropDown", "type": { "name": "elementType" } }, + "Tabs": { "default": "DateTimePickerTabs", "type": { "name": "elementType" } }, + "Toolbar": { "default": "DateTimePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "MobileNextDateTimePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiMobileNextDateTimePicker" }, + "filename": "/packages/x-date-pickers/src/MobileNextDateTimePicker/MobileNextDateTimePicker.tsx", + "inheritance": null, + "demos": "
                                        ", + "packages": [ + { + "packageName": "@mui/x-date-pickers-pro", + "componentName": "Unstable_MobileNextDateTimePicker" + }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_MobileNextDateTimePicker" } + ] +} diff --git a/docs/pages/x/api/date-pickers/mobile-next-time-picker.js b/docs/pages/x/api/date-pickers/mobile-next-time-picker.js new file mode 100644 index 0000000000000..bf984f731667c --- /dev/null +++ b/docs/pages/x/api/date-pickers/mobile-next-time-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './mobile-next-time-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/mobile-next-time-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/mobile-next-time-picker.json b/docs/pages/x/api/date-pickers/mobile-next-time-picker.json new file mode 100644 index 0000000000000..f61db03fcc024 --- /dev/null +++ b/docs/pages/x/api/date-pickers/mobile-next-time-picker.json @@ -0,0 +1,93 @@ +{ + "props": { + "ampm": { "type": { "name": "bool" }, "default": "`utils.is12HourCycleInCurrentLocale()`" }, + "ampmInClock": { "type": { "name": "bool" } }, + "className": { "type": { "name": "string" } }, + "closeOnSelect": { + "type": { "name": "bool" }, + "default": "`true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)." + }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "defaultValue": { "type": { "name": "any" } }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableIgnoringDatePartForTimeValidation": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "format": { "type": { "name": "string" } }, + "inputRef": { + "type": { "name": "union", "description": "func
                                        | { current?: object }" } + }, + "label": { "type": { "name": "node" } }, + "localeText": { "type": { "name": "object" } }, + "maxTime": { "type": { "name": "any" } }, + "minTime": { "type": { "name": "any" } }, + "minutesStep": { "type": { "name": "number" }, "default": "1" }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "onViewChange": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "openTo": { + "type": { + "name": "enum", + "description": "'hours'
                                        | 'minutes'
                                        | 'seconds'" + } + }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
                                        | 'portrait'" } + }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                                        | 'hours'
                                        | 'meridiem'
                                        | 'minutes'
                                        | 'month'
                                        | 'seconds'
                                        | 'year'
                                        | number
                                        | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableTime": { "type": { "name": "func" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                                        | object
                                        | bool>
                                        | func
                                        | object" + } + }, + "value": { "type": { "name": "any" } }, + "views": { + "type": { + "name": "arrayOf", + "description": "Array<'hours'
                                        | 'minutes'
                                        | 'seconds'>" + } + } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "Dialog": { "default": "PickersModalDialogRoot", "type": { "name": "elementType" } }, + "Field": { "type": { "name": "elementType" } }, + "Input": { "default": "TextField", "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "MobilePaper": { "default": "Paper from @mui/material", "type": { "name": "elementType" } }, + "MobileTransition": { "default": "Fade from @mui/material", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "Toolbar": { "default": "TimePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "MobileNextTimePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiMobileNextTimePicker" }, + "spread": false, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/x-date-pickers/src/MobileNextTimePicker/MobileNextTimePicker.tsx", + "inheritance": null, + "demos": "
                                          ", + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "Unstable_MobileNextTimePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_MobileNextTimePicker" } + ] +} diff --git a/docs/pages/x/api/date-pickers/mobile-time-picker.json b/docs/pages/x/api/date-pickers/mobile-time-picker.json index ae66ae85dc825..dd70db0f51134 100644 --- a/docs/pages/x/api/date-pickers/mobile-time-picker.json +++ b/docs/pages/x/api/date-pickers/mobile-time-picker.json @@ -84,5 +84,8 @@ "filename": "/packages/x-date-pickers/src/MobileTimePicker/MobileTimePicker.tsx", "inheritance": null, "demos": "
                                            ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "MobileTimePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "MobileTimePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/month-calendar.json b/docs/pages/x/api/date-pickers/month-calendar.json index 6e7c29bf4e7c4..cb17a1eaf9473 100644 --- a/docs/pages/x/api/date-pickers/month-calendar.json +++ b/docs/pages/x/api/date-pickers/month-calendar.json @@ -25,5 +25,8 @@ "styles": { "classes": ["root"], "globalClasses": {}, "name": "MuiMonthCalendar" }, "filename": "/packages/x-date-pickers/src/MonthCalendar/MonthCalendar.tsx", "demos": "
                                              ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "MonthCalendar" }, + { "packageName": "@mui/x-date-pickers", "componentName": "MonthCalendar" } + ] } diff --git a/docs/pages/x/api/date-pickers/multi-input-date-range-field.js b/docs/pages/x/api/date-pickers/multi-input-date-range-field.js new file mode 100644 index 0000000000000..9c6fe19d9740a --- /dev/null +++ b/docs/pages/x/api/date-pickers/multi-input-date-range-field.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './multi-input-date-range-field.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/multi-input-date-range-field(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/multi-input-date-range-field.json b/docs/pages/x/api/date-pickers/multi-input-date-range-field.json new file mode 100644 index 0000000000000..1f37f5b3f2c28 --- /dev/null +++ b/docs/pages/x/api/date-pickers/multi-input-date-range-field.json @@ -0,0 +1,42 @@ +{ + "props": { + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "defaultValue": { "type": { "name": "arrayOf", "description": "Array<any>" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "format": { "type": { "name": "string" } }, + "maxDate": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "onChange": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "readOnly": { "type": { "name": "bool" } }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                                              | 'hours'
                                              | 'meridiem'
                                              | 'minutes'
                                              | 'month'
                                              | 'seconds'
                                              | 'year'
                                              | number
                                              | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "value": { "type": { "name": "arrayOf", "description": "Array<any>" } } + }, + "slots": { + "Input": { "default": "TextField", "type": { "name": "elementType" } }, + "Root": { "default": "MultiInputDateRangeFieldRoot", "type": { "name": "elementType" } }, + "Separator": { + "default": "MultiInputDateRangeFieldSeparator", + "type": { "name": "elementType" } + } + }, + "name": "MultiInputDateRangeField", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiMultiInputDateRangeField" }, + "filename": "/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx", + "demos": "
                                                ", + "packages": [ + { + "packageName": "@mui/x-date-pickers-pro", + "componentName": "Unstable_MultiInputDateRangeField" + } + ] +} diff --git a/docs/pages/x/api/date-pickers/multi-input-date-time-range-field.js b/docs/pages/x/api/date-pickers/multi-input-date-time-range-field.js new file mode 100644 index 0000000000000..7e03645905428 --- /dev/null +++ b/docs/pages/x/api/date-pickers/multi-input-date-time-range-field.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './multi-input-date-time-range-field.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/multi-input-date-time-range-field(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/multi-input-date-time-range-field.json b/docs/pages/x/api/date-pickers/multi-input-date-time-range-field.json new file mode 100644 index 0000000000000..e5ef33213b951 --- /dev/null +++ b/docs/pages/x/api/date-pickers/multi-input-date-time-range-field.json @@ -0,0 +1,50 @@ +{ + "props": { + "ampm": { "type": { "name": "bool" }, "default": "`utils.is12HourCycleInCurrentLocale()`" }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "defaultValue": { "type": { "name": "arrayOf", "description": "Array<any>" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableIgnoringDatePartForTimeValidation": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "format": { "type": { "name": "string" } }, + "maxDate": { "type": { "name": "any" } }, + "maxDateTime": { "type": { "name": "any" } }, + "maxTime": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "minDateTime": { "type": { "name": "any" } }, + "minTime": { "type": { "name": "any" } }, + "minutesStep": { "type": { "name": "number" }, "default": "1" }, + "onChange": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "readOnly": { "type": { "name": "bool" } }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                                                | 'hours'
                                                | 'meridiem'
                                                | 'minutes'
                                                | 'month'
                                                | 'seconds'
                                                | 'year'
                                                | number
                                                | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "shouldDisableTime": { "type": { "name": "func" } }, + "value": { "type": { "name": "arrayOf", "description": "Array<any>" } } + }, + "slots": { + "Input": { "default": "TextField", "type": { "name": "elementType" } }, + "Root": { "default": "MultiInputDateTimeRangeFieldRoot", "type": { "name": "elementType" } }, + "Separator": { + "default": "MultiInputDateTimeRangeFieldSeparator", + "type": { "name": "elementType" } + } + }, + "name": "MultiInputDateTimeRangeField", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiMultiInputDateTimeRangeField" }, + "filename": "/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx", + "demos": "
                                                  ", + "packages": [ + { + "packageName": "@mui/x-date-pickers-pro", + "componentName": "Unstable_MultiInputDateTimeRangeField" + } + ] +} diff --git a/docs/pages/x/api/date-pickers/multi-input-time-range-field.js b/docs/pages/x/api/date-pickers/multi-input-time-range-field.js new file mode 100644 index 0000000000000..c3e9425f8699e --- /dev/null +++ b/docs/pages/x/api/date-pickers/multi-input-time-range-field.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './multi-input-time-range-field.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/multi-input-time-range-field(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/multi-input-time-range-field.json b/docs/pages/x/api/date-pickers/multi-input-time-range-field.json new file mode 100644 index 0000000000000..cfc25d30f399c --- /dev/null +++ b/docs/pages/x/api/date-pickers/multi-input-time-range-field.json @@ -0,0 +1,45 @@ +{ + "props": { + "ampm": { "type": { "name": "bool" }, "default": "`utils.is12HourCycleInCurrentLocale()`" }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "defaultValue": { "type": { "name": "arrayOf", "description": "Array<any>" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableIgnoringDatePartForTimeValidation": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "format": { "type": { "name": "string" } }, + "maxTime": { "type": { "name": "any" } }, + "minTime": { "type": { "name": "any" } }, + "minutesStep": { "type": { "name": "number" }, "default": "1" }, + "onChange": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "readOnly": { "type": { "name": "bool" } }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                                                  | 'hours'
                                                  | 'meridiem'
                                                  | 'minutes'
                                                  | 'month'
                                                  | 'seconds'
                                                  | 'year'
                                                  | number
                                                  | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableTime": { "type": { "name": "func" } }, + "value": { "type": { "name": "arrayOf", "description": "Array<any>" } } + }, + "slots": { + "Input": { "default": "TextField", "type": { "name": "elementType" } }, + "Root": { "default": "MultiInputTimeRangeFieldRoot", "type": { "name": "elementType" } }, + "Separator": { + "default": "MultiInputTimeRangeFieldSeparator", + "type": { "name": "elementType" } + } + }, + "name": "MultiInputTimeRangeField", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiMultiInputTimeRangeField" }, + "filename": "/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx", + "demos": "
                                                    ", + "packages": [ + { + "packageName": "@mui/x-date-pickers-pro", + "componentName": "Unstable_MultiInputTimeRangeField" + } + ] +} diff --git a/docs/pages/x/api/date-pickers/next-date-picker.js b/docs/pages/x/api/date-pickers/next-date-picker.js new file mode 100644 index 0000000000000..fda13497374ca --- /dev/null +++ b/docs/pages/x/api/date-pickers/next-date-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './next-date-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/next-date-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/next-date-picker.json b/docs/pages/x/api/date-pickers/next-date-picker.json new file mode 100644 index 0000000000000..b831b058561bf --- /dev/null +++ b/docs/pages/x/api/date-pickers/next-date-picker.json @@ -0,0 +1,130 @@ +{ + "props": { + "className": { "type": { "name": "string" } }, + "closeOnSelect": { + "type": { "name": "bool" }, + "default": "`true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)." + }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "dayOfWeekFormatter": { + "type": { "name": "func" }, + "default": "(day) => day.charAt(0).toUpperCase()" + }, + "defaultCalendarMonth": { "type": { "name": "any" } }, + "defaultValue": { "type": { "name": "any" } }, + "desktopModeMediaQuery": { + "type": { "name": "string" }, + "default": "'@media (pointer: fine)'" + }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableHighlightToday": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "displayWeekNumber": { "type": { "name": "bool" } }, + "fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" }, + "format": { "type": { "name": "string" } }, + "inputRef": { + "type": { "name": "union", "description": "func
                                                    | { current?: object }" } + }, + "label": { "type": { "name": "node" } }, + "loading": { "type": { "name": "bool" } }, + "localeText": { "type": { "name": "object" } }, + "maxDate": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onMonthChange": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "onViewChange": { "type": { "name": "func" } }, + "onYearChange": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "openTo": { + "type": { + "name": "enum", + "description": "'day'
                                                    | 'month'
                                                    | 'year'" + } + }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
                                                    | 'portrait'" } + }, + "reduceAnimations": { + "type": { "name": "bool" }, + "default": "typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)" + }, + "renderLoading": { + "type": { "name": "func" }, + "default": "() => ..." + }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                                                    | 'hours'
                                                    | 'meridiem'
                                                    | 'minutes'
                                                    | 'month'
                                                    | 'seconds'
                                                    | 'year'
                                                    | number
                                                    | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "shouldDisableMonth": { "type": { "name": "func" } }, + "shouldDisableYear": { "type": { "name": "func" } }, + "showDaysOutsideCurrentMonth": { "type": { "name": "bool" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                                                    | object
                                                    | bool>
                                                    | func
                                                    | object" + } + }, + "value": { "type": { "name": "any" } }, + "views": { + "type": { + "name": "arrayOf", + "description": "Array<'day'
                                                    | 'month'
                                                    | 'year'>" + } + } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "Day": { "default": "PickersDay", "type": { "name": "elementType" } }, + "DesktopPaper": { "default": "PickersPopperPaper", "type": { "name": "elementType" } }, + "DesktopTransition": { + "default": "Grow from @mui/material", + "type": { "name": "elementType" } + }, + "DesktopTrapFocus": { + "default": "TrapFocus from @mui/material", + "type": { "name": "elementType" } + }, + "Dialog": { "default": "PickersModalDialogRoot", "type": { "name": "elementType" } }, + "Field": { "type": { "name": "elementType" } }, + "Input": { "default": "TextField", "type": { "name": "elementType" } }, + "InputAdornment": { "default": "InputAdornment", "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "MobilePaper": { "default": "Paper from @mui/material", "type": { "name": "elementType" } }, + "MobileTransition": { "default": "Fade from @mui/material", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "OpenPickerButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "OpenPickerIcon": { "type": { "name": "elementType" } }, + "PaperContent": { "default": "React.Fragment", "type": { "name": "elementType" } }, + "Popper": { "default": "Popper from @mui/material", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "SwitchViewButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "SwitchViewIcon": { "default": "ArrowDropDown", "type": { "name": "elementType" } }, + "Toolbar": { "default": "DatePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "NextDatePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiNextDatePicker" }, + "filename": "/packages/x-date-pickers/src/NextDatePicker/NextDatePicker.tsx", + "inheritance": null, + "demos": "
                                                      ", + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "Unstable_NextDatePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_NextDatePicker" } + ] +} diff --git a/docs/pages/x/api/date-pickers/next-date-range-picker.js b/docs/pages/x/api/date-pickers/next-date-range-picker.js new file mode 100644 index 0000000000000..e240d6f826c95 --- /dev/null +++ b/docs/pages/x/api/date-pickers/next-date-range-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './next-date-range-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/next-date-range-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/next-date-range-picker.json b/docs/pages/x/api/date-pickers/next-date-range-picker.json new file mode 100644 index 0000000000000..a7a2991460630 --- /dev/null +++ b/docs/pages/x/api/date-pickers/next-date-range-picker.json @@ -0,0 +1,109 @@ +{ + "props": { + "calendars": { + "type": { "name": "enum", "description": "1
                                                      | 2
                                                      | 3" }, + "default": "2" + }, + "className": { "type": { "name": "string" } }, + "closeOnSelect": { + "type": { "name": "bool" }, + "default": "`true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)." + }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "dayOfWeekFormatter": { + "type": { "name": "func" }, + "default": "(day) => day.charAt(0).toUpperCase()" + }, + "defaultCalendarMonth": { "type": { "name": "any" } }, + "defaultValue": { "type": { "name": "arrayOf", "description": "Array<any>" } }, + "desktopModeMediaQuery": { + "type": { "name": "string" }, + "default": "'@media (pointer: fine)'" + }, + "disableAutoMonthSwitching": { "type": { "name": "bool" } }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableHighlightToday": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "displayWeekNumber": { "type": { "name": "bool" } }, + "fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" }, + "format": { "type": { "name": "string" } }, + "loading": { "type": { "name": "bool" } }, + "localeText": { "type": { "name": "object" } }, + "maxDate": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onMonthChange": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "reduceAnimations": { + "type": { "name": "bool" }, + "default": "typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)" + }, + "renderLoading": { "type": { "name": "func" }, "default": "() => \"...\"" }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                                                      | 'hours'
                                                      | 'meridiem'
                                                      | 'minutes'
                                                      | 'month'
                                                      | 'seconds'
                                                      | 'year'
                                                      | number
                                                      | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "showDaysOutsideCurrentMonth": { "type": { "name": "bool" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                                                      | object
                                                      | bool>
                                                      | func
                                                      | object" + } + }, + "value": { "type": { "name": "arrayOf", "description": "Array<any>" } } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "Day": { "default": "DateRangePickersDay", "type": { "name": "elementType" } }, + "DesktopPaper": { "default": "PickersPopperPaper", "type": { "name": "elementType" } }, + "DesktopTransition": { + "default": "Grow from @mui/material", + "type": { "name": "elementType" } + }, + "DesktopTrapFocus": { + "default": "TrapFocus from @mui/material", + "type": { "name": "elementType" } + }, + "Dialog": { "default": "PickersModalDialogRoot", "type": { "name": "elementType" } }, + "Field": { "type": { "name": "elementType" } }, + "FieldRoot": { "type": { "name": "elementType" } }, + "FieldSeparator": { "type": { "name": "elementType" } }, + "Input": { "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "MobilePaper": { "default": "Paper from @mui/material", "type": { "name": "elementType" } }, + "MobileTransition": { "default": "Fade from @mui/material", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "PaperContent": { "default": "React.Fragment", "type": { "name": "elementType" } }, + "Popper": { "default": "Popper from @mui/material", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "SwitchViewButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "SwitchViewIcon": { "default": "ArrowDropDown", "type": { "name": "elementType" } }, + "Toolbar": { "default": "DateTimePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "NextDateRangePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiNextDateRangePicker" }, + "spread": false, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/x-date-pickers-pro/src/NextDateRangePicker/NextDateRangePicker.tsx", + "inheritance": null, + "demos": "
                                                        ", + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "Unstable_NextDateRangePicker" } + ] +} diff --git a/docs/pages/x/api/date-pickers/next-date-time-picker.js b/docs/pages/x/api/date-pickers/next-date-time-picker.js new file mode 100644 index 0000000000000..001d334f32e9e --- /dev/null +++ b/docs/pages/x/api/date-pickers/next-date-time-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './next-date-time-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/next-date-time-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/next-date-time-picker.json b/docs/pages/x/api/date-pickers/next-date-time-picker.json new file mode 100644 index 0000000000000..32f585ac5776e --- /dev/null +++ b/docs/pages/x/api/date-pickers/next-date-time-picker.json @@ -0,0 +1,140 @@ +{ + "props": { + "ampm": { "type": { "name": "bool" }, "default": "`utils.is12HourCycleInCurrentLocale()`" }, + "ampmInClock": { "type": { "name": "bool" } }, + "className": { "type": { "name": "string" } }, + "closeOnSelect": { + "type": { "name": "bool" }, + "default": "`true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)." + }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "dayOfWeekFormatter": { + "type": { "name": "func" }, + "default": "(day) => day.charAt(0).toUpperCase()" + }, + "defaultCalendarMonth": { "type": { "name": "any" } }, + "defaultValue": { "type": { "name": "any" } }, + "desktopModeMediaQuery": { + "type": { "name": "string" }, + "default": "'@media (pointer: fine)'" + }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableHighlightToday": { "type": { "name": "bool" } }, + "disableIgnoringDatePartForTimeValidation": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "displayWeekNumber": { "type": { "name": "bool" } }, + "fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" }, + "format": { "type": { "name": "string" } }, + "inputRef": { + "type": { "name": "union", "description": "func
                                                        | { current?: object }" } + }, + "label": { "type": { "name": "node" } }, + "loading": { "type": { "name": "bool" } }, + "localeText": { "type": { "name": "object" } }, + "maxDate": { "type": { "name": "any" } }, + "maxDateTime": { "type": { "name": "any" } }, + "maxTime": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "minDateTime": { "type": { "name": "any" } }, + "minTime": { "type": { "name": "any" } }, + "minutesStep": { "type": { "name": "number" }, "default": "1" }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onMonthChange": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "onViewChange": { "type": { "name": "func" } }, + "onYearChange": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "openTo": { + "type": { + "name": "enum", + "description": "'day'
                                                        | 'hours'
                                                        | 'minutes'
                                                        | 'month'
                                                        | 'seconds'
                                                        | 'year'" + } + }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
                                                        | 'portrait'" } + }, + "reduceAnimations": { + "type": { "name": "bool" }, + "default": "typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)" + }, + "renderLoading": { + "type": { "name": "func" }, + "default": "() => ..." + }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                                                        | 'hours'
                                                        | 'meridiem'
                                                        | 'minutes'
                                                        | 'month'
                                                        | 'seconds'
                                                        | 'year'
                                                        | number
                                                        | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "shouldDisableMonth": { "type": { "name": "func" } }, + "shouldDisableTime": { "type": { "name": "func" } }, + "shouldDisableYear": { "type": { "name": "func" } }, + "showDaysOutsideCurrentMonth": { "type": { "name": "bool" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                                                        | object
                                                        | bool>
                                                        | func
                                                        | object" + } + }, + "value": { "type": { "name": "any" } }, + "views": { + "type": { + "name": "arrayOf", + "description": "Array<'day'
                                                        | 'hours'
                                                        | 'minutes'
                                                        | 'month'
                                                        | 'seconds'
                                                        | 'year'>" + } + } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "Day": { "default": "PickersDay", "type": { "name": "elementType" } }, + "DesktopPaper": { "default": "PickersPopperPaper", "type": { "name": "elementType" } }, + "DesktopTransition": { + "default": "Grow from @mui/material", + "type": { "name": "elementType" } + }, + "DesktopTrapFocus": { + "default": "TrapFocus from @mui/material", + "type": { "name": "elementType" } + }, + "Dialog": { "default": "PickersModalDialogRoot", "type": { "name": "elementType" } }, + "Field": { "type": { "name": "elementType" } }, + "Input": { "default": "TextField", "type": { "name": "elementType" } }, + "InputAdornment": { "default": "InputAdornment", "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "MobilePaper": { "default": "Paper from @mui/material", "type": { "name": "elementType" } }, + "MobileTransition": { "default": "Fade from @mui/material", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "OpenPickerButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "OpenPickerIcon": { "type": { "name": "elementType" } }, + "PaperContent": { "default": "React.Fragment", "type": { "name": "elementType" } }, + "Popper": { "default": "Popper from @mui/material", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "SwitchViewButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "SwitchViewIcon": { "default": "ArrowDropDown", "type": { "name": "elementType" } }, + "Tabs": { "default": "DateTimePickerTabs", "type": { "name": "elementType" } }, + "Toolbar": { "default": "DateTimePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "NextDateTimePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiNextDateTimePicker" }, + "filename": "/packages/x-date-pickers/src/NextDateTimePicker/NextDateTimePicker.tsx", + "inheritance": null, + "demos": "
                                                          ", + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "Unstable_NextDateTimePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_NextDateTimePicker" } + ] +} diff --git a/docs/pages/x/api/date-pickers/next-time-picker.js b/docs/pages/x/api/date-pickers/next-time-picker.js new file mode 100644 index 0000000000000..8a2e00504f8f0 --- /dev/null +++ b/docs/pages/x/api/date-pickers/next-time-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './next-time-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/next-time-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/next-time-picker.json b/docs/pages/x/api/date-pickers/next-time-picker.json new file mode 100644 index 0000000000000..3ff614390fe77 --- /dev/null +++ b/docs/pages/x/api/date-pickers/next-time-picker.json @@ -0,0 +1,108 @@ +{ + "props": { + "ampm": { "type": { "name": "bool" }, "default": "`utils.is12HourCycleInCurrentLocale()`" }, + "ampmInClock": { "type": { "name": "bool" } }, + "className": { "type": { "name": "string" } }, + "closeOnSelect": { + "type": { "name": "bool" }, + "default": "`true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)." + }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "defaultValue": { "type": { "name": "any" } }, + "desktopModeMediaQuery": { + "type": { "name": "string" }, + "default": "'@media (pointer: fine)'" + }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableIgnoringDatePartForTimeValidation": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "format": { "type": { "name": "string" } }, + "inputRef": { + "type": { "name": "union", "description": "func
                                                          | { current?: object }" } + }, + "label": { "type": { "name": "node" } }, + "localeText": { "type": { "name": "object" } }, + "maxTime": { "type": { "name": "any" } }, + "minTime": { "type": { "name": "any" } }, + "minutesStep": { "type": { "name": "number" }, "default": "1" }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "onViewChange": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "openTo": { + "type": { + "name": "enum", + "description": "'hours'
                                                          | 'minutes'
                                                          | 'seconds'" + } + }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
                                                          | 'portrait'" } + }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                                                          | 'hours'
                                                          | 'meridiem'
                                                          | 'minutes'
                                                          | 'month'
                                                          | 'seconds'
                                                          | 'year'
                                                          | number
                                                          | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableTime": { "type": { "name": "func" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                                                          | object
                                                          | bool>
                                                          | func
                                                          | object" + } + }, + "value": { "type": { "name": "any" } }, + "views": { + "type": { + "name": "arrayOf", + "description": "Array<'hours'
                                                          | 'minutes'
                                                          | 'seconds'>" + } + } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "DesktopPaper": { "default": "PickersPopperPaper", "type": { "name": "elementType" } }, + "DesktopTransition": { + "default": "Grow from @mui/material", + "type": { "name": "elementType" } + }, + "DesktopTrapFocus": { + "default": "TrapFocus from @mui/material", + "type": { "name": "elementType" } + }, + "Dialog": { "default": "PickersModalDialogRoot", "type": { "name": "elementType" } }, + "Field": { "type": { "name": "elementType" } }, + "Input": { "default": "TextField", "type": { "name": "elementType" } }, + "InputAdornment": { "default": "InputAdornment", "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "MobilePaper": { "default": "Paper from @mui/material", "type": { "name": "elementType" } }, + "MobileTransition": { "default": "Fade from @mui/material", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "OpenPickerButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "OpenPickerIcon": { "type": { "name": "elementType" } }, + "PaperContent": { "default": "React.Fragment", "type": { "name": "elementType" } }, + "Popper": { "default": "Popper from @mui/material", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "Toolbar": { "default": "TimePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "NextTimePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiNextTimePicker" }, + "filename": "/packages/x-date-pickers/src/NextTimePicker/NextTimePicker.tsx", + "demos": "
                                                            ", + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "Unstable_NextTimePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_NextTimePicker" } + ] +} diff --git a/docs/pages/x/api/date-pickers/picker-static-wrapper.json b/docs/pages/x/api/date-pickers/picker-static-wrapper.json index 4853837025052..1c32ef6f04a15 100644 --- a/docs/pages/x/api/date-pickers/picker-static-wrapper.json +++ b/docs/pages/x/api/date-pickers/picker-static-wrapper.json @@ -30,5 +30,8 @@ "filename": "/packages/x-date-pickers/src/internals/components/PickerStaticWrapper/PickerStaticWrapper.tsx", "inheritance": null, "demos": "
                                                              ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "PickerStaticWrapper" }, + { "packageName": "@mui/x-date-pickers", "componentName": "PickerStaticWrapper" } + ] } diff --git a/docs/pages/x/api/date-pickers/pickers-day.json b/docs/pages/x/api/date-pickers/pickers-day.json index c161b23f182ba..3704b1693661a 100644 --- a/docs/pages/x/api/date-pickers/pickers-day.json +++ b/docs/pages/x/api/date-pickers/pickers-day.json @@ -31,5 +31,8 @@ "filename": "/packages/x-date-pickers/src/PickersDay/PickersDay.tsx", "inheritance": null, "demos": "
                                                                ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "PickersDay" }, + { "packageName": "@mui/x-date-pickers", "componentName": "PickersDay" } + ] } diff --git a/docs/pages/x/api/date-pickers/single-input-date-range-field.js b/docs/pages/x/api/date-pickers/single-input-date-range-field.js new file mode 100644 index 0000000000000..5446f0bb8a831 --- /dev/null +++ b/docs/pages/x/api/date-pickers/single-input-date-range-field.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './single-input-date-range-field.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/single-input-date-range-field(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/single-input-date-range-field.json b/docs/pages/x/api/date-pickers/single-input-date-range-field.json new file mode 100644 index 0000000000000..28e14efffaff3 --- /dev/null +++ b/docs/pages/x/api/date-pickers/single-input-date-range-field.json @@ -0,0 +1,35 @@ +{ + "props": { + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "defaultValue": { "type": { "name": "arrayOf", "description": "Array<any>" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "format": { "type": { "name": "string" } }, + "maxDate": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "onChange": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "readOnly": { "type": { "name": "bool" } }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                                                                | 'hours'
                                                                | 'meridiem'
                                                                | 'minutes'
                                                                | 'month'
                                                                | 'seconds'
                                                                | 'year'
                                                                | number
                                                                | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "value": { "type": { "name": "arrayOf", "description": "Array<any>" } } + }, + "slots": { "Input": { "default": "TextField", "type": { "name": "elementType" } } }, + "name": "SingleInputDateRangeField", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiSingleInputDateRangeField" }, + "filename": "/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx", + "demos": "
                                                                  ", + "packages": [ + { + "packageName": "@mui/x-date-pickers-pro", + "componentName": "Unstable_SingleInputDateRangeField" + } + ] +} diff --git a/docs/pages/x/api/date-pickers/static-date-picker.json b/docs/pages/x/api/date-pickers/static-date-picker.json index 26f8e91a16667..2266024d2e199 100644 --- a/docs/pages/x/api/date-pickers/static-date-picker.json +++ b/docs/pages/x/api/date-pickers/static-date-picker.json @@ -108,5 +108,8 @@ "filename": "/packages/x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx", "inheritance": null, "demos": "
                                                                    ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "StaticDatePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "StaticDatePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/static-date-range-picker.json b/docs/pages/x/api/date-pickers/static-date-range-picker.json index d5d3d395cb52c..38142064d503c 100644 --- a/docs/pages/x/api/date-pickers/static-date-range-picker.json +++ b/docs/pages/x/api/date-pickers/static-date-range-picker.json @@ -97,5 +97,7 @@ "filename": "/packages/x-date-pickers-pro/src/StaticDateRangePicker/StaticDateRangePicker.tsx", "inheritance": null, "demos": "
                                                                      ", - "packages": ["@mui/x-date-pickers-pro"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "StaticDateRangePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/static-date-time-picker.json b/docs/pages/x/api/date-pickers/static-date-time-picker.json index 540ffbf54bca2..554aed77ed6af 100644 --- a/docs/pages/x/api/date-pickers/static-date-time-picker.json +++ b/docs/pages/x/api/date-pickers/static-date-time-picker.json @@ -120,5 +120,8 @@ "filename": "/packages/x-date-pickers/src/StaticDateTimePicker/StaticDateTimePicker.tsx", "inheritance": null, "demos": "
                                                                        ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "StaticDateTimePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "StaticDateTimePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/static-next-date-picker.js b/docs/pages/x/api/date-pickers/static-next-date-picker.js new file mode 100644 index 0000000000000..ce98ca1c74fc6 --- /dev/null +++ b/docs/pages/x/api/date-pickers/static-next-date-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './static-next-date-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/static-next-date-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/static-next-date-picker.json b/docs/pages/x/api/date-pickers/static-next-date-picker.json new file mode 100644 index 0000000000000..15b4025aeb105 --- /dev/null +++ b/docs/pages/x/api/date-pickers/static-next-date-picker.json @@ -0,0 +1,92 @@ +{ + "props": { + "className": { "type": { "name": "string" } }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "dayOfWeekFormatter": { + "type": { "name": "func" }, + "default": "(day) => day.charAt(0).toUpperCase()" + }, + "defaultCalendarMonth": { "type": { "name": "any" } }, + "defaultValue": { "type": { "name": "any" } }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableHighlightToday": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "displayStaticWrapperAs": { + "type": { "name": "enum", "description": "'desktop'
                                                                        | 'mobile'" }, + "default": "\"mobile\"" + }, + "displayWeekNumber": { "type": { "name": "bool" } }, + "fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" }, + "loading": { "type": { "name": "bool" } }, + "localeText": { "type": { "name": "object" } }, + "maxDate": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onMonthChange": { "type": { "name": "func" } }, + "onViewChange": { "type": { "name": "func" } }, + "onYearChange": { "type": { "name": "func" } }, + "openTo": { + "type": { + "name": "enum", + "description": "'day'
                                                                        | 'month'
                                                                        | 'year'" + } + }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
                                                                        | 'portrait'" } + }, + "reduceAnimations": { + "type": { "name": "bool" }, + "default": "typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)" + }, + "renderLoading": { + "type": { "name": "func" }, + "default": "() => ..." + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "shouldDisableMonth": { "type": { "name": "func" } }, + "shouldDisableYear": { "type": { "name": "func" } }, + "showDaysOutsideCurrentMonth": { "type": { "name": "bool" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                                                                        | object
                                                                        | bool>
                                                                        | func
                                                                        | object" + } + }, + "value": { "type": { "name": "any" } }, + "views": { + "type": { + "name": "arrayOf", + "description": "Array<'day'
                                                                        | 'month'
                                                                        | 'year'>" + } + } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "Day": { "default": "PickersDay", "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "PaperContent": { "default": "React.Fragment", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "SwitchViewButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "SwitchViewIcon": { "default": "ArrowDropDown", "type": { "name": "elementType" } }, + "Toolbar": { "default": "DatePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "StaticNextDatePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiStaticNextDatePicker" }, + "filename": "/packages/x-date-pickers/src/StaticNextDatePicker/StaticNextDatePicker.tsx", + "inheritance": null, + "demos": "
                                                                          ", + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "Unstable_StaticNextDatePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_StaticNextDatePicker" } + ] +} diff --git a/docs/pages/x/api/date-pickers/static-next-date-range-picker.js b/docs/pages/x/api/date-pickers/static-next-date-range-picker.js new file mode 100644 index 0000000000000..b4af76fc06db7 --- /dev/null +++ b/docs/pages/x/api/date-pickers/static-next-date-range-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './static-next-date-range-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/static-next-date-range-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/static-next-date-range-picker.json b/docs/pages/x/api/date-pickers/static-next-date-range-picker.json new file mode 100644 index 0000000000000..b7d2952af2804 --- /dev/null +++ b/docs/pages/x/api/date-pickers/static-next-date-range-picker.json @@ -0,0 +1,79 @@ +{ + "props": { + "calendars": { + "type": { "name": "enum", "description": "1
                                                                          | 2
                                                                          | 3" }, + "default": "2" + }, + "className": { "type": { "name": "string" } }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "dayOfWeekFormatter": { + "type": { "name": "func" }, + "default": "(day) => day.charAt(0).toUpperCase()" + }, + "defaultCalendarMonth": { "type": { "name": "any" } }, + "defaultValue": { "type": { "name": "arrayOf", "description": "Array<any>" } }, + "disableAutoMonthSwitching": { "type": { "name": "bool" } }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableHighlightToday": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "displayStaticWrapperAs": { + "type": { "name": "enum", "description": "'desktop'
                                                                          | 'mobile'" }, + "default": "\"mobile\"" + }, + "displayWeekNumber": { "type": { "name": "bool" } }, + "fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" }, + "loading": { "type": { "name": "bool" } }, + "localeText": { "type": { "name": "object" } }, + "maxDate": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onMonthChange": { "type": { "name": "func" } }, + "reduceAnimations": { + "type": { "name": "bool" }, + "default": "typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)" + }, + "renderLoading": { "type": { "name": "func" }, "default": "() => \"...\"" }, + "shouldDisableDate": { "type": { "name": "func" } }, + "showDaysOutsideCurrentMonth": { "type": { "name": "bool" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                                                                          | object
                                                                          | bool>
                                                                          | func
                                                                          | object" + } + }, + "value": { "type": { "name": "arrayOf", "description": "Array<any>" } } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "Day": { "default": "DateRangePickersDay", "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "PaperContent": { "default": "React.Fragment", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "SwitchViewButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "SwitchViewIcon": { "default": "ArrowDropDown", "type": { "name": "elementType" } }, + "Toolbar": { "default": "DateTimePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "StaticNextDateRangePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiStaticNextDateRangePicker" }, + "spread": false, + "forwardsRefTo": "undefined", + "filename": "/packages/x-date-pickers-pro/src/StaticNextDateRangePicker/StaticNextDateRangePicker.tsx", + "inheritance": null, + "demos": "
                                                                            ", + "packages": [ + { + "packageName": "@mui/x-date-pickers-pro", + "componentName": "Unstable_StaticNextDateRangePicker" + } + ] +} diff --git a/docs/pages/x/api/date-pickers/static-next-date-time-picker.js b/docs/pages/x/api/date-pickers/static-next-date-time-picker.js new file mode 100644 index 0000000000000..562d5f10b131f --- /dev/null +++ b/docs/pages/x/api/date-pickers/static-next-date-time-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './static-next-date-time-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/static-next-date-time-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/static-next-date-time-picker.json b/docs/pages/x/api/date-pickers/static-next-date-time-picker.json new file mode 100644 index 0000000000000..e299e7a944660 --- /dev/null +++ b/docs/pages/x/api/date-pickers/static-next-date-time-picker.json @@ -0,0 +1,105 @@ +{ + "props": { + "ampm": { "type": { "name": "bool" }, "default": "`utils.is12HourCycleInCurrentLocale()`" }, + "ampmInClock": { "type": { "name": "bool" } }, + "className": { "type": { "name": "string" } }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "dayOfWeekFormatter": { + "type": { "name": "func" }, + "default": "(day) => day.charAt(0).toUpperCase()" + }, + "defaultCalendarMonth": { "type": { "name": "any" } }, + "defaultValue": { "type": { "name": "any" } }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableHighlightToday": { "type": { "name": "bool" } }, + "disableIgnoringDatePartForTimeValidation": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "displayStaticWrapperAs": { + "type": { "name": "enum", "description": "'desktop'
                                                                            | 'mobile'" }, + "default": "\"mobile\"" + }, + "displayWeekNumber": { "type": { "name": "bool" } }, + "fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" }, + "loading": { "type": { "name": "bool" } }, + "localeText": { "type": { "name": "object" } }, + "maxDate": { "type": { "name": "any" } }, + "maxDateTime": { "type": { "name": "any" } }, + "maxTime": { "type": { "name": "any" } }, + "minDate": { "type": { "name": "any" } }, + "minDateTime": { "type": { "name": "any" } }, + "minTime": { "type": { "name": "any" } }, + "minutesStep": { "type": { "name": "number" }, "default": "1" }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onMonthChange": { "type": { "name": "func" } }, + "onViewChange": { "type": { "name": "func" } }, + "onYearChange": { "type": { "name": "func" } }, + "openTo": { + "type": { + "name": "enum", + "description": "'day'
                                                                            | 'hours'
                                                                            | 'minutes'
                                                                            | 'month'
                                                                            | 'seconds'
                                                                            | 'year'" + } + }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
                                                                            | 'portrait'" } + }, + "reduceAnimations": { + "type": { "name": "bool" }, + "default": "typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)" + }, + "renderLoading": { + "type": { "name": "func" }, + "default": "() => ..." + }, + "shouldDisableDate": { "type": { "name": "func" } }, + "shouldDisableMonth": { "type": { "name": "func" } }, + "shouldDisableTime": { "type": { "name": "func" } }, + "shouldDisableYear": { "type": { "name": "func" } }, + "showDaysOutsideCurrentMonth": { "type": { "name": "bool" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                                                                            | object
                                                                            | bool>
                                                                            | func
                                                                            | object" + } + }, + "value": { "type": { "name": "any" } }, + "views": { + "type": { + "name": "arrayOf", + "description": "Array<'day'
                                                                            | 'hours'
                                                                            | 'minutes'
                                                                            | 'month'
                                                                            | 'seconds'
                                                                            | 'year'>" + } + } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "Day": { "default": "PickersDay", "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "PaperContent": { "default": "React.Fragment", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "SwitchViewButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "SwitchViewIcon": { "default": "ArrowDropDown", "type": { "name": "elementType" } }, + "Tabs": { "default": "DateTimePickerTabs", "type": { "name": "elementType" } }, + "Toolbar": { "default": "DateTimePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "StaticNextDateTimePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiStaticNextDateTimePicker" }, + "filename": "/packages/x-date-pickers/src/StaticNextDateTimePicker/StaticNextDateTimePicker.tsx", + "inheritance": null, + "demos": "
                                                                              ", + "packages": [ + { + "packageName": "@mui/x-date-pickers-pro", + "componentName": "Unstable_StaticNextDateTimePicker" + }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_StaticNextDateTimePicker" } + ] +} diff --git a/docs/pages/x/api/date-pickers/static-next-time-picker.js b/docs/pages/x/api/date-pickers/static-next-time-picker.js new file mode 100644 index 0000000000000..2c4bd656967b3 --- /dev/null +++ b/docs/pages/x/api/date-pickers/static-next-time-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './static-next-time-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/static-next-time-picker(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/static-next-time-picker.json b/docs/pages/x/api/date-pickers/static-next-time-picker.json new file mode 100644 index 0000000000000..0fd5e317133dc --- /dev/null +++ b/docs/pages/x/api/date-pickers/static-next-time-picker.json @@ -0,0 +1,73 @@ +{ + "props": { + "ampm": { "type": { "name": "bool" }, "default": "`utils.is12HourCycleInCurrentLocale()`" }, + "ampmInClock": { "type": { "name": "bool" } }, + "className": { "type": { "name": "string" } }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "defaultValue": { "type": { "name": "any" } }, + "disabled": { "type": { "name": "bool" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableIgnoringDatePartForTimeValidation": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "displayStaticWrapperAs": { + "type": { "name": "enum", "description": "'desktop'
                                                                              | 'mobile'" }, + "default": "\"mobile\"" + }, + "localeText": { "type": { "name": "object" } }, + "maxTime": { "type": { "name": "any" } }, + "minTime": { "type": { "name": "any" } }, + "minutesStep": { "type": { "name": "number" }, "default": "1" }, + "onAccept": { "type": { "name": "func" } }, + "onChange": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onViewChange": { "type": { "name": "func" } }, + "openTo": { + "type": { + "name": "enum", + "description": "'hours'
                                                                              | 'minutes'
                                                                              | 'seconds'" + } + }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
                                                                              | 'portrait'" } + }, + "shouldDisableTime": { "type": { "name": "func" } }, + "showToolbar": { + "type": { "name": "bool" }, + "default": "`true` for mobile, `false` for desktop" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
                                                                              | object
                                                                              | bool>
                                                                              | func
                                                                              | object" + } + }, + "value": { "type": { "name": "any" } }, + "views": { + "type": { + "name": "arrayOf", + "description": "Array<'hours'
                                                                              | 'minutes'
                                                                              | 'seconds'>" + } + } + }, + "slots": { + "ActionBar": { "default": "PickersActionBar", "type": { "name": "elementType" } }, + "LeftArrowIcon": { "default": "ArrowLeft", "type": { "name": "elementType" } }, + "NextIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "PaperContent": { "default": "React.Fragment", "type": { "name": "elementType" } }, + "PreviousIconButton": { "default": "IconButton", "type": { "name": "elementType" } }, + "RightArrowIcon": { "default": "ArrowRight", "type": { "name": "elementType" } }, + "Toolbar": { "default": "TimePickerToolbar", "type": { "name": "elementType" } } + }, + "name": "StaticNextTimePicker", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiStaticNextTimePicker" }, + "spread": false, + "forwardsRefTo": "undefined", + "filename": "/packages/x-date-pickers/src/StaticNextTimePicker/StaticNextTimePicker.tsx", + "inheritance": null, + "demos": "
                                                                                ", + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "Unstable_StaticNextTimePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_StaticNextTimePicker" } + ] +} diff --git a/docs/pages/x/api/date-pickers/static-time-picker.json b/docs/pages/x/api/date-pickers/static-time-picker.json index 923ec09008e9b..57429c6e8f5cf 100644 --- a/docs/pages/x/api/date-pickers/static-time-picker.json +++ b/docs/pages/x/api/date-pickers/static-time-picker.json @@ -89,5 +89,8 @@ "filename": "/packages/x-date-pickers/src/StaticTimePicker/StaticTimePicker.tsx", "inheritance": null, "demos": "
                                                                                  ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "StaticTimePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "StaticTimePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/time-clock.json b/docs/pages/x/api/date-pickers/time-clock.json index 55ec423c035b2..690db0b0f2d59 100644 --- a/docs/pages/x/api/date-pickers/time-clock.json +++ b/docs/pages/x/api/date-pickers/time-clock.json @@ -58,5 +58,8 @@ "filename": "/packages/x-date-pickers/src/TimeClock/TimeClock.tsx", "inheritance": null, "demos": "
                                                                                    ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "TimeClock" }, + { "packageName": "@mui/x-date-pickers", "componentName": "TimeClock" } + ] } diff --git a/docs/pages/x/api/date-pickers/time-field.js b/docs/pages/x/api/date-pickers/time-field.js new file mode 100644 index 0000000000000..f1964a02e04b2 --- /dev/null +++ b/docs/pages/x/api/date-pickers/time-field.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docsx/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './time-field.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docsx/translations/api-docs/date-pickers', + false, + /\/time-field(-[a-z]{2})?\.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/x/api/date-pickers/time-field.json b/docs/pages/x/api/date-pickers/time-field.json new file mode 100644 index 0000000000000..d5eb6e78de12c --- /dev/null +++ b/docs/pages/x/api/date-pickers/time-field.json @@ -0,0 +1,36 @@ +{ + "props": { + "ampm": { "type": { "name": "bool" }, "default": "`utils.is12HourCycleInCurrentLocale()`" }, + "components": { "type": { "name": "object" }, "default": "{}" }, + "componentsProps": { "type": { "name": "object" }, "default": "{}" }, + "defaultValue": { "type": { "name": "any" } }, + "disableFuture": { "type": { "name": "bool" } }, + "disableIgnoringDatePartForTimeValidation": { "type": { "name": "bool" } }, + "disablePast": { "type": { "name": "bool" } }, + "format": { "type": { "name": "string" } }, + "maxTime": { "type": { "name": "any" } }, + "minTime": { "type": { "name": "any" } }, + "minutesStep": { "type": { "name": "number" }, "default": "1" }, + "onChange": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onSelectedSectionsChange": { "type": { "name": "func" } }, + "readOnly": { "type": { "name": "bool" } }, + "selectedSections": { + "type": { + "name": "union", + "description": "'day'
                                                                                    | 'hours'
                                                                                    | 'meridiem'
                                                                                    | 'minutes'
                                                                                    | 'month'
                                                                                    | 'seconds'
                                                                                    | 'year'
                                                                                    | number
                                                                                    | { endIndex: number, startIndex: number }" + } + }, + "shouldDisableTime": { "type": { "name": "func" } }, + "value": { "type": { "name": "any" } } + }, + "slots": { "Input": { "default": "TextField", "type": { "name": "elementType" } } }, + "name": "TimeField", + "styles": { "classes": [], "globalClasses": {}, "name": "MuiTimeField" }, + "filename": "/packages/x-date-pickers/src/TimeField/TimeField.tsx", + "demos": "
                                                                                      ", + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "Unstable_TimeField" }, + { "packageName": "@mui/x-date-pickers", "componentName": "Unstable_TimeField" } + ] +} diff --git a/docs/pages/x/api/date-pickers/time-picker.json b/docs/pages/x/api/date-pickers/time-picker.json index 60e65205053af..4f5d706e8d580 100644 --- a/docs/pages/x/api/date-pickers/time-picker.json +++ b/docs/pages/x/api/date-pickers/time-picker.json @@ -99,5 +99,8 @@ "filename": "/packages/x-date-pickers/src/TimePicker/TimePicker.tsx", "inheritance": null, "demos": "
                                                                                        ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "TimePicker" }, + { "packageName": "@mui/x-date-pickers", "componentName": "TimePicker" } + ] } diff --git a/docs/pages/x/api/date-pickers/year-calendar.json b/docs/pages/x/api/date-pickers/year-calendar.json index 4677674c5e156..0ceb73ee40d54 100644 --- a/docs/pages/x/api/date-pickers/year-calendar.json +++ b/docs/pages/x/api/date-pickers/year-calendar.json @@ -25,5 +25,8 @@ "styles": { "classes": ["root"], "globalClasses": {}, "name": "MuiYearCalendar" }, "filename": "/packages/x-date-pickers/src/YearCalendar/YearCalendar.tsx", "demos": "
                                                                                          ", - "packages": ["@mui/x-date-pickers-pro", "@mui/x-date-pickers"] + "packages": [ + { "packageName": "@mui/x-date-pickers-pro", "componentName": "YearCalendar" }, + { "packageName": "@mui/x-date-pickers", "componentName": "YearCalendar" } + ] } diff --git a/docs/scripts/api/buildComponentsDocumentation.ts b/docs/scripts/api/buildComponentsDocumentation.ts index 2e08218e7aa30..3564957ae8ec2 100644 --- a/docs/scripts/api/buildComponentsDocumentation.ts +++ b/docs/scripts/api/buildComponentsDocumentation.ts @@ -47,7 +47,7 @@ interface ReactApi extends ReactDocgenApi { styles: Styles; displayName: string; slots: Record; - packages: string[]; + packages: { packageName: string; componentName: string }[]; } /** @@ -250,20 +250,33 @@ const buildComponentDocumentation = async (options: { reactApi.styles.globalClasses[key] = globalClass; }); - const allProjectsName = Array.from(projects.keys()); - const projectsWithThisComponent = allProjectsName.filter((projectName) => { - const currenetProject = projects.get(projectName) as Project; - const symbol = currenetProject.exports[reactApi.name]; + reactApi.packages = Array.from(projects.keys()) + .map((projectName) => { + const currentProject = projects.get(projectName) as Project; - if (symbol) { - const jsDoc = getSymbolJSDocTags(symbol); - // Do not show imports if the module is deprecated - return !jsDoc.deprecated; - } + const symbol = + currentProject.exports[reactApi.name] || + currentProject.exports[`Unstable_${reactApi.name}`]; - return false; - }); - reactApi.packages = projectsWithThisComponent.map((projectName) => `@mui/${projectName}`); + if (symbol) { + const jsDoc = getSymbolJSDocTags(symbol); + + // Do not show imports if the module is deprecated + if (jsDoc.deprecated) { + return null; + } + + return { + packageName: `@mui/${projectName}`, + componentName: symbol.escapedName.toString(), + }; + } + + return null; + }) + .filter((p): p is ReactApi['packages'][number] => p != null) + // Display the imports from the pro packages above imports from the community packages + .sort((a, b) => b.packageName.length - a.packageName.length); const componentApi: { componentDescription: string; @@ -462,7 +475,7 @@ const buildComponentDocumentation = async (options: { filename: toGithubPath(reactApi.filename, project.workspaceRoot), inheritance: reactApi.inheritance, demos: generateDemoList(reactApi.demos), - packages: reactApi.packages.sort((a, b) => b.length - a.length), // Display the imports from the pro packages above imports from the community packages + packages: reactApi.packages, }; // docs/pages/component-name.json diff --git a/docs/scripts/getTypeScriptProjects.ts b/docs/scripts/getTypeScriptProjects.ts index 0efd8ad834729..14bbb88166cfd 100644 --- a/docs/scripts/getTypeScriptProjects.ts +++ b/docs/scripts/getTypeScriptProjects.ts @@ -245,6 +245,7 @@ export const getTypeScriptProjects = () => { }), getComponentsWithApiDoc: getComponentPaths({ folders: ['src'], + includeUnstableComponents: true, }), }), ); @@ -261,6 +262,7 @@ export const getTypeScriptProjects = () => { }), getComponentsWithApiDoc: getComponentPaths({ folders: ['src'], + includeUnstableComponents: true, }), }), ); diff --git a/docs/src/modules/components/ApiPage.js b/docs/src/modules/components/ApiPage.js index 7f5e0af521056..1b5e432640108 100644 --- a/docs/src/modules/components/ApiPage.js +++ b/docs/src/modules/components/ApiPage.js @@ -298,13 +298,13 @@ function ApiDocs(props) { if (source === '@mui/x-date-pickers' || source === '@mui/x-date-pickers-pro') { packages.forEach((pkg) => { // e.g. import DatePicker from '@mui/x-date-pickers/DatePicker'; - imports.push(`import ${componentName} from '${pkg}/${componentName}';`); + imports.push(`import { ${pkg.componentName} } from '${pkg.packageName}/${componentName}';`); }); } packages.forEach((pkg) => { // e.g. import { DatePicker } from '@mui/x-date-pickers'; - imports.push(`import { ${componentName} } from '${pkg}';`); + imports.push(`import { ${pkg.componentName} } from '${pkg.packageName}';`); }); return ( diff --git a/docs/translations/api-docs/date-pickers/date-field-pt.json b/docs/translations/api-docs/date-pickers/date-field-pt.json new file mode 100644 index 0000000000000..d2249bcb04bff --- /dev/null +++ b/docs/translations/api-docs/date-pickers/date-field-pt.json @@ -0,0 +1,24 @@ +{ + "componentDescription": "", + "propDescriptions": { + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { "Input": "Input rendered." } +} diff --git a/docs/translations/api-docs/date-pickers/date-field-zh.json b/docs/translations/api-docs/date-pickers/date-field-zh.json new file mode 100644 index 0000000000000..d2249bcb04bff --- /dev/null +++ b/docs/translations/api-docs/date-pickers/date-field-zh.json @@ -0,0 +1,24 @@ +{ + "componentDescription": "", + "propDescriptions": { + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { "Input": "Input rendered." } +} diff --git a/docs/translations/api-docs/date-pickers/date-field.json b/docs/translations/api-docs/date-pickers/date-field.json new file mode 100644 index 0000000000000..d2249bcb04bff --- /dev/null +++ b/docs/translations/api-docs/date-pickers/date-field.json @@ -0,0 +1,24 @@ +{ + "componentDescription": "", + "propDescriptions": { + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { "Input": "Input rendered." } +} diff --git a/docs/translations/api-docs/date-pickers/date-time-field-pt.json b/docs/translations/api-docs/date-pickers/date-time-field-pt.json new file mode 100644 index 0000000000000..7dcd23b39c25f --- /dev/null +++ b/docs/translations/api-docs/date-pickers/date-time-field-pt.json @@ -0,0 +1,32 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { "Input": "Input rendered." } +} diff --git a/docs/translations/api-docs/date-pickers/date-time-field-zh.json b/docs/translations/api-docs/date-pickers/date-time-field-zh.json new file mode 100644 index 0000000000000..7dcd23b39c25f --- /dev/null +++ b/docs/translations/api-docs/date-pickers/date-time-field-zh.json @@ -0,0 +1,32 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { "Input": "Input rendered." } +} diff --git a/docs/translations/api-docs/date-pickers/date-time-field.json b/docs/translations/api-docs/date-pickers/date-time-field.json new file mode 100644 index 0000000000000..7dcd23b39c25f --- /dev/null +++ b/docs/translations/api-docs/date-pickers/date-time-field.json @@ -0,0 +1,32 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { "Input": "Input rendered." } +} diff --git a/docs/translations/api-docs/date-pickers/desktop-next-date-picker-pt.json b/docs/translations/api-docs/date-pickers/desktop-next-date-picker-pt.json new file mode 100644 index 0000000000000..d61aaf8deb625 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/desktop-next-date-picker-pt.json @@ -0,0 +1,71 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop." + } +} diff --git a/docs/translations/api-docs/date-pickers/desktop-next-date-picker-zh.json b/docs/translations/api-docs/date-pickers/desktop-next-date-picker-zh.json new file mode 100644 index 0000000000000..d61aaf8deb625 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/desktop-next-date-picker-zh.json @@ -0,0 +1,71 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop." + } +} diff --git a/docs/translations/api-docs/date-pickers/desktop-next-date-picker.json b/docs/translations/api-docs/date-pickers/desktop-next-date-picker.json new file mode 100644 index 0000000000000..d61aaf8deb625 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/desktop-next-date-picker.json @@ -0,0 +1,71 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop." + } +} diff --git a/docs/translations/api-docs/date-pickers/desktop-next-date-range-picker-pt.json b/docs/translations/api-docs/date-pickers/desktop-next-date-range-picker-pt.json new file mode 100644 index 0000000000000..6f033ad511ad8 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/desktop-next-date-range-picker-pt.json @@ -0,0 +1,63 @@ +{ + "componentDescription": "", + "propDescriptions": { + "calendars": "The number of calendars to render on desktop.", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={[null, null]}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disableAutoMonthSwitching": "If true, after selecting start date calendar will not automatically switch to the month of end date.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "open": "Control the popup or dialog open state.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "Day": "Custom component for day in range pickers.\nCheck the DateRangePickersDay component.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "FieldRoot": "", + "FieldSeparator": "", + "Input": "", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "" + } +} diff --git a/docs/translations/api-docs/date-pickers/desktop-next-date-range-picker-zh.json b/docs/translations/api-docs/date-pickers/desktop-next-date-range-picker-zh.json new file mode 100644 index 0000000000000..6f033ad511ad8 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/desktop-next-date-range-picker-zh.json @@ -0,0 +1,63 @@ +{ + "componentDescription": "", + "propDescriptions": { + "calendars": "The number of calendars to render on desktop.", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={[null, null]}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disableAutoMonthSwitching": "If true, after selecting start date calendar will not automatically switch to the month of end date.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "open": "Control the popup or dialog open state.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "Day": "Custom component for day in range pickers.\nCheck the DateRangePickersDay component.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "FieldRoot": "", + "FieldSeparator": "", + "Input": "", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "" + } +} diff --git a/docs/translations/api-docs/date-pickers/desktop-next-date-range-picker.json b/docs/translations/api-docs/date-pickers/desktop-next-date-range-picker.json new file mode 100644 index 0000000000000..6f033ad511ad8 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/desktop-next-date-range-picker.json @@ -0,0 +1,63 @@ +{ + "componentDescription": "", + "propDescriptions": { + "calendars": "The number of calendars to render on desktop.", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={[null, null]}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disableAutoMonthSwitching": "If true, after selecting start date calendar will not automatically switch to the month of end date.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "open": "Control the popup or dialog open state.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "Day": "Custom component for day in range pickers.\nCheck the DateRangePickersDay component.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "FieldRoot": "", + "FieldSeparator": "", + "Input": "", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "" + } +} diff --git a/docs/translations/api-docs/date-pickers/desktop-next-date-time-picker-pt.json b/docs/translations/api-docs/date-pickers/desktop-next-date-time-picker-pt.json new file mode 100644 index 0000000000000..cf9f7445c2dd6 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/desktop-next-date-time-picker-pt.json @@ -0,0 +1,81 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Tabs": "Tabs enabling toggling between date and time pickers.", + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop." + } +} diff --git a/docs/translations/api-docs/date-pickers/desktop-next-date-time-picker-zh.json b/docs/translations/api-docs/date-pickers/desktop-next-date-time-picker-zh.json new file mode 100644 index 0000000000000..cf9f7445c2dd6 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/desktop-next-date-time-picker-zh.json @@ -0,0 +1,81 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Tabs": "Tabs enabling toggling between date and time pickers.", + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop." + } +} diff --git a/docs/translations/api-docs/date-pickers/desktop-next-date-time-picker.json b/docs/translations/api-docs/date-pickers/desktop-next-date-time-picker.json new file mode 100644 index 0000000000000..cf9f7445c2dd6 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/desktop-next-date-time-picker.json @@ -0,0 +1,81 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Tabs": "Tabs enabling toggling between date and time pickers.", + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop." + } +} diff --git a/docs/translations/api-docs/date-pickers/desktop-next-time-picker-pt.json b/docs/translations/api-docs/date-pickers/desktop-next-time-picker-pt.json new file mode 100644 index 0000000000000..3fdc75391ec27 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/desktop-next-time-picker-pt.json @@ -0,0 +1,59 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop." + } +} diff --git a/docs/translations/api-docs/date-pickers/desktop-next-time-picker-zh.json b/docs/translations/api-docs/date-pickers/desktop-next-time-picker-zh.json new file mode 100644 index 0000000000000..3fdc75391ec27 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/desktop-next-time-picker-zh.json @@ -0,0 +1,59 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop." + } +} diff --git a/docs/translations/api-docs/date-pickers/desktop-next-time-picker.json b/docs/translations/api-docs/date-pickers/desktop-next-time-picker.json new file mode 100644 index 0000000000000..3fdc75391ec27 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/desktop-next-time-picker.json @@ -0,0 +1,59 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop." + } +} diff --git a/docs/translations/api-docs/date-pickers/mobile-next-date-picker-pt.json b/docs/translations/api-docs/date-pickers/mobile-next-date-picker-pt.json new file mode 100644 index 0000000000000..afa7d88db6d28 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/mobile-next-date-picker-pt.json @@ -0,0 +1,66 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "Input": "Component used to render an HTML input inside the field.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition.", + "Field": "Component used to enter the date with the keyboard." + } +} diff --git a/docs/translations/api-docs/date-pickers/mobile-next-date-picker-zh.json b/docs/translations/api-docs/date-pickers/mobile-next-date-picker-zh.json new file mode 100644 index 0000000000000..afa7d88db6d28 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/mobile-next-date-picker-zh.json @@ -0,0 +1,66 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "Input": "Component used to render an HTML input inside the field.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition.", + "Field": "Component used to enter the date with the keyboard." + } +} diff --git a/docs/translations/api-docs/date-pickers/mobile-next-date-picker.json b/docs/translations/api-docs/date-pickers/mobile-next-date-picker.json new file mode 100644 index 0000000000000..afa7d88db6d28 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/mobile-next-date-picker.json @@ -0,0 +1,66 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "Input": "Component used to render an HTML input inside the field.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition.", + "Field": "Component used to enter the date with the keyboard." + } +} diff --git a/docs/translations/api-docs/date-pickers/mobile-next-date-range-picker-pt.json b/docs/translations/api-docs/date-pickers/mobile-next-date-range-picker-pt.json new file mode 100644 index 0000000000000..6d6865ab64d2a --- /dev/null +++ b/docs/translations/api-docs/date-pickers/mobile-next-date-range-picker-pt.json @@ -0,0 +1,61 @@ +{ + "componentDescription": "", + "propDescriptions": { + "calendars": "The number of calendars to render on desktop.", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={[null, null]}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disableAutoMonthSwitching": "If true, after selecting start date calendar will not automatically switch to the month of end date.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "open": "Control the popup or dialog open state.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "Day": "Custom component for day in range pickers.\nCheck the DateRangePickersDay component.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "FieldRoot": "", + "FieldSeparator": "", + "Input": "", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition.", + "Field": "" + } +} diff --git a/docs/translations/api-docs/date-pickers/mobile-next-date-range-picker-zh.json b/docs/translations/api-docs/date-pickers/mobile-next-date-range-picker-zh.json new file mode 100644 index 0000000000000..6d6865ab64d2a --- /dev/null +++ b/docs/translations/api-docs/date-pickers/mobile-next-date-range-picker-zh.json @@ -0,0 +1,61 @@ +{ + "componentDescription": "", + "propDescriptions": { + "calendars": "The number of calendars to render on desktop.", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={[null, null]}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disableAutoMonthSwitching": "If true, after selecting start date calendar will not automatically switch to the month of end date.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "open": "Control the popup or dialog open state.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "Day": "Custom component for day in range pickers.\nCheck the DateRangePickersDay component.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "FieldRoot": "", + "FieldSeparator": "", + "Input": "", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition.", + "Field": "" + } +} diff --git a/docs/translations/api-docs/date-pickers/mobile-next-date-range-picker.json b/docs/translations/api-docs/date-pickers/mobile-next-date-range-picker.json new file mode 100644 index 0000000000000..6d6865ab64d2a --- /dev/null +++ b/docs/translations/api-docs/date-pickers/mobile-next-date-range-picker.json @@ -0,0 +1,61 @@ +{ + "componentDescription": "", + "propDescriptions": { + "calendars": "The number of calendars to render on desktop.", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={[null, null]}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disableAutoMonthSwitching": "If true, after selecting start date calendar will not automatically switch to the month of end date.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "open": "Control the popup or dialog open state.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "Day": "Custom component for day in range pickers.\nCheck the DateRangePickersDay component.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "FieldRoot": "", + "FieldSeparator": "", + "Input": "", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition.", + "Field": "" + } +} diff --git a/docs/translations/api-docs/date-pickers/mobile-next-date-time-picker-pt.json b/docs/translations/api-docs/date-pickers/mobile-next-date-time-picker-pt.json new file mode 100644 index 0000000000000..9295362926f9e --- /dev/null +++ b/docs/translations/api-docs/date-pickers/mobile-next-date-time-picker-pt.json @@ -0,0 +1,76 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Tabs": "Tabs enabling toggling between date and time pickers.", + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "Input": "Component used to render an HTML input inside the field.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition.", + "Field": "Component used to enter the date with the keyboard." + } +} diff --git a/docs/translations/api-docs/date-pickers/mobile-next-date-time-picker-zh.json b/docs/translations/api-docs/date-pickers/mobile-next-date-time-picker-zh.json new file mode 100644 index 0000000000000..9295362926f9e --- /dev/null +++ b/docs/translations/api-docs/date-pickers/mobile-next-date-time-picker-zh.json @@ -0,0 +1,76 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Tabs": "Tabs enabling toggling between date and time pickers.", + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "Input": "Component used to render an HTML input inside the field.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition.", + "Field": "Component used to enter the date with the keyboard." + } +} diff --git a/docs/translations/api-docs/date-pickers/mobile-next-date-time-picker.json b/docs/translations/api-docs/date-pickers/mobile-next-date-time-picker.json new file mode 100644 index 0000000000000..9295362926f9e --- /dev/null +++ b/docs/translations/api-docs/date-pickers/mobile-next-date-time-picker.json @@ -0,0 +1,76 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Tabs": "Tabs enabling toggling between date and time pickers.", + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "Input": "Component used to render an HTML input inside the field.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition.", + "Field": "Component used to enter the date with the keyboard." + } +} diff --git a/docs/translations/api-docs/date-pickers/mobile-next-time-picker-pt.json b/docs/translations/api-docs/date-pickers/mobile-next-time-picker-pt.json new file mode 100644 index 0000000000000..31d9a8c8c3949 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/mobile-next-time-picker-pt.json @@ -0,0 +1,54 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "Input": "Component used to render an HTML input inside the field.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition.", + "Field": "Component used to enter the date with the keyboard." + } +} diff --git a/docs/translations/api-docs/date-pickers/mobile-next-time-picker-zh.json b/docs/translations/api-docs/date-pickers/mobile-next-time-picker-zh.json new file mode 100644 index 0000000000000..31d9a8c8c3949 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/mobile-next-time-picker-zh.json @@ -0,0 +1,54 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "Input": "Component used to render an HTML input inside the field.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition.", + "Field": "Component used to enter the date with the keyboard." + } +} diff --git a/docs/translations/api-docs/date-pickers/mobile-next-time-picker.json b/docs/translations/api-docs/date-pickers/mobile-next-time-picker.json new file mode 100644 index 0000000000000..31d9a8c8c3949 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/mobile-next-time-picker.json @@ -0,0 +1,54 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "Input": "Component used to render an HTML input inside the field.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition.", + "Field": "Component used to enter the date with the keyboard." + } +} diff --git a/docs/translations/api-docs/date-pickers/multi-input-date-range-field-pt.json b/docs/translations/api-docs/date-pickers/multi-input-date-range-field-pt.json new file mode 100644 index 0000000000000..a66094d22dcec --- /dev/null +++ b/docs/translations/api-docs/date-pickers/multi-input-date-range-field-pt.json @@ -0,0 +1,26 @@ +{ + "componentDescription": "", + "propDescriptions": { + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Root": "Element rendered at the root.", + "Input": "Input rendered for the start or end date.", + "Separator": "Element rendered between the two inputs." + } +} diff --git a/docs/translations/api-docs/date-pickers/multi-input-date-range-field-zh.json b/docs/translations/api-docs/date-pickers/multi-input-date-range-field-zh.json new file mode 100644 index 0000000000000..a66094d22dcec --- /dev/null +++ b/docs/translations/api-docs/date-pickers/multi-input-date-range-field-zh.json @@ -0,0 +1,26 @@ +{ + "componentDescription": "", + "propDescriptions": { + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Root": "Element rendered at the root.", + "Input": "Input rendered for the start or end date.", + "Separator": "Element rendered between the two inputs." + } +} diff --git a/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json b/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json new file mode 100644 index 0000000000000..a66094d22dcec --- /dev/null +++ b/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json @@ -0,0 +1,26 @@ +{ + "componentDescription": "", + "propDescriptions": { + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Root": "Element rendered at the root.", + "Input": "Input rendered for the start or end date.", + "Separator": "Element rendered between the two inputs." + } +} diff --git a/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field-pt.json b/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field-pt.json new file mode 100644 index 0000000000000..e27817d241010 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field-pt.json @@ -0,0 +1,34 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Root": "Element rendered at the root.", + "Input": "Input rendered for the start or end date.", + "Separator": "Element rendered between the two inputs." + } +} diff --git a/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field-zh.json b/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field-zh.json new file mode 100644 index 0000000000000..e27817d241010 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field-zh.json @@ -0,0 +1,34 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Root": "Element rendered at the root.", + "Input": "Input rendered for the start or end date.", + "Separator": "Element rendered between the two inputs." + } +} diff --git a/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json b/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json new file mode 100644 index 0000000000000..e27817d241010 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json @@ -0,0 +1,34 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Root": "Element rendered at the root.", + "Input": "Input rendered for the start or end date.", + "Separator": "Element rendered between the two inputs." + } +} diff --git a/docs/translations/api-docs/date-pickers/multi-input-time-range-field-pt.json b/docs/translations/api-docs/date-pickers/multi-input-time-range-field-pt.json new file mode 100644 index 0000000000000..a863c332cff24 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/multi-input-time-range-field-pt.json @@ -0,0 +1,29 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Root": "Element rendered at the root.", + "Input": "Input rendered for the start or end date.", + "Separator": "Element rendered between the two inputs." + } +} diff --git a/docs/translations/api-docs/date-pickers/multi-input-time-range-field-zh.json b/docs/translations/api-docs/date-pickers/multi-input-time-range-field-zh.json new file mode 100644 index 0000000000000..a863c332cff24 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/multi-input-time-range-field-zh.json @@ -0,0 +1,29 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Root": "Element rendered at the root.", + "Input": "Input rendered for the start or end date.", + "Separator": "Element rendered between the two inputs." + } +} diff --git a/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json b/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json new file mode 100644 index 0000000000000..a863c332cff24 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json @@ -0,0 +1,29 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Root": "Element rendered at the root.", + "Input": "Input rendered for the start or end date.", + "Separator": "Element rendered between the two inputs." + } +} diff --git a/docs/translations/api-docs/date-pickers/next-date-picker-pt.json b/docs/translations/api-docs/date-pickers/next-date-picker-pt.json new file mode 100644 index 0000000000000..6cbbb6e98426c --- /dev/null +++ b/docs/translations/api-docs/date-pickers/next-date-picker-pt.json @@ -0,0 +1,75 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "desktopModeMediaQuery": "CSS media query when Mobile mode will be changed to Desktop.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition." + } +} diff --git a/docs/translations/api-docs/date-pickers/next-date-picker-zh.json b/docs/translations/api-docs/date-pickers/next-date-picker-zh.json new file mode 100644 index 0000000000000..6cbbb6e98426c --- /dev/null +++ b/docs/translations/api-docs/date-pickers/next-date-picker-zh.json @@ -0,0 +1,75 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "desktopModeMediaQuery": "CSS media query when Mobile mode will be changed to Desktop.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition." + } +} diff --git a/docs/translations/api-docs/date-pickers/next-date-picker.json b/docs/translations/api-docs/date-pickers/next-date-picker.json new file mode 100644 index 0000000000000..6cbbb6e98426c --- /dev/null +++ b/docs/translations/api-docs/date-pickers/next-date-picker.json @@ -0,0 +1,75 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "desktopModeMediaQuery": "CSS media query when Mobile mode will be changed to Desktop.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition." + } +} diff --git a/docs/translations/api-docs/date-pickers/next-date-range-picker-pt.json b/docs/translations/api-docs/date-pickers/next-date-range-picker-pt.json new file mode 100644 index 0000000000000..01ef552563eb4 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/next-date-range-picker-pt.json @@ -0,0 +1,67 @@ +{ + "componentDescription": "", + "propDescriptions": { + "calendars": "The number of calendars to render on desktop.", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={[null, null]}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "desktopModeMediaQuery": "CSS media query when Mobile mode will be changed to Desktop.", + "disableAutoMonthSwitching": "If true, after selecting start date calendar will not automatically switch to the month of end date.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "open": "Control the popup or dialog open state.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "Day": "Custom component for day in range pickers.\nCheck the DateRangePickersDay component.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "FieldRoot": "", + "FieldSeparator": "", + "Input": "", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition." + } +} diff --git a/docs/translations/api-docs/date-pickers/next-date-range-picker-zh.json b/docs/translations/api-docs/date-pickers/next-date-range-picker-zh.json new file mode 100644 index 0000000000000..01ef552563eb4 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/next-date-range-picker-zh.json @@ -0,0 +1,67 @@ +{ + "componentDescription": "", + "propDescriptions": { + "calendars": "The number of calendars to render on desktop.", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={[null, null]}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "desktopModeMediaQuery": "CSS media query when Mobile mode will be changed to Desktop.", + "disableAutoMonthSwitching": "If true, after selecting start date calendar will not automatically switch to the month of end date.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "open": "Control the popup or dialog open state.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "Day": "Custom component for day in range pickers.\nCheck the DateRangePickersDay component.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "FieldRoot": "", + "FieldSeparator": "", + "Input": "", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition." + } +} diff --git a/docs/translations/api-docs/date-pickers/next-date-range-picker.json b/docs/translations/api-docs/date-pickers/next-date-range-picker.json new file mode 100644 index 0000000000000..01ef552563eb4 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/next-date-range-picker.json @@ -0,0 +1,67 @@ +{ + "componentDescription": "", + "propDescriptions": { + "calendars": "The number of calendars to render on desktop.", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={[null, null]}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "desktopModeMediaQuery": "CSS media query when Mobile mode will be changed to Desktop.", + "disableAutoMonthSwitching": "If true, after selecting start date calendar will not automatically switch to the month of end date.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "open": "Control the popup or dialog open state.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "Day": "Custom component for day in range pickers.\nCheck the DateRangePickersDay component.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "FieldRoot": "", + "FieldSeparator": "", + "Input": "", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition." + } +} diff --git a/docs/translations/api-docs/date-pickers/next-date-time-picker-pt.json b/docs/translations/api-docs/date-pickers/next-date-time-picker-pt.json new file mode 100644 index 0000000000000..3b644da17b764 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/next-date-time-picker-pt.json @@ -0,0 +1,85 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "desktopModeMediaQuery": "CSS media query when Mobile mode will be changed to Desktop.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Tabs": "Tabs enabling toggling between date and time pickers.", + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition." + } +} diff --git a/docs/translations/api-docs/date-pickers/next-date-time-picker-zh.json b/docs/translations/api-docs/date-pickers/next-date-time-picker-zh.json new file mode 100644 index 0000000000000..3b644da17b764 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/next-date-time-picker-zh.json @@ -0,0 +1,85 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "desktopModeMediaQuery": "CSS media query when Mobile mode will be changed to Desktop.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Tabs": "Tabs enabling toggling between date and time pickers.", + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition." + } +} diff --git a/docs/translations/api-docs/date-pickers/next-date-time-picker.json b/docs/translations/api-docs/date-pickers/next-date-time-picker.json new file mode 100644 index 0000000000000..3b644da17b764 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/next-date-time-picker.json @@ -0,0 +1,85 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "desktopModeMediaQuery": "CSS media query when Mobile mode will be changed to Desktop.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Tabs": "Tabs enabling toggling between date and time pickers.", + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition." + } +} diff --git a/docs/translations/api-docs/date-pickers/next-time-picker-pt.json b/docs/translations/api-docs/date-pickers/next-time-picker-pt.json new file mode 100644 index 0000000000000..754335d2b4af4 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/next-time-picker-pt.json @@ -0,0 +1,63 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Used when the component is not controlled.", + "desktopModeMediaQuery": "CSS media query when Mobile mode will be changed to Desktop.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition." + } +} diff --git a/docs/translations/api-docs/date-pickers/next-time-picker-zh.json b/docs/translations/api-docs/date-pickers/next-time-picker-zh.json new file mode 100644 index 0000000000000..754335d2b4af4 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/next-time-picker-zh.json @@ -0,0 +1,63 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Used when the component is not controlled.", + "desktopModeMediaQuery": "CSS media query when Mobile mode will be changed to Desktop.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition." + } +} diff --git a/docs/translations/api-docs/date-pickers/next-time-picker.json b/docs/translations/api-docs/date-pickers/next-time-picker.json new file mode 100644 index 0000000000000..754335d2b4af4 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/next-time-picker.json @@ -0,0 +1,63 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "closeOnSelect": "If true the popup or dialog will close after submitting full date.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Used when the component is not controlled.", + "desktopModeMediaQuery": "CSS media query when Mobile mode will be changed to Desktop.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disableOpenPicker": "Do not render open picker button (renders only the field).", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s). Defaults to localized format based on the used views.", + "inputRef": "Pass a ref to the input element.", + "label": "The label content.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "open": "Control the popup or dialog open state.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component).", + "Input": "Component used to render an HTML input inside the field.", + "InputAdornment": "Component displayed on the start or end input adornment used to open the picker on desktop.", + "OpenPickerButton": "Button to open the picker on desktop.", + "DesktopPaper": "Custom component for the paper rendered inside the desktop picker's Popper.", + "DesktopTransition": "Custom component for the desktop popper Transition.", + "DesktopTrapFocus": "Custom component for trapping the focus inside the views on desktop.", + "Popper": "Custom component for the popper inside which the views are rendered on desktop.", + "Field": "Component used to enter the date with the keyboard.", + "OpenPickerIcon": "Icon displayed in the open picker button on desktop.", + "Dialog": "Custom component for the dialog inside which the views are rendered on mobile.", + "MobilePaper": "Custom component for the paper rendered inside the mobile picker's Dialog.", + "MobileTransition": "Custom component for the mobile dialog Transition." + } +} diff --git a/docs/translations/api-docs/date-pickers/single-input-date-range-field-pt.json b/docs/translations/api-docs/date-pickers/single-input-date-range-field-pt.json new file mode 100644 index 0000000000000..5ba58336a0068 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/single-input-date-range-field-pt.json @@ -0,0 +1,22 @@ +{ + "componentDescription": "", + "propDescriptions": { + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { "Input": "Input rendered." } +} diff --git a/docs/translations/api-docs/date-pickers/single-input-date-range-field-zh.json b/docs/translations/api-docs/date-pickers/single-input-date-range-field-zh.json new file mode 100644 index 0000000000000..5ba58336a0068 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/single-input-date-range-field-zh.json @@ -0,0 +1,22 @@ +{ + "componentDescription": "", + "propDescriptions": { + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { "Input": "Input rendered." } +} diff --git a/docs/translations/api-docs/date-pickers/single-input-date-range-field.json b/docs/translations/api-docs/date-pickers/single-input-date-range-field.json new file mode 100644 index 0000000000000..5ba58336a0068 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/single-input-date-range-field.json @@ -0,0 +1,22 @@ +{ + "componentDescription": "", + "propDescriptions": { + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { "Input": "Input rendered." } +} diff --git a/docs/translations/api-docs/date-pickers/static-next-date-picker-pt.json b/docs/translations/api-docs/date-pickers/static-next-date-picker-pt.json new file mode 100644 index 0000000000000..c19779740d890 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/static-next-date-picker-pt.json @@ -0,0 +1,53 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component)." + } +} diff --git a/docs/translations/api-docs/date-pickers/static-next-date-picker-zh.json b/docs/translations/api-docs/date-pickers/static-next-date-picker-zh.json new file mode 100644 index 0000000000000..c19779740d890 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/static-next-date-picker-zh.json @@ -0,0 +1,53 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component)." + } +} diff --git a/docs/translations/api-docs/date-pickers/static-next-date-picker.json b/docs/translations/api-docs/date-pickers/static-next-date-picker.json new file mode 100644 index 0000000000000..c19779740d890 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/static-next-date-picker.json @@ -0,0 +1,53 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component)." + } +} diff --git a/docs/translations/api-docs/date-pickers/static-next-date-range-picker-pt.json b/docs/translations/api-docs/date-pickers/static-next-date-range-picker-pt.json new file mode 100644 index 0000000000000..e63909ddff6ef --- /dev/null +++ b/docs/translations/api-docs/date-pickers/static-next-date-range-picker-pt.json @@ -0,0 +1,48 @@ +{ + "componentDescription": "", + "propDescriptions": { + "calendars": "The number of calendars to render.", + "className": "Class name applied to the root element.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={[null, null]}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disableAutoMonthSwitching": "If true, after selecting start date calendar will not automatically switch to the month of end date.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "Day": "Custom component for day in range pickers.\nCheck the DateRangePickersDay component.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component)." + } +} diff --git a/docs/translations/api-docs/date-pickers/static-next-date-range-picker-zh.json b/docs/translations/api-docs/date-pickers/static-next-date-range-picker-zh.json new file mode 100644 index 0000000000000..e63909ddff6ef --- /dev/null +++ b/docs/translations/api-docs/date-pickers/static-next-date-range-picker-zh.json @@ -0,0 +1,48 @@ +{ + "componentDescription": "", + "propDescriptions": { + "calendars": "The number of calendars to render.", + "className": "Class name applied to the root element.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={[null, null]}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disableAutoMonthSwitching": "If true, after selecting start date calendar will not automatically switch to the month of end date.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "Day": "Custom component for day in range pickers.\nCheck the DateRangePickersDay component.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component)." + } +} diff --git a/docs/translations/api-docs/date-pickers/static-next-date-range-picker.json b/docs/translations/api-docs/date-pickers/static-next-date-range-picker.json new file mode 100644 index 0000000000000..e63909ddff6ef --- /dev/null +++ b/docs/translations/api-docs/date-pickers/static-next-date-range-picker.json @@ -0,0 +1,48 @@ +{ + "componentDescription": "", + "propDescriptions": { + "calendars": "The number of calendars to render.", + "className": "Class name applied to the root element.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={[null, null]}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disableAutoMonthSwitching": "If true, after selecting start date calendar will not automatically switch to the month of end date.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "minDate": "Minimal selectable date.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "shouldDisableDate": "Disable specific date. @DateIOType

                                                                                          Signature:
                                                                                          function(day: TDate, position: string) => boolean
                                                                                          day: The date to test.
                                                                                          position: The date to test, 'start' or 'end'.
                                                                                          returns (boolean): Returns true if the date should be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "Day": "Custom component for day in range pickers.\nCheck the DateRangePickersDay component.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component)." + } +} diff --git a/docs/translations/api-docs/date-pickers/static-next-date-time-picker-pt.json b/docs/translations/api-docs/date-pickers/static-next-date-time-picker-pt.json new file mode 100644 index 0000000000000..c051876ef6101 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/static-next-date-time-picker-pt.json @@ -0,0 +1,63 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Tabs": "Tabs enabling toggling between date and time pickers.", + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component)." + } +} diff --git a/docs/translations/api-docs/date-pickers/static-next-date-time-picker-zh.json b/docs/translations/api-docs/date-pickers/static-next-date-time-picker-zh.json new file mode 100644 index 0000000000000..c051876ef6101 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/static-next-date-time-picker-zh.json @@ -0,0 +1,63 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Tabs": "Tabs enabling toggling between date and time pickers.", + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component)." + } +} diff --git a/docs/translations/api-docs/date-pickers/static-next-date-time-picker.json b/docs/translations/api-docs/date-pickers/static-next-date-time-picker.json new file mode 100644 index 0000000000000..c051876ef6101 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/static-next-date-time-picker.json @@ -0,0 +1,63 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "dayOfWeekFormatter": "Formats the day of week displayed in the calendar header.

                                                                                          Signature:
                                                                                          function(day: string) => string
                                                                                          day: The day of week provided by the adapter's method getWeekdays.
                                                                                          returns (string): The name to display.", + "defaultCalendarMonth": "Default calendar month displayed when value={null}.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableHighlightToday": "If true, today's date is rendering without highlighting with circle.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode.", + "displayWeekNumber": "If true, the week number will be display in the calendar.", + "fixedWeekNumber": "Calendar will show more weeks in order to match this value. Put it to 6 for having fix number of week in Gregorian calendars", + "loading": "If true renders LoadingComponent in calendar instead of calendar view. Can be used to preload information and show it in calendar.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxDate": "Maximal selectable date.", + "maxDateTime": "Maximal selectable moment of time with binding to date, to set max time in each day use maxTime.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minDate": "Minimal selectable date.", + "minDateTime": "Minimal selectable moment of time with binding to date, to set min time in each day use minTime.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onMonthChange": "Callback firing on month change @DateIOType.

                                                                                          Signature:
                                                                                          function(month: TDate) => void | Promise
                                                                                          month: The new month.
                                                                                          returns (void | Promise): -", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "onYearChange": "Callback firing on year change @DateIOType.

                                                                                          Signature:
                                                                                          function(year: TDate) => void
                                                                                          year: The new year.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "reduceAnimations": "Disable heavy animations.", + "renderLoading": "Component displaying when passed loading true.

                                                                                          Signature:
                                                                                          function() => React.ReactNode

                                                                                          returns (React.ReactNode): The node to render when loading.", + "shouldDisableDate": "Disable specific date.

                                                                                          Signature:
                                                                                          function(day: TDate) => boolean
                                                                                          day: The date to test.
                                                                                          returns (boolean): If true the date will be disabled.", + "shouldDisableMonth": "Disable specific month.

                                                                                          Signature:
                                                                                          function(month: TDate) => boolean
                                                                                          month: The month to test.
                                                                                          returns (boolean): If true the month will be disabled.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "shouldDisableYear": "Disable specific year.

                                                                                          Signature:
                                                                                          function(year: TDate) => boolean
                                                                                          year: The year to test.
                                                                                          returns (boolean): If true the year will be disabled.", + "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Tabs": "Tabs enabling toggling between date and time pickers.", + "Toolbar": "Custom component for the toolbar rendered above the views.", + "SwitchViewButton": "Button displayed to switch between different calendar views.", + "SwitchViewIcon": "Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is 'year'.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "Day": "Custom component for day.\nCheck the PickersDay component.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component)." + } +} diff --git a/docs/translations/api-docs/date-pickers/static-next-time-picker-pt.json b/docs/translations/api-docs/date-pickers/static-next-time-picker-pt.json new file mode 100644 index 0000000000000..39011f2fd47de --- /dev/null +++ b/docs/translations/api-docs/date-pickers/static-next-time-picker-pt.json @@ -0,0 +1,41 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component)." + } +} diff --git a/docs/translations/api-docs/date-pickers/static-next-time-picker-zh.json b/docs/translations/api-docs/date-pickers/static-next-time-picker-zh.json new file mode 100644 index 0000000000000..39011f2fd47de --- /dev/null +++ b/docs/translations/api-docs/date-pickers/static-next-time-picker-zh.json @@ -0,0 +1,41 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component)." + } +} diff --git a/docs/translations/api-docs/date-pickers/static-next-time-picker.json b/docs/translations/api-docs/date-pickers/static-next-time-picker.json new file mode 100644 index 0000000000000..39011f2fd47de --- /dev/null +++ b/docs/translations/api-docs/date-pickers/static-next-time-picker.json @@ -0,0 +1,41 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "ampmInClock": "Display ampm controls under the clock (instead of in the toolbar).", + "className": "Class name applied to the root element.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Used when the component is not controlled.", + "disabled": "If true, the picker and text field are disabled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode.", + "localeText": "Locale for components texts. Allows overriding texts coming from LocalizationProvider and theme.", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onAccept": "Callback fired when the value is accepted.

                                                                                          Signature:
                                                                                          function(value: TValue) => void
                                                                                          value: The value that was just accepted.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes. If the error has a non-null value, then the TextField will be rendered in error state.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error describing why the current value is not valid.
                                                                                          value: The value associated to the error.", + "onViewChange": "Callback fired on view change.

                                                                                          Signature:
                                                                                          function(view: View) => void
                                                                                          view: The new view.", + "openTo": "First view to show.", + "orientation": "Force rendering in particular orientation.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "showToolbar": "If true, the toolbar will be visible.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Used when the component is controlled.", + "views": "Array of views to show." + }, + "classDescriptions": {}, + "slotDescriptions": { + "Toolbar": "Custom component for the toolbar rendered above the views.", + "PreviousIconButton": "Button allowing to switch to the left view.", + "NextIconButton": "Button allowing to switch to the right view.", + "LeftArrowIcon": "Icon displayed in the left view switch button.", + "RightArrowIcon": "Icon displayed in the right view switch button.", + "ActionBar": "Custom component for the action bar, it is placed bellow the picker views.", + "PaperContent": "Custom component wrapping the views of the desktop and static pickers (it is the direct child of the Paper component)." + } +} diff --git a/docs/translations/api-docs/date-pickers/time-field-pt.json b/docs/translations/api-docs/date-pickers/time-field-pt.json new file mode 100644 index 0000000000000..57fe2b1c3d9f7 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/time-field-pt.json @@ -0,0 +1,25 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { "Input": "Input rendered." } +} diff --git a/docs/translations/api-docs/date-pickers/time-field-zh.json b/docs/translations/api-docs/date-pickers/time-field-zh.json new file mode 100644 index 0000000000000..57fe2b1c3d9f7 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/time-field-zh.json @@ -0,0 +1,25 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { "Input": "Input rendered." } +} diff --git a/docs/translations/api-docs/date-pickers/time-field.json b/docs/translations/api-docs/date-pickers/time-field.json new file mode 100644 index 0000000000000..57fe2b1c3d9f7 --- /dev/null +++ b/docs/translations/api-docs/date-pickers/time-field.json @@ -0,0 +1,25 @@ +{ + "componentDescription": "", + "propDescriptions": { + "ampm": "12h/24h view for hour selection clock.", + "components": "Overrideable components.", + "componentsProps": "The props used for each component slot.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableFuture": "If true disable values before the current date for date components, time for time components and both for date time components.", + "disableIgnoringDatePartForTimeValidation": "Do not ignore date part when validating min/max time.", + "disablePast": "If true disable values after the current date for date components, time for time components and both for date time components.", + "format": "Format of the date when rendered in the input(s).", + "maxTime": "Maximal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minTime": "Minimal selectable time. The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true.", + "minutesStep": "Step over minutes.", + "onChange": "Callback fired when the value changes.

                                                                                          Signature:
                                                                                          function(value: TValue, The: FieldChangeHandlerContext<TError>) => void
                                                                                          value: The new value.
                                                                                          The: context containing the validation result of the current value.", + "onError": "Callback fired when the error associated to the current value changes.

                                                                                          Signature:
                                                                                          function(error: TError, value: TValue) => void
                                                                                          error: The new error.
                                                                                          value: The value associated to the error.", + "onSelectedSectionsChange": "Callback fired when the selected sections change.

                                                                                          Signature:
                                                                                          function(newValue: FieldSelectedSections) => void
                                                                                          newValue: The new selected sections.", + "readOnly": "It prevents the user from changing the value of the field (not from interacting with the field).", + "selectedSections": "The currently selected sections. This prop accept four formats: 1. If a number is provided, the section at this index will be selected. 2. If an object with a startIndex and endIndex properties are provided, the sections between those two indexes will be selected. 3. If a string of type MuiDateSectionName is provided, the first section with that name will be selected. 4. If null is provided, no section will be selected If not provided, the selected sections will be handled internally.", + "shouldDisableTime": "Disable specific time.

                                                                                          Signature:
                                                                                          function(timeValue: number, view: TimeView) => boolean
                                                                                          timeValue: The value to check.
                                                                                          view: The clock type of the timeValue.
                                                                                          returns (boolean): If true the time will be disabled.", + "value": "The selected value. Used when the component is controlled." + }, + "classDescriptions": {}, + "slotDescriptions": { "Input": "Input rendered." } +} From dacd584cd29bde1d0247a8dfbe45a010162457ee Mon Sep 17 00:00:00 2001 From: delangle Date: Thu, 24 Nov 2022 13:20:33 +0100 Subject: [PATCH 2/2] Fix --- docs/data/pages.ts | 5 +++++ docs/pages/x/api/date-pickers/index.md | 1 + 2 files changed, 6 insertions(+) diff --git a/docs/data/pages.ts b/docs/data/pages.ts index d8478770d553d..778fd802ffe1e 100644 --- a/docs/data/pages.ts +++ b/docs/data/pages.ts @@ -257,6 +257,11 @@ const pages: MuiPage[] = [ title: 'DateRangePicker', plan: 'pro', }, + { + pathname: '/x/api/date-pickers/date-range-calendar', + title: 'DateRangeCalendar', + plan: 'pro', + }, { pathname: '/x/api/date-pickers/date-range-picker-day', title: 'DateRangePickerDay', diff --git a/docs/pages/x/api/date-pickers/index.md b/docs/pages/x/api/date-pickers/index.md index a3037a289e25a..fdb8bf55c1115 100644 --- a/docs/pages/x/api/date-pickers/index.md +++ b/docs/pages/x/api/date-pickers/index.md @@ -79,6 +79,7 @@ ### Calendars - [DateCalendar](/x/api/date-pickers/date-calendar/) +- [DateRangeCalendar](/x/api/date-pickers/date-range-calendar/) - [MonthCalendar](/x/api/date-pickers/month-calendar/) - [YearCalendar](/x/api/date-pickers/year-calendar/)