fix(api): use bcrypt directly instead of passlib for compatibility

This commit is contained in:
bwstudio
2026-05-21 22:18:36 +08:00
parent 7f51d200f1
commit 4651781bc3
23511 changed files with 2587254 additions and 8 deletions
@@ -0,0 +1,17 @@
import { DateCell } from "../types.js";
import * as _$vue from "vue";
import { ExtractPropTypes, ExtractPublicPropTypes } from "vue";
//#region ../../packages/components/date-picker-panel/src/props/basic-cell.d.ts
declare const basicCellProps: {
readonly cell: {
readonly type: _$vue.PropType<DateCell>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
};
type BasicCellProps = ExtractPropTypes<typeof basicCellProps>;
type BasicCellPropsPublic = ExtractPublicPropTypes<typeof basicCellProps>;
//#endregion
export { BasicCellProps, BasicCellPropsPublic, basicCellProps };
@@ -0,0 +1,8 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_runtime = require("../../../../utils/vue/props/runtime.js");
//#region ../../packages/components/date-picker-panel/src/props/basic-cell.ts
const basicCellProps = require_runtime.buildProps({ cell: { type: require_runtime.definePropType(Object) } });
//#endregion
exports.basicCellProps = basicCellProps;
//# sourceMappingURL=basic-cell.js.map
@@ -0,0 +1 @@
{"version":3,"file":"basic-cell.js","names":["buildProps","definePropType"],"sources":["../../../../../../../packages/components/date-picker-panel/src/props/basic-cell.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type { DateCell } from '../types'\n\nexport const basicCellProps = buildProps({\n cell: {\n type: definePropType<DateCell>(Object),\n },\n} as const)\n\nexport type BasicCellProps = ExtractPropTypes<typeof basicCellProps>\nexport type BasicCellPropsPublic = ExtractPublicPropTypes<typeof basicCellProps>\n"],"mappings":";;;AAKA,MAAa,iBAAiBA,gBAAAA,WAAW,EACvC,MAAM,EACJ,MAAMC,gBAAAA,eAAyB,OAAO,EACvC,EACF,CAAU"}
@@ -0,0 +1,73 @@
import { EpPropFinalized, EpPropMergeType } from "../../../../utils/vue/props/types.js";
import { CellClassNameType, DisabledDateType, RangeState } from "./shared.js";
import * as _$vue from "vue";
import { ExtractPropTypes, ExtractPublicPropTypes } from "vue";
import { Dayjs } from "dayjs";
//#region ../../packages/components/date-picker-panel/src/props/basic-date-table.d.ts
declare const basicDateTableProps: {
readonly showWeekNumber: BooleanConstructor;
readonly selectionMode: EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
readonly cellClassName: {
readonly type: _$vue.PropType<CellClassNameType>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly disabledDate: {
readonly type: _$vue.PropType<DisabledDateType>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly date: {
readonly type: _$vue.PropType<Dayjs>;
readonly required: true;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly minDate: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => Dayjs) | (() => Dayjs | null) | (((new (...args: any[]) => Dayjs) | (() => Dayjs | null)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly maxDate: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => Dayjs) | (() => Dayjs | null) | (((new (...args: any[]) => Dayjs) | (() => Dayjs | null)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly parsedValue: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[]) | (((new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[])) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly rangeState: EpPropFinalized<(new (...args: any[]) => RangeState) | (() => RangeState) | (((new (...args: any[]) => RangeState) | (() => RangeState)) | null)[], unknown, unknown, () => {
endDate: null;
selecting: boolean;
}, boolean>;
readonly disabled: BooleanConstructor;
};
declare const basicDateTableEmits: string[];
type BasicDateTableProps = ExtractPropTypes<typeof basicDateTableProps>;
type BasicDateTablePropsPublic = ExtractPublicPropTypes<typeof basicDateTableProps>;
type BasicDateTableEmits = typeof basicDateTableEmits;
type RangePickerEmits = {
minDate: Dayjs;
maxDate: null;
};
type DatePickerEmits = Dayjs;
type DatesPickerEmits = Dayjs[];
type MonthsPickerEmits = Dayjs[];
type YearsPickerEmits = Dayjs[];
type WeekPickerEmits = {
year: number;
week: number;
value: string;
date: Dayjs;
};
type DateTableEmits = RangePickerEmits | DatePickerEmits | DatesPickerEmits | WeekPickerEmits;
//#endregion
export { BasicDateTableEmits, BasicDateTableProps, BasicDateTablePropsPublic, DatePickerEmits, DateTableEmits, DatesPickerEmits, MonthsPickerEmits, RangePickerEmits, WeekPickerEmits, YearsPickerEmits, basicDateTableEmits, basicDateTableProps };
@@ -0,0 +1,19 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_runtime = require("../../../../utils/vue/props/runtime.js");
const require_shared = require("./shared.js");
//#region ../../packages/components/date-picker-panel/src/props/basic-date-table.ts
const basicDateTableProps = require_runtime.buildProps({
...require_shared.datePickerSharedProps,
showWeekNumber: Boolean,
selectionMode: require_shared.selectionModeWithDefault("date")
});
const basicDateTableEmits = [
"changerange",
"pick",
"select"
];
//#endregion
exports.basicDateTableEmits = basicDateTableEmits;
exports.basicDateTableProps = basicDateTableProps;
//# sourceMappingURL=basic-date-table.js.map
@@ -0,0 +1 @@
{"version":3,"file":"basic-date-table.js","names":["buildProps","datePickerSharedProps","selectionModeWithDefault"],"sources":["../../../../../../../packages/components/date-picker-panel/src/props/basic-date-table.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { datePickerSharedProps, selectionModeWithDefault } from './shared'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type { Dayjs } from 'dayjs'\n\nexport const basicDateTableProps = buildProps({\n ...datePickerSharedProps,\n showWeekNumber: Boolean,\n selectionMode: selectionModeWithDefault('date'),\n} as const)\n\nexport const basicDateTableEmits = ['changerange', 'pick', 'select']\n\nexport type BasicDateTableProps = ExtractPropTypes<typeof basicDateTableProps>\nexport type BasicDateTablePropsPublic = ExtractPublicPropTypes<\n typeof basicDateTableProps\n>\nexport type BasicDateTableEmits = typeof basicDateTableEmits\n\nexport type RangePickerEmits = { minDate: Dayjs; maxDate: null }\nexport type DatePickerEmits = Dayjs\nexport type DatesPickerEmits = Dayjs[]\nexport type MonthsPickerEmits = Dayjs[]\nexport type YearsPickerEmits = Dayjs[]\nexport type WeekPickerEmits = {\n year: number\n week: number\n value: string\n date: Dayjs\n}\n\nexport type DateTableEmits =\n | RangePickerEmits\n | DatePickerEmits\n | DatesPickerEmits\n | WeekPickerEmits\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,gBAAAA,WAAW;CAC5C,GAAGC,eAAAA;CACH,gBAAgB;CAChB,eAAeC,eAAAA,yBAAyB,OAAO;CAChD,CAAU;AAEX,MAAa,sBAAsB;CAAC;CAAe;CAAQ;CAAS"}
@@ -0,0 +1,55 @@
import { EpPropFinalized, EpPropMergeType } from "../../../../utils/vue/props/types.js";
import { CellClassNameType, DisabledDateType, RangeState } from "./shared.js";
import * as _$vue from "vue";
import { ExtractPropTypes, ExtractPublicPropTypes } from "vue";
import * as _$dayjs from "dayjs";
//#region ../../packages/components/date-picker-panel/src/props/basic-month-table.d.ts
declare const basicMonthTableProps: {
selectionMode: EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
cellClassName: {
readonly type: _$vue.PropType<CellClassNameType>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
disabledDate: {
readonly type: _$vue.PropType<DisabledDateType>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
date: {
readonly type: _$vue.PropType<_$dayjs.Dayjs>;
readonly required: true;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
minDate: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => _$dayjs.Dayjs) | (() => _$dayjs.Dayjs | null) | (((new (...args: any[]) => _$dayjs.Dayjs) | (() => _$dayjs.Dayjs | null)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
maxDate: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => _$dayjs.Dayjs) | (() => _$dayjs.Dayjs | null) | (((new (...args: any[]) => _$dayjs.Dayjs) | (() => _$dayjs.Dayjs | null)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
parsedValue: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => _$dayjs.Dayjs | _$dayjs.Dayjs[]) | (() => _$dayjs.Dayjs | _$dayjs.Dayjs[]) | (((new (...args: any[]) => _$dayjs.Dayjs | _$dayjs.Dayjs[]) | (() => _$dayjs.Dayjs | _$dayjs.Dayjs[])) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
rangeState: EpPropFinalized<(new (...args: any[]) => RangeState) | (() => RangeState) | (((new (...args: any[]) => RangeState) | (() => RangeState)) | null)[], unknown, unknown, () => {
endDate: null;
selecting: boolean;
}, boolean>;
disabled: BooleanConstructor;
};
type BasicMonthTableProps = ExtractPropTypes<typeof basicMonthTableProps>;
type BasicMonthTablePropsPublic = ExtractPublicPropTypes<typeof basicMonthTableProps>;
//#endregion
export { BasicMonthTableProps, BasicMonthTablePropsPublic, basicMonthTableProps };
@@ -0,0 +1,12 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_runtime = require("../../../../utils/vue/props/runtime.js");
const require_shared = require("./shared.js");
//#region ../../packages/components/date-picker-panel/src/props/basic-month-table.ts
const basicMonthTableProps = require_runtime.buildProps({
...require_shared.datePickerSharedProps,
selectionMode: require_shared.selectionModeWithDefault("month")
});
//#endregion
exports.basicMonthTableProps = basicMonthTableProps;
//# sourceMappingURL=basic-month-table.js.map
@@ -0,0 +1 @@
{"version":3,"file":"basic-month-table.js","names":["buildProps","datePickerSharedProps","selectionModeWithDefault"],"sources":["../../../../../../../packages/components/date-picker-panel/src/props/basic-month-table.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { datePickerSharedProps, selectionModeWithDefault } from './shared'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const basicMonthTableProps = buildProps({\n ...datePickerSharedProps,\n selectionMode: selectionModeWithDefault('month'),\n})\n\nexport type BasicMonthTableProps = ExtractPropTypes<typeof basicMonthTableProps>\nexport type BasicMonthTablePropsPublic = ExtractPublicPropTypes<\n typeof basicMonthTableProps\n>\n"],"mappings":";;;;AAKA,MAAa,uBAAuBA,gBAAAA,WAAW;CAC7C,GAAGC,eAAAA;CACH,eAAeC,eAAAA,yBAAyB,QAAQ;CACjD,CAAC"}
@@ -0,0 +1,55 @@
import { EpPropFinalized, EpPropMergeType } from "../../../../utils/vue/props/types.js";
import { CellClassNameType, DisabledDateType, RangeState } from "./shared.js";
import * as _$vue from "vue";
import { ExtractPropTypes, ExtractPublicPropTypes } from "vue";
import * as _$dayjs from "dayjs";
//#region ../../packages/components/date-picker-panel/src/props/basic-year-table.d.ts
declare const basicYearTableProps: {
readonly selectionMode: EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
readonly cellClassName: {
readonly type: _$vue.PropType<CellClassNameType>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly disabledDate: {
readonly type: _$vue.PropType<DisabledDateType>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly date: {
readonly type: _$vue.PropType<_$dayjs.Dayjs>;
readonly required: true;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly minDate: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => _$dayjs.Dayjs) | (() => _$dayjs.Dayjs | null) | (((new (...args: any[]) => _$dayjs.Dayjs) | (() => _$dayjs.Dayjs | null)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly maxDate: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => _$dayjs.Dayjs) | (() => _$dayjs.Dayjs | null) | (((new (...args: any[]) => _$dayjs.Dayjs) | (() => _$dayjs.Dayjs | null)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly parsedValue: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => _$dayjs.Dayjs | _$dayjs.Dayjs[]) | (() => _$dayjs.Dayjs | _$dayjs.Dayjs[]) | (((new (...args: any[]) => _$dayjs.Dayjs | _$dayjs.Dayjs[]) | (() => _$dayjs.Dayjs | _$dayjs.Dayjs[])) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly rangeState: EpPropFinalized<(new (...args: any[]) => RangeState) | (() => RangeState) | (((new (...args: any[]) => RangeState) | (() => RangeState)) | null)[], unknown, unknown, () => {
endDate: null;
selecting: boolean;
}, boolean>;
readonly disabled: BooleanConstructor;
};
type BasicYearTableProps = ExtractPropTypes<typeof basicYearTableProps>;
type BasicYearTablePropsPublic = ExtractPublicPropTypes<typeof basicYearTableProps>;
//#endregion
export { BasicYearTableProps, BasicYearTablePropsPublic, basicYearTableProps };
@@ -0,0 +1,12 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_runtime = require("../../../../utils/vue/props/runtime.js");
const require_shared = require("./shared.js");
//#region ../../packages/components/date-picker-panel/src/props/basic-year-table.ts
const basicYearTableProps = require_runtime.buildProps({
...require_shared.datePickerSharedProps,
selectionMode: require_shared.selectionModeWithDefault("year")
});
//#endregion
exports.basicYearTableProps = basicYearTableProps;
//# sourceMappingURL=basic-year-table.js.map
@@ -0,0 +1 @@
{"version":3,"file":"basic-year-table.js","names":["buildProps","datePickerSharedProps","selectionModeWithDefault"],"sources":["../../../../../../../packages/components/date-picker-panel/src/props/basic-year-table.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { datePickerSharedProps, selectionModeWithDefault } from './shared'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const basicYearTableProps = buildProps({\n ...datePickerSharedProps,\n selectionMode: selectionModeWithDefault('year'),\n} as const)\n\nexport type BasicYearTableProps = ExtractPropTypes<typeof basicYearTableProps>\nexport type BasicYearTablePropsPublic = ExtractPublicPropTypes<\n typeof basicYearTableProps\n>\n"],"mappings":";;;;AAKA,MAAa,sBAAsBA,gBAAAA,WAAW;CAC5C,GAAGC,eAAAA;CACH,eAAeC,eAAAA,yBAAyB,OAAO;CAChD,CAAU"}
@@ -0,0 +1,72 @@
import { EpPropFinalized, EpPropMergeType } from "../../../../utils/vue/props/types.js";
import { GetDisabledHours, GetDisabledMinutes, GetDisabledSeconds, ModelValueType, SingleOrRange } from "../../../time-picker/src/common/props.js";
import { DatePickerType } from "../types.js";
import * as _$vue from "vue";
import { ExtractPropTypes, ExtractPublicPropTypes } from "vue";
//#region ../../packages/components/date-picker-panel/src/props/date-picker-panel.d.ts
declare const datePickerPanelProps: {
readonly disabledDate: {
readonly type: _$vue.PropType<Function>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly cellClassName: {
readonly type: _$vue.PropType<Function>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly shortcuts: EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
readonly arrowControl: BooleanConstructor;
readonly unlinkPanels: BooleanConstructor;
readonly showNow: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly showConfirm: BooleanConstructor;
readonly showFooter: BooleanConstructor;
readonly showWeekNumber: BooleanConstructor;
readonly type: EpPropFinalized<(new (...args: any[]) => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => DatePickerType) | (((new (...args: any[]) => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => DatePickerType)) | null)[], unknown, unknown, "date", boolean>;
readonly clearable: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly border: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly editable: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly disabledHours: {
readonly type: _$vue.PropType<GetDisabledHours>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly disabledMinutes: {
readonly type: _$vue.PropType<GetDisabledMinutes>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly disabledSeconds: {
readonly type: _$vue.PropType<GetDisabledSeconds>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly valueFormat: StringConstructor;
readonly dateFormat: StringConstructor;
readonly timeFormat: StringConstructor;
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
readonly modelValue: EpPropFinalized<(new (...args: any[]) => string | number | string[] | Date | number[] | Date[]) | (() => ModelValueType) | (((new (...args: any[]) => string | number | string[] | Date | number[] | Date[]) | (() => ModelValueType)) | null)[], unknown, unknown, "", boolean>;
readonly defaultValue: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | (((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly defaultTime: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | (((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly isRange: BooleanConstructor;
};
type DatePickerPanelProps = ExtractPropTypes<typeof datePickerPanelProps>;
type DatePickerPanelPropsPublic = ExtractPublicPropTypes<typeof datePickerPanelProps>;
//#endregion
export { DatePickerPanelProps, DatePickerPanelPropsPublic, datePickerPanelProps };
@@ -0,0 +1,124 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_runtime = require("../../../../utils/vue/props/runtime.js");
const require_shared = require("../../../time-picker/src/props/shared.js");
//#region ../../packages/components/date-picker-panel/src/props/date-picker-panel.ts
const datePickerPanelProps = require_runtime.buildProps({
/**
* @description optional, format of binding value. If not specified, the binding value will be a Date object
*/
valueFormat: String,
/**
* @description optional, format of the date displayed in input's inner panel
*/
dateFormat: String,
/**
* @description optional, format of the time displayed in input's inner panel
*/
timeFormat: String,
/**
* @description whether picker is disabled
*/
disabled: {
type: Boolean,
default: void 0
},
/**
* @description binding value, if it is an array, the length should be 2
*/
modelValue: {
type: require_runtime.definePropType([
Date,
Array,
String,
Number
]),
default: ""
},
/**
* @description optional, default date of the calendar
*/
defaultValue: { type: require_runtime.definePropType([Date, Array]) },
/**
* @description optional, the time value to use when selecting date range
*/
defaultTime: { type: require_runtime.definePropType([Date, Array]) },
/**
* @description whether to pick a time range
*/
isRange: Boolean,
...require_shared.disabledTimeListsProps,
/**
* @description a function determining if a date is disabled with that date as its parameter. Should return a Boolean
*/
disabledDate: { type: Function },
/**
* @description set custom className
*/
cellClassName: { type: Function },
/**
* @description an object array to set shortcut options
*/
shortcuts: {
type: Array,
default: () => []
},
/**
* @description whether to pick time using arrow buttons
*/
arrowControl: Boolean,
/**
* @description unlink two date-panels in range-picker
*/
unlinkPanels: Boolean,
/**
* @description whether to show the now button
*/
showNow: {
type: Boolean,
default: true
},
/**
* @description whether to show the confirm button
*/
showConfirm: Boolean,
/**
* @description whether to show footer
*/
showFooter: Boolean,
/**
* @description whether to show the number of the calendar week
*/
showWeekNumber: Boolean,
/**
* @description type of the picker
*/
type: {
type: require_runtime.definePropType(String),
default: "date"
},
/**
* @description whether to show clear button in range mode
*/
clearable: {
type: Boolean,
default: true
},
/**
* @description whether the date picker is bordered
*/
border: {
type: Boolean,
default: true
},
/**
* @description whether the input is editable
*/
editable: {
type: Boolean,
default: true
}
});
//#endregion
exports.datePickerPanelProps = datePickerPanelProps;
//# sourceMappingURL=date-picker-panel.js.map
@@ -0,0 +1 @@
{"version":3,"file":"date-picker-panel.js","names":["buildProps","definePropType","disabledTimeListsProps"],"sources":["../../../../../../../packages/components/date-picker-panel/src/props/date-picker-panel.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { disabledTimeListsProps } from '@element-plus/components/time-picker/src/props/shared'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type {\n ModelValueType,\n SingleOrRange,\n} from '@element-plus/components/time-picker'\nimport type { DatePickerType } from '../types'\n\nexport const datePickerPanelProps = buildProps({\n /**\n * @description optional, format of binding value. If not specified, the binding value will be a Date object\n */\n valueFormat: String,\n /**\n * @description optional, format of the date displayed in input's inner panel\n */\n dateFormat: String,\n /**\n * @description optional, format of the time displayed in input's inner panel\n */\n timeFormat: String,\n /**\n * @description whether picker is disabled\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description binding value, if it is an array, the length should be 2\n */\n modelValue: {\n type: definePropType<ModelValueType>([Date, Array, String, Number]),\n default: '',\n },\n /**\n * @description optional, default date of the calendar\n */\n defaultValue: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n /**\n * @description optional, the time value to use when selecting date range\n */\n defaultTime: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n /**\n * @description whether to pick a time range\n */\n isRange: Boolean,\n ...disabledTimeListsProps,\n /**\n * @description a function determining if a date is disabled with that date as its parameter. Should return a Boolean\n */\n disabledDate: {\n type: Function,\n },\n /**\n * @description set custom className\n */\n cellClassName: {\n type: Function,\n },\n /**\n * @description an object array to set shortcut options\n */\n shortcuts: {\n type: Array,\n default: () => [],\n },\n /**\n * @description whether to pick time using arrow buttons\n */\n arrowControl: Boolean,\n /**\n * @description unlink two date-panels in range-picker\n */\n unlinkPanels: Boolean,\n /**\n * @description whether to show the now button\n */\n showNow: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to show the confirm button\n */\n showConfirm: Boolean,\n /**\n * @description whether to show footer\n */\n showFooter: Boolean,\n /**\n * @description whether to show the number of the calendar week\n */\n showWeekNumber: Boolean,\n /**\n * @description type of the picker\n */\n type: {\n type: definePropType<DatePickerType>(String),\n default: 'date',\n },\n /**\n * @description whether to show clear button in range mode\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the date picker is bordered\n */\n border: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n} as const)\n\nexport type DatePickerPanelProps = ExtractPropTypes<typeof datePickerPanelProps>\nexport type DatePickerPanelPropsPublic = ExtractPublicPropTypes<\n typeof datePickerPanelProps\n>\n"],"mappings":";;;;AAUA,MAAa,uBAAuBA,gBAAAA,WAAW;;;;CAI7C,aAAa;;;;CAIb,YAAY;;;;CAIZ,YAAY;;;;CAIZ,UAAU;EACR,MAAM;EACN,SAAS,KAAA;EACV;;;;CAID,YAAY;EACV,MAAMC,gBAAAA,eAA+B;GAAC;GAAM;GAAO;GAAQ;GAAO,CAAC;EACnE,SAAS;EACV;;;;CAID,cAAc,EACZ,MAAMA,gBAAAA,eAAoC,CAAC,MAAM,MAAM,CAAC,EACzD;;;;CAID,aAAa,EACX,MAAMA,gBAAAA,eAAoC,CAAC,MAAM,MAAM,CAAC,EACzD;;;;CAID,SAAS;CACT,GAAGC,eAAAA;;;;CAIH,cAAc,EACZ,MAAM,UACP;;;;CAID,eAAe,EACb,MAAM,UACP;;;;CAID,WAAW;EACT,MAAM;EACN,eAAe,EAAE;EAClB;;;;CAID,cAAc;;;;CAId,cAAc;;;;CAId,SAAS;EACP,MAAM;EACN,SAAS;EACV;;;;CAID,aAAa;;;;CAIb,YAAY;;;;CAIZ,gBAAgB;;;;CAIhB,MAAM;EACJ,MAAMD,gBAAAA,eAA+B,OAAO;EAC5C,SAAS;EACV;;;;CAID,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,QAAQ;EACN,MAAM;EACN,SAAS;EACV;;;;CAID,UAAU;EACR,MAAM;EACN,SAAS;EACV;CACF,CAAU"}
@@ -0,0 +1,36 @@
import { EpPropFinalized, EpPropMergeType } from "../../../../utils/vue/props/types.js";
import { DayOrDays } from "../../../time-picker/src/common/props.js";
import * as _$vue from "vue";
import { ExtractPropTypes, ExtractPublicPropTypes } from "vue";
import * as _$dayjs from "dayjs";
//#region ../../packages/components/date-picker-panel/src/props/panel-date-pick.d.ts
declare const panelDatePickProps: {
readonly parsedValue: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => _$dayjs.Dayjs | [_$dayjs.Dayjs, _$dayjs.Dayjs]) | (() => DayOrDays) | (((new (...args: any[]) => _$dayjs.Dayjs | [_$dayjs.Dayjs, _$dayjs.Dayjs]) | (() => DayOrDays)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly visible: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly format: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
readonly type: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (((new (...args: any[]) => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange")) | null)[], "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange", unknown>>;
readonly required: true;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly dateFormat: StringConstructor;
readonly timeFormat: StringConstructor;
readonly showNow: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly showConfirm: BooleanConstructor;
readonly showFooter: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly showWeekNumber: BooleanConstructor;
readonly border: BooleanConstructor;
readonly disabled: BooleanConstructor;
readonly editable: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
};
type PanelDatePickProps = ExtractPropTypes<typeof panelDatePickProps>;
type PanelDatePickPropsPublic = ExtractPublicPropTypes<typeof panelDatePickProps>;
//#endregion
export { PanelDatePickProps, PanelDatePickPropsPublic, panelDatePickProps };
@@ -0,0 +1,20 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_runtime = require("../../../../utils/vue/props/runtime.js");
const require_shared = require("./shared.js");
//#region ../../packages/components/date-picker-panel/src/props/panel-date-pick.ts
const panelDatePickProps = require_runtime.buildProps({
...require_shared.panelSharedProps,
parsedValue: { type: require_runtime.definePropType([Object, Array]) },
visible: {
type: Boolean,
default: true
},
format: {
type: String,
default: ""
}
});
//#endregion
exports.panelDatePickProps = panelDatePickProps;
//# sourceMappingURL=panel-date-pick.js.map
@@ -0,0 +1 @@
{"version":3,"file":"panel-date-pick.js","names":["buildProps","panelSharedProps","definePropType"],"sources":["../../../../../../../packages/components/date-picker-panel/src/props/panel-date-pick.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { panelSharedProps } from './shared'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type { DayOrDays } from '@element-plus/components/time-picker'\n\nexport const panelDatePickProps = buildProps({\n ...panelSharedProps,\n parsedValue: {\n type: definePropType<DayOrDays>([Object, Array]),\n },\n visible: {\n type: Boolean,\n default: true,\n },\n format: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type PanelDatePickProps = ExtractPropTypes<typeof panelDatePickProps>\nexport type PanelDatePickPropsPublic = ExtractPublicPropTypes<\n typeof panelDatePickProps\n>\n"],"mappings":";;;;AAMA,MAAa,qBAAqBA,gBAAAA,WAAW;CAC3C,GAAGC,eAAAA;CACH,aAAa,EACX,MAAMC,gBAAAA,eAA0B,CAAC,QAAQ,MAAM,CAAC,EACjD;CACD,SAAS;EACP,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CACF,CAAU"}
@@ -0,0 +1,37 @@
import { EpPropFinalized, EpPropMergeType } from "../../../../utils/vue/props/types.js";
import { DayOrDays } from "../../../time-picker/src/common/props.js";
import * as _$vue from "vue";
import { ExtractPropTypes, ExtractPublicPropTypes } from "vue";
import * as _$dayjs from "dayjs";
//#region ../../packages/components/date-picker-panel/src/props/panel-date-range.d.ts
declare const panelDateRangeProps: {
readonly unlinkPanels: BooleanConstructor;
readonly visible: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly showConfirm: BooleanConstructor;
readonly showFooter: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly border: BooleanConstructor;
readonly disabled: BooleanConstructor;
readonly parsedValue: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => _$dayjs.Dayjs | [_$dayjs.Dayjs, _$dayjs.Dayjs]) | (() => DayOrDays) | (((new (...args: any[]) => _$dayjs.Dayjs | [_$dayjs.Dayjs, _$dayjs.Dayjs]) | (() => DayOrDays)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly singlePanel: BooleanConstructor;
readonly type: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (((new (...args: any[]) => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange")) | null)[], "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange", unknown>>;
readonly required: true;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly dateFormat: StringConstructor;
readonly timeFormat: StringConstructor;
readonly showNow: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly showWeekNumber: BooleanConstructor;
readonly editable: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
};
type PanelDateRangeProps = ExtractPropTypes<typeof panelDateRangeProps>;
type PanelDateRangePropsPublic = ExtractPublicPropTypes<typeof panelDateRangeProps>;
//#endregion
export { PanelDateRangeProps, PanelDateRangePropsPublic, panelDateRangeProps };
@@ -0,0 +1,12 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_runtime = require("../../../../utils/vue/props/runtime.js");
const require_shared = require("./shared.js");
//#region ../../packages/components/date-picker-panel/src/props/panel-date-range.ts
const panelDateRangeProps = require_runtime.buildProps({
...require_shared.panelSharedProps,
...require_shared.panelRangeSharedProps
});
//#endregion
exports.panelDateRangeProps = panelDateRangeProps;
//# sourceMappingURL=panel-date-range.js.map
@@ -0,0 +1 @@
{"version":3,"file":"panel-date-range.js","names":["buildProps","panelSharedProps","panelRangeSharedProps"],"sources":["../../../../../../../packages/components/date-picker-panel/src/props/panel-date-range.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { panelRangeSharedProps, panelSharedProps } from './shared'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const panelDateRangeProps = buildProps({\n ...panelSharedProps,\n ...panelRangeSharedProps,\n} as const)\n\nexport type PanelDateRangeProps = ExtractPropTypes<typeof panelDateRangeProps>\nexport type PanelDateRangePropsPublic = ExtractPublicPropTypes<\n typeof panelDateRangeProps\n>\n"],"mappings":";;;;AAKA,MAAa,sBAAsBA,gBAAAA,WAAW;CAC5C,GAAGC,eAAAA;CACH,GAAGC,eAAAA;CACJ,CAAU"}
@@ -0,0 +1,27 @@
import { EpPropFinalized, EpPropMergeType } from "../../../../utils/vue/props/types.js";
import { DayOrDays } from "../../../time-picker/src/common/props.js";
import * as _$vue from "vue";
import { ExtractPropTypes, ExtractPublicPropTypes } from "vue";
import * as _$dayjs from "dayjs";
//#region ../../packages/components/date-picker-panel/src/props/panel-month-range.d.ts
declare const panelMonthRangeProps: {
readonly unlinkPanels: BooleanConstructor;
readonly visible: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly showConfirm: BooleanConstructor;
readonly showFooter: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly border: BooleanConstructor;
readonly disabled: BooleanConstructor;
readonly parsedValue: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => _$dayjs.Dayjs | [_$dayjs.Dayjs, _$dayjs.Dayjs]) | (() => DayOrDays) | (((new (...args: any[]) => _$dayjs.Dayjs | [_$dayjs.Dayjs, _$dayjs.Dayjs]) | (() => DayOrDays)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly singlePanel: BooleanConstructor;
};
declare const panelMonthRangeEmits: string[];
type PanelMonthRangeProps = ExtractPropTypes<typeof panelMonthRangeProps>;
type PanelMonthRangePropsPublic = ExtractPublicPropTypes<typeof panelMonthRangeProps>;
//#endregion
export { PanelMonthRangeProps, PanelMonthRangePropsPublic, panelMonthRangeEmits, panelMonthRangeProps };
@@ -0,0 +1,15 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_runtime = require("../../../../utils/vue/props/runtime.js");
const require_shared = require("./shared.js");
//#region ../../packages/components/date-picker-panel/src/props/panel-month-range.ts
const panelMonthRangeProps = require_runtime.buildProps({ ...require_shared.panelRangeSharedProps });
const panelMonthRangeEmits = [
"pick",
"set-picker-option",
"calendar-change"
];
//#endregion
exports.panelMonthRangeEmits = panelMonthRangeEmits;
exports.panelMonthRangeProps = panelMonthRangeProps;
//# sourceMappingURL=panel-month-range.js.map
@@ -0,0 +1 @@
{"version":3,"file":"panel-month-range.js","names":["buildProps","panelRangeSharedProps"],"sources":["../../../../../../../packages/components/date-picker-panel/src/props/panel-month-range.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { panelRangeSharedProps } from './shared'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const panelMonthRangeProps = buildProps({\n ...panelRangeSharedProps,\n} as const)\n\nexport const panelMonthRangeEmits = [\n 'pick',\n 'set-picker-option',\n 'calendar-change',\n]\n\nexport type PanelMonthRangeProps = ExtractPropTypes<typeof panelMonthRangeProps>\nexport type PanelMonthRangePropsPublic = ExtractPublicPropTypes<\n typeof panelMonthRangeProps\n>\n"],"mappings":";;;;AAKA,MAAa,uBAAuBA,gBAAAA,WAAW,EAC7C,GAAGC,eAAAA,uBACJ,CAAU;AAEX,MAAa,uBAAuB;CAClC;CACA;CACA;CACD"}
@@ -0,0 +1,27 @@
import { EpPropFinalized, EpPropMergeType } from "../../../../utils/vue/props/types.js";
import { DayOrDays } from "../../../time-picker/src/common/props.js";
import * as _$vue from "vue";
import { ExtractPropTypes, ExtractPublicPropTypes } from "vue";
import * as _$dayjs from "dayjs";
//#region ../../packages/components/date-picker-panel/src/props/panel-year-range.d.ts
declare const panelYearRangeProps: {
readonly unlinkPanels: BooleanConstructor;
readonly visible: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly showConfirm: BooleanConstructor;
readonly showFooter: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly border: BooleanConstructor;
readonly disabled: BooleanConstructor;
readonly parsedValue: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => _$dayjs.Dayjs | [_$dayjs.Dayjs, _$dayjs.Dayjs]) | (() => DayOrDays) | (((new (...args: any[]) => _$dayjs.Dayjs | [_$dayjs.Dayjs, _$dayjs.Dayjs]) | (() => DayOrDays)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly singlePanel: BooleanConstructor;
};
declare const panelYearRangeEmits: string[];
type PanelYearRangeProps = ExtractPropTypes<typeof panelYearRangeProps>;
type PanelYearRangePropsPublic = ExtractPublicPropTypes<typeof panelYearRangeProps>;
//#endregion
export { PanelYearRangeProps, PanelYearRangePropsPublic, panelYearRangeEmits, panelYearRangeProps };
@@ -0,0 +1,15 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_runtime = require("../../../../utils/vue/props/runtime.js");
const require_shared = require("./shared.js");
//#region ../../packages/components/date-picker-panel/src/props/panel-year-range.ts
const panelYearRangeProps = require_runtime.buildProps({ ...require_shared.panelRangeSharedProps });
const panelYearRangeEmits = [
"pick",
"set-picker-option",
"calendar-change"
];
//#endregion
exports.panelYearRangeEmits = panelYearRangeEmits;
exports.panelYearRangeProps = panelYearRangeProps;
//# sourceMappingURL=panel-year-range.js.map
@@ -0,0 +1 @@
{"version":3,"file":"panel-year-range.js","names":["buildProps","panelRangeSharedProps"],"sources":["../../../../../../../packages/components/date-picker-panel/src/props/panel-year-range.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { panelRangeSharedProps } from './shared'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const panelYearRangeProps = buildProps({\n ...panelRangeSharedProps,\n} as const)\n\nexport const panelYearRangeEmits = [\n 'pick',\n 'set-picker-option',\n 'calendar-change',\n]\n\nexport type PanelYearRangeProps = ExtractPropTypes<typeof panelYearRangeProps>\nexport type PanelYearRangePropsPublic = ExtractPublicPropTypes<\n typeof panelYearRangeProps\n>\n"],"mappings":";;;;AAKA,MAAa,sBAAsBA,gBAAAA,WAAW,EAC5C,GAAGC,eAAAA,uBACJ,CAAU;AAEX,MAAa,sBAAsB;CACjC;CACA;CACA;CACD"}
@@ -0,0 +1,102 @@
import { EpPropFinalized, EpPropMergeType } from "../../../../utils/vue/props/types.js";
import { DayOrDays } from "../../../time-picker/src/common/props.js";
import * as _$vue from "vue";
import { ExtractPropTypes, ExtractPublicPropTypes } from "vue";
import { Dayjs } from "dayjs";
//#region ../../packages/components/date-picker-panel/src/props/shared.d.ts
declare const selectionModes: string[];
type RangeState = {
endDate: null | Dayjs;
selecting: boolean;
};
type DisabledDateType = (date: Date) => boolean;
type CellClassNameType = (date: Date) => string;
declare const datePickerSharedProps: {
readonly cellClassName: {
readonly type: _$vue.PropType<CellClassNameType>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly disabledDate: {
readonly type: _$vue.PropType<DisabledDateType>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly date: {
readonly type: _$vue.PropType<Dayjs>;
readonly required: true;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly minDate: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => Dayjs) | (() => Dayjs | null) | (((new (...args: any[]) => Dayjs) | (() => Dayjs | null)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly maxDate: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => Dayjs) | (() => Dayjs | null) | (((new (...args: any[]) => Dayjs) | (() => Dayjs | null)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly parsedValue: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[]) | (((new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[])) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly rangeState: EpPropFinalized<(new (...args: any[]) => RangeState) | (() => RangeState) | (((new (...args: any[]) => RangeState) | (() => RangeState)) | null)[], unknown, unknown, () => {
endDate: null;
selecting: boolean;
}, boolean>;
readonly disabled: BooleanConstructor;
};
declare const panelSharedProps: {
readonly type: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (((new (...args: any[]) => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange")) | null)[], "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange", unknown>>;
readonly required: true;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly dateFormat: StringConstructor;
readonly timeFormat: StringConstructor;
readonly showNow: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly showConfirm: BooleanConstructor;
readonly showFooter: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly showWeekNumber: BooleanConstructor;
readonly border: BooleanConstructor;
readonly disabled: BooleanConstructor;
readonly editable: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
};
declare const panelRangeSharedProps: {
readonly unlinkPanels: BooleanConstructor;
readonly visible: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly showConfirm: BooleanConstructor;
readonly showFooter: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly border: BooleanConstructor;
readonly disabled: BooleanConstructor;
readonly parsedValue: {
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => Dayjs | [Dayjs, Dayjs]) | (() => DayOrDays) | (((new (...args: any[]) => Dayjs | [Dayjs, Dayjs]) | (() => DayOrDays)) | null)[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly singlePanel: BooleanConstructor;
};
declare const selectionModeWithDefault: (mode: (typeof selectionModes)[number]) => {
type: StringConstructor;
values: string[];
default: string;
};
declare const rangePickerSharedEmits: {
pick: (range: [Dayjs, Dayjs]) => boolean;
};
type RangePickerSharedEmits = typeof rangePickerSharedEmits;
type PanelRangeSharedProps = ExtractPropTypes<typeof panelRangeSharedProps>;
type PanelRangeSharedPropsPublic = ExtractPublicPropTypes<typeof panelRangeSharedProps>;
//#endregion
export { CellClassNameType, DisabledDateType, PanelRangeSharedProps, PanelRangeSharedPropsPublic, RangePickerSharedEmits, RangeState, datePickerSharedProps, panelRangeSharedProps, panelSharedProps, rangePickerSharedEmits, selectionModeWithDefault };
@@ -0,0 +1,92 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("../../../../_virtual/_rolldown/runtime.js");
const require_date = require("../../../../constants/date.js");
const require_runtime$1 = require("../../../../utils/vue/props/runtime.js");
let _vue_shared = require("@vue/shared");
//#region ../../packages/components/date-picker-panel/src/props/shared.ts
const selectionModes = [
"date",
"dates",
"year",
"years",
"month",
"months",
"week",
"range"
];
const datePickerSharedProps = require_runtime$1.buildProps({
cellClassName: { type: require_runtime$1.definePropType(Function) },
disabledDate: { type: require_runtime$1.definePropType(Function) },
date: {
type: require_runtime$1.definePropType(Object),
required: true
},
minDate: { type: require_runtime$1.definePropType(Object) },
maxDate: { type: require_runtime$1.definePropType(Object) },
parsedValue: { type: require_runtime$1.definePropType([Object, Array]) },
rangeState: {
type: require_runtime$1.definePropType(Object),
default: () => ({
endDate: null,
selecting: false
})
},
disabled: Boolean
});
const panelSharedProps = require_runtime$1.buildProps({
type: {
type: require_runtime$1.definePropType(String),
required: true,
values: require_date.datePickTypes
},
dateFormat: String,
timeFormat: String,
showNow: {
type: Boolean,
default: true
},
showConfirm: Boolean,
showFooter: {
type: Boolean,
default: true
},
showWeekNumber: Boolean,
border: Boolean,
disabled: Boolean,
editable: {
type: Boolean,
default: true
}
});
const panelRangeSharedProps = require_runtime$1.buildProps({
unlinkPanels: Boolean,
visible: {
type: Boolean,
default: true
},
showConfirm: Boolean,
showFooter: {
type: Boolean,
default: true
},
border: Boolean,
disabled: Boolean,
parsedValue: { type: require_runtime$1.definePropType(Array) },
singlePanel: Boolean
});
const selectionModeWithDefault = (mode) => {
return {
type: String,
values: selectionModes,
default: mode
};
};
const rangePickerSharedEmits = { pick: (range) => (0, _vue_shared.isArray)(range) };
//#endregion
exports.datePickerSharedProps = datePickerSharedProps;
exports.panelRangeSharedProps = panelRangeSharedProps;
exports.panelSharedProps = panelSharedProps;
exports.rangePickerSharedEmits = rangePickerSharedEmits;
exports.selectionModeWithDefault = selectionModeWithDefault;
//# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
{"version":3,"file":"shared.js","names":["buildProps","definePropType","datePickTypes"],"sources":["../../../../../../../packages/components/date-picker-panel/src/props/shared.ts"],"sourcesContent":["import { buildProps, definePropType, isArray } from '@element-plus/utils'\nimport { datePickTypes } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type { DatePickType } from '@element-plus/constants'\nimport type { DayOrDays } from '@element-plus/components/time-picker'\n\nconst selectionModes = [\n 'date',\n 'dates',\n 'year',\n 'years',\n 'month',\n 'months',\n 'week',\n 'range',\n]\n\nexport type RangeState = {\n endDate: null | Dayjs\n selecting: boolean\n}\n\nexport type DisabledDateType = (date: Date) => boolean\nexport type CellClassNameType = (date: Date) => string\n\nexport const datePickerSharedProps = buildProps({\n cellClassName: {\n type: definePropType<CellClassNameType>(Function),\n },\n disabledDate: {\n type: definePropType<DisabledDateType>(Function),\n },\n date: {\n type: definePropType<Dayjs>(Object),\n required: true,\n },\n minDate: {\n type: definePropType<Dayjs | null>(Object),\n },\n maxDate: {\n type: definePropType<Dayjs | null>(Object),\n },\n parsedValue: {\n type: definePropType<Dayjs | Dayjs[]>([Object, Array]),\n },\n rangeState: {\n type: definePropType<RangeState>(Object),\n default: () => ({\n endDate: null,\n selecting: false,\n }),\n },\n disabled: Boolean,\n} as const)\n\nexport const panelSharedProps = buildProps({\n type: {\n type: definePropType<DatePickType>(String),\n required: true,\n values: datePickTypes,\n },\n dateFormat: String,\n timeFormat: String,\n showNow: {\n type: Boolean,\n default: true,\n },\n showConfirm: Boolean,\n showFooter: {\n type: Boolean,\n default: true,\n },\n showWeekNumber: Boolean,\n border: Boolean,\n disabled: Boolean,\n editable: {\n type: Boolean,\n default: true,\n },\n} as const)\n\nexport const panelRangeSharedProps = buildProps({\n unlinkPanels: Boolean,\n visible: {\n type: Boolean,\n default: true,\n },\n showConfirm: Boolean,\n showFooter: {\n type: Boolean,\n default: true,\n },\n border: Boolean,\n disabled: Boolean,\n parsedValue: {\n type: definePropType<DayOrDays>(Array),\n },\n singlePanel: Boolean,\n} as const)\n\nexport const selectionModeWithDefault = (\n mode: (typeof selectionModes)[number]\n) => {\n return {\n type: String,\n values: selectionModes,\n default: mode,\n }\n}\n\nexport const rangePickerSharedEmits = {\n pick: (range: [Dayjs, Dayjs]) => isArray(range),\n}\n\nexport type RangePickerSharedEmits = typeof rangePickerSharedEmits\nexport type PanelRangeSharedProps = ExtractPropTypes<\n typeof panelRangeSharedProps\n>\nexport type PanelRangeSharedPropsPublic = ExtractPublicPropTypes<\n typeof panelRangeSharedProps\n>\n"],"mappings":";;;;;;AAQA,MAAM,iBAAiB;CACrB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAUD,MAAa,wBAAwBA,kBAAAA,WAAW;CAC9C,eAAe,EACb,MAAMC,kBAAAA,eAAkC,SAAS,EAClD;CACD,cAAc,EACZ,MAAMA,kBAAAA,eAAiC,SAAS,EACjD;CACD,MAAM;EACJ,MAAMA,kBAAAA,eAAsB,OAAO;EACnC,UAAU;EACX;CACD,SAAS,EACP,MAAMA,kBAAAA,eAA6B,OAAO,EAC3C;CACD,SAAS,EACP,MAAMA,kBAAAA,eAA6B,OAAO,EAC3C;CACD,aAAa,EACX,MAAMA,kBAAAA,eAAgC,CAAC,QAAQ,MAAM,CAAC,EACvD;CACD,YAAY;EACV,MAAMA,kBAAAA,eAA2B,OAAO;EACxC,gBAAgB;GACd,SAAS;GACT,WAAW;GACZ;EACF;CACD,UAAU;CACX,CAAU;AAEX,MAAa,mBAAmBD,kBAAAA,WAAW;CACzC,MAAM;EACJ,MAAMC,kBAAAA,eAA6B,OAAO;EAC1C,UAAU;EACV,QAAQC,aAAAA;EACT;CACD,YAAY;CACZ,YAAY;CACZ,SAAS;EACP,MAAM;EACN,SAAS;EACV;CACD,aAAa;CACb,YAAY;EACV,MAAM;EACN,SAAS;EACV;CACD,gBAAgB;CAChB,QAAQ;CACR,UAAU;CACV,UAAU;EACR,MAAM;EACN,SAAS;EACV;CACF,CAAU;AAEX,MAAa,wBAAwBF,kBAAAA,WAAW;CAC9C,cAAc;CACd,SAAS;EACP,MAAM;EACN,SAAS;EACV;CACD,aAAa;CACb,YAAY;EACV,MAAM;EACN,SAAS;EACV;CACD,QAAQ;CACR,UAAU;CACV,aAAa,EACX,MAAMC,kBAAAA,eAA0B,MAAM,EACvC;CACD,aAAa;CACd,CAAU;AAEX,MAAa,4BACX,SACG;CACH,OAAO;EACL,MAAM;EACN,QAAQ;EACR,SAAS;EACV;;AAGH,MAAa,yBAAyB,EACpC,OAAO,WAAA,GAAA,YAAA,SAAkC,MAAM,EAChD"}