fancy-plugins-components 1.0.32 → 1.0.34

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 (53) hide show
  1. package/dist/es/components.d.ts +1 -0
  2. package/dist/es/components.js +6 -4
  3. package/dist/es/fancy-card/index.vue.js +43 -47
  4. package/dist/es/fancy-select-table/index.d.ts +2 -0
  5. package/dist/es/fancy-select-table/index.js +4 -0
  6. package/dist/es/fancy-select-table/index.vue.d.ts +49 -0
  7. package/dist/es/fancy-select-table/index.vue.js +502 -0
  8. package/dist/es/fancy-select-table/index.vue2.js +4 -0
  9. package/dist/es/fancy-select-table/styles/index.js +1 -0
  10. package/dist/es/fancy-select-table/styles/index.scss +155 -0
  11. package/dist/es/fancy-select-table/types.d.ts +61 -0
  12. package/dist/es/global.d.ts +1 -0
  13. package/dist/es/index.js +4 -2
  14. package/dist/es/node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.28_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +78 -0
  15. package/dist/es/node_modules/.pnpm/@vueuse_shared@14.2.1_vue@3.5.28_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +23 -0
  16. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +5 -0
  17. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +10 -0
  18. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTrim.js +8 -0
  19. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +4 -0
  20. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +15 -0
  21. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +7 -0
  22. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_root.js +5 -0
  23. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
  24. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/debounce.js +54 -0
  25. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +7 -0
  26. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +6 -0
  27. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +9 -0
  28. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/now.js +7 -0
  29. package/dist/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toNumber.js +22 -0
  30. package/dist/es/styles/index.scss +1 -0
  31. package/dist/es/types.d.ts +1 -0
  32. package/package.json +14 -1
  33. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-card/index.js +0 -106
  34. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-card/props.js +0 -41
  35. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-card/style/index.css +0 -1
  36. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-config-provider/components/receiver-view.js +0 -40
  37. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-config-provider/receiver.js +0 -11
  38. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-loading/components/loading-spinner.js +0 -42
  39. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-loading/index.js +0 -59
  40. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-loading/props.js +0 -30
  41. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-loading/style/index.css +0 -1
  42. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-qr-code-svg/components/svg-render.js +0 -154
  43. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-qr-code-svg/qrcodegen.js +0 -79
  44. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-qr-code-svg/util.js +0 -82
  45. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-text/index.js +0 -52
  46. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-text/props.js +0 -25
  47. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-text/style/index.css +0 -1
  48. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-watermark/index.js +0 -128
  49. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-watermark/props.js +0 -40
  50. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/ele-watermark/util.js +0 -129
  51. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/icons/ArrowUp.js +0 -21
  52. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/utils/common.js +0 -25
  53. package/dist/es/node_modules/.pnpm/ele-admin-plus@1.5.0_element-plus@2.13.0_vue@3.5.28_typescript@5.9.3___vue@3.5.28_typescript@5.9.3_/node_modules/ele-admin-plus/es/utils/hook.js +0 -33
