From 04c816dbb55e7495123004a11dcc8c993c067e36 Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette Date: Fri, 26 Aug 2022 10:44:54 +0200 Subject: [PATCH] scripts --- docs/translations/api-docs/date-pickers/calendar-picker-pt.json | 2 +- docs/translations/api-docs/date-pickers/calendar-picker-zh.json | 2 +- docs/translations/api-docs/date-pickers/calendar-picker.json | 2 +- docs/translations/api-docs/date-pickers/date-picker-pt.json | 2 +- docs/translations/api-docs/date-pickers/date-picker-zh.json | 2 +- docs/translations/api-docs/date-pickers/date-picker.json | 2 +- .../translations/api-docs/date-pickers/date-time-picker-pt.json | 2 +- .../translations/api-docs/date-pickers/date-time-picker-zh.json | 2 +- docs/translations/api-docs/date-pickers/date-time-picker.json | 2 +- .../api-docs/date-pickers/desktop-date-picker-pt.json | 2 +- .../api-docs/date-pickers/desktop-date-picker-zh.json | 2 +- .../translations/api-docs/date-pickers/desktop-date-picker.json | 2 +- .../api-docs/date-pickers/desktop-date-time-picker-pt.json | 2 +- .../api-docs/date-pickers/desktop-date-time-picker-zh.json | 2 +- .../api-docs/date-pickers/desktop-date-time-picker.json | 2 +- .../api-docs/date-pickers/mobile-date-picker-pt.json | 2 +- .../api-docs/date-pickers/mobile-date-picker-zh.json | 2 +- docs/translations/api-docs/date-pickers/mobile-date-picker.json | 2 +- .../api-docs/date-pickers/mobile-date-time-picker-pt.json | 2 +- .../api-docs/date-pickers/mobile-date-time-picker-zh.json | 2 +- .../api-docs/date-pickers/mobile-date-time-picker.json | 2 +- .../api-docs/date-pickers/static-date-picker-pt.json | 2 +- .../api-docs/date-pickers/static-date-picker-zh.json | 2 +- docs/translations/api-docs/date-pickers/static-date-picker.json | 2 +- .../api-docs/date-pickers/static-date-time-picker-pt.json | 2 +- .../api-docs/date-pickers/static-date-time-picker-zh.json | 2 +- .../api-docs/date-pickers/static-date-time-picker.json | 2 +- .../x-date-pickers-pro/src/DateRangePicker/DateRangePicker.tsx | 2 +- .../src/DesktopDateRangePicker/DesktopDateRangePicker.tsx | 2 +- .../src/MobileDateRangePicker/MobileDateRangePicker.tsx | 2 +- .../src/StaticDateRangePicker/StaticDateRangePicker.tsx | 2 +- packages/x-date-pickers/src/CalendarPicker/CalendarPicker.tsx | 1 - packages/x-date-pickers/src/DatePicker/DatePicker.tsx | 1 - packages/x-date-pickers/src/DateTimePicker/DateTimePicker.tsx | 1 - .../x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx | 1 - .../src/DesktopDateTimePicker/DesktopDateTimePicker.tsx | 1 - .../x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx | 1 - .../src/MobileDateTimePicker/MobileDateTimePicker.tsx | 1 - .../x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx | 1 - .../src/StaticDateTimePicker/StaticDateTimePicker.tsx | 1 - 40 files changed, 31 insertions(+), 40 deletions(-) diff --git a/docs/translations/api-docs/date-pickers/calendar-picker-pt.json b/docs/translations/api-docs/date-pickers/calendar-picker-pt.json index 5ebcd29b7af8..de53b2974cd1 100644 --- a/docs/translations/api-docs/date-pickers/calendar-picker-pt.json +++ b/docs/translations/api-docs/date-pickers/calendar-picker-pt.json @@ -24,7 +24,7 @@ "renderDay": "Custom renderer for day. Check the PickersDay component.

