@web-utils/form-ui 1.0.0-beta86 → 1.0.0-beta88

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 (212) hide show
  1. package/affix/index.mjs +1 -1
  2. package/chunks/{4kjeIiag2.mjs → 5RCAxanu2.mjs} +3 -3
  3. package/chunks/{vebd58-O.mjs → 9ec0Wti82.mjs} +1 -1
  4. package/chunks/{BxcsELcB2.mjs → B7BaAm4k2.mjs} +2 -2
  5. package/chunks/{DSTNXl142.mjs → BFhVUqpP2.mjs} +2 -2
  6. package/chunks/BLKcXIrX.mjs +517 -0
  7. package/chunks/{C8h_P_kl2.mjs → BSOrm2U4.mjs} +2 -2
  8. package/chunks/BbUUI4mF.mjs +204 -0
  9. package/chunks/{D_q3C3v4.mjs → BegZOXrr.mjs} +4 -4
  10. package/chunks/{BIy6bO4j.mjs → Bg01eBVa2.mjs} +2 -2
  11. package/chunks/{DJlgX5ty.mjs → BhPVs8Ju.mjs} +1 -1
  12. package/chunks/{DrvwVjzq2.mjs → BmbhIxPF2.mjs} +2 -2
  13. package/chunks/{BYu4QaK72.mjs → Br3whXEJ2.mjs} +2 -2
  14. package/chunks/{y1Q66LEa2.mjs → BuI82QMb2.mjs} +1 -1
  15. package/chunks/{CCpKg0cM.mjs → Bv7b2DXh2.mjs} +2 -2
  16. package/chunks/{ofu8wJKp.mjs → C-s-88fN2.mjs} +1 -1
  17. package/chunks/{CET31mBi.mjs → C54nZqvy2.mjs} +1 -1
  18. package/chunks/CBHGpbDK.mjs +56 -0
  19. package/chunks/CFpGTE5U2.mjs +221 -0
  20. package/chunks/CIihGrgY.mjs +30 -0
  21. package/chunks/{XQwnPkab2.mjs → CW021IPm2.mjs} +1 -1
  22. package/chunks/{CLn5E7NV.mjs → CW1nopZH.mjs} +1 -1
  23. package/chunks/CY2YrwMT.mjs +302 -0
  24. package/chunks/{DVF9q3oX.mjs → CdvD0NRo2.mjs} +2 -2
  25. package/chunks/Cf_h9S62.mjs +378 -0
  26. package/chunks/{8h-xBLL82.mjs → CixNVW_T2.mjs} +10 -10
  27. package/chunks/{By-W0XXn2.mjs → ClkLQjZ82.mjs} +1 -1
  28. package/chunks/CsNZt53l.mjs +4074 -0
  29. package/chunks/{HFLY8Wla.mjs → D1mQTnJ8.mjs} +181 -185
  30. package/chunks/{CjCNtCWd.mjs → D20CQ-B6.mjs} +1 -1
  31. package/chunks/{BxuM-fgJ.mjs → D2kLAzxW.mjs} +1 -1
  32. package/chunks/{tfaGdZX2.mjs → D8_fl5Oq.mjs} +4 -4
  33. package/chunks/{C28bnMcw.mjs → DC3DNg_r.mjs} +1 -1
  34. package/chunks/{DWN5uzm02.mjs → DL4xcGES2.mjs} +10 -10
  35. package/chunks/{SWO35fS42.mjs → Dd4RtBO02.mjs} +1 -1
  36. package/chunks/{3nLaRSbR2.mjs → DdHN2Nv72.mjs} +1 -1
  37. package/chunks/{BrSqLOi5.mjs → DmJaItEY.mjs} +6 -6
  38. package/chunks/{CkHQY4ME2.mjs → Dnapnskp2.mjs} +1 -1
  39. package/chunks/{vHsAJZRT.mjs → MUk_IdeO2.mjs} +2 -2
  40. package/chunks/NAZ8HFBg.mjs +340 -0
  41. package/chunks/{saZ_qJOT.mjs → aOv3rI7q.mjs} +1 -1
  42. package/chunks/{mqi8hesW2.mjs → dxZzZgUn.mjs} +2 -2
  43. package/chunks/{Tq3_dajC2.mjs → m5oFTe8Y2.mjs} +1 -1
  44. package/chunks/{Dst9_BmZ.mjs → n7IipIUY.mjs} +3 -3
  45. package/chunks/{SInS7QSL.mjs → vCOhFr2x.mjs} +1 -1
  46. package/constants/index.d.ts +2 -0
  47. package/constants/index.mjs +2 -2
  48. package/data-table-picker/index.mjs +1 -1
  49. package/dialog-form/index.d.ts +4 -0
  50. package/dialog-form/index.mjs +154 -0
  51. package/dialog-form/style.css +1 -0
  52. package/empty-view/index.d.ts +2 -2
  53. package/flex-box/index.mjs +1 -1
  54. package/flex-column/index.mjs +1 -1
  55. package/flex-item/index.mjs +1 -1
  56. package/flex-row/index.mjs +1 -1
  57. package/flow-designer/index.mjs +1 -1
  58. package/form-cascader/index.mjs +1 -1
  59. package/form-checkbox/index.mjs +1 -1
  60. package/form-checkbox-group/index.mjs +1 -1
  61. package/form-date-picker/index.d.ts +4 -4
  62. package/form-date-picker/index.mjs +1 -1
  63. package/form-holder/index.mjs +1 -1
  64. package/form-image/index.mjs +1 -1
  65. package/form-input/index.mjs +1 -1
  66. package/form-input-cron-expression/index.mjs +1 -1
  67. package/form-input-email/index.mjs +1 -1
  68. package/form-input-id-card/index.mjs +1 -1
  69. package/form-input-number/index.mjs +1 -1
  70. package/form-input-phone-number/index.mjs +1 -1
  71. package/form-input-tag/index.mjs +1 -1
  72. package/form-input-time/index.mjs +1 -1
  73. package/form-item/index.mjs +1 -1
  74. package/form-item-group/index.mjs +1 -1
  75. package/form-radio-group/index.mjs +1 -1
  76. package/form-rate/index.mjs +1 -1
  77. package/form-row/index.mjs +1 -1
  78. package/form-select/index.mjs +1 -1
  79. package/form-slider/index.mjs +1 -1
  80. package/form-switch/index.mjs +1 -1
  81. package/form-table/index.mjs +1 -1
  82. package/form-table-plus/index.mjs +1 -1
  83. package/form-text/index.mjs +1 -1
  84. package/form-textarea/index.mjs +1 -1
  85. package/form-time-select/index.mjs +1 -1
  86. package/form-tree-select/index.mjs +1 -1
  87. package/form-tree-select-multiple/index.mjs +1 -1
  88. package/form-view/index.mjs +2 -2
  89. package/fy-array/index.d.ts +234 -0
  90. package/fy-array/index.mjs +130 -0
  91. package/fy-array/style.css +1 -0
  92. package/fy-button/index.d.ts +18 -0
  93. package/fy-button/index.mjs +2 -0
  94. package/fy-button/style.css +1 -0
  95. package/fy-cascader/index.d.ts +298 -0
  96. package/fy-cascader/index.mjs +116 -0
  97. package/fy-checkbox/index.d.ts +231 -0
  98. package/fy-checkbox/index.mjs +100 -0
  99. package/fy-checkbox/style.css +1 -0
  100. package/fy-curd/index.d.ts +908 -0
  101. package/fy-curd/index.mjs +2 -0
  102. package/fy-date/index.d.ts +246 -0
  103. package/fy-date/index.mjs +79 -0
  104. package/fy-date/style.css +1 -0
  105. package/fy-dynamic/index.d.ts +268 -0
  106. package/fy-dynamic/index.mjs +2 -0
  107. package/fy-empty/index.d.ts +31 -0
  108. package/fy-empty/index.mjs +35 -0
  109. package/fy-empty/style.css +1 -0
  110. package/fy-form/index.d.ts +522 -0
  111. package/fy-form/index.mjs +2 -0
  112. package/fy-form/style.css +1 -0
  113. package/fy-input/index.d.ts +316 -0
  114. package/fy-input/index.mjs +122 -0
  115. package/fy-input-color/index.d.ts +235 -0
  116. package/fy-input-color/index.mjs +80 -0
  117. package/fy-input-icon/index.d.ts +244 -0
  118. package/fy-input-icon/index.mjs +133 -0
  119. package/fy-input-icon/style.css +1 -0
  120. package/fy-input-map/index.d.ts +266 -0
  121. package/fy-input-map/index.mjs +248 -0
  122. package/fy-input-map/style.css +1 -0
  123. package/fy-input-number/index.d.ts +266 -0
  124. package/fy-input-number/index.mjs +78 -0
  125. package/fy-input-table/index.d.ts +248 -0
  126. package/fy-input-table/index.mjs +166 -0
  127. package/fy-input-table/style.css +1 -0
  128. package/fy-input-tree/index.d.ts +351 -0
  129. package/fy-input-tree/index.mjs +266 -0
  130. package/fy-input-tree/style.css +1 -0
  131. package/fy-radio/index.d.ts +218 -0
  132. package/fy-radio/index.mjs +56 -0
  133. package/fy-radio/style.css +1 -0
  134. package/fy-rate/index.d.ts +288 -0
  135. package/fy-rate/index.mjs +90 -0
  136. package/fy-rate/style.css +1 -0
  137. package/fy-select/index.d.ts +324 -0
  138. package/fy-select/index.mjs +2 -0
  139. package/fy-select/style.css +1 -0
  140. package/fy-slider/index.d.ts +249 -0
  141. package/fy-slider/index.mjs +72 -0
  142. package/fy-switch/index.d.ts +229 -0
  143. package/fy-switch/index.mjs +71 -0
  144. package/fy-tabs/index.d.ts +20 -0
  145. package/fy-tabs/index.mjs +50 -0
  146. package/fy-time/index.d.ts +704 -0
  147. package/fy-time/index.mjs +85 -0
  148. package/fy-title/index.d.ts +224 -0
  149. package/fy-title/index.mjs +18 -0
  150. package/fy-title/style.css +1 -0
  151. package/fy-tree/index.d.ts +141 -0
  152. package/fy-tree/index.mjs +390 -0
  153. package/fy-tree/style.css +1 -0
  154. package/fy-u-editor/index.d.ts +116 -0
  155. package/fy-u-editor/index.mjs +2 -0
  156. package/fy-u-editor/style.css +1 -0
  157. package/fy-upload/index.d.ts +379 -0
  158. package/fy-upload/index.mjs +2 -0
  159. package/fy-upload/style.css +1 -0
  160. package/helper/avue.d.ts +36 -0
  161. package/helper/avue.mjs +35 -0
  162. package/helper/input.mjs +1 -1
  163. package/icon-temp/index.d.ts +19 -0
  164. package/icon-temp/index.mjs +27 -0
  165. package/icon-temp/style.css +1 -0
  166. package/image-viewer/index.d.ts +1 -1
  167. package/index.css +1 -1
  168. package/index.d.ts +31 -1
  169. package/index.mjs +118 -90
  170. package/keyboard/index.mjs +1 -1
  171. package/monaco-editor/index.d.ts +126 -0
  172. package/monaco-editor/index.mjs +2 -0
  173. package/monaco-editor/style.css +1 -0
  174. package/package.json +3 -1
  175. package/pageable-table/index.d.ts +1 -1
  176. package/pageable-table/index.mjs +1 -1
  177. package/photo-swipe/index.mjs +1 -1
  178. package/resolver/components.mjs +1 -1
  179. package/split-pane/index.mjs +1 -1
  180. package/sub-table/index.mjs +1 -1
  181. package/sub-table-plus/index.mjs +1 -1
  182. package/table-column-def/index.d.ts +6 -6
  183. package/table-view/index.mjs +4 -4
  184. package/tag-render/index.d.ts +1 -1
  185. package/toolbar/index.mjs +1 -1
  186. package/vue-cron/index.mjs +1 -1
  187. package/vue-tags-input/index.d.ts +1 -1
  188. package/vue-tree-select/index.mjs +1 -1
  189. package/watermark/index.mjs +1 -1
  190. package/web-types.json +1 -1
  191. package/x-input-tag/index.mjs +1 -1
  192. package/chunks/{DCqyZyF6.mjs → BCYFaOiB.mjs} +0 -0
  193. package/chunks/{B1luuf_A2.mjs → BJDeTpmp2.mjs} +0 -0
  194. package/chunks/{BhHMGhJ8.mjs → BcsscZAM.mjs} +0 -0
  195. package/chunks/{DbcxJ45j.mjs → BfW25VbY.mjs} +1 -1
  196. package/chunks/{6dNVtIN32.mjs → BjccroM8.mjs} +0 -0
  197. package/chunks/{BTGrh7dw2.mjs → Br0vC3nS2.mjs} +0 -0
  198. package/chunks/{BM5LdxU72.mjs → CB0zQsKV2.mjs} +0 -0
  199. package/chunks/{Bs926z902.mjs → CHqxWrj7.mjs} +1 -1
  200. package/chunks/{B5c0s3IR.mjs → CJwAjhLy.mjs} +1 -1
  201. package/chunks/{BAG_R87k2.mjs → CZnwC17w.mjs} +0 -0
  202. package/chunks/{tVHVSu5h.mjs → CbedyG4s.mjs} +4 -4
  203. package/chunks/{BwL9Xz1F.mjs → Cp1olyWc.mjs} +0 -0
  204. package/chunks/{KOJEsarR2.mjs → CpmWELPU.mjs} +0 -0
  205. package/chunks/{C-zPVdz-.mjs → D9ft-f6n.mjs} +1 -1
  206. package/chunks/{PEU1JRcN2.mjs → DEHzWyyp.mjs} +0 -0
  207. package/chunks/{CHmZyvFr.mjs → DJe2Reym.mjs} +0 -0
  208. package/chunks/{CpsHWpwH2.mjs → DNq7pbXh2.mjs} +0 -0
  209. package/chunks/{X-ckP2Hj.mjs → DOLQ28wD.mjs} +0 -0
  210. package/chunks/{tqW2DSco.mjs → fT8tFJVO.mjs} +1 -1
  211. /package/chunks/{Dkw6LNCq2.mjs → jG7vu3RX.mjs} +0 -0
  212. /package/chunks/{b0ve2YgF.mjs → mQG01w6Y.mjs} +0 -0
