@qy_better_lib/pc 0.2.19 → 0.2.21

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.
Files changed (159) hide show
  1. package/lib/contextMenu/src/index.vue.js +104 -0
  2. package/lib/contextMenu/src/index.vue2.js +4 -0
  3. package/lib/describeView/src/index.vue.js +81 -0
  4. package/lib/describeView/src/index.vue2.js +4 -0
  5. package/lib/simpleVirtualList/src/index.vue.js +84 -0
  6. package/lib/simpleVirtualList/src/index.vue2.js +4 -0
  7. package/lib/tableExtend/src/colVisible.vue.js +103 -0
  8. package/lib/tableExtend/src/colVisible.vue2.js +4 -0
  9. package/lib/tableExtend/src/index.vue.js +220 -0
  10. package/lib/tableExtend/src/index.vue2.js +4 -0
  11. package/lib/tableExtend/src/valueCol.vue.js +26 -0
  12. package/lib/tableExtend/src/valueCol.vue2.js +4 -0
  13. package/lib/textButton/src/index.vue.js +56 -0
  14. package/lib/textButton/src/index.vue2.js +4 -0
  15. package/lib/{src/utils → utils}/index.js +22 -24
  16. package/package.json +1 -1
  17. package/lib/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -115
  18. package/lib/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -153
  19. package/lib/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -68
  20. package/lib/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -183
  21. package/lib/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -32
  22. package/lib/node_modules/@element-plus/icons-vue/dist/index.js +0 -167
  23. package/lib/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -22
  24. package/lib/node_modules/@vueuse/core/index.js +0 -112
  25. package/lib/node_modules/@vueuse/shared/index.js +0 -68
  26. package/lib/node_modules/element-plus/es/_virtual/plugin-vue_export-helper.js +0 -9
  27. package/lib/node_modules/element-plus/es/components/badge/index.js +0 -7
  28. package/lib/node_modules/element-plus/es/components/button/index.js +0 -11
  29. package/lib/node_modules/element-plus/es/components/icon/index.js +0 -7
  30. package/lib/node_modules/element-plus/es/components/input/index.js +0 -7
  31. package/lib/node_modules/element-plus/es/components/message/index.js +0 -7
  32. package/lib/node_modules/element-plus/es/components/message-box/index.js +0 -10
  33. package/lib/node_modules/element-plus/es/components/notification/index.js +0 -7
  34. package/lib/node_modules/element-plus/es/components/overlay/index.js +0 -9
  35. package/lib/node_modules/element-plus/es/constants/aria.js +0 -9
  36. package/lib/node_modules/element-plus/es/constants/event.js +0 -6
  37. package/lib/node_modules/element-plus/es/constants/size.js +0 -4
  38. package/lib/node_modules/element-plus/es/directives/trap-focus/index.js +0 -32
  39. package/lib/node_modules/element-plus/es/hooks/use-aria/index.js +0 -14
  40. package/lib/node_modules/element-plus/es/hooks/use-attrs/index.js +0 -12
  41. package/lib/node_modules/element-plus/es/hooks/use-composition/index.js +0 -29
  42. package/lib/node_modules/element-plus/es/hooks/use-cursor/index.js +0 -39
  43. package/lib/node_modules/element-plus/es/hooks/use-deprecated/index.js +0 -10
  44. package/lib/node_modules/element-plus/es/hooks/use-draggable/index.js +0 -45
  45. package/lib/node_modules/element-plus/es/hooks/use-empty-values/index.js +0 -20
  46. package/lib/node_modules/element-plus/es/hooks/use-escape-keydown/index.js +0 -16
  47. package/lib/node_modules/element-plus/es/hooks/use-focus-controller/index.js +0 -34
  48. package/lib/node_modules/element-plus/es/hooks/use-id/index.js +0 -15
  49. package/lib/node_modules/element-plus/es/hooks/use-locale/index.js +0 -24
  50. package/lib/node_modules/element-plus/es/hooks/use-lockscreen/index.js +0 -30
  51. package/lib/node_modules/element-plus/es/hooks/use-namespace/index.js +0 -44
  52. package/lib/node_modules/element-plus/es/hooks/use-prop/index.js +0 -11
  53. package/lib/node_modules/element-plus/es/hooks/use-same-target/index.js +0 -16
  54. package/lib/node_modules/element-plus/es/hooks/use-size/index.js +0 -16
  55. package/lib/node_modules/element-plus/es/hooks/use-z-index/index.js +0 -22
  56. package/lib/node_modules/element-plus/es/locale/lang/en.js +0 -182
  57. package/lib/node_modules/element-plus/es/utils/browser.js +0 -6
  58. package/lib/node_modules/element-plus/es/utils/dom/aria.js +0 -29
  59. package/lib/node_modules/element-plus/es/utils/dom/scroll.js +0 -20
  60. package/lib/node_modules/element-plus/es/utils/dom/style.js +0 -45
  61. package/lib/node_modules/element-plus/es/utils/error.js +0 -14
  62. package/lib/node_modules/element-plus/es/utils/i18n.js +0 -4
  63. package/lib/node_modules/element-plus/es/utils/objects.js +0 -4
  64. package/lib/node_modules/element-plus/es/utils/types.js +0 -13
  65. package/lib/node_modules/element-plus/es/utils/typescript.js +0 -4
  66. package/lib/node_modules/element-plus/es/utils/vue/icon.js +0 -29
  67. package/lib/node_modules/element-plus/es/utils/vue/install.js +0 -17
  68. package/lib/node_modules/element-plus/es/utils/vue/props/runtime.js +0 -31
  69. package/lib/node_modules/element-plus/es/utils/vue/validator.js +0 -5
  70. package/lib/node_modules/element-plus/es/utils/vue/vnode.js +0 -5
  71. package/lib/node_modules/lodash-es/_Hash.js +0 -20
  72. package/lib/node_modules/lodash-es/_ListCache.js +0 -20
  73. package/lib/node_modules/lodash-es/_Map.js +0 -6
  74. package/lib/node_modules/lodash-es/_MapCache.js +0 -20
  75. package/lib/node_modules/lodash-es/_Symbol.js +0 -5
  76. package/lib/node_modules/lodash-es/_apply.js +0 -16
  77. package/lib/node_modules/lodash-es/_arrayMap.js +0 -8
  78. package/lib/node_modules/lodash-es/_arrayPush.js +0 -8
  79. package/lib/node_modules/lodash-es/_assignValue.js +0 -10
  80. package/lib/node_modules/lodash-es/_assocIndexOf.js +0 -10
  81. package/lib/node_modules/lodash-es/_baseAssignValue.js +0 -12
  82. package/lib/node_modules/lodash-es/_baseFlatten.js +0 -13
  83. package/lib/node_modules/lodash-es/_baseGet.js +0 -11
  84. package/lib/node_modules/lodash-es/_baseGetTag.js +0 -10
  85. package/lib/node_modules/lodash-es/_baseHasIn.js +0 -6
  86. package/lib/node_modules/lodash-es/_baseIsArguments.js +0 -9
  87. package/lib/node_modules/lodash-es/_baseIsNative.js +0 -16
  88. package/lib/node_modules/lodash-es/_basePick.js +0 -10
  89. package/lib/node_modules/lodash-es/_basePickBy.js +0 -13
  90. package/lib/node_modules/lodash-es/_baseSet.js +0 -24
  91. package/lib/node_modules/lodash-es/_baseSetToString.js +0 -14
  92. package/lib/node_modules/lodash-es/_baseToString.js +0 -18
  93. package/lib/node_modules/lodash-es/_castPath.js +0 -10
  94. package/lib/node_modules/lodash-es/_coreJsData.js +0 -5
  95. package/lib/node_modules/lodash-es/_defineProperty.js +0 -11
  96. package/lib/node_modules/lodash-es/_flatRest.js +0 -9
  97. package/lib/node_modules/lodash-es/_freeGlobal.js +0 -4
  98. package/lib/node_modules/lodash-es/_getMapData.js +0 -8
  99. package/lib/node_modules/lodash-es/_getNative.js +0 -9
  100. package/lib/node_modules/lodash-es/_getRawTag.js +0 -15
  101. package/lib/node_modules/lodash-es/_getValue.js +0 -6
  102. package/lib/node_modules/lodash-es/_hasPath.js +0 -19
  103. package/lib/node_modules/lodash-es/_hashClear.js +0 -7
  104. package/lib/node_modules/lodash-es/_hashDelete.js +0 -7
  105. package/lib/node_modules/lodash-es/_hashGet.js +0 -13
  106. package/lib/node_modules/lodash-es/_hashHas.js +0 -9
  107. package/lib/node_modules/lodash-es/_hashSet.js +0 -9
  108. package/lib/node_modules/lodash-es/_isFlattenable.js +0 -10
  109. package/lib/node_modules/lodash-es/_isIndex.js +0 -8
  110. package/lib/node_modules/lodash-es/_isKey.js +0 -12
  111. package/lib/node_modules/lodash-es/_isKeyable.js +0 -7
  112. package/lib/node_modules/lodash-es/_isMasked.js +0 -11
  113. package/lib/node_modules/lodash-es/_listCacheClear.js +0 -6
  114. package/lib/node_modules/lodash-es/_listCacheDelete.js +0 -12
  115. package/lib/node_modules/lodash-es/_listCacheGet.js +0 -8
  116. package/lib/node_modules/lodash-es/_listCacheHas.js +0 -7
  117. package/lib/node_modules/lodash-es/_listCacheSet.js +0 -8
  118. package/lib/node_modules/lodash-es/_mapCacheClear.js +0 -13
  119. package/lib/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  120. package/lib/node_modules/lodash-es/_mapCacheGet.js +0 -7
  121. package/lib/node_modules/lodash-es/_mapCacheHas.js +0 -7
  122. package/lib/node_modules/lodash-es/_mapCacheSet.js +0 -8
  123. package/lib/node_modules/lodash-es/_memoizeCapped.js +0 -11
  124. package/lib/node_modules/lodash-es/_nativeCreate.js +0 -5
  125. package/lib/node_modules/lodash-es/_objectToString.js +0 -7
  126. package/lib/node_modules/lodash-es/_overRest.js +0 -15
  127. package/lib/node_modules/lodash-es/_root.js +0 -5
  128. package/lib/node_modules/lodash-es/_setToString.js +0 -6
  129. package/lib/node_modules/lodash-es/_shortOut.js +0 -16
  130. package/lib/node_modules/lodash-es/_stringToPath.js +0 -10
  131. package/lib/node_modules/lodash-es/_toKey.js +0 -10
  132. package/lib/node_modules/lodash-es/_toSource.js +0 -17
  133. package/lib/node_modules/lodash-es/constant.js +0 -8
  134. package/lib/node_modules/lodash-es/eq.js +0 -6
  135. package/lib/node_modules/lodash-es/flatten.js +0 -8
  136. package/lib/node_modules/lodash-es/fromPairs.js +0 -10
  137. package/lib/node_modules/lodash-es/get.js +0 -8
  138. package/lib/node_modules/lodash-es/hasIn.js +0 -8
  139. package/lib/node_modules/lodash-es/identity.js +0 -6
  140. package/lib/node_modules/lodash-es/isArguments.js +0 -10
  141. package/lib/node_modules/lodash-es/isArray.js +0 -4
  142. package/lib/node_modules/lodash-es/isFunction.js +0 -12
  143. package/lib/node_modules/lodash-es/isLength.js +0 -7
  144. package/lib/node_modules/lodash-es/isNil.js +0 -6
  145. package/lib/node_modules/lodash-es/isObject.js +0 -7
  146. package/lib/node_modules/lodash-es/isObjectLike.js +0 -6
  147. package/lib/node_modules/lodash-es/isSymbol.js +0 -9
  148. package/lib/node_modules/lodash-es/memoize.js +0 -18
  149. package/lib/node_modules/lodash-es/pick.js +0 -8
  150. package/lib/node_modules/lodash-es/toString.js +0 -7
  151. /package/lib/{src/contextMenu → contextMenu}/index.js +0 -0
  152. /package/lib/{src/describeView → describeView}/index.js +0 -0
  153. /package/lib/{src/index.js → index.js} +0 -0
  154. /package/lib/{src/simpleVirtualList → simpleVirtualList}/index.js +0 -0
  155. /package/lib/{src/tableExtend → tableExtend}/index.js +0 -0
  156. /package/lib/{src/tableExtend → tableExtend}/props.js +0 -0
  157. /package/lib/{src/tableExtend → tableExtend}/type.js +0 -0
  158. /package/lib/{src/tableExtend → tableExtend}/useTable.js +0 -0
  159. /package/lib/{src/textButton → textButton}/index.js +0 -0