Signature:
function(day: TDate, selectedDays: Array<TDate | null>, pickersDayProps: PickersDayProps<TDate>) => JSX.Element
day: The day to render.
selectedDays: The days currently selected.
pickersDayProps: The props of the day to render.
returns (JSX.Element): The element representing the day.", "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/calendar-picker-zh.json b/docs/translations/api-docs/date-pickers/calendar-picker-zh.json index 5ebcd29b7af8..de53b2974cd1 100644 --- a/docs/translations/api-docs/date-pickers/calendar-picker-zh.json +++ b/docs/translations/api-docs/date-pickers/calendar-picker-zh.json @@ -24,7 +24,7 @@ "renderDay": "Custom renderer for day. Check the PickersDay component.

Signature:
function(day: TDate, selectedDays: Array<TDate | null>, pickersDayProps: PickersDayProps<TDate>) => JSX.Element
day: The day to render.
selectedDays: The days currently selected.
pickersDayProps: The props of the day to render.
returns (JSX.Element): The element representing the day.", "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/calendar-picker.json b/docs/translations/api-docs/date-pickers/calendar-picker.json index 5ebcd29b7af8..de53b2974cd1 100644 --- a/docs/translations/api-docs/date-pickers/calendar-picker.json +++ b/docs/translations/api-docs/date-pickers/calendar-picker.json @@ -24,7 +24,7 @@ "renderDay": "Custom renderer for day. Check the PickersDay component.

Signature:
function(day: TDate, selectedDays: Array<TDate | null>, pickersDayProps: PickersDayProps<TDate>) => JSX.Element
day: The day to render.
selectedDays: The days currently selected.
pickersDayProps: The props of the day to render.
returns (JSX.Element): The element representing the day.", "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/date-picker-pt.json b/docs/translations/api-docs/date-pickers/date-picker-pt.json index 79eced302874..4b4c5cc38b85 100644 --- a/docs/translations/api-docs/date-pickers/date-picker-pt.json +++ b/docs/translations/api-docs/date-pickers/date-picker-pt.json @@ -47,7 +47,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/date-picker-zh.json b/docs/translations/api-docs/date-pickers/date-picker-zh.json index 79eced302874..4b4c5cc38b85 100644 --- a/docs/translations/api-docs/date-pickers/date-picker-zh.json +++ b/docs/translations/api-docs/date-pickers/date-picker-zh.json @@ -47,7 +47,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/date-picker.json b/docs/translations/api-docs/date-pickers/date-picker.json index 79eced302874..4b4c5cc38b85 100644 --- a/docs/translations/api-docs/date-pickers/date-picker.json +++ b/docs/translations/api-docs/date-pickers/date-picker.json @@ -47,7 +47,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/date-time-picker-pt.json b/docs/translations/api-docs/date-pickers/date-time-picker-pt.json index f2d022f499c2..fb30ded338ac 100644 --- a/docs/translations/api-docs/date-pickers/date-time-picker-pt.json +++ b/docs/translations/api-docs/date-pickers/date-time-picker-pt.json @@ -58,7 +58,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableTime": "Dynamically check if time is disabled or not. If returns false appropriate time point will ot be acceptable.

Signature:
function(timeValue: number, clockType: ClockPickerView) => boolean
timeValue: The value to check.
clockType: The clock type of the timeValue.
returns (boolean): Returns true if the time should be disabled", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", diff --git a/docs/translations/api-docs/date-pickers/date-time-picker-zh.json b/docs/translations/api-docs/date-pickers/date-time-picker-zh.json index f2d022f499c2..fb30ded338ac 100644 --- a/docs/translations/api-docs/date-pickers/date-time-picker-zh.json +++ b/docs/translations/api-docs/date-pickers/date-time-picker-zh.json @@ -58,7 +58,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableTime": "Dynamically check if time is disabled or not. If returns false appropriate time point will ot be acceptable.

Signature:
function(timeValue: number, clockType: ClockPickerView) => boolean
timeValue: The value to check.
clockType: The clock type of the timeValue.
returns (boolean): Returns true if the time should be disabled", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", diff --git a/docs/translations/api-docs/date-pickers/date-time-picker.json b/docs/translations/api-docs/date-pickers/date-time-picker.json index f2d022f499c2..fb30ded338ac 100644 --- a/docs/translations/api-docs/date-pickers/date-time-picker.json +++ b/docs/translations/api-docs/date-pickers/date-time-picker.json @@ -58,7 +58,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableTime": "Dynamically check if time is disabled or not. If returns false appropriate time point will ot be acceptable.

