完全跑通1.0版本
This commit is contained in:
8
frontend/node_modules/element-plus/es/components/time-select/index.d.ts
generated
vendored
Normal file
8
frontend/node_modules/element-plus/es/components/time-select/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { SFCWithInstall } from "../../utils/vue/typescript.js";
|
||||
import { DEFAULT_STEP, TimeSelectInstance, TimeSelectProps, TimeSelectPropsPublic, timeSelectProps } from "./src/time-select.js";
|
||||
import _default from "./src/time-select.vue.js";
|
||||
|
||||
//#region ../../packages/components/time-select/index.d.ts
|
||||
declare const ElTimeSelect: SFCWithInstall<typeof _default>;
|
||||
//#endregion
|
||||
export { DEFAULT_STEP, ElTimeSelect, ElTimeSelect as default, TimeSelectInstance, TimeSelectProps, TimeSelectPropsPublic, timeSelectProps };
|
||||
9
frontend/node_modules/element-plus/es/components/time-select/index.mjs
generated
vendored
Normal file
9
frontend/node_modules/element-plus/es/components/time-select/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { withInstall } from "../../utils/vue/install.mjs";
|
||||
import { DEFAULT_STEP, timeSelectProps } from "./src/time-select.mjs";
|
||||
import time_select_default from "./src/time-select2.mjs";
|
||||
//#region ../../packages/components/time-select/index.ts
|
||||
const ElTimeSelect = withInstall(time_select_default);
|
||||
//#endregion
|
||||
export { DEFAULT_STEP, ElTimeSelect, ElTimeSelect as default, timeSelectProps };
|
||||
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-select/index.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-select/index.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.mjs","names":["TimeSelect"],"sources":["../../../../../packages/components/time-select/index.ts"],"sourcesContent":["import { withInstall } from '@element-plus/utils'\nimport TimeSelect from './src/time-select.vue'\n\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport const ElTimeSelect: SFCWithInstall<typeof TimeSelect> =\n withInstall(TimeSelect)\nexport default ElTimeSelect\n\nexport * from './src/time-select'\n"],"mappings":";;;;AAKA,MAAa,eACX,YAAYA,oBAAW"}
|
||||
147
frontend/node_modules/element-plus/es/components/time-select/src/time-select.d.ts
generated
vendored
Normal file
147
frontend/node_modules/element-plus/es/components/time-select/src/time-select.d.ts
generated
vendored
Normal file
@@ -0,0 +1,147 @@
|
||||
import { IconPropType } from "../../../utils/vue/icon.js";
|
||||
import { EpPropFinalized, EpPropMergeType } from "../../../utils/vue/props/types.js";
|
||||
import { ComponentSize } from "../../../constants/size.js";
|
||||
import { PopperEffect } from "../../popper/src/popper.js";
|
||||
import _default from "./time-select.vue.js";
|
||||
import { UseEmptyValuesProps } from "../../../hooks/use-empty-values/index.js";
|
||||
import * as _$vue from "vue";
|
||||
import { CSSProperties, Component, ExtractPublicPropTypes } from "vue";
|
||||
|
||||
//#region ../../packages/components/time-select/src/time-select.d.ts
|
||||
interface TimeSelectProps extends UseEmptyValuesProps {
|
||||
/**
|
||||
* @description set format of time
|
||||
*/
|
||||
format?: string;
|
||||
/**
|
||||
* @description binding value
|
||||
*/
|
||||
modelValue?: string | null;
|
||||
/**
|
||||
* @description whether TimeSelect is disabled
|
||||
*/
|
||||
disabled?: boolean;
|
||||
/**
|
||||
* @description whether the input is editable
|
||||
*/
|
||||
editable?: boolean;
|
||||
/**
|
||||
* @description Tooltip theme, built-in theme: `dark` / `light`
|
||||
*/
|
||||
effect?: PopperEffect;
|
||||
/**
|
||||
* @description whether to show clear button
|
||||
*/
|
||||
clearable?: boolean;
|
||||
/**
|
||||
* @description size of Input
|
||||
*/
|
||||
size?: ComponentSize;
|
||||
/**
|
||||
* @description placeholder in non-range mode
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* @description start time
|
||||
*/
|
||||
start?: string;
|
||||
/**
|
||||
* @description end time
|
||||
*/
|
||||
end?: string;
|
||||
/**
|
||||
* @description time step
|
||||
*/
|
||||
step?: string;
|
||||
/**
|
||||
* @description minimum time, any time before this time will be disabled
|
||||
*/
|
||||
minTime?: string | null;
|
||||
/**
|
||||
* @description maximum time, any time after this time will be disabled
|
||||
*/
|
||||
maxTime?: string | null;
|
||||
/**
|
||||
* @description whether `end` is included in options
|
||||
*/
|
||||
includeEndTime?: boolean;
|
||||
/**
|
||||
* @description same as `name` in native input
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* @description custom prefix icon component
|
||||
*/
|
||||
prefixIcon?: IconPropType;
|
||||
/**
|
||||
* @description custom clear icon component
|
||||
*/
|
||||
clearIcon?: IconPropType;
|
||||
/**
|
||||
* @description custom class name for TimeSelect's dropdown
|
||||
*/
|
||||
popperClass?: string;
|
||||
/**
|
||||
* @description custom style for TimeSelect's dropdown
|
||||
*/
|
||||
popperStyle?: string | CSSProperties;
|
||||
}
|
||||
declare const DEFAULT_STEP = "00:30";
|
||||
/**
|
||||
* @deprecated Removed after 3.0.0, Use `TimeSelectProps` instead.
|
||||
*/
|
||||
declare const timeSelectProps: {
|
||||
readonly emptyValues: ArrayConstructor;
|
||||
readonly valueOnClear: 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)) | null)[], unknown, unknown, undefined, boolean>;
|
||||
readonly format: EpPropFinalized<StringConstructor, unknown, unknown, "HH:mm", boolean>;
|
||||
readonly modelValue: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | (((new (...args: any[]) => string) | (() => string | null)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
||||
readonly editable: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly effect: EpPropFinalized<(new (...args: any[]) => string) | (() => PopperEffect) | (((new (...args: any[]) => string) | (() => PopperEffect)) | null)[], unknown, unknown, "light", boolean>;
|
||||
readonly clearable: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly size: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly placeholder: StringConstructor;
|
||||
readonly start: EpPropFinalized<StringConstructor, unknown, unknown, "09:00", boolean>;
|
||||
readonly end: EpPropFinalized<StringConstructor, unknown, unknown, "18:00", boolean>;
|
||||
readonly step: EpPropFinalized<StringConstructor, unknown, unknown, "00:30", boolean>;
|
||||
readonly minTime: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | (((new (...args: any[]) => string) | (() => string | null)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly maxTime: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | (((new (...args: any[]) => string) | (() => string | null)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly includeEndTime: BooleanConstructor;
|
||||
readonly name: StringConstructor;
|
||||
readonly prefixIcon: EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown, () => _$vue.DefineComponent<{}, void, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>, boolean>;
|
||||
readonly clearIcon: EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown, () => _$vue.DefineComponent<{}, void, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>, boolean>;
|
||||
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly popperStyle: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string | CSSProperties) | (() => string | CSSProperties) | (((new (...args: any[]) => string | CSSProperties) | (() => string | CSSProperties)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* @deprecated Removed after 3.0.0, Use `TimeSelectProps` instead.
|
||||
*/
|
||||
type TimeSelectPropsPublic = ExtractPublicPropTypes<typeof timeSelectProps>;
|
||||
type TimeSelectInstance = InstanceType<typeof _default> & unknown;
|
||||
//#endregion
|
||||
export { DEFAULT_STEP, TimeSelectInstance, TimeSelectProps, TimeSelectPropsPublic, timeSelectProps };
|
||||
125
frontend/node_modules/element-plus/es/components/time-select/src/time-select.mjs
generated
vendored
Normal file
125
frontend/node_modules/element-plus/es/components/time-select/src/time-select.mjs
generated
vendored
Normal file
@@ -0,0 +1,125 @@
|
||||
import { buildProps, definePropType } from "../../../utils/vue/props/runtime.mjs";
|
||||
import { useSizeProp } from "../../../hooks/use-size/index.mjs";
|
||||
import { useEmptyValuesProps } from "../../../hooks/use-empty-values/index.mjs";
|
||||
import { CircleClose, Clock } from "@element-plus/icons-vue";
|
||||
//#region ../../packages/components/time-select/src/time-select.ts
|
||||
const DEFAULT_STEP = "00:30";
|
||||
/**
|
||||
* @deprecated Removed after 3.0.0, Use `TimeSelectProps` instead.
|
||||
*/
|
||||
const timeSelectProps = buildProps({
|
||||
/**
|
||||
* @description set format of time
|
||||
*/
|
||||
format: {
|
||||
type: String,
|
||||
default: "HH:mm"
|
||||
},
|
||||
/**
|
||||
* @description binding value
|
||||
*/
|
||||
modelValue: { type: definePropType(String) },
|
||||
/**
|
||||
* @description whether TimeSelect is disabled
|
||||
*/
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: void 0
|
||||
},
|
||||
/**
|
||||
* @description whether the input is editable
|
||||
*/
|
||||
editable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
/**
|
||||
* @description Tooltip theme, built-in theme: `dark` / `light`
|
||||
*/
|
||||
effect: {
|
||||
type: definePropType(String),
|
||||
default: "light"
|
||||
},
|
||||
/**
|
||||
* @description whether to show clear button
|
||||
*/
|
||||
clearable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
/**
|
||||
* @description size of Input
|
||||
*/
|
||||
size: useSizeProp,
|
||||
/**
|
||||
* @description placeholder in non-range mode
|
||||
*/
|
||||
placeholder: String,
|
||||
/**
|
||||
* @description start time
|
||||
*/
|
||||
start: {
|
||||
type: String,
|
||||
default: "09:00"
|
||||
},
|
||||
/**
|
||||
* @description end time
|
||||
*/
|
||||
end: {
|
||||
type: String,
|
||||
default: "18:00"
|
||||
},
|
||||
/**
|
||||
* @description time step
|
||||
*/
|
||||
step: {
|
||||
type: String,
|
||||
default: DEFAULT_STEP
|
||||
},
|
||||
/**
|
||||
* @description minimum time, any time before this time will be disabled
|
||||
*/
|
||||
minTime: { type: definePropType(String) },
|
||||
/**
|
||||
* @description maximum time, any time after this time will be disabled
|
||||
*/
|
||||
maxTime: { type: definePropType(String) },
|
||||
/**
|
||||
* @description whether `end` is included in options
|
||||
*/
|
||||
includeEndTime: Boolean,
|
||||
/**
|
||||
* @description same as `name` in native input
|
||||
*/
|
||||
name: String,
|
||||
/**
|
||||
* @description custom prefix icon component
|
||||
*/
|
||||
prefixIcon: {
|
||||
type: definePropType([String, Object]),
|
||||
default: () => Clock
|
||||
},
|
||||
/**
|
||||
* @description custom clear icon component
|
||||
*/
|
||||
clearIcon: {
|
||||
type: definePropType([String, Object]),
|
||||
default: () => CircleClose
|
||||
},
|
||||
/**
|
||||
* @description custom class name for TimeSelect's dropdown
|
||||
*/
|
||||
popperClass: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
/**
|
||||
* @description custom style for TimeSelect's dropdown
|
||||
*/
|
||||
popperStyle: { type: definePropType([String, Object]) },
|
||||
...useEmptyValuesProps
|
||||
});
|
||||
//#endregion
|
||||
export { DEFAULT_STEP, timeSelectProps };
|
||||
|
||||
//# sourceMappingURL=time-select.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-select/src/time-select.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-select/src/time-select.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
45
frontend/node_modules/element-plus/es/components/time-select/src/time-select.vue.d.ts
generated
vendored
Normal file
45
frontend/node_modules/element-plus/es/components/time-select/src/time-select.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
import { IconPropType } from "../../../utils/vue/icon.js";
|
||||
import { PopperEffect } from "../../popper/src/popper.js";
|
||||
import { TimeSelectProps } from "./time-select.js";
|
||||
import * as _$vue from "vue";
|
||||
|
||||
//#region ../../packages/components/time-select/src/time-select.vue.d.ts
|
||||
declare const __VLS_export: _$vue.DefineComponent<TimeSelectProps, {
|
||||
/**
|
||||
* @description blur the Input component
|
||||
*/
|
||||
blur: () => void;
|
||||
/**
|
||||
* @description focus the Input component
|
||||
*/
|
||||
focus: () => void;
|
||||
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
||||
clear: (...args: any[]) => void;
|
||||
"update:modelValue": (...args: any[]) => void;
|
||||
change: (...args: any[]) => void;
|
||||
focus: (...args: any[]) => void;
|
||||
blur: (...args: any[]) => void;
|
||||
}, string, _$vue.PublicProps, Readonly<TimeSelectProps> & Readonly<{
|
||||
onClear?: ((...args: any[]) => any) | undefined;
|
||||
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
||||
onChange?: ((...args: any[]) => any) | undefined;
|
||||
onFocus?: ((...args: any[]) => any) | undefined;
|
||||
onBlur?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
disabled: boolean;
|
||||
effect: PopperEffect;
|
||||
clearable: boolean;
|
||||
clearIcon: IconPropType;
|
||||
prefixIcon: IconPropType;
|
||||
end: string;
|
||||
start: string;
|
||||
popperClass: string;
|
||||
popperStyle: string | _$vue.CSSProperties;
|
||||
format: string;
|
||||
valueOnClear: string | number | boolean | Function | null;
|
||||
step: string;
|
||||
editable: boolean;
|
||||
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
||||
declare const _default: typeof __VLS_export;
|
||||
//#endregion
|
||||
export { _default as default };
|
||||
158
frontend/node_modules/element-plus/es/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.mjs
generated
vendored
Normal file
158
frontend/node_modules/element-plus/es/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.mjs
generated
vendored
Normal file
@@ -0,0 +1,158 @@
|
||||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from "../../../constants/event.mjs";
|
||||
import { debugWarn } from "../../../utils/error.mjs";
|
||||
import { useLocale } from "../../../hooks/use-locale/index.mjs";
|
||||
import { useNamespace } from "../../../hooks/use-namespace/index.mjs";
|
||||
import { ElIcon } from "../../icon/index.mjs";
|
||||
import { useFormDisabled } from "../../form/src/hooks/use-form-common-props.mjs";
|
||||
import { ElSelect } from "../../select/index.mjs";
|
||||
import { DEFAULT_STEP, timeSelectProps } from "./time-select.mjs";
|
||||
import { compareTime, formatTime, nextTime, parseTime } from "./utils.mjs";
|
||||
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineComponent, normalizeClass, openBlock, ref, renderList, resolveDynamicComponent, unref, withCtx } from "vue";
|
||||
import dayjs from "dayjs";
|
||||
import customParseFormat from "dayjs/plugin/customParseFormat.js";
|
||||
//#region ../../packages/components/time-select/src/time-select.vue?vue&type=script&setup=true&lang.ts
|
||||
var time_select_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
||||
name: "ElTimeSelect",
|
||||
__name: "time-select",
|
||||
props: timeSelectProps,
|
||||
emits: [
|
||||
CHANGE_EVENT,
|
||||
"blur",
|
||||
"focus",
|
||||
"clear",
|
||||
UPDATE_MODEL_EVENT
|
||||
],
|
||||
setup(__props, { expose: __expose }) {
|
||||
dayjs.extend(customParseFormat);
|
||||
const { Option: ElOption } = ElSelect;
|
||||
const props = __props;
|
||||
const nsInput = useNamespace("input");
|
||||
const select = ref();
|
||||
const _disabled = useFormDisabled();
|
||||
const { lang } = useLocale();
|
||||
const value = computed(() => props.modelValue);
|
||||
const start = computed(() => {
|
||||
const time = parseTime(props.start);
|
||||
return time ? formatTime(time) : null;
|
||||
});
|
||||
const end = computed(() => {
|
||||
const time = parseTime(props.end);
|
||||
return time ? formatTime(time) : null;
|
||||
});
|
||||
const minTime = computed(() => {
|
||||
const time = parseTime(props.minTime || "");
|
||||
return time ? formatTime(time) : null;
|
||||
});
|
||||
const maxTime = computed(() => {
|
||||
const time = parseTime(props.maxTime || "");
|
||||
return time ? formatTime(time) : null;
|
||||
});
|
||||
const step = computed(() => {
|
||||
const time = parseTime(props.step);
|
||||
const isInvalidStep = !time || time.hours < 0 || time.minutes < 0 || Number.isNaN(time.hours) || Number.isNaN(time.minutes) || time.hours === 0 && time.minutes === 0;
|
||||
if (isInvalidStep) debugWarn("ElTimeSelect", `invalid step, fallback to default step (${DEFAULT_STEP}).`);
|
||||
return !isInvalidStep ? formatTime(time) : DEFAULT_STEP;
|
||||
});
|
||||
const items = computed(() => {
|
||||
const result = [];
|
||||
const push = (formattedValue, rawValue) => {
|
||||
result.push({
|
||||
value: formattedValue,
|
||||
rawValue,
|
||||
disabled: compareTime(rawValue, minTime.value || "-1:-1") <= 0 || compareTime(rawValue, maxTime.value || "100:100") >= 0
|
||||
});
|
||||
};
|
||||
if (props.start && props.end && props.step) {
|
||||
let current = start.value;
|
||||
let currentTime;
|
||||
while (current && end.value && compareTime(current, end.value) <= 0) {
|
||||
currentTime = dayjs(current, "HH:mm").locale(lang.value).format(props.format);
|
||||
push(currentTime, current);
|
||||
current = nextTime(current, step.value);
|
||||
}
|
||||
if (props.includeEndTime && end.value && result[result.length - 1]?.rawValue !== end.value) push(dayjs(end.value, "HH:mm").locale(lang.value).format(props.format), end.value);
|
||||
}
|
||||
return result;
|
||||
});
|
||||
const blur = () => {
|
||||
select.value?.blur?.();
|
||||
};
|
||||
const focus = () => {
|
||||
select.value?.focus?.();
|
||||
};
|
||||
__expose({
|
||||
/**
|
||||
* @description blur the Input component
|
||||
*/
|
||||
blur,
|
||||
/**
|
||||
* @description focus the Input component
|
||||
*/
|
||||
focus
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createBlock(unref(ElSelect), {
|
||||
ref_key: "select",
|
||||
ref: select,
|
||||
name: __props.name,
|
||||
"model-value": value.value,
|
||||
disabled: unref(_disabled),
|
||||
clearable: __props.clearable,
|
||||
"clear-icon": __props.clearIcon,
|
||||
size: __props.size,
|
||||
effect: __props.effect,
|
||||
placeholder: __props.placeholder,
|
||||
"default-first-option": "",
|
||||
filterable: __props.editable,
|
||||
"empty-values": __props.emptyValues,
|
||||
"value-on-clear": __props.valueOnClear,
|
||||
"popper-class": __props.popperClass,
|
||||
"popper-style": __props.popperStyle,
|
||||
"onUpdate:modelValue": _cache[0] || (_cache[0] = (event) => _ctx.$emit(unref("update:modelValue"), event)),
|
||||
onChange: _cache[1] || (_cache[1] = (event) => _ctx.$emit(unref("change"), event)),
|
||||
onBlur: _cache[2] || (_cache[2] = (event) => _ctx.$emit("blur", event)),
|
||||
onFocus: _cache[3] || (_cache[3] = (event) => _ctx.$emit("focus", event)),
|
||||
onClear: _cache[4] || (_cache[4] = () => _ctx.$emit("clear"))
|
||||
}, {
|
||||
prefix: withCtx(() => [__props.prefixIcon ? (openBlock(), createBlock(unref(ElIcon), {
|
||||
key: 0,
|
||||
class: normalizeClass(unref(nsInput).e("prefix-icon"))
|
||||
}, {
|
||||
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(__props.prefixIcon)))]),
|
||||
_: 1
|
||||
}, 8, ["class"])) : createCommentVNode("v-if", true)]),
|
||||
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item) => {
|
||||
return openBlock(), createBlock(unref(ElOption), {
|
||||
key: item.value,
|
||||
label: item.value,
|
||||
value: item.value,
|
||||
disabled: item.disabled
|
||||
}, null, 8, [
|
||||
"label",
|
||||
"value",
|
||||
"disabled"
|
||||
]);
|
||||
}), 128))]),
|
||||
_: 1
|
||||
}, 8, [
|
||||
"name",
|
||||
"model-value",
|
||||
"disabled",
|
||||
"clearable",
|
||||
"clear-icon",
|
||||
"size",
|
||||
"effect",
|
||||
"placeholder",
|
||||
"filterable",
|
||||
"empty-values",
|
||||
"value-on-clear",
|
||||
"popper-class",
|
||||
"popper-style"
|
||||
]);
|
||||
};
|
||||
}
|
||||
});
|
||||
//#endregion
|
||||
export { time_select_vue_vue_type_script_setup_true_lang_default as default };
|
||||
|
||||
//# sourceMappingURL=time-select.vue_vue_type_script_setup_true_lang.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
7
frontend/node_modules/element-plus/es/components/time-select/src/time-select2.mjs
generated
vendored
Normal file
7
frontend/node_modules/element-plus/es/components/time-select/src/time-select2.mjs
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import time_select_vue_vue_type_script_setup_true_lang_default from "./time-select.vue_vue_type_script_setup_true_lang.mjs";
|
||||
//#region ../../packages/components/time-select/src/time-select.vue
|
||||
var time_select_default = time_select_vue_vue_type_script_setup_true_lang_default;
|
||||
//#endregion
|
||||
export { time_select_default as default };
|
||||
|
||||
//# sourceMappingURL=time-select2.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-select/src/time-select2.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-select/src/time-select2.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
12
frontend/node_modules/element-plus/es/components/time-select/src/utils.d.ts
generated
vendored
Normal file
12
frontend/node_modules/element-plus/es/components/time-select/src/utils.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
//#region ../../packages/components/time-select/src/utils.d.ts
|
||||
interface Time {
|
||||
hours: number;
|
||||
minutes: number;
|
||||
}
|
||||
declare const parseTime: (time: string) => null | Time;
|
||||
declare const compareTime: (time1: string, time2: string) => number;
|
||||
declare const padTime: (time: number | string) => string;
|
||||
declare const formatTime: (time: Time) => string;
|
||||
declare const nextTime: (time: string, step: string) => string;
|
||||
//#endregion
|
||||
export { compareTime, formatTime, nextTime, padTime, parseTime };
|
||||
51
frontend/node_modules/element-plus/es/components/time-select/src/utils.mjs
generated
vendored
Normal file
51
frontend/node_modules/element-plus/es/components/time-select/src/utils.mjs
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
//#region ../../packages/components/time-select/src/utils.ts
|
||||
const parseTime = (time) => {
|
||||
const values = (time || "").split(":");
|
||||
if (values.length >= 2) {
|
||||
let hours = Number.parseInt(values[0], 10);
|
||||
const minutes = Number.parseInt(values[1], 10);
|
||||
const timeUpper = time.toUpperCase();
|
||||
if (timeUpper.includes("AM") && hours === 12) hours = 0;
|
||||
else if (timeUpper.includes("PM") && hours !== 12) hours += 12;
|
||||
return {
|
||||
hours,
|
||||
minutes
|
||||
};
|
||||
}
|
||||
return null;
|
||||
};
|
||||
const compareTime = (time1, time2) => {
|
||||
const value1 = parseTime(time1);
|
||||
if (!value1) return -1;
|
||||
const value2 = parseTime(time2);
|
||||
if (!value2) return -1;
|
||||
const minutes1 = value1.minutes + value1.hours * 60;
|
||||
const minutes2 = value2.minutes + value2.hours * 60;
|
||||
if (minutes1 === minutes2) return 0;
|
||||
return minutes1 > minutes2 ? 1 : -1;
|
||||
};
|
||||
const padTime = (time) => {
|
||||
return `${time}`.padStart(2, "0");
|
||||
};
|
||||
const formatTime = (time) => {
|
||||
return `${padTime(time.hours)}:${padTime(time.minutes)}`;
|
||||
};
|
||||
const nextTime = (time, step) => {
|
||||
const timeValue = parseTime(time);
|
||||
if (!timeValue) return "";
|
||||
const stepValue = parseTime(step);
|
||||
if (!stepValue) return "";
|
||||
const next = {
|
||||
hours: timeValue.hours,
|
||||
minutes: timeValue.minutes
|
||||
};
|
||||
next.minutes += stepValue.minutes;
|
||||
next.hours += stepValue.hours;
|
||||
next.hours += Math.floor(next.minutes / 60);
|
||||
next.minutes = next.minutes % 60;
|
||||
return formatTime(next);
|
||||
};
|
||||
//#endregion
|
||||
export { compareTime, formatTime, nextTime, padTime, parseTime };
|
||||
|
||||
//# sourceMappingURL=utils.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/time-select/src/utils.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/time-select/src/utils.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"utils.mjs","names":[],"sources":["../../../../../../packages/components/time-select/src/utils.ts"],"sourcesContent":["interface Time {\n hours: number\n minutes: number\n}\n\nexport const parseTime = (time: string): null | Time => {\n const values = (time || '').split(':')\n if (values.length >= 2) {\n let hours = Number.parseInt(values[0], 10)\n const minutes = Number.parseInt(values[1], 10)\n const timeUpper = time.toUpperCase()\n if (timeUpper.includes('AM') && hours === 12) {\n hours = 0\n } else if (timeUpper.includes('PM') && hours !== 12) {\n hours += 12\n }\n return {\n hours,\n minutes,\n }\n }\n\n return null\n}\n\nexport const compareTime = (time1: string, time2: string): number => {\n const value1 = parseTime(time1)\n if (!value1) return -1\n const value2 = parseTime(time2)\n if (!value2) return -1\n const minutes1 = value1.minutes + value1.hours * 60\n const minutes2 = value2.minutes + value2.hours * 60\n if (minutes1 === minutes2) {\n return 0\n }\n return minutes1 > minutes2 ? 1 : -1\n}\n\nexport const padTime = (time: number | string) => {\n return `${time}`.padStart(2, '0')\n}\nexport const formatTime = (time: Time): string => {\n return `${padTime(time.hours)}:${padTime(time.minutes)}`\n}\n\nexport const nextTime = (time: string, step: string): string => {\n const timeValue = parseTime(time)\n if (!timeValue) return ''\n\n const stepValue = parseTime(step)\n if (!stepValue) return ''\n\n const next = {\n hours: timeValue.hours,\n minutes: timeValue.minutes,\n }\n next.minutes += stepValue.minutes\n next.hours += stepValue.hours\n next.hours += Math.floor(next.minutes / 60)\n next.minutes = next.minutes % 60\n return formatTime(next)\n}\n"],"mappings":";AAKA,MAAa,aAAa,SAA8B;CACtD,MAAM,UAAU,QAAQ,IAAI,MAAM,IAAI;CACtC,IAAI,OAAO,UAAU,GAAG;EACtB,IAAI,QAAQ,OAAO,SAAS,OAAO,IAAI,GAAG;EAC1C,MAAM,UAAU,OAAO,SAAS,OAAO,IAAI,GAAG;EAC9C,MAAM,YAAY,KAAK,aAAa;EACpC,IAAI,UAAU,SAAS,KAAK,IAAI,UAAU,IACxC,QAAQ;OACH,IAAI,UAAU,SAAS,KAAK,IAAI,UAAU,IAC/C,SAAS;EAEX,OAAO;GACL;GACA;GACD;;CAGH,OAAO;;AAGT,MAAa,eAAe,OAAe,UAA0B;CACnE,MAAM,SAAS,UAAU,MAAM;CAC/B,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,SAAS,UAAU,MAAM;CAC/B,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,WAAW,OAAO,UAAU,OAAO,QAAQ;CACjD,MAAM,WAAW,OAAO,UAAU,OAAO,QAAQ;CACjD,IAAI,aAAa,UACf,OAAO;CAET,OAAO,WAAW,WAAW,IAAI;;AAGnC,MAAa,WAAW,SAA0B;CAChD,OAAO,GAAG,OAAO,SAAS,GAAG,IAAI;;AAEnC,MAAa,cAAc,SAAuB;CAChD,OAAO,GAAG,QAAQ,KAAK,MAAM,CAAC,GAAG,QAAQ,KAAK,QAAQ;;AAGxD,MAAa,YAAY,MAAc,SAAyB;CAC9D,MAAM,YAAY,UAAU,KAAK;CACjC,IAAI,CAAC,WAAW,OAAO;CAEvB,MAAM,YAAY,UAAU,KAAK;CACjC,IAAI,CAAC,WAAW,OAAO;CAEvB,MAAM,OAAO;EACX,OAAO,UAAU;EACjB,SAAS,UAAU;EACpB;CACD,KAAK,WAAW,UAAU;CAC1B,KAAK,SAAS,UAAU;CACxB,KAAK,SAAS,KAAK,MAAM,KAAK,UAAU,GAAG;CAC3C,KAAK,UAAU,KAAK,UAAU;CAC9B,OAAO,WAAW,KAAK"}
|
||||
6
frontend/node_modules/element-plus/es/components/time-select/style/css.mjs
generated
vendored
Normal file
6
frontend/node_modules/element-plus/es/components/time-select/style/css.mjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import "../../base/style/css.mjs";
|
||||
import "../../input/style/css.mjs";
|
||||
import "../../scrollbar/style/css.mjs";
|
||||
import "../../popper/style/css.mjs";
|
||||
import "../../select/style/css.mjs";
|
||||
import "element-plus/theme-chalk/el-time-select.css";
|
||||
6
frontend/node_modules/element-plus/es/components/time-select/style/index.mjs
generated
vendored
Normal file
6
frontend/node_modules/element-plus/es/components/time-select/style/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import "../../base/style/index.mjs";
|
||||
import "../../input/style/index.mjs";
|
||||
import "../../scrollbar/style/index.mjs";
|
||||
import "../../popper/style/index.mjs";
|
||||
import "../../select/style/index.mjs";
|
||||
import "element-plus/theme-chalk/src/time-select.scss";
|
||||
Reference in New Issue
Block a user