ep-craft 0.1.24 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/advancedFormat.js +4 -0
- package/dist/_virtual/customParseFormat.js +4 -0
- package/dist/_virtual/dayOfYear.js +4 -0
- package/dist/_virtual/isSameOrAfter.js +4 -0
- package/dist/_virtual/isSameOrBefore.js +4 -0
- package/dist/_virtual/localeData.js +4 -0
- package/dist/_virtual/weekOfYear.js +4 -0
- package/dist/_virtual/weekYear.js +4 -0
- package/dist/components/button/index.js +2 -1
- package/dist/components/date-picker/index.d.ts +4 -2
- package/dist/components/date-picker/index.js +9 -4
- package/dist/components/date-picker/src/date-picker.d.ts +435 -0
- package/dist/components/date-picker/src/date-picker.js +68 -0
- package/dist/components/date-picker/src/instance.d.ts +8 -0
- package/dist/components/date-picker/src/props.d.ts +205 -0
- package/dist/components/date-picker/src/props.js +21 -0
- package/dist/components/date-picker-panel/index.d.ts +8 -0
- package/dist/components/date-picker-panel/index.js +11 -0
- package/dist/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +187 -0
- package/dist/components/date-picker-panel/src/composables/use-basic-date-table.js +195 -0
- package/dist/components/date-picker-panel/src/composables/use-month-range-header.d.ts +16 -0
- package/dist/components/date-picker-panel/src/composables/use-month-range-header.js +41 -0
- package/dist/components/date-picker-panel/src/composables/use-panel-date-range.d.ts +29 -0
- package/dist/components/date-picker-panel/src/composables/use-panel-date-range.js +86 -0
- package/dist/components/date-picker-panel/src/composables/use-range-picker.d.ts +209 -0
- package/dist/components/date-picker-panel/src/composables/use-range-picker.js +102 -0
- package/dist/components/date-picker-panel/src/composables/use-shortcut.d.ts +9 -0
- package/dist/components/date-picker-panel/src/composables/use-shortcut.js +27 -0
- package/dist/components/date-picker-panel/src/composables/use-year-range-header.d.ts +16 -0
- package/dist/components/date-picker-panel/src/composables/use-year-range-header.js +35 -0
- package/dist/components/date-picker-panel/src/constants.d.ts +9 -0
- package/dist/components/date-picker-panel/src/constants.js +5 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-cell-render.d.ts +18 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-cell-render.js +39 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-date-table.vue.d.ts +100 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-date-table.vue.js +92 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-date-table2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-month-table.vue.d.ts +106 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-month-table.vue.js +164 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-month-table2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-year-table.vue.d.ts +106 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-year-table.vue.js +153 -0
- package/dist/components/date-picker-panel/src/date-picker-com/basic-year-table2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +89 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.js +550 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-date-pick2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +104 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.js +698 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-date-range2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +59 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.js +255 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-month-range2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +59 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.js +268 -0
- package/dist/components/date-picker-panel/src/date-picker-com/panel-year-range2.vue.js +4 -0
- package/dist/components/date-picker-panel/src/date-picker-panel.d.ts +143 -0
- package/dist/components/date-picker-panel/src/date-picker-panel.js +90 -0
- package/dist/components/date-picker-panel/src/instance.d.ts +2 -0
- package/dist/components/date-picker-panel/src/panel-utils.d.ts +414 -0
- package/dist/components/date-picker-panel/src/panel-utils.js +20 -0
- package/dist/components/date-picker-panel/src/props/basic-cell.d.ts +12 -0
- package/dist/components/date-picker-panel/src/props/basic-cell.js +14 -0
- package/dist/components/date-picker-panel/src/props/basic-date-table.d.ts +66 -0
- package/dist/components/date-picker-panel/src/props/basic-date-table.js +16 -0
- package/dist/components/date-picker-panel/src/props/basic-month-table.d.ts +47 -0
- package/dist/components/date-picker-panel/src/props/basic-month-table.js +14 -0
- package/dist/components/date-picker-panel/src/props/basic-year-table.d.ts +47 -0
- package/dist/components/date-picker-panel/src/props/basic-year-table.js +14 -0
- package/dist/components/date-picker-panel/src/props/date-picker-panel.d.ts +66 -0
- package/dist/components/date-picker-panel/src/props/date-picker-panel.js +129 -0
- package/dist/components/date-picker-panel/src/props/panel-date-pick.d.ts +29 -0
- package/dist/components/date-picker-panel/src/props/panel-date-pick.js +24 -0
- package/dist/components/date-picker-panel/src/props/panel-date-range.d.ts +29 -0
- package/dist/components/date-picker-panel/src/props/panel-date-range.js +14 -0
- package/dist/components/date-picker-panel/src/props/panel-month-range.d.ts +19 -0
- package/dist/components/date-picker-panel/src/props/panel-month-range.js +18 -0
- package/dist/components/date-picker-panel/src/props/panel-year-range.d.ts +19 -0
- package/dist/components/date-picker-panel/src/props/panel-year-range.js +18 -0
- package/dist/components/date-picker-panel/src/props/shared.d.ts +97 -0
- package/dist/components/date-picker-panel/src/props/shared.js +96 -0
- package/dist/components/date-picker-panel/src/types.d.ts +22 -0
- package/dist/components/date-picker-panel/src/utils.d.ts +38 -0
- package/dist/components/date-picker-panel/src/utils.js +84 -0
- package/dist/components/icon/index.js +6 -5
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +142 -140
- package/dist/components/input/EpInput.vue.d.ts +89 -0
- package/dist/components/input/EpInput.vue.js +553 -0
- package/dist/components/input/EpInput2.vue.js +4 -0
- package/dist/components/input/index.d.ts +5 -2
- package/dist/components/input/index.js +8 -4
- package/dist/components/input/input.d.ts +287 -0
- package/dist/components/input/input.js +249 -0
- package/dist/components/input/instance.d.ts +2 -0
- package/dist/components/input/utils.d.ts +7 -0
- package/dist/components/input/utils.js +74 -0
- package/dist/components/option/index.d.ts +3 -2
- package/dist/components/option/index.js +7 -4
- package/dist/components/option-group/index.d.ts +2 -2
- package/dist/components/option-group/index.js +3 -3
- package/dist/components/scrollbar/index.d.ts +2 -0
- package/dist/components/scrollbar/index.js +9 -3
- package/dist/components/scrollbar/src/scrollbar.d.ts +25 -0
- package/dist/components/scrollbar/src/scrollbar.js +16 -0
- package/dist/components/select/index.d.ts +4 -2
- package/dist/components/select/index.js +7 -4
- package/dist/components/select/select.d.ts +132 -0
- package/dist/components/select/select.js +316 -0
- package/dist/components/select/select.vue.d.ts +979 -0
- package/dist/components/select/select.vue.js +401 -0
- package/dist/components/select/select2.vue.js +155 -0
- package/dist/components/select/src/option-group.vue.d.ts +43 -0
- package/dist/components/select/src/option-group.vue.js +26 -0
- package/dist/components/select/src/option-group2.vue.js +65 -0
- package/dist/components/select/src/option.d.ts +17 -0
- package/dist/components/select/src/option.js +30 -0
- package/dist/components/select/src/option.vue.d.ts +73 -0
- package/dist/components/select/src/option.vue.js +28 -0
- package/dist/components/select/src/option2.vue.js +81 -0
- package/dist/components/select/src/options.d.ts +5 -0
- package/dist/components/select/src/options.js +30 -0
- package/dist/components/select/src/select-dropdown.vue.d.ts +25 -0
- package/dist/components/select/src/select-dropdown.vue.js +27 -0
- package/dist/components/select/src/select-dropdown2.vue.js +39 -0
- package/dist/components/select/src/token.d.ts +4 -0
- package/dist/components/select/src/token.js +5 -0
- package/dist/components/select/src/type.d.ts +67 -0
- package/dist/components/select/src/useOption.d.ts +10 -0
- package/dist/components/select/src/useOption.js +64 -0
- package/dist/components/select/src/useSelect.d.ts +159 -0
- package/dist/components/select/src/useSelect.js +483 -0
- package/dist/components/select-v2/src/select.types.d.ts +25 -0
- package/dist/components/select-v2/src/useProps.d.ts +32 -0
- package/dist/components/select-v2/src/useProps.js +29 -0
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tag/index.js +4 -3
- package/dist/components/time-picker/index.d.ts +15 -2
- package/dist/components/time-picker/index.js +32 -4
- package/dist/components/time-picker/src/common/picker-range-trigger.vue.d.ts +92 -0
- package/dist/components/time-picker/src/common/picker-range-trigger.vue.js +141 -0
- package/dist/components/time-picker/src/common/picker-range-trigger2.vue.js +4 -0
- package/dist/components/time-picker/src/common/picker.vue.d.ts +510 -0
- package/dist/components/time-picker/src/common/picker.vue.js +463 -0
- package/dist/components/time-picker/src/common/picker2.vue.js +4 -0
- package/dist/components/time-picker/src/common/props.d.ts +280 -0
- package/dist/components/time-picker/src/common/props.js +282 -0
- package/dist/components/time-picker/src/composables/use-common-picker.d.ts +42 -0
- package/dist/components/time-picker/src/composables/use-common-picker.js +62 -0
- package/dist/components/time-picker/src/composables/use-time-panel.d.ts +13 -0
- package/dist/components/time-picker/src/composables/use-time-panel.js +60 -0
- package/dist/components/time-picker/src/composables/use-time-picker.d.ts +300 -0
- package/dist/components/time-picker/src/composables/use-time-picker.js +45 -0
- package/dist/components/time-picker/src/constants.d.ts +23 -0
- package/dist/components/time-picker/src/constants.js +23 -0
- package/dist/components/time-picker/src/props/basic-time-spinner.d.ts +39 -0
- package/dist/components/time-picker/src/props/basic-time-spinner.js +31 -0
- package/dist/components/time-picker/src/props/panel-time-picker.d.ts +16 -0
- package/dist/components/time-picker/src/props/panel-time-picker.js +17 -0
- package/dist/components/time-picker/src/props/panel-time-range.d.ts +15 -0
- package/dist/components/time-picker/src/props/panel-time-range.js +16 -0
- package/dist/components/time-picker/src/props/shared.d.ts +31 -0
- package/dist/components/time-picker/src/props/shared.js +40 -0
- package/dist/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +82 -0
- package/dist/components/time-picker/src/time-picker-com/basic-time-spinner.vue.js +253 -0
- package/dist/components/time-picker/src/time-picker-com/basic-time-spinner2.vue.js +4 -0
- package/dist/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +37 -0
- package/dist/components/time-picker/src/time-picker-com/panel-time-pick.vue.js +127 -0
- package/dist/components/time-picker/src/time-picker-com/panel-time-pick2.vue.js +4 -0
- package/dist/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +35 -0
- package/dist/components/time-picker/src/time-picker-com/panel-time-range.vue.js +206 -0
- package/dist/components/time-picker/src/time-picker-com/panel-time-range2.vue.js +4 -0
- package/dist/components/time-picker/src/time-picker.d.ts +440 -0
- package/dist/components/time-picker/src/time-picker.js +68 -0
- package/dist/components/time-picker/src/utils.d.ts +14 -0
- package/dist/components/time-picker/src/utils.js +40 -0
- package/dist/components/tooltip/index.js +8 -7
- package/dist/constants/date.js +17 -0
- package/dist/constants/event.js +3 -2
- package/dist/constants/form.js +5 -0
- package/dist/directives/repeat-click/index.js +33 -0
- package/dist/ep-craft.js +150 -148
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/use-attrs/index.d.ts +7 -0
- package/dist/hooks/use-attrs/index.js +25 -0
- package/dist/hooks/use-calc-input-width/index.d.ts +7 -0
- package/dist/hooks/use-calc-input-width/index.js +19 -0
- package/dist/hooks/use-composition/index.d.ts +12 -0
- package/dist/hooks/use-composition/index.js +25 -0
- package/dist/hooks/use-cursor/index.d.ts +2 -0
- package/dist/hooks/use-cursor/index.js +36 -0
- package/dist/hooks/use-empty-values/index.js +29 -8
- package/dist/hooks/use-float-label/index.d.ts +29 -0
- package/dist/hooks/use-float-label/index.js +19 -0
- package/dist/hooks/use-focus-controller/index.d.ts +26 -0
- package/dist/hooks/use-focus-controller/index.js +41 -0
- package/dist/index.css +1 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js +54 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js +127 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/dayOfYear.js +19 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isSameOrAfter.js +18 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isSameOrBefore.js +18 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/localeData.js +82 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekOfYear.js +29 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekYear.js +19 -0
- package/dist/utils/arrays.js +5 -4
- package/dist/utils/dom/scroll.js +49 -35
- package/dist/utils/strings.js +7 -6
- package/dist/utils/types.js +19 -18
- package/dist/utils/vue/icon.js +15 -10
- package/dist/vendored-components.d.ts +1 -1
- package/dist/vendored-components.js +13 -5
- package/package.json +2 -1
- package/theme-chalk/src/float-label.scss +207 -0
- package/theme-chalk/src/index.scss +1 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { defineComponent as p, ref as s, provide as u, createVNode as t, mergeProps as c } from "vue";
|
|
2
|
+
import d from "dayjs";
|
|
3
|
+
import _ from "../../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js";
|
|
4
|
+
import { UPDATE_MODEL_EVENT as a } from "../../../constants/event.js";
|
|
5
|
+
import { PICKER_POPPER_OPTIONS_INJECTION_KEY as P, DEFAULT_FORMATS_TIME as E } from "./constants.js";
|
|
6
|
+
import O from "./common/picker.vue.js";
|
|
7
|
+
import T from "./time-picker-com/panel-time-pick.vue.js";
|
|
8
|
+
import v from "./time-picker-com/panel-time-range.vue.js";
|
|
9
|
+
import { timePickerDefaultProps as C } from "./common/props.js";
|
|
10
|
+
d.extend(_);
|
|
11
|
+
const A = /* @__PURE__ */ p({
|
|
12
|
+
name: "EpTimePicker",
|
|
13
|
+
install: null,
|
|
14
|
+
props: {
|
|
15
|
+
...C,
|
|
16
|
+
/**
|
|
17
|
+
* @description whether to pick a time range
|
|
18
|
+
*/
|
|
19
|
+
isRange: Boolean
|
|
20
|
+
},
|
|
21
|
+
emits: [a],
|
|
22
|
+
setup(r, m) {
|
|
23
|
+
const o = s(), [n, i] = r.isRange ? ["timerange", v] : ["time", T], l = (e) => m.emit(a, e);
|
|
24
|
+
return u(P, r.popperOptions), m.expose({
|
|
25
|
+
/**
|
|
26
|
+
* @description focus the Input component
|
|
27
|
+
*/
|
|
28
|
+
focus: () => {
|
|
29
|
+
var e;
|
|
30
|
+
(e = o.value) == null || e.focus();
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* @description blur the Input component
|
|
34
|
+
*/
|
|
35
|
+
blur: () => {
|
|
36
|
+
var e;
|
|
37
|
+
(e = o.value) == null || e.blur();
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* @description open the TimePicker popper
|
|
41
|
+
*/
|
|
42
|
+
handleOpen: () => {
|
|
43
|
+
var e;
|
|
44
|
+
(e = o.value) == null || e.handleOpen();
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* @description close the TimePicker popper
|
|
48
|
+
*/
|
|
49
|
+
handleClose: () => {
|
|
50
|
+
var e;
|
|
51
|
+
(e = o.value) == null || e.handleClose();
|
|
52
|
+
}
|
|
53
|
+
}), () => {
|
|
54
|
+
const e = r.format ?? E;
|
|
55
|
+
return t(O, c(r, {
|
|
56
|
+
ref: o,
|
|
57
|
+
type: n,
|
|
58
|
+
format: e,
|
|
59
|
+
"onUpdate:modelValue": l
|
|
60
|
+
}), {
|
|
61
|
+
default: (f) => t(i, f, null)
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export {
|
|
67
|
+
A as default
|
|
68
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import type { Dayjs } from 'dayjs';
|
|
3
|
+
import type { DateOrDates, DayOrDays } from './common/props';
|
|
4
|
+
export type TimeList = [number | undefined, number, undefined | number];
|
|
5
|
+
export declare const buildTimeList: (value: number, bound: number) => TimeList;
|
|
6
|
+
export declare const rangeArr: (n: number) => number[];
|
|
7
|
+
export declare const extractDateFormat: (format: string) => string;
|
|
8
|
+
export declare const extractTimeFormat: (format: string) => string;
|
|
9
|
+
export declare const dateEquals: (a: Date | unknown, b: Date | unknown) => boolean;
|
|
10
|
+
export declare const valueEquals: (a: Array<Date> | unknown, b: Array<Date> | unknown) => boolean;
|
|
11
|
+
export declare const parseDate: (date: string | number | Date, format: string | undefined, lang: string) => dayjs.Dayjs | undefined;
|
|
12
|
+
export declare const formatter: (date: string | number | Date | Dayjs, format: string | undefined, lang: string) => string | number | Date | dayjs.Dayjs;
|
|
13
|
+
export declare const makeList: (total: number, method?: () => number[]) => boolean[];
|
|
14
|
+
export declare const dayOrDaysToDate: (dayOrDays: DayOrDays) => DateOrDates;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import i from "dayjs";
|
|
2
|
+
import { isEmpty as u } from "../../../utils/types.js";
|
|
3
|
+
import "lodash-unified";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import { isArray as s, isDate as c } from "@vue/shared";
|
|
6
|
+
import "@element-plus/icons-vue";
|
|
7
|
+
import "vue";
|
|
8
|
+
const x = (r, t) => [
|
|
9
|
+
r > 0 ? r - 1 : void 0,
|
|
10
|
+
r,
|
|
11
|
+
r < t ? r + 1 : void 0
|
|
12
|
+
], A = (r) => Array.from(Array.from({ length: r }).keys()), T = (r) => r.replace(/\W?m{1,2}|\W?ZZ/g, "").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, "").trim(), I = (r) => r.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g, "").trim(), a = function(r, t) {
|
|
13
|
+
const e = c(r), n = c(t);
|
|
14
|
+
return e && n ? r.getTime() === t.getTime() : !e && !n ? r === t : !1;
|
|
15
|
+
}, E = function(r, t) {
|
|
16
|
+
const e = s(r), n = s(t);
|
|
17
|
+
return e && n ? r.length !== t.length ? !1 : r.every((o, f) => a(o, t[f])) : !e && !n ? a(r, t) : !1;
|
|
18
|
+
}, k = function(r, t, e) {
|
|
19
|
+
const n = u(t) || t === "x" ? i(r).locale(e) : i(r, t).locale(e);
|
|
20
|
+
return n.isValid() ? n : void 0;
|
|
21
|
+
}, q = function(r, t, e) {
|
|
22
|
+
return u(t) ? r : t === "x" ? +r : i(r).locale(e).format(t);
|
|
23
|
+
}, F = (r, t) => {
|
|
24
|
+
const e = [], n = t == null ? void 0 : t();
|
|
25
|
+
for (let o = 0; o < r; o++)
|
|
26
|
+
e.push((n == null ? void 0 : n.includes(o)) ?? !1);
|
|
27
|
+
return e;
|
|
28
|
+
}, L = (r) => s(r) ? r.map((t) => t.toDate()) : r.toDate();
|
|
29
|
+
export {
|
|
30
|
+
x as buildTimeList,
|
|
31
|
+
a as dateEquals,
|
|
32
|
+
L as dayOrDaysToDate,
|
|
33
|
+
T as extractDateFormat,
|
|
34
|
+
I as extractTimeFormat,
|
|
35
|
+
q as formatter,
|
|
36
|
+
F as makeList,
|
|
37
|
+
k as parseDate,
|
|
38
|
+
A as rangeArr,
|
|
39
|
+
E as valueEquals
|
|
40
|
+
};
|
|
@@ -6,19 +6,20 @@ import "@element-plus/icons-vue";
|
|
|
6
6
|
import "vue";
|
|
7
7
|
import { withInstall as p } from "../../utils/vue/install.js";
|
|
8
8
|
import o from "./src/tooltip.vue.js";
|
|
9
|
-
import { tooltipEmits as P, useTooltipModelToggle as
|
|
9
|
+
import { tooltipEmits as P, useTooltipModelToggle as d, useTooltipModelToggleEmits as x, useTooltipModelToggleProps as E } from "./src/tooltip.js";
|
|
10
10
|
import { useTooltipTriggerProps as h, useTooltipTriggerPropsDefaults as w } from "./src/trigger.js";
|
|
11
11
|
import { useTooltipContentProps as M, useTooltipContentPropsDefaults as C } from "./src/content.js";
|
|
12
|
-
const
|
|
12
|
+
const g = p(o), n = t(o, "ep-tooltip");
|
|
13
13
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
g as ElTooltip,
|
|
15
|
+
n as EpTooltip,
|
|
16
|
+
n as default,
|
|
16
17
|
P as tooltipEmits,
|
|
17
18
|
M as useTooltipContentProps,
|
|
18
19
|
C as useTooltipContentPropsDefaults,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
d as useTooltipModelToggle,
|
|
21
|
+
x as useTooltipModelToggleEmits,
|
|
22
|
+
E as useTooltipModelToggleProps,
|
|
22
23
|
h as useTooltipTriggerProps,
|
|
23
24
|
w as useTooltipTriggerPropsDefaults
|
|
24
25
|
};
|
package/dist/constants/event.js
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { isFunction as c } from "@vue/shared";
|
|
2
|
+
import "lodash-unified";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import "@element-plus/icons-vue";
|
|
5
|
+
import "vue";
|
|
6
|
+
const v = 100, E = 600, i = "_RepeatClick", T = {
|
|
7
|
+
beforeMount(t, n) {
|
|
8
|
+
const e = n.value, { interval: d = v, delay: m = E } = c(
|
|
9
|
+
e
|
|
10
|
+
) ? {} : e;
|
|
11
|
+
let o, r;
|
|
12
|
+
const u = () => c(e) ? e() : e.handler(), s = () => {
|
|
13
|
+
r && (clearTimeout(r), r = void 0), o && (clearInterval(o), o = void 0);
|
|
14
|
+
}, a = (l) => {
|
|
15
|
+
l.button === 0 && (s(), u(), document.addEventListener("mouseup", s, { once: !0 }), r = setTimeout(() => {
|
|
16
|
+
o = setInterval(() => {
|
|
17
|
+
u();
|
|
18
|
+
}, d);
|
|
19
|
+
}, m));
|
|
20
|
+
};
|
|
21
|
+
t[i] = { start: a, clear: s }, t.addEventListener("mousedown", a);
|
|
22
|
+
},
|
|
23
|
+
unmounted(t) {
|
|
24
|
+
if (!t[i]) return;
|
|
25
|
+
const { start: n, clear: e } = t[i];
|
|
26
|
+
n && t.removeEventListener("mousedown", n), e && (e(), document.removeEventListener("mouseup", e)), t[i] = null;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
E as REPEAT_DELAY,
|
|
31
|
+
v as REPEAT_INTERVAL,
|
|
32
|
+
T as vRepeatClick
|
|
33
|
+
};
|
package/dist/ep-craft.js
CHANGED
|
@@ -7,8 +7,8 @@ import { EpAffix as I } from "./components/affix/index.js";
|
|
|
7
7
|
import { EpAlert as g } from "./components/alert/index.js";
|
|
8
8
|
import { EpAnchor as k } from "./components/anchor/index.js";
|
|
9
9
|
import { EpAnchorLink as M } from "./components/anchor-link/index.js";
|
|
10
|
-
import { EpAside as
|
|
11
|
-
import { EpAutocomplete as
|
|
10
|
+
import { EpAside as D } from "./components/aside/index.js";
|
|
11
|
+
import { EpAutocomplete as w } from "./components/autocomplete/index.js";
|
|
12
12
|
import { EpAvatar as R } from "./components/avatar/index.js";
|
|
13
13
|
import { EpBacktop as G } from "./components/backtop/index.js";
|
|
14
14
|
import { EpBadge as V } from "./components/badge/index.js";
|
|
@@ -34,78 +34,79 @@ import { EpColorPicker as So } from "./components/color-picker/index.js";
|
|
|
34
34
|
import { EpConfigProvider as bo } from "./components/config-provider/index.js";
|
|
35
35
|
import { EpContainer as Po } from "./components/container/index.js";
|
|
36
36
|
import { EpCountdown as Bo } from "./components/countdown/index.js";
|
|
37
|
-
import { EpDatePicker as
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
37
|
+
import { EpDatePicker as ho } from "./components/date-picker/index.js";
|
|
38
|
+
import { EpDatePickerPanel as Ao } from "./components/date-picker-panel/index.js";
|
|
39
|
+
import { EpDescriptions as vo } from "./components/descriptions/index.js";
|
|
40
|
+
import { EpDescriptionsItem as Lo } from "./components/descriptions-item/index.js";
|
|
41
|
+
import { EpDialog as yo } from "./components/dialog/index.js";
|
|
42
|
+
import { EpDivider as No } from "./components/divider/index.js";
|
|
43
|
+
import { EpDrawer as jo } from "./components/drawer/index.js";
|
|
44
|
+
import { EpDropdown as Uo } from "./components/dropdown/index.js";
|
|
45
|
+
import { EpDropdownItem as _o } from "./components/dropdown-item/index.js";
|
|
46
|
+
import { EpDropdownMenu as zo } from "./components/dropdown-menu/index.js";
|
|
47
|
+
import { EpEmpty as Ko } from "./components/empty/index.js";
|
|
48
|
+
import { EpFooter as Xo } from "./components/footer/index.js";
|
|
49
|
+
import { EpForm as Zo } from "./components/form/index.js";
|
|
50
|
+
import { EpFormItem as or } from "./components/form-item/index.js";
|
|
51
|
+
import { EpHeader as pr } from "./components/header/index.js";
|
|
52
|
+
import { EpIcon as tr } from "./components/icon/index.js";
|
|
53
|
+
import { EpImage as fr } from "./components/image/index.js";
|
|
54
|
+
import { EpImageViewer as xr } from "./components/image-viewer/index.js";
|
|
55
|
+
import { EpInput as ir } from "./components/input/index.js";
|
|
56
|
+
import { EpInputNumber as lr } from "./components/input-number/index.js";
|
|
57
|
+
import { EpLink as cr } from "./components/link/index.js";
|
|
58
|
+
import { EpMain as dr } from "./components/main/index.js";
|
|
59
|
+
import { EpMention as Tr } from "./components/mention/index.js";
|
|
60
|
+
import { EpMenu as Sr } from "./components/menu/index.js";
|
|
61
|
+
import { EpMenuItem as br } from "./components/menu-item/index.js";
|
|
62
|
+
import { EpMenuItemGroup as Pr } from "./components/menu-item-group/index.js";
|
|
63
|
+
import { EpOption as Br } from "./components/option/index.js";
|
|
64
|
+
import { EpOptionGroup as hr } from "./components/option-group/index.js";
|
|
65
|
+
import { EpPageHeader as Ar } from "./components/page-header/index.js";
|
|
66
|
+
import { EpPagination as vr } from "./components/pagination/index.js";
|
|
67
|
+
import { EpPopconfirm as Lr } from "./components/popconfirm/index.js";
|
|
68
|
+
import { EpPopover as yr } from "./components/popover/index.js";
|
|
69
|
+
import { EpPopper as Nr } from "./components/popper/index.js";
|
|
70
|
+
import { EpProgress as jr } from "./components/progress/index.js";
|
|
71
|
+
import { EpRadio as Ur } from "./components/radio/index.js";
|
|
72
|
+
import { EpRadioButton as _r } from "./components/radio-button/index.js";
|
|
73
|
+
import { EpRadioGroup as zr } from "./components/radio-group/index.js";
|
|
74
|
+
import { EpRate as Kr } from "./components/rate/index.js";
|
|
75
|
+
import { EpResult as Xr } from "./components/result/index.js";
|
|
76
|
+
import { EpRow as Zr } from "./components/row/index.js";
|
|
77
|
+
import { EpScrollbar as op } from "./components/scrollbar/index.js";
|
|
78
|
+
import { EpSegmented as pp } from "./components/segmented/index.js";
|
|
79
|
+
import { EpSelect as tp } from "./components/select/index.js";
|
|
80
|
+
import { EpSelectV2 as fp } from "./components/select-v2/index.js";
|
|
81
|
+
import { EpSkeleton as xp } from "./components/skeleton/index.js";
|
|
82
|
+
import { EpSkeletonItem as ip } from "./components/skeleton-item/index.js";
|
|
83
|
+
import { EpSlider as lp } from "./components/slider/index.js";
|
|
84
|
+
import { EpSpace as cp } from "./components/space/index.js";
|
|
85
|
+
import { EpStatistic as dp } from "./components/statistic/index.js";
|
|
86
|
+
import { EpStep as Tp } from "./components/step/index.js";
|
|
87
|
+
import { EpSteps as Sp } from "./components/steps/index.js";
|
|
88
|
+
import { EpSubMenu as bp } from "./components/sub-menu/index.js";
|
|
89
|
+
import { EpSwitch as Pp } from "./components/switch/index.js";
|
|
90
|
+
import { EpTabPane as Bp } from "./components/tab-pane/index.js";
|
|
91
|
+
import { EpTable as hp } from "./components/table/index.js";
|
|
92
|
+
import { EpTableColumn as Ap } from "./components/table-column/index.js";
|
|
93
|
+
import { EpTableV2 as vp } from "./components/table-v2/index.js";
|
|
94
|
+
import { EpTabs as Lp } from "./components/tabs/index.js";
|
|
95
|
+
import { EpTag as yp } from "./components/tag/index.js";
|
|
96
|
+
import { EpText as Np } from "./components/text/index.js";
|
|
97
|
+
import { EpTimePicker as jp } from "./components/time-picker/index.js";
|
|
98
|
+
import { EpTimeSelect as Up } from "./components/time-select/index.js";
|
|
99
|
+
import { EpTimeline as _p } from "./components/timeline/index.js";
|
|
100
|
+
import { EpTimelineItem as zp } from "./components/timeline-item/index.js";
|
|
101
|
+
import { EpTooltip as Kp } from "./components/tooltip/index.js";
|
|
102
|
+
import { EpTour as Xp } from "./components/tour/index.js";
|
|
103
|
+
import { EpTourStep as Zp } from "./components/tour-step/index.js";
|
|
104
|
+
import { EpTransfer as oe } from "./components/transfer/index.js";
|
|
105
|
+
import { EpTree as pe } from "./components/tree/index.js";
|
|
106
|
+
import { EpTreeSelect as te } from "./components/tree-select/index.js";
|
|
107
|
+
import { EpTreeV2 as fe } from "./components/tree-v2/index.js";
|
|
108
|
+
import { EpUpload as xe } from "./components/upload/index.js";
|
|
109
|
+
import { EpWatermark as ie } from "./components/watermark/index.js";
|
|
109
110
|
const e = (r) => {
|
|
110
111
|
Object.entries(p).forEach(([t, o]) => {
|
|
111
112
|
o && typeof o == "object" && "install" in o && r.use(o);
|
|
@@ -116,8 +117,8 @@ export {
|
|
|
116
117
|
g as EpAlert,
|
|
117
118
|
k as EpAnchor,
|
|
118
119
|
M as EpAnchorLink,
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
D as EpAside,
|
|
121
|
+
w as EpAutocomplete,
|
|
121
122
|
R as EpAvatar,
|
|
122
123
|
G as EpBacktop,
|
|
123
124
|
V as EpBadge,
|
|
@@ -145,83 +146,84 @@ export {
|
|
|
145
146
|
Bo as EpCountdown,
|
|
146
147
|
m as EpCraft,
|
|
147
148
|
i as EpCraftResolver,
|
|
148
|
-
|
|
149
|
-
Ao as
|
|
150
|
-
vo as
|
|
151
|
-
Lo as
|
|
152
|
-
yo as
|
|
153
|
-
No as
|
|
154
|
-
jo as
|
|
155
|
-
Uo as
|
|
156
|
-
_o as
|
|
157
|
-
zo as
|
|
158
|
-
Ko as
|
|
159
|
-
Xo as
|
|
160
|
-
Zo as
|
|
161
|
-
or as
|
|
162
|
-
pr as
|
|
163
|
-
tr as
|
|
164
|
-
fr as
|
|
149
|
+
ho as EpDatePicker,
|
|
150
|
+
Ao as EpDatePickerPanel,
|
|
151
|
+
vo as EpDescriptions,
|
|
152
|
+
Lo as EpDescriptionsItem,
|
|
153
|
+
yo as EpDialog,
|
|
154
|
+
No as EpDivider,
|
|
155
|
+
jo as EpDrawer,
|
|
156
|
+
Uo as EpDropdown,
|
|
157
|
+
_o as EpDropdownItem,
|
|
158
|
+
zo as EpDropdownMenu,
|
|
159
|
+
Ko as EpEmpty,
|
|
160
|
+
Xo as EpFooter,
|
|
161
|
+
Zo as EpForm,
|
|
162
|
+
or as EpFormItem,
|
|
163
|
+
pr as EpHeader,
|
|
164
|
+
tr as EpIcon,
|
|
165
|
+
fr as EpImage,
|
|
166
|
+
xr as EpImageViewer,
|
|
165
167
|
s as EpInfiniteScroll,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
168
|
+
ir as EpInput,
|
|
169
|
+
lr as EpInputNumber,
|
|
170
|
+
cr as EpLink,
|
|
169
171
|
c as EpLoading,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
dr as EpMain,
|
|
173
|
+
Tr as EpMention,
|
|
174
|
+
Sr as EpMenu,
|
|
175
|
+
br as EpMenuItem,
|
|
176
|
+
Pr as EpMenuItemGroup,
|
|
175
177
|
u as EpMessage,
|
|
176
178
|
d as EpMessageBox,
|
|
177
179
|
C as EpNotification,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
180
|
+
Br as EpOption,
|
|
181
|
+
hr as EpOptionGroup,
|
|
182
|
+
Ar as EpPageHeader,
|
|
183
|
+
vr as EpPagination,
|
|
184
|
+
Lr as EpPopconfirm,
|
|
185
|
+
yr as EpPopover,
|
|
186
|
+
Nr as EpPopper,
|
|
187
|
+
jr as EpProgress,
|
|
188
|
+
Ur as EpRadio,
|
|
189
|
+
_r as EpRadioButton,
|
|
190
|
+
zr as EpRadioGroup,
|
|
191
|
+
Kr as EpRate,
|
|
192
|
+
Xr as EpResult,
|
|
193
|
+
Zr as EpRow,
|
|
194
|
+
op as EpScrollbar,
|
|
195
|
+
pp as EpSegmented,
|
|
196
|
+
tp as EpSelect,
|
|
197
|
+
fp as EpSelectV2,
|
|
198
|
+
xp as EpSkeleton,
|
|
199
|
+
ip as EpSkeletonItem,
|
|
200
|
+
lp as EpSlider,
|
|
201
|
+
cp as EpSpace,
|
|
202
|
+
dp as EpStatistic,
|
|
203
|
+
Tp as EpStep,
|
|
204
|
+
Sp as EpSteps,
|
|
205
|
+
bp as EpSubMenu,
|
|
206
|
+
Pp as EpSwitch,
|
|
207
|
+
Bp as EpTabPane,
|
|
208
|
+
hp as EpTable,
|
|
209
|
+
Ap as EpTableColumn,
|
|
210
|
+
vp as EpTableV2,
|
|
211
|
+
Lp as EpTabs,
|
|
212
|
+
yp as EpTag,
|
|
213
|
+
Np as EpText,
|
|
214
|
+
jp as EpTimePicker,
|
|
215
|
+
Up as EpTimeSelect,
|
|
216
|
+
_p as EpTimeline,
|
|
217
|
+
zp as EpTimelineItem,
|
|
218
|
+
Kp as EpTooltip,
|
|
219
|
+
Xp as EpTour,
|
|
220
|
+
Zp as EpTourStep,
|
|
221
|
+
oe as EpTransfer,
|
|
222
|
+
pe as EpTree,
|
|
223
|
+
te as EpTreeSelect,
|
|
224
|
+
fe as EpTreeV2,
|
|
225
|
+
xe as EpUpload,
|
|
226
|
+
ie as EpWatermark,
|
|
225
227
|
m as default,
|
|
226
228
|
x as withInstall
|
|
227
229
|
};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -16,3 +16,9 @@ export * from './use-empty-values';
|
|
|
16
16
|
export * from './use-escape-keydown';
|
|
17
17
|
export * from './use-timeout';
|
|
18
18
|
export * from './use-wheel';
|
|
19
|
+
export * from './use-focus-controller';
|
|
20
|
+
export * from './use-attrs';
|
|
21
|
+
export * from './use-composition';
|
|
22
|
+
export * from './use-cursor';
|
|
23
|
+
export * from './use-calc-input-width';
|
|
24
|
+
export * from './use-float-label';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { computed as e, getCurrentInstance as a } from "vue";
|
|
2
|
+
import { fromPairs as i } from "lodash-unified";
|
|
3
|
+
import "@vue/shared";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import { debugWarn as l } from "../../utils/error.js";
|
|
6
|
+
import "@element-plus/icons-vue";
|
|
7
|
+
const m = ["class", "style"], p = /^on[A-Z]/, b = (o = {}) => {
|
|
8
|
+
const { excludeListeners: u = !1, excludeKeys: t } = o, c = e(() => ((t == null ? void 0 : t.value) || []).concat(m)), r = a();
|
|
9
|
+
return r ? e(
|
|
10
|
+
() => {
|
|
11
|
+
var s;
|
|
12
|
+
return i(
|
|
13
|
+
Object.entries((s = r.proxy) == null ? void 0 : s.$attrs).filter(
|
|
14
|
+
([n]) => !c.value.includes(n) && !(u && p.test(n))
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
) : (l(
|
|
19
|
+
"use-attrs",
|
|
20
|
+
"getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"
|
|
21
|
+
), e(() => ({})));
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
b as useAttrs
|
|
25
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { shallowRef as l, ref as a, computed as i } from "vue";
|
|
2
|
+
import { useResizeObserver as u } from "@vueuse/core";
|
|
3
|
+
import { MINIMUM_INPUT_WIDTH as c } from "../../constants/form.js";
|
|
4
|
+
function h() {
|
|
5
|
+
const t = l(), e = a(0), r = i(() => ({
|
|
6
|
+
minWidth: `${Math.max(e.value, c)}px`
|
|
7
|
+
}));
|
|
8
|
+
return u(t, () => {
|
|
9
|
+
var o;
|
|
10
|
+
e.value = ((o = t.value) == null ? void 0 : o.getBoundingClientRect().width) ?? 0;
|
|
11
|
+
}), {
|
|
12
|
+
calculatorRef: t,
|
|
13
|
+
calculatorWidth: e,
|
|
14
|
+
inputStyle: r
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
h as useCalcInputWidth
|
|
19
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface UseCompositionOptions {
|
|
2
|
+
afterComposition: (event: CompositionEvent) => void;
|
|
3
|
+
emit?: ((event: 'compositionstart', evt: CompositionEvent) => void) & ((event: 'compositionupdate', evt: CompositionEvent) => void) & ((event: 'compositionend', evt: CompositionEvent) => void);
|
|
4
|
+
}
|
|
5
|
+
export declare function useComposition({ afterComposition, emit, }: UseCompositionOptions): {
|
|
6
|
+
isComposing: import("vue").Ref<boolean, boolean>;
|
|
7
|
+
handleComposition: (event: CompositionEvent) => void;
|
|
8
|
+
handleCompositionStart: (event: CompositionEvent) => void;
|
|
9
|
+
handleCompositionUpdate: (event: CompositionEvent) => void;
|
|
10
|
+
handleCompositionEnd: (event: CompositionEvent) => void;
|
|
11
|
+
};
|
|
12
|
+
export {};
|