Signature:
function(timeValue: number, clockType: ClockPickerView) => boolean
timeValue: The value to check.
clockType: The clock type of the timeValue.
returns (boolean): Returns true if the time should be disabled", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", diff --git a/docs/translations/api-docs/date-pickers/desktop-date-picker-pt.json b/docs/translations/api-docs/date-pickers/desktop-date-picker-pt.json index 341a1ec95962..64fde7c6abfd 100644 --- a/docs/translations/api-docs/date-pickers/desktop-date-picker-pt.json +++ b/docs/translations/api-docs/date-pickers/desktop-date-picker-pt.json @@ -45,7 +45,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/desktop-date-picker-zh.json b/docs/translations/api-docs/date-pickers/desktop-date-picker-zh.json index 341a1ec95962..64fde7c6abfd 100644 --- a/docs/translations/api-docs/date-pickers/desktop-date-picker-zh.json +++ b/docs/translations/api-docs/date-pickers/desktop-date-picker-zh.json @@ -45,7 +45,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/desktop-date-picker.json b/docs/translations/api-docs/date-pickers/desktop-date-picker.json index 341a1ec95962..64fde7c6abfd 100644 --- a/docs/translations/api-docs/date-pickers/desktop-date-picker.json +++ b/docs/translations/api-docs/date-pickers/desktop-date-picker.json @@ -45,7 +45,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/desktop-date-time-picker-pt.json b/docs/translations/api-docs/date-pickers/desktop-date-time-picker-pt.json index 718095c6583f..d54a6e0ec821 100644 --- a/docs/translations/api-docs/date-pickers/desktop-date-time-picker-pt.json +++ b/docs/translations/api-docs/date-pickers/desktop-date-time-picker-pt.json @@ -56,7 +56,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableTime": "Dynamically check if time is disabled or not. If returns false appropriate time point will ot be acceptable.

Signature:
function(timeValue: number, clockType: ClockPickerView) => boolean
timeValue: The value to check.
clockType: The clock type of the timeValue.
returns (boolean): Returns true if the time should be disabled", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", diff --git a/docs/translations/api-docs/date-pickers/desktop-date-time-picker-zh.json b/docs/translations/api-docs/date-pickers/desktop-date-time-picker-zh.json index 718095c6583f..d54a6e0ec821 100644 --- a/docs/translations/api-docs/date-pickers/desktop-date-time-picker-zh.json +++ b/docs/translations/api-docs/date-pickers/desktop-date-time-picker-zh.json @@ -56,7 +56,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableTime": "Dynamically check if time is disabled or not. If returns false appropriate time point will ot be acceptable.

Signature:
function(timeValue: number, clockType: ClockPickerView) => boolean
timeValue: The value to check.
clockType: The clock type of the timeValue.
returns (boolean): Returns true if the time should be disabled", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", diff --git a/docs/translations/api-docs/date-pickers/desktop-date-time-picker.json b/docs/translations/api-docs/date-pickers/desktop-date-time-picker.json index 718095c6583f..d54a6e0ec821 100644 --- a/docs/translations/api-docs/date-pickers/desktop-date-time-picker.json +++ b/docs/translations/api-docs/date-pickers/desktop-date-time-picker.json @@ -56,7 +56,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableTime": "Dynamically check if time is disabled or not. If returns false appropriate time point will ot be acceptable.

