完全跑通1.0版本
This commit is contained in:
8
frontend/node_modules/element-plus/lib/components/time-select/index.d.ts
generated
vendored
Normal file
8
frontend/node_modules/element-plus/lib/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 };
|
||||
16
frontend/node_modules/element-plus/lib/components/time-select/index.js
generated
vendored
Normal file
16
frontend/node_modules/element-plus/lib/components/time-select/index.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
Object.defineProperties(exports, {
|
||||
__esModule: { value: true },
|
||||
[Symbol.toStringTag]: { value: "Module" }
|
||||
});
|
||||
const require_install = require("../../utils/vue/install.js");
|
||||
const require_time_select = require("./src/time-select.js");
|
||||
const require_time_select$1 = require("./src/time-select2.js");
|
||||
//#region ../../packages/components/time-select/index.ts
|
||||
const ElTimeSelect = require_install.withInstall(require_time_select$1.default);
|
||||
//#endregion
|
||||
exports.DEFAULT_STEP = require_time_select.DEFAULT_STEP;
|
||||
exports.ElTimeSelect = ElTimeSelect;
|
||||
exports.default = ElTimeSelect;
|
||||
exports.timeSelectProps = require_time_select.timeSelectProps;
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/time-select/index.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/time-select/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","names":["withInstall","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,eACXA,gBAAAA,YAAYC,sBAAAA,QAAW"}
|
||||
147
frontend/node_modules/element-plus/lib/components/time-select/src/time-select.d.ts
generated
vendored
Normal file
147
frontend/node_modules/element-plus/lib/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 };
|
||||
128
frontend/node_modules/element-plus/lib/components/time-select/src/time-select.js
generated
vendored
Normal file
128
frontend/node_modules/element-plus/lib/components/time-select/src/time-select.js
generated
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
require("../../../_virtual/_rolldown/runtime.js");
|
||||
const require_runtime$1 = require("../../../utils/vue/props/runtime.js");
|
||||
const require_index = require("../../../hooks/use-size/index.js");
|
||||
const require_index$1 = require("../../../hooks/use-empty-values/index.js");
|
||||
let _element_plus_icons_vue = require("@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 = require_runtime$1.buildProps({
|
||||
/**
|
||||
* @description set format of time
|
||||
*/
|
||||
format: {
|
||||
type: String,
|
||||
default: "HH:mm"
|
||||
},
|
||||
/**
|
||||
* @description binding value
|
||||
*/
|
||||
modelValue: { type: require_runtime$1.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: require_runtime$1.definePropType(String),
|
||||
default: "light"
|
||||
},
|
||||
/**
|
||||
* @description whether to show clear button
|
||||
*/
|
||||
clearable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
/**
|
||||
* @description size of Input
|
||||
*/
|
||||
size: require_index.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: require_runtime$1.definePropType(String) },
|
||||
/**
|
||||
* @description maximum time, any time after this time will be disabled
|
||||
*/
|
||||
maxTime: { type: require_runtime$1.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: require_runtime$1.definePropType([String, Object]),
|
||||
default: () => _element_plus_icons_vue.Clock
|
||||
},
|
||||
/**
|
||||
* @description custom clear icon component
|
||||
*/
|
||||
clearIcon: {
|
||||
type: require_runtime$1.definePropType([String, Object]),
|
||||
default: () => _element_plus_icons_vue.CircleClose
|
||||
},
|
||||
/**
|
||||
* @description custom class name for TimeSelect's dropdown
|
||||
*/
|
||||
popperClass: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
/**
|
||||
* @description custom style for TimeSelect's dropdown
|
||||
*/
|
||||
popperStyle: { type: require_runtime$1.definePropType([String, Object]) },
|
||||
...require_index$1.useEmptyValuesProps
|
||||
});
|
||||
//#endregion
|
||||
exports.DEFAULT_STEP = DEFAULT_STEP;
|
||||
exports.timeSelectProps = timeSelectProps;
|
||||
|
||||
//# sourceMappingURL=time-select.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/time-select/src/time-select.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/time-select/src/time-select.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
45
frontend/node_modules/element-plus/lib/components/time-select/src/time-select.vue.d.ts
generated
vendored
Normal file
45
frontend/node_modules/element-plus/lib/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 };
|
||||
161
frontend/node_modules/element-plus/lib/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.js
generated
vendored
Normal file
161
frontend/node_modules/element-plus/lib/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.js
generated
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
|
||||
const require_event = require("../../../constants/event.js");
|
||||
const require_error = require("../../../utils/error.js");
|
||||
const require_index = require("../../../hooks/use-locale/index.js");
|
||||
const require_index$1 = require("../../../hooks/use-namespace/index.js");
|
||||
const require_index$2 = require("../../icon/index.js");
|
||||
const require_use_form_common_props = require("../../form/src/hooks/use-form-common-props.js");
|
||||
const require_index$3 = require("../../select/index.js");
|
||||
const require_time_select = require("./time-select.js");
|
||||
const require_utils = require("./utils.js");
|
||||
let vue = require("vue");
|
||||
let dayjs = require("dayjs");
|
||||
dayjs = require_runtime.__toESM(dayjs);
|
||||
let dayjs_plugin_customParseFormat_js = require("dayjs/plugin/customParseFormat.js");
|
||||
dayjs_plugin_customParseFormat_js = require_runtime.__toESM(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__ */ (0, vue.defineComponent)({
|
||||
name: "ElTimeSelect",
|
||||
__name: "time-select",
|
||||
props: require_time_select.timeSelectProps,
|
||||
emits: [
|
||||
require_event.CHANGE_EVENT,
|
||||
"blur",
|
||||
"focus",
|
||||
"clear",
|
||||
require_event.UPDATE_MODEL_EVENT
|
||||
],
|
||||
setup(__props, { expose: __expose }) {
|
||||
dayjs.default.extend(dayjs_plugin_customParseFormat_js.default);
|
||||
const { Option: ElOption } = require_index$3.ElSelect;
|
||||
const props = __props;
|
||||
const nsInput = require_index$1.useNamespace("input");
|
||||
const select = (0, vue.ref)();
|
||||
const _disabled = require_use_form_common_props.useFormDisabled();
|
||||
const { lang } = require_index.useLocale();
|
||||
const value = (0, vue.computed)(() => props.modelValue);
|
||||
const start = (0, vue.computed)(() => {
|
||||
const time = require_utils.parseTime(props.start);
|
||||
return time ? require_utils.formatTime(time) : null;
|
||||
});
|
||||
const end = (0, vue.computed)(() => {
|
||||
const time = require_utils.parseTime(props.end);
|
||||
return time ? require_utils.formatTime(time) : null;
|
||||
});
|
||||
const minTime = (0, vue.computed)(() => {
|
||||
const time = require_utils.parseTime(props.minTime || "");
|
||||
return time ? require_utils.formatTime(time) : null;
|
||||
});
|
||||
const maxTime = (0, vue.computed)(() => {
|
||||
const time = require_utils.parseTime(props.maxTime || "");
|
||||
return time ? require_utils.formatTime(time) : null;
|
||||
});
|
||||
const step = (0, vue.computed)(() => {
|
||||
const time = require_utils.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) require_error.debugWarn("ElTimeSelect", `invalid step, fallback to default step (${require_time_select.DEFAULT_STEP}).`);
|
||||
return !isInvalidStep ? require_utils.formatTime(time) : require_time_select.DEFAULT_STEP;
|
||||
});
|
||||
const items = (0, vue.computed)(() => {
|
||||
const result = [];
|
||||
const push = (formattedValue, rawValue) => {
|
||||
result.push({
|
||||
value: formattedValue,
|
||||
rawValue,
|
||||
disabled: require_utils.compareTime(rawValue, minTime.value || "-1:-1") <= 0 || require_utils.compareTime(rawValue, maxTime.value || "100:100") >= 0
|
||||
});
|
||||
};
|
||||
if (props.start && props.end && props.step) {
|
||||
let current = start.value;
|
||||
let currentTime;
|
||||
while (current && end.value && require_utils.compareTime(current, end.value) <= 0) {
|
||||
currentTime = (0, dayjs.default)(current, "HH:mm").locale(lang.value).format(props.format);
|
||||
push(currentTime, current);
|
||||
current = require_utils.nextTime(current, step.value);
|
||||
}
|
||||
if (props.includeEndTime && end.value && result[result.length - 1]?.rawValue !== end.value) push((0, dayjs.default)(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 (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_index$3.ElSelect), {
|
||||
ref_key: "select",
|
||||
ref: select,
|
||||
name: __props.name,
|
||||
"model-value": value.value,
|
||||
disabled: (0, vue.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((0, vue.unref)("update:modelValue"), event)),
|
||||
onChange: _cache[1] || (_cache[1] = (event) => _ctx.$emit((0, vue.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: (0, vue.withCtx)(() => [__props.prefixIcon ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_index$2.ElIcon), {
|
||||
key: 0,
|
||||
class: (0, vue.normalizeClass)((0, vue.unref)(nsInput).e("prefix-icon"))
|
||||
}, {
|
||||
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(__props.prefixIcon)))]),
|
||||
_: 1
|
||||
}, 8, ["class"])) : (0, vue.createCommentVNode)("v-if", true)]),
|
||||
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(items.value, (item) => {
|
||||
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.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
|
||||
exports.default = time_select_vue_vue_type_script_setup_true_lang_default;
|
||||
|
||||
//# sourceMappingURL=time-select.vue_vue_type_script_setup_true_lang.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
10
frontend/node_modules/element-plus/lib/components/time-select/src/time-select2.js
generated
vendored
Normal file
10
frontend/node_modules/element-plus/lib/components/time-select/src/time-select2.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
Object.defineProperties(exports, {
|
||||
__esModule: { value: true },
|
||||
[Symbol.toStringTag]: { value: "Module" }
|
||||
});
|
||||
//#region ../../packages/components/time-select/src/time-select.vue
|
||||
var time_select_default = require("./time-select.vue_vue_type_script_setup_true_lang.js").default;
|
||||
//#endregion
|
||||
exports.default = time_select_default;
|
||||
|
||||
//# sourceMappingURL=time-select2.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/time-select/src/time-select2.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/time-select/src/time-select2.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
12
frontend/node_modules/element-plus/lib/components/time-select/src/utils.d.ts
generated
vendored
Normal file
12
frontend/node_modules/element-plus/lib/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 };
|
||||
56
frontend/node_modules/element-plus/lib/components/time-select/src/utils.js
generated
vendored
Normal file
56
frontend/node_modules/element-plus/lib/components/time-select/src/utils.js
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
//#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
|
||||
exports.compareTime = compareTime;
|
||||
exports.formatTime = formatTime;
|
||||
exports.nextTime = nextTime;
|
||||
exports.padTime = padTime;
|
||||
exports.parseTime = parseTime;
|
||||
|
||||
//# sourceMappingURL=utils.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/time-select/src/utils.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/time-select/src/utils.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"utils.js","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"}
|
||||
7
frontend/node_modules/element-plus/lib/components/time-select/style/css.js
generated
vendored
Normal file
7
frontend/node_modules/element-plus/lib/components/time-select/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
require("../../base/style/css.js");
|
||||
require("../../input/style/css.js");
|
||||
require("../../scrollbar/style/css.js");
|
||||
require("../../popper/style/css.js");
|
||||
require("../../select/style/css.js");
|
||||
require("element-plus/theme-chalk/el-time-select.css");
|
||||
7
frontend/node_modules/element-plus/lib/components/time-select/style/index.js
generated
vendored
Normal file
7
frontend/node_modules/element-plus/lib/components/time-select/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
require("../../base/style/index.js");
|
||||
require("../../input/style/index.js");
|
||||
require("../../scrollbar/style/index.js");
|
||||
require("../../popper/style/index.js");
|
||||
require("../../select/style/index.js");
|
||||
require("element-plus/theme-chalk/src/time-select.scss");
|
||||
Reference in New Issue
Block a user