@@ -1,45 +0,0 @@
1
- import { ref as P, onMounted as T, watchEffect as W, onBeforeUnmount as y } from "vue";
2
- import { addUnit as w } from "../../utils/dom/style.js";
3
- const U = (n, u, M, h) => {
4
- const o = {
5
- offsetX: 0,
6
- offsetY: 0
7
- }, a = P(!1), g = (t, e) => {
8
- if (n.value) {
9
- const { offsetX: f, offsetY: l } = o, s = n.value.getBoundingClientRect(), i = s.left, c = s.top, m = s.width, d = s.height, v = document.documentElement.clientWidth, L = document.documentElement.clientHeight, x = -i + f, D = -c + l, b = v - i - m + f, H = L - c - (d < L ? d : 0) + l;
10
- h?.value || (t = Math.min(Math.max(t, x), b), e = Math.min(Math.max(e, D), H)), o.offsetX = t, o.offsetY = e, n.value.style.transform = `translate(${w(t)}, ${w(e)})`;
11
- }
12
- }, p = (t) => {
13
- const e = t.clientX, f = t.clientY, { offsetX: l, offsetY: s } = o, i = (m) => {
14
- a.value || (a.value = !0);
15
- const d = l + m.clientX - e, v = s + m.clientY - f;
16
- g(d, v);
17
- }, c = () => {
18
- a.value = !1, document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", c);
19
- };
20
- document.addEventListener("mousemove", i), document.addEventListener("mouseup", c);
21
- }, X = () => {
22
- u.value && n.value && (u.value.addEventListener("mousedown", p), window.addEventListener("resize", r));
23
- }, E = () => {
24
- u.value && n.value && (u.value.removeEventListener("mousedown", p), window.removeEventListener("resize", r));
25
- }, Y = () => {
26
- o.offsetX = 0, o.offsetY = 0, n.value && (n.value.style.transform = "");
27
- }, r = () => {
28
- const { offsetX: t, offsetY: e } = o;
29
- g(t, e);
30
- };
31
- return T(() => {
32
- W(() => {
33
- M.value ? X() : E();
34
- });
35
- }), y(() => {
36
- E();
37
- }), {
38
- isDragging: a,
39
- resetPosition: Y,
40
- updatePosition: r
41
- };
42
- };
43
- export {
44
- U as useDraggable
45
- };
@@ -1,20 +0,0 @@
1
- import "vue";
2
- import { buildProps as o, definePropType as t } from "../../utils/vue/props/runtime.js";
3
- import { isFunction as r } from "../../../../@vue/shared/dist/shared.esm-bundler.js";
4
- const m = Symbol("emptyValuesContextKey"), u = o({
5
- emptyValues: Array,
6
- valueOnClear: {
7
- type: t([
8
- String,
9
- Number,
10
- Boolean,
11
- Function
12
- ]),
13
- default: void 0,
14
- validator: (e) => r(e) ? !e() : !e
15
- }
16
- });
17
- export {
18
- m as emptyValuesContextKey,
19
- u as useEmptyValuesProps
20
- };
@@ -1,16 +0,0 @@
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
- };
@@ -1,34 +0,0 @@
1
- import { getCurrentInstance as b, shallowRef as w, ref as x, watch as C, unref as l } from "vue";
2
- import { useEventListener as c } from "../../../../@vueuse/core/index.js";
3
- import { isFocusable as E } from "../../utils/dom/aria.js";
4
- import { isFunction as p } from "../../../../@vue/shared/dist/shared.esm-bundler.js";
5
- function T(h, {
6
- disabled: r,
7
- beforeFocus: a,
8
- afterFocus: i,
9
- beforeBlur: s,
10
- afterBlur: f
11
- } = {}) {
12
- const g = b(), { emit: m } = g, n = w(), u = x(!1), v = (t) => {
13
- const e = p(a) ? a(t) : !1;
14
- l(r) || u.value || e || (u.value = !0, m("focus", t), i?.());
15
- }, d = (t) => {
16
- var e;
17
- const o = p(s) ? s(t) : !1;
18
- l(r) || t.relatedTarget && ((e = n.value) != null && e.contains(t.relatedTarget)) || o || (u.value = !1, m("blur", t), f?.());
19
- }, F = (t) => {
20
- var e, o;
21
- l(r) || E(t.target) || (e = n.value) != null && e.contains(document.activeElement) && n.value !== document.activeElement || (o = h.value) == null || o.focus();
22
- };
23
- return C([n, () => l(r)], ([t, e]) => {
24
- t && (e ? t.removeAttribute("tabindex") : t.setAttribute("tabindex", "-1"));
25
- }), c(n, "focus", v, !0), c(n, "blur", d, !0), c(n, "click", F, !0), {
26
- isFocused: u,
27
- wrapperRef: n,
28
- handleFocus: v,
29
- handleBlur: d
30
- };
31
- }
32
- export {
33
- T as useFocusController
34
- };
@@ -1,15 +0,0 @@
1
- import { inject as o, getCurrentInstance as c, unref as i } from "vue";
2
- import { useGetDerivedNamespace as s } from "../use-namespace/index.js";
3
- import { computedEager as d } from "../../../../@vueuse/shared/index.js";
4
- const t = {
5
- prefix: Math.floor(Math.random() * 1e4),
6
- current: 0
7
- }, u = Symbol("elIdInjection"), I = () => c() ? o(u, t) : t, j = (n) => {
8
- const e = I(), r = s();
9
- return d(() => i(n) || `${r.value}-id-${e.prefix}-${e.current++}`);
10
- };
11
- export {
12
- u as ID_INJECTION_KEY,
13
- j as useId,
14
- I as useIdInjection
15
- };
@@ -1,24 +0,0 @@
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 i from "../../../../lodash-es/get.js";
4
- const f = (t) => (e, o) => d(e, o, s(t)), d = (t, e, o) => i(o, t, t).replace(/\{(\w+)\}/g, (x, n) => {
5
- var r;
6
- return `${(r = e?.[n]) != null ? r : `{${n}}`}`;
7
- }), g = (t) => {
8
- const e = c(() => s(t).name), o = u(t) ? t : l(t);
9
- return {
10
- lang: e,
11
- locale: o,
12
- t: f(t)
13
- };
14
- }, p = Symbol("localeContextKey"), y = (t) => {
15
- const e = t || a(p, l());
16
- return g(c(() => e.value || m));
17
- };
18
- export {
19
- g as buildLocaleContext,
20
- f as buildTranslator,
21
- p as localeContextKey,
22
- d as translate,
23
- y as useLocale
24
- };
@@ -1,30 +0,0 @@
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 r, addClass as v, getStyle 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, l = {}) => {
8
- a(d) || b("[useLockscreen]", "You need to pass a ref param to this function");
9
- const n = l.ns || h("popup"), e = f(() => n.bm("parent", "hidden"));
10
- if (!S || r(document.body, e.value))
11
- return;
12
- let t = 0, o = !1, s = "0";
13
- const c = () => {
14
- setTimeout(() => {
15
- typeof document > "u" || o && document && (document.body.style.width = s, C(document.body, e.value));
16
- }, 200);
17
- };
18
- p(d, (i) => {
19
- if (!i) {
20
- c();
21
- return;
22
- }
23
- o = !r(document.body, e.value), o && (s = document.body.style.width, v(document.body, e.value)), t = H(n.namespace.value);
24
- const m = document.documentElement.clientHeight < document.body.scrollHeight, u = w(document.body, "overflowY");
25
- t > 0 && (m || u === "scroll") && o && (document.body.style.width = `calc(100% - ${t}px)`);
26
- }), y(() => c());
27
- };
28
- export {
29
- E as useLockscreen
30
- };
@@ -1,44 +0,0 @@
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
- };
@@ -1,11 +0,0 @@
1
- import { getCurrentInstance as e, computed as u } from "vue";
2
- const l = (t) => {
3
- const r = e();
4
- return u(() => {
5
- var o, n;
6
- return (n = (o = r?.proxy) == null ? void 0 : o.$props) == null ? void 0 : n[t];
7
- });
8
- };
9
- export {
10
- l as useProp
11
- };
@@ -1,16 +0,0 @@
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
- };
@@ -1,16 +0,0 @@
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
- };
@@ -1,22 +0,0 @@
1
- import { getCurrentInstance as c, inject as n, computed as i, unref as m, ref as a } from "vue";
2
- import { isNumber as f } from "../../utils/types.js";
3
- import { isClient as Z } from "../../../../@vueuse/shared/index.js";
4
- const I = {
5
- current: 0
6
- }, s = a(0), v = 2e3, u = Symbol("elZIndexContextKey"), C = Symbol("zIndexContextKey"), j = (x) => {
7
- const e = c() ? n(u, I) : I, d = x || (c() ? n(C, void 0) : void 0), t = i(() => {
8
- const r = m(d);
9
- return f(r) ? r : v;
10
- }), o = i(() => t.value + s.value), l = () => (e.current++, s.value = e.current, o.value);
11
- return !Z && n(u), {
12
- initialZIndex: t,
13
- currentZIndex: o,
14
- nextZIndex: l
15
- };
16
- };
17
- export {
18
- u as ZINDEX_INJECTION_KEY,
19
- v as defaultInitialZIndex,
20
- j as useZIndex,
21
- C as zIndexContextKey
22
- };
@@ -1,182 +0,0 @@
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
- weeks: {
48
- sun: "Sun",
49
- mon: "Mon",
50
- tue: "Tue",
51
- wed: "Wed",
52
- thu: "Thu",
53
- fri: "Fri",
54
- sat: "Sat"
55
- },
56
- weeksFull: {
57
- sun: "Sunday",
58
- mon: "Monday",
59
- tue: "Tuesday",
60
- wed: "Wednesday",
61
- thu: "Thursday",
62
- fri: "Friday",
63
- sat: "Saturday"
64
- },
65
- months: {
66
- jan: "Jan",
67
- feb: "Feb",
68
- mar: "Mar",
69
- apr: "Apr",
70
- may: "May",
71
- jun: "Jun",
72
- jul: "Jul",
73
- aug: "Aug",
74
- sep: "Sep",
75
- oct: "Oct",
76
- nov: "Nov",
77
- dec: "Dec"
78
- }
79
- },
80
- inputNumber: {
81
- decrease: "decrease number",
82
- increase: "increase number"
83
- },
84
- select: {
85
- loading: "Loading",
86
- noMatch: "No matching data",
87
- noData: "No data",
88
- placeholder: "Select"
89
- },
90
- mention: {
91
- loading: "Loading"
92
- },
93
- dropdown: {
94
- toggleDropdown: "Toggle Dropdown"
95
- },
96
- cascader: {
97
- noMatch: "No matching data",
98
- loading: "Loading",
99
- placeholder: "Select",
100
- noData: "No data"
101
- },
102
- pagination: {
103
- goto: "Go to",
104
- pagesize: "/page",
105
- total: "Total {total}",
106
- pageClassifier: "",
107
- page: "Page",
108
- prev: "Go to previous page",
109
- next: "Go to next page",
110
- currentPage: "page {pager}",
111
- prevPages: "Previous {pager} pages",
112
- nextPages: "Next {pager} pages",
113
- deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
114
- },
115
- dialog: {
116
- close: "Close this dialog"
117
- },
118
- drawer: {
119
- close: "Close this dialog"
120
- },
121
- messagebox: {
122
- title: "Message",
123
- confirm: "OK",
124
- cancel: "Cancel",
125
- error: "Illegal input",
126
- close: "Close this dialog"
127
- },
128
- upload: {
129
- deleteTip: "press delete to remove",
130
- delete: "Delete",
131
- preview: "Preview",
132
- continue: "Continue"
133
- },
134
- slider: {
135
- defaultLabel: "slider between {min} and {max}",
136
- defaultRangeStartLabel: "pick start value",
137
- defaultRangeEndLabel: "pick end value"
138
- },
139
- table: {
140
- emptyText: "No Data",
141
- confirmFilter: "Confirm",
142
- resetFilter: "Reset",
143
- clearFilter: "All",
144
- sumText: "Sum"
145
- },
146
- tour: {
147
- next: "Next",
148
- previous: "Previous",
149
- finish: "Finish",
150
- close: "Close this dialog"
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
- };
@@ -1,6 +0,0 @@
1
- import { isClient as i } from "../../../@vueuse/shared/index.js";
2
- const t = () => i && /firefox/i.test(window.navigator.userAgent);
3
- export {
4
- i as isClient,
5
- t as isFirefox
6
- };
@@ -1,29 +0,0 @@
1
- const s = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])', n = (t) => typeof Element > "u" ? !1 : t instanceof Element, a = (t) => getComputedStyle(t).position === "fixed" ? !1 : t.offsetParent !== null, u = (t) => Array.from(t.querySelectorAll(s)).filter((e) => i(e) && a(e)), i = (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
- }, o = (t, e) => {
19
- if (!t || !t.focus)
20
- return;
21
- let r = !1;
22
- n(t) && !i(t) && !t.getAttribute("tabindex") && (t.setAttribute("tabindex", "-1"), r = !0), t.focus(e), n(t) && r && t.removeAttribute("tabindex");
23
- };
24
- export {
25
- o as focusElement,
26
- i as isFocusable,
27
- a as isVisible,
28
- u as obtainAllFocusableElements
29
- };
@@ -1,20 +0,0 @@
1
- import { isClient as n } from "../../../../@vueuse/shared/index.js";
2
- let e;
3
- const c = (i) => {
4
- var l;
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 o = document.createElement("div");
14
- o.style.width = "100%", t.appendChild(o);
15
- const d = o.offsetWidth;
16
- return (l = t.parentNode) == null || l.removeChild(t), e = r - d, e;
17
- };
18
- export {
19
- c as getScrollBarWidth
20
- };
@@ -1,45 +0,0 @@
1
- import { isNumber as a, isStringNumber as c } from "../types.js";
2
- import { camelize as f, isString as u } from "../../../../@vue/shared/dist/shared.esm-bundler.js";
3
- import { isClient as m } from "../../../../@vueuse/shared/index.js";
4
- const e = (t = "") => t.split(" ").filter((r) => !!r.trim()), y = (t, r) => {
5
- if (!t || !r)
6
- return !1;
7
- if (r.includes(" "))
8
- throw new Error("className should not contain space.");
9
- return t.classList.contains(r);
10
- }, C = (t, r) => {
11
- !t || !r.trim() || t.classList.add(...e(r));
12
- }, g = (t, r) => {
13
- !t || !r.trim() || t.classList.remove(...e(r));
14
- }, h = (t, r) => {
15
- var n;
16
- if (!m || !t || !r)
17
- return "";
18
- let s = f(r);
19
- s === "float" && (s = "cssFloat");
20
- try {
21
- const i = t.style[s];
22
- if (i)
23
- return i;
24
- const o = (n = document.defaultView) == null ? void 0 : n.getComputedStyle(t, "");
25
- return o ? o[s] : "";
26
- } catch {
27
- return t.style[s];
28
- }
29
- };
30
- function S(t, r = "px") {
31
- if (!t)
32
- return "";
33
- if (a(t) || c(t))
34
- return `${t}${r}`;
35
- if (u(t))
36
- return t;
37
- }
38
- export {
39
- C as addClass,
40
- S as addUnit,
41
- e as classNameToArray,
42
- h as getStyle,
43
- y as hasClass,
44
- g as removeClass
45
- };
@@ -1,14 +0,0 @@
1
- class o extends Error {
2
- constructor(r) {
3
- super(r), this.name = "ElementPlusError";
4
- }
5
- }
6
- function n(e, r) {
7
- throw new o(`[${e}] ${r}`);
8
- }
9
- function s(e, r) {
10
- }
11
- export {
12
- s as debugWarn,
13
- n as throwError
14
- };
@@ -1,4 +0,0 @@
1
- const u = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t);
2
- export {
3
- u as isKorean
4
- };
@@ -1,4 +0,0 @@
1
- const s = (e) => Object.keys(e);
2
- export {
3
- s as keysOf
4
- };
@@ -1,13 +0,0 @@
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 o = (e) => e === void 0, r = (e) => typeof e == "boolean", i = (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
- r as isBoolean,
6
- s as isElement,
7
- c as isFunction,
8
- i as isNumber,
9
- b as isObject,
10
- n as isString,
11
- f as isStringNumber,
12
- o as isUndefined
13
- };
@@ -1,4 +0,0 @@
1
- const e = (t) => t;
2
- export {
3
- e as mutable
4
- };
@@ -1,29 +0,0 @@
1
- import { CircleCloseFilled as l, WarningFilled as i, InfoFilled as e, SuccessFilled as s, Close as o, CircleClose as c, CircleCheck as n, Loading as a } from "../../../../@element-plus/icons-vue/dist/index.js";
2
- import { definePropType as r } from "./props/runtime.js";
3
- const f = r([
4
- String,
5
- Object,
6
- Function
7
- ]), p = {
8
- Close: o,
9
- SuccessFilled: s,
10
- InfoFilled: e,
11
- WarningFilled: i,
12
- CircleCloseFilled: l
13
- }, _ = {
14
- primary: e,
15
- success: s,
16
- warning: i,
17
- error: l,
18
- info: e
19
- }, u = {
20
- validating: a,
21
- success: n,
22
- error: c
23
- };
24
- export {
25
- p as TypeComponents,
26
- _ as TypeComponentsMap,
27
- u as ValidateComponentsMap,
28
- f as iconPropType
29
- };