Signature:
function(timeValue: number, clockType: ClockPickerView) => boolean
timeValue: The value to check.
clockType: The clock type of the timeValue.
returns (boolean): Returns true if the time should be disabled", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", diff --git a/docs/translations/api-docs/date-pickers/mobile-date-picker-pt.json b/docs/translations/api-docs/date-pickers/mobile-date-picker-pt.json index 56f9c86445e5..b76514a929e3 100644 --- a/docs/translations/api-docs/date-pickers/mobile-date-picker-pt.json +++ b/docs/translations/api-docs/date-pickers/mobile-date-picker-pt.json @@ -44,7 +44,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/mobile-date-picker-zh.json b/docs/translations/api-docs/date-pickers/mobile-date-picker-zh.json index 56f9c86445e5..b76514a929e3 100644 --- a/docs/translations/api-docs/date-pickers/mobile-date-picker-zh.json +++ b/docs/translations/api-docs/date-pickers/mobile-date-picker-zh.json @@ -44,7 +44,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/mobile-date-picker.json b/docs/translations/api-docs/date-pickers/mobile-date-picker.json index 56f9c86445e5..b76514a929e3 100644 --- a/docs/translations/api-docs/date-pickers/mobile-date-picker.json +++ b/docs/translations/api-docs/date-pickers/mobile-date-picker.json @@ -44,7 +44,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/mobile-date-time-picker-pt.json b/docs/translations/api-docs/date-pickers/mobile-date-time-picker-pt.json index 32ffa5af0600..e833f4d6d216 100644 --- a/docs/translations/api-docs/date-pickers/mobile-date-time-picker-pt.json +++ b/docs/translations/api-docs/date-pickers/mobile-date-time-picker-pt.json @@ -55,7 +55,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableTime": "Dynamically check if time is disabled or not. If returns false appropriate time point will ot be acceptable.

Signature:
function(timeValue: number, clockType: ClockPickerView) => boolean
timeValue: The value to check.
clockType: The clock type of the timeValue.
returns (boolean): Returns true if the time should be disabled", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", diff --git a/docs/translations/api-docs/date-pickers/mobile-date-time-picker-zh.json b/docs/translations/api-docs/date-pickers/mobile-date-time-picker-zh.json index 32ffa5af0600..e833f4d6d216 100644 --- a/docs/translations/api-docs/date-pickers/mobile-date-time-picker-zh.json +++ b/docs/translations/api-docs/date-pickers/mobile-date-time-picker-zh.json @@ -55,7 +55,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableTime": "Dynamically check if time is disabled or not. If returns false appropriate time point will ot be acceptable.

Signature:
function(timeValue: number, clockType: ClockPickerView) => boolean
timeValue: The value to check.
clockType: The clock type of the timeValue.
returns (boolean): Returns true if the time should be disabled", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", diff --git a/docs/translations/api-docs/date-pickers/mobile-date-time-picker.json b/docs/translations/api-docs/date-pickers/mobile-date-time-picker.json index 32ffa5af0600..e833f4d6d216 100644 --- a/docs/translations/api-docs/date-pickers/mobile-date-time-picker.json +++ b/docs/translations/api-docs/date-pickers/mobile-date-time-picker.json @@ -55,7 +55,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableTime": "Dynamically check if time is disabled or not. If returns false appropriate time point will ot be acceptable.

Signature:
function(timeValue: number, clockType: ClockPickerView) => boolean
timeValue: The value to check.
clockType: The clock type of the timeValue.
returns (boolean): Returns true if the time should be disabled", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", diff --git a/docs/translations/api-docs/date-pickers/static-date-picker-pt.json b/docs/translations/api-docs/date-pickers/static-date-picker-pt.json index 169c2dbb21c4..b403807b3647 100644 --- a/docs/translations/api-docs/date-pickers/static-date-picker-pt.json +++ b/docs/translations/api-docs/date-pickers/static-date-picker-pt.json @@ -41,7 +41,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/static-date-picker-zh.json b/docs/translations/api-docs/date-pickers/static-date-picker-zh.json index 169c2dbb21c4..b403807b3647 100644 --- a/docs/translations/api-docs/date-pickers/static-date-picker-zh.json +++ b/docs/translations/api-docs/date-pickers/static-date-picker-zh.json @@ -41,7 +41,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/static-date-picker.json b/docs/translations/api-docs/date-pickers/static-date-picker.json index 169c2dbb21c4..b403807b3647 100644 --- a/docs/translations/api-docs/date-pickers/static-date-picker.json +++ b/docs/translations/api-docs/date-pickers/static-date-picker.json @@ -41,7 +41,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", "showDaysOutsideCurrentMonth": "If true, days that have outsideCurrentMonth={true} are displayed.", diff --git a/docs/translations/api-docs/date-pickers/static-date-time-picker-pt.json b/docs/translations/api-docs/date-pickers/static-date-time-picker-pt.json index 786d177bc339..d76c4ce6b96f 100644 --- a/docs/translations/api-docs/date-pickers/static-date-time-picker-pt.json +++ b/docs/translations/api-docs/date-pickers/static-date-time-picker-pt.json @@ -52,7 +52,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableTime": "Dynamically check if time is disabled or not. If returns false appropriate time point will ot be acceptable.