@@ -0,0 +1,204 @@
1
+ import { isArray as e, isBlank as t, isBoolean as n, isNumber as r, isObject as i, isString as a } from "@web-utils/core";
2
+ //#region src/components/avue/utils/variable.ts
3
+ var o = {
4
+ rowKey: "id",
5
+ rowParentKey: "parentId",
6
+ nodeKey: "id",
7
+ label: "label",
8
+ value: "value",
9
+ desc: "desc",
10
+ groups: "groups",
11
+ title: "title",
12
+ leaf: "leaf",
13
+ children: "children",
14
+ hasChildren: "hasChildren",
15
+ labelText: "名称",
16
+ disabled: "disabled"
17
+ }, s = {
18
+ name: "name",
19
+ url: "url",
20
+ fileName: "file",
21
+ res: ""
22
+ }, c = [
23
+ "dates",
24
+ "date",
25
+ "datetime",
26
+ "datetimerange",
27
+ "daterange",
28
+ "time",
29
+ "timerange",
30
+ "week",
31
+ "month",
32
+ "monthrange",
33
+ "year"
34
+ ], l = [
35
+ "tree",
36
+ "number",
37
+ "icon",
38
+ "color",
39
+ "table",
40
+ "map"
41
+ ], u = [
42
+ "img",
43
+ "array",
44
+ "url"
45
+ ], d = [
46
+ "cascader",
47
+ "tree",
48
+ "select"
49
+ ], f = ["slider"], p = u.concat([
50
+ "upload",
51
+ "dynamic",
52
+ "map",
53
+ "checkbox",
54
+ "cascader",
55
+ "dynamic",
56
+ "timerange",
57
+ "monthrange",
58
+ "daterange",
59
+ "datetimerange",
60
+ "dates"
61
+ ]), m = c.concat([
62
+ "select",
63
+ "checkbox",
64
+ "radio",
65
+ "cascader",
66
+ "tree",
67
+ "color",
68
+ "icon",
69
+ "table",
70
+ "map"
71
+ ]);
72
+ //#endregion
73
+ //#region src/components/avue/utils/util.ts
74
+ function h(e, n = "") {
75
+ let r = C(e);
76
+ return t(n) || n.split(".").forEach((e) => {
77
+ r = t(r[e]) ? "" : r[e];
78
+ }), r;
79
+ }
80
+ var g = (e) => Function(`return ${e}`)();
81
+ function _(o, s = "", c) {
82
+ let l;
83
+ return l = t(c) ? e(c) ? `obj.${s}=[]` : i(c) ? `obj.${s}={}` : n(c) || r(c) ? `obj.${s}=undefined` : `obj.${s}=''` : a(c) ? `obj.${s}='${c}'` : `obj.${s}=${c}`, g(l), o;
84
+ }
85
+ function v(e) {
86
+ return e.forEach((t, n) => {
87
+ e[n] = Number(t);
88
+ }), e;
89
+ }
90
+ function y(...e) {
91
+ let t = e[0] || {}, n = !1, r = Array.prototype.slice.call(e), i = 1, a, o, s, c, l = !1;
92
+ for (typeof t == "boolean" && (n = t, i++, t = e[1]); i < r.length; i++) if ((a = r[i]) != null) for (s in a) c = a[s], o = t[s], n && (toString.call(c) === "[object Object]" || (l = toString.call(c) === "[object Array]")) ? (o = l ? toString.call(o) === "[object Array]" ? o : [] : toString.call(o) === "[object Object]" ? o : {}, t[s] = y(n, o, c)) : c !== void 0 && c !== o && (t[s] = c);
93
+ return t;
94
+ }
95
+ function b(e, t) {
96
+ let n = t.split("."), r = n.splice(0, 1)[0], i = {};
97
+ if (i[r] = {}, n.length >= 2) {
98
+ let e = "";
99
+ n.forEach((t) => {
100
+ e = `${e}{"${t}":`;
101
+ }), e = `${e}""`;
102
+ for (let t = 0; t < n.length; t++) e = `${e}}`;
103
+ e = JSON.parse(e), i[r] = e;
104
+ }
105
+ return e = y(!0, e, i), e;
106
+ }
107
+ function x(e, t) {
108
+ let n = e.split(","), r = n[0].match(/:(.*?);/)[1], i = atob(n[1]), a = i.length, o = new Uint8Array(a);
109
+ for (; a--;) o[a] = i.charCodeAt(a);
110
+ return new File([o], t, { type: r });
111
+ }
112
+ function S(e, t, n = "prop") {
113
+ let r = -1, i = (() => {
114
+ let t;
115
+ return e.forEach((e) => {
116
+ e.column ? t = "group" : e.children && (t = "tree");
117
+ }), t;
118
+ })();
119
+ return i === "group" ? e.forEach((e) => {
120
+ let i = N(e.column, t, n, !0);
121
+ i !== -1 && (r = i);
122
+ }) : r = i === "tree" ? A(e, t, { value: n }, !0) : N(e, t, n, !0), r;
123
+ }
124
+ var C = (t) => {
125
+ let n;
126
+ if (e(t)) n = [];
127
+ else if (i(t)) n = {};
128
+ else return t;
129
+ if (e(t)) {
130
+ t = t;
131
+ let e = 0, r = t.length;
132
+ for (; e < r; e++) t[e] && delete t[e].$parent, n.push(C(t[e]));
133
+ } else if (i(t)) for (let e in t) {
134
+ let r = t[e];
135
+ r && delete r.$parent, n[e] = C(t[e]);
136
+ }
137
+ return n;
138
+ }, w = (e, t = "") => (e || (e = t), e ? (e = `${e}`, e.indexOf("%") === -1 && e.indexOf("px") === -1 && (e = `${e}px`), e) : ""), T = (e, n) => t(e) ? e : n === "number" ? Number(e) : n === "string" ? `${e}` : e, E = (e = [], t = {}, n) => {
139
+ let r = t.value || o.value, i = t.children || o.children;
140
+ return e.forEach((e) => {
141
+ e[r] = T(e[r], n), e[i] && E(e[i], t, n);
142
+ }), e;
143
+ }, D = (e, n, r) => {
144
+ if (t(e)) return n;
145
+ let i = n instanceof Array, a = i ? n : [n];
146
+ r = r || o;
147
+ let s = [];
148
+ for (let t = 0; t < a.length; t++) s.push(A(e, a[t], r) || a[t]);
149
+ return i ? s.join(" | ") : s.join();
150
+ }, O = (e, n = ["", "$"], r = !0) => {
151
+ let i = r ? C(e) : e;
152
+ for (let e in i) n.includes("") && t(i[e]) && delete i[e], n.includes("$") && e.indexOf("$") !== -1 && delete i[e];
153
+ return i;
154
+ }, k = (e = [], t = {}) => {
155
+ let n = C(e), r = t[o.groups] || o.groups;
156
+ return e.forEach((e) => {
157
+ e[r] && (n = n.concat(e[r]));
158
+ }), n;
159
+ }, A = (e, t, n, r = null) => {
160
+ let i;
161
+ r || (e = k(e, n));
162
+ let a = (e) => {
163
+ let s = n.label || o.label, c = n.value || o.value, l = n.children || o.children;
164
+ for (let n = 0; n < e.length; n++) {
165
+ let o = e[n], u = o[l] || [];
166
+ o[c] === t ? i = r ? o : o[s] : a(u);
167
+ }
168
+ };
169
+ return a(e), i;
170
+ }, j = (e) => (Array.isArray(e) ? e : e.data) || [], M = (e, t = "", n = null) => {
171
+ let r = t.split("."), i = e;
172
+ return r[0] === "" && n !== "object" ? j(e) : (r[0] !== "" && r.forEach((e) => {
173
+ i = i[e];
174
+ }), i);
175
+ }, N = (e, t, n, r) => {
176
+ n = n || o.value;
177
+ for (let i = 0; i < e.length; i++) if (e[i][n] === t) return r ? e[i] : i;
178
+ return -1;
179
+ }, P = (e = "", t) => {
180
+ let n = e.toString().length;
181
+ e = "";
182
+ for (let r = 0; r < n; r++) e += t;
183
+ return e;
184
+ }, F = (e = [], n, r) => e.filter((e) => !t(e[n])).sort((e, t) => r(e, t)).concat(e.filter((e) => t(e[n]))), I = (a, o) => a ? (o.forEach((o) => {
185
+ o.includes("$") ? delete a[o] : t(a[o]) || (e(a[o]) ? a[o] = [] : i(a[o]) ? a[o] = {} : n(a[o]) || r(a[o]) ? a[o] = void 0 : a[o] = "");
186
+ }), a) : {}, L = (e, n) => typeof e == "boolean" ? e : t(e) ? n : e;
187
+ function R(e = {}, t) {
188
+ t = t || this;
189
+ let n = [
190
+ "uploadPreview",
191
+ "uploadBefore",
192
+ "uploadAfter",
193
+ "uploadDelete",
194
+ "uploadError",
195
+ "uploadExceed"
196
+ ], r = {};
197
+ return e.type === "upload" ? n.forEach((n) => {
198
+ e[n] || (r[n] = t[n]);
199
+ }) : n.forEach((e) => {
200
+ r[e] = t[e];
201
+ }), r;
202
+ }
203
+ //#endregion
204
+ export { o as C, m as D, f as E, s as S, d as T, v as _, C as a, p as b, O as c, h as d, M as f, w as g, _ as h, x as i, D as l, L as m, I as n, T as o, P as p, b as r, E as s, F as t, S as u, R as v, l as w, c as x, u as y };
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./B1MSrc6f.mjs";
2
2
  import { t } from "./V-Js6hNd.mjs";
