@qy_better_lib/pc 0.0.9 → 0.1.0
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/@qy_better_lib/pc.min.js +42 -1
- package/lib/node_modules/@ctrl/tinycolor/dist/module/conversion.js +115 -0
- package/lib/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +153 -0
- package/lib/node_modules/@ctrl/tinycolor/dist/module/format-input.js +68 -0
- package/lib/node_modules/@ctrl/tinycolor/dist/module/index.js +183 -0
- package/lib/node_modules/@ctrl/tinycolor/dist/module/util.js +32 -0
- package/lib/node_modules/@element-plus/icons-vue/dist/index.js +167 -0
- package/lib/node_modules/@intlify/core-base/dist/core-base.js +1104 -0
- package/lib/node_modules/@intlify/message-compiler/dist/message-compiler.esm-browser.js +1004 -0
- package/lib/node_modules/@intlify/shared/dist/shared.js +142 -0
- package/lib/node_modules/@qy_better_lib/core/lib/directives/click-outside.js +40 -0
- package/lib/node_modules/@qy_better_lib/core/lib/utils/is.js +8 -0
- package/lib/node_modules/@vue/shared/dist/shared.esm-bundler.js +22 -0
- package/lib/node_modules/@vueuse/core/index.js +112 -0
- package/lib/node_modules/@vueuse/shared/index.js +68 -0
- package/lib/node_modules/element-plus/es/_virtual/plugin-vue_export-helper.js +9 -0
- package/lib/node_modules/element-plus/es/components/badge/index.js +7 -0
- package/lib/node_modules/element-plus/es/components/button/index.js +11 -0
- package/lib/node_modules/element-plus/es/components/icon/index.js +7 -0
- package/lib/node_modules/element-plus/es/components/input/index.js +7 -0
- package/lib/node_modules/element-plus/es/components/message/index.js +7 -0
- package/lib/node_modules/element-plus/es/components/message-box/index.js +10 -0
- package/lib/node_modules/element-plus/es/components/notification/index.js +7 -0
- package/lib/node_modules/element-plus/es/components/overlay/index.js +9 -0
- package/lib/node_modules/element-plus/es/constants/aria.js +20 -0
- package/lib/node_modules/element-plus/es/constants/event.js +4 -0
- package/lib/node_modules/element-plus/es/constants/size.js +4 -0
- package/lib/node_modules/element-plus/es/directives/trap-focus/index.js +36 -0
- package/lib/node_modules/element-plus/es/hooks/use-aria/index.js +14 -0
- package/lib/node_modules/element-plus/es/hooks/use-attrs/index.js +13 -0
- package/lib/node_modules/element-plus/es/hooks/use-composition/index.js +29 -0
- package/lib/node_modules/element-plus/es/hooks/use-cursor/index.js +39 -0
- package/lib/node_modules/element-plus/es/hooks/use-deprecated/index.js +14 -0
- package/lib/node_modules/element-plus/es/hooks/use-draggable/index.js +41 -0
- package/lib/node_modules/element-plus/es/hooks/use-empty-values/index.js +15 -0
- package/lib/node_modules/element-plus/es/hooks/use-escape-keydown/index.js +16 -0
- package/lib/node_modules/element-plus/es/hooks/use-focus-controller/index.js +34 -0
- package/lib/node_modules/element-plus/es/hooks/use-id/index.js +22 -0
- package/lib/node_modules/element-plus/es/hooks/use-locale/index.js +24 -0
- package/lib/node_modules/element-plus/es/hooks/use-lockscreen/index.js +30 -0
- package/lib/node_modules/element-plus/es/hooks/use-namespace/index.js +44 -0
- package/lib/node_modules/element-plus/es/hooks/use-prop/index.js +11 -0
- package/lib/node_modules/element-plus/es/hooks/use-same-target/index.js +16 -0
- package/lib/node_modules/element-plus/es/hooks/use-size/index.js +16 -0
- package/lib/node_modules/element-plus/es/hooks/use-z-index/index.js +24 -0
- package/lib/node_modules/element-plus/es/locale/lang/en.js +182 -0
- package/lib/node_modules/element-plus/es/utils/browser.js +6 -0
- package/lib/node_modules/element-plus/es/utils/dom/aria.js +23 -0
- package/lib/node_modules/element-plus/es/utils/dom/scroll.js +20 -0
- package/lib/node_modules/element-plus/es/utils/dom/style.js +47 -0
- package/lib/node_modules/element-plus/es/utils/error.js +19 -0
- package/lib/node_modules/element-plus/es/utils/i18n.js +4 -0
- package/lib/node_modules/element-plus/es/utils/objects.js +4 -0
- package/lib/node_modules/element-plus/es/utils/types.js +13 -0
- package/lib/node_modules/element-plus/es/utils/typescript.js +4 -0
- package/lib/node_modules/element-plus/es/utils/vue/icon.js +31 -0
- package/lib/node_modules/element-plus/es/utils/vue/install.js +17 -0
- package/lib/node_modules/element-plus/es/utils/vue/props/runtime.js +31 -0
- package/lib/node_modules/element-plus/es/utils/vue/validator.js +5 -0
- package/lib/node_modules/element-plus/es/utils/vue/vnode.js +5 -0
- package/lib/node_modules/lodash-es/_Hash.js +20 -0
- package/lib/node_modules/lodash-es/_ListCache.js +20 -0
- package/lib/node_modules/lodash-es/_Map.js +6 -0
- package/lib/node_modules/lodash-es/_MapCache.js +20 -0
- package/lib/node_modules/lodash-es/_Symbol.js +5 -0
- package/lib/node_modules/lodash-es/_apply.js +16 -0
- package/lib/node_modules/lodash-es/_arrayMap.js +8 -0
- package/lib/node_modules/lodash-es/_arrayPush.js +8 -0
- package/lib/node_modules/lodash-es/_assignValue.js +10 -0
- package/lib/node_modules/lodash-es/_assocIndexOf.js +10 -0
- package/lib/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/lib/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/lib/node_modules/lodash-es/_baseGet.js +11 -0
- package/lib/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/lib/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/lib/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/lib/node_modules/lodash-es/_baseIsNative.js +16 -0
- package/lib/node_modules/lodash-es/_basePick.js +10 -0
- package/lib/node_modules/lodash-es/_basePickBy.js +13 -0
- package/lib/node_modules/lodash-es/_baseSet.js +24 -0
- package/lib/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/lib/node_modules/lodash-es/_baseToString.js +18 -0
- package/lib/node_modules/lodash-es/_castPath.js +10 -0
- package/lib/node_modules/lodash-es/_coreJsData.js +5 -0
- package/lib/node_modules/lodash-es/_defineProperty.js +11 -0
- package/lib/node_modules/lodash-es/_flatRest.js +9 -0
- package/lib/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/lib/node_modules/lodash-es/_getMapData.js +8 -0
- package/lib/node_modules/lodash-es/_getNative.js +9 -0
- package/lib/node_modules/lodash-es/_getRawTag.js +15 -0
- package/lib/node_modules/lodash-es/_getValue.js +6 -0
- package/lib/node_modules/lodash-es/_hasPath.js +19 -0
- package/lib/node_modules/lodash-es/_hashClear.js +7 -0
- package/lib/node_modules/lodash-es/_hashDelete.js +7 -0
- package/lib/node_modules/lodash-es/_hashGet.js +13 -0
- package/lib/node_modules/lodash-es/_hashHas.js +9 -0
- package/lib/node_modules/lodash-es/_hashSet.js +9 -0
- package/lib/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/lib/node_modules/lodash-es/_isIndex.js +8 -0
- package/lib/node_modules/lodash-es/_isKey.js +12 -0
- package/lib/node_modules/lodash-es/_isKeyable.js +7 -0
- package/lib/node_modules/lodash-es/_isMasked.js +11 -0
- package/lib/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/lib/node_modules/lodash-es/_listCacheDelete.js +12 -0
- package/lib/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/lib/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/lib/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/lib/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/lib/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/lib/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/lib/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/lib/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/lib/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/lib/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/lib/node_modules/lodash-es/_objectToString.js +7 -0
- package/lib/node_modules/lodash-es/_overRest.js +15 -0
- package/lib/node_modules/lodash-es/_root.js +5 -0
- package/lib/node_modules/lodash-es/_setToString.js +6 -0
- package/lib/node_modules/lodash-es/_shortOut.js +16 -0
- package/lib/node_modules/lodash-es/_stringToPath.js +10 -0
- package/lib/node_modules/lodash-es/_toKey.js +10 -0
- package/lib/node_modules/lodash-es/_toSource.js +17 -0
- package/lib/node_modules/lodash-es/constant.js +8 -0
- package/lib/node_modules/lodash-es/eq.js +6 -0
- package/lib/node_modules/lodash-es/flatten.js +8 -0
- package/lib/node_modules/lodash-es/fromPairs.js +10 -0
- package/lib/node_modules/lodash-es/get.js +8 -0
- package/lib/node_modules/lodash-es/hasIn.js +8 -0
- package/lib/node_modules/lodash-es/identity.js +6 -0
- package/lib/node_modules/lodash-es/isArguments.js +10 -0
- package/lib/node_modules/lodash-es/isArray.js +4 -0
- package/lib/node_modules/lodash-es/isFunction.js +12 -0
- package/lib/node_modules/lodash-es/isLength.js +7 -0
- package/lib/node_modules/lodash-es/isNil.js +6 -0
- package/lib/node_modules/lodash-es/isObject.js +7 -0
- package/lib/node_modules/lodash-es/isObjectLike.js +6 -0
- package/lib/node_modules/lodash-es/isSymbol.js +9 -0
- package/lib/node_modules/lodash-es/memoize.js +18 -0
- package/lib/node_modules/lodash-es/pick.js +8 -0
- package/lib/node_modules/lodash-es/toString.js +7 -0
- package/lib/node_modules/vue-i18n/dist/vue-i18n.js +864 -0
- package/package.json +3 -3
- package/lib/contextMenu/index.js +0 -7
- package/lib/index.js +0 -24
- package/lib/tableExtend/index.js +0 -7
- package/lib/tableExtend/props.js +0 -50
- package/lib/tableExtend/type.js +0 -4
- package/lib/tableExtend/useTable.js +0 -72
- package/lib/textButton/index.js +0 -7
- package/lib/utils/index.js +0 -79
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { onMounted as B, watchEffect as U, onBeforeUnmount as $ } from "vue";
|
|
2
|
+
import { addUnit as E } from "../../utils/dom/style.js";
|
|
3
|
+
const j = (e, t, L, u) => {
|
|
4
|
+
let c = {
|
|
5
|
+
offsetX: 0,
|
|
6
|
+
offsetY: 0
|
|
7
|
+
};
|
|
8
|
+
const l = (f) => {
|
|
9
|
+
const X = f.clientX, Y = f.clientY, { offsetX: i, offsetY: m } = c, n = e.value.getBoundingClientRect(), d = n.left, v = n.top, w = n.width, x = n.height, b = document.documentElement.clientWidth, D = document.documentElement.clientHeight, H = -d + i, T = -v + m, W = b - d - w + i, y = D - v - x + m, r = (p) => {
|
|
10
|
+
let o = i + p.clientX - X, s = m + p.clientY - Y;
|
|
11
|
+
u != null && u.value || (o = Math.min(Math.max(o, H), W), s = Math.min(Math.max(s, T), y)), c = {
|
|
12
|
+
offsetX: o,
|
|
13
|
+
offsetY: s
|
|
14
|
+
}, e.value && (e.value.style.transform = `translate(${E(o)}, ${E(s)})`);
|
|
15
|
+
}, h = () => {
|
|
16
|
+
document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", h);
|
|
17
|
+
};
|
|
18
|
+
document.addEventListener("mousemove", r), document.addEventListener("mouseup", h);
|
|
19
|
+
}, g = () => {
|
|
20
|
+
t.value && e.value && t.value.addEventListener("mousedown", l);
|
|
21
|
+
}, a = () => {
|
|
22
|
+
t.value && e.value && t.value.removeEventListener("mousedown", l);
|
|
23
|
+
}, M = () => {
|
|
24
|
+
c = {
|
|
25
|
+
offsetX: 0,
|
|
26
|
+
offsetY: 0
|
|
27
|
+
}, e.value && (e.value.style.transform = "none");
|
|
28
|
+
};
|
|
29
|
+
return B(() => {
|
|
30
|
+
U(() => {
|
|
31
|
+
L.value ? g() : a();
|
|
32
|
+
});
|
|
33
|
+
}), $(() => {
|
|
34
|
+
a();
|
|
35
|
+
}), {
|
|
36
|
+
resetPosition: M
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
j as useDraggable
|
|
41
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "vue";
|
|
2
|
+
import { buildProps as t } from "../../utils/vue/props/runtime.js";
|
|
3
|
+
import { isFunction as o } from "../../../../@vue/shared/dist/shared.esm-bundler.js";
|
|
4
|
+
const m = Symbol("emptyValuesContextKey"), p = t({
|
|
5
|
+
emptyValues: Array,
|
|
6
|
+
valueOnClear: {
|
|
7
|
+
type: [String, Number, Boolean, Function],
|
|
8
|
+
default: void 0,
|
|
9
|
+
validator: (e) => o(e) ? !e() : !e
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
m as emptyValuesContextKey,
|
|
14
|
+
p as useEmptyValuesProps
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { onMounted as i, onBeforeUnmount as d } from "vue";
|
|
2
|
+
import { EVENT_CODE as s } from "../../constants/aria.js";
|
|
3
|
+
import { isClient as t } from "../../../../@vueuse/shared/index.js";
|
|
4
|
+
let e = [];
|
|
5
|
+
const r = (o) => {
|
|
6
|
+
o.code === s.esc && e.forEach((n) => n(o));
|
|
7
|
+
}, E = (o) => {
|
|
8
|
+
i(() => {
|
|
9
|
+
e.length === 0 && document.addEventListener("keydown", r), t && e.push(o);
|
|
10
|
+
}), d(() => {
|
|
11
|
+
e = e.filter((n) => n !== o), e.length === 0 && t && document.removeEventListener("keydown", r);
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
E as useEscapeKeydown
|
|
16
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { getCurrentInstance as E, shallowRef as h, ref as b, watch as F, onMounted as _ } from "vue";
|
|
2
|
+
import { useEventListener as u } from "../../../../@vueuse/core/index.js";
|
|
3
|
+
import { isElement as w } from "../../utils/types.js";
|
|
4
|
+
import { isFunction as m } from "../../../../@vue/shared/dist/shared.esm-bundler.js";
|
|
5
|
+
function R(c, {
|
|
6
|
+
beforeFocus: a,
|
|
7
|
+
afterFocus: s,
|
|
8
|
+
beforeBlur: i,
|
|
9
|
+
afterBlur: f
|
|
10
|
+
} = {}) {
|
|
11
|
+
const v = E(), { emit: d } = v, n = h(), l = b(!1), r = (e) => {
|
|
12
|
+
m(a) && a(e) || l.value || (l.value = !0, d("focus", e), s == null || s());
|
|
13
|
+
}, o = (e) => {
|
|
14
|
+
var t;
|
|
15
|
+
m(i) && i(e) || e.relatedTarget && ((t = n.value) != null && t.contains(e.relatedTarget)) || (l.value = !1, d("blur", e), f == null || f());
|
|
16
|
+
}, p = () => {
|
|
17
|
+
var e, t;
|
|
18
|
+
(e = n.value) != null && e.contains(document.activeElement) && n.value !== document.activeElement || (t = c.value) == null || t.focus();
|
|
19
|
+
};
|
|
20
|
+
return F(n, (e) => {
|
|
21
|
+
e && e.setAttribute("tabindex", "-1");
|
|
22
|
+
}), u(n, "focus", r, !0), u(n, "blur", o, !0), u(n, "click", p, !0), process.env.NODE_ENV === "test" && _(() => {
|
|
23
|
+
const e = w(c.value) ? c.value : document.querySelector("input,textarea");
|
|
24
|
+
e && (u(e, "focus", r, !0), u(e, "blur", o, !0));
|
|
25
|
+
}), {
|
|
26
|
+
isFocused: l,
|
|
27
|
+
wrapperRef: n,
|
|
28
|
+
handleFocus: r,
|
|
29
|
+
handleBlur: o
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
R as useFocusController
|
|
34
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getCurrentInstance as t, inject as i, unref as c } from "vue";
|
|
2
|
+
import { useGetDerivedNamespace as s } from "../use-namespace/index.js";
|
|
3
|
+
import { debugWarn as u } from "../../utils/error.js";
|
|
4
|
+
import { isClient as d, computedEager as a } from "../../../../@vueuse/shared/index.js";
|
|
5
|
+
const r = {
|
|
6
|
+
prefix: Math.floor(Math.random() * 1e4),
|
|
7
|
+
current: 0
|
|
8
|
+
}, p = Symbol("elIdInjection"), I = () => t() ? i(p, r) : r, v = (n) => {
|
|
9
|
+
const e = I();
|
|
10
|
+
!d && e === r && u("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
11
|
+
usage: app.provide(ID_INJECTION_KEY, {
|
|
12
|
+
prefix: number,
|
|
13
|
+
current: number,
|
|
14
|
+
})`);
|
|
15
|
+
const o = s();
|
|
16
|
+
return a(() => c(n) || `${o.value}-id-${e.prefix}-${e.current++}`);
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
p as ID_INJECTION_KEY,
|
|
20
|
+
v as useId,
|
|
21
|
+
I as useIdInjection
|
|
22
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { inject as a, ref as l, computed as c, unref as s, isRef as u } from "vue";
|
|
2
|
+
import m from "../../locale/lang/en.js";
|
|
3
|
+
import f from "../../../../lodash-es/get.js";
|
|
4
|
+
const i = (e) => (t, n) => d(t, n, s(e)), d = (e, t, n) => f(n, e, e).replace(/\{(\w+)\}/g, (x, o) => {
|
|
5
|
+
var r;
|
|
6
|
+
return `${(r = t == null ? void 0 : t[o]) != null ? r : `{${o}}`}`;
|
|
7
|
+
}), g = (e) => {
|
|
8
|
+
const t = c(() => s(e).name), n = u(e) ? e : l(e);
|
|
9
|
+
return {
|
|
10
|
+
lang: t,
|
|
11
|
+
locale: n,
|
|
12
|
+
t: i(e)
|
|
13
|
+
};
|
|
14
|
+
}, p = Symbol("localeContextKey"), y = (e) => {
|
|
15
|
+
const t = e || a(p, l());
|
|
16
|
+
return g(c(() => t.value || m));
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
g as buildLocaleContext,
|
|
20
|
+
i as buildTranslator,
|
|
21
|
+
p as localeContextKey,
|
|
22
|
+
d as translate,
|
|
23
|
+
y as useLocale
|
|
24
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { isRef as a, computed as f, watch as p, onScopeDispose as y } from "vue";
|
|
2
|
+
import { useNamespace as h } from "../use-namespace/index.js";
|
|
3
|
+
import { throwError as b } from "../../utils/error.js";
|
|
4
|
+
import { hasClass as l, getStyle as v, addClass as w, removeClass as C } from "../../utils/dom/style.js";
|
|
5
|
+
import { getScrollBarWidth as H } from "../../utils/dom/scroll.js";
|
|
6
|
+
import { isClient as S } from "../../../../@vueuse/shared/index.js";
|
|
7
|
+
const E = (d, r = {}) => {
|
|
8
|
+
a(d) || b("[useLockscreen]", "You need to pass a ref param to this function");
|
|
9
|
+
const n = r.ns || h("popup"), e = f(() => n.bm("parent", "hidden"));
|
|
10
|
+
if (!S || l(document.body, e.value))
|
|
11
|
+
return;
|
|
12
|
+
let t = 0, o = !1, s = "0";
|
|
13
|
+
const c = () => {
|
|
14
|
+
setTimeout(() => {
|
|
15
|
+
typeof document > "u" || (C(document == null ? void 0 : document.body, e.value), o && document && (document.body.style.width = s));
|
|
16
|
+
}, 200);
|
|
17
|
+
};
|
|
18
|
+
p(d, (u) => {
|
|
19
|
+
if (!u) {
|
|
20
|
+
c();
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
o = !l(document.body, e.value), o && (s = document.body.style.width), t = H(n.namespace.value);
|
|
24
|
+
const i = document.documentElement.clientHeight < document.body.scrollHeight, m = v(document.body, "overflowY");
|
|
25
|
+
t > 0 && (i || m === "scroll") && o && (document.body.style.width = `calc(100% - ${t}px)`), w(document.body, e.value);
|
|
26
|
+
}), y(() => c());
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
E as useLockscreen
|
|
30
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { getCurrentInstance as p, inject as N, ref as v, computed as V, unref as y } from "vue";
|
|
2
|
+
const m = "el", l = "is-", c = (a, r, t, o, $) => {
|
|
3
|
+
let u = `${a}-${r}`;
|
|
4
|
+
return t && (u += `-${t}`), o && (u += `__${o}`), $ && (u += `--${$}`), u;
|
|
5
|
+
}, B = Symbol("namespaceContextKey"), C = (a) => {
|
|
6
|
+
const r = a || (p() ? N(B, v(m)) : v(m));
|
|
7
|
+
return V(() => y(r) || m);
|
|
8
|
+
}, q = (a, r) => {
|
|
9
|
+
const t = C(r);
|
|
10
|
+
return {
|
|
11
|
+
namespace: t,
|
|
12
|
+
b: (s = "") => c(t.value, a, s, "", ""),
|
|
13
|
+
e: (s) => s ? c(t.value, a, "", s, "") : "",
|
|
14
|
+
m: (s) => s ? c(t.value, a, "", "", s) : "",
|
|
15
|
+
be: (s, e) => s && e ? c(t.value, a, s, e, "") : "",
|
|
16
|
+
em: (s, e) => s && e ? c(t.value, a, "", s, e) : "",
|
|
17
|
+
bm: (s, e) => s && e ? c(t.value, a, s, "", e) : "",
|
|
18
|
+
bem: (s, e, n) => s && e && n ? c(t.value, a, s, e, n) : "",
|
|
19
|
+
is: (s, ...e) => {
|
|
20
|
+
const n = e.length >= 1 ? e[0] : !0;
|
|
21
|
+
return s && n ? `${l}${s}` : "";
|
|
22
|
+
},
|
|
23
|
+
cssVar: (s) => {
|
|
24
|
+
const e = {};
|
|
25
|
+
for (const n in s)
|
|
26
|
+
s[n] && (e[`--${t.value}-${n}`] = s[n]);
|
|
27
|
+
return e;
|
|
28
|
+
},
|
|
29
|
+
cssVarName: (s) => `--${t.value}-${s}`,
|
|
30
|
+
cssVarBlock: (s) => {
|
|
31
|
+
const e = {};
|
|
32
|
+
for (const n in s)
|
|
33
|
+
s[n] && (e[`--${t.value}-${a}-${n}`] = s[n]);
|
|
34
|
+
return e;
|
|
35
|
+
},
|
|
36
|
+
cssVarBlockName: (s) => `--${t.value}-${a}-${s}`
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
m as defaultNamespace,
|
|
41
|
+
B as namespaceContextKey,
|
|
42
|
+
C as useGetDerivedNamespace,
|
|
43
|
+
q as useNamespace
|
|
44
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getCurrentInstance as t, computed as o } from "vue";
|
|
2
|
+
const p = (u) => {
|
|
3
|
+
const n = t();
|
|
4
|
+
return o(() => {
|
|
5
|
+
var e, r;
|
|
6
|
+
return (r = (e = n == null ? void 0 : n.proxy) == null ? void 0 : e.$props) == null ? void 0 : r[u];
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
p as useProp
|
|
11
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NOOP as n } from "../../../../@vue/shared/dist/shared.esm-bundler.js";
|
|
2
|
+
const g = (r) => {
|
|
3
|
+
if (!r)
|
|
4
|
+
return { onClick: n, onMousedown: n, onMouseup: n };
|
|
5
|
+
let e = !1, t = !1;
|
|
6
|
+
return { onClick: (o) => {
|
|
7
|
+
e && t && r(o), e = t = !1;
|
|
8
|
+
}, onMousedown: (o) => {
|
|
9
|
+
e = o.target === o.currentTarget;
|
|
10
|
+
}, onMouseup: (o) => {
|
|
11
|
+
t = o.target === o.currentTarget;
|
|
12
|
+
} };
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
g as useSameTarget
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { inject as o, computed as r, unref as t } from "vue";
|
|
2
|
+
import { buildProp as i } from "../../utils/vue/props/runtime.js";
|
|
3
|
+
import { componentSizes as n } from "../../constants/size.js";
|
|
4
|
+
const c = i({
|
|
5
|
+
type: String,
|
|
6
|
+
values: n,
|
|
7
|
+
required: !1
|
|
8
|
+
}), s = Symbol("size"), S = () => {
|
|
9
|
+
const e = o(s, {});
|
|
10
|
+
return r(() => t(e.size) || "");
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
s as SIZE_INJECTION_KEY,
|
|
14
|
+
S as useGlobalSize,
|
|
15
|
+
c as useSizeProp
|
|
16
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ref as m, getCurrentInstance as i, inject as e, computed as c, unref as l } from "vue";
|
|
2
|
+
import { isNumber as p } from "../../utils/types.js";
|
|
3
|
+
import { debugWarn as f } from "../../utils/error.js";
|
|
4
|
+
import { isClient as Z } from "../../../../@vueuse/shared/index.js";
|
|
5
|
+
const u = {
|
|
6
|
+
current: 0
|
|
7
|
+
}, d = m(0), v = 2e3, s = Symbol("elZIndexContextKey"), y = Symbol("zIndexContextKey"), E = (I) => {
|
|
8
|
+
const n = i() ? e(s, u) : u, x = I || (i() ? e(y, void 0) : void 0), t = c(() => {
|
|
9
|
+
const o = l(x);
|
|
10
|
+
return p(o) ? o : v;
|
|
11
|
+
}), r = c(() => t.value + d.value), a = () => (n.current++, d.value = n.current, r.value);
|
|
12
|
+
return !Z && !e(s) && f("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
13
|
+
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
|
|
14
|
+
initialZIndex: t,
|
|
15
|
+
currentZIndex: r,
|
|
16
|
+
nextZIndex: a
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
s as ZINDEX_INJECTION_KEY,
|
|
21
|
+
v as defaultInitialZIndex,
|
|
22
|
+
E as useZIndex,
|
|
23
|
+
y as zIndexContextKey
|
|
24
|
+
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
var e = {
|
|
2
|
+
name: "en",
|
|
3
|
+
el: {
|
|
4
|
+
breadcrumb: {
|
|
5
|
+
label: "Breadcrumb"
|
|
6
|
+
},
|
|
7
|
+
colorpicker: {
|
|
8
|
+
confirm: "OK",
|
|
9
|
+
clear: "Clear",
|
|
10
|
+
defaultLabel: "color picker",
|
|
11
|
+
description: "current color is {color}. press enter to select a new color.",
|
|
12
|
+
alphaLabel: "pick alpha value"
|
|
13
|
+
},
|
|
14
|
+
datepicker: {
|
|
15
|
+
now: "Now",
|
|
16
|
+
today: "Today",
|
|
17
|
+
cancel: "Cancel",
|
|
18
|
+
clear: "Clear",
|
|
19
|
+
confirm: "OK",
|
|
20
|
+
dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
|
|
21
|
+
monthTablePrompt: "Use the arrow keys and enter to select the month",
|
|
22
|
+
yearTablePrompt: "Use the arrow keys and enter to select the year",
|
|
23
|
+
selectedDate: "Selected date",
|
|
24
|
+
selectDate: "Select date",
|
|
25
|
+
selectTime: "Select time",
|
|
26
|
+
startDate: "Start Date",
|
|
27
|
+
startTime: "Start Time",
|
|
28
|
+
endDate: "End Date",
|
|
29
|
+
endTime: "End Time",
|
|
30
|
+
prevYear: "Previous Year",
|
|
31
|
+
nextYear: "Next Year",
|
|
32
|
+
prevMonth: "Previous Month",
|
|
33
|
+
nextMonth: "Next Month",
|
|
34
|
+
year: "",
|
|
35
|
+
month1: "January",
|
|
36
|
+
month2: "February",
|
|
37
|
+
month3: "March",
|
|
38
|
+
month4: "April",
|
|
39
|
+
month5: "May",
|
|
40
|
+
month6: "June",
|
|
41
|
+
month7: "July",
|
|
42
|
+
month8: "August",
|
|
43
|
+
month9: "September",
|
|
44
|
+
month10: "October",
|
|
45
|
+
month11: "November",
|
|
46
|
+
month12: "December",
|
|
47
|
+
week: "week",
|
|
48
|
+
weeks: {
|
|
49
|
+
sun: "Sun",
|
|
50
|
+
mon: "Mon",
|
|
51
|
+
tue: "Tue",
|
|
52
|
+
wed: "Wed",
|
|
53
|
+
thu: "Thu",
|
|
54
|
+
fri: "Fri",
|
|
55
|
+
sat: "Sat"
|
|
56
|
+
},
|
|
57
|
+
weeksFull: {
|
|
58
|
+
sun: "Sunday",
|
|
59
|
+
mon: "Monday",
|
|
60
|
+
tue: "Tuesday",
|
|
61
|
+
wed: "Wednesday",
|
|
62
|
+
thu: "Thursday",
|
|
63
|
+
fri: "Friday",
|
|
64
|
+
sat: "Saturday"
|
|
65
|
+
},
|
|
66
|
+
months: {
|
|
67
|
+
jan: "Jan",
|
|
68
|
+
feb: "Feb",
|
|
69
|
+
mar: "Mar",
|
|
70
|
+
apr: "Apr",
|
|
71
|
+
may: "May",
|
|
72
|
+
jun: "Jun",
|
|
73
|
+
jul: "Jul",
|
|
74
|
+
aug: "Aug",
|
|
75
|
+
sep: "Sep",
|
|
76
|
+
oct: "Oct",
|
|
77
|
+
nov: "Nov",
|
|
78
|
+
dec: "Dec"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
inputNumber: {
|
|
82
|
+
decrease: "decrease number",
|
|
83
|
+
increase: "increase number"
|
|
84
|
+
},
|
|
85
|
+
select: {
|
|
86
|
+
loading: "Loading",
|
|
87
|
+
noMatch: "No matching data",
|
|
88
|
+
noData: "No data",
|
|
89
|
+
placeholder: "Select"
|
|
90
|
+
},
|
|
91
|
+
mention: {
|
|
92
|
+
loading: "Loading"
|
|
93
|
+
},
|
|
94
|
+
dropdown: {
|
|
95
|
+
toggleDropdown: "Toggle Dropdown"
|
|
96
|
+
},
|
|
97
|
+
cascader: {
|
|
98
|
+
noMatch: "No matching data",
|
|
99
|
+
loading: "Loading",
|
|
100
|
+
placeholder: "Select",
|
|
101
|
+
noData: "No data"
|
|
102
|
+
},
|
|
103
|
+
pagination: {
|
|
104
|
+
goto: "Go to",
|
|
105
|
+
pagesize: "/page",
|
|
106
|
+
total: "Total {total}",
|
|
107
|
+
pageClassifier: "",
|
|
108
|
+
page: "Page",
|
|
109
|
+
prev: "Go to previous page",
|
|
110
|
+
next: "Go to next page",
|
|
111
|
+
currentPage: "page {pager}",
|
|
112
|
+
prevPages: "Previous {pager} pages",
|
|
113
|
+
nextPages: "Next {pager} pages",
|
|
114
|
+
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
|
|
115
|
+
},
|
|
116
|
+
dialog: {
|
|
117
|
+
close: "Close this dialog"
|
|
118
|
+
},
|
|
119
|
+
drawer: {
|
|
120
|
+
close: "Close this dialog"
|
|
121
|
+
},
|
|
122
|
+
messagebox: {
|
|
123
|
+
title: "Message",
|
|
124
|
+
confirm: "OK",
|
|
125
|
+
cancel: "Cancel",
|
|
126
|
+
error: "Illegal input",
|
|
127
|
+
close: "Close this dialog"
|
|
128
|
+
},
|
|
129
|
+
upload: {
|
|
130
|
+
deleteTip: "press delete to remove",
|
|
131
|
+
delete: "Delete",
|
|
132
|
+
preview: "Preview",
|
|
133
|
+
continue: "Continue"
|
|
134
|
+
},
|
|
135
|
+
slider: {
|
|
136
|
+
defaultLabel: "slider between {min} and {max}",
|
|
137
|
+
defaultRangeStartLabel: "pick start value",
|
|
138
|
+
defaultRangeEndLabel: "pick end value"
|
|
139
|
+
},
|
|
140
|
+
table: {
|
|
141
|
+
emptyText: "No Data",
|
|
142
|
+
confirmFilter: "Confirm",
|
|
143
|
+
resetFilter: "Reset",
|
|
144
|
+
clearFilter: "All",
|
|
145
|
+
sumText: "Sum"
|
|
146
|
+
},
|
|
147
|
+
tour: {
|
|
148
|
+
next: "Next",
|
|
149
|
+
previous: "Previous",
|
|
150
|
+
finish: "Finish"
|
|
151
|
+
},
|
|
152
|
+
tree: {
|
|
153
|
+
emptyText: "No Data"
|
|
154
|
+
},
|
|
155
|
+
transfer: {
|
|
156
|
+
noMatch: "No matching data",
|
|
157
|
+
noData: "No data",
|
|
158
|
+
titles: ["List 1", "List 2"],
|
|
159
|
+
filterPlaceholder: "Enter keyword",
|
|
160
|
+
noCheckedFormat: "{total} items",
|
|
161
|
+
hasCheckedFormat: "{checked}/{total} checked"
|
|
162
|
+
},
|
|
163
|
+
image: {
|
|
164
|
+
error: "FAILED"
|
|
165
|
+
},
|
|
166
|
+
pageHeader: {
|
|
167
|
+
title: "Back"
|
|
168
|
+
},
|
|
169
|
+
popconfirm: {
|
|
170
|
+
confirmButtonText: "Yes",
|
|
171
|
+
cancelButtonText: "No"
|
|
172
|
+
},
|
|
173
|
+
carousel: {
|
|
174
|
+
leftArrow: "Carousel arrow left",
|
|
175
|
+
rightArrow: "Carousel arrow right",
|
|
176
|
+
indicator: "Carousel switch to index {index}"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
export {
|
|
181
|
+
e as default
|
|
182
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const r = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])', s = (t) => process.env.NODE_ENV === "test" ? !0 : getComputedStyle(t).position === "fixed" ? !1 : t.offsetParent !== null, n = (t) => Array.from(t.querySelectorAll(r)).filter((e) => a(e) && s(e)), a = (t) => {
|
|
2
|
+
if (t.tabIndex > 0 || t.tabIndex === 0 && t.getAttribute("tabIndex") !== null)
|
|
3
|
+
return !0;
|
|
4
|
+
if (t.tabIndex < 0 || t.hasAttribute("disabled") || t.getAttribute("aria-disabled") === "true")
|
|
5
|
+
return !1;
|
|
6
|
+
switch (t.nodeName) {
|
|
7
|
+
case "A":
|
|
8
|
+
return !!t.href && t.rel !== "ignore";
|
|
9
|
+
case "INPUT":
|
|
10
|
+
return !(t.type === "hidden" || t.type === "file");
|
|
11
|
+
case "BUTTON":
|
|
12
|
+
case "SELECT":
|
|
13
|
+
case "TEXTAREA":
|
|
14
|
+
return !0;
|
|
15
|
+
default:
|
|
16
|
+
return !1;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
a as isFocusable,
|
|
21
|
+
s as isVisible,
|
|
22
|
+
n as obtainAllFocusableElements
|
|
23
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { isClient as n } from "../../../../@vueuse/shared/index.js";
|
|
2
|
+
let e;
|
|
3
|
+
const c = (i) => {
|
|
4
|
+
var o;
|
|
5
|
+
if (!n)
|
|
6
|
+
return 0;
|
|
7
|
+
if (e !== void 0)
|
|
8
|
+
return e;
|
|
9
|
+
const t = document.createElement("div");
|
|
10
|
+
t.className = `${i}-scrollbar__wrap`, t.style.visibility = "hidden", t.style.width = "100px", t.style.position = "absolute", t.style.top = "-9999px", document.body.appendChild(t);
|
|
11
|
+
const r = t.offsetWidth;
|
|
12
|
+
t.style.overflow = "scroll";
|
|
13
|
+
const l = document.createElement("div");
|
|
14
|
+
l.style.width = "100%", t.appendChild(l);
|
|
15
|
+
const d = l.offsetWidth;
|
|
16
|
+
return (o = t.parentNode) == null || o.removeChild(t), e = r - d, e;
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
c as getScrollBarWidth
|
|
20
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { isNumber as a, isStringNumber as m } from "../types.js";
|
|
2
|
+
import { debugWarn as u } from "../error.js";
|
|
3
|
+
import { isString as c, camelize as f } from "../../../../@vue/shared/dist/shared.esm-bundler.js";
|
|
4
|
+
import { isClient as d } from "../../../../@vueuse/shared/index.js";
|
|
5
|
+
const l = "utils/dom/style", e = (t = "") => t.split(" ").filter((r) => !!r.trim()), C = (t, r) => {
|
|
6
|
+
if (!t || !r)
|
|
7
|
+
return !1;
|
|
8
|
+
if (r.includes(" "))
|
|
9
|
+
throw new Error("className should not contain space.");
|
|
10
|
+
return t.classList.contains(r);
|
|
11
|
+
}, S = (t, r) => {
|
|
12
|
+
!t || !r.trim() || t.classList.add(...e(r));
|
|
13
|
+
}, h = (t, r) => {
|
|
14
|
+
!t || !r.trim() || t.classList.remove(...e(r));
|
|
15
|
+
}, N = (t, r) => {
|
|
16
|
+
var n;
|
|
17
|
+
if (!d || !t)
|
|
18
|
+
return "";
|
|
19
|
+
let s = f(r);
|
|
20
|
+
s === "float" && (s = "cssFloat");
|
|
21
|
+
try {
|
|
22
|
+
const i = t.style[s];
|
|
23
|
+
if (i)
|
|
24
|
+
return i;
|
|
25
|
+
const o = (n = document.defaultView) == null ? void 0 : n.getComputedStyle(t, "");
|
|
26
|
+
return o ? o[s] : "";
|
|
27
|
+
} catch {
|
|
28
|
+
return t.style[s];
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
function w(t, r = "px") {
|
|
32
|
+
if (!t)
|
|
33
|
+
return "";
|
|
34
|
+
if (a(t) || m(t))
|
|
35
|
+
return `${t}${r}`;
|
|
36
|
+
if (c(t))
|
|
37
|
+
return t;
|
|
38
|
+
u(l, "binding value must be a string or number");
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
S as addClass,
|
|
42
|
+
w as addUnit,
|
|
43
|
+
e as classNameToArray,
|
|
44
|
+
N as getStyle,
|
|
45
|
+
C as hasClass,
|
|
46
|
+
h as removeClass
|
|
47
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { isString as e } from "../../../@vue/shared/dist/shared.esm-bundler.js";
|
|
2
|
+
class o extends Error {
|
|
3
|
+
constructor(n) {
|
|
4
|
+
super(n), this.name = "ElementPlusError";
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
function i(r, n) {
|
|
8
|
+
throw new o(`[${r}] ${n}`);
|
|
9
|
+
}
|
|
10
|
+
function u(r, n) {
|
|
11
|
+
if (process.env.NODE_ENV !== "production") {
|
|
12
|
+
const t = e(r) ? new o(`[${r}] ${n}`) : r;
|
|
13
|
+
console.warn(t);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
u as debugWarn,
|
|
18
|
+
i as throwError
|
|
19
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isString as n } from "../../../@vue/shared/dist/shared.esm-bundler.js";
|
|
2
|
+
import { isFunction as c, isObject as b } from "../../../@vue/shared/dist/shared.esm-bundler.js";
|
|
3
|
+
const r = (e) => e === void 0, i = (e) => typeof e == "boolean", o = (e) => typeof e == "number", s = (e) => typeof Element > "u" ? !1 : e instanceof Element, f = (e) => n(e) ? !Number.isNaN(Number(e)) : !1;
|
|
4
|
+
export {
|
|
5
|
+
i as isBoolean,
|
|
6
|
+
s as isElement,
|
|
7
|
+
c as isFunction,
|
|
8
|
+
o as isNumber,
|
|
9
|
+
b as isObject,
|
|
10
|
+
n as isString,
|
|
11
|
+
f as isStringNumber,
|
|
12
|
+
r as isUndefined
|
|
13
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SuccessFilled as e, WarningFilled as l, CircleCloseFilled as o, InfoFilled as s, Close as i, Loading as c, CircleCheck as n, CircleClose as a } from "../../../../@element-plus/icons-vue/dist/index.js";
|
|
2
|
+
import { definePropType as d } from "./props/runtime.js";
|
|
3
|
+
const f = d([
|
|
4
|
+
String,
|
|
5
|
+
Object,
|
|
6
|
+
Function
|
|
7
|
+
]), C = {
|
|
8
|
+
Close: i
|
|
9
|
+
}, p = {
|
|
10
|
+
Close: i,
|
|
11
|
+
SuccessFilled: e,
|
|
12
|
+
InfoFilled: s,
|
|
13
|
+
WarningFilled: l,
|
|
14
|
+
CircleCloseFilled: o
|
|
15
|
+
}, _ = {
|
|
16
|
+
success: e,
|
|
17
|
+
warning: l,
|
|
18
|
+
error: o,
|
|
19
|
+
info: s
|
|
20
|
+
}, u = {
|
|
21
|
+
validating: c,
|
|
22
|
+
success: n,
|
|
23
|
+
error: a
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
C as CloseComponents,
|
|
27
|
+
p as TypeComponents,
|
|
28
|
+
_ as TypeComponentsMap,
|
|
29
|
+
u as ValidateComponentsMap,
|
|
30
|
+
f as iconPropType
|
|
31
|
+
};
|