Signature:
function(timeValue: number, clockType: ClockPickerView) => boolean
timeValue: The value to check.
clockType: The clock type of the timeValue.
returns (boolean): Returns true if the time should be disabled", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", diff --git a/docs/translations/api-docs/date-pickers/static-date-time-picker-zh.json b/docs/translations/api-docs/date-pickers/static-date-time-picker-zh.json index 786d177bc339..d76c4ce6b96f 100644 --- a/docs/translations/api-docs/date-pickers/static-date-time-picker-zh.json +++ b/docs/translations/api-docs/date-pickers/static-date-time-picker-zh.json @@ -52,7 +52,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableTime": "Dynamically check if time is disabled or not. If returns false appropriate time point will ot be acceptable.

Signature:
function(timeValue: number, clockType: ClockPickerView) => boolean
timeValue: The value to check.
clockType: The clock type of the timeValue.
returns (boolean): Returns true if the time should be disabled", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", diff --git a/docs/translations/api-docs/date-pickers/static-date-time-picker.json b/docs/translations/api-docs/date-pickers/static-date-time-picker.json index 786d177bc339..d76c4ce6b96f 100644 --- a/docs/translations/api-docs/date-pickers/static-date-time-picker.json +++ b/docs/translations/api-docs/date-pickers/static-date-time-picker.json @@ -52,7 +52,7 @@ "renderLoading": "Component displaying when passed loading true.

Signature:
function() => React.ReactNode

returns (React.ReactNode): The node to render when loading.", "rifmFormatter": "Custom formatter to be passed into Rifm component.

Signature:
function(str: string) => string
str: The un-formatted string.
returns (string): The formatted string.", "rightArrowButtonText": "Right arrow icon aria-label text.", - "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' for range pickers.
returns (boolean): Returns true if the date should be disabled.", + "shouldDisableDate": "Disable specific date. @DateIOType

Signature:
function(day: TDate) => boolean
day: The date to test.
returns (boolean): Returns true if the date should be disabled.", "shouldDisableMonth": "Disable specific months dynamically. Works like shouldDisableDate but for month selection view @DateIOType.

Signature:
function(month: TDate) => boolean
month: The month to check.
returns (boolean): If true the month will be disabled.", "shouldDisableTime": "Dynamically check if time is disabled or not. If returns false appropriate time point will ot be acceptable.

Signature:
function(timeValue: number, clockType: ClockPickerView) => boolean
timeValue: The value to check.
clockType: The clock type of the timeValue.
returns (boolean): Returns true if the time should be disabled", "shouldDisableYear": "Disable specific years dynamically. Works like shouldDisableDate but for year selection view @DateIOType.