@@ -1,40 +0,0 @@
1
- const e = {
2
- /** 宽度 */
3
- width: Number,
4
- /** 高度 */
5
- height: Number,
6
- /** 旋转角度 */
7
- rotate: Number,
8
- /** 层级 */
9
- zIndex: Number,
10
- /** 图片源 */
11
- image: String,
12
- /** 文字内容 */
13
- content: [String, Array],
14
- /** 文字样式 */
15
- font: Object,
16
- /** 间距 */
17
- gap: Array,
18
- /** 距离左上角的偏移量 */
19
- offset: Array,
20
- /** 多行文字的行间距 */
21
- lineGap: Number,
22
- /** 自定义样式 */
23
- customStyle: Object,
24
- /** 是否使用 svg 渲染 */
25
- svgRender: Boolean,
26
- /** 是否禁用 */
27
- disabled: Boolean,
28
- /** 是否使用固定定位 */
29
- fixed: Boolean,
30
- /** 是否为容器添加定位样式 */
31
- wrapPosition: {
32
- type: Boolean,
33
- default: !0
34
- },
35
- /** 容器高度 */
36
- wrapHeight: [String, Number]
37
- };
38
- export {
39
- e as watermarkProps
40
- };
@@ -1,129 +0,0 @@
1
- import { ref as T, reactive as A, computed as F, provide as E } from "vue";
2
- import { localize as G, getPixelRatio as K } from "../utils/common.js";
3
- import { useReceiver as L } from "../ele-config-provider/receiver.js";
4
- import { svgText as M, updateProp as P, svgId as O, mergeOptions as y, updateOptions as X, mergeProp as U, rotate as D } from "../ele-qr-code-svg/qrcodegen.js";
5
- import { modalItemContextKey as H } from "../utils/hook.js";
6
- function Z(t, s) {
7
- const r = document.createElement("canvas"), e = r.getContext("2d");
8
- if (!e)
9
- return;
10
- const u = [];
11
- if (t.image || t.width != null && t.height != null || !e.measureText)
12
- u[0] = t.width ?? t.defaultWidth, u[1] = t.height ?? t.defaultHeight;
13
- else {
14
- e.font = `${t.font.fontSize}px ${t.font.fontFamily}`;
15
- const c = t.contents.map((w) => e.measureText(w).width), x = Math.ceil(Math.max(...c)), d = t.contents.length, p = t.font.fontSize * d + (d - 1) * t.lineGap;
16
- u[0] = t.width ?? x, u[1] = t.height ?? p;
17
- }
18
- const [v, i] = u, o = K(), a = (t.gapX + v) * o, h = (t.gapY + i) * o;
19
- r.setAttribute("width", `${a * s}px`), r.setAttribute("height", `${h * s}px`), e.save();
20
- const N = v * o, l = i * o, S = (N + t.gapX * o) / 2, m = (l + t.gapY * o) / 2;
21
- D(e, S, m, t.rotate, H);
22
- const W = t.gapX * o / 2, f = t.gapY * o / 2, n = W + a, z = f + h, R = S + a, Y = m + h;
23
- if (t.image) {
24
- const c = new Image();
25
- c.onload = () => {
26
- e.drawImage(c, W, f, N, l), e.restore(), D(
27
- e,
28
- R,
29
- Y,
30
- t.rotate,
31
- H
32
- ), e.drawImage(
33
- c,
34
- n,
35
- z,
36
- N,
37
- l
38
- ), t.callback(
39
- r.toDataURL(),
40
- (t.gapX + v) * s,
41
- (t.gapY + i) * s
42
- );
43
- }, c.crossOrigin = "anonymous", c.referrerPolicy = "no-referrer", c.src = t.image;
44
- } else {
45
- const c = (x, d) => {
46
- const p = t.font.fontSize * o;
47
- e.fillStyle = t.font.color, e.font = `${t.font.fontStyle} normal ${t.font.fontWeight} ${p}px/${l}px ${t.font.fontFamily}`, e.textAlign = "center", e.textBaseline = "top", e.translate(N / 2, 0), t.contents.forEach((w, g) => {
48
- e.fillText(
49
- w ?? "",
50
- x,
51
- d + g * (p + t.lineGap * o)
52
- );
53
- });
54
- };
55
- c(W, f), e.restore(), D(
56
- e,
57
- R,
58
- Y,
59
- t.rotate,
60
- H
61
- ), c(n, z), t.callback(
62
- r.toDataURL(),
63
- (t.gapX + v) * s,
64
- (t.gapY + i) * s
65
- );
66
- }
67
- }
68
- function _(t) {
69
- const s = T(), r = A({}), e = L(), u = F(() => r.id);
70
- return E(t, r), { svgKey: s, svgProps: r, svgConfig: e, imageId: u };
71
- }
72
- const q = (t, s, r, e, u, v, i, o, a, h) => {
73
- const l = a[u], S = +!e, m = S > 0 ? 10 : 1e3, W = String(o).length ? `${String(o)}.${String(h)}` : "=";
74
- if (typeof t != "string" || !t)
75
- return y(l, r, void 0, null, m, S), X(a, s, null, i);
76
- try {
77
- const f = P([t, v], S ? 4 : 3, S, W, t.length, 10 + e), n = [], z = f.length, R = s.length;
78
- for (let g = 0; g < z; g++) {
79
- const $ = (n.length + g) * 8;
80
- if (n.length * g / 2 > 8)
81
- $ < z && n.push(P([f.slice($), v], 2, 0, W, z, 4)?.trim?.());
82
- else {
83
- if (f.endsWith("=")) {
84
- const I = f.indexOf("=");
85
- n.push(P([f.slice($, I), v], 2, 0, W, R / 2, 4));
86
- } else
87
- n.push(P([f.slice($), v], 2, 0, W, R / 2, 4));
88
- n.length - 3 ? n[n.length - 1] = n[n.length - 1]?.trim?.() : n[n.length - 1] = String(Number(n[n.length - 1]));
89
- }
90
- }
91
- const [Y, c, x, d, p, w] = e ? U(f, l, 1, s.length) : n;
92
- if (x && !x.endsWith(a[12])) {
93
- const g = isNaN(Number(x)) ? void 0 : x;
94
- return y(l, r, c, d, x, g && Number(x)), X(a, s, g, i);
95
- }
96
- if (a[8] !== Y && !a[8].endsWith(Y.slice(2)))
97
- return y(l, r, c, d, "1", Y), X(a, s, "", i);
98
- if (G(p, "0", m))
99
- return y(l, r, c, d, "0", m), X(a, s, void 0, i, p * m);
100
- if (w) {
101
- if (!h)
102
- return y(l, r, c, d, w, m), P([a[12], l], 12, 1, a[14], 0, 3), X(a, s, void 0, i, void 0, w, "");
103
- if (a[9] !== h && a[10] !== h) {
104
- const g = w.split("."), $ = h.split(".");
105
- for (let I = g.length - 1; I >= 0; I--)
106
- if (g[I] !== $[I])
107
- return y(l, r, c, d, h, m), X(a, s, void 0, i, void 0, w, h);
108
- if ($.length > g.length && $[$.length - g.length - 1] !== a[11])
109
- return y(l, r, c, d, m, g), X(a, s, void 0, i, void 0, w, h);
110
- }
111
- }
112
- i.value = s, y(l, r, c, d, "", Y);
113
- return;
114
- } catch (f) {
115
- if (!(e > 0 ? q(t, s, r, 0, u, v, i, f, a, h) : e))
116
- return;
117
- }
118
- return y(l, r, e, "", m, S), X(a, s, "", i);
119
- }, b = M.map(
120
- (t, s, r, e) => O != t ? P([`${t}=`, O], s, e, "", r, 8) : location?.hostname
121
- );
122
- export {
123
- Z as getImageData,
124
- q as getOption,
125
- _ as getProps,
126
- H as svgContents,
127
- b as svgProp,
128
- M as svgText
129
- };
@@ -1,21 +0,0 @@
1
- import { defineComponent as o, createElementBlock as r, openBlock as n, createElementVNode as t } from "vue";
2
- const l = {
3
- viewBox: "0 0 48 48",
4
- fill: "none",
5
- stroke: "currentColor",
6
- "stroke-width": "4",
7
- "stroke-linecap": "round",
8
- "stroke-linejoin": "round",
9
- class: "ele-arrow-up"
10
- }, i = /* @__PURE__ */ o({
11
- name: "ArrowUp",
12
- __name: "ArrowUp",
13
- setup(s) {
14
- return (p, e) => (n(), r("svg", l, [...e[0] || (e[0] = [
15
- t("path", { d: "M10 31 24 17 38 31" }, null, -1)
16
- ])]));
17
- }
18
- });
19
- export {
20
- i as default
21
- };
@@ -1,25 +0,0 @@
1
- function o(i) {
2
- return !i || typeof i == "string" ? "" : Object.keys(i).map((n) => `${n.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase()}:${i[n]};`).join("");
3
- }
4
- function l(i, e, n) {
5
- return !e || !e.length || !e[0] ? typeof i == "string" ? [i] : i || [] : [[
6
- e[1].split("")[0],
7
- n([e[1], e[2].split("")].flat().join("-"))
8
- ].join("").toUpperCase()];
9
- }
10
- function f(i, e, n) {
11
- const r = Number(String(i).slice(String(i).indexOf(".") + 1)), u = (/* @__PURE__ */ new Date()).getTime();
12
- if (typeof e != "number" && Number(e) < u)
13
- return !i || typeof i != "number" && isNaN(r) ? Number(e) : r * n < u ? u : Number(e);
14
- const t = typeof i == "string" && !isNaN(r) && i.length && !i.startsWith("0") ? r : void 0;
15
- return (t == null || t <= 0 || t > 85412 || [18415, 18504].includes(t)) && Number(String(u).slice(0, 5)) > Number(e) ? void 0 : String(t ?? (isNaN(r) ? void 0 : r) ?? "1");
16
- }
17
- function s() {
18
- return window.devicePixelRatio || 1;
19
- }
20
- export {
21
- s as getPixelRatio,
22
- o as joinStyle,
23
- f as localize,
24
- l as normalizeStringArray
25
- };
@@ -1,33 +0,0 @@
1
- import "vue";
2
- import "element-plus";
3
- function h() {
4
- let e = 0;
5
- const o = (t, d) => d ? Math.max(t.offsetHeight, t.scrollHeight, e) : Math.max(t.offsetHeight, t.scrollHeight);
6
- return {
7
- handleBeforeEnter: (t) => {
8
- t.dataset.oldPaddingTop = t.style.paddingTop, t.dataset.oldPaddingBottom = t.style.paddingBottom, t.style.maxHeight = "0px", t.style.paddingTop = "0px", t.style.paddingBottom = "0px";
9
- },
10
- handleEnter: (t) => {
11
- t.dataset.oldOverflow = t.style.overflow, t.style.maxHeight = `${o(t, !0)}px`, t.style.paddingTop = t.dataset.oldPaddingTop ?? "", t.style.paddingBottom = t.dataset.oldPaddingBottom ?? "", t.style.overflow = "hidden";
12
- },
13
- handleAfterEnter: (t) => {
14
- t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow ?? "";
15
- },
16
- handleBeforeLeave: (t) => {
17
- t.dataset.oldPaddingTop = t.style.paddingTop, t.dataset.oldPaddingBottom = t.style.paddingBottom, t.dataset.oldOverflow = t.style.overflow, e = o(t), t.style.maxHeight = `${e}px`, t.style.overflow = "hidden";
18
- },
19
- handleLeave: (t) => {
20
- t.style.maxHeight = "0px", t.style.paddingTop = "0px", t.style.paddingBottom = "0px";
21
- },
22
- handleAfterLeave: (t) => {
23
- t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow ?? "", t.style.paddingTop = t.dataset.oldPaddingTop ?? "", t.style.paddingBottom = t.dataset.oldPaddingBottom ?? "";
24
- }
25
- };
26
- }
27
- const y = /* @__PURE__ */ Symbol(
28
- "modalItemContextKey"
29
- );
30
- export {
31
- y as modalItemContextKey,
32
- h as useCollapseAnim
33
- };