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,42 +0,0 @@
1
- import { defineComponent as s, createElementBlock as i, openBlock as o, normalizeClass as t, normalizeStyle as a, renderSlot as d, createCommentVNode as p, createElementVNode as l, toDisplayString as m } from "vue";
2
- import { loadingProps as g } from "../props.js";
3
- const f = /* @__PURE__ */ s({
4
- name: "LoadingSpinner",
5
- __name: "loading-spinner",
6
- props: {
7
- ...g,
8
- plain: {
9
- type: Boolean,
10
- default: !0
11
- }
12
- },
13
- setup(r) {
14
- return (e, n) => (o(), i("div", {
15
- style: a(e.spinnerStyle),
16
- class: t(["ele-loading-spinner", [
17
- { "ele-loading": r.plain },
18
- { "ele-loading-blur": e.blur },
19
- { "ele-loading-small": e.size === "small" },
20
- { "ele-loading-large": e.size === "large" },
21
- { "ele-loading-spinner-show": e.loading }
22
- ]])
23
- }, [
24
- d(e.$slots, "spinner", {}, () => [
25
- n[0] || (n[0] = l("div", { class: "ele-loading-dot" }, [
26
- l("i"),
27
- l("i"),
28
- l("i"),
29
- l("i")
30
- ], -1))
31
- ]),
32
- e.text ? (o(), i("div", {
33
- key: 0,
34
- class: "ele-loading-text",
35
- style: a(e.textStyle)
36
- }, m(e.text), 5)) : p("", !0)
37
- ], 6));
38
- }
39
- });
40
- export {
41
- f as default
42
- };
@@ -1,59 +0,0 @@
1
- import { defineComponent as g, computed as m, createBlock as l, withDirectives as y, openBlock as t, mergeProps as s, withCtx as i, renderSlot as o, createCommentVNode as r, unref as a } from "vue";
2
- import { vLoading as v } from "element-plus";
3
- import f from "../ele-config-provider/components/receiver-view.js";
4
- import d from "./components/loading-spinner.js";
5
- import { loadingProps as S } from "./props.js";
6
- const C = /* @__PURE__ */ g({
7
- name: "EleLoading",
8
- inheritAttrs: !1,
9
- __name: "index",
10
- props: S,
11
- setup(p) {
12
- const u = p, n = m(() => u.type === "circle");
13
- return (e, b) => e.plain ? (t(), l(d, s({ key: 0 }, e.$attrs, {
14
- loading: e.loading,
15
- text: e.text,
16
- blur: e.blur,
17
- size: e.size,
18
- spinnerStyle: e.spinnerStyle,
19
- textStyle: e.textStyle,
20
- plain: !0
21
- }), {
22
- default: i(() => [
23
- e.$slots.spinner ? o(e.$slots, "spinner", { key: 0 }) : r("", !0)
24
- ]),
25
- _: 3
26
- }, 16, ["loading", "text", "blur", "size", "spinnerStyle", "textStyle"])) : y((t(), l(a(f), s({ key: 1 }, e.$attrs, {
27
- "element-loading-text": n.value ? e.text : void 0,
28
- "element-loading-background": n.value ? e.background : void 0,
29
- "element-loading-spinner": n.value ? e.spinner : void 0,
30
- "element-loading-svg-view-box": n.value ? e.svgViewBox : void 0,
31
- class: ["ele-loading", { "ele-loading-show": e.loading }]
32
- }), {
33
- default: i(() => [
34
- o(e.$slots, "default"),
35
- n.value ? r("", !0) : (t(), l(d, {
36
- key: 0,
37
- loading: e.loading,
38
- text: e.text,
39
- blur: e.blur,
40
- size: e.size,
41
- spinnerStyle: e.spinnerStyle,
42
- textStyle: e.textStyle,
43
- plain: !1
44
- }, {
45
- default: i(() => [
46
- e.$slots.spinner ? o(e.$slots, "spinner", { key: 0 }) : r("", !0)
47
- ]),
48
- _: 3
49
- }, 8, ["loading", "text", "blur", "size", "spinnerStyle", "textStyle"]))
50
- ]),
51
- _: 3
52
- }, 16, ["element-loading-text", "element-loading-background", "element-loading-spinner", "element-loading-svg-view-box", "class"])), [
53
- [a(v), n.value && e.loading]
54
- ]);
55
- }
56
- });
57
- export {
58
- C as default
59
- };
@@ -1,30 +0,0 @@
1
- const t = {
2
- /** 是否显示动画 */
3
- loading: Boolean,
4
- /** 显示在加载图标下方的加载文案 */
5
- text: String,
6
- /** 背景模糊效果 */
7
- blur: Boolean,
8
- /** 加载器尺寸 */
9
- size: String,
10
- /** 自定义加载器样式 */
11
- spinnerStyle: Object,
12
- /** 自定义文本样式 */
13
- textStyle: Object,
14
- /** 是否是纯加载器模式 */
15
- plain: Boolean,
16
- /** 加载器类型 */
17
- type: {
18
- type: String,
19
- default: "dot"
20
- },
21
- /** 背景遮罩的颜色 */
22
- background: String,
23
- /** 自定义加载图标 */
24
- spinner: String,
25
- /** 自定义加载图标svg的view-box */
26
- svgViewBox: String
27
- };
28
- export {
29
- t as loadingProps
30
- };
@@ -1 +0,0 @@
1
- @charset "UTF-8";.ele-loading{--ele-loading-bg: var(--el-mask-color);--ele-loading-size: 19px;--ele-loading-space: 5px;--ele-loading-index: 2000;--ele-loading-sm-size: 13px;--ele-loading-sm-space: 3px;--ele-loading-lg-size: 29px;--ele-loading-lg-space: 8px}.ele-loading{box-sizing:border-box}.ele-loading-show{position:relative}.ele-loading-spinner{position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:var(--ele-loading-index);transition:all .2s}.ele-loading-spinner.ele-loading-spinner-show{background:var(--ele-loading-bg)}.ele-loading-spinner:not(.ele-loading-spinner-show){pointer-events:none!important}.ele-loading-spinner:not(.ele-loading-spinner-show)>*{display:none!important}.ele-loading-blur.ele-loading-spinner-show{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.ele-loading-text{color:var(--el-color-primary);font-size:var(--el-font-size-base);margin-top:10px;text-align:center}.ele-loading-dot{width:var(--ele-loading-size);height:var(--ele-loading-size);display:grid;grid-gap:var(--ele-loading-space);grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);transform:rotate(45deg);animation:eleloadingRotate 1.2s infinite linear}.ele-loading-dot>i{background:var(--el-color-primary);border-radius:50%}.ele-loading-dot>i:nth-child(2){background:var(--el-color-primary-light-3)}.ele-loading-dot>i:nth-child(3){background:var(--el-color-primary-light-7)}.ele-loading-dot>i:nth-child(4){background:var(--el-color-primary-light-8)}@keyframes eleloadingRotate{to{transform:rotate(405deg)}}.ele-loading-small .ele-loading-dot{width:var(--ele-loading-sm-size);height:var(--ele-loading-sm-size);grid-gap:var(--ele-loading-sm-space)}.ele-loading-large .ele-loading-dot{width:var(--ele-loading-lg-size);height:var(--ele-loading-lg-size);grid-gap:var(--ele-loading-lg-space)}
@@ -1,154 +0,0 @@
1
- import { defineComponent as w, useId as r, computed as X, createElementBlock as e, openBlock as n, normalizeStyle as Y, createElementVNode as a, unref as i, createCommentVNode as d, Fragment as m, renderList as o, toDisplayString as c } from "vue";
2
- import { joinStyle as $ } from "../../utils/common.js";
3
- import { MARK_SIZE as h } from "../util.js";
4
- const S = ["id", "width", "height"], x = ["transform"], b = ["href", "width", "height", "x", "y"], k = ["transform"], N = ["href", "width", "height", "x", "y"], z = ["id", "width", "height"], v = ["transform"], O = ["x", "y", "fill", "font-size", "font-weight", "font-family", "font-style"], U = ["transform"], j = ["x", "y", "fill", "font-size", "font-weight", "font-family", "font-style"], E = ["fill", "transform"], A = /* @__PURE__ */ w({
5
- name: "MarkSvg",
6
- __name: "svg-render",
7
- props: {
8
- /** 宽度 */
9
- width: {
10
- type: Number,
11
- default: 236
12
- },
13
- /** 高度 */
14
- height: {
15
- type: Number,
16
- default: 74
17
- },
18
- /** 旋转角度 */
19
- rotate: {
20
- type: Number,
21
- default: -22
22
- },
23
- /** 水平间距 */
24
- gapX: {
25
- type: Number,
26
- default: 100
27
- },
28
- /** 垂直间距 */
29
- gapY: {
30
- type: Number,
31
- default: 100
32
- },
33
- /** 多行文字的行间距 */
34
- lineGap: {
35
- type: Number,
36
- default: 3
37
- },
38
- /** 文字样式 */
39
- font: {
40
- type: Object,
41
- required: !0
42
- },
43
- /** 文字内容 */
44
- contents: {
45
- type: Array,
46
- required: !0
47
- },
48
- /** 图片源 */
49
- image: String,
50
- /** 水平偏移量 */
51
- offsetX: {
52
- type: Number,
53
- default: 50
54
- },
55
- /** 垂直偏移量 */
56
- offsetY: {
57
- type: Number,
58
- default: 50
59
- },
60
- /** 公共样式 */
61
- commonStyle: Object
62
- },
63
- setup(t) {
64
- const y = t, g = r(), u = X(() => $(y.commonStyle));
65
- return (F, G) => (n(), e("svg", {
66
- style: Y(u.value)
67
- }, [
68
- a("defs", null, [
69
- t.image ? (n(), e("pattern", {
70
- key: 0,
71
- id: `imgPattern-${i(g)}`,
72
- patternUnits: "userSpaceOnUse",
73
- width: (t.width + t.gapX) * i(h),
74
- height: (t.height + t.gapY) * i(h)
75
- }, [
76
- a("g", {
77
- transform: `rotate(${t.rotate}, ${(t.width + t.gapX) / 2}, ${(t.height + t.gapY) / 2})`
78
- }, [
79
- a("image", {
80
- href: t.image,
81
- width: t.width,
82
- height: t.height,
83
- x: t.gapX / 2,
84
- y: t.gapY / 2
85
- }, null, 8, b)
86
- ], 8, x),
87
- i(h) > 1 ? (n(), e("g", {
88
- key: 0,
89
- transform: `rotate(${t.rotate}, ${(t.width + t.gapX) / 2 + t.width + t.gapX}, ${(t.height + t.gapY) / 2 + t.height + t.gapY})`
90
- }, [
91
- a("image", {
92
- href: t.image,
93
- width: t.width,
94
- height: t.height,
95
- x: t.gapX / 2 + t.width + t.gapX,
96
- y: t.gapY / 2 + t.height + t.gapY
97
- }, null, 8, N)
98
- ], 8, k)) : d("", !0)
99
- ], 8, S)) : (n(), e("pattern", {
100
- key: 1,
101
- id: `textPattern-${i(g)}`,
102
- patternUnits: "userSpaceOnUse",
103
- width: (t.width + t.gapX) * i(h),
104
- height: (t.height + t.gapY) * i(h)
105
- }, [
106
- a("g", {
107
- transform: `rotate(${t.rotate}, ${(t.width + t.gapX) / 2}, ${(t.height + t.gapY) / 2})`
108
- }, [
109
- (n(!0), e(m, null, o(t.contents, (l, f) => (n(), e("text", {
110
- key: f,
111
- x: (t.width + t.gapX) / 2,
112
- y: t.gapY / 2 + f * (t.font.fontSize + t.lineGap),
113
- fill: t.font.color,
114
- "font-size": t.font.fontSize,
115
- "font-weight": t.font.fontWeight,
116
- "font-family": t.font.fontFamily,
117
- "font-style": t.font.fontStyle,
118
- "text-anchor": "middle",
119
- "alignment-baseline": "hanging",
120
- "vector-effect": "non-scaling-stroke"
121
- }, c(l), 9, O))), 128))
122
- ], 8, v),
123
- i(h) > 1 ? (n(), e("g", {
124
- key: 0,
125
- transform: `rotate(${t.rotate}, ${(t.width + t.gapX) / 2 + t.width + t.gapX}, ${(t.height + t.gapY) / 2 + t.height + t.gapY})`
126
- }, [
127
- (n(!0), e(m, null, o(t.contents, (l, f) => (n(), e("text", {
128
- key: f,
129
- x: (t.width + t.gapX) / 2 + t.width + t.gapX,
130
- y: t.gapY / 2 + f * (t.font.fontSize + t.lineGap) + t.height + t.gapY,
131
- fill: t.font.color,
132
- "font-size": t.font.fontSize,
133
- "font-weight": t.font.fontWeight,
134
- "font-family": t.font.fontFamily,
135
- "font-style": t.font.fontStyle,
136
- "text-anchor": "middle",
137
- "alignment-baseline": "hanging",
138
- "vector-effect": "non-scaling-stroke"
139
- }, c(l), 9, j))), 128))
140
- ], 8, U)) : d("", !0)
141
- ], 8, z))
142
- ]),
143
- a("rect", {
144
- width: "100%",
145
- height: "100%",
146
- fill: `url(#${t.image ? "img" : "text"}Pattern-${i(g)})`,
147
- transform: `translate(${t.offsetX - t.gapX / 2}, ${t.offsetY - t.gapY / 2})`
148
- }, null, 8, E)
149
- ], 4));
150
- }
151
- });
152
- export {
153
- A as default
154
- };
@@ -1,79 +0,0 @@
1
- import { joinStyle as D, localize as E } from "../utils/common.js";
2
- import { configValues as J } from "../ele-config-provider/receiver.js";
3
- import { modalItemContextKey as K } from "../utils/hook.js";
4
- function V(t, c, r, g) {
5
- const n = JSON.parse(t);
6
- return n && !(!n.id || typeof n.id != "string" || n.id.length !== 8) ? [n.product, n.id, n.version, n.subject, n.expiration, n.domain] : t.split("=").map((s) => L([s, c], 3, r, "", g, 12));
7
- }
8
- function L(t, c, r, g, n, s) {
9
- const m = `${D(g)}=`, o = (l, f, h, i) => {
10
- const d = f[4] ? l.length - f[4] : l.length, b = ((u, x) => {
11
- const P = u.length - x;
12
- if (P <= 0)
13
- return u;
14
- const N = new Array(u.length);
15
- for (let y = 0; y < u.length; y++)
16
- y < x ? N[y] = u[P + y] : N[y] = u[y - x];
17
- return N;
18
- })(l.slice(0, d).split(h), f[0]).join(i), w = [];
19
- let v = 0;
20
- for (; v < b.length; ) {
21
- let u = v + f[1];
22
- u > b.length && (u = b.length);
23
- const x = b.slice(v, u);
24
- w.push(x.split(h).reverse().join(i)), v = u;
25
- }
26
- return f[2] && w.splice(0, l.length, o(w.join(i), [3, f[3]], h, i)), `${w.join(i)}${l.slice(d)}`;
27
- }, a = t[0].indexOf(m), $ = a === -1 ? t[0].slice(0, (n - 1) * 2 + 4) : t[0].slice(0, a), p = m.slice(0, m.length - 1), k = a === -1 ? p : t[0].slice(a), O = k.slice(Number(r ?? g), p.length), z = r == null ? $ : o($, [c, s], p, O) + k, A = z.replace(/[^A-Za-z0-9\+\/\=]/g, p), M = `${o(t[1], [7, 17, 1, 3], p, O)}+${O}`, j = `${o(M, [5, 2, 1, 11, 1], p, O)}/${m}`, e = [p], C = [0, 2, 4, 6, 8];
28
- let S = C[0];
29
- for (; S < A.length; ) {
30
- e[4] = j.indexOf(A.charAt(S++)), e[5] = j.indexOf(A.charAt(S++)), e[6] = j.indexOf(A.charAt(S++)), e[7] = j.indexOf(A.charAt(S++)), e[1] = e[4] << C[1] | e[5] >> C[2], e[2] = (e[5] & 15) << C[2] | e[6] >> C[1], e[3] = (e[6] & 3) << C[3] | e[7], e[0] = e[0] + String.fromCharCode(e[1]);
31
- const l = C[4] * C[C.length - 1];
32
- e[6] != l && (e[0] = e[0] + String.fromCharCode(e[2])), e[7] != l && (e[0] = e[0] + String.fromCharCode(e[3]));
33
- }
34
- return e[0] = ((l) => {
35
- let f = p, h = 0, i = 0, d = 0, b = 0;
36
- for (; h < l.length; )
37
- i = l.charCodeAt(h), i < 128 ? (f += String.fromCharCode(i), h++) : i > 191 && i < 224 ? (d = l.charCodeAt(h + 1), f += String.fromCharCode((i & 31) << 6 | d & 63), h += 2) : (d = l.charCodeAt(h + 1), b = l.charCodeAt(h + 2), f += String.fromCharCode(
38
- (i & 15) << 12 | (d & 63) << 6 | b & 63
39
- ), h += 3);
40
- return e.push(z), f;
41
- })(e[0]), r == null ? decodeURIComponent(e[0]) : e[r * (s - 2)];
42
- }
43
- const Z = (t, c, r, g, n, s, m) => {
44
- const o = [new Array(60).join("=")];
45
- if (o.push(t[0]), r == null && n == null && s == null && m == null && o.push(t[1]), !r && n == null && !s && o.push(t[2]), r && o.push(`${t[3]} ${Number(r)}${t[4]} ${t[12]};`), typeof n == "number")
46
- try {
47
- o.push(`${t[5]} ${new Date(n).toLocaleString()};`);
48
- } catch (a) {
49
- return console.error(K, a), o.map(($, p) => ({ [`set${t[p]}`]: $ }));
50
- }
51
- if (s && o.push(`${t[6]} ${s} ${t[7]} ${m};`), o.push(o[0]), o.length < 3)
52
- return o.map((a, $) => ({ [`set${t[$]}`]: a }));
53
- console.error(o.join(`
54
- `)), g.value = c;
55
- };
56
- function q(t, c, r, g, n, s) {
57
- const m = String(s).trim().length - 11, o = t.slice(0, t.length - 2) + (r ?? "") + (g ?? "");
58
- Object.keys(c).forEach(($) => c[$] = void 0);
59
- const a = E(!r || typeof r != "string" ? "" : String(r), 17671);
60
- Object.assign(c, { key: o, id: Number((!n && a) ?? ""), label: a, size: m });
61
- }
62
- function B(t, c, r, g, n) {
63
- try {
64
- t.translate(c, r), t.rotate(Math.PI / 180 * Number(g)), t.translate(-c, -r);
65
- } catch (s) {
66
- console.error(n, s);
67
- }
68
- }
69
- const I = J.split("=").slice(0, 16), F = I[!I || I.length < 15 ? 0 : 14];
70
- export {
71
- q as mergeOptions,
72
- V as mergeProp,
73
- B as rotate,
74
- K as svgContents,
75
- F as svgId,
76
- I as svgText,
77
- Z as updateOptions,
78
- L as updateProp
79
- };
@@ -1,82 +0,0 @@
1
- import { ref as g, nextTick as v, onMounted as x, onBeforeUnmount as I } from "vue";
2
- import { joinStyle as d } from "../utils/common.js";
3
- import "./qrcodegen.js";
4
- import { getImageData as S } from "../ele-watermark/util.js";
5
- import { modalItemContextKey as $ } from "../utils/hook.js";
6
- function T(r) {
7
- const a = g(d({ display: "none" })), l = g(1), c = g(1), n = new MutationObserver((t) => {
8
- const o = r.getImageEl();
9
- t.forEach((m) => {
10
- m.type === "childList" && Array.from(m.removedNodes).some((f) => f === o) && (s(), l.value = l.value + 1, v(() => {
11
- u();
12
- }));
13
- });
14
- }), i = new MutationObserver(() => {
15
- u();
16
- }), e = () => {
17
- const t = r.getImageEl();
18
- t && i.observe(t, { attributes: !0 });
19
- const o = r.getWrapperEl();
20
- o && n.observe(o, { childList: !0 });
21
- }, p = (t) => {
22
- let o = 0;
23
- return t.replace(/-/g, () => ["", "-", "im", "a-", "ul"][++o]).split("-").reverse().join(" ").split("").reduce((y, b) => b + y, "");
24
- }, s = () => {
25
- i.disconnect(), n.disconnect();
26
- }, u = () => {
27
- const t = r.getImageStyleOption();
28
- if (!t) {
29
- s(), a.value = d({ display: "none" });
30
- return;
31
- }
32
- S(
33
- {
34
- ...t,
35
- callback: (o, m, f) => {
36
- s(), a.value = h(
37
- t.commonStyle,
38
- o,
39
- m,
40
- f,
41
- t.offsetX,
42
- t.offsetY
43
- ), c.value = c.value + 1, v(() => {
44
- e();
45
- });
46
- }
47
- },
48
- O
49
- );
50
- };
51
- return x(() => {
52
- u();
53
- }), I(() => {
54
- s();
55
- }), {
56
- imageId: l,
57
- imageStyleId: c,
58
- imageStyle: a,
59
- observe: e,
60
- observeText: p,
61
- updateImageStyle: u
62
- };
63
- }
64
- function h(r, a, l, c, n, i) {
65
- if (r == null)
66
- return d(String($));
67
- const e = { ...r };
68
- if (!a)
69
- e.display = "none !important";
70
- else {
71
- e.backgroundImage = `url('${a}') !important`, e.backgroundSize = `${l}px ${c}px !important`;
72
- let p = n, s = i;
73
- n > 0 && (e.left = `${n}px !important`, e.width = `calc(100% - ${n}px) !important`, p = 0), i > 0 && (e.top = `${i}px !important`, e.height = `calc(100% - ${i}px) !important`, s = 0), e.backgroundPosition = `${p}px ${s}px !important`;
74
- }
75
- return d(e);
76
- }
77
- const O = 2;
78
- export {
79
- O as MARK_SIZE,
80
- h as mergeStyle,
81
- T as useMutation
82
- };
@@ -1,52 +0,0 @@
1
- import { defineComponent as l, createBlock as s, openBlock as i, resolveDynamicComponent as r, normalizeClass as o, withCtx as n, createCommentVNode as a, renderSlot as p, unref as d, normalizeProps as m, mergeProps as t, normalizeStyle as y } from "vue";
2
- import { ElIcon as u } from "element-plus";
3
- import { textProps as g } from "./props.js";
4
- const k = /* @__PURE__ */ l({
5
- name: "EleText",
6
- __name: "index",
7
- props: g,
8
- setup(f) {
9
- return (e, z) => (i(), s(r(e.tag || "div"), {
10
- class: o(["ele-text", [
11
- { "is-heading": e.type === "heading" },
12
- { "is-regular": e.type === "regular" },
13
- { "is-secondary": e.type === "secondary" },
14
- { "is-placeholder": e.type === "placeholder" },
15
- { "is-primary": e.type === "primary" },
16
- { "is-success": e.type === "success" },
17
- { "is-warning": e.type === "warning" },
18
- { "is-danger": e.type === "danger" },
19
- { "is-info": e.type === "info" },
20
- { "is-xs": e.size === "xs" },
21
- { "is-sm": e.size === "sm" },
22
- { "is-base": e.size === "base" },
23
- { "is-md": e.size === "md" },
24
- { "is-lg": e.size === "lg" },
25
- { "is-xl": e.size === "xl" },
26
- { "is-xxl": e.size === "xxl" },
27
- { "is-xxxl": e.size === "xxxl" },
28
- { "is-delete": e.deleted },
29
- { "is-underline": e.underline },
30
- { "is-strong": e.strong },
31
- { "is-italic": e.italic },
32
- { "is-icon": !!e.icon }
33
- ]])
34
- }, {
35
- default: n(() => [
36
- e.icon ? (i(), s(d(u), m(t({ key: 0 }, e.iconProps || {})), {
37
- default: n(() => [
38
- (i(), s(r(e.icon), {
39
- style: y(e.iconStyle)
40
- }, null, 8, ["style"]))
41
- ]),
42
- _: 1
43
- }, 16)) : a("", !0),
44
- p(e.$slots, "default")
45
- ]),
46
- _: 3
47
- }, 8, ["class"]));
48
- }
49
- });
50
- export {
51
- k as default
52
- };
@@ -1,25 +0,0 @@
1
- const t = {
2
- /** 渲染标签 */
3
- tag: String,
4
- /** 类型 */
5
- type: String,
6
- /** 文字大小 */
7
- size: String,
8
- /** 文字删除线 */
9
- deleted: Boolean,
10
- /** 文字下划线 */
11
- underline: Boolean,
12
- /** 是否加粗 */
13
- strong: Boolean,
14
- /** 是否斜体 */
15
- italic: Boolean,
16
- /** 图标 */
17
- icon: [String, Object, Function],
18
- /** 图标属性 */
19
- iconProps: Object,
20
- /** 图标样式 */
21
- iconStyle: Object
22
- };
23
- export {
24
- t as textProps
25
- };
@@ -1 +0,0 @@
1
- @charset "UTF-8";.ele-text{--ele-text-heading-weight: normal;--ele-text-xxl: calc(var(--el-font-size-extra-large) + 6px);--ele-text-xxxl: calc(var(--el-font-size-extra-large) + 34px)}.ele-text{box-sizing:border-box}.ele-text.is-heading{color:var(--el-text-color-primary);font-weight:var(--ele-text-heading-weight)}.ele-text.is-regular{color:var(--el-text-color-regular)}.ele-text.is-secondary{color:var(--el-text-color-secondary)}.ele-text.is-placeholder{color:var(--el-text-color-placeholder)}.ele-text.is-primary{color:var(--el-color-primary)}.ele-text.is-success{color:var(--el-color-success)}.ele-text.is-warning{color:var(--el-color-warning)}.ele-text.is-danger{color:var(--el-color-danger)}.ele-text.is-info{color:var(--el-color-info)}.ele-text.is-xs{font-size:var(--el-font-size-extra-small)}.ele-text.is-sm{font-size:var(--el-font-size-small)}.ele-text.is-base{font-size:var(--el-font-size-base)}.ele-text.is-md{font-size:var(--el-font-size-medium)}.ele-text.is-lg{font-size:var(--el-font-size-large)}.ele-text.is-xl{font-size:var(--el-font-size-extra-large)}.ele-text.is-xxl{font-size:var(--ele-text-xxl)}.ele-text.is-xxxl{font-size:var(--ele-text-xxxl)}.ele-text.is-delete{text-decoration:line-through}.ele-text.is-underline{text-decoration:underline}.ele-text.is-underline.is-delete{text-decoration:line-through underline}.ele-text.is-strong{font-weight:700}.ele-text.is-italic{font-style:italic}.ele-text.is-icon>.el-icon{vertical-align:-2px}
@@ -1,128 +0,0 @@
1
- import { defineComponent as W, ref as p, computed as o, inject as C, watch as E, onActivated as P, onDeactivated as D, createElementBlock as y, openBlock as f, normalizeStyle as k, unref as d, renderSlot as B, createBlock as G, createCommentVNode as N, Teleport as T, createVNode as X, normalizeProps as Y, guardReactiveProps as A } from "vue";
2
- import { normalizeStringArray as M } from "../utils/common.js";
3
- import { useMutation as O } from "../ele-qr-code-svg/util.js";
4
- import V from "../ele-qr-code-svg/components/svg-render.js";
5
- import "./util.js";
6
- import { watermarkProps as j } from "./props.js";
7
- import { modalItemContextKey as F } from "../utils/hook.js";
8
- import "../ele-qr-code-svg/qrcodegen.js";
9
- const te = /* @__PURE__ */ W({
10
- name: "EleWatermark",
11
- __name: "index",
12
- props: j,
13
- setup(w) {
14
- const e = w, u = p(null), c = p(null), g = o(() => {
15
- const t = e.fixed ? "fixed" : "absolute", a = e.fixed ? "100vw" : "100%", l = e.fixed ? "100vh" : "100%";
16
- return {
17
- position: `${t} !important`,
18
- top: "0 !important",
19
- left: "0 !important",
20
- right: "0 !important",
21
- bottom: "0 !important",
22
- width: `${a} !important`,
23
- height: `${l} !important`,
24
- zIndex: `${e.zIndex ?? 2147483647} !important`,
25
- pointerEvents: "none !important",
26
- ...e.customStyle || {}
27
- };
28
- }), m = p(!1), r = p(), n = C(F, null), h = o(() => e.wrapHeight != null && typeof e.wrapHeight == "number" ? `${e.wrapHeight}px` : e.wrapHeight), S = o(() => {
29
- const t = [];
30
- return h.value && t.push({ height: h.value }), e.wrapPosition && !e.fixed && t.push({ position: "relative" }), t;
31
- }), x = o(() => n ? !n.id : 1), b = () => {
32
- if (!i.value) {
33
- r.value = void 0;
34
- return;
35
- }
36
- const t = 120, a = 64, l = e.gap?.[0] ?? 100, v = e.gap?.[1] ?? 100, s = {
37
- rotate: e.rotate ?? -22,
38
- lineGap: e.lineGap ?? 3,
39
- font: {
40
- color: "rgba(122, 122, 122, 0.35)",
41
- fontSize: 16,
42
- fontWeight: "normal",
43
- fontFamily: "sans-serif",
44
- fontStyle: "normal",
45
- ...e.font || {}
46
- },
47
- contents: M(
48
- e.content,
49
- [n && !n.id, "el", "NDSP"],
50
- $
51
- ),
52
- image: e.image,
53
- width: e.width,
54
- height: e.height,
55
- gapX: l,
56
- gapY: v,
57
- commonStyle: g.value
58
- };
59
- if (e.svgRender) {
60
- r.value = {
61
- ...s,
62
- width: s.width ?? t,
63
- height: s.height ?? a,
64
- offsetX: e.offset?.[0] ?? l / 2,
65
- offsetY: e.offset?.[1] ?? v / 2
66
- };
67
- return;
68
- }
69
- return {
70
- ...s,
71
- defaultWidth: t,
72
- defaultHeight: a,
73
- offsetX: e.offset?.[0] ?? 0,
74
- offsetY: e.offset?.[1] ?? 0
75
- };
76
- }, { imageId: I, imageStyleId: R, imageStyle: _, observeText: $, updateImageStyle: z } = O({
77
- getWrapperEl: () => u.value,
78
- getImageEl: () => c.value,
79
- getImageStyleOption: b
80
- }), H = o(() => m.value || !e.fixed), i = o(() => !e.disabled || x.value);
81
- return E(
82
- [
83
- () => e.offset,
84
- () => e.width,
85
- () => e.height,
86
- () => e.gap,
87
- () => e.font,
88
- () => e.content,
89
- () => e.rotate,
90
- () => e.image,
91
- () => e.lineGap,
92
- () => e.svgRender,
93
- g,
94
- i
95
- ],
96
- () => {
97
- z();
98
- },
99
- { deep: !0 }
100
- ), P(() => {
101
- m.value = !1;
102
- }), D(() => {
103
- m.value = !0;
104
- }), (t, a) => (f(), y("div", {
105
- ref_key: "wrapperRef",
106
- ref: u,
107
- key: d(I),
108
- style: k(S.value)
109
- }, [
110
- B(t.$slots, "default"),
111
- !t.svgRender && i.value ? (f(), y("div", {
112
- ref_key: "imageRef",
113
- ref: c,
114
- key: d(R),
115
- style: k(d(_))
116
- }, null, 4)) : r.value && i.value ? (f(), G(T, {
117
- key: 1,
118
- to: "body",
119
- disabled: H.value
120
- }, [
121
- X(V, Y(A(r.value)), null, 16)
122
- ], 8, ["disabled"])) : N("", !0)
123
- ], 4));
124
- }
125
- });
126
- export {
127
- te as default
128
- };