Signature:
function(year: TDate) => boolean
year: The year to test.
returns (boolean): Returns true if the year should be disabled.", diff --git a/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePicker.tsx b/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePicker.tsx index 3aa316ec7801..e5161776b348 100644 --- a/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePicker.tsx +++ b/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePicker.tsx @@ -380,7 +380,7 @@ DateRangePicker.propTypes = { * Disable specific date. @DateIOType * @template TDate * @param {TDate} day The date to test. - * @param {string} position The date to test, 'start' or 'end' for range pickers. + * @param {string} position The date to test, 'start' or 'end'. * @returns {boolean} Returns `true` if the date should be disabled. */ shouldDisableDate: PropTypes.func, diff --git a/packages/x-date-pickers-pro/src/DesktopDateRangePicker/DesktopDateRangePicker.tsx b/packages/x-date-pickers-pro/src/DesktopDateRangePicker/DesktopDateRangePicker.tsx index e0b85979e15b..06d5f1a19ff8 100644 --- a/packages/x-date-pickers-pro/src/DesktopDateRangePicker/DesktopDateRangePicker.tsx +++ b/packages/x-date-pickers-pro/src/DesktopDateRangePicker/DesktopDateRangePicker.tsx @@ -409,7 +409,7 @@ DesktopDateRangePicker.propTypes = { * Disable specific date. @DateIOType * @template TDate * @param {TDate} day The date to test. - * @param {string} position The date to test, 'start' or 'end' for range pickers. + * @param {string} position The date to test, 'start' or 'end'. * @returns {boolean} Returns `true` if the date should be disabled. */ shouldDisableDate: PropTypes.func, diff --git a/packages/x-date-pickers-pro/src/MobileDateRangePicker/MobileDateRangePicker.tsx b/packages/x-date-pickers-pro/src/MobileDateRangePicker/MobileDateRangePicker.tsx index 37cd3f028809..d760916118fd 100644 --- a/packages/x-date-pickers-pro/src/MobileDateRangePicker/MobileDateRangePicker.tsx +++ b/packages/x-date-pickers-pro/src/MobileDateRangePicker/MobileDateRangePicker.tsx @@ -401,7 +401,7 @@ MobileDateRangePicker.propTypes = { * Disable specific date. @DateIOType * @template TDate * @param {TDate} day The date to test. - * @param {string} position The date to test, 'start' or 'end' for range pickers. + * @param {string} position The date to test, 'start' or 'end'. * @returns {boolean} Returns `true` if the date should be disabled. */ shouldDisableDate: PropTypes.func, diff --git a/packages/x-date-pickers-pro/src/StaticDateRangePicker/StaticDateRangePicker.tsx b/packages/x-date-pickers-pro/src/StaticDateRangePicker/StaticDateRangePicker.tsx index 958eb588b96a..eb2b58dd3469 100644 --- a/packages/x-date-pickers-pro/src/StaticDateRangePicker/StaticDateRangePicker.tsx +++ b/packages/x-date-pickers-pro/src/StaticDateRangePicker/StaticDateRangePicker.tsx @@ -381,7 +381,7 @@ StaticDateRangePicker.propTypes = { * Disable specific date. @DateIOType * @template TDate * @param {TDate} day The date to test. - * @param {string} position The date to test, 'start' or 'end' for range pickers. + * @param {string} position The date to test, 'start' or 'end'. * @returns {boolean} Returns `true` if the date should be disabled. */ shouldDisableDate: PropTypes.func, diff --git a/packages/x-date-pickers/src/CalendarPicker/CalendarPicker.tsx b/packages/x-date-pickers/src/CalendarPicker/CalendarPicker.tsx index cad0d1faf36f..412bbc79990b 100644 --- a/packages/x-date-pickers/src/CalendarPicker/CalendarPicker.tsx +++ b/packages/x-date-pickers/src/CalendarPicker/CalendarPicker.tsx @@ -623,7 +623,6 @@ CalendarPicker.propTypes = { * Disable specific date. @DateIOType * @template TDate * @param {TDate} day The date to test. - * @param {string} position The date to test, 'start' or 'end' for range pickers. * @returns {boolean} Returns `true` if the date should be disabled. */ shouldDisableDate: PropTypes.func, diff --git a/packages/x-date-pickers/src/DatePicker/DatePicker.tsx b/packages/x-date-pickers/src/DatePicker/DatePicker.tsx index 240d14a686ff..42f37cc7b2db 100644 --- a/packages/x-date-pickers/src/DatePicker/DatePicker.tsx +++ b/packages/x-date-pickers/src/DatePicker/DatePicker.tsx @@ -359,7 +359,6 @@ DatePicker.propTypes = { * Disable specific date. @DateIOType * @template TDate * @param {TDate} day The date to test. - * @param {string} position The date to test, 'start' or 'end' for range pickers. * @returns {boolean} Returns `true` if the date should be disabled. */ shouldDisableDate: PropTypes.func, diff --git a/packages/x-date-pickers/src/DateTimePicker/DateTimePicker.tsx b/packages/x-date-pickers/src/DateTimePicker/DateTimePicker.tsx index 5e55c666e5d5..721b296c89a9 100644 --- a/packages/x-date-pickers/src/DateTimePicker/DateTimePicker.tsx +++ b/packages/x-date-pickers/src/DateTimePicker/DateTimePicker.tsx @@ -423,7 +423,6 @@ DateTimePicker.propTypes = { * Disable specific date. @DateIOType * @template TDate * @param {TDate} day The date to test. - * @param {string} position The date to test, 'start' or 'end' for range pickers. * @returns {boolean} Returns `true` if the date should be disabled. */ shouldDisableDate: PropTypes.func, diff --git a/packages/x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx b/packages/x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx index 822a852fbe4a..8921901b3f44 100644 --- a/packages/x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx +++ b/packages/x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx @@ -376,7 +376,6 @@ DesktopDatePicker.propTypes = { * Disable specific date. @DateIOType * @template TDate * @param {TDate} day The date to test. - * @param {string} position The date to test, 'start' or 'end' for range pickers. * @returns {boolean} Returns `true` if the date should be disabled. */ shouldDisableDate: PropTypes.func, diff --git a/packages/x-date-pickers/src/DesktopDateTimePicker/DesktopDateTimePicker.tsx b/packages/x-date-pickers/src/DesktopDateTimePicker/DesktopDateTimePicker.tsx index c059a6b9b031..8f76bad82c6b 100644 --- a/packages/x-date-pickers/src/DesktopDateTimePicker/DesktopDateTimePicker.tsx +++ b/packages/x-date-pickers/src/DesktopDateTimePicker/DesktopDateTimePicker.tsx @@ -446,7 +446,6 @@ DesktopDateTimePicker.propTypes = { * Disable specific date. @DateIOType * @template TDate * @param {TDate} day The date to test. - * @param {string} position The date to test, 'start' or 'end' for range pickers. * @returns {boolean} Returns `true` if the date should be disabled. */ shouldDisableDate: PropTypes.func, diff --git a/packages/x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx b/packages/x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx index 71663a74915d..18ec172f87aa 100644 --- a/packages/x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx +++ b/packages/x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx @@ -369,7 +369,6 @@ MobileDatePicker.propTypes = { * Disable specific date. @DateIOType * @template TDate * @param {TDate} day The date to test. - * @param {string} position The date to test, 'start' or 'end' for range pickers. * @returns {boolean} Returns `true` if the date should be disabled. */ shouldDisableDate: PropTypes.func, diff --git a/packages/x-date-pickers/src/MobileDateTimePicker/MobileDateTimePicker.tsx b/packages/x-date-pickers/src/MobileDateTimePicker/MobileDateTimePicker.tsx index baa595c4ea02..8d98200c4f41 100644 --- a/packages/x-date-pickers/src/MobileDateTimePicker/MobileDateTimePicker.tsx +++ b/packages/x-date-pickers/src/MobileDateTimePicker/MobileDateTimePicker.tsx @@ -437,7 +437,6 @@ MobileDateTimePicker.propTypes = { * Disable specific date. @DateIOType * @template TDate * @param {TDate} day The date to test. - * @param {string} position The date to test, 'start' or 'end' for range pickers. * @returns {boolean} Returns `true` if the date should be disabled. */ shouldDisableDate: PropTypes.func, diff --git a/packages/x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx b/packages/x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx index df7573245b7e..a329be21987f 100644 --- a/packages/x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx +++ b/packages/x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx @@ -347,7 +347,6 @@ StaticDatePicker.propTypes = { * Disable specific date. @DateIOType * @template TDate * @param {TDate} day The date to test. - * @param {string} position The date to test, 'start' or 'end' for range pickers. * @returns {boolean} Returns `true` if the date should be disabled. */ shouldDisableDate: PropTypes.func, diff --git a/packages/x-date-pickers/src/StaticDateTimePicker/StaticDateTimePicker.tsx b/packages/x-date-pickers/src/StaticDateTimePicker/StaticDateTimePicker.tsx index fa6b93adde2c..928403e28485 100644 --- a/packages/x-date-pickers/src/StaticDateTimePicker/StaticDateTimePicker.tsx +++ b/packages/x-date-pickers/src/StaticDateTimePicker/StaticDateTimePicker.tsx @@ -422,7 +422,6 @@ StaticDateTimePicker.propTypes = { * Disable specific date. @DateIOType * @template TDate * @param {TDate} day The date to test. - * @param {string} position The date to test, 'start' or 'end' for range pickers. * @returns {boolean} Returns `true` if the date should be disabled. */ shouldDisableDate: PropTypes.func,