UNPKG

@nodeject/ui-components

Version:

UI library for non-trivial components

71 lines (70 loc) 20.1 kB
/// <reference types="react" /> import { Dayjs } from 'dayjs'; import 'antd/es/date-picker/style/index'; export declare const DayjsDatePicker: import("react").ComponentClass<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs>, any> & { WeekPicker: import("react").ComponentClass<Pick<Pick<import("rc-picker/lib/Picker").PickerDateProps<Dayjs>, "style" | "id" | "value" | "disabled" | "className" | "transitionName" | "prefixCls" | "getPopupContainer" | "open" | "aria-label" | "autoComplete" | "autoFocus" | "name" | "placeholder" | "defaultValue" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onClick" | "onContextMenu" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseUp" | "onSelect" | "direction" | "format" | "mode" | "onOpenChange" | "picker" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onPanelChange" | "onOk" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "allowClear" | "defaultOpen" | "inputReadOnly" | "suffixIcon" | "clearIcon" | "panelRender" | "pickerRef" | "showToday" | "showNow" | "showTime" | "disabledTime"> & { locale?: import("antd/es/date-picker/generatePicker").PickerLocale; size?: import("antd/lib/button").ButtonSize; bordered?: boolean; }, "style" | "id" | "value" | "disabled" | "className" | "size" | "transitionName" | "prefixCls" | "getPopupContainer" | "open" | "aria-label" | "autoComplete" | "autoFocus" | "name" | "placeholder" | "defaultValue" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onClick" | "onContextMenu" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseUp" | "onSelect" | "direction" | "format" | "mode" | "onOpenChange" | "locale" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onPanelChange" | "onOk" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "allowClear" | "defaultOpen" | "inputReadOnly" | "suffixIcon" | "clearIcon" | "panelRender" | "pickerRef" | "showToday" | "showNow" | "showTime" | "disabledTime" | "bordered">, any>; MonthPicker: import("react").ComponentClass<Pick<Pick<import("rc-picker/lib/Picker").PickerDateProps<Dayjs>, "style" | "id" | "value" | "disabled" | "className" | "transitionName" | "prefixCls" | "getPopupContainer" | "open" | "aria-label" | "autoComplete" | "autoFocus" | "name" | "placeholder" | "defaultValue" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onClick" | "onContextMenu" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseUp" | "onSelect" | "direction" | "format" | "mode" | "onOpenChange" | "picker" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onPanelChange" | "onOk" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "allowClear" | "defaultOpen" | "inputReadOnly" | "suffixIcon" | "clearIcon" | "panelRender" | "pickerRef" | "showToday" | "showNow" | "showTime" | "disabledTime"> & { locale?: import("antd/es/date-picker/generatePicker").PickerLocale; size?: import("antd/lib/button").ButtonSize; bordered?: boolean; }, "style" | "id" | "value" | "disabled" | "className" | "size" | "transitionName" | "prefixCls" | "getPopupContainer" | "open" | "aria-label" | "autoComplete" | "autoFocus" | "name" | "placeholder" | "defaultValue" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onClick" | "onContextMenu" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseUp" | "onSelect" | "direction" | "format" | "mode" | "onOpenChange" | "locale" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onPanelChange" | "onOk" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "allowClear" | "defaultOpen" | "inputReadOnly" | "suffixIcon" | "clearIcon" | "panelRender" | "pickerRef" | "showToday" | "showNow" | "showTime" | "disabledTime" | "bordered">, any>; YearPicker: import("react").ComponentClass<Pick<Pick<import("rc-picker/lib/Picker").PickerDateProps<Dayjs>, "style" | "id" | "value" | "disabled" | "className" | "transitionName" | "prefixCls" | "getPopupContainer" | "open" | "aria-label" | "autoComplete" | "autoFocus" | "name" | "placeholder" | "defaultValue" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onClick" | "onContextMenu" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseUp" | "onSelect" | "direction" | "format" | "mode" | "onOpenChange" | "picker" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onPanelChange" | "onOk" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "allowClear" | "defaultOpen" | "inputReadOnly" | "suffixIcon" | "clearIcon" | "panelRender" | "pickerRef" | "showToday" | "showNow" | "showTime" | "disabledTime"> & { locale?: import("antd/es/date-picker/generatePicker").PickerLocale; size?: import("antd/lib/button").ButtonSize; bordered?: boolean; }, "style" | "id" | "value" | "disabled" | "className" | "size" | "transitionName" | "prefixCls" | "getPopupContainer" | "open" | "aria-label" | "autoComplete" | "autoFocus" | "name" | "placeholder" | "defaultValue" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onClick" | "onContextMenu" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseUp" | "onSelect" | "direction" | "format" | "mode" | "onOpenChange" | "locale" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onPanelChange" | "onOk" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "allowClear" | "defaultOpen" | "inputReadOnly" | "suffixIcon" | "clearIcon" | "panelRender" | "pickerRef" | "showToday" | "showNow" | "showTime" | "disabledTime" | "bordered">, any>; RangePicker: import("react").ComponentClass<import("antd/es/date-picker/generatePicker").RangePickerProps<Dayjs>, any>; TimePicker: import("react").ComponentClass<Pick<Pick<import("rc-picker/lib/Picker").PickerTimeProps<Dayjs>, "style" | "id" | "value" | "disabled" | "className" | "transitionName" | "prefixCls" | "getPopupContainer" | "open" | "aria-label" | "autoComplete" | "autoFocus" | "name" | "placeholder" | "defaultValue" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onClick" | "onContextMenu" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseUp" | "onSelect" | "direction" | "format" | "mode" | "onOpenChange" | "picker" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onPanelChange" | "onOk" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "allowClear" | "defaultOpen" | "inputReadOnly" | "suffixIcon" | "clearIcon" | "panelRender" | "pickerRef" | "showNow" | "showHour" | "showMinute" | "showSecond" | "use12Hours" | "hourStep" | "minuteStep" | "secondStep" | "hideDisabledOptions" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "defaultOpenValue"> & { locale?: import("antd/es/date-picker/generatePicker").PickerLocale; size?: import("antd/lib/button").ButtonSize; bordered?: boolean; }, "style" | "id" | "value" | "disabled" | "className" | "size" | "transitionName" | "prefixCls" | "getPopupContainer" | "open" | "aria-label" | "autoComplete" | "autoFocus" | "name" | "placeholder" | "defaultValue" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onClick" | "onContextMenu" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseUp" | "onSelect" | "direction" | "format" | "mode" | "onOpenChange" | "locale" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onPanelChange" | "onOk" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "allowClear" | "defaultOpen" | "inputReadOnly" | "suffixIcon" | "clearIcon" | "panelRender" | "pickerRef" | "showNow" | "showHour" | "showMinute" | "showSecond" | "use12Hours" | "hourStep" | "minuteStep" | "secondStep" | "hideDisabledOptions" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "defaultOpenValue" | "bordered">, any>; QuarterPicker: import("react").ComponentClass<Pick<Pick<import("rc-picker/lib/Picker").PickerTimeProps<Dayjs>, "style" | "id" | "value" | "disabled" | "className" | "transitionName" | "prefixCls" | "getPopupContainer" | "open" | "aria-label" | "autoComplete" | "autoFocus" | "name" | "placeholder" | "defaultValue" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onClick" | "onContextMenu" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseUp" | "onSelect" | "direction" | "format" | "mode" | "onOpenChange" | "picker" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onPanelChange" | "onOk" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "allowClear" | "defaultOpen" | "inputReadOnly" | "suffixIcon" | "clearIcon" | "panelRender" | "pickerRef" | "showNow" | "showHour" | "showMinute" | "showSecond" | "use12Hours" | "hourStep" | "minuteStep" | "secondStep" | "hideDisabledOptions" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "defaultOpenValue"> & { locale?: import("antd/es/date-picker/generatePicker").PickerLocale; size?: import("antd/lib/button").ButtonSize; bordered?: boolean; }, "style" | "id" | "value" | "disabled" | "className" | "size" | "transitionName" | "prefixCls" | "getPopupContainer" | "open" | "aria-label" | "autoComplete" | "autoFocus" | "name" | "placeholder" | "defaultValue" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onClick" | "onContextMenu" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseUp" | "onSelect" | "direction" | "format" | "mode" | "onOpenChange" | "locale" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onPanelChange" | "onOk" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "allowClear" | "defaultOpen" | "inputReadOnly" | "suffixIcon" | "clearIcon" | "panelRender" | "pickerRef" | "showNow" | "showHour" | "showMinute" | "showSecond" | "use12Hours" | "hourStep" | "minuteStep" | "secondStep" | "hideDisabledOptions" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "defaultOpenValue" | "bordered">, any>; }; export declare const datePickerFrLocale: (placeholder: string) => { lang: { locale: string; placeholder: string; today: string; now: string; backToToday: string; ok: string; clear: string; month: string; year: string; timeSelect: string; dateSelect: string; monthSelect: string; yearSelect: string; decadeSelect: string; yearFormat: string; dateFormat: string; dayFormat: string; dateTimeFormat: string; monthFormat: string; monthBeforeYear: boolean; previousMonth: string; nextMonth: string; previousYear: string; nextYear: string; previousDecade: string; nextDecade: string; previousCentury: string; nextCentury: string; }; timePickerLocale: { placeholder: string; }; dateFormat: string; dateTimeFormat: string; weekFormat: string; monthFormat: string; };