测试
This commit is contained in:
10
frontend/node_modules/element-plus/es/components/time-picker/index.d.ts
generated
vendored
Normal file
10
frontend/node_modules/element-plus/es/components/time-picker/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import TimePicker from './src/time-picker';
|
||||
import CommonPicker from './src/common/picker.vue';
|
||||
import TimePickPanel from './src/time-picker-com/panel-time-pick.vue';
|
||||
import type { SFCWithInstall } from 'element-plus/es/utils';
|
||||
export * from './src/utils';
|
||||
export * from './src/constants';
|
||||
export * from './src/common/props';
|
||||
export declare const ElTimePicker: SFCWithInstall<typeof TimePicker>;
|
||||
export { CommonPicker, TimePickPanel };
|
||||
export default ElTimePicker;
|
||||
12
frontend/node_modules/element-plus/es/components/time-picker/index.mjs
generated
vendored
Normal file
12
frontend/node_modules/element-plus/es/components/time-picker/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import TimePicker from './src/time-picker.mjs';
|
||||
export { default as CommonPicker } from './src/common/picker.mjs';
|
||||
export { default as TimePickPanel } from './src/time-picker-com/panel-time-pick.mjs';
|
||||
export { buildTimeList, dateEquals, dayOrDaysToDate, extractDateFormat, extractTimeFormat, formatter, makeList, parseDate, rangeArr, valueEquals } from './src/utils.mjs';
|
||||
export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, PICKER_BASE_INJECTION_KEY, PICKER_POPPER_OPTIONS_INJECTION_KEY, ROOT_COMMON_PICKER_INJECTION_KEY, timeUnits } from './src/constants.mjs';
|
||||
export { timePickerDefaultProps, timePickerRangeTriggerProps, timePickerRngeTriggerProps } from './src/common/props.mjs';
|
||||
import { withInstall } from '../../utils/vue/install.mjs';
|
||||
|
||||
const ElTimePicker = withInstall(TimePicker);
|
||||
|
||||
export { ElTimePicker, ElTimePicker as default };
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/index.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/index.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/time-picker/index.ts"],"sourcesContent":["import { withInstall } from '@element-plus/utils'\nimport TimePicker from './src/time-picker'\nimport CommonPicker from './src/common/picker.vue'\nimport TimePickPanel from './src/time-picker-com/panel-time-pick.vue'\n\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport * from './src/utils'\nexport * from './src/constants'\nexport * from './src/common/props'\n\nexport const ElTimePicker: SFCWithInstall<typeof TimePicker> =\n withInstall(TimePicker)\n\nexport { CommonPicker, TimePickPanel }\nexport default ElTimePicker\n"],"names":[],"mappings":";;;;;;;;AAOY,MAAC,YAAY,GAAG,WAAW,CAAC,UAAU;;;;"}
|
||||
127
frontend/node_modules/element-plus/es/components/time-picker/src/common/picker-range-trigger.mjs
generated
vendored
Normal file
127
frontend/node_modules/element-plus/es/components/time-picker/src/common/picker-range-trigger.mjs
generated
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
import { defineComponent, reactive, computed, ref, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, renderSlot, createElementVNode, mergeProps } from 'vue';
|
||||
import { timePickerRangeTriggerProps } from './props.mjs';
|
||||
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
||||
import { useFormItem, useFormItemInputId } from '../../../form/src/hooks/use-form-item.mjs';
|
||||
import { useAttrs } from '../../../../hooks/use-attrs/index.mjs';
|
||||
import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
|
||||
import { useFocusController } from '../../../../hooks/use-focus-controller/index.mjs';
|
||||
|
||||
const __default__ = defineComponent({
|
||||
name: "PickerRangeTrigger",
|
||||
inheritAttrs: false
|
||||
});
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
...__default__,
|
||||
props: timePickerRangeTriggerProps,
|
||||
emits: [
|
||||
"mouseenter",
|
||||
"mouseleave",
|
||||
"click",
|
||||
"touchstart",
|
||||
"focus",
|
||||
"blur",
|
||||
"startInput",
|
||||
"endInput",
|
||||
"startChange",
|
||||
"endChange"
|
||||
],
|
||||
setup(__props, { expose, emit }) {
|
||||
const props = __props;
|
||||
const { formItem } = useFormItem();
|
||||
const { inputId } = useFormItemInputId(reactive({ id: computed(() => {
|
||||
var _a;
|
||||
return (_a = props.id) == null ? void 0 : _a[0];
|
||||
}) }), {
|
||||
formItemContext: formItem
|
||||
});
|
||||
const attrs = useAttrs();
|
||||
const nsDate = useNamespace("date");
|
||||
const nsRange = useNamespace("range");
|
||||
const inputRef = ref();
|
||||
const endInputRef = ref();
|
||||
const { wrapperRef, isFocused } = useFocusController(inputRef, {
|
||||
disabled: computed(() => props.disabled)
|
||||
});
|
||||
const handleClick = (evt) => {
|
||||
emit("click", evt);
|
||||
};
|
||||
const handleMouseEnter = (evt) => {
|
||||
emit("mouseenter", evt);
|
||||
};
|
||||
const handleMouseLeave = (evt) => {
|
||||
emit("mouseleave", evt);
|
||||
};
|
||||
const handleTouchStart = (evt) => {
|
||||
emit("touchstart", evt);
|
||||
};
|
||||
const handleStartInput = (evt) => {
|
||||
emit("startInput", evt);
|
||||
};
|
||||
const handleEndInput = (evt) => {
|
||||
emit("endInput", evt);
|
||||
};
|
||||
const handleStartChange = (evt) => {
|
||||
emit("startChange", evt);
|
||||
};
|
||||
const handleEndChange = (evt) => {
|
||||
emit("endChange", evt);
|
||||
};
|
||||
const focus = () => {
|
||||
var _a;
|
||||
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
||||
};
|
||||
const blur = () => {
|
||||
var _a, _b;
|
||||
(_a = inputRef.value) == null ? void 0 : _a.blur();
|
||||
(_b = endInputRef.value) == null ? void 0 : _b.blur();
|
||||
};
|
||||
expose({
|
||||
focus,
|
||||
blur
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createElementBlock("div", {
|
||||
ref_key: "wrapperRef",
|
||||
ref: wrapperRef,
|
||||
class: normalizeClass([unref(nsDate).is("active", unref(isFocused)), _ctx.$attrs.class]),
|
||||
style: normalizeStyle(_ctx.$attrs.style),
|
||||
onClick: handleClick,
|
||||
onMouseenter: handleMouseEnter,
|
||||
onMouseleave: handleMouseLeave,
|
||||
onTouchstartPassive: handleTouchStart
|
||||
}, [
|
||||
renderSlot(_ctx.$slots, "prefix"),
|
||||
createElementVNode("input", mergeProps(unref(attrs), {
|
||||
id: unref(inputId),
|
||||
ref_key: "inputRef",
|
||||
ref: inputRef,
|
||||
name: _ctx.name && _ctx.name[0],
|
||||
placeholder: _ctx.startPlaceholder,
|
||||
value: _ctx.modelValue && _ctx.modelValue[0],
|
||||
class: unref(nsRange).b("input"),
|
||||
disabled: _ctx.disabled,
|
||||
onInput: handleStartInput,
|
||||
onChange: handleStartChange
|
||||
}), null, 16, ["id", "name", "placeholder", "value", "disabled"]),
|
||||
renderSlot(_ctx.$slots, "range-separator"),
|
||||
createElementVNode("input", mergeProps(unref(attrs), {
|
||||
id: _ctx.id && _ctx.id[1],
|
||||
ref_key: "endInputRef",
|
||||
ref: endInputRef,
|
||||
name: _ctx.name && _ctx.name[1],
|
||||
placeholder: _ctx.endPlaceholder,
|
||||
value: _ctx.modelValue && _ctx.modelValue[1],
|
||||
class: unref(nsRange).b("input"),
|
||||
disabled: _ctx.disabled,
|
||||
onInput: handleEndInput,
|
||||
onChange: handleEndChange
|
||||
}), null, 16, ["id", "name", "placeholder", "value", "disabled"]),
|
||||
renderSlot(_ctx.$slots, "suffix")
|
||||
], 38);
|
||||
};
|
||||
}
|
||||
});
|
||||
var PickerRangeTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "picker-range-trigger.vue"]]);
|
||||
|
||||
export { PickerRangeTrigger as default };
|
||||
//# sourceMappingURL=picker-range-trigger.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/common/picker-range-trigger.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/common/picker-range-trigger.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
84
frontend/node_modules/element-plus/es/components/time-picker/src/common/picker-range-trigger.vue.d.ts
generated
vendored
Normal file
84
frontend/node_modules/element-plus/es/components/time-picker/src/common/picker-range-trigger.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
declare function __VLS_template(): {
|
||||
prefix?(_: {}): any;
|
||||
"range-separator"?(_: {}): any;
|
||||
suffix?(_: {}): any;
|
||||
};
|
||||
declare const __VLS_component: import("vue").DefineComponent<{
|
||||
readonly id: {
|
||||
readonly type: import("vue").PropType<string[]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly name: {
|
||||
readonly type: import("vue").PropType<string[]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly modelValue: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string | null, string | null]) | (() => import("./props").UserInput) | ((new (...args: any[]) => string | [string | null, string | null]) | (() => import("./props").UserInput))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly startPlaceholder: StringConstructor;
|
||||
readonly endPlaceholder: StringConstructor;
|
||||
readonly disabled: BooleanConstructor;
|
||||
}, {
|
||||
focus: () => void;
|
||||
blur: () => void;
|
||||
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
||||
click: (...args: any[]) => void;
|
||||
focus: (...args: any[]) => void;
|
||||
blur: (...args: any[]) => void;
|
||||
mouseenter: (...args: any[]) => void;
|
||||
mouseleave: (...args: any[]) => void;
|
||||
touchstart: (...args: any[]) => void;
|
||||
startInput: (...args: any[]) => void;
|
||||
endInput: (...args: any[]) => void;
|
||||
startChange: (...args: any[]) => void;
|
||||
endChange: (...args: any[]) => void;
|
||||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
readonly id: {
|
||||
readonly type: import("vue").PropType<string[]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly name: {
|
||||
readonly type: import("vue").PropType<string[]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly modelValue: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string | null, string | null]) | (() => import("./props").UserInput) | ((new (...args: any[]) => string | [string | null, string | null]) | (() => import("./props").UserInput))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly startPlaceholder: StringConstructor;
|
||||
readonly endPlaceholder: StringConstructor;
|
||||
readonly disabled: BooleanConstructor;
|
||||
}>> & {
|
||||
onFocus?: ((...args: any[]) => any) | undefined;
|
||||
onBlur?: ((...args: any[]) => any) | undefined;
|
||||
onClick?: ((...args: any[]) => any) | undefined;
|
||||
onMouseenter?: ((...args: any[]) => any) | undefined;
|
||||
onMouseleave?: ((...args: any[]) => any) | undefined;
|
||||
onTouchstart?: ((...args: any[]) => any) | undefined;
|
||||
onStartInput?: ((...args: any[]) => any) | undefined;
|
||||
onEndInput?: ((...args: any[]) => any) | undefined;
|
||||
onStartChange?: ((...args: any[]) => any) | undefined;
|
||||
onEndChange?: ((...args: any[]) => any) | undefined;
|
||||
}, {
|
||||
readonly disabled: boolean;
|
||||
}>;
|
||||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
||||
export default _default;
|
||||
type __VLS_WithTemplateSlots<T, S> = T & {
|
||||
new (): {
|
||||
$slots: S;
|
||||
};
|
||||
};
|
||||
589
frontend/node_modules/element-plus/es/components/time-picker/src/common/picker.mjs
generated
vendored
Normal file
589
frontend/node_modules/element-plus/es/components/time-picker/src/common/picker.mjs
generated
vendored
Normal file
@@ -0,0 +1,589 @@
|
||||
import { defineComponent, useAttrs, inject, ref, computed, watch, nextTick, unref, onBeforeUnmount, provide, openBlock, createBlock, mergeProps, withCtx, normalizeClass, normalizeStyle, withModifiers, resolveDynamicComponent, createCommentVNode, renderSlot, createElementVNode, toDisplayString } from 'vue';
|
||||
import { onClickOutside, unrefElement } from '@vueuse/core';
|
||||
import { ElInput } from '../../../input/index.mjs';
|
||||
import { ElIcon } from '../../../icon/index.mjs';
|
||||
import { ElTooltip } from '../../../tooltip/index.mjs';
|
||||
import { Clock, Calendar } from '@element-plus/icons-vue';
|
||||
import { valueEquals, dayOrDaysToDate } from '../utils.mjs';
|
||||
import { PICKER_POPPER_OPTIONS_INJECTION_KEY, PICKER_BASE_INJECTION_KEY, ROOT_COMMON_PICKER_INJECTION_KEY } from '../constants.mjs';
|
||||
import { useCommonPicker } from '../composables/use-common-picker.mjs';
|
||||
import { timePickerDefaultProps } from './props.mjs';
|
||||
import PickerRangeTrigger from './picker-range-trigger.mjs';
|
||||
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
||||
import { useEmptyValues } from '../../../../hooks/use-empty-values/index.mjs';
|
||||
import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../../constants/event.mjs';
|
||||
import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
|
||||
import { useFormItem } from '../../../form/src/hooks/use-form-item.mjs';
|
||||
import { useFormDisabled, useFormSize } from '../../../form/src/hooks/use-form-common-props.mjs';
|
||||
import { useFocusController } from '../../../../hooks/use-focus-controller/index.mjs';
|
||||
import { debugWarn } from '../../../../utils/error.mjs';
|
||||
import { isArray, NOOP } from '@vue/shared';
|
||||
import { getEventCode } from '../../../../utils/dom/event.mjs';
|
||||
import { EVENT_CODE } from '../../../../constants/aria.mjs';
|
||||
|
||||
const __default__ = defineComponent({
|
||||
name: "Picker"
|
||||
});
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
...__default__,
|
||||
props: timePickerDefaultProps,
|
||||
emits: [
|
||||
UPDATE_MODEL_EVENT,
|
||||
CHANGE_EVENT,
|
||||
"focus",
|
||||
"blur",
|
||||
"clear",
|
||||
"calendar-change",
|
||||
"panel-change",
|
||||
"visible-change",
|
||||
"keydown"
|
||||
],
|
||||
setup(__props, { expose, emit }) {
|
||||
const props = __props;
|
||||
const attrs = useAttrs();
|
||||
const nsDate = useNamespace("date");
|
||||
const nsInput = useNamespace("input");
|
||||
const nsRange = useNamespace("range");
|
||||
const { formItem } = useFormItem();
|
||||
const elPopperOptions = inject(PICKER_POPPER_OPTIONS_INJECTION_KEY, {});
|
||||
const emptyValues = useEmptyValues(props, null);
|
||||
const refPopper = ref();
|
||||
const inputRef = ref();
|
||||
const valueOnOpen = ref(null);
|
||||
let hasJustTabExitedInput = false;
|
||||
const pickerDisabled = useFormDisabled();
|
||||
const commonPicker = useCommonPicker(props, emit);
|
||||
const {
|
||||
parsedValue,
|
||||
pickerActualVisible,
|
||||
userInput,
|
||||
pickerVisible,
|
||||
pickerOptions,
|
||||
valueIsEmpty,
|
||||
emitInput,
|
||||
onPick,
|
||||
onSetPickerOption,
|
||||
onCalendarChange,
|
||||
onPanelChange
|
||||
} = commonPicker;
|
||||
const { isFocused, handleFocus, handleBlur } = useFocusController(inputRef, {
|
||||
disabled: pickerDisabled,
|
||||
beforeFocus() {
|
||||
return props.readonly;
|
||||
},
|
||||
afterFocus() {
|
||||
if (!props.automaticDropdown)
|
||||
return;
|
||||
pickerVisible.value = true;
|
||||
},
|
||||
beforeBlur(event) {
|
||||
var _a;
|
||||
return !hasJustTabExitedInput && ((_a = refPopper.value) == null ? void 0 : _a.isFocusInsideContent(event));
|
||||
},
|
||||
afterBlur() {
|
||||
handleChange();
|
||||
pickerVisible.value = false;
|
||||
hasJustTabExitedInput = false;
|
||||
props.validateEvent && (formItem == null ? void 0 : formItem.validate("blur").catch((err) => debugWarn()));
|
||||
}
|
||||
});
|
||||
const hovering = ref(false);
|
||||
const rangeInputKls = computed(() => [
|
||||
nsDate.b("editor"),
|
||||
nsDate.bm("editor", props.type),
|
||||
nsInput.e("wrapper"),
|
||||
nsDate.is("disabled", pickerDisabled.value),
|
||||
nsDate.is("active", pickerVisible.value),
|
||||
nsRange.b("editor"),
|
||||
pickerSize ? nsRange.bm("editor", pickerSize.value) : "",
|
||||
attrs.class
|
||||
]);
|
||||
const clearIconKls = computed(() => [
|
||||
nsInput.e("icon"),
|
||||
nsRange.e("close-icon"),
|
||||
!showClearBtn.value ? nsRange.em("close-icon", "hidden") : ""
|
||||
]);
|
||||
watch(pickerVisible, (val) => {
|
||||
if (!val) {
|
||||
userInput.value = null;
|
||||
nextTick(() => {
|
||||
emitChange(props.modelValue);
|
||||
});
|
||||
} else {
|
||||
nextTick(() => {
|
||||
if (val) {
|
||||
valueOnOpen.value = props.modelValue;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
const emitChange = (val, isClear) => {
|
||||
if (isClear || !valueEquals(val, valueOnOpen.value)) {
|
||||
emit(CHANGE_EVENT, val);
|
||||
isClear && (valueOnOpen.value = val);
|
||||
props.validateEvent && (formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn()));
|
||||
}
|
||||
};
|
||||
const emitKeydown = (e) => {
|
||||
emit("keydown", e);
|
||||
};
|
||||
const refInput = computed(() => {
|
||||
if (inputRef.value) {
|
||||
return Array.from(inputRef.value.$el.querySelectorAll("input"));
|
||||
}
|
||||
return [];
|
||||
});
|
||||
const setSelectionRange = (start, end, pos) => {
|
||||
const _inputs = refInput.value;
|
||||
if (!_inputs.length)
|
||||
return;
|
||||
if (!pos || pos === "min") {
|
||||
_inputs[0].setSelectionRange(start, end);
|
||||
_inputs[0].focus();
|
||||
} else if (pos === "max") {
|
||||
_inputs[1].setSelectionRange(start, end);
|
||||
_inputs[1].focus();
|
||||
}
|
||||
};
|
||||
const onBeforeShow = () => {
|
||||
pickerActualVisible.value = true;
|
||||
};
|
||||
const onShow = () => {
|
||||
emit("visible-change", true);
|
||||
};
|
||||
const onHide = () => {
|
||||
pickerActualVisible.value = false;
|
||||
pickerVisible.value = false;
|
||||
emit("visible-change", false);
|
||||
};
|
||||
const handleOpen = () => {
|
||||
pickerVisible.value = true;
|
||||
};
|
||||
const handleClose = () => {
|
||||
pickerVisible.value = false;
|
||||
};
|
||||
const displayValue = computed(() => {
|
||||
const formattedValue = formatToString(parsedValue.value);
|
||||
if (isArray(userInput.value)) {
|
||||
return [
|
||||
userInput.value[0] || formattedValue && formattedValue[0] || "",
|
||||
userInput.value[1] || formattedValue && formattedValue[1] || ""
|
||||
];
|
||||
} else if (userInput.value !== null) {
|
||||
return userInput.value;
|
||||
}
|
||||
if (!isTimePicker.value && valueIsEmpty.value)
|
||||
return "";
|
||||
if (!pickerVisible.value && valueIsEmpty.value)
|
||||
return "";
|
||||
if (formattedValue) {
|
||||
return isDatesPicker.value || isMonthsPicker.value || isYearsPicker.value ? formattedValue.join(", ") : formattedValue;
|
||||
}
|
||||
return "";
|
||||
});
|
||||
const isTimeLikePicker = computed(() => props.type.includes("time"));
|
||||
const isTimePicker = computed(() => props.type.startsWith("time"));
|
||||
const isDatesPicker = computed(() => props.type === "dates");
|
||||
const isMonthsPicker = computed(() => props.type === "months");
|
||||
const isYearsPicker = computed(() => props.type === "years");
|
||||
const triggerIcon = computed(() => props.prefixIcon || (isTimeLikePicker.value ? Clock : Calendar));
|
||||
const showClearBtn = computed(() => props.clearable && !pickerDisabled.value && !props.readonly && !valueIsEmpty.value && (hovering.value || isFocused.value));
|
||||
const onClearIconClick = (event) => {
|
||||
if (props.readonly || pickerDisabled.value)
|
||||
return;
|
||||
if (showClearBtn.value) {
|
||||
event.stopPropagation();
|
||||
if (pickerOptions.value.handleClear) {
|
||||
pickerOptions.value.handleClear();
|
||||
} else {
|
||||
emitInput(emptyValues.valueOnClear.value);
|
||||
}
|
||||
emitChange(emptyValues.valueOnClear.value, true);
|
||||
onHide();
|
||||
}
|
||||
emit("clear");
|
||||
};
|
||||
const onMouseDownInput = async (event) => {
|
||||
var _a;
|
||||
if (props.readonly || pickerDisabled.value)
|
||||
return;
|
||||
if (((_a = event.target) == null ? void 0 : _a.tagName) !== "INPUT" || isFocused.value || !props.automaticDropdown) {
|
||||
pickerVisible.value = true;
|
||||
}
|
||||
};
|
||||
const onMouseEnter = () => {
|
||||
if (props.readonly || pickerDisabled.value)
|
||||
return;
|
||||
if (!valueIsEmpty.value && props.clearable) {
|
||||
hovering.value = true;
|
||||
}
|
||||
};
|
||||
const onMouseLeave = () => {
|
||||
hovering.value = false;
|
||||
};
|
||||
const onTouchStartInput = (event) => {
|
||||
var _a;
|
||||
if (props.readonly || pickerDisabled.value)
|
||||
return;
|
||||
if (((_a = event.touches[0].target) == null ? void 0 : _a.tagName) !== "INPUT" || isFocused.value || !props.automaticDropdown) {
|
||||
pickerVisible.value = true;
|
||||
}
|
||||
};
|
||||
const isRangeInput = computed(() => {
|
||||
return props.type.includes("range");
|
||||
});
|
||||
const pickerSize = useFormSize();
|
||||
const popperEl = computed(() => {
|
||||
var _a, _b;
|
||||
return (_b = (_a = unref(refPopper)) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
||||
});
|
||||
const stophandle = onClickOutside(inputRef, (e) => {
|
||||
const unrefedPopperEl = unref(popperEl);
|
||||
const inputEl = unrefElement(inputRef);
|
||||
if (unrefedPopperEl && (e.target === unrefedPopperEl || e.composedPath().includes(unrefedPopperEl)) || e.target === inputEl || inputEl && e.composedPath().includes(inputEl))
|
||||
return;
|
||||
pickerVisible.value = false;
|
||||
});
|
||||
onBeforeUnmount(() => {
|
||||
stophandle == null ? void 0 : stophandle();
|
||||
});
|
||||
const handleChange = () => {
|
||||
if (userInput.value) {
|
||||
const value = parseUserInputToDayjs(displayValue.value);
|
||||
if (value) {
|
||||
if (isValidValue(value)) {
|
||||
emitInput(dayOrDaysToDate(value));
|
||||
userInput.value = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (userInput.value === "") {
|
||||
emitInput(emptyValues.valueOnClear.value);
|
||||
emitChange(emptyValues.valueOnClear.value, true);
|
||||
userInput.value = null;
|
||||
}
|
||||
};
|
||||
const parseUserInputToDayjs = (value) => {
|
||||
if (!value)
|
||||
return null;
|
||||
return pickerOptions.value.parseUserInput(value);
|
||||
};
|
||||
const formatToString = (value) => {
|
||||
if (!value)
|
||||
return null;
|
||||
const res = isArray(value) ? value.map((_) => _.format(props.format)) : value.format(props.format);
|
||||
return res;
|
||||
};
|
||||
const isValidValue = (value) => {
|
||||
return pickerOptions.value.isValidValue(value);
|
||||
};
|
||||
const handleKeydownInput = async (event) => {
|
||||
if (props.readonly || pickerDisabled.value)
|
||||
return;
|
||||
const code = getEventCode(event);
|
||||
emitKeydown(event);
|
||||
if (code === EVENT_CODE.esc) {
|
||||
if (pickerVisible.value === true) {
|
||||
pickerVisible.value = false;
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (code === EVENT_CODE.down) {
|
||||
if (pickerOptions.value.handleFocusPicker) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
if (pickerVisible.value === false) {
|
||||
pickerVisible.value = true;
|
||||
await nextTick();
|
||||
}
|
||||
if (pickerOptions.value.handleFocusPicker) {
|
||||
pickerOptions.value.handleFocusPicker();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (code === EVENT_CODE.tab) {
|
||||
hasJustTabExitedInput = true;
|
||||
return;
|
||||
}
|
||||
if (code === EVENT_CODE.enter || code === EVENT_CODE.numpadEnter) {
|
||||
if (!pickerVisible.value) {
|
||||
pickerVisible.value = true;
|
||||
} else if (userInput.value === null || userInput.value === "" || isValidValue(parseUserInputToDayjs(displayValue.value))) {
|
||||
handleChange();
|
||||
pickerVisible.value = false;
|
||||
}
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return;
|
||||
}
|
||||
if (userInput.value) {
|
||||
event.stopPropagation();
|
||||
return;
|
||||
}
|
||||
if (pickerOptions.value.handleKeydownInput) {
|
||||
pickerOptions.value.handleKeydownInput(event);
|
||||
}
|
||||
};
|
||||
const onUserInput = (e) => {
|
||||
userInput.value = e;
|
||||
if (!pickerVisible.value) {
|
||||
pickerVisible.value = true;
|
||||
}
|
||||
};
|
||||
const handleStartInput = (event) => {
|
||||
const target = event.target;
|
||||
if (userInput.value) {
|
||||
userInput.value = [target.value, userInput.value[1]];
|
||||
} else {
|
||||
userInput.value = [target.value, null];
|
||||
}
|
||||
};
|
||||
const handleEndInput = (event) => {
|
||||
const target = event.target;
|
||||
if (userInput.value) {
|
||||
userInput.value = [userInput.value[0], target.value];
|
||||
} else {
|
||||
userInput.value = [null, target.value];
|
||||
}
|
||||
};
|
||||
const handleStartChange = () => {
|
||||
var _a;
|
||||
const values = userInput.value;
|
||||
const value = parseUserInputToDayjs(values && values[0]);
|
||||
const parsedVal = unref(parsedValue);
|
||||
if (value && value.isValid()) {
|
||||
userInput.value = [
|
||||
formatToString(value),
|
||||
((_a = displayValue.value) == null ? void 0 : _a[1]) || null
|
||||
];
|
||||
const newValue = [value, parsedVal && (parsedVal[1] || null)];
|
||||
if (isValidValue(newValue)) {
|
||||
emitInput(dayOrDaysToDate(newValue));
|
||||
userInput.value = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
const handleEndChange = () => {
|
||||
var _a;
|
||||
const values = unref(userInput);
|
||||
const value = parseUserInputToDayjs(values && values[1]);
|
||||
const parsedVal = unref(parsedValue);
|
||||
if (value && value.isValid()) {
|
||||
userInput.value = [
|
||||
((_a = unref(displayValue)) == null ? void 0 : _a[0]) || null,
|
||||
formatToString(value)
|
||||
];
|
||||
const newValue = [parsedVal && parsedVal[0], value];
|
||||
if (isValidValue(newValue)) {
|
||||
emitInput(dayOrDaysToDate(newValue));
|
||||
userInput.value = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
const focus = () => {
|
||||
var _a;
|
||||
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
||||
};
|
||||
const blur = () => {
|
||||
var _a;
|
||||
(_a = inputRef.value) == null ? void 0 : _a.blur();
|
||||
};
|
||||
provide(PICKER_BASE_INJECTION_KEY, {
|
||||
props,
|
||||
emptyValues
|
||||
});
|
||||
provide(ROOT_COMMON_PICKER_INJECTION_KEY, commonPicker);
|
||||
expose({
|
||||
focus,
|
||||
blur,
|
||||
handleOpen,
|
||||
handleClose,
|
||||
onPick
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createBlock(unref(ElTooltip), mergeProps({
|
||||
ref_key: "refPopper",
|
||||
ref: refPopper,
|
||||
visible: unref(pickerVisible),
|
||||
effect: "light",
|
||||
pure: "",
|
||||
trigger: "click"
|
||||
}, _ctx.$attrs, {
|
||||
role: "dialog",
|
||||
teleported: "",
|
||||
transition: `${unref(nsDate).namespace.value}-zoom-in-top`,
|
||||
"popper-class": [`${unref(nsDate).namespace.value}-picker__popper`, _ctx.popperClass],
|
||||
"popper-style": _ctx.popperStyle,
|
||||
"popper-options": unref(elPopperOptions),
|
||||
"fallback-placements": _ctx.fallbackPlacements,
|
||||
"gpu-acceleration": false,
|
||||
placement: _ctx.placement,
|
||||
"stop-popper-mouse-event": false,
|
||||
"hide-after": 0,
|
||||
persistent: "",
|
||||
onBeforeShow,
|
||||
onShow,
|
||||
onHide
|
||||
}), {
|
||||
default: withCtx(() => [
|
||||
!unref(isRangeInput) ? (openBlock(), createBlock(unref(ElInput), {
|
||||
key: 0,
|
||||
id: _ctx.id,
|
||||
ref_key: "inputRef",
|
||||
ref: inputRef,
|
||||
"container-role": "combobox",
|
||||
"model-value": unref(displayValue),
|
||||
name: _ctx.name,
|
||||
size: unref(pickerSize),
|
||||
disabled: unref(pickerDisabled),
|
||||
placeholder: _ctx.placeholder,
|
||||
class: normalizeClass([
|
||||
unref(nsDate).b("editor"),
|
||||
unref(nsDate).bm("editor", _ctx.type),
|
||||
unref(nsDate).is("focus", unref(pickerVisible)),
|
||||
_ctx.$attrs.class
|
||||
]),
|
||||
style: normalizeStyle(_ctx.$attrs.style),
|
||||
readonly: !_ctx.editable || _ctx.readonly || unref(isDatesPicker) || unref(isMonthsPicker) || unref(isYearsPicker) || _ctx.type === "week",
|
||||
"aria-label": _ctx.ariaLabel,
|
||||
tabindex: _ctx.tabindex,
|
||||
"validate-event": false,
|
||||
onInput: onUserInput,
|
||||
onFocus: unref(handleFocus),
|
||||
onBlur: unref(handleBlur),
|
||||
onKeydown: handleKeydownInput,
|
||||
onChange: handleChange,
|
||||
onMousedown: onMouseDownInput,
|
||||
onMouseenter: onMouseEnter,
|
||||
onMouseleave: onMouseLeave,
|
||||
onTouchstartPassive: onTouchStartInput,
|
||||
onClick: withModifiers(() => {
|
||||
}, ["stop"])
|
||||
}, {
|
||||
prefix: withCtx(() => [
|
||||
unref(triggerIcon) ? (openBlock(), createBlock(unref(ElIcon), {
|
||||
key: 0,
|
||||
class: normalizeClass(unref(nsInput).e("icon")),
|
||||
onMousedown: withModifiers(onMouseDownInput, ["prevent"]),
|
||||
onTouchstartPassive: onTouchStartInput
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
(openBlock(), createBlock(resolveDynamicComponent(unref(triggerIcon))))
|
||||
]),
|
||||
_: 1
|
||||
}, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true)
|
||||
]),
|
||||
suffix: withCtx(() => [
|
||||
unref(showClearBtn) && _ctx.clearIcon ? (openBlock(), createBlock(unref(ElIcon), {
|
||||
key: 0,
|
||||
class: normalizeClass(`${unref(nsInput).e("icon")} clear-icon`),
|
||||
onMousedown: withModifiers(unref(NOOP), ["prevent"]),
|
||||
onClick: onClearIconClick
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
(openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
|
||||
]),
|
||||
_: 1
|
||||
}, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true)
|
||||
]),
|
||||
_: 1
|
||||
}, 8, ["id", "model-value", "name", "size", "disabled", "placeholder", "class", "style", "readonly", "aria-label", "tabindex", "onFocus", "onBlur", "onClick"])) : (openBlock(), createBlock(PickerRangeTrigger, {
|
||||
key: 1,
|
||||
id: _ctx.id,
|
||||
ref_key: "inputRef",
|
||||
ref: inputRef,
|
||||
"model-value": unref(displayValue),
|
||||
name: _ctx.name,
|
||||
disabled: unref(pickerDisabled),
|
||||
readonly: !_ctx.editable || _ctx.readonly,
|
||||
"start-placeholder": _ctx.startPlaceholder,
|
||||
"end-placeholder": _ctx.endPlaceholder,
|
||||
class: normalizeClass(unref(rangeInputKls)),
|
||||
style: normalizeStyle(_ctx.$attrs.style),
|
||||
"aria-label": _ctx.ariaLabel,
|
||||
tabindex: _ctx.tabindex,
|
||||
autocomplete: "off",
|
||||
role: "combobox",
|
||||
onClick: onMouseDownInput,
|
||||
onFocus: unref(handleFocus),
|
||||
onBlur: unref(handleBlur),
|
||||
onStartInput: handleStartInput,
|
||||
onStartChange: handleStartChange,
|
||||
onEndInput: handleEndInput,
|
||||
onEndChange: handleEndChange,
|
||||
onMousedown: onMouseDownInput,
|
||||
onMouseenter: onMouseEnter,
|
||||
onMouseleave: onMouseLeave,
|
||||
onTouchstartPassive: onTouchStartInput,
|
||||
onKeydown: handleKeydownInput
|
||||
}, {
|
||||
prefix: withCtx(() => [
|
||||
unref(triggerIcon) ? (openBlock(), createBlock(unref(ElIcon), {
|
||||
key: 0,
|
||||
class: normalizeClass([unref(nsInput).e("icon"), unref(nsRange).e("icon")])
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
(openBlock(), createBlock(resolveDynamicComponent(unref(triggerIcon))))
|
||||
]),
|
||||
_: 1
|
||||
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
||||
]),
|
||||
"range-separator": withCtx(() => [
|
||||
renderSlot(_ctx.$slots, "range-separator", {}, () => [
|
||||
createElementVNode("span", {
|
||||
class: normalizeClass(unref(nsRange).b("separator"))
|
||||
}, toDisplayString(_ctx.rangeSeparator), 3)
|
||||
])
|
||||
]),
|
||||
suffix: withCtx(() => [
|
||||
_ctx.clearIcon ? (openBlock(), createBlock(unref(ElIcon), {
|
||||
key: 0,
|
||||
class: normalizeClass(unref(clearIconKls)),
|
||||
onMousedown: withModifiers(unref(NOOP), ["prevent"]),
|
||||
onClick: onClearIconClick
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
(openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
|
||||
]),
|
||||
_: 1
|
||||
}, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true)
|
||||
]),
|
||||
_: 3
|
||||
}, 8, ["id", "model-value", "name", "disabled", "readonly", "start-placeholder", "end-placeholder", "class", "style", "aria-label", "tabindex", "onFocus", "onBlur"]))
|
||||
]),
|
||||
content: withCtx(() => [
|
||||
renderSlot(_ctx.$slots, "default", {
|
||||
visible: unref(pickerVisible),
|
||||
actualVisible: unref(pickerActualVisible),
|
||||
parsedValue: unref(parsedValue),
|
||||
format: _ctx.format,
|
||||
dateFormat: _ctx.dateFormat,
|
||||
timeFormat: _ctx.timeFormat,
|
||||
unlinkPanels: _ctx.unlinkPanels,
|
||||
type: _ctx.type,
|
||||
defaultValue: _ctx.defaultValue,
|
||||
showNow: _ctx.showNow,
|
||||
showConfirm: _ctx.showConfirm,
|
||||
showFooter: _ctx.showFooter,
|
||||
showWeekNumber: _ctx.showWeekNumber,
|
||||
onPick: unref(onPick),
|
||||
onSelectRange: setSelectionRange,
|
||||
onSetPickerOption: unref(onSetPickerOption),
|
||||
onCalendarChange: unref(onCalendarChange),
|
||||
onPanelChange: unref(onPanelChange),
|
||||
onMousedown: withModifiers(() => {
|
||||
}, ["stop"])
|
||||
})
|
||||
]),
|
||||
_: 3
|
||||
}, 16, ["visible", "transition", "popper-class", "popper-style", "popper-options", "fallback-placements", "placement"]);
|
||||
};
|
||||
}
|
||||
});
|
||||
var CommonPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "picker.vue"]]);
|
||||
|
||||
export { CommonPicker as default };
|
||||
//# sourceMappingURL=picker.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/common/picker.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/common/picker.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
514
frontend/node_modules/element-plus/es/components/time-picker/src/common/picker.vue.d.ts
generated
vendored
Normal file
514
frontend/node_modules/element-plus/es/components/time-picker/src/common/picker.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,514 @@
|
||||
import type { Options } from '@popperjs/core';
|
||||
import type { DayOrDays } from './props';
|
||||
declare function __VLS_template(): {
|
||||
"range-separator"?(_: {}): any;
|
||||
default?(_: {
|
||||
visible: boolean;
|
||||
actualVisible: boolean;
|
||||
parsedValue: DayOrDays;
|
||||
format: string | undefined;
|
||||
dateFormat: string | undefined;
|
||||
timeFormat: string | undefined;
|
||||
unlinkPanels: boolean;
|
||||
type: string;
|
||||
defaultValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("./props").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("./props").SingleOrRange<Date>))[], unknown, unknown> | undefined;
|
||||
showNow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
showConfirm: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
showFooter: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
showWeekNumber: boolean;
|
||||
onMousedown: any;
|
||||
onPanelChange: any;
|
||||
onCalendarChange: any;
|
||||
onSetPickerOption: any;
|
||||
onSelectRange: any;
|
||||
onPick: any;
|
||||
}): any;
|
||||
};
|
||||
declare const __VLS_component: import("vue").DefineComponent<{
|
||||
readonly showNow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showConfirm: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showFooter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showWeekNumber: BooleanConstructor;
|
||||
readonly ariaLabel: StringConstructor;
|
||||
readonly emptyValues: ArrayConstructor;
|
||||
readonly valueOnClear: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null))[], unknown, unknown, undefined, boolean>;
|
||||
readonly disabledDate: {
|
||||
readonly type: import("vue").PropType<Function>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly cellClassName: {
|
||||
readonly type: import("vue").PropType<Function>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
||||
readonly arrowControl: BooleanConstructor;
|
||||
readonly tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
||||
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly unlinkPanels: BooleanConstructor;
|
||||
readonly placement: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | ((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement))[], import("@popperjs/core").Placement, unknown, "bottom", boolean>;
|
||||
readonly fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("@popperjs/core").Placement[]) | (() => import("@popperjs/core").Placement[]) | ((new (...args: any[]) => import("@popperjs/core").Placement[]) | (() => import("@popperjs/core").Placement[]))[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
||||
readonly disabledHours: {
|
||||
readonly type: import("vue").PropType<import("./props").GetDisabledHours>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledMinutes: {
|
||||
readonly type: import("vue").PropType<import("./props").GetDisabledMinutes>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledSeconds: {
|
||||
readonly type: import("vue").PropType<import("./props").GetDisabledSeconds>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly automaticDropdown: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly id: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("./props").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("./props").SingleOrRange<string>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly name: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("./props").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("./props").SingleOrRange<string>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly popperClass: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | ((new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly popperStyle: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly format: StringConstructor;
|
||||
readonly valueFormat: StringConstructor;
|
||||
readonly dateFormat: StringConstructor;
|
||||
readonly timeFormat: StringConstructor;
|
||||
readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly clearIcon: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, "", boolean>;
|
||||
readonly size: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly readonly: BooleanConstructor;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
||||
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import("./props").ModelValueType | null) | ((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import("./props").ModelValueType | null))[], unknown, unknown, "", boolean>;
|
||||
readonly rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
||||
readonly startPlaceholder: StringConstructor;
|
||||
readonly endPlaceholder: StringConstructor;
|
||||
readonly defaultValue: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("./props").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("./props").SingleOrRange<Date>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly defaultTime: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("./props").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("./props").SingleOrRange<Date>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly isRange: BooleanConstructor;
|
||||
}, {
|
||||
/**
|
||||
* @description focus input box.
|
||||
*/
|
||||
focus: () => void;
|
||||
/**
|
||||
* @description blur input box.
|
||||
*/
|
||||
blur: () => void;
|
||||
/**
|
||||
* @description opens picker
|
||||
*/
|
||||
handleOpen: () => void;
|
||||
/**
|
||||
* @description closes picker
|
||||
*/
|
||||
handleClose: () => void;
|
||||
/**
|
||||
* @description pick item manually
|
||||
*/
|
||||
onPick: (date?: any, visible?: boolean) => void;
|
||||
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
||||
focus: (...args: any[]) => void;
|
||||
"update:modelValue": (...args: any[]) => void;
|
||||
change: (...args: any[]) => void;
|
||||
clear: (...args: any[]) => void;
|
||||
blur: (...args: any[]) => void;
|
||||
keydown: (...args: any[]) => void;
|
||||
"calendar-change": (...args: any[]) => void;
|
||||
"panel-change": (...args: any[]) => void;
|
||||
"visible-change": (...args: any[]) => void;
|
||||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
readonly showNow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showConfirm: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showFooter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showWeekNumber: BooleanConstructor;
|
||||
readonly ariaLabel: StringConstructor;
|
||||
readonly emptyValues: ArrayConstructor;
|
||||
readonly valueOnClear: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null))[], unknown, unknown, undefined, boolean>;
|
||||
readonly disabledDate: {
|
||||
readonly type: import("vue").PropType<Function>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly cellClassName: {
|
||||
readonly type: import("vue").PropType<Function>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
||||
readonly arrowControl: BooleanConstructor;
|
||||
readonly tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
||||
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly unlinkPanels: BooleanConstructor;
|
||||
readonly placement: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | ((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement))[], import("@popperjs/core").Placement, unknown, "bottom", boolean>;
|
||||
readonly fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("@popperjs/core").Placement[]) | (() => import("@popperjs/core").Placement[]) | ((new (...args: any[]) => import("@popperjs/core").Placement[]) | (() => import("@popperjs/core").Placement[]))[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
||||
readonly disabledHours: {
|
||||
readonly type: import("vue").PropType<import("./props").GetDisabledHours>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledMinutes: {
|
||||
readonly type: import("vue").PropType<import("./props").GetDisabledMinutes>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledSeconds: {
|
||||
readonly type: import("vue").PropType<import("./props").GetDisabledSeconds>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly automaticDropdown: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly id: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("./props").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("./props").SingleOrRange<string>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly name: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("./props").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("./props").SingleOrRange<string>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly popperClass: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | ((new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly popperStyle: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly format: StringConstructor;
|
||||
readonly valueFormat: StringConstructor;
|
||||
readonly dateFormat: StringConstructor;
|
||||
readonly timeFormat: StringConstructor;
|
||||
readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly clearIcon: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, "", boolean>;
|
||||
readonly size: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly readonly: BooleanConstructor;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
||||
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import("./props").ModelValueType | null) | ((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import("./props").ModelValueType | null))[], unknown, unknown, "", boolean>;
|
||||
readonly rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
||||
readonly startPlaceholder: StringConstructor;
|
||||
readonly endPlaceholder: StringConstructor;
|
||||
readonly defaultValue: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("./props").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("./props").SingleOrRange<Date>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly defaultTime: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("./props").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("./props").SingleOrRange<Date>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly isRange: BooleanConstructor;
|
||||
}>> & {
|
||||
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
||||
onChange?: ((...args: any[]) => any) | undefined;
|
||||
onFocus?: ((...args: any[]) => any) | undefined;
|
||||
onBlur?: ((...args: any[]) => any) | undefined;
|
||||
onKeydown?: ((...args: any[]) => any) | undefined;
|
||||
onClear?: ((...args: any[]) => any) | undefined;
|
||||
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
||||
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
||||
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
||||
}, {
|
||||
readonly disabled: boolean;
|
||||
readonly tabindex: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
||||
readonly type: string;
|
||||
readonly placeholder: string;
|
||||
readonly modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import("./props").ModelValueType | null) | ((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import("./props").ModelValueType | null))[], unknown, unknown>;
|
||||
readonly placement: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | ((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement))[], import("@popperjs/core").Placement, unknown>;
|
||||
readonly valueOnClear: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null))[], unknown, unknown>;
|
||||
readonly readonly: boolean;
|
||||
readonly prefixIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>;
|
||||
readonly validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly fallbackPlacements: import("@popperjs/core").Placement[];
|
||||
readonly popperOptions: Partial<Options>;
|
||||
readonly automaticDropdown: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly editable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly rangeSeparator: string;
|
||||
readonly shortcuts: unknown[];
|
||||
readonly showNow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly showConfirm: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly showFooter: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly showWeekNumber: boolean;
|
||||
readonly arrowControl: boolean;
|
||||
readonly unlinkPanels: boolean;
|
||||
readonly isRange: boolean;
|
||||
}>;
|
||||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
||||
export default _default;
|
||||
type __VLS_WithTemplateSlots<T, S> = T & {
|
||||
new (): {
|
||||
$slots: S;
|
||||
};
|
||||
};
|
||||
282
frontend/node_modules/element-plus/es/components/time-picker/src/common/props.d.ts
generated
vendored
Normal file
282
frontend/node_modules/element-plus/es/components/time-picker/src/common/props.d.ts
generated
vendored
Normal file
@@ -0,0 +1,282 @@
|
||||
import type { Component, ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
|
||||
import type { Options } from '@popperjs/core';
|
||||
import type { Dayjs } from 'dayjs';
|
||||
import type { Placement } from 'element-plus/es/components/popper';
|
||||
export type SingleOrRange<T> = T | [T, T];
|
||||
export type DateModelType = number | string | Date;
|
||||
export type ModelValueType = DateModelType | number[] | string[] | Date[];
|
||||
export type DayOrDays = SingleOrRange<Dayjs>;
|
||||
export type DateOrDates = SingleOrRange<Date>;
|
||||
export type UserInput = SingleOrRange<string | null>;
|
||||
export type GetDisabledHours = (role: string, comparingDate?: Dayjs) => number[];
|
||||
export type GetDisabledMinutes = (hour: number, role: string, comparingDate?: Dayjs) => number[];
|
||||
export type GetDisabledSeconds = (hour: number, minute: number, role: string, comparingDate?: Dayjs) => number[];
|
||||
export declare const timePickerDefaultProps: {
|
||||
readonly showNow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showConfirm: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showFooter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showWeekNumber: BooleanConstructor;
|
||||
readonly ariaLabel: StringConstructor;
|
||||
readonly emptyValues: ArrayConstructor;
|
||||
readonly valueOnClear: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null))[], unknown, unknown, undefined, boolean>;
|
||||
readonly disabledDate: {
|
||||
readonly type: import("vue").PropType<Function>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly cellClassName: {
|
||||
readonly type: import("vue").PropType<Function>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
||||
readonly arrowControl: BooleanConstructor;
|
||||
readonly tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
||||
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly unlinkPanels: BooleanConstructor;
|
||||
readonly placement: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], Placement, unknown, "bottom", boolean>;
|
||||
readonly fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Placement[]) | (() => Placement[]) | ((new (...args: any[]) => Placement[]) | (() => Placement[]))[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
||||
readonly disabledHours: {
|
||||
readonly type: import("vue").PropType<GetDisabledHours>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledMinutes: {
|
||||
readonly type: import("vue").PropType<GetDisabledMinutes>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledSeconds: {
|
||||
readonly type: import("vue").PropType<GetDisabledSeconds>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly automaticDropdown: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly id: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => SingleOrRange<string>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly name: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => SingleOrRange<string>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly popperClass: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | ((new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly popperStyle: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly format: StringConstructor;
|
||||
readonly valueFormat: StringConstructor;
|
||||
readonly dateFormat: StringConstructor;
|
||||
readonly timeFormat: StringConstructor;
|
||||
readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly clearIcon: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, "", boolean>;
|
||||
readonly size: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly readonly: BooleanConstructor;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
||||
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => ModelValueType | null) | ((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => ModelValueType | null))[], unknown, unknown, "", boolean>;
|
||||
readonly rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
||||
readonly startPlaceholder: StringConstructor;
|
||||
readonly endPlaceholder: StringConstructor;
|
||||
readonly defaultValue: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly defaultTime: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly isRange: BooleanConstructor;
|
||||
};
|
||||
export type TimePickerDefaultProps = ExtractPropTypes<typeof timePickerDefaultProps>;
|
||||
export type TimePickerDefaultPropsPublic = __ExtractPublicPropTypes<typeof timePickerDefaultProps>;
|
||||
export interface PickerOptions {
|
||||
isValidValue: (date: DayOrDays) => boolean;
|
||||
handleKeydownInput: (event: KeyboardEvent) => void;
|
||||
parseUserInput: (value: UserInput) => DayOrDays;
|
||||
getRangeAvailableTime: (date: DayOrDays) => DayOrDays;
|
||||
getDefaultValue: () => DayOrDays;
|
||||
panelReady: boolean;
|
||||
handleClear: () => void;
|
||||
handleFocusPicker?: () => void;
|
||||
}
|
||||
export declare const timePickerRangeTriggerProps: {
|
||||
readonly id: {
|
||||
readonly type: import("vue").PropType<string[]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly name: {
|
||||
readonly type: import("vue").PropType<string[]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly modelValue: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string | null, string | null]) | (() => UserInput) | ((new (...args: any[]) => string | [string | null, string | null]) | (() => UserInput))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly startPlaceholder: StringConstructor;
|
||||
readonly endPlaceholder: StringConstructor;
|
||||
readonly disabled: BooleanConstructor;
|
||||
};
|
||||
/**
|
||||
* @deprecated Use `timePickerRangeTriggerProps` instead. This will be removed in future versions.
|
||||
*/
|
||||
export declare const timePickerRngeTriggerProps: {
|
||||
readonly id: {
|
||||
readonly type: import("vue").PropType<string[]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly name: {
|
||||
readonly type: import("vue").PropType<string[]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly modelValue: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string | null, string | null]) | (() => UserInput) | ((new (...args: any[]) => string | [string | null, string | null]) | (() => UserInput))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly startPlaceholder: StringConstructor;
|
||||
readonly endPlaceholder: StringConstructor;
|
||||
readonly disabled: BooleanConstructor;
|
||||
};
|
||||
138
frontend/node_modules/element-plus/es/components/time-picker/src/common/props.mjs
generated
vendored
Normal file
138
frontend/node_modules/element-plus/es/components/time-picker/src/common/props.mjs
generated
vendored
Normal file
@@ -0,0 +1,138 @@
|
||||
import { placements } from '@popperjs/core';
|
||||
import { CircleClose } from '@element-plus/icons-vue';
|
||||
import { disabledTimeListsProps } from '../props/shared.mjs';
|
||||
import { buildProps, definePropType } from '../../../../utils/vue/props/runtime.mjs';
|
||||
import { useTooltipContentProps } from '../../../tooltip/src/content.mjs';
|
||||
import { useSizeProp } from '../../../../hooks/use-size/index.mjs';
|
||||
import { useEmptyValuesProps } from '../../../../hooks/use-empty-values/index.mjs';
|
||||
import { useAriaProps } from '../../../../hooks/use-aria/index.mjs';
|
||||
|
||||
const timePickerDefaultProps = buildProps({
|
||||
automaticDropdown: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
id: {
|
||||
type: definePropType([Array, String])
|
||||
},
|
||||
name: {
|
||||
type: definePropType([Array, String])
|
||||
},
|
||||
popperClass: useTooltipContentProps.popperClass,
|
||||
popperStyle: useTooltipContentProps.popperStyle,
|
||||
format: String,
|
||||
valueFormat: String,
|
||||
dateFormat: String,
|
||||
timeFormat: String,
|
||||
type: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
clearable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
clearIcon: {
|
||||
type: definePropType([String, Object]),
|
||||
default: CircleClose
|
||||
},
|
||||
editable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
prefixIcon: {
|
||||
type: definePropType([String, Object]),
|
||||
default: ""
|
||||
},
|
||||
size: useSizeProp,
|
||||
readonly: Boolean,
|
||||
disabled: Boolean,
|
||||
placeholder: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
popperOptions: {
|
||||
type: definePropType(Object),
|
||||
default: () => ({})
|
||||
},
|
||||
modelValue: {
|
||||
type: definePropType([Date, Array, String, Number]),
|
||||
default: ""
|
||||
},
|
||||
rangeSeparator: {
|
||||
type: String,
|
||||
default: "-"
|
||||
},
|
||||
startPlaceholder: String,
|
||||
endPlaceholder: String,
|
||||
defaultValue: {
|
||||
type: definePropType([Date, Array])
|
||||
},
|
||||
defaultTime: {
|
||||
type: definePropType([Date, Array])
|
||||
},
|
||||
isRange: Boolean,
|
||||
...disabledTimeListsProps,
|
||||
disabledDate: {
|
||||
type: Function
|
||||
},
|
||||
cellClassName: {
|
||||
type: Function
|
||||
},
|
||||
shortcuts: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
arrowControl: Boolean,
|
||||
tabindex: {
|
||||
type: definePropType([String, Number]),
|
||||
default: 0
|
||||
},
|
||||
validateEvent: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
unlinkPanels: Boolean,
|
||||
placement: {
|
||||
type: definePropType(String),
|
||||
values: placements,
|
||||
default: "bottom"
|
||||
},
|
||||
fallbackPlacements: {
|
||||
type: definePropType(Array),
|
||||
default: ["bottom", "top", "right", "left"]
|
||||
},
|
||||
...useEmptyValuesProps,
|
||||
...useAriaProps(["ariaLabel"]),
|
||||
showNow: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
showConfirm: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
showFooter: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
showWeekNumber: Boolean
|
||||
});
|
||||
const timePickerRangeTriggerProps = buildProps({
|
||||
id: {
|
||||
type: definePropType(Array)
|
||||
},
|
||||
name: {
|
||||
type: definePropType(Array)
|
||||
},
|
||||
modelValue: {
|
||||
type: definePropType([Array, String])
|
||||
},
|
||||
startPlaceholder: String,
|
||||
endPlaceholder: String,
|
||||
disabled: Boolean
|
||||
});
|
||||
const timePickerRngeTriggerProps = timePickerRangeTriggerProps;
|
||||
|
||||
export { timePickerDefaultProps, timePickerRangeTriggerProps, timePickerRngeTriggerProps };
|
||||
//# sourceMappingURL=props.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/common/props.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/common/props.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
31
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-common-picker.d.ts
generated
vendored
Normal file
31
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-common-picker.d.ts
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
import type { Dayjs } from 'dayjs';
|
||||
import type { DateModelType, DayOrDays, ModelValueType, PickerOptions, SingleOrRange, UserInput } from '../common/props';
|
||||
interface CommonPickerProps {
|
||||
modelValue: ModelValueType | null;
|
||||
valueFormat?: string;
|
||||
}
|
||||
type CommonPickerEmits = (event: 'update:modelValue' | 'calendar-change' | 'panel-change', ...args: any[]) => void;
|
||||
export declare const useCommonPicker: <P extends CommonPickerProps, E extends CommonPickerEmits>(props: P, emit: E) => {
|
||||
parsedValue: import("vue").ComputedRef<DayOrDays>;
|
||||
pickerActualVisible: import("vue").Ref<boolean>;
|
||||
pickerOptions: import("vue").Ref<{
|
||||
isValidValue?: ((date: DayOrDays) => boolean) | undefined;
|
||||
handleKeydownInput?: ((event: KeyboardEvent) => void) | undefined;
|
||||
parseUserInput?: ((value: UserInput) => DayOrDays) | undefined;
|
||||
getRangeAvailableTime?: ((date: DayOrDays) => DayOrDays) | undefined;
|
||||
getDefaultValue?: (() => DayOrDays) | undefined;
|
||||
panelReady?: boolean | undefined;
|
||||
handleClear?: (() => void) | undefined;
|
||||
handleFocusPicker?: (() => void) | undefined;
|
||||
}>;
|
||||
pickerVisible: import("vue").Ref<boolean>;
|
||||
userInput: import("vue").Ref<UserInput>;
|
||||
valueIsEmpty: import("vue").ComputedRef<boolean>;
|
||||
emitInput: (input: SingleOrRange<DateModelType> | null) => void;
|
||||
onCalendarChange: (e: [Date, null | Date]) => void;
|
||||
onPanelChange: (value: [Dayjs, Dayjs], mode: "month" | "year", view: unknown) => void;
|
||||
onPick: (date?: any, visible?: boolean) => void;
|
||||
onSetPickerOption: <T extends keyof PickerOptions>(e: [T, PickerOptions[T]]) => void;
|
||||
};
|
||||
export type CommonPickerContext = ReturnType<typeof useCommonPicker>;
|
||||
export {};
|
||||
95
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-common-picker.mjs
generated
vendored
Normal file
95
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-common-picker.mjs
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
import { ref, computed } from 'vue';
|
||||
import { isEqual } from 'lodash-unified';
|
||||
import { useLocale } from '../../../../hooks/use-locale/index.mjs';
|
||||
import { valueEquals, formatter, parseDate, dayOrDaysToDate } from '../utils.mjs';
|
||||
import { isArray } from '@vue/shared';
|
||||
import { UPDATE_MODEL_EVENT } from '../../../../constants/event.mjs';
|
||||
|
||||
const useCommonPicker = (props, emit) => {
|
||||
const { lang } = useLocale();
|
||||
const pickerVisible = ref(false);
|
||||
const pickerActualVisible = ref(false);
|
||||
const userInput = ref(null);
|
||||
const valueIsEmpty = computed(() => {
|
||||
const { modelValue } = props;
|
||||
return !modelValue || isArray(modelValue) && !modelValue.filter(Boolean).length;
|
||||
});
|
||||
const emitInput = (input) => {
|
||||
if (!valueEquals(props.modelValue, input)) {
|
||||
let formatted;
|
||||
if (isArray(input)) {
|
||||
formatted = input.map((item) => formatter(item, props.valueFormat, lang.value));
|
||||
} else if (input) {
|
||||
formatted = formatter(input, props.valueFormat, lang.value);
|
||||
}
|
||||
const emitVal = input ? formatted : input;
|
||||
emit(UPDATE_MODEL_EVENT, emitVal, lang.value);
|
||||
}
|
||||
};
|
||||
const parsedValue = computed(() => {
|
||||
var _a;
|
||||
let dayOrDays;
|
||||
if (valueIsEmpty.value) {
|
||||
if (pickerOptions.value.getDefaultValue) {
|
||||
dayOrDays = pickerOptions.value.getDefaultValue();
|
||||
}
|
||||
} else {
|
||||
if (isArray(props.modelValue)) {
|
||||
dayOrDays = props.modelValue.map((d) => parseDate(d, props.valueFormat, lang.value));
|
||||
} else {
|
||||
dayOrDays = parseDate((_a = props.modelValue) != null ? _a : "", props.valueFormat, lang.value);
|
||||
}
|
||||
}
|
||||
if (pickerOptions.value.getRangeAvailableTime) {
|
||||
const availableResult = pickerOptions.value.getRangeAvailableTime(dayOrDays);
|
||||
if (!isEqual(availableResult, dayOrDays)) {
|
||||
dayOrDays = availableResult;
|
||||
if (!valueIsEmpty.value) {
|
||||
emitInput(dayOrDaysToDate(dayOrDays));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isArray(dayOrDays) && dayOrDays.some((day) => !day)) {
|
||||
dayOrDays = [];
|
||||
}
|
||||
return dayOrDays;
|
||||
});
|
||||
const pickerOptions = ref({});
|
||||
const onSetPickerOption = (e) => {
|
||||
pickerOptions.value[e[0]] = e[1];
|
||||
pickerOptions.value.panelReady = true;
|
||||
};
|
||||
const onCalendarChange = (e) => {
|
||||
emit("calendar-change", e);
|
||||
};
|
||||
const onPanelChange = (value, mode, view) => {
|
||||
emit("panel-change", value, mode, view);
|
||||
};
|
||||
const onPick = (date = "", visible = false) => {
|
||||
pickerVisible.value = visible;
|
||||
let result;
|
||||
if (isArray(date)) {
|
||||
result = date.map((_) => _.toDate());
|
||||
} else {
|
||||
result = date ? date.toDate() : date;
|
||||
}
|
||||
userInput.value = null;
|
||||
emitInput(result);
|
||||
};
|
||||
return {
|
||||
parsedValue,
|
||||
pickerActualVisible,
|
||||
pickerOptions,
|
||||
pickerVisible,
|
||||
userInput,
|
||||
valueIsEmpty,
|
||||
emitInput,
|
||||
onCalendarChange,
|
||||
onPanelChange,
|
||||
onPick,
|
||||
onSetPickerOption
|
||||
};
|
||||
};
|
||||
|
||||
export { useCommonPicker };
|
||||
//# sourceMappingURL=use-common-picker.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-common-picker.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-common-picker.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
13
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-time-panel.d.ts
generated
vendored
Normal file
13
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-time-panel.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { Dayjs } from 'dayjs';
|
||||
import type { GetDisabledHours, GetDisabledMinutes, GetDisabledSeconds } from '../common/props';
|
||||
type UseTimePanelProps = {
|
||||
getAvailableHours: GetDisabledHours;
|
||||
getAvailableMinutes: GetDisabledMinutes;
|
||||
getAvailableSeconds: GetDisabledSeconds;
|
||||
};
|
||||
export declare const useTimePanel: ({ getAvailableHours, getAvailableMinutes, getAvailableSeconds, }: UseTimePanelProps) => {
|
||||
timePickerOptions: Record<string, (...args: any[]) => void>;
|
||||
getAvailableTime: (date: Dayjs, role: string, first: boolean, compareDate?: Dayjs) => Dayjs;
|
||||
onSetOption: ([key, val]: [string, (...args: any[]) => void]) => void;
|
||||
};
|
||||
export {};
|
||||
51
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-time-panel.mjs
generated
vendored
Normal file
51
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-time-panel.mjs
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
const useTimePanel = ({
|
||||
getAvailableHours,
|
||||
getAvailableMinutes,
|
||||
getAvailableSeconds
|
||||
}) => {
|
||||
const getAvailableTime = (date, role, first, compareDate) => {
|
||||
const availableTimeGetters = {
|
||||
hour: getAvailableHours,
|
||||
minute: getAvailableMinutes,
|
||||
second: getAvailableSeconds
|
||||
};
|
||||
let result = date;
|
||||
["hour", "minute", "second"].forEach((type) => {
|
||||
if (availableTimeGetters[type]) {
|
||||
let availableTimeSlots;
|
||||
const method = availableTimeGetters[type];
|
||||
switch (type) {
|
||||
case "minute": {
|
||||
availableTimeSlots = method(result.hour(), role, compareDate);
|
||||
break;
|
||||
}
|
||||
case "second": {
|
||||
availableTimeSlots = method(result.hour(), result.minute(), role, compareDate);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
availableTimeSlots = method(role, compareDate);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ((availableTimeSlots == null ? void 0 : availableTimeSlots.length) && !availableTimeSlots.includes(result[type]())) {
|
||||
const pos = first ? 0 : availableTimeSlots.length - 1;
|
||||
result = result[type](availableTimeSlots[pos]);
|
||||
}
|
||||
}
|
||||
});
|
||||
return result;
|
||||
};
|
||||
const timePickerOptions = {};
|
||||
const onSetOption = ([key, val]) => {
|
||||
timePickerOptions[key] = val;
|
||||
};
|
||||
return {
|
||||
timePickerOptions,
|
||||
getAvailableTime,
|
||||
onSetOption
|
||||
};
|
||||
};
|
||||
|
||||
export { useTimePanel };
|
||||
//# sourceMappingURL=use-time-panel.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-time-panel.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-time-panel.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-time-panel.mjs","sources":["../../../../../../../packages/components/time-picker/src/composables/use-time-panel.ts"],"sourcesContent":["import type { Dayjs } from 'dayjs'\nimport type {\n GetDisabledHours,\n GetDisabledMinutes,\n GetDisabledSeconds,\n} from '../common/props'\n\ntype UseTimePanelProps = {\n getAvailableHours: GetDisabledHours\n getAvailableMinutes: GetDisabledMinutes\n getAvailableSeconds: GetDisabledSeconds\n}\n\nexport const useTimePanel = ({\n getAvailableHours,\n getAvailableMinutes,\n getAvailableSeconds,\n}: UseTimePanelProps) => {\n const getAvailableTime = (\n date: Dayjs,\n role: string,\n first: boolean,\n compareDate?: Dayjs\n ) => {\n const availableTimeGetters = {\n hour: getAvailableHours,\n minute: getAvailableMinutes,\n second: getAvailableSeconds,\n } as const\n let result = date\n ;(['hour', 'minute', 'second'] as const).forEach((type) => {\n if (availableTimeGetters[type]) {\n let availableTimeSlots: number[]\n const method = availableTimeGetters[type]\n switch (type) {\n case 'minute': {\n availableTimeSlots = (method as typeof getAvailableMinutes)(\n result.hour(),\n role,\n compareDate\n )\n break\n }\n case 'second': {\n availableTimeSlots = (method as typeof getAvailableSeconds)(\n result.hour(),\n result.minute(),\n role,\n compareDate\n )\n break\n }\n default: {\n availableTimeSlots = (method as typeof getAvailableHours)(\n role,\n compareDate\n )\n break\n }\n }\n\n if (\n availableTimeSlots?.length &&\n !availableTimeSlots.includes(result[type]())\n ) {\n const pos = first ? 0 : availableTimeSlots.length - 1\n result = result[type](availableTimeSlots[pos]) as unknown as Dayjs\n }\n }\n })\n return result\n }\n\n const timePickerOptions: Record<string, (...args: any[]) => void> = {}\n\n const onSetOption = ([key, val]: [string, (...args: any[]) => void]) => {\n timePickerOptions[key] = val\n }\n\n return {\n timePickerOptions,\n\n getAvailableTime,\n onSetOption,\n }\n}\n"],"names":[],"mappings":"AAAY,MAAC,YAAY,GAAG,CAAC;AAC7B,EAAE,iBAAiB;AACnB,EAAE,mBAAmB;AACrB,EAAE,mBAAmB;AACrB,CAAC,KAAK;AACN,EAAE,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,KAAK;AAC/D,IAAI,MAAM,oBAAoB,GAAG;AACjC,MAAM,IAAI,EAAE,iBAAiB;AAC7B,MAAM,MAAM,EAAE,mBAAmB;AACjC,MAAM,MAAM,EAAE,mBAAmB;AACjC,KAAK,CAAC;AACN,IAAI,IAAI,MAAM,GAAG,IAAI,CAAC;AACtB,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK;AACnD,MAAM,IAAI,oBAAoB,CAAC,IAAI,CAAC,EAAE;AACtC,QAAQ,IAAI,kBAAkB,CAAC;AAC/B,QAAQ,MAAM,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;AAClD,QAAQ,QAAQ,IAAI;AACpB,UAAU,KAAK,QAAQ,EAAE;AACzB,YAAY,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;AAC1E,YAAY,MAAM;AAClB,WAAW;AACX,UAAU,KAAK,QAAQ,EAAE;AACzB,YAAY,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;AAC3F,YAAY,MAAM;AAClB,WAAW;AACX,UAAU,SAAS;AACnB,YAAY,kBAAkB,GAAG,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAC3D,YAAY,MAAM;AAClB,WAAW;AACX,SAAS;AACT,QAAQ,IAAI,CAAC,kBAAkB,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,kBAAkB,CAAC,MAAM,KAAK,CAAC,kBAAkB,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;AAC/H,UAAU,MAAM,GAAG,GAAG,KAAK,GAAG,CAAC,GAAG,kBAAkB,CAAC,MAAM,GAAG,CAAC,CAAC;AAChE,UAAU,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;AACzD,SAAS;AACT,OAAO;AACP,KAAK,CAAC,CAAC;AACP,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG,CAAC;AACJ,EAAE,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC/B,EAAE,MAAM,WAAW,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK;AACtC,IAAI,iBAAiB,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;AACjC,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,iBAAiB;AACrB,IAAI,gBAAgB;AACpB,IAAI,WAAW;AACf,GAAG,CAAC;AACJ;;;;"}
|
||||
156
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-time-picker.d.ts
generated
vendored
Normal file
156
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-time-picker.d.ts
generated
vendored
Normal file
@@ -0,0 +1,156 @@
|
||||
import type { Dayjs } from 'dayjs';
|
||||
import type { GetDisabledHours, GetDisabledMinutes, GetDisabledSeconds } from '../common/props';
|
||||
export declare const getTimeLists: (disabledHours?: GetDisabledHours, disabledMinutes?: GetDisabledMinutes, disabledSeconds?: GetDisabledSeconds) => {
|
||||
getHoursList: (role: string, compare?: Dayjs) => boolean[];
|
||||
getMinutesList: (hour: number, role: string, compare?: Dayjs) => boolean[];
|
||||
getSecondsList: (hour: number, minute: number, role: string, compare?: Dayjs) => boolean[];
|
||||
};
|
||||
export declare const buildAvailableTimeSlotGetter: (disabledHours: GetDisabledHours, disabledMinutes: GetDisabledMinutes, disabledSeconds: GetDisabledSeconds) => {
|
||||
getAvailableHours: GetDisabledHours;
|
||||
getAvailableMinutes: GetDisabledMinutes;
|
||||
getAvailableSeconds: GetDisabledSeconds;
|
||||
};
|
||||
export declare const useOldValue: (props: {
|
||||
parsedValue?: string | Dayjs | Dayjs[];
|
||||
visible: boolean;
|
||||
}) => import("vue").Ref<string | {
|
||||
clone: () => Dayjs;
|
||||
isValid: () => boolean;
|
||||
year: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
month: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
date: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
day: {
|
||||
(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
hour: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
minute: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
second: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
millisecond: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
set: (unit: import("dayjs").UnitType, value: number) => Dayjs;
|
||||
get: (unit: import("dayjs").UnitType) => number;
|
||||
add: (value: number, unit?: import("dayjs").ManipulateType) => Dayjs;
|
||||
subtract: (value: number, unit?: import("dayjs").ManipulateType) => Dayjs;
|
||||
startOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
||||
endOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
||||
format: (template?: string) => string;
|
||||
diff: (date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType | import("dayjs").OpUnitType, float?: boolean) => number;
|
||||
valueOf: () => number;
|
||||
unix: () => number;
|
||||
daysInMonth: () => number;
|
||||
toDate: () => Date;
|
||||
toJSON: () => string;
|
||||
toISOString: () => string;
|
||||
toString: () => string;
|
||||
utcOffset: () => number;
|
||||
isBefore: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean;
|
||||
isSame: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean;
|
||||
isAfter: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean;
|
||||
locale: {
|
||||
(): string;
|
||||
(preset: string | ILocale, object?: Partial<ILocale>): Dayjs;
|
||||
};
|
||||
localeData: () => import("dayjs").InstanceLocaleDataReturn;
|
||||
week: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
weekYear: () => number;
|
||||
dayOfYear: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
isSameOrAfter: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean;
|
||||
isSameOrBefore: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean;
|
||||
} | {
|
||||
clone: () => Dayjs;
|
||||
isValid: () => boolean;
|
||||
year: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
month: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
date: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
day: {
|
||||
(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
hour: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
minute: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
second: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
millisecond: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
set: (unit: import("dayjs").UnitType, value: number) => Dayjs;
|
||||
get: (unit: import("dayjs").UnitType) => number;
|
||||
add: (value: number, unit?: import("dayjs").ManipulateType) => Dayjs;
|
||||
subtract: (value: number, unit?: import("dayjs").ManipulateType) => Dayjs;
|
||||
startOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
||||
endOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
||||
format: (template?: string) => string;
|
||||
diff: (date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType | import("dayjs").OpUnitType, float?: boolean) => number;
|
||||
valueOf: () => number;
|
||||
unix: () => number;
|
||||
daysInMonth: () => number;
|
||||
toDate: () => Date;
|
||||
toJSON: () => string;
|
||||
toISOString: () => string;
|
||||
toString: () => string;
|
||||
utcOffset: () => number;
|
||||
isBefore: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean;
|
||||
isSame: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean;
|
||||
isAfter: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean;
|
||||
locale: {
|
||||
(): string;
|
||||
(preset: string | ILocale, object?: Partial<ILocale>): Dayjs;
|
||||
};
|
||||
localeData: () => import("dayjs").InstanceLocaleDataReturn;
|
||||
week: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
weekYear: () => number;
|
||||
dayOfYear: {
|
||||
(): number;
|
||||
(value: number): Dayjs;
|
||||
};
|
||||
isSameOrAfter: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean;
|
||||
isSameOrBefore: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean;
|
||||
}[] | undefined>;
|
||||
53
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-time-picker.mjs
generated
vendored
Normal file
53
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-time-picker.mjs
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
import { ref, watch } from 'vue';
|
||||
import { makeList } from '../utils.mjs';
|
||||
|
||||
const makeAvailableArr = (disabledList) => {
|
||||
const trueOrNumber = (isDisabled, index) => isDisabled || index;
|
||||
const getNumber = (predicate) => predicate !== true;
|
||||
return disabledList.map(trueOrNumber).filter(getNumber);
|
||||
};
|
||||
const getTimeLists = (disabledHours, disabledMinutes, disabledSeconds) => {
|
||||
const getHoursList = (role, compare) => {
|
||||
return makeList(24, disabledHours && (() => disabledHours == null ? void 0 : disabledHours(role, compare)));
|
||||
};
|
||||
const getMinutesList = (hour, role, compare) => {
|
||||
return makeList(60, disabledMinutes && (() => disabledMinutes == null ? void 0 : disabledMinutes(hour, role, compare)));
|
||||
};
|
||||
const getSecondsList = (hour, minute, role, compare) => {
|
||||
return makeList(60, disabledSeconds && (() => disabledSeconds == null ? void 0 : disabledSeconds(hour, minute, role, compare)));
|
||||
};
|
||||
return {
|
||||
getHoursList,
|
||||
getMinutesList,
|
||||
getSecondsList
|
||||
};
|
||||
};
|
||||
const buildAvailableTimeSlotGetter = (disabledHours, disabledMinutes, disabledSeconds) => {
|
||||
const { getHoursList, getMinutesList, getSecondsList } = getTimeLists(disabledHours, disabledMinutes, disabledSeconds);
|
||||
const getAvailableHours = (role, compare) => {
|
||||
return makeAvailableArr(getHoursList(role, compare));
|
||||
};
|
||||
const getAvailableMinutes = (hour, role, compare) => {
|
||||
return makeAvailableArr(getMinutesList(hour, role, compare));
|
||||
};
|
||||
const getAvailableSeconds = (hour, minute, role, compare) => {
|
||||
return makeAvailableArr(getSecondsList(hour, minute, role, compare));
|
||||
};
|
||||
return {
|
||||
getAvailableHours,
|
||||
getAvailableMinutes,
|
||||
getAvailableSeconds
|
||||
};
|
||||
};
|
||||
const useOldValue = (props) => {
|
||||
const oldValue = ref(props.parsedValue);
|
||||
watch(() => props.visible, (val) => {
|
||||
if (!val) {
|
||||
oldValue.value = props.parsedValue;
|
||||
}
|
||||
});
|
||||
return oldValue;
|
||||
};
|
||||
|
||||
export { buildAvailableTimeSlotGetter, getTimeLists, useOldValue };
|
||||
//# sourceMappingURL=use-time-picker.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-time-picker.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/composables/use-time-picker.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-time-picker.mjs","sources":["../../../../../../../packages/components/time-picker/src/composables/use-time-picker.ts"],"sourcesContent":["import { ref, watch } from 'vue'\nimport { makeList } from '../utils'\n\nimport type { Dayjs } from 'dayjs'\nimport type {\n GetDisabledHours,\n GetDisabledMinutes,\n GetDisabledSeconds,\n} from '../common/props'\n\nconst makeAvailableArr = (disabledList: boolean[]): number[] => {\n const trueOrNumber = (isDisabled: boolean, index: number) =>\n isDisabled || index\n\n const getNumber = (predicate: number | true): predicate is number =>\n predicate !== true\n\n return disabledList.map(trueOrNumber).filter(getNumber)\n}\n\nexport const getTimeLists = (\n disabledHours?: GetDisabledHours,\n disabledMinutes?: GetDisabledMinutes,\n disabledSeconds?: GetDisabledSeconds\n) => {\n const getHoursList = (role: string, compare?: Dayjs) => {\n return makeList(24, disabledHours && (() => disabledHours?.(role, compare)))\n }\n\n const getMinutesList = (hour: number, role: string, compare?: Dayjs) => {\n return makeList(\n 60,\n disabledMinutes && (() => disabledMinutes?.(hour, role, compare))\n )\n }\n\n const getSecondsList = (\n hour: number,\n minute: number,\n role: string,\n compare?: Dayjs\n ) => {\n return makeList(\n 60,\n disabledSeconds && (() => disabledSeconds?.(hour, minute, role, compare))\n )\n }\n\n return {\n getHoursList,\n getMinutesList,\n getSecondsList,\n }\n}\n\nexport const buildAvailableTimeSlotGetter = (\n disabledHours: GetDisabledHours,\n disabledMinutes: GetDisabledMinutes,\n disabledSeconds: GetDisabledSeconds\n) => {\n const { getHoursList, getMinutesList, getSecondsList } = getTimeLists(\n disabledHours,\n disabledMinutes,\n disabledSeconds\n )\n\n const getAvailableHours: GetDisabledHours = (role, compare?) => {\n return makeAvailableArr(getHoursList(role, compare))\n }\n\n const getAvailableMinutes: GetDisabledMinutes = (hour, role, compare?) => {\n return makeAvailableArr(getMinutesList(hour, role, compare))\n }\n\n const getAvailableSeconds: GetDisabledSeconds = (\n hour,\n minute,\n role,\n compare?\n ) => {\n return makeAvailableArr(getSecondsList(hour, minute, role, compare))\n }\n\n return {\n getAvailableHours,\n getAvailableMinutes,\n getAvailableSeconds,\n }\n}\n\nexport const useOldValue = (props: {\n parsedValue?: string | Dayjs | Dayjs[]\n visible: boolean\n}) => {\n const oldValue = ref(props.parsedValue)\n\n watch(\n () => props.visible,\n (val) => {\n if (!val) {\n oldValue.value = props.parsedValue\n }\n }\n )\n\n return oldValue\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,gBAAgB,GAAG,CAAC,YAAY,KAAK;AAC3C,EAAE,MAAM,YAAY,GAAG,CAAC,UAAU,EAAE,KAAK,KAAK,UAAU,IAAI,KAAK,CAAC;AAClE,EAAE,MAAM,SAAS,GAAG,CAAC,SAAS,KAAK,SAAS,KAAK,IAAI,CAAC;AACtD,EAAE,OAAO,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AAC1D,CAAC,CAAC;AACU,MAAC,YAAY,GAAG,CAAC,aAAa,EAAE,eAAe,EAAE,eAAe,KAAK;AACjF,EAAE,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK;AAC1C,IAAI,OAAO,QAAQ,CAAC,EAAE,EAAE,aAAa,KAAK,MAAM,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AAChH,GAAG,CAAC;AACJ,EAAE,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,KAAK;AAClD,IAAI,OAAO,QAAQ,CAAC,EAAE,EAAE,eAAe,KAAK,MAAM,eAAe,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AAC5H,GAAG,CAAC;AACJ,EAAE,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK;AAC1D,IAAI,OAAO,QAAQ,CAAC,EAAE,EAAE,eAAe,KAAK,MAAM,eAAe,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACpI,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,YAAY;AAChB,IAAI,cAAc;AAClB,IAAI,cAAc;AAClB,GAAG,CAAC;AACJ,EAAE;AACU,MAAC,4BAA4B,GAAG,CAAC,aAAa,EAAE,eAAe,EAAE,eAAe,KAAK;AACjG,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,GAAG,YAAY,CAAC,aAAa,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;AACzH,EAAE,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK;AAC/C,IAAI,OAAO,gBAAgB,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;AACzD,GAAG,CAAC;AACJ,EAAE,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,KAAK;AACvD,IAAI,OAAO,gBAAgB,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;AACjE,GAAG,CAAC;AACJ,EAAE,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK;AAC/D,IAAI,OAAO,gBAAgB,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;AACzE,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,iBAAiB;AACrB,IAAI,mBAAmB;AACvB,IAAI,mBAAmB;AACvB,GAAG,CAAC;AACJ,EAAE;AACU,MAAC,WAAW,GAAG,CAAC,KAAK,KAAK;AACtC,EAAE,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;AAC1C,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK;AACtC,IAAI,IAAI,CAAC,GAAG,EAAE;AACd,MAAM,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC,WAAW,CAAC;AACzC,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE,OAAO,QAAQ,CAAC;AAClB;;;;"}
|
||||
23
frontend/node_modules/element-plus/es/components/time-picker/src/constants.d.ts
generated
vendored
Normal file
23
frontend/node_modules/element-plus/es/components/time-picker/src/constants.d.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { InjectionKey } from 'vue';
|
||||
import type { CommonPickerContext } from './composables/use-common-picker';
|
||||
export declare const timeUnits: readonly ["hours", "minutes", "seconds"];
|
||||
export declare const PICKER_BASE_INJECTION_KEY = "EP_PICKER_BASE";
|
||||
export declare const PICKER_POPPER_OPTIONS_INJECTION_KEY = "ElPopperOptions";
|
||||
export declare const ROOT_COMMON_PICKER_INJECTION_KEY: InjectionKey<CommonPickerContext>;
|
||||
export declare const DEFAULT_FORMATS_TIME = "HH:mm:ss";
|
||||
export declare const DEFAULT_FORMATS_DATE = "YYYY-MM-DD";
|
||||
export declare const DEFAULT_FORMATS_DATEPICKER: {
|
||||
date: string;
|
||||
dates: string;
|
||||
week: string;
|
||||
year: string;
|
||||
years: string;
|
||||
month: string;
|
||||
months: string;
|
||||
datetime: string;
|
||||
monthrange: string;
|
||||
yearrange: string;
|
||||
daterange: string;
|
||||
datetimerange: string;
|
||||
};
|
||||
export type TimeUnit = (typeof timeUnits)[number];
|
||||
23
frontend/node_modules/element-plus/es/components/time-picker/src/constants.mjs
generated
vendored
Normal file
23
frontend/node_modules/element-plus/es/components/time-picker/src/constants.mjs
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
const timeUnits = ["hours", "minutes", "seconds"];
|
||||
const PICKER_BASE_INJECTION_KEY = "EP_PICKER_BASE";
|
||||
const PICKER_POPPER_OPTIONS_INJECTION_KEY = "ElPopperOptions";
|
||||
const ROOT_COMMON_PICKER_INJECTION_KEY = Symbol("commonPickerContextKey");
|
||||
const DEFAULT_FORMATS_TIME = "HH:mm:ss";
|
||||
const DEFAULT_FORMATS_DATE = "YYYY-MM-DD";
|
||||
const DEFAULT_FORMATS_DATEPICKER = {
|
||||
date: DEFAULT_FORMATS_DATE,
|
||||
dates: DEFAULT_FORMATS_DATE,
|
||||
week: "gggg[w]ww",
|
||||
year: "YYYY",
|
||||
years: "YYYY",
|
||||
month: "YYYY-MM",
|
||||
months: "YYYY-MM",
|
||||
datetime: `${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`,
|
||||
monthrange: "YYYY-MM",
|
||||
yearrange: "YYYY",
|
||||
daterange: DEFAULT_FORMATS_DATE,
|
||||
datetimerange: `${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`
|
||||
};
|
||||
|
||||
export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, PICKER_BASE_INJECTION_KEY, PICKER_POPPER_OPTIONS_INJECTION_KEY, ROOT_COMMON_PICKER_INJECTION_KEY, timeUnits };
|
||||
//# sourceMappingURL=constants.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/constants.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/constants.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"constants.mjs","sources":["../../../../../../packages/components/time-picker/src/constants.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\nimport type { CommonPickerContext } from './composables/use-common-picker'\n\nexport const timeUnits = ['hours', 'minutes', 'seconds'] as const\n\nexport const PICKER_BASE_INJECTION_KEY = 'EP_PICKER_BASE'\n\nexport const PICKER_POPPER_OPTIONS_INJECTION_KEY = 'ElPopperOptions'\n\nexport const ROOT_COMMON_PICKER_INJECTION_KEY: InjectionKey<CommonPickerContext> =\n Symbol('commonPickerContextKey')\n\nexport const DEFAULT_FORMATS_TIME = 'HH:mm:ss'\n\nexport const DEFAULT_FORMATS_DATE = 'YYYY-MM-DD'\n\nexport const DEFAULT_FORMATS_DATEPICKER = {\n date: DEFAULT_FORMATS_DATE,\n dates: DEFAULT_FORMATS_DATE,\n week: 'gggg[w]ww',\n year: 'YYYY',\n years: 'YYYY',\n month: 'YYYY-MM',\n months: 'YYYY-MM',\n datetime: `${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`,\n monthrange: 'YYYY-MM',\n yearrange: 'YYYY',\n daterange: DEFAULT_FORMATS_DATE,\n datetimerange: `${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`,\n}\n\nexport type TimeUnit = (typeof timeUnits)[number]\n"],"names":[],"mappings":"AAAY,MAAC,SAAS,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE;AAC7C,MAAC,yBAAyB,GAAG,iBAAiB;AAC9C,MAAC,mCAAmC,GAAG,kBAAkB;AACzD,MAAC,gCAAgC,GAAG,MAAM,CAAC,wBAAwB,EAAE;AACrE,MAAC,oBAAoB,GAAG,WAAW;AACnC,MAAC,oBAAoB,GAAG,aAAa;AACrC,MAAC,0BAA0B,GAAG;AAC1C,EAAE,IAAI,EAAE,oBAAoB;AAC5B,EAAE,KAAK,EAAE,oBAAoB;AAC7B,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,KAAK,EAAE,SAAS;AAClB,EAAE,MAAM,EAAE,SAAS;AACnB,EAAE,QAAQ,EAAE,CAAC,EAAE,oBAAoB,CAAC,CAAC,EAAE,oBAAoB,CAAC,CAAC;AAC7D,EAAE,UAAU,EAAE,SAAS;AACvB,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,SAAS,EAAE,oBAAoB;AACjC,EAAE,aAAa,EAAE,CAAC,EAAE,oBAAoB,CAAC,CAAC,EAAE,oBAAoB,CAAC,CAAC;AAClE;;;;"}
|
||||
39
frontend/node_modules/element-plus/es/components/time-picker/src/props/basic-time-spinner.d.ts
generated
vendored
Normal file
39
frontend/node_modules/element-plus/es/components/time-picker/src/props/basic-time-spinner.d.ts
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
|
||||
import type { Dayjs } from 'dayjs';
|
||||
export declare const basicTimeSpinnerProps: {
|
||||
readonly disabledHours: {
|
||||
readonly type: import("vue").PropType<import("element-plus").GetDisabledHours>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledMinutes: {
|
||||
readonly type: import("vue").PropType<import("element-plus").GetDisabledMinutes>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledSeconds: {
|
||||
readonly type: import("vue").PropType<import("element-plus").GetDisabledSeconds>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly role: {
|
||||
readonly type: import("vue").PropType<string>;
|
||||
readonly required: true;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly spinnerDate: {
|
||||
readonly type: import("vue").PropType<Dayjs>;
|
||||
readonly required: true;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly showSeconds: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly arrowControl: BooleanConstructor;
|
||||
readonly amPmMode: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "" | "a" | "A") | (() => "" | "a" | "A") | ((new (...args: any[]) => "" | "a" | "A") | (() => "" | "a" | "A"))[], unknown, unknown, "", boolean>;
|
||||
};
|
||||
export type BasicTimeSpinnerProps = ExtractPropTypes<typeof basicTimeSpinnerProps>;
|
||||
export type BasicTimeSpinnerPropsPublic = __ExtractPublicPropTypes<typeof basicTimeSpinnerProps>;
|
||||
26
frontend/node_modules/element-plus/es/components/time-picker/src/props/basic-time-spinner.mjs
generated
vendored
Normal file
26
frontend/node_modules/element-plus/es/components/time-picker/src/props/basic-time-spinner.mjs
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import { disabledTimeListsProps } from './shared.mjs';
|
||||
import { buildProps, definePropType } from '../../../../utils/vue/props/runtime.mjs';
|
||||
|
||||
const basicTimeSpinnerProps = buildProps({
|
||||
role: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
spinnerDate: {
|
||||
type: definePropType(Object),
|
||||
required: true
|
||||
},
|
||||
showSeconds: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
arrowControl: Boolean,
|
||||
amPmMode: {
|
||||
type: definePropType(String),
|
||||
default: ""
|
||||
},
|
||||
...disabledTimeListsProps
|
||||
});
|
||||
|
||||
export { basicTimeSpinnerProps };
|
||||
//# sourceMappingURL=basic-time-spinner.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/props/basic-time-spinner.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/props/basic-time-spinner.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"basic-time-spinner.mjs","sources":["../../../../../../../packages/components/time-picker/src/props/basic-time-spinner.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { disabledTimeListsProps } from '../props/shared'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type { Dayjs } from 'dayjs'\n\nexport const basicTimeSpinnerProps = buildProps({\n role: {\n type: String,\n required: true,\n },\n spinnerDate: {\n type: definePropType<Dayjs>(Object),\n required: true,\n },\n showSeconds: {\n type: Boolean,\n default: true,\n },\n arrowControl: Boolean,\n amPmMode: {\n // 'a': am/pm; 'A': AM/PM\n type: definePropType<'a' | 'A' | ''>(String),\n default: '',\n },\n ...disabledTimeListsProps,\n} as const)\n\nexport type BasicTimeSpinnerProps = ExtractPropTypes<\n typeof basicTimeSpinnerProps\n>\nexport type BasicTimeSpinnerPropsPublic = __ExtractPublicPropTypes<\n typeof basicTimeSpinnerProps\n>\n"],"names":[],"mappings":";;;AAEY,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,sBAAsB;AAC3B,CAAC;;;;"}
|
||||
16
frontend/node_modules/element-plus/es/components/time-picker/src/props/panel-time-picker.d.ts
generated
vendored
Normal file
16
frontend/node_modules/element-plus/es/components/time-picker/src/props/panel-time-picker.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
|
||||
import type { Dayjs } from 'dayjs';
|
||||
export declare const panelTimePickerProps: {
|
||||
readonly datetimeRole: StringConstructor;
|
||||
readonly parsedValue: {
|
||||
readonly type: import("vue").PropType<Dayjs>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly visible: BooleanConstructor;
|
||||
readonly actualVisible: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
||||
readonly format: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
};
|
||||
export type PanelTimePickerProps = ExtractPropTypes<typeof panelTimePickerProps>;
|
||||
export type PanelTimePickerPropsPublic = __ExtractPublicPropTypes<typeof panelTimePickerProps>;
|
||||
13
frontend/node_modules/element-plus/es/components/time-picker/src/props/panel-time-picker.mjs
generated
vendored
Normal file
13
frontend/node_modules/element-plus/es/components/time-picker/src/props/panel-time-picker.mjs
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { timePanelSharedProps } from './shared.mjs';
|
||||
import { buildProps, definePropType } from '../../../../utils/vue/props/runtime.mjs';
|
||||
|
||||
const panelTimePickerProps = buildProps({
|
||||
...timePanelSharedProps,
|
||||
datetimeRole: String,
|
||||
parsedValue: {
|
||||
type: definePropType(Object)
|
||||
}
|
||||
});
|
||||
|
||||
export { panelTimePickerProps };
|
||||
//# sourceMappingURL=panel-time-picker.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/props/panel-time-picker.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/props/panel-time-picker.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"panel-time-picker.mjs","sources":["../../../../../../../packages/components/time-picker/src/props/panel-time-picker.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { timePanelSharedProps } from './shared'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type { Dayjs } from 'dayjs'\n\nexport const panelTimePickerProps = buildProps({\n ...timePanelSharedProps,\n datetimeRole: String,\n parsedValue: {\n type: definePropType<Dayjs>(Object),\n },\n} as const)\n\nexport type PanelTimePickerProps = ExtractPropTypes<typeof panelTimePickerProps>\nexport type PanelTimePickerPropsPublic = __ExtractPublicPropTypes<\n typeof panelTimePickerProps\n>\n"],"names":[],"mappings":";;;AAEY,MAAC,oBAAoB,GAAG,UAAU,CAAC;AAC/C,EAAE,GAAG,oBAAoB;AACzB,EAAE,YAAY,EAAE,MAAM;AACtB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,CAAC;;;;"}
|
||||
15
frontend/node_modules/element-plus/es/components/time-picker/src/props/panel-time-range.d.ts
generated
vendored
Normal file
15
frontend/node_modules/element-plus/es/components/time-picker/src/props/panel-time-range.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
|
||||
import type { Dayjs } from 'dayjs';
|
||||
export declare const panelTimeRangeProps: {
|
||||
readonly parsedValue: {
|
||||
readonly type: import("vue").PropType<[Dayjs, Dayjs]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly visible: BooleanConstructor;
|
||||
readonly actualVisible: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
||||
readonly format: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
};
|
||||
export type PanelTimeRangeProps = ExtractPropTypes<typeof panelTimeRangeProps>;
|
||||
export type PanelTimeRangePropsPublic = __ExtractPublicPropTypes<typeof panelTimeRangeProps>;
|
||||
12
frontend/node_modules/element-plus/es/components/time-picker/src/props/panel-time-range.mjs
generated
vendored
Normal file
12
frontend/node_modules/element-plus/es/components/time-picker/src/props/panel-time-range.mjs
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { timePanelSharedProps } from './shared.mjs';
|
||||
import { buildProps, definePropType } from '../../../../utils/vue/props/runtime.mjs';
|
||||
|
||||
const panelTimeRangeProps = buildProps({
|
||||
...timePanelSharedProps,
|
||||
parsedValue: {
|
||||
type: definePropType(Array)
|
||||
}
|
||||
});
|
||||
|
||||
export { panelTimeRangeProps };
|
||||
//# sourceMappingURL=panel-time-range.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/props/panel-time-range.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/props/panel-time-range.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"panel-time-range.mjs","sources":["../../../../../../../packages/components/time-picker/src/props/panel-time-range.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { timePanelSharedProps } from './shared'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type { Dayjs } from 'dayjs'\n\nexport const panelTimeRangeProps = buildProps({\n ...timePanelSharedProps,\n parsedValue: {\n type: definePropType<[Dayjs, Dayjs]>(Array),\n },\n} as const)\n\nexport type PanelTimeRangeProps = ExtractPropTypes<typeof panelTimeRangeProps>\nexport type PanelTimeRangePropsPublic = __ExtractPublicPropTypes<\n typeof panelTimeRangeProps\n>\n"],"names":[],"mappings":";;;AAEY,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,GAAG,oBAAoB;AACzB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,GAAG;AACH,CAAC;;;;"}
|
||||
31
frontend/node_modules/element-plus/es/components/time-picker/src/props/shared.d.ts
generated
vendored
Normal file
31
frontend/node_modules/element-plus/es/components/time-picker/src/props/shared.d.ts
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
|
||||
import type { GetDisabledHours, GetDisabledMinutes, GetDisabledSeconds } from '../common/props';
|
||||
export declare const disabledTimeListsProps: {
|
||||
readonly disabledHours: {
|
||||
readonly type: import("vue").PropType<GetDisabledHours>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledMinutes: {
|
||||
readonly type: import("vue").PropType<GetDisabledMinutes>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledSeconds: {
|
||||
readonly type: import("vue").PropType<GetDisabledSeconds>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
};
|
||||
export type DisabledTimeListsProps = ExtractPropTypes<typeof disabledTimeListsProps>;
|
||||
export type DisabledTimeListsPropsPublic = __ExtractPublicPropTypes<typeof disabledTimeListsProps>;
|
||||
export declare const timePanelSharedProps: {
|
||||
readonly visible: BooleanConstructor;
|
||||
readonly actualVisible: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
||||
readonly format: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
};
|
||||
export type TimePanelSharedProps = ExtractPropTypes<typeof timePanelSharedProps>;
|
||||
export type TimePanelSharedPropsPublic = __ExtractPublicPropTypes<typeof timePanelSharedProps>;
|
||||
27
frontend/node_modules/element-plus/es/components/time-picker/src/props/shared.mjs
generated
vendored
Normal file
27
frontend/node_modules/element-plus/es/components/time-picker/src/props/shared.mjs
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { buildProps, definePropType } from '../../../../utils/vue/props/runtime.mjs';
|
||||
|
||||
const disabledTimeListsProps = buildProps({
|
||||
disabledHours: {
|
||||
type: definePropType(Function)
|
||||
},
|
||||
disabledMinutes: {
|
||||
type: definePropType(Function)
|
||||
},
|
||||
disabledSeconds: {
|
||||
type: definePropType(Function)
|
||||
}
|
||||
});
|
||||
const timePanelSharedProps = buildProps({
|
||||
visible: Boolean,
|
||||
actualVisible: {
|
||||
type: Boolean,
|
||||
default: void 0
|
||||
},
|
||||
format: {
|
||||
type: String,
|
||||
default: ""
|
||||
}
|
||||
});
|
||||
|
||||
export { disabledTimeListsProps, timePanelSharedProps };
|
||||
//# sourceMappingURL=shared.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/props/shared.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/props/shared.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"shared.mjs","sources":["../../../../../../../packages/components/time-picker/src/props/shared.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type {\n GetDisabledHours,\n GetDisabledMinutes,\n GetDisabledSeconds,\n} from '../common/props'\n\nexport const disabledTimeListsProps = buildProps({\n /**\n * @description To specify the array of hours that cannot be selected\n */\n disabledHours: {\n type: definePropType<GetDisabledHours>(Function),\n },\n /**\n * @description To specify the array of minutes that cannot be selected\n */\n disabledMinutes: {\n type: definePropType<GetDisabledMinutes>(Function),\n },\n /**\n * @description To specify the array of seconds that cannot be selected\n */\n disabledSeconds: {\n type: definePropType<GetDisabledSeconds>(Function),\n },\n} as const)\n\nexport type DisabledTimeListsProps = ExtractPropTypes<\n typeof disabledTimeListsProps\n>\nexport type DisabledTimeListsPropsPublic = __ExtractPublicPropTypes<\n typeof disabledTimeListsProps\n>\n\nexport const timePanelSharedProps = buildProps({\n visible: Boolean,\n actualVisible: {\n type: Boolean,\n default: undefined,\n },\n format: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type TimePanelSharedProps = ExtractPropTypes<typeof timePanelSharedProps>\nexport type TimePanelSharedPropsPublic = __ExtractPublicPropTypes<\n typeof timePanelSharedProps\n>\n"],"names":[],"mappings":";;AACY,MAAC,sBAAsB,GAAG,UAAU,CAAC;AACjD,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,oBAAoB,GAAG,UAAU,CAAC;AAC/C,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
|
||||
323
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs
generated
vendored
Normal file
323
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs
generated
vendored
Normal file
@@ -0,0 +1,323 @@
|
||||
import { defineComponent, inject, ref, computed, unref, onMounted, nextTick, watch, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, withDirectives, createVNode, createElementVNode } from 'vue';
|
||||
import { debounce } from 'lodash-unified';
|
||||
import { ElScrollbar } from '../../../scrollbar/index.mjs';
|
||||
import { ElIcon } from '../../../icon/index.mjs';
|
||||
import { ArrowUp, ArrowDown } from '@element-plus/icons-vue';
|
||||
import { PICKER_BASE_INJECTION_KEY, timeUnits, DEFAULT_FORMATS_TIME } from '../constants.mjs';
|
||||
import { buildTimeList } from '../utils.mjs';
|
||||
import { basicTimeSpinnerProps } from '../props/basic-time-spinner.mjs';
|
||||
import { getTimeLists } from '../composables/use-time-picker.mjs';
|
||||
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
||||
import { vRepeatClick } from '../../../../directives/repeat-click/index.mjs';
|
||||
import { CHANGE_EVENT } from '../../../../constants/event.mjs';
|
||||
import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
|
||||
import { getStyle } from '../../../../utils/dom/style.mjs';
|
||||
import { isNumber } from '../../../../utils/types.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "basic-time-spinner",
|
||||
props: basicTimeSpinnerProps,
|
||||
emits: [CHANGE_EVENT, "select-range", "set-option"],
|
||||
setup(__props, { emit }) {
|
||||
const props = __props;
|
||||
const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
|
||||
const { isRange, format } = pickerBase.props;
|
||||
const ns = useNamespace("time");
|
||||
const { getHoursList, getMinutesList, getSecondsList } = getTimeLists(props.disabledHours, props.disabledMinutes, props.disabledSeconds);
|
||||
let isScrolling = false;
|
||||
const currentScrollbar = ref();
|
||||
const listHoursRef = ref();
|
||||
const listMinutesRef = ref();
|
||||
const listSecondsRef = ref();
|
||||
const listRefsMap = {
|
||||
hours: listHoursRef,
|
||||
minutes: listMinutesRef,
|
||||
seconds: listSecondsRef
|
||||
};
|
||||
const spinnerItems = computed(() => {
|
||||
return props.showSeconds ? timeUnits : timeUnits.slice(0, 2);
|
||||
});
|
||||
const timePartials = computed(() => {
|
||||
const { spinnerDate } = props;
|
||||
const hours = spinnerDate.hour();
|
||||
const minutes = spinnerDate.minute();
|
||||
const seconds = spinnerDate.second();
|
||||
return { hours, minutes, seconds };
|
||||
});
|
||||
const timeList = computed(() => {
|
||||
const { hours, minutes } = unref(timePartials);
|
||||
const { role, spinnerDate } = props;
|
||||
const compare = !isRange ? spinnerDate : void 0;
|
||||
return {
|
||||
hours: getHoursList(role, compare),
|
||||
minutes: getMinutesList(hours, role, compare),
|
||||
seconds: getSecondsList(hours, minutes, role, compare)
|
||||
};
|
||||
});
|
||||
const arrowControlTimeList = computed(() => {
|
||||
const { hours, minutes, seconds } = unref(timePartials);
|
||||
return {
|
||||
hours: buildTimeList(hours, 23),
|
||||
minutes: buildTimeList(minutes, 59),
|
||||
seconds: buildTimeList(seconds, 59)
|
||||
};
|
||||
});
|
||||
const debouncedResetScroll = debounce((type) => {
|
||||
isScrolling = false;
|
||||
adjustCurrentSpinner(type);
|
||||
}, 200);
|
||||
const getAmPmFlag = (hour) => {
|
||||
const shouldShowAmPm = !!props.amPmMode;
|
||||
if (!shouldShowAmPm)
|
||||
return "";
|
||||
const isCapital = props.amPmMode === "A";
|
||||
let content = hour < 12 ? " am" : " pm";
|
||||
if (isCapital)
|
||||
content = content.toUpperCase();
|
||||
return content;
|
||||
};
|
||||
const emitSelectRange = (type) => {
|
||||
let range = [0, 0];
|
||||
const actualFormat = format || DEFAULT_FORMATS_TIME;
|
||||
const hourIndex = actualFormat.indexOf("HH");
|
||||
const minuteIndex = actualFormat.indexOf("mm");
|
||||
const secondIndex = actualFormat.indexOf("ss");
|
||||
switch (type) {
|
||||
case "hours":
|
||||
if (hourIndex !== -1) {
|
||||
range = [hourIndex, hourIndex + 2];
|
||||
}
|
||||
break;
|
||||
case "minutes":
|
||||
if (minuteIndex !== -1) {
|
||||
range = [minuteIndex, minuteIndex + 2];
|
||||
}
|
||||
break;
|
||||
case "seconds":
|
||||
if (secondIndex !== -1) {
|
||||
range = [secondIndex, secondIndex + 2];
|
||||
}
|
||||
break;
|
||||
}
|
||||
const [left, right] = range;
|
||||
emit("select-range", left, right);
|
||||
currentScrollbar.value = type;
|
||||
};
|
||||
const adjustCurrentSpinner = (type) => {
|
||||
adjustSpinner(type, unref(timePartials)[type]);
|
||||
};
|
||||
const adjustSpinners = () => {
|
||||
adjustCurrentSpinner("hours");
|
||||
adjustCurrentSpinner("minutes");
|
||||
adjustCurrentSpinner("seconds");
|
||||
};
|
||||
const getScrollbarElement = (el) => el.querySelector(`.${ns.namespace.value}-scrollbar__wrap`);
|
||||
const adjustSpinner = (type, value) => {
|
||||
if (props.arrowControl)
|
||||
return;
|
||||
const scrollbar = unref(listRefsMap[type]);
|
||||
if (scrollbar && scrollbar.$el) {
|
||||
getScrollbarElement(scrollbar.$el).scrollTop = Math.max(0, value * typeItemHeight(type));
|
||||
}
|
||||
};
|
||||
const typeItemHeight = (type) => {
|
||||
const scrollbar = unref(listRefsMap[type]);
|
||||
const listItem = scrollbar == null ? void 0 : scrollbar.$el.querySelector("li");
|
||||
if (listItem) {
|
||||
return Number.parseFloat(getStyle(listItem, "height")) || 0;
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
const onIncrement = () => {
|
||||
scrollDown(1);
|
||||
};
|
||||
const onDecrement = () => {
|
||||
scrollDown(-1);
|
||||
};
|
||||
const scrollDown = (step) => {
|
||||
if (!currentScrollbar.value) {
|
||||
emitSelectRange("hours");
|
||||
}
|
||||
const label = currentScrollbar.value;
|
||||
const now = unref(timePartials)[label];
|
||||
const total = currentScrollbar.value === "hours" ? 24 : 60;
|
||||
const next = findNextUnDisabled(label, now, step, total);
|
||||
modifyDateField(label, next);
|
||||
adjustSpinner(label, next);
|
||||
nextTick(() => emitSelectRange(label));
|
||||
};
|
||||
const findNextUnDisabled = (type, now, step, total) => {
|
||||
let next = (now + step + total) % total;
|
||||
const list = unref(timeList)[type];
|
||||
while (list[next] && next !== now) {
|
||||
next = (next + step + total) % total;
|
||||
}
|
||||
return next;
|
||||
};
|
||||
const modifyDateField = (type, value) => {
|
||||
const list = unref(timeList)[type];
|
||||
const isDisabled = list[value];
|
||||
if (isDisabled)
|
||||
return;
|
||||
const { hours, minutes, seconds } = unref(timePartials);
|
||||
let changeTo;
|
||||
switch (type) {
|
||||
case "hours":
|
||||
changeTo = props.spinnerDate.hour(value).minute(minutes).second(seconds);
|
||||
break;
|
||||
case "minutes":
|
||||
changeTo = props.spinnerDate.hour(hours).minute(value).second(seconds);
|
||||
break;
|
||||
case "seconds":
|
||||
changeTo = props.spinnerDate.hour(hours).minute(minutes).second(value);
|
||||
break;
|
||||
}
|
||||
emit(CHANGE_EVENT, changeTo);
|
||||
};
|
||||
const handleClick = (type, { value, disabled }) => {
|
||||
if (!disabled) {
|
||||
modifyDateField(type, value);
|
||||
emitSelectRange(type);
|
||||
adjustSpinner(type, value);
|
||||
}
|
||||
};
|
||||
const handleScroll = (type) => {
|
||||
const scrollbar = unref(listRefsMap[type]);
|
||||
if (!scrollbar)
|
||||
return;
|
||||
isScrolling = true;
|
||||
debouncedResetScroll(type);
|
||||
const value = Math.min(Math.round((getScrollbarElement(scrollbar.$el).scrollTop - (scrollBarHeight(type) * 0.5 - 10) / typeItemHeight(type) + 3) / typeItemHeight(type)), type === "hours" ? 23 : 59);
|
||||
modifyDateField(type, value);
|
||||
};
|
||||
const scrollBarHeight = (type) => {
|
||||
return unref(listRefsMap[type]).$el.offsetHeight;
|
||||
};
|
||||
const bindScrollEvent = () => {
|
||||
const bindFunction = (type) => {
|
||||
const scrollbar = unref(listRefsMap[type]);
|
||||
if (scrollbar && scrollbar.$el) {
|
||||
getScrollbarElement(scrollbar.$el).onscroll = () => {
|
||||
handleScroll(type);
|
||||
};
|
||||
}
|
||||
};
|
||||
bindFunction("hours");
|
||||
bindFunction("minutes");
|
||||
bindFunction("seconds");
|
||||
};
|
||||
onMounted(() => {
|
||||
nextTick(() => {
|
||||
!props.arrowControl && bindScrollEvent();
|
||||
adjustSpinners();
|
||||
if (props.role === "start")
|
||||
emitSelectRange("hours");
|
||||
});
|
||||
});
|
||||
const setRef = (scrollbar, type) => {
|
||||
listRefsMap[type].value = scrollbar != null ? scrollbar : void 0;
|
||||
};
|
||||
emit("set-option", [`${props.role}_scrollDown`, scrollDown]);
|
||||
emit("set-option", [`${props.role}_emitSelectRange`, emitSelectRange]);
|
||||
watch(() => props.spinnerDate, () => {
|
||||
if (isScrolling)
|
||||
return;
|
||||
adjustSpinners();
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createElementBlock("div", {
|
||||
class: normalizeClass([unref(ns).b("spinner"), { "has-seconds": _ctx.showSeconds }])
|
||||
}, [
|
||||
!_ctx.arrowControl ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(spinnerItems), (item) => {
|
||||
return openBlock(), createBlock(unref(ElScrollbar), {
|
||||
key: item,
|
||||
ref_for: true,
|
||||
ref: (scrollbar) => setRef(scrollbar, item),
|
||||
class: normalizeClass(unref(ns).be("spinner", "wrapper")),
|
||||
"wrap-style": "max-height: inherit;",
|
||||
"view-class": unref(ns).be("spinner", "list"),
|
||||
noresize: "",
|
||||
tag: "ul",
|
||||
onMouseenter: ($event) => emitSelectRange(item),
|
||||
onMousemove: ($event) => adjustCurrentSpinner(item)
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(timeList)[item], (disabled, key) => {
|
||||
return openBlock(), createElementBlock("li", {
|
||||
key,
|
||||
class: normalizeClass([
|
||||
unref(ns).be("spinner", "item"),
|
||||
unref(ns).is("active", key === unref(timePartials)[item]),
|
||||
unref(ns).is("disabled", disabled)
|
||||
]),
|
||||
onClick: ($event) => handleClick(item, { value: key, disabled })
|
||||
}, [
|
||||
item === "hours" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
||||
createTextVNode(toDisplayString(("0" + (_ctx.amPmMode ? key % 12 || 12 : key)).slice(-2)) + toDisplayString(getAmPmFlag(key)), 1)
|
||||
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
||||
createTextVNode(toDisplayString(("0" + key).slice(-2)), 1)
|
||||
], 64))
|
||||
], 10, ["onClick"]);
|
||||
}), 128))
|
||||
]),
|
||||
_: 2
|
||||
}, 1032, ["class", "view-class", "onMouseenter", "onMousemove"]);
|
||||
}), 128)) : createCommentVNode("v-if", true),
|
||||
_ctx.arrowControl ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(spinnerItems), (item) => {
|
||||
return openBlock(), createElementBlock("div", {
|
||||
key: item,
|
||||
class: normalizeClass([unref(ns).be("spinner", "wrapper"), unref(ns).is("arrow")]),
|
||||
onMouseenter: ($event) => emitSelectRange(item)
|
||||
}, [
|
||||
withDirectives((openBlock(), createBlock(unref(ElIcon), {
|
||||
class: normalizeClass(["arrow-up", unref(ns).be("spinner", "arrow")])
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
createVNode(unref(ArrowUp))
|
||||
]),
|
||||
_: 1
|
||||
}, 8, ["class"])), [
|
||||
[unref(vRepeatClick), onDecrement]
|
||||
]),
|
||||
withDirectives((openBlock(), createBlock(unref(ElIcon), {
|
||||
class: normalizeClass(["arrow-down", unref(ns).be("spinner", "arrow")])
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
createVNode(unref(ArrowDown))
|
||||
]),
|
||||
_: 1
|
||||
}, 8, ["class"])), [
|
||||
[unref(vRepeatClick), onIncrement]
|
||||
]),
|
||||
createElementVNode("ul", {
|
||||
class: normalizeClass(unref(ns).be("spinner", "list"))
|
||||
}, [
|
||||
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(arrowControlTimeList)[item], (time, key) => {
|
||||
return openBlock(), createElementBlock("li", {
|
||||
key,
|
||||
class: normalizeClass([
|
||||
unref(ns).be("spinner", "item"),
|
||||
unref(ns).is("active", time === unref(timePartials)[item]),
|
||||
unref(ns).is("disabled", unref(timeList)[item][time])
|
||||
])
|
||||
}, [
|
||||
unref(isNumber)(time) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
||||
item === "hours" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
||||
createTextVNode(toDisplayString(("0" + (_ctx.amPmMode ? time % 12 || 12 : time)).slice(-2)) + toDisplayString(getAmPmFlag(time)), 1)
|
||||
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
||||
createTextVNode(toDisplayString(("0" + time).slice(-2)), 1)
|
||||
], 64))
|
||||
], 64)) : createCommentVNode("v-if", true)
|
||||
], 2);
|
||||
}), 128))
|
||||
], 2)
|
||||
], 42, ["onMouseenter"]);
|
||||
}), 128)) : createCommentVNode("v-if", true)
|
||||
], 2);
|
||||
};
|
||||
}
|
||||
});
|
||||
var TimeSpinner = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "basic-time-spinner.vue"]]);
|
||||
|
||||
export { TimeSpinner as default };
|
||||
//# sourceMappingURL=basic-time-spinner.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
82
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts
generated
vendored
Normal file
82
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
declare const _default: import("vue").DefineComponent<{
|
||||
readonly disabledHours: {
|
||||
readonly type: import("vue").PropType<import("element-plus").GetDisabledHours>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledMinutes: {
|
||||
readonly type: import("vue").PropType<import("element-plus").GetDisabledMinutes>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledSeconds: {
|
||||
readonly type: import("vue").PropType<import("element-plus").GetDisabledSeconds>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly role: {
|
||||
readonly type: import("vue").PropType<string>;
|
||||
readonly required: true;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly spinnerDate: {
|
||||
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
|
||||
readonly required: true;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly showSeconds: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly arrowControl: BooleanConstructor;
|
||||
readonly amPmMode: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "" | "a" | "A") | (() => "" | "a" | "A") | ((new (...args: any[]) => "" | "a" | "A") | (() => "" | "a" | "A"))[], unknown, unknown, "", boolean>;
|
||||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
||||
change: (...args: any[]) => void;
|
||||
"select-range": (...args: any[]) => void;
|
||||
"set-option": (...args: any[]) => void;
|
||||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
readonly disabledHours: {
|
||||
readonly type: import("vue").PropType<import("element-plus").GetDisabledHours>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledMinutes: {
|
||||
readonly type: import("vue").PropType<import("element-plus").GetDisabledMinutes>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabledSeconds: {
|
||||
readonly type: import("vue").PropType<import("element-plus").GetDisabledSeconds>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly role: {
|
||||
readonly type: import("vue").PropType<string>;
|
||||
readonly required: true;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly spinnerDate: {
|
||||
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
|
||||
readonly required: true;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly showSeconds: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly arrowControl: BooleanConstructor;
|
||||
readonly amPmMode: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "" | "a" | "A") | (() => "" | "a" | "A") | ((new (...args: any[]) => "" | "a" | "A") | (() => "" | "a" | "A"))[], unknown, unknown, "", boolean>;
|
||||
}>> & {
|
||||
onChange?: ((...args: any[]) => any) | undefined;
|
||||
"onSelect-range"?: ((...args: any[]) => any) | undefined;
|
||||
"onSet-option"?: ((...args: any[]) => any) | undefined;
|
||||
}, {
|
||||
readonly arrowControl: boolean;
|
||||
readonly showSeconds: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly amPmMode: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "a" | "A") | (() => "" | "a" | "A") | ((new (...args: any[]) => "" | "a" | "A") | (() => "" | "a" | "A"))[], unknown, unknown>;
|
||||
}>;
|
||||
export default _default;
|
||||
184
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs
generated
vendored
Normal file
184
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs
generated
vendored
Normal file
@@ -0,0 +1,184 @@
|
||||
import { defineComponent, inject, ref, computed, openBlock, createBlock, Transition, unref, withCtx, createElementBlock, normalizeClass, createElementVNode, createVNode, toDisplayString, createCommentVNode, nextTick } from 'vue';
|
||||
import dayjs from 'dayjs';
|
||||
import { PICKER_BASE_INJECTION_KEY } from '../constants.mjs';
|
||||
import { panelTimePickerProps } from '../props/panel-time-picker.mjs';
|
||||
import { useTimePanel } from '../composables/use-time-panel.mjs';
|
||||
import { useOldValue, buildAvailableTimeSlotGetter } from '../composables/use-time-picker.mjs';
|
||||
import TimeSpinner from './basic-time-spinner.mjs';
|
||||
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
||||
import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
|
||||
import { useLocale } from '../../../../hooks/use-locale/index.mjs';
|
||||
import { isUndefined } from '../../../../utils/types.mjs';
|
||||
import { getEventCode } from '../../../../utils/dom/event.mjs';
|
||||
import { EVENT_CODE } from '../../../../constants/aria.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "panel-time-pick",
|
||||
props: panelTimePickerProps,
|
||||
emits: ["pick", "select-range", "set-picker-option"],
|
||||
setup(__props, { emit }) {
|
||||
const props = __props;
|
||||
const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
|
||||
const {
|
||||
arrowControl,
|
||||
disabledHours,
|
||||
disabledMinutes,
|
||||
disabledSeconds,
|
||||
defaultValue
|
||||
} = pickerBase.props;
|
||||
const { getAvailableHours, getAvailableMinutes, getAvailableSeconds } = buildAvailableTimeSlotGetter(disabledHours, disabledMinutes, disabledSeconds);
|
||||
const ns = useNamespace("time");
|
||||
const { t, lang } = useLocale();
|
||||
const selectionRange = ref([0, 2]);
|
||||
const oldValue = useOldValue(props);
|
||||
const transitionName = computed(() => {
|
||||
return isUndefined(props.actualVisible) ? `${ns.namespace.value}-zoom-in-top` : "";
|
||||
});
|
||||
const showSeconds = computed(() => {
|
||||
return props.format.includes("ss");
|
||||
});
|
||||
const amPmMode = computed(() => {
|
||||
if (props.format.includes("A"))
|
||||
return "A";
|
||||
if (props.format.includes("a"))
|
||||
return "a";
|
||||
return "";
|
||||
});
|
||||
const isValidValue = (_date) => {
|
||||
const parsedDate = dayjs(_date).locale(lang.value);
|
||||
const result = getRangeAvailableTime(parsedDate);
|
||||
return parsedDate.isSame(result);
|
||||
};
|
||||
const handleCancel = () => {
|
||||
const old = oldValue.value;
|
||||
emit("pick", old, false);
|
||||
nextTick(() => {
|
||||
oldValue.value = old;
|
||||
});
|
||||
};
|
||||
const handleConfirm = (visible = false, first = false) => {
|
||||
if (first)
|
||||
return;
|
||||
emit("pick", props.parsedValue, visible);
|
||||
};
|
||||
const handleChange = (_date) => {
|
||||
if (!props.visible) {
|
||||
return;
|
||||
}
|
||||
const result = getRangeAvailableTime(_date).millisecond(0);
|
||||
emit("pick", result, true);
|
||||
};
|
||||
const setSelectionRange = (start, end) => {
|
||||
emit("select-range", start, end);
|
||||
selectionRange.value = [start, end];
|
||||
};
|
||||
const changeSelectionRange = (step) => {
|
||||
const actualFormat = props.format;
|
||||
const hourIndex = actualFormat.indexOf("HH");
|
||||
const minuteIndex = actualFormat.indexOf("mm");
|
||||
const secondIndex = actualFormat.indexOf("ss");
|
||||
const list = [];
|
||||
const mapping = [];
|
||||
if (hourIndex !== -1) {
|
||||
list.push(hourIndex);
|
||||
mapping.push("hours");
|
||||
}
|
||||
if (minuteIndex !== -1) {
|
||||
list.push(minuteIndex);
|
||||
mapping.push("minutes");
|
||||
}
|
||||
if (secondIndex !== -1 && showSeconds.value) {
|
||||
list.push(secondIndex);
|
||||
mapping.push("seconds");
|
||||
}
|
||||
const index = list.indexOf(selectionRange.value[0]);
|
||||
const next = (index + step + list.length) % list.length;
|
||||
timePickerOptions["start_emitSelectRange"](mapping[next]);
|
||||
};
|
||||
const handleKeydown = (event) => {
|
||||
const code = getEventCode(event);
|
||||
const { left, right, up, down } = EVENT_CODE;
|
||||
if ([left, right].includes(code)) {
|
||||
const step = code === left ? -1 : 1;
|
||||
changeSelectionRange(step);
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
if ([up, down].includes(code)) {
|
||||
const step = code === up ? -1 : 1;
|
||||
timePickerOptions["start_scrollDown"](step);
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
};
|
||||
const { timePickerOptions, onSetOption, getAvailableTime } = useTimePanel({
|
||||
getAvailableHours,
|
||||
getAvailableMinutes,
|
||||
getAvailableSeconds
|
||||
});
|
||||
const getRangeAvailableTime = (date) => {
|
||||
return getAvailableTime(date, props.datetimeRole || "", true);
|
||||
};
|
||||
const parseUserInput = (value) => {
|
||||
if (!value)
|
||||
return null;
|
||||
return dayjs(value, props.format).locale(lang.value);
|
||||
};
|
||||
const getDefaultValue = () => {
|
||||
return dayjs(defaultValue).locale(lang.value);
|
||||
};
|
||||
emit("set-picker-option", ["isValidValue", isValidValue]);
|
||||
emit("set-picker-option", ["parseUserInput", parseUserInput]);
|
||||
emit("set-picker-option", ["handleKeydownInput", handleKeydown]);
|
||||
emit("set-picker-option", ["getRangeAvailableTime", getRangeAvailableTime]);
|
||||
emit("set-picker-option", ["getDefaultValue", getDefaultValue]);
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createBlock(Transition, { name: unref(transitionName) }, {
|
||||
default: withCtx(() => [
|
||||
_ctx.actualVisible || _ctx.visible ? (openBlock(), createElementBlock("div", {
|
||||
key: 0,
|
||||
class: normalizeClass(unref(ns).b("panel"))
|
||||
}, [
|
||||
createElementVNode("div", {
|
||||
class: normalizeClass([unref(ns).be("panel", "content"), { "has-seconds": unref(showSeconds) }])
|
||||
}, [
|
||||
createVNode(TimeSpinner, {
|
||||
ref: "spinner",
|
||||
role: _ctx.datetimeRole || "start",
|
||||
"arrow-control": unref(arrowControl),
|
||||
"show-seconds": unref(showSeconds),
|
||||
"am-pm-mode": unref(amPmMode),
|
||||
"spinner-date": _ctx.parsedValue,
|
||||
"disabled-hours": unref(disabledHours),
|
||||
"disabled-minutes": unref(disabledMinutes),
|
||||
"disabled-seconds": unref(disabledSeconds),
|
||||
onChange: handleChange,
|
||||
onSetOption: unref(onSetOption),
|
||||
onSelectRange: setSelectionRange
|
||||
}, null, 8, ["role", "arrow-control", "show-seconds", "am-pm-mode", "spinner-date", "disabled-hours", "disabled-minutes", "disabled-seconds", "onSetOption"])
|
||||
], 2),
|
||||
createElementVNode("div", {
|
||||
class: normalizeClass(unref(ns).be("panel", "footer"))
|
||||
}, [
|
||||
createElementVNode("button", {
|
||||
type: "button",
|
||||
class: normalizeClass([unref(ns).be("panel", "btn"), "cancel"]),
|
||||
onClick: handleCancel
|
||||
}, toDisplayString(unref(t)("el.datepicker.cancel")), 3),
|
||||
createElementVNode("button", {
|
||||
type: "button",
|
||||
class: normalizeClass([unref(ns).be("panel", "btn"), "confirm"]),
|
||||
onClick: ($event) => handleConfirm()
|
||||
}, toDisplayString(unref(t)("el.datepicker.confirm")), 11, ["onClick"])
|
||||
], 2)
|
||||
], 2)) : createCommentVNode("v-if", true)
|
||||
]),
|
||||
_: 1
|
||||
}, 8, ["name"]);
|
||||
};
|
||||
}
|
||||
});
|
||||
var TimePickPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "panel-time-pick.vue"]]);
|
||||
|
||||
export { TimePickPanel as default };
|
||||
//# sourceMappingURL=panel-time-pick.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
37
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts
generated
vendored
Normal file
37
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import dayjs from 'dayjs';
|
||||
declare const _default: import("vue").DefineComponent<{
|
||||
readonly datetimeRole: StringConstructor;
|
||||
readonly parsedValue: {
|
||||
readonly type: import("vue").PropType<dayjs.Dayjs>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly visible: BooleanConstructor;
|
||||
readonly actualVisible: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
||||
readonly format: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
||||
"select-range": (...args: any[]) => void;
|
||||
pick: (...args: any[]) => void;
|
||||
"set-picker-option": (...args: any[]) => void;
|
||||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
readonly datetimeRole: StringConstructor;
|
||||
readonly parsedValue: {
|
||||
readonly type: import("vue").PropType<dayjs.Dayjs>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly visible: BooleanConstructor;
|
||||
readonly actualVisible: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
||||
readonly format: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
}>> & {
|
||||
onPick?: ((...args: any[]) => any) | undefined;
|
||||
"onSelect-range"?: ((...args: any[]) => any) | undefined;
|
||||
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
||||
}, {
|
||||
readonly visible: boolean;
|
||||
readonly format: string;
|
||||
readonly actualVisible: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
}>;
|
||||
export default _default;
|
||||
285
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-range.mjs
generated
vendored
Normal file
285
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-range.mjs
generated
vendored
Normal file
@@ -0,0 +1,285 @@
|
||||
import { defineComponent, inject, computed, ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, toDisplayString, createVNode, createCommentVNode, nextTick } from 'vue';
|
||||
import dayjs from 'dayjs';
|
||||
import { union } from 'lodash-unified';
|
||||
import { PICKER_BASE_INJECTION_KEY } from '../constants.mjs';
|
||||
import { panelTimeRangeProps } from '../props/panel-time-range.mjs';
|
||||
import { useTimePanel } from '../composables/use-time-panel.mjs';
|
||||
import { useOldValue, buildAvailableTimeSlotGetter } from '../composables/use-time-picker.mjs';
|
||||
import TimeSpinner from './basic-time-spinner.mjs';
|
||||
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
||||
import { useLocale } from '../../../../hooks/use-locale/index.mjs';
|
||||
import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
|
||||
import { getEventCode } from '../../../../utils/dom/event.mjs';
|
||||
import { isArray } from '@vue/shared';
|
||||
import { EVENT_CODE } from '../../../../constants/aria.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "panel-time-range",
|
||||
props: panelTimeRangeProps,
|
||||
emits: ["pick", "select-range", "set-picker-option"],
|
||||
setup(__props, { emit }) {
|
||||
const props = __props;
|
||||
const makeSelectRange = (start, end) => {
|
||||
const result = [];
|
||||
for (let i = start; i <= end; i++) {
|
||||
result.push(i);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
const { t, lang } = useLocale();
|
||||
const nsTime = useNamespace("time");
|
||||
const nsPicker = useNamespace("picker");
|
||||
const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
|
||||
const {
|
||||
arrowControl,
|
||||
disabledHours,
|
||||
disabledMinutes,
|
||||
disabledSeconds,
|
||||
defaultValue
|
||||
} = pickerBase.props;
|
||||
const startContainerKls = computed(() => [
|
||||
nsTime.be("range-picker", "body"),
|
||||
nsTime.be("panel", "content"),
|
||||
nsTime.is("arrow", arrowControl),
|
||||
showSeconds.value ? "has-seconds" : ""
|
||||
]);
|
||||
const endContainerKls = computed(() => [
|
||||
nsTime.be("range-picker", "body"),
|
||||
nsTime.be("panel", "content"),
|
||||
nsTime.is("arrow", arrowControl),
|
||||
showSeconds.value ? "has-seconds" : ""
|
||||
]);
|
||||
const startTime = computed(() => props.parsedValue[0]);
|
||||
const endTime = computed(() => props.parsedValue[1]);
|
||||
const oldValue = useOldValue(props);
|
||||
const handleCancel = () => {
|
||||
const old = oldValue.value;
|
||||
emit("pick", old, false);
|
||||
nextTick(() => {
|
||||
oldValue.value = old;
|
||||
});
|
||||
};
|
||||
const showSeconds = computed(() => {
|
||||
return props.format.includes("ss");
|
||||
});
|
||||
const amPmMode = computed(() => {
|
||||
if (props.format.includes("A"))
|
||||
return "A";
|
||||
if (props.format.includes("a"))
|
||||
return "a";
|
||||
return "";
|
||||
});
|
||||
const handleConfirm = (visible = false) => {
|
||||
emit("pick", [startTime.value, endTime.value], visible);
|
||||
};
|
||||
const handleMinChange = (date) => {
|
||||
handleChange(date.millisecond(0), endTime.value);
|
||||
};
|
||||
const handleMaxChange = (date) => {
|
||||
handleChange(startTime.value, date.millisecond(0));
|
||||
};
|
||||
const isValidValue = (_date) => {
|
||||
const parsedDate = _date.map((_) => dayjs(_).locale(lang.value));
|
||||
const result = getRangeAvailableTime(parsedDate);
|
||||
return parsedDate[0].isSame(result[0]) && parsedDate[1].isSame(result[1]);
|
||||
};
|
||||
const handleChange = (start, end) => {
|
||||
if (!props.visible) {
|
||||
return;
|
||||
}
|
||||
emit("pick", [start, end], true);
|
||||
};
|
||||
const btnConfirmDisabled = computed(() => {
|
||||
return startTime.value > endTime.value;
|
||||
});
|
||||
const selectionRange = ref([0, 2]);
|
||||
const setMinSelectionRange = (start, end) => {
|
||||
emit("select-range", start, end, "min");
|
||||
selectionRange.value = [start, end];
|
||||
};
|
||||
const offset = computed(() => showSeconds.value ? 11 : 8);
|
||||
const setMaxSelectionRange = (start, end) => {
|
||||
emit("select-range", start, end, "max");
|
||||
const _offset = unref(offset);
|
||||
selectionRange.value = [start + _offset, end + _offset];
|
||||
};
|
||||
const changeSelectionRange = (step) => {
|
||||
const list = showSeconds.value ? [0, 3, 6, 11, 14, 17] : [0, 3, 8, 11];
|
||||
const mapping = ["hours", "minutes"].concat(showSeconds.value ? ["seconds"] : []);
|
||||
const index = list.indexOf(selectionRange.value[0]);
|
||||
const next = (index + step + list.length) % list.length;
|
||||
const half = list.length / 2;
|
||||
if (next < half) {
|
||||
timePickerOptions["start_emitSelectRange"](mapping[next]);
|
||||
} else {
|
||||
timePickerOptions["end_emitSelectRange"](mapping[next - half]);
|
||||
}
|
||||
};
|
||||
const handleKeydown = (event) => {
|
||||
const code = getEventCode(event);
|
||||
const { left, right, up, down } = EVENT_CODE;
|
||||
if ([left, right].includes(code)) {
|
||||
const step = code === left ? -1 : 1;
|
||||
changeSelectionRange(step);
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
if ([up, down].includes(code)) {
|
||||
const step = code === up ? -1 : 1;
|
||||
const role = selectionRange.value[0] < offset.value ? "start" : "end";
|
||||
timePickerOptions[`${role}_scrollDown`](step);
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
};
|
||||
const disabledHours_ = (role, compare) => {
|
||||
const defaultDisable = disabledHours ? disabledHours(role) : [];
|
||||
const isStart = role === "start";
|
||||
const compareDate = compare || (isStart ? endTime.value : startTime.value);
|
||||
const compareHour = compareDate.hour();
|
||||
const nextDisable = isStart ? makeSelectRange(compareHour + 1, 23) : makeSelectRange(0, compareHour - 1);
|
||||
return union(defaultDisable, nextDisable);
|
||||
};
|
||||
const disabledMinutes_ = (hour, role, compare) => {
|
||||
const defaultDisable = disabledMinutes ? disabledMinutes(hour, role) : [];
|
||||
const isStart = role === "start";
|
||||
const compareDate = compare || (isStart ? endTime.value : startTime.value);
|
||||
const compareHour = compareDate.hour();
|
||||
if (hour !== compareHour) {
|
||||
return defaultDisable;
|
||||
}
|
||||
const compareMinute = compareDate.minute();
|
||||
const nextDisable = isStart ? makeSelectRange(compareMinute + 1, 59) : makeSelectRange(0, compareMinute - 1);
|
||||
return union(defaultDisable, nextDisable);
|
||||
};
|
||||
const disabledSeconds_ = (hour, minute, role, compare) => {
|
||||
const defaultDisable = disabledSeconds ? disabledSeconds(hour, minute, role) : [];
|
||||
const isStart = role === "start";
|
||||
const compareDate = compare || (isStart ? endTime.value : startTime.value);
|
||||
const compareHour = compareDate.hour();
|
||||
const compareMinute = compareDate.minute();
|
||||
if (hour !== compareHour || minute !== compareMinute) {
|
||||
return defaultDisable;
|
||||
}
|
||||
const compareSecond = compareDate.second();
|
||||
const nextDisable = isStart ? makeSelectRange(compareSecond + 1, 59) : makeSelectRange(0, compareSecond - 1);
|
||||
return union(defaultDisable, nextDisable);
|
||||
};
|
||||
const getRangeAvailableTime = ([start, end]) => {
|
||||
return [
|
||||
getAvailableTime(start, "start", true, end),
|
||||
getAvailableTime(end, "end", false, start)
|
||||
];
|
||||
};
|
||||
const { getAvailableHours, getAvailableMinutes, getAvailableSeconds } = buildAvailableTimeSlotGetter(disabledHours_, disabledMinutes_, disabledSeconds_);
|
||||
const {
|
||||
timePickerOptions,
|
||||
getAvailableTime,
|
||||
onSetOption
|
||||
} = useTimePanel({
|
||||
getAvailableHours,
|
||||
getAvailableMinutes,
|
||||
getAvailableSeconds
|
||||
});
|
||||
const parseUserInput = (days) => {
|
||||
if (!days)
|
||||
return null;
|
||||
if (isArray(days)) {
|
||||
return days.map((d) => dayjs(d, props.format).locale(lang.value));
|
||||
}
|
||||
return dayjs(days, props.format).locale(lang.value);
|
||||
};
|
||||
const getDefaultValue = () => {
|
||||
if (isArray(defaultValue)) {
|
||||
return defaultValue.map((d) => dayjs(d).locale(lang.value));
|
||||
}
|
||||
const defaultDay = dayjs(defaultValue).locale(lang.value);
|
||||
return [defaultDay, defaultDay.add(60, "m")];
|
||||
};
|
||||
emit("set-picker-option", ["parseUserInput", parseUserInput]);
|
||||
emit("set-picker-option", ["isValidValue", isValidValue]);
|
||||
emit("set-picker-option", ["handleKeydownInput", handleKeydown]);
|
||||
emit("set-picker-option", ["getDefaultValue", getDefaultValue]);
|
||||
emit("set-picker-option", ["getRangeAvailableTime", getRangeAvailableTime]);
|
||||
return (_ctx, _cache) => {
|
||||
return _ctx.actualVisible ? (openBlock(), createElementBlock("div", {
|
||||
key: 0,
|
||||
class: normalizeClass([unref(nsTime).b("range-picker"), unref(nsPicker).b("panel")])
|
||||
}, [
|
||||
createElementVNode("div", {
|
||||
class: normalizeClass(unref(nsTime).be("range-picker", "content"))
|
||||
}, [
|
||||
createElementVNode("div", {
|
||||
class: normalizeClass(unref(nsTime).be("range-picker", "cell"))
|
||||
}, [
|
||||
createElementVNode("div", {
|
||||
class: normalizeClass(unref(nsTime).be("range-picker", "header"))
|
||||
}, toDisplayString(unref(t)("el.datepicker.startTime")), 3),
|
||||
createElementVNode("div", {
|
||||
class: normalizeClass(unref(startContainerKls))
|
||||
}, [
|
||||
createVNode(TimeSpinner, {
|
||||
ref: "minSpinner",
|
||||
role: "start",
|
||||
"show-seconds": unref(showSeconds),
|
||||
"am-pm-mode": unref(amPmMode),
|
||||
"arrow-control": unref(arrowControl),
|
||||
"spinner-date": unref(startTime),
|
||||
"disabled-hours": disabledHours_,
|
||||
"disabled-minutes": disabledMinutes_,
|
||||
"disabled-seconds": disabledSeconds_,
|
||||
onChange: handleMinChange,
|
||||
onSetOption: unref(onSetOption),
|
||||
onSelectRange: setMinSelectionRange
|
||||
}, null, 8, ["show-seconds", "am-pm-mode", "arrow-control", "spinner-date", "onSetOption"])
|
||||
], 2)
|
||||
], 2),
|
||||
createElementVNode("div", {
|
||||
class: normalizeClass(unref(nsTime).be("range-picker", "cell"))
|
||||
}, [
|
||||
createElementVNode("div", {
|
||||
class: normalizeClass(unref(nsTime).be("range-picker", "header"))
|
||||
}, toDisplayString(unref(t)("el.datepicker.endTime")), 3),
|
||||
createElementVNode("div", {
|
||||
class: normalizeClass(unref(endContainerKls))
|
||||
}, [
|
||||
createVNode(TimeSpinner, {
|
||||
ref: "maxSpinner",
|
||||
role: "end",
|
||||
"show-seconds": unref(showSeconds),
|
||||
"am-pm-mode": unref(amPmMode),
|
||||
"arrow-control": unref(arrowControl),
|
||||
"spinner-date": unref(endTime),
|
||||
"disabled-hours": disabledHours_,
|
||||
"disabled-minutes": disabledMinutes_,
|
||||
"disabled-seconds": disabledSeconds_,
|
||||
onChange: handleMaxChange,
|
||||
onSetOption: unref(onSetOption),
|
||||
onSelectRange: setMaxSelectionRange
|
||||
}, null, 8, ["show-seconds", "am-pm-mode", "arrow-control", "spinner-date", "onSetOption"])
|
||||
], 2)
|
||||
], 2)
|
||||
], 2),
|
||||
createElementVNode("div", {
|
||||
class: normalizeClass(unref(nsTime).be("panel", "footer"))
|
||||
}, [
|
||||
createElementVNode("button", {
|
||||
type: "button",
|
||||
class: normalizeClass([unref(nsTime).be("panel", "btn"), "cancel"]),
|
||||
onClick: ($event) => handleCancel()
|
||||
}, toDisplayString(unref(t)("el.datepicker.cancel")), 11, ["onClick"]),
|
||||
createElementVNode("button", {
|
||||
type: "button",
|
||||
class: normalizeClass([unref(nsTime).be("panel", "btn"), "confirm"]),
|
||||
disabled: unref(btnConfirmDisabled),
|
||||
onClick: ($event) => handleConfirm()
|
||||
}, toDisplayString(unref(t)("el.datepicker.confirm")), 11, ["disabled", "onClick"])
|
||||
], 2)
|
||||
], 2)) : createCommentVNode("v-if", true);
|
||||
};
|
||||
}
|
||||
});
|
||||
var TimeRangePanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "panel-time-range.vue"]]);
|
||||
|
||||
export { TimeRangePanel as default };
|
||||
//# sourceMappingURL=panel-time-range.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-range.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-range.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
35
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts
generated
vendored
Normal file
35
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import dayjs from 'dayjs';
|
||||
declare const _default: import("vue").DefineComponent<{
|
||||
readonly parsedValue: {
|
||||
readonly type: import("vue").PropType<[dayjs.Dayjs, dayjs.Dayjs]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly visible: BooleanConstructor;
|
||||
readonly actualVisible: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
||||
readonly format: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
||||
"select-range": (...args: any[]) => void;
|
||||
pick: (...args: any[]) => void;
|
||||
"set-picker-option": (...args: any[]) => void;
|
||||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
readonly parsedValue: {
|
||||
readonly type: import("vue").PropType<[dayjs.Dayjs, dayjs.Dayjs]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly visible: BooleanConstructor;
|
||||
readonly actualVisible: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
||||
readonly format: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
}>> & {
|
||||
onPick?: ((...args: any[]) => any) | undefined;
|
||||
"onSelect-range"?: ((...args: any[]) => any) | undefined;
|
||||
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
||||
}, {
|
||||
readonly visible: boolean;
|
||||
readonly format: string;
|
||||
readonly actualVisible: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
}>;
|
||||
export default _default;
|
||||
449
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker.d.ts
generated
vendored
Normal file
449
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker.d.ts
generated
vendored
Normal file
@@ -0,0 +1,449 @@
|
||||
declare const _default: import("vue").DefineComponent<{
|
||||
/**
|
||||
* @description whether to pick a time range
|
||||
*/
|
||||
isRange: BooleanConstructor;
|
||||
showNow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
showConfirm: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
showFooter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
showWeekNumber: BooleanConstructor;
|
||||
ariaLabel: StringConstructor;
|
||||
emptyValues: ArrayConstructor;
|
||||
valueOnClear: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null))[], unknown, unknown, undefined, boolean>;
|
||||
disabledDate: {
|
||||
readonly type: import("vue").PropType<Function>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
cellClassName: {
|
||||
readonly type: import("vue").PropType<Function>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
||||
arrowControl: BooleanConstructor;
|
||||
tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
||||
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
unlinkPanels: BooleanConstructor;
|
||||
placement: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement))[], import("element-plus").Placement, unknown, "bottom", boolean>;
|
||||
fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | ((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]))[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
||||
disabledHours: {
|
||||
readonly type: import("vue").PropType<import("./common/props").GetDisabledHours>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
disabledMinutes: {
|
||||
readonly type: import("vue").PropType<import("./common/props").GetDisabledMinutes>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
disabledSeconds: {
|
||||
readonly type: import("vue").PropType<import("./common/props").GetDisabledSeconds>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
automaticDropdown: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
id: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
name: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
popperClass: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | ((new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
popperStyle: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
format: StringConstructor;
|
||||
valueFormat: StringConstructor;
|
||||
dateFormat: StringConstructor;
|
||||
timeFormat: StringConstructor;
|
||||
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
clearIcon: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, "", boolean>;
|
||||
size: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly: BooleanConstructor;
|
||||
disabled: BooleanConstructor;
|
||||
placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
|
||||
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import("./common/props").ModelValueType | null) | ((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import("./common/props").ModelValueType | null))[], unknown, unknown, "", boolean>;
|
||||
rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
||||
startPlaceholder: StringConstructor;
|
||||
endPlaceholder: StringConstructor;
|
||||
defaultValue: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("./common/props").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("./common/props").SingleOrRange<Date>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
defaultTime: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("./common/props").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("./common/props").SingleOrRange<Date>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
/**
|
||||
* @description whether to pick a time range
|
||||
*/
|
||||
isRange: BooleanConstructor;
|
||||
showNow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
showConfirm: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
showFooter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
showWeekNumber: BooleanConstructor;
|
||||
ariaLabel: StringConstructor;
|
||||
emptyValues: ArrayConstructor;
|
||||
valueOnClear: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null))[], unknown, unknown, undefined, boolean>;
|
||||
disabledDate: {
|
||||
readonly type: import("vue").PropType<Function>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
cellClassName: {
|
||||
readonly type: import("vue").PropType<Function>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
||||
arrowControl: BooleanConstructor;
|
||||
tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
||||
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
unlinkPanels: BooleanConstructor;
|
||||
placement: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement))[], import("element-plus").Placement, unknown, "bottom", boolean>;
|
||||
fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | ((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]))[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
||||
disabledHours: {
|
||||
readonly type: import("vue").PropType<import("./common/props").GetDisabledHours>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
disabledMinutes: {
|
||||
readonly type: import("vue").PropType<import("./common/props").GetDisabledMinutes>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
disabledSeconds: {
|
||||
readonly type: import("vue").PropType<import("./common/props").GetDisabledSeconds>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
automaticDropdown: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
id: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
name: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
popperClass: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | ((new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | any)[])[])[])[])[])[])[])[])[])[])[]))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
popperStyle: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
format: StringConstructor;
|
||||
valueFormat: StringConstructor;
|
||||
dateFormat: StringConstructor;
|
||||
timeFormat: StringConstructor;
|
||||
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
clearIcon: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, "", boolean>;
|
||||
size: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly: BooleanConstructor;
|
||||
disabled: BooleanConstructor;
|
||||
placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
|
||||
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import("./common/props").ModelValueType | null) | ((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import("./common/props").ModelValueType | null))[], unknown, unknown, "", boolean>;
|
||||
rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
||||
startPlaceholder: StringConstructor;
|
||||
endPlaceholder: StringConstructor;
|
||||
defaultValue: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("./common/props").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("./common/props").SingleOrRange<Date>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
defaultTime: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("./common/props").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("./common/props").SingleOrRange<Date>))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
}>> & {
|
||||
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
||||
}, {
|
||||
disabled: boolean;
|
||||
tabindex: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
||||
type: string;
|
||||
placeholder: string;
|
||||
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import("./common/props").ModelValueType | null) | ((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import("./common/props").ModelValueType | null))[], unknown, unknown>;
|
||||
placement: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement))[], import("element-plus").Placement, unknown>;
|
||||
valueOnClear: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null))[], unknown, unknown>;
|
||||
readonly: boolean;
|
||||
prefixIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>;
|
||||
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
fallbackPlacements: import("element-plus").Placement[];
|
||||
popperOptions: Partial<import("element-plus").Options>;
|
||||
automaticDropdown: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
editable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
rangeSeparator: string;
|
||||
shortcuts: unknown[];
|
||||
showNow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
showConfirm: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
showFooter: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
showWeekNumber: boolean;
|
||||
arrowControl: boolean;
|
||||
unlinkPanels: boolean;
|
||||
isRange: boolean;
|
||||
}>;
|
||||
export default _default;
|
||||
59
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker.mjs
generated
vendored
Normal file
59
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker.mjs
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
import { defineComponent, ref, provide, createVNode, mergeProps } from 'vue';
|
||||
import dayjs from 'dayjs';
|
||||
import customParseFormat from 'dayjs/plugin/customParseFormat.js';
|
||||
import { PICKER_POPPER_OPTIONS_INJECTION_KEY, DEFAULT_FORMATS_TIME } from './constants.mjs';
|
||||
import CommonPicker from './common/picker.mjs';
|
||||
import TimePickPanel from './time-picker-com/panel-time-pick.mjs';
|
||||
import TimeRangePanel from './time-picker-com/panel-time-range.mjs';
|
||||
import { timePickerDefaultProps } from './common/props.mjs';
|
||||
import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
||||
|
||||
dayjs.extend(customParseFormat);
|
||||
var TimePicker = defineComponent({
|
||||
name: "ElTimePicker",
|
||||
install: null,
|
||||
props: {
|
||||
...timePickerDefaultProps,
|
||||
isRange: Boolean
|
||||
},
|
||||
emits: [UPDATE_MODEL_EVENT],
|
||||
setup(props, ctx) {
|
||||
const commonPicker = ref();
|
||||
const [type, Panel] = props.isRange ? ["timerange", TimeRangePanel] : ["time", TimePickPanel];
|
||||
const modelUpdater = (value) => ctx.emit(UPDATE_MODEL_EVENT, value);
|
||||
provide(PICKER_POPPER_OPTIONS_INJECTION_KEY, props.popperOptions);
|
||||
ctx.expose({
|
||||
focus: () => {
|
||||
var _a;
|
||||
(_a = commonPicker.value) == null ? void 0 : _a.focus();
|
||||
},
|
||||
blur: () => {
|
||||
var _a;
|
||||
(_a = commonPicker.value) == null ? void 0 : _a.blur();
|
||||
},
|
||||
handleOpen: () => {
|
||||
var _a;
|
||||
(_a = commonPicker.value) == null ? void 0 : _a.handleOpen();
|
||||
},
|
||||
handleClose: () => {
|
||||
var _a;
|
||||
(_a = commonPicker.value) == null ? void 0 : _a.handleClose();
|
||||
}
|
||||
});
|
||||
return () => {
|
||||
var _a;
|
||||
const format = (_a = props.format) != null ? _a : DEFAULT_FORMATS_TIME;
|
||||
return createVNode(CommonPicker, mergeProps(props, {
|
||||
"ref": commonPicker,
|
||||
"type": type,
|
||||
"format": format,
|
||||
"onUpdate:modelValue": modelUpdater
|
||||
}), {
|
||||
default: (props2) => createVNode(Panel, props2, null)
|
||||
});
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
export { TimePicker as default };
|
||||
//# sourceMappingURL=time-picker.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/time-picker.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"time-picker.mjs","sources":["../../../../../../packages/components/time-picker/src/time-picker.tsx"],"sourcesContent":["import { defineComponent, provide, ref } from 'vue'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport {\n DEFAULT_FORMATS_TIME,\n PICKER_POPPER_OPTIONS_INJECTION_KEY,\n} from './constants'\nimport Picker from './common/picker.vue'\nimport TimePickPanel from './time-picker-com/panel-time-pick.vue'\nimport TimeRangePanel from './time-picker-com/panel-time-range.vue'\nimport { timePickerDefaultProps } from './common/props'\n\ndayjs.extend(customParseFormat)\n\nexport default defineComponent({\n name: 'ElTimePicker',\n install: null,\n props: {\n ...timePickerDefaultProps,\n /**\n * @description whether to pick a time range\n */\n isRange: Boolean,\n },\n emits: [UPDATE_MODEL_EVENT],\n setup(props, ctx) {\n const commonPicker = ref<InstanceType<typeof Picker>>()\n const [type, Panel] = props.isRange\n ? ['timerange', TimeRangePanel]\n : ['time', TimePickPanel]\n\n const modelUpdater = (value: any) => ctx.emit(UPDATE_MODEL_EVENT, value)\n provide(PICKER_POPPER_OPTIONS_INJECTION_KEY, props.popperOptions)\n ctx.expose({\n /**\n * @description focus the Input component\n */\n focus: () => {\n commonPicker.value?.focus()\n },\n /**\n * @description blur the Input component\n */\n blur: () => {\n commonPicker.value?.blur()\n },\n /**\n * @description open the TimePicker popper\n */\n handleOpen: () => {\n commonPicker.value?.handleOpen()\n },\n /**\n * @description close the TimePicker popper\n */\n handleClose: () => {\n commonPicker.value?.handleClose()\n },\n })\n\n return () => {\n const format = props.format ?? DEFAULT_FORMATS_TIME\n\n return (\n <Picker\n {...props}\n ref={commonPicker}\n type={type}\n format={format}\n onUpdate:modelValue={modelUpdater}\n >\n {{\n default: (props: any) => <Panel {...props} />,\n }}\n </Picker>\n )\n }\n },\n})\n"],"names":["dayjs","extend","customParseFormat","defineComponent","name","install","props","isRange","Boolean","UPDATE_MODEL_EVENT","setup","commonPicker","type","modelUpdater","value","ctx","emit","provide","PICKER_POPPER_OPTIONS_INJECTION_KEY","expose","focus","blur","_createVNode","Picker","_mergeProps","handleOpen","handleClose"],"mappings":";;;;;;;;;;AAaAA,KAAK,CAACC,MAAN,CAAaC,iBAAb,CAAA,CAAA;AAEA,iBAAeC,eAAe,CAAC;AAC7BC,EAAAA,IAAI,EAAE,cADuB;AAE7BC,EAAAA,OAAO,EAAE,IAFoB;EAG7BC,KAAK,EAAE;;AAEL,IAAA,OAAA,EAAA,OAAA;AACJ,GAAA;AACA,EAAA,KAAA,EAAA,CAAA,kBAAA,CAAA;AACIC,EAAAA,KAAAA,CAAAA,KAASC,EAAAA,GAAAA,EAAAA;IARkB,MAAA,YAAA,GAAA,GAAA,EAAA,CAAA;IAUxB,MAAGC,CAAAA,IAAAA,EAAAA,KAAAA,CAAAA,GAAAA,KAVqB,CAAA,OAAA,GAAA,CAAA,WAAA,EAAA,cAAA,CAAA,GAAA,CAAA,MAAA,EAAA,aAAA,CAAA,CAAA;;AAW7BC,IAAAA,OAAMJ,CAAAA,mCAAY,EAAA,KAAA,CAAA,aAAA,CAAA,CAAA;IAChB,GAAMK,CAAAA,MAAAA,CAAAA;AACN,MAAA,KAAOC,EAAD;;QAIAC,CAAAA,EAAAA,GAAAA,YAAgBC,CAAAA,KAAeC,KAAG,IAACC,GAAKP,KAAAA,CAAAA,GAAAA,EAAAA,CAAAA,KAAT,EAA6BK,CAAAA;;AAClEG,MAAAA,IAAAA,EAAQC,MAAD;QACHC,MAAJ,CAAW;AACT,QAAA,CAAA,EAAA,GAAA,YAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,EAAA,CAAA;AACN,OAAA;AACA,MAAA,UAAA,EAAA,MAAA;AACMC,QAAAA,MAAa,CAAA;QACXT,CAAY,EAAA,GAAA,YAAZ,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,UAAA,EAAA,CAAA;OALO;;AAOT,QAAA,IAAA,EAAA,CAAA;AACN,QAAA,CAAA,EAAA,GAAA,YAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,WAAA,EAAA,CAAA;AACA,OAAA;AACMU,KAAAA,CAAAA,CAAAA;WACc,MAAA;MACb,IAZQ,EAAA,CAAA;;AAaT,MAAA,OAAAC,WAAA,CAAAC,YAAA,EAAAC,UAAA,CAAA,KAAA,EAAA;AACN,QAAA,KAAA,EAAA,YAAA;AACA,QAAA,MAAA,EAAA,IAAA;AACMC,QAAAA,QAAU,EAAE,MAAM;QAChBd,qBAAA,EAAA,YAAA;OAjBO,CAAA,EAAA;;AAmBT,OAAA,CAAA,CAAA;AACN,KAAA,CAAA;AACA,GAAA;AACMe,CAAAA,CAAAA;;;;"}
|
||||
14
frontend/node_modules/element-plus/es/components/time-picker/src/utils.d.ts
generated
vendored
Normal file
14
frontend/node_modules/element-plus/es/components/time-picker/src/utils.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import dayjs from 'dayjs';
|
||||
import type { Dayjs } from 'dayjs';
|
||||
import type { DateOrDates, DayOrDays } from './common/props';
|
||||
export type TimeList = [number | undefined, number, undefined | number];
|
||||
export declare const buildTimeList: (value: number, bound: number) => TimeList;
|
||||
export declare const rangeArr: (n: number) => number[];
|
||||
export declare const extractDateFormat: (format: string) => string;
|
||||
export declare const extractTimeFormat: (format: string) => string;
|
||||
export declare const dateEquals: (a: Date | unknown, b: Date | unknown) => boolean;
|
||||
export declare const valueEquals: (a: Array<Date> | unknown, b: Array<Date> | unknown) => boolean;
|
||||
export declare const parseDate: (date: string | number | Date, format: string | undefined, lang: string) => dayjs.Dayjs | undefined;
|
||||
export declare const formatter: (date: string | number | Date | Dayjs, format: string | undefined, lang: string) => string | number | Date | dayjs.Dayjs;
|
||||
export declare const makeList: (total: number, method?: () => number[]) => boolean[];
|
||||
export declare const dayOrDaysToDate: (dayOrDays: DayOrDays) => DateOrDates;
|
||||
69
frontend/node_modules/element-plus/es/components/time-picker/src/utils.mjs
generated
vendored
Normal file
69
frontend/node_modules/element-plus/es/components/time-picker/src/utils.mjs
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
import dayjs from 'dayjs';
|
||||
import { isEmpty } from '../../../utils/types.mjs';
|
||||
import { isDate, isArray } from '@vue/shared';
|
||||
|
||||
const buildTimeList = (value, bound) => {
|
||||
return [
|
||||
value > 0 ? value - 1 : void 0,
|
||||
value,
|
||||
value < bound ? value + 1 : void 0
|
||||
];
|
||||
};
|
||||
const rangeArr = (n) => Array.from(Array.from({ length: n }).keys());
|
||||
const extractDateFormat = (format) => {
|
||||
return format.replace(/\W?m{1,2}|\W?ZZ/g, "").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, "").trim();
|
||||
};
|
||||
const extractTimeFormat = (format) => {
|
||||
return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g, "").trim();
|
||||
};
|
||||
const dateEquals = function(a, b) {
|
||||
const aIsDate = isDate(a);
|
||||
const bIsDate = isDate(b);
|
||||
if (aIsDate && bIsDate) {
|
||||
return a.getTime() === b.getTime();
|
||||
}
|
||||
if (!aIsDate && !bIsDate) {
|
||||
return a === b;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
const valueEquals = function(a, b) {
|
||||
const aIsArray = isArray(a);
|
||||
const bIsArray = isArray(b);
|
||||
if (aIsArray && bIsArray) {
|
||||
if (a.length !== b.length) {
|
||||
return false;
|
||||
}
|
||||
return a.every((item, index) => dateEquals(item, b[index]));
|
||||
}
|
||||
if (!aIsArray && !bIsArray) {
|
||||
return dateEquals(a, b);
|
||||
}
|
||||
return false;
|
||||
};
|
||||
const parseDate = function(date, format, lang) {
|
||||
const day = isEmpty(format) || format === "x" ? dayjs(date).locale(lang) : dayjs(date, format).locale(lang);
|
||||
return day.isValid() ? day : void 0;
|
||||
};
|
||||
const formatter = function(date, format, lang) {
|
||||
if (isEmpty(format))
|
||||
return date;
|
||||
if (format === "x")
|
||||
return +date;
|
||||
return dayjs(date).locale(lang).format(format);
|
||||
};
|
||||
const makeList = (total, method) => {
|
||||
var _a;
|
||||
const arr = [];
|
||||
const disabledArr = method == null ? void 0 : method();
|
||||
for (let i = 0; i < total; i++) {
|
||||
arr.push((_a = disabledArr == null ? void 0 : disabledArr.includes(i)) != null ? _a : false);
|
||||
}
|
||||
return arr;
|
||||
};
|
||||
const dayOrDaysToDate = (dayOrDays) => {
|
||||
return isArray(dayOrDays) ? dayOrDays.map((d) => d.toDate()) : dayOrDays.toDate();
|
||||
};
|
||||
|
||||
export { buildTimeList, dateEquals, dayOrDaysToDate, extractDateFormat, extractTimeFormat, formatter, makeList, parseDate, rangeArr, valueEquals };
|
||||
//# sourceMappingURL=utils.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/src/utils.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/src/utils.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
5
frontend/node_modules/element-plus/es/components/time-picker/style/css.d.ts
generated
vendored
Normal file
5
frontend/node_modules/element-plus/es/components/time-picker/style/css.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import 'element-plus/es/components/base/style/css';
|
||||
import 'element-plus/theme-chalk/el-time-picker.css';
|
||||
import 'element-plus/es/components/input/style/css';
|
||||
import 'element-plus/es/components/scrollbar/style/css';
|
||||
import 'element-plus/es/components/popper/style/css';
|
||||
6
frontend/node_modules/element-plus/es/components/time-picker/style/css.mjs
generated
vendored
Normal file
6
frontend/node_modules/element-plus/es/components/time-picker/style/css.mjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import '../../base/style/css.mjs';
|
||||
import 'element-plus/theme-chalk/el-time-picker.css';
|
||||
import '../../input/style/css.mjs';
|
||||
import '../../scrollbar/style/css.mjs';
|
||||
import '../../popper/style/css.mjs';
|
||||
//# sourceMappingURL=css.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/style/css.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/style/css.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"css.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
||||
5
frontend/node_modules/element-plus/es/components/time-picker/style/index.d.ts
generated
vendored
Normal file
5
frontend/node_modules/element-plus/es/components/time-picker/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import 'element-plus/es/components/base/style';
|
||||
import 'element-plus/theme-chalk/src/time-picker.scss';
|
||||
import 'element-plus/es/components/input/style';
|
||||
import 'element-plus/es/components/scrollbar/style';
|
||||
import 'element-plus/es/components/popper/style';
|
||||
6
frontend/node_modules/element-plus/es/components/time-picker/style/index.mjs
generated
vendored
Normal file
6
frontend/node_modules/element-plus/es/components/time-picker/style/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import '../../base/style/index.mjs';
|
||||
import 'element-plus/theme-chalk/src/time-picker.scss';
|
||||
import '../../input/style/index.mjs';
|
||||
import '../../scrollbar/style/index.mjs';
|
||||
import '../../popper/style/index.mjs';
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-picker/style/index.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-picker/style/index.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
||||
Reference in New Issue
Block a user