3
3
  import { t as n } from "./mnqSaATq.mjs";
4
- import { r, t as i } from "./BAG_R87k2.mjs";
5
- import { a, i as o, n as s, r as c, t as l } from "./BwL9Xz1F.mjs";
4
+ import { r, t as i } from "./CZnwC17w.mjs";
5
+ import { a, i as o, n as s, r as c, t as l } from "./Cp1olyWc.mjs";
6
6
  import { ElDivider as u, ElDrawer as d, ElForm as f, ElFormItem as p, ElInput as m, ElMessageBox as h, ElOption as g, ElSelect as _, ElTable as v, ElTableColumn as y } from "element-plus/es";
7
7
  import "element-plus/es/components/base/style/css";
8
8
  import "element-plus/es/components/input/style/css";
@@ -12,8 +12,8 @@ import "element-plus/es/components/message-box/style/css";
12
12
  import "element-plus/es/components/drawer/style/css";
13
13
  import "element-plus/es/components/table/style/css";
14
14
  import "element-plus/es/components/table-column/style/css";
15
- import "element-plus/es/components/form-item/style/css";
16
15
  import "element-plus/es/components/form/style/css";
16
+ import "element-plus/es/components/form-item/style/css";
17
17
  import "element-plus/es/components/select/style/css";
18
18
  import "element-plus/es/components/option/style/css";
19
19
  import "element-plus/es/components/divider/style/css";
@@ -414,7 +414,7 @@ function L(e, r, i, a, o, s) {
414
414
  style: { "margin-left": "auto" },
415
415
  onClick: r[14] || (r[14] = (e) => s.openListenerFieldForm(null))
416
416
  }, {
417
- default: k(() => [...r[27] || (r[27] = [T("添加字段", -1)])]),
417
+ default: k(() => [...r[27] || (r[27] = [T(" 添加字段 ", -1)])]),
418
418
  _: 1
419
419
  })]),
420
420
  E(j, {
@@ -1,5 +1,5 @@
1
- import { n as e, o as t } from "./b0ve2YgF.mjs";
2
- import { t as n } from "./tVHVSu5h.mjs";
1
+ import { n as e, o as t } from "./mQG01w6Y.mjs";
2
+ import { t as n } from "./CbedyG4s.mjs";
3
3
  import { allProps as r, predicate as i } from "../props/input-cron.mjs";
4
4
  import { ElInput as a, ElPopover as o } from "element-plus/es";
5
5
  import "element-plus/es/components/base/style/css";
@@ -1,6 +1,6 @@
1
1
  import { h as e } from "./ClVh1Lek.mjs";
2
2
  import { useFormItemProps as t } from "../helper/form-item.mjs";
3
- import { r as n } from "./b0ve2YgF.mjs";
3
+ import { r as n } from "./mQG01w6Y.mjs";
4
4
  import { allProps as r, predicate as i } from "../props/image.mjs";
5
5
  import { ElImage as a } from "element-plus/es";
6
6
  import "element-plus/es/components/base/style/css";
@@ -1,6 +1,6 @@
1
1
  import { commonAutoBindProps as e, commonManualBindProps as t } from "../props/common.mjs";
2
- import { n, o as r } from "./b0ve2YgF.mjs";
3
- import { n as i, t as a } from "./DWN5uzm02.mjs";
2
+ import { n, o as r } from "./mQG01w6Y.mjs";
3
+ import { n as i, t as a } from "./DL4xcGES2.mjs";
4
4
  import { createVNode as o, mergeProps as s, ref as c, useModel as l } from "vue";
5
5
  //#region src/components/table/form-table.ts
6
6
  var u = {
@@ -1,5 +1,5 @@
1
- import { n as e, o as t } from "./b0ve2YgF.mjs";
2
- import { t as n } from "./BTGrh7dw2.mjs";
1
+ import { n as e, o as t } from "./mQG01w6Y.mjs";
2
+ import { t as n } from "./Br0vC3nS2.mjs";
3
3
  import { allProps as r, predicate as i } from "../props/tree-select-multiple.mjs";
4
4
  import { createVNode as a, mergeProps as o } from "vue";
5
5
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as e, o as t } from "./b0ve2YgF.mjs";
1
+ import { n as e, o as t } from "./mQG01w6Y.mjs";
2
2
  import { allProps as n, predicate as r } from "../props/slide.mjs";
3
3
  import { ElSlider as i } from "element-plus/es";
4
4
  import "element-plus/es/components/base/style/css";
@@ -1,5 +1,5 @@
1
- import { n as e } from "./b0ve2YgF.mjs";
2
- import { t } from "./C28bnMcw.mjs";
1
+ import { n as e } from "./mQG01w6Y.mjs";
2
+ import { t } from "./DC3DNg_r.mjs";
3
3
  import { allProps as n } from "../props/input.mjs";
4
4
  import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
5
5
  //#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
@@ -1,4 +1,4 @@
1
- import { n as e, o as t } from "./b0ve2YgF.mjs";
1
+ import { n as e, o as t } from "./mQG01w6Y.mjs";
2
2
  import n from "../x-input-tag/index.mjs";
3
3
  import { allProps as r, predicate as i } from "../props/input-tag.mjs";
4
4
  import { createVNode as a, mergeProps as o } from "vue";
@@ -1,4 +1,4 @@
1
- import { n as e, o as t } from "./b0ve2YgF.mjs";
1
+ import { n as e, o as t } from "./mQG01w6Y.mjs";
2
2
  import { allProps as n, predicate as r } from "../props/time.mjs";
3
3
  import { ElTimePicker as i } from "element-plus/es";
4
4
  import "element-plus/es/components/base/style/css";
@@ -0,0 +1,56 @@
1
+ import { createLogger as e } from "@web-utils/core";
2
+ //#region src/components/avue/utils/packages.ts
3
+ var t = {
4
+ AliOSS: {
5
+ url: "https://cdn.staticfile.org/ali-oss/6.17.1/aliyun-oss-sdk.min.js",
6
+ title: "阿里云云图片上传,需引入OSS的sdk",
7
+ github: "https://github.com/ali-sdk/ali-oss/"
8
+ },
9
+ Map: {
10
+ url: "https://webapi.amap.com/maps?v=1.4.11&key=xxxxx&plugin=AMap.PlaceSearch,https://webapi.amap.com/ui/1.0/main.js?v=1.0.11",
11
+ title: "地图组件,需引入高德SDK"
12
+ },
13
+ MapUi: {
14
+ url: "https://webapi.amap.com/ui/1.0/main.js?v=1.0.11",
15
+ title: "地图组件,需引入高德UISDK"
16
+ },
17
+ Sortable: {
18
+ url: "https://cdn.staticfile.org/Sortable/1.10.0-rc2/Sortable.min.js",
19
+ title: "拖拽,需引入sortableJs",
20
+ github: "https://github.com/SortableJS/Sortable"
21
+ },
22
+ Screenshot: {
23
+ url: "https://cdn.staticfile.org/html2canvas/0.5.0-beta4/html2canvas.min.js",
24
+ title: "需引入html2canvas依赖包",
25
+ github: "https://github.com/niklasvh/html2canvas/"
26
+ },
27
+ CryptoJS: {
28
+ url: "https://avuejs.com/cdn/CryptoJS.js",
29
+ title: "七牛云图片上传,需引入CryptoJS"
30
+ },
31
+ hljs: {
32
+ url: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js",
33
+ title: "需引入hljs框架包",
34
+ github: "https://github.com/highlightjs/highlight.js"
35
+ },
36
+ "file-saver": {
37
+ url: "https://cdn.staticfile.org/FileSaver.js/2014-11-29/FileSaver.min.js",
38
+ title: "需引入文件操作包",
39
+ github: "https://github.com/eligrey/FileSaver.js"
40
+ },
41
+ xlsx: {
42
+ url: "https://cdn.staticfile.org/xlsx/0.18.2/xlsx.full.min.js",
43
+ title: "需引入excel操作包",
44
+ github: "https://github.com/protobi/js-xlsx"
45
+ },
46
+ mock: {
47
+ url: "https://cdn.staticfile.org/Mock.js/1.0.1-beta3/mock-min.js",
48
+ title: "需要引入mock模拟数据包",
49
+ github: "https://github.com/Colingo/mock"
50
+ }
51
+ }, n = { logs(n) {
52
+ let r = t[n], i = e(n);
53
+ i.warning(r.title), i.warning(`CDN:${r.url || "-"}`), i.warning(`GITHUB:${r.github || "-"}`);
54
+ } };
55
+ //#endregion
56
+ export { n as t };
@@ -0,0 +1,221 @@
1
+ import { t as e } from "./B1MSrc6f.mjs";
2
+ import { d as t } from "./BbUUI4mF.mjs";
3
+ import { createElementBlock as n, createElementVNode as r, openBlock as i } from "vue";
4
+ import "@wangeditor/editor/dist/css/style.css";
5
+ import { createEditor as a, createToolbar as o } from "@wangeditor/editor";
6
+ //#region src/components/avue/ueditor/upload/ali.js
7
+ var s = (e) => {
8
+ let { region: t, endpoint: n, accessKeyId: r, accessKeySecret: i, bucket: a } = e;
9
+ return new window.OSS({
10
+ region: t,
11
+ endpoint: n,
12
+ accessKeyId: r,
13
+ accessKeySecret: i,
14
+ bucket: a
15
+ });
16
+ }, c = (e, t, n) => {
17
+ let { scope: r, deadline: i } = n;
18
+ var a = d(l(JSON.stringify({
19
+ scope: r,
20
+ deadline: i
21
+ }))), o = window.CryptoJS.HmacSHA1(a, t).toString(window.CryptoJS.enc.Base64);
22
+ return e + ":" + f(o) + ":" + a;
23
+ };
24
+ function l(e) {
25
+ var t = "", n, r = e.length, i;
26
+ for (n = 0; n < r; n++) i = e.charCodeAt(n), i >= 1 && i <= 127 ? t += e.charAt(n) : i > 2047 ? (t += String.fromCharCode(224 | i >> 12 & 15), t += String.fromCharCode(128 | i >> 6 & 63), t += String.fromCharCode(128 | i >> 0 & 63)) : (t += String.fromCharCode(192 | i >> 6 & 31), t += String.fromCharCode(128 | i >> 0 & 63));
27
+ return t;
28
+ }
29
+ var u = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
30
+ function d(e) {
31
+ var t, n, r = e.length, i, a, o;
32
+ for (n = 0, t = ""; n < r;) {
33
+ if (i = e.charCodeAt(n++) & 255, n == r) {
34
+ t += u.charAt(i >> 2), t += u.charAt((i & 3) << 4), t += "==";
35
+ break;
36
+ }
37
+ if (a = e.charCodeAt(n++), n == r) {
38
+ t += u.charAt(i >> 2), t += u.charAt((i & 3) << 4 | (a & 240) >> 4), t += u.charAt((a & 15) << 2), t += "=";
39
+ break;
40
+ }
41
+ o = e.charCodeAt(n++), t += u.charAt(i >> 2), t += u.charAt((i & 3) << 4 | (a & 240) >> 4), t += u.charAt((a & 15) << 2 | (o & 192) >> 6), t += u.charAt(o & 63);
42
+ }
43
+ return t;
44
+ }
45
+ var f = function(e) {
46
+ return e = e.replace(/\+/g, "-"), e = e.replace(/\//g, "_"), e;
47
+ }, p = {
48
+ name: "FyUEditor",
49
+ props: {
50
+ data: {
51
+ type: Object,
52
+ default: () => ({})
53
+ },
54
+ headers: {
55
+ type: Object,
56
+ default: () => ({})
57
+ },
58
+ customConfig: {
59
+ type: Object,
60
+ default: () => ({})
61
+ },
62
+ toolbarConfig: {
63
+ type: Object,
64
+ default: () => ({})
65
+ },
66
+ propsHttp: {
67
+ type: Object,
68
+ default: () => ({})
69
+ },
70
+ ali: {
71
+ type: Object,
72
+ default: () => ({})
73
+ },
74
+ qiniu: {
75
+ type: Object,
76
+ default: () => ({})
77
+ },
78
+ oss: String,
79
+ action: String,
80
+ disabled: {
81
+ type: Boolean,
82
+ default: !1
83
+ },
84
+ modelValue: {
85
+ type: String,
86
+ default: ""
87
+ },
88
+ placeholder: {
89
+ type: String,
90
+ default: ""
91
+ }
92
+ },
93
+ emits: [
94
+ "blur",
95
+ "focus",
96
+ "update:modelValue"
97
+ ],
98
+ data() {
99
+ return { editor: null };
100
+ },
101
+ computed: {
102
+ fileName() {
103
+ return this.propsHttp.fileName || "file";
104
+ },
105
+ homeUrl() {
106
+ return this.propsHttp.home || "";
107
+ },
108
+ resKey() {
109
+ return this.propsHttp.res;
110
+ },
111
+ urlKey() {
112
+ return this.propsHttp.url || "url";
113
+ },
114
+ isQiniuOSS() {
115
+ return this.oss === "qiniu";
116
+ },
117
+ isAliOSS() {
118
+ return this.oss === "ali";
119
+ }
120
+ },
121
+ watch: {
122
+ disabled(e) {
123
+ e ? this.editor.disable() : this.editor.enable();
124
+ },
125
+ modelValue(e) {
126
+ e ? this.editor.setHtml(e) : this.editor.clear();
127
+ }
128
+ },
129
+ mounted() {
130
+ this.initEdit();
131
+ },
132
+ beforeUnmount() {
133
+ var e;
134
+ (e = this.editor) == null || e.destroy();
135
+ },
136
+ methods: {
137
+ initEdit() {
138
+ let e = "default", t = {
139
+ placeholder: this.placeholder,
140
+ readOnly: this.disabled,
141
+ MENU_CONF: {
142
+ uploadImage: { customUpload: async (e) => {
143
+ let t = await this.uploadFile(e);
144
+ this.editor.dangerouslyInsertHtml(t);
145
+ } },
146
+ uploadVideo: { customUpload: async (e) => {
147
+ let t = await this.uploadFile(e);
148
+ this.editor.dangerouslyInsertHtml(t);
149
+ } }
150
+ },
151
+ ...this.customConfig,
152
+ onFocus: () => {
153
+ this.$emit("focus", this.modelValue);
154
+ },
155
+ onBlur: (e) => {
156
+ let t = e.getHtml();
157
+ this.$emit("blur", t);
158
+ },
159
+ onChange: (e) => {
160
+ let t = e.getHtml();
161
+ this.$emit("update:modelValue", t);
162
+ }
163
+ };
164
+ this.editor = Object.seal(a({
165
+ selector: this.$refs.editor,
166
+ config: t,
167
+ html: this.modelValue,
168
+ mode: e
169
+ }));
170
+ let n = { ...this.toolbarConfig };
171
+ this.toolbar = o({
172
+ editor: this.editor,
173
+ selector: this.$refs.toolbar,
174
+ config: n,
175
+ mode: e
176
+ });
177
+ },
178
+ uploadFile(e) {
179
+ return new Promise((n, r) => {
180
+ let i = Object.assign(this.headers, { "Content-Type": "multipart/form-data" }), a = {}, o, l = new FormData(), u = this.action;
181
+ if (l.append(this.fileName, e), Object.keys(this.data).forEach((e) => {
182
+ l.append(e, this.data[e]);
183
+ }), this.isQiniuOSS) {
184
+ a = this.qiniu;
185
+ let e = c(a.AK, a.SK, {
186
+ scope: a.scope,
187
+ deadline: (/* @__PURE__ */ new Date()).getTime() + a.deadline * 3600
188
+ });
189
+ l.append("token", e), u = "http://up.qiniu.com/";
190
+ } else this.isAliOSS && (a = this.ali, o = s({
191
+ region: a.region,
192
+ endpoint: a.endpoint,
193
+ accessKeyId: a.accessKeyId,
194
+ accessKeySecret: a.accessKeySecret,
195
+ bucket: a.bucket
196
+ }));
197
+ (this.isAliOSS ? o.put(e.name, e) : this.$axios.post(u, l, { headers: i })).then((e) => {
198
+ let r;
199
+ this.isAliOSS ? r = e : this.isQiniuOSS ? (r = e.data, r.key = a.url + r.key) : typeof this.resKey == "function" ? r = this.resKey(e.data) : (r = t(e.data, this.resKey), r = r[this.urlKey]), n(this.homeUrl + r);
200
+ }).catch((e) => {
201
+ r(e);
202
+ });
203
+ });
204
+ },
205
+ getUEContent() {
206
+ return this.editor.getHtml();
207
+ }
208
+ }
209
+ }, m = { class: "avue-ueditor" }, h = {
210
+ ref: "toolbar",
211
+ class: "fy-editor-toolbar"
212
+ }, g = {
213
+ ref: "editor",
214
+ class: "fy-editor"
215
+ };
216
+ function _(e, t, a, o, s, c) {
217
+ return i(), n("div", m, [r("div", h, null, 512), r("div", g, null, 512)]);
218
+ }
219
+ var v = /* @__PURE__ */ e(p, [["render", _]]);
220
+ //#endregion
221
+ export { v as t };
@@ -0,0 +1,30 @@
1
+ import { ElButton as e } from "element-plus/es";
2
+ import "element-plus/es/components/base/style/css";
3
+ import { computed as t, createVNode as n, mergeProps as r } from "vue";
4
+ import "element-plus/es/components/button/style/css";
5
+ //#endregion
6
+ //#region src/components/avue/FyButton.vue
7
+ var i = {
8
+ name: "FyButton",
9
+ props: {
10
+ icon: [String, Object],
11
+ text: {
12
+ type: [String, Boolean],
13
+ default: void 0
14
+ },
15
+ type: String
16
+ },
17
+ setup(i, { slots: a, attrs: o }) {
18
+ let s = t(() => i.type === "text" ? "" : i.type), c = t(() => i.type === "text" || i.text !== void 0 && (i.text === !0 || i.text === ""));
19
+ return () => n(e, r(o, {
20
+ type: s.value,
21
+ text: c.value
22
+ }), {
23
+ ...a,
24
+ default: a.default ? a.default() : i.text,
25
+ icon: a.icon ? a.icon : i.icon ? () => n("i", { class: i.icon }, null) : null
26
+ });
27
+ }
28
+ };
29
+ //#endregion
30
+ export { i as t };
@@ -1,4 +1,4 @@
1
- import { n as e, o as t } from "./b0ve2YgF.mjs";
1
+ import { n as e, o as t } from "./mQG01w6Y.mjs";
2
2
  import { allProps as n, predicate as r } from "../props/switch.mjs";
3
3
  import { ElSwitch as i } from "element-plus/es";
4
4
  import "element-plus/es/components/base/style/css";
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./X-ckP2Hj.mjs";
1
+ import { n as e, t } from "./DOLQ28wD.mjs";
2
2
  import { createVNode as n, isVNode as r, mergeProps as i } from "vue";
3
3
  //#region src/components/flex/FlexColumn.vue?vue&type=script&lang.jsx
4
4
  